1 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
3 * README: Point to the Info manual.
5 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
7 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
8 2nd superblock position from partition size.
10 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
12 * Makefile.in (MAINTAINER_CLEANFILES): Remove
13 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
14 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
17 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19 Restructure SCSI .id handling.
20 Reported and tested by: Aleš Nesrsta.
22 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23 (grub_atapi_dev): Changed .name to "ata". New field .id.
24 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25 (grub_usbms_dev): New field .id.
26 * disk/scsi.c (grub_scsi_iterate): Generate name.
27 (grub_scsi_open): Parse name.
28 * include/grub/scsi.h (grub_make_scsi_id): New function.
29 (grub_scsi_dev): Change iterate and open to number instead of naming
30 busses. All users updated.
31 (grub_scsi): Remove name. Add .bus.
33 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
35 * commands/help.c (grub_cmd_help): Fix a typo.
37 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
39 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
40 Reported and tested by: Colin Watson.
42 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
44 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
47 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
49 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
51 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
53 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
56 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
58 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
59 and disk/raid6_recover.c.
60 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
61 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
63 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
65 * term/gfxterm.c (repaint_schedulded): Rename to ...
66 (repaint_scheduled): ... this. Update all callers.
67 (repaint_was_schedulded): Rename to ...
68 (repaint_was_scheduled): ... this. Update all callers.
70 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
72 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
73 which we expect to be handled by upper layers.
75 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
77 * bus/usb/usbhub.c: #include time.h header.
79 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
81 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
82 entry_name also for entries without stat blocks (e.g. ".."); fixes
83 corruption of the first entry in a directory.
85 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
87 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
88 after setting gfxterm as the active terminal. GRUB_BACKGROUND
89 doesn't work otherwise.
91 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
93 * docs/grub.texi (Features): Update list of supported file systems.
94 (GNU/Linux): Update for GRUB 2.
95 (Serial terminal): Remove mention of --disable-serial, which was a
96 GRUB Legacy configure option. Update instructions to use
97 `terminal_input' and `terminal_output' rather than `terminal'.
98 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
99 configuration' and `Installing GRUB using grub-install'.
100 (Menu entry editor): Update for GRUB 2.
101 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
102 Document new -a, -u, and -v options.
103 (initrd): New section.
104 (initrd16): New section.
105 (linux): New section.
106 (linux16): New section.
107 (search): The `var' argument to `--set' is optional.
108 (GRUB only offers a rescue shell): Go into a little more detail on
111 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
113 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
115 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
117 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
118 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
120 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
122 * util/i386/pc/grub-setup.c (setup): Rename prefix to
123 install_prefix, in line with install_dos_part and install_bsd_part.
124 Add new prefix variable, which is copied to install_prefix after
125 comparing core.img in memory with the one read from disk in the
126 no-embedding case, and use that rather than overwriting
127 install_prefix immediately when installing to a partition.
128 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
131 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
133 * configure.ac: Avoid == in test command, it's not portable.
134 * util/grub.d/30_os-prober.in: Likewise.
136 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
138 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
140 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
142 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
143 multiple (top-level) partmaps.
145 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
147 * util/i386/efi/grub-install.in: Don't use empty grub_device.
148 Reported by: Tino Keitel.
150 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
152 Bidi and diacritics support.
154 * Makefile.in (widthspec.bin): New target.
155 (widthspec.h): Likewise.
156 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
157 * autogen.sh: Generate unidata.c.
158 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
159 * commands/ls.c (grub_ls_list_devices): Likewise.
160 (grub_ls_list_files): Likewise.
161 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
162 (grub_mini_cmd_lsmod): Likewise.
163 * commands/read.c: Likewise.
164 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
165 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
166 * lib/arg.c (grub_arg_show_help): Likewise.
167 * lib/crypto.c (grub_password_get): Likewise.
168 * normal/auth.c (grub_username_get): Likewise.
169 * normal/misc.c (grub_normal_print_device_info): Likewise.
170 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
171 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
172 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
173 (normal/charset.c_DEPENDENCIES): New variable.
174 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
175 (pkglib_MODULES): Remove charset.mod.
176 (charset_mod_SOURCES): Removed.
177 (charset_mod_CFLAGS): Likewise.
178 (charset_mod_LDFLAGS): Likewise.
179 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
180 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
182 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
183 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
184 (kernel_img_HEADERS): Add terminfo.h.
185 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
186 Fill ->font. Reverse ascii bitmaps.
187 (grub_font_get_xheight): New function.
188 * font/font.c (grub_font_get_string_width): Moved from here ...
189 * gfxmenu/font.c (grub_font_get_string_width): ... here.
190 * font/font.c (grub_font_draw_string): Moved from here ...
191 * gfxmenu/font.c (grub_font_draw_string): ... here.
192 * font/font.c (grub_font_dup_glyph): New function.
193 (grub_font_blit_glyph): Likewise.
194 (grub_font_blit_glyph_mirror): Likewise.
195 (blit_comb): Likewise.
196 (grub_font_construct_dry_run): Likewise.
197 (grub_font_get_constructed_device_width): Likewise.
198 (grub_font_construct_glyph): Likewise.
199 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
200 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
201 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
202 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
203 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
204 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
205 (grub_font_get_xheight): New proto.
206 (grub_font_get_constructed_device_width): Likewise.
207 (grub_font_construct_glyph): Likewise.
208 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
209 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
210 * include/grub/font.h (grub_font_draw_string): Moved from here ...
211 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
212 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
213 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
214 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
215 (grub_console_getcharwidth): Likewise.
216 * include/grub/misc.h (grub_xputs): New proto.
217 (grub_puts): Inlined.
218 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
219 (grub_normal_get_line_counter): Removed.
220 (grub_install_newline_hook): Likewise.
221 (grub_normal_get_char_counter): New proto.
222 (grub_normal_reset_more): Likewise.
223 (grub_xputs_normal): Likewise.
224 * include/grub/powerpc/ieee1275/console.h: Removed.
225 * include/grub/sparc64/ieee1275/console.h: Likewise.
226 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
227 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
228 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
229 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
230 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
231 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
232 (grub_term_input): Pass reference to self. All users updated.
233 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
234 Pass reference to self. New fields normal_color, highlight_color and
235 data. All users updated.
236 (grub_putchar): Removed.
237 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
238 (grub_unicode_estimate_width): New function.
239 (grub_term_getcharwidth): Add defaults.
240 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
241 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
242 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
243 (grub_cls): Remove EXPORT_FUNC.
244 (grub_setcolorstate): Inline.
245 (grub_newline_hook): Removed.
246 * include/grub/terminfo.h: Rewritten. All users updated.
247 * include/grub/unicode.h: New file.
248 * include/grub/video.h (grub_video_signed_rect): New type.
249 * kern/emu/console.c (grub_console_highlight_color): Removed.
250 (grub_console_normal_color): Likewise.
251 (grub_console_standard_color): Made static.
252 (grub_ncurses_putchar): Remove mapping.
253 (grub_ncurses_getcharwidth): Removed.
254 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
255 (grub_ncurses_setcolor): Removed.
256 (grub_ncurses_getcolor): Likewise.
257 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
258 (grub_console_putchar): ... this.
259 (grub_console_putchar): Handle argument difference.
260 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
261 console_init_early and console_init_lately.
262 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
263 * kern/misc.c (grub_puts): Removed.
264 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
265 (grub_vsnprintf_real): Remove str = NULL support.
266 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
267 * normal/charset.c (grub_utf8_to_ucs4): ... here.
268 * kern/term.c (grub_putcode): Renamed to ...
269 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
270 (grub_putchar): Removed.
271 (grub_xputs_dumb): New function.
272 (grub_xputs): New variable.
273 * lib/charset.c: Move from here ...
274 * normal/charset.c: ... to here.
275 (grub_ucs4_to_utf8): New function.
276 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
277 (join_types): New variable.
278 (unpack_join): New function.
279 (bidi_types): New variable.
280 (unpack_bidi): New function.
281 (get_bidi_type): Likewise.
282 (get_join_type): Likewise.
283 (is_mirrored): Likewise.
284 (grub_unicode_get_comb_type): Likewise.
285 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
286 (is_type_after): Likewise.
287 (grub_unicode_aglomerate_comb): Likewise.
288 (bidi_line_wrap): Likewise.
289 (grub_bidi_line_logical_to_visual): Likewise.
290 (grub_bidi_logical_to_visual): Likewise.
291 (grub_unicode_mirror_code): Likewise.
292 (grub_unicode_shape_code): Likewise.
293 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
294 Don't use grub_putchar.
295 * normal/main.c (grub_normal_init_page): Use grub_putcode.
296 (grub_normal_reader_init): Likewise.
297 (grub_xputs_saved): New variable.
298 (GRUB_MOD_INIT): Set grub_xputs.
299 (GRUB_MOD_FINI): Restore grub_xputs.
300 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
301 (menu_init): Avoid printing gfxmenu error.
302 (show_menu): Use grub_normal_get_char_counter.
303 * normal/menu_entry.c (update_screen): Fix out-of-array.
304 (complete): Avoid NULL dereferencing.
305 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
306 * normal/menu_text.c (print_spaces): Removed.
307 (grub_print_ucs4): Likewise.
308 (grub_print_message_indented): Use grub_print_ucs4.
309 (print_message): Use grub_putcode.
310 (print_entry): Hanlde diacritics.
311 * normal/term.c (term_state): New type.
312 (grub_more_lines): Removed.
313 (term_states): New variable.
314 (grub_normal_line_counter): Renamed to ..
315 (grub_normal_char_counter): ...this. All users updated.
316 (grub_normal_get_line_counter): Renamed to ...
317 (grub_normal_get_char_counter): ... this.
318 (grub_normal_reset_more): New function.
319 (process_newline): Removed.
320 (print_more): New function.
321 (grub_install_newline_hook): Removed.
322 (map_code): New function.
323 (grub_puts_terminal): Use grub_print_ucs4.
324 (putglyph): New function.
325 (putcode_real): Likewise.
326 (grub_putcode): Use putcode_real.
327 (get_maxwidth): New function.
328 (get_startwidth): Likewise.
329 (print_ucs4_terminal): Likewise.
330 (find_term_state): Likewise.
331 (put_glyphs_terminal): Likewise.
332 (print_backlog): Likewise.
333 (print_ucs4_real): Likewise.
334 (grub_print_ucs4): Likewise.
335 (grub_xputs_normal): Likewise.
336 * term/efi/console.c (grub_console_putchar): Output diacritics.
337 (grub_console_getcharwidth): Removed.
338 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
339 * term/gfxterm.c (clear_char): Free chars.
340 (scroll_up): Avoid leaking memory.
341 (grub_gfxterm_putchar): Support diacritics.
342 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
343 * term/i386/pc/console.c (grub_console_term_output): Declare as
344 GRUB_TERM_CODE_TYPE_VGA.
345 * term/i386/pc/vga.c (grub_vga_term): Declare as
346 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
347 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
348 GRUB_TERM_CODE_TYPE_VGA.
349 * term/i386/vga_common.c (map_char): Removed.
350 (grub_console_putchar): Likewise.
351 (grub_console_getcharwidth): Likewise.
352 * term/ieee1275/ofconsole.c: Simplify using terminfo.
353 (colors): Reordered to match terminfo.
354 (grub_ofconsole_normal_color): Removed.
355 (grub_ofconsole_writeesc): Likewise.
356 (grub_ofconsole_highlight_color): Likewise.
357 (grub_ofconsole_getcharwidth): Likewise.
358 (grub_ofconsole_setcolorstate): Likewise.
359 (grub_ofconsole_setcolor): Likewise.
360 (grub_ofconsole_getcolor): Likewise.
361 (grub_ofconsole_readkey): Renamed to ...
362 (readkey): ... this. Remove escape sequence handling. Return -1 on no
364 (grub_ofconsole_checkkey): Removed.
365 (grub_ofconsole_getkey): Likewise.
366 (grub_ofconsole_getxy): Likewise.
367 (grub_ofconsole_gotoxy): Likewise.
368 (grub_ofconsole_cls): Likewise.
369 (grub_ofconsole_refresh): Likewise.
370 (grub_ofconsole_terminfo_input): New struct.
371 (grub_ofconsole_terminfo_output): Likewise.
372 (grub_ofconsole_term_input): Use terminfo.
373 (grub_ofconsole_term_output): Likewise.
374 (grub_console_init): Split into ...
375 (grub_console_init_early): ...this and ...
376 (grub_console_init_lately): ...this. Use terminfo.
377 (grub_ofconsole_putchar): Renamed to ...
378 (put): ... this. Remove mapping.
379 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
380 * term/serial.c: Simplify using terminfo.
383 (keep_track): Likewise.
384 (registered): Likewise.
385 (input_buf): Likewise.
386 (npending): Likewise.
387 (serial_translate_key_sequence): Likewise.
388 (fill_input_buf): Likewise.
389 (grub_serial_checkkey): Likewise.
390 (grub_serial_getkey): Likewise.
391 (grub_serial_getxy): Likewise.
392 (grub_serial_gotoxy): Likewise.
393 (grub_serial_putchar): Likewise.
394 (grub_serial_cls): Likewise.
395 (grub_serial_setcolorstate): Likewise.
396 (grub_serial_setcursor): Likewise.
397 (serial_hw_init): Use serial_hw_fetch.
398 (grub_serial_terminfo_input): New variable.
399 (grub_serial_terminfo_output): Likewise.
400 (grub_serial_term_input): Use terminfo.
401 (grub_serial_term_output): Likewise.
402 * term/terminfo.c (putstr): Use put.
403 (grub_terminfo_all_free): New function
404 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
405 (grub_terminfo_output_register): New function.
406 (grub_terminfo_output_unregister): Likewise.
407 (grub_terminfo_getxy): Likewise.
408 (grub_terminfo_readkey): Likewise.
409 (grub_terminfo_checkkey): Likewise.
410 (grub_terminfo_getkey): Likewise.
411 (grub_terminfo_input_init): Likewise.
412 (print_terminfo): Likewise.
413 (grub_cmd_terminfo): Handle encoding.
414 (grub_terminfo_gotoxy): Track position.
415 (grub_terminfo_cls): Likewise.
416 (grub_terminfo_putchar): Likewise.
417 (grub_terminfo_setcolorstate): Handle colors
418 (grub_terminfo_cursor_on): This ...
419 (grub_terminfo_cursor_off): ... and this merged into ...
420 (grub_terminfo_setcursor): ... this.
421 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
422 * unicode/ArabicShaping.txt: New file (imported from Unicode).
423 * unicode/BidiMirroring.txt: Likewise.
424 * unicode/UnicodeData.txt: Likewise.
425 * unicode/COPYING: Likewise.
426 * util/grub-editenv.c (grub_putchar): Removed.
427 (grub_xputs_real): New function.
428 (grub_xputs): New variable.
429 * util/grub-fstest.c (grub_putchar): Removed.
430 (grub_xputs_real): New function.
431 (grub_xputs): New variable.
432 * util/grub-mkdevicemap.c (grub_putchar): Removed.
433 (grub_xputs_real): New function.
434 (grub_xputs): New variable.
435 * util/grub-probe.c (grub_putchar): Removed.
436 (grub_xputs_real): New function.
437 (grub_xputs): New variable.
438 * util/grub-script-check.c (grub_putchar): Removed.
439 (grub_xputs_real): New function.
440 (grub_xputs): New variable.
441 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
442 (grub_xputs_real): New function.
443 (grub_xputs): New variable.
444 * util/import_unicode.py: New file.
445 * util/grub-mkfont.c (ft_errmsgs): New array.
446 (grub_glyph_info): Make bitmap a pointer.
447 (file_formats): New type WIDTH_SPEC.
448 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
449 (options): Add width-spec.
451 (add_char): Renamed to ...
452 (add_glyph): ... this.
453 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
454 (glyph_replace): New type.
455 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
456 (add_char): New function.
457 (add_subst): Likewise.
458 (process_cursive): Likewise.
459 (add_font): Handle GSUB.
460 (write_font_width_spec): New function.
462 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
463 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
464 * kern/term.c (grub_cls): Moved from here...
465 * normal/term.c (grub_cls): ... here.
467 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
469 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
470 suitable for using within the format argument of printf when
471 converting grub_size_t.
472 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
473 "x" to convert grub_size_t arguments.
475 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
477 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
479 (list_get_minimal_size): Take selection box into account.
481 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
483 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
486 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
488 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
489 devices when iterating over /dev/disk/by-id; they will be handled
490 later if appropriate, which they aren't always (e.g. LVM).
492 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
494 * include/grub/misc.h (grub_reboot): Declare as noreturn.
495 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
497 (grub_halt): Likewise.
498 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
500 (grub_halt): Don't return, even if all of shut-down, power-off, and
503 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
505 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
506 arguments, not three.
508 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
510 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
511 * util/grub.d/10_linux.in: Use it to check for LVM, so that
512 LVM-on-RAID is handled correctly.
514 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
516 * docs/grub.texi (Changes from GRUB Legacy): New section.
519 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
521 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
522 grub.d/README accidentally ends up executable for one reason or
525 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
527 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
528 (gpt_partition_map_iterate): Support non-512B sectors.
530 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
532 * kern/efi/init.c (grub_efi_init): Disable watchdog.
533 Tested by: Seth Goldberg.
535 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
537 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
539 Reported by: Seth Goldberg.
541 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
543 * util/grub-mkrescue.in: Avoid module duplication.
545 2010-07-01 Sean Finney <seanius@seanius.net>
547 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
549 2010-07-01 Sean Finney <seanius@seanius.net>
551 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
553 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
555 * disk/lvm.c (grub_lvm_checkvalue): New function.
556 (grub_lvm_check_flag): Likewise.
558 2010-07-01 Robert Millan <rmh@gnu.org>
560 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
561 Support 'p' as partition separator on kernel of FreeBSD (used
563 (grub_util_biosdisk_get_grub_dev): Likewise.
565 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
567 Yeeloong firmware port.
569 * boot/mips/yeeloong/fwstart.S: New file.
570 * bus/cs5536.c (gpiodump): New const.
571 (set_io_space): New function.
574 (grub_cs5536_init_geode): Likewise.
575 * commands/mips/yeeloong/lsspd.c: New file.
576 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
577 (serial_mod_SOURCES): New variable.
578 (serial_mod_CFLAGS): Likewise.
579 (serial_mod_LDFLAGS): Likewise.
580 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
581 term/terminfo.c and term/tparm.c.
582 (pkglib_IMAGES): Add fwstart.img.
583 (fwstart_img_SOURCES): New variable.
584 (fwstart_img_CFLAGS): Likewise.
585 (fwstart_img_ASFLAGS): Likewise.
586 (fwstart_img_LDFLAGS): Likewise.
587 (fwstart_img_FORMAT): Likewise.
588 (pkglib_MODULES): Add lsspd.mod.
589 (lsspd_mod_SOURCES): New variable.
590 (lsspd_mod_CFLAGS): Likewise.
591 (lsspd_mod_LDFLAGS): Likewise.
592 (pkglib_MODULES): Add halt.mod.
593 (halt_mod_SOURCES): New variable.
594 (halt_mod_CFLAGS): Likewise.
595 (halt_mod_LDFLAGS): Likewise.
596 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
597 (serial_mod_SOURCES): Removed.
598 (serial_mod_CFLAGS): Likewise.
599 (serial_mod_LDFLAGS): Likewise.
600 * disk/ata.c (check_device): New function.
601 (grub_ata_device_initialize): Use check_device.
602 (grub_ata_iterate): Recheck devices.
603 (grub_ata_open): Likewise.
604 (grub_atapi_iterate): Likewise.
605 (grub_atapi_open): Likewise.
606 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
607 (GRUB_ATA_CH1_PORT1): Likewise.
608 (GRUB_ATA_CH0_PORT2): Likewise.
609 (GRUB_ATA_CH1_PORT2): Likewise.
610 * include/grub/mips/loongson.h: New file.
611 * include/grub/mips/yeeloong/ec.h: Likewise.
612 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
613 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
614 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
615 * include/grub/misc.h (grub_halt): Declare as noreturn.
616 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
617 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
618 (UART_ENABLE_FIFO_TRIGGER1): New definition.
619 (UART_ENABLE_DTRRTS): Likewise.
620 (UART_ENABLE_MODEM): Removed.
621 (UART_ENABLE_OUT2): New const.
622 * include/grub/term.h (grub_term_register_input_active): New function.
623 (grub_term_register_output_active): Likewise.
624 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
626 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
627 (init_pci): New function.
628 (grub_machine_init): Execute platform init when firmware. Init serial.
629 (grub_halt): Implement.
630 (grub_exit): Likewise.
631 (grub_reboot): Likewise.
632 * term/serial.c (serial_hw_init): Update macros.
633 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
634 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
635 (image_targets): New target mipsel-yeeloong-flash.
636 (generate_image): Support IMAGE_YEELOONG_FLASH.
637 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
638 (grub_video_sm712_setup): Init card.
639 (grub_video_sm712_set_palette): Removed.
640 * video/sm712_init.c: New file.
642 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
644 * Makefile.in (install-local): Temporarily prepend $(builddir) to
645 PATH when running help2man and then run it on the unadorned
646 executable names, rather than passing $(builddir)/* paths to
647 help2man. This avoids the build directory ending up in generated
650 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
652 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
653 to avoid accidents when debugging with 'sh -x'.
654 * util/grub-mkrescue.in: Likewise.
655 * util/grub.d/00_header.in: Likewise.
656 * util/grub.d/10_hurd.in: Likewise.
657 * util/grub.d/10_kfreebsd.in: Likewise.
658 * util/grub.d/10_linux.in: Likewise.
659 * util/grub.d/10_netbsd.in: Likewise.
660 * util/grub.d/10_windows.in: Likewise.
661 * util/grub.d/20_linux_xen.in: Likewise.
662 * util/grub.d/30_os-prober.in: Likewise.
663 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
665 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
667 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
668 last character in the buffer.
669 Reported by: Vladimir Serbinenko.
671 2010-06-29 Robert Millan <rmh@gnu.org>
673 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
674 (Command-line and menu entry commands): Document `badram' command.
676 2010-06-28 Robert Millan <rmh@gnu.org>
678 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
679 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
680 command using ${GRUB_BADRAM} as parameter.
682 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
684 * docs/grub.texi (Device map): New section.
685 (Themes): New section (stub).
686 * Makefile.in (docs/grub.info): The info documentation now builds
687 without errors. Make sure it stays that way.
689 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
691 Use normal parser for menu entries.
692 Reported by: Thomas Frauendorfer
694 * include/grub/parser.h (grub_parser_execute): Don't export.
695 * normal/menu.c (grub_menu_execute_entry_real): New function.
696 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
698 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
700 * docs/grub.texi (Embedded configuration): New section (replacing
701 old "Preset Menu" stub).
702 (Images): New section.
703 (configfile): Note that any menu entries defined in `file' are shown
706 2010-06-28 Josh Triplett <josh@joshtriplett.org>
708 * mmap/i386/pc/mmap_helper.S: Set CF on return.
710 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
712 * util/grub-install.in: Add --debug-image= option.
714 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
716 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
719 * util/deviceiter.c (check_device): Rename to ...
720 (check_device_readable_unique): ... this. Update all callers.
721 Maintain and check a list of which devices (by canonicalized name)
722 have already been seen.
723 (clear_seen_devices): New function.
724 (compare_file_names) [__linux__]: New function.
725 (grub_util_iterate_devices): Clear the list of seen devices on exit
726 and (just in case) on entry.
727 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
728 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
729 seen-devices list, superseded by general code in check_device.
731 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
733 * commands/cat.c (options): New variable.
734 (grub_cmd_cat): Parse options. If the --dos option is given, print
735 DOS-style "\r\n" line endings as simple newlines (Debian bug
737 (GRUB_MOD_INIT): Use extcmd.
738 (GRUB_MOD_FINI): Likewise.
739 * docs/grub.texi (cat): Document --dos.
741 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
743 XEN with Linux grub-mkconfig support.
745 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
746 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
747 GRUB_CMDLINE_XEN_DEFAULT.
748 * util/grub.d/20_linux_xen.in: New file.
750 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
752 Initialise VGA video on qemu ourselves.
754 * boot/i386/qemu/boot.S: Don't call 0xc000.
755 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
756 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
757 (kernel_img_HEADERS): Add pci.h.
758 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
759 * configure.ac: Force unifont on qemu and yeeloong.
760 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
761 (grub_vga_palette_write): Use correct register.
762 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
763 Call grub_qemu_init_cirrus.
764 * kern/i386/qemu/init.c: New file.
765 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
767 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
769 2010-06-26 Pavel Roskin <proski@gnu.org>
771 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
774 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
776 * docs/grub.texi (Simple configuration): Explain that
777 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
778 set to `true' to disable their respective recovery entries, not
781 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
783 Make the `source' command slightly faster.
785 * normal/main.c (grub_normal_execute): Don't re-read list files when
788 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
790 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
791 field position and mask size to red fields from mode_info, not
793 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
794 Remove redundant tag->common.framebuffer_type assignment.
795 Reported by: Seth Goldberg.
797 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
799 Sync up other versions of the Linux loader with Robert Millan's
800 change of 2010-01-09, "Make loader output a bit more user-friendly".
802 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
804 (grub_cmd_linux): Likewise.
805 (grub_cmd_initrd): Likewise.
806 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
807 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
809 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
811 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
812 larger than MEMORY_MAP_SIZE.
814 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
818 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
820 * script/parser.y: #include grub_script.tab.h header.
822 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
824 Support >3GiB and <16MiB RAM in i386-qemu.
826 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
827 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
828 (grub_lower_mem): Removed.
829 (grub_upper_mem): Likewise.
830 (mem_size): Made static.
831 (above_4g): New variable.
832 (grub_machine_mmap_init): Detect small mem_size and above_4g.
833 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
836 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
838 Cirrus 5446 and Bochs video cards support.
840 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
842 (video_cirrus_mod_SOURCES): New variable.
843 (video_cirrus_mod_CFLAGS): Likewise.
844 (video_cirrus_mod_LDFLAGS): Likewise.
845 (video_bochs_mod_SOURCES): Likewise.
846 (video_bochs_mod_CFLAGS): Likewise.
847 (video_bochs_mod_LDFLAGS): Likewise.
848 * include/grub/vga.h: New file.
849 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
850 (grub_video_fb_set_page_t): New type.
851 (grub_video_fb_setup): New prototype.
852 (grub_video_fb_swap_buffers): Likewise.
853 (grub_video_fb_get_info_and_fini): Likewise.
854 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
855 (CRTC_DATA_PORT): Likewise.
856 (CRTC_CURSOR): Likewise.
857 (CRTC_CURSOR_ADDR_HIGH): Likewise.
858 (CRTC_CURSOR_ADDR_LOW): Likewise.
859 (CRTC_CURSOR_DISABLE): Likewise.
860 (update_cursor): Use grub_vga_cr_write.
861 (grub_vga_text_setcursor): Likewise.
862 * video/bochs.c: New file.
863 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
865 (palette_size): Likewise.
866 (framebuffer): New variable.
867 (grub_video_fb_init): Use 'framebuffer'.
868 (grub_video_fb_fini): Likewise.
869 (grub_video_fb_get_info): Likewise.
870 (grub_video_fb_get_palette): Likewise.
871 (grub_video_fb_set_palette): Likewise.
872 (grub_video_fb_set_viewport): Likewise.
873 (grub_video_fb_get_viewport): Likewise.
874 (grub_video_fb_map_color): Likewise.
875 (grub_video_fb_map_rgb): Likewise.
876 (grub_video_fb_map_rgba): Likewise.
877 (grub_video_fb_unmap_color): Likewise.
878 (grub_video_fb_unmap_color_int): Likewise.
879 (grub_video_fb_fill_rect): Likewise.
880 (grub_video_fb_blit_bitmap): Likewise.
881 (grub_video_fb_blit_render_target): Likewise.
882 (grub_video_fb_scroll): Likewise.
883 (grub_video_fb_create_render_target): Likewise.
884 (grub_video_fb_doublebuf_blit_init): Likewise.
885 (grub_video_fb_set_active_render_target): Handle doublebuffering.
886 (doublebuf_pageflipping_update_screen): New function.
887 (doublebuf_pageflipping_init): Likewise.
888 (grub_video_fb_setup): Likewise.
889 (grub_video_fb_swap_buffers): Likewise.
890 (grub_video_fb_get_info_and_fini): Likewise.
891 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
893 (doublebuf_pageflipping_commit): Restructured into ...
894 (doublebuf_pageflipping_set_page): ... this.
895 (doublebuf_pageflipping_update_screen): Removed.
896 (doublebuf_pageflipping_init): Likewise.
897 (double_buffering_init): Likewise.
898 (grub_video_vbe_setup): Use grub_video_fb_setup.
899 (grub_video_vbe_swap_buffers): Removed.
900 (grub_video_vbe_set_active_render_target): Likewise.
901 (grub_video_vbe_get_active_render_target): Likewise.
902 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
903 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
904 grub_video_fb_set_active_render_target and
905 grub_video_fb_get_active_render_target.
906 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
907 (SEQUENCER_DATA_PORT): Likewise.
908 (MAP_MASK_REGISTER): Likewise.
909 (CRTC_ADDR_PORT): Likewise.
910 (CRTC_DATA_PORT): Likewise.
911 (START_ADDR_HIGH_REGISTER): Likewise.
912 (START_ADDR_LOW_REGISTER): Likewise.
913 (GRAPHICS_ADDR_PORT): Likewise.
914 (GRAPHICS_DATA_PORT): Likewise.
915 (READ_MAP_REGISTER): Likewise.
916 (INPUT_STATUS1_REGISTER): Likewise.
917 (INPUT_STATUS1_VERTR_BIT): Likewise.
918 (get_map_mask): Use grub_vga_sr_read.
919 (set_map_mask): Use grub_vga_sr_write.
920 (set_read_map): Use grub_vga_gr_write.
921 (set_start_address): Use grub_vga_cr_write.
922 * video/sm712.c (framebuffer): Remove leftover fields.
924 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
926 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
927 setting GRUB_VIDEO_BACKEND. Make it available as a user override
928 instead. Replace the gfxterm backend check with a check that
929 ${GRUB_PREFIX}/video.lst is non-empty.
930 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
932 (load_video): New generated function. Call it before loading
933 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
934 * util/grub.d/10_linux.in (linux_entry): Call load_video.
935 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
936 * docs/grub.texi (Simple configuration): Document
939 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
941 Use video functions in linux and xnu loaders.
943 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
944 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
945 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
946 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
947 loader/i386/pc/linux.c.
948 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
949 (find_line_len): Removed.
950 (find_framebuf): Likewise.
951 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
952 * loader/i386/efi/xnu.c: Removed.
953 * loader/i386/pc/xnu.c: Moved from here...
954 * loader/i386/xnu.c: ...here.
956 Enable priorities in video drivers.
958 * include/grub/video.h (grub_video_adapter_prio_t): New type.
959 (grub_video_adapter): New field prio.
960 (grub_video_register): Respect prio when inserting.
961 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
962 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
963 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
964 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
965 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
966 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
967 * video/sm712.c (grub_video_sm712_adapter): Likewise.
971 * include/grub/video.h (grub_video_driver_id_t): New value
972 GRUB_VIDEO_DRIVER_SDL.
973 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
975 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
977 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
979 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
981 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
983 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
984 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
986 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
988 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
989 directly, and recommend grub-install instead.
990 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
992 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
994 Fix i386-pc prefix handling with nested partitions (Debian bug
995 #585068). Note that the case where the core image is booted using
996 multiboot and relocated from its original location still requires
999 * kern/i386/pc/init.c (make_install_device): If the prefix starts
1000 with "(,", fill the boot drive in between those two characters, but
1001 expect that a full partition specification including partition map
1003 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
1004 specified, write a prefix without the drive name but including a
1005 full partition specification.
1007 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
1009 * util/grub-mkconfig.in: Ignore non-option arguments, for
1010 compatibility with older versions (before 2010-06-12) which did the
1011 same. In particular, this makes it easier to ship an update-grub
1012 wrapper which is compatible with that used with GRUB Legacy (Debian
1015 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1017 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
1018 for manual page generation.
1020 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1022 * po/POTFILES: Remove leftover commands/handler.c.
1024 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1026 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
1027 left this script non-functional.
1029 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1031 * docs/man/grub-emu.h2m: New file.
1033 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
1035 * docs/grub.texi (Commands): Document reduced command set in rescue
1037 (cpuid): New section.
1039 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
1041 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
1042 new partition naming style.
1043 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
1045 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
1047 Add "-o grub.iso" like cmdline options support.
1049 * util/grub-install.in: Improve cmdline option parsing.
1050 * util/grub-mkconfig.in: Likewise.
1051 * util/grub-mkrescue.in: Likewise.
1052 * util/grub-reboot.in: Likewise.
1053 * util/grub-set-default.in: Likewise.
1054 * util/i386/efi/grub-install.in: Likewise.
1055 * util/ieee1275/grub-install.in: Likewise.
1056 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1058 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1060 * .bzrignore: Ignore 41_custom.
1062 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1064 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
1066 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1068 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
1069 prototype declarations.
1071 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
1072 generating fs, partmap, and video lists.
1073 * include/grub/fs.h (grub_fs_register): Omit prototype if
1074 GRUB_LST_GENERATOR is defined.
1075 * include/grub/partition.h (grub_partition_map_register): Likewise.
1076 * include/grub/video.h (grub_video_register): Likewise.
1078 2010-06-12 Javier Martín <lordhabbit@gmail.com>
1080 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
1082 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1084 * util/grub-mkrescue.in: Support --xorriso argument.
1086 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1088 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
1089 Suggested by: Thomas Schmitt.
1091 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1093 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
1094 Suggested by: Thomas Schmitt.
1096 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1100 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
1101 * util/grub.d/41_custom.in: New file.
1103 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1105 * util/grub-mkrescue.in (make_image): Remove sh module, which has
1106 been merged back into normal.
1108 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1110 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
1111 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
1113 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1115 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
1116 when generating manual pages.
1117 * docs/man/grub-bin2h.h2m: New file.
1118 * docs/man/grub-editenv.h2m: New file.
1119 * docs/man/grub-fstest.h2m: New file.
1120 * docs/man/grub-install.h2m: New file.
1121 * docs/man/grub-macho2img.h2m: New file.
1122 * docs/man/grub-mkconfig.h2m: New file.
1123 * docs/man/grub-mkdevicemap.h2m: New file.
1124 * docs/man/grub-mkfont.h2m: New file.
1125 * docs/man/grub-mkimage.h2m: New file.
1126 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
1127 * docs/man/grub-mkrelpath.h2m: New file.
1128 * docs/man/grub-mkrescue.h2m: New file.
1129 * docs/man/grub-ofpathname.h2m: New file.
1130 * docs/man/grub-pe2elf.h2m: New file.
1131 * docs/man/grub-probe.h2m: New file.
1132 * docs/man/grub-reboot.h2m: New file.
1133 * docs/man/grub-script-check.h2m: New file.
1134 * docs/man/grub-set-default.h2m: New file.
1135 * docs/man/grub-setup.h2m: New file.
1137 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
1139 Use FOR_* macros instead of *_iterate whenever possible.
1141 * commands/handler.c: Removed.
1142 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
1143 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
1144 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1145 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
1146 (grub_probe_SOURCES): Remove kern/parser.c.
1147 (util/grub-script-check.c_DEPENDENCIES): Removed.
1148 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
1149 and grub_script_check_init.c.
1150 (grub_script_check_init.lst): Removed.
1151 (grub_script_check_init.h): Likewise.
1152 (grub_script_check_init.c): Likewise.
1153 (pkglib_MODULES): Remove handler.mod and sh.mod.
1154 (handler_mod_SOURCES): Removed.
1155 (handler_mod_CFLAGS): Likewise.
1156 (handler_mod_LDFLAGS): Likewise.
1157 (normal_mod_SOURCES): Remove normal/handler.c.
1158 Add script/main.c, script/script.c, script/execute.c,
1159 script/function.c, script/lexer.c, grub_script.tab.c
1160 and grub_script.yy.c.
1161 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1162 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1163 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
1164 (grub_setup_SOURCES): Remove kern/parser.c.
1165 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1166 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
1167 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1168 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1169 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1170 (grub_setup_SOURCES): Remove kern/parser.c.
1171 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1172 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
1173 * include/grub/command.h (grub_command_iterate): Removed.
1174 (FOR_COMMANDS): New macro.
1175 * include/grub/dl.h (grub_dl): New member next.
1176 (grub_dl_iterate): Removed.
1177 (grub_dl_head): New variable declaration.
1178 (FOR_DL_MODULES): New macro.
1179 * include/grub/fs.h: Include list.h.
1180 (grub_fs): Make next first element.
1181 (grub_fs_list): New variable declaration.
1182 (grub_fs_register): Make inline.
1183 (grub_fs_unregister): Likewise.
1184 (grub_fs_iterate): Removed.
1185 (FOR_FILESYSTEMS): New macro.
1186 * include/grub/handler.h: Removed.
1187 * include/grub/list.h (grub_list_hook_t): Removed.
1188 (grub_list_test_t): Likewise.
1189 (grub_list_pop): Likewise.
1190 (grub_list_iterate): Likewise.
1191 (grub_list_insert): Likewise.
1192 (FOR_LIST_ELEMENTS): New macro.
1193 * include/grub/parser.h (grub_parser_class): Removed.
1194 (grub_parser_register): Likewise.
1195 (grub_parser_unregister): Likewise.
1196 (grub_parser_get_current): Likewise.
1197 (grub_parser_set_current): Likewise.
1198 (grub_register_rescue_parser): Likewise.
1199 (grub_rescue_parse_line): New function.
1200 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
1201 * include/grub/script_sh.h (grub_script_function_list): New variable
1203 (FOR_SCRIPT_FUNCTIONS): New macro.
1204 (grub_script_function_iterate): Removed.
1205 (grub_normal_parse_line): New prototype.
1206 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
1207 (FOR_DISABLED_TERM_INPUTS): Likewise.
1208 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
1209 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
1210 * include/grub/video.h (grub_video_adapter): Move 'next' to first
1212 (grub_video_register): Inline.
1213 (grub_video_unregister): Likewise.
1214 (grub_video_adapter_list): New variable declaration.
1215 (grub_video_iterate): Removed.
1216 (FOR_VIDEO_ADAPTERS): New macro.
1217 * kern/dl.c (grub_dl_list): Removed. All users updated.
1218 (grub_dl_iterate): Removed.
1219 * kern/fs.c (grub_fs_list): Make global.
1220 (grub_fs_register): Removed.
1221 (grub_fs_unregister): Likewise.
1222 (grub_fs_iterate): Likewise.
1223 * kern/handler.c: Removed.
1224 * kern/list.c (grub_list_pop): Removed.
1225 (grub_list_iterate): Likewise.
1226 (grub_list_insert): Likewise.
1227 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
1228 (grub_prio_list_insert): Don't use grub_list_insert.
1229 * kern/main.c (grub_register_rescue_parser): Don't call
1230 grub_register_rescue_parser.
1231 * kern/parser.c (grub_parser_class): Removed.
1232 (grub_parser_execute): Use grub_rescue_parse_line.
1233 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
1234 (grub_rescue_parser): Removed.
1235 (grub_register_rescue_parser): Likewise.
1236 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
1237 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
1238 (grub_auth_check_authentication): Likewise.
1239 * normal/completion.c (iterate_command): Removed.
1240 (grub_normal_do_completion): Use FOR_COMMANDS.
1241 * normal/handler.c: Removed.
1242 * normal/main.c (read_config_file): Remove parser changing.
1243 (grub_normal_execute): Don't call read_handler_list.
1244 (grub_normal_read_line_real): Statically allocate prompt.
1245 (grub_cmdline_run): Use grub_normal_parse_line.
1246 (GRUB_MOD_FINI): Don't call free_handler_list.
1247 * normal/menu_entry.c (run): Likewise.
1248 * script/function.c (grub_script_function_list): Make global.
1249 (grub_script_function_iterate): Removed.
1250 * script/main.c (grub_normal_parse_line): Make global.
1251 (grub_sh_parser): Removed.
1252 (GRUB_MOD_INIT): Likewise.
1253 (GRUB_MOD_FINI): Likewise.
1254 * tests/lib/functional_test.c (grub_functional_test): Use
1256 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
1257 (grub_test_run): Use FOR_LIST_ELEMENTS.
1258 * tests/lib/unit_test.c (main): Likewise.
1259 * util/deviceiter.c (grub_util_iterate_devices): Don't use
1261 * util/grub-fstest.c (grub_term_input_class): Removed.
1262 (grub_term_output_class): Likewise.
1263 * util/grub-probe.c: Likewise.
1264 * util/i386/pc/grub-setup.c: Likewise.
1265 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1266 * util/grub-script-check.c (main): Don't call grub_init_all and
1268 * video/video.c (grub_video_adapter_list): Make global.
1269 (grub_video_register): Removed.
1270 (grub_video_unregister): Likewise.
1271 (grub_video_iterate): Likewise.
1273 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1275 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
1276 reported by Henrique Ferreiro.
1278 2010-06-09 Robert Millan <rmh@gnu.org>
1280 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
1281 ones, when both are available.
1283 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1285 Make --version uniform and avoid hard-coded program name.
1287 * util/grub-mkimage.c (main): Use `program_name' instead of
1289 * util/i386/pc/grub-setup.c (main): Likewise.
1290 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
1291 * util/grub-install.in: Save the basename of $0 in $self, and use the
1292 latter in informational messages. Use the same format for --version
1293 as the binary programs.
1294 * util/grub-mkconfig.in: Likewise.
1295 * util/grub-mkrescue.in: Likewise.
1296 * util/grub-reboot.in: Likewise.
1297 * util/grub-set-default.in: Likewise.
1298 * util/i386/efi/grub-install.in: Likewise.
1299 * util/ieee1275/grub-install.in: Likewise.
1300 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1302 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1304 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
1305 embedding area. Use <= instead of == when checking for non-emptiness.
1307 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1309 * configure.ac: Add `.' to the directories searched for unifont.
1311 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1313 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
1316 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1318 * docs/grub.texi (History): Expand to cover GRUB 2.
1319 (Serial terminal): Refer to `terminal_input' and `terminal_output'
1320 commands, not `terminal'.
1322 (terminal_input): New section.
1323 (terminal_output): New section.
1324 (uppermem): New section (stub).
1325 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
1327 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1329 * docs/grub.texi (Security): Menu entries are unrestricted by
1330 default, not restricted to superusers as I had previously thought.
1331 Reword to account for this.
1333 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1335 * kern/emu/misc.c (device_mapper_null_log): New function.
1336 (grub_device_mapper_supported): New function.
1337 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
1339 * kern/emu/hostdisk.c (find_partition_start): Check whether
1340 device-mapper is supported before trying to use it.
1341 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
1343 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1345 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
1346 (File name syntax): Likewise.
1347 (help): --all is no longer supported in GRUB 2. Be more precise
1348 about pattern matching.
1350 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1352 * normal/completion.c (grub_normal_do_completion): When completing
1353 arguments to "set" and the current word contains an equals sign,
1354 skip to after the equals sign before starting completion.
1356 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1358 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
1360 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1362 * docs/grub.texi (Network): New section.
1363 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
1364 `(nd)' as in GRUB Legacy.
1365 (pxe_unload): New section.
1367 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1369 * docs/grub.texi (Troubleshooting): `echo' is not usually available
1370 in the rescue shell, so recommend using `set' instead. Thanks,
1373 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1375 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
1376 (password): New section.
1377 (password_pbkdf2): New section.
1378 (search): New section.
1379 (Security): New section.
1380 (Troubleshooting): New section, currently very incomplete.
1381 (Invoking grub-mkpasswd-pbkdf2): New section.
1382 (Internals): New section, currently very incomplete.
1384 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1386 * util/grub.d/00_header.in: Add some more quoting (of
1387 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
1389 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
1391 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1393 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
1394 to `count', fixing variable shadowing that broke the -c option.
1396 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
1398 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
1399 in case they contain spaces.
1401 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1403 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
1404 "part_" to partmap module names, in line with grub-install.
1405 Reported by: Jindřich Makovička (Debian bug #584426).
1407 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1409 * util/grub-mkimage.c: Make target-related error messages slightly
1410 more helpful; -O talks about "format". Explicitly point to the use
1411 of -O if no target is specified.
1412 Reported by: Didier Raboud (Debian bug #584415).
1414 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
1416 * INSTALL: Document several build requirements for optional features
1417 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
1419 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1421 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
1422 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
1423 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
1425 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1427 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
1428 Thanks to Jordan Uggla for spotting this.
1430 2010-06-02 Aleš Nesrsta <starous@volny.cz>
1432 Finally make USB usable.
1434 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
1435 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
1436 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
1437 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
1438 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
1439 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
1440 (GRUB_OHCI_FSMPS): Likewise.
1441 (GRUB_OHCI_PERIODIC_START): Likewise.
1442 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
1443 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
1444 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
1445 (GRUB_OHCI_SET_PORT_RESET): Likewise.
1446 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
1447 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
1448 (grub_ohci_transaction): Likewise.
1449 (grub_ohci_transfer): Improve condition detection algorithms.
1450 Handle toggle property. Program the transactions correctly.
1451 Improve error handling. Various important fixups.
1452 (grub_ohci_portstatus): Put register writes in right order.
1453 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
1454 (grub_uhci_transfer): Don't show "failed" message on success.
1455 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
1457 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
1459 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
1460 before initialization is completed. Use IN direction for empty
1461 transfers. Use last_trans and compute toggle.
1462 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
1463 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
1464 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
1465 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
1466 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
1467 (grub_usb_device): Increase toggle to 256.
1468 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
1469 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
1470 GRUB_USBMS_SUBCLASS_SFF8070.
1471 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
1472 (grub_scsi_inquiry): New member page and alloc_length.
1473 (grub_scsi_request_sense): New structure.
1474 (grub_scsi_request_sense_data): Likewise.
1475 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
1477 * disk/scsi.c (grub_scsi_request_sense): New function.
1478 (grub_scsi_test_unit_ready): Likewise.
1479 (grub_scsi_inquiry): Fill new fields.
1480 (grub_scsi_read_capacity): Likewise.
1481 (grub_scsi_read10): Add request sense at the end.
1482 (grub_scsi_read12): Likewise.
1483 (grub_scsi_write10): Likewise.
1484 (grub_scsi_write12): Likewise.
1485 (grub_scsi_open): Add Test Unit Ready.
1486 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
1487 Support additional subclasses. Con't clear halt yet. Activate the
1488 proper config. Calculate LUNs correctly.
1489 (grub_usbms_transfer): Various important fixups.
1491 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1493 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1494 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1495 (grub_ohci_fini_hw): New function.
1496 (grub_ohci_restore_hw): Likewise.
1497 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1498 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1499 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1501 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1503 Dedicated DMA allocations.
1505 * bus/pci.c (grub_memalign_dma32): New function
1506 (grub_dma_free): Likewise.
1507 (grub_dma_get_virt): Likewise.
1508 (grub_dma_get_phys): Likewise.
1509 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1510 (grub_ohci_pci_iter): Use dma32_alloc.
1511 (grub_ohci_transfer): Likewise.
1512 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1513 (grub_usb_bulk_readwrite): Likewise.
1514 * include/grub/pci.h: Add declarations.
1516 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1520 * bus/cs5536.c: New file.
1521 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1522 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1523 (cs5536_mod_SOURCES): New variable.
1524 (cs5536_mod_CFLAGS): Likewise.
1525 (cs5536_mod_LDFLAGS): Likewise.
1526 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1528 (kernel_img_SOURCES): Add bus/cs5536.c.
1529 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1531 (usb_mod_SOURCES): New variable.
1532 (usb_mod_CFLAGS): New variable.
1533 (usb_mod_LDFLAGS): New variable.
1534 (usbtest_mod_SOURCES): New variable.
1535 (usbtest_mod_CFLAGS): New variable.
1536 (usbtest_mod_LDFLAGS): New variable.
1537 (ohci_mod_SOURCES): New variable.
1538 (ohci_mod_CFLAGS): New variable.
1539 (ohci_mod_LDFLAGS): New variable.
1540 (usbms_mod_SOURCES): New variable.
1541 (usbms_mod_CFLAGS): New variable.
1542 (usbms_mod_LDFLAGS): New variable.
1543 (usb_keyboard_mod_SOURCES): New variable.
1544 (usb_keyboard_mod_CFLAGS): New variable.
1545 (usb_keyboard_mod_LDFLAGS): New variable.
1546 * include/grub/smbus.h: New file.
1547 * include/grub/cs5536.h: New file.
1549 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1551 * util/grub.d/00_header.in: Add safety check to make sure that
1552 ${locale_dir} exists before trying to probe it.
1554 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1556 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1557 per the GNU Coding Standards; this is now too obscure to be worth
1560 (chainloader): Remove cross-reference to `SCO UnixWare'.
1562 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1564 * docs/grub.texi (Chain-loading): New section.
1565 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1566 adjusted for GRUB 2.
1567 (SCO UnixWare): Likewise.
1569 (chainloader): Add reference to `Block list syntax'.
1570 (drivemap): New section.
1571 (parttool): New section.
1573 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1575 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1577 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1578 (Installing GRUB using grub-install): Remove reference to the grub
1579 shell; mention `grub-mkimage' and `grub-setup' instead.
1580 (Invoking grub-install): Likewise.
1581 (Interface): Add reference to `Menu entry editor'.
1582 (serial): Remove `--device' option.
1584 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1586 * docs/grub.texi (Configuration): New section, documenting
1587 configuration file generation using grub-mkconfig. I've left a slot
1588 for documenting the full shell scripting format but have not yet
1589 started on writing that up.
1590 (Invoking grub-mkconfig): New section.
1592 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1594 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1595 (GNU GRUB manual): Likewise.
1596 (General commands): Update description of `terminfo' for GRUB 2.
1598 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1600 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1601 (GRUB_MOD_INIT): Fix capitalisation.
1602 * docs/grub.texi (Command-line and menu entry commands): Document
1603 gettext and gptsync commands.
1605 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1607 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1608 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1610 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1612 Add btrfs probing support, currently only in the single-device case.
1614 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1616 (grub_guess_root_device): Call find_root_device_from_mountinfo
1617 before looking in /dev.
1619 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1621 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1622 GRUB_DISK_SIZE_UNKNOWN.
1623 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1625 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1627 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1628 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1629 corrupted or not synced properly.
1631 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1633 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1634 Reported by: Seth Goldberg.
1636 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1638 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1640 Reported by: Seth Goldberg.
1642 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1644 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1645 Reported by: Seth Goldberg.
1647 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1649 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1650 64-bit address as signed on MIPS.
1652 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1654 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1655 to the empty string.
1657 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1659 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1661 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1662 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1663 * kern/misc.c (__enable_execute_stack): Disable on
1666 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1668 Make grub-probe work with symbolic links under /dev/mapper as well
1669 as with real block devices. The Linux world seems to be (at best)
1670 in transition here, and GRUB shouldn't get caught in the middle.
1672 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1675 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1677 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1678 input files (in which case exit zero).
1680 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1682 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1683 return NULL for various reasons even if it has a maximum-length
1684 buffer: for example, there might be a symlink loop, or the path
1685 might exceed PATH_MAX. If this happens, return NULL.
1687 2010-05-27 Robert Millan <rmh@gnu.org>
1689 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1690 partmap module to handle cross-partmap setups.
1691 Reported by Orestes Mas. Gràcies!
1693 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1695 * util/grub-mkrescue.in: Initialise override_dir rather than
1696 assuming that it's unset or empty in the environment.
1698 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1700 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1701 variable index into p_index to suppress a warning with -Wshadow.
1703 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1705 * INSTALL: Added flex >= 2.5.35 requirement.
1707 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1709 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1711 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1715 * commands/i386/cmostest.c: New file.
1716 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1717 (cmostest_mod_SOURCES): New variable.
1718 (cmostest_mod_CFLAGS): Likewise.
1719 (cmostest_mod_LDFLAGS): Likewise.
1720 * conf/i386-pc.rmk: Likewise.
1721 * docs/grub.texi (Vendor power-on keys): New section.
1722 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1723 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1724 and GRUB_BUTTON_CMOS_ADDRESS.
1725 * util/grub.d/00_header.in: Handle powering-on by separate button.
1727 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1729 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1730 Removed drawing_scrollbar argument. All users updated
1732 Reported by Jo Shields
1734 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1736 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1737 buffer since gfxterm handles double repaint.
1739 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1741 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1742 * term/gfxterm.c (real_scroll): Likewise.
1744 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1746 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1747 before calling BIOS.
1749 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1751 * include/grub/i18n.h: Always enable grub_gettext.
1753 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1755 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1756 partition naming style.
1758 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1760 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1761 not the first option.
1763 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1765 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1767 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1769 * util/misc.c: Move inclusion of <limits.h> to ...
1770 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1772 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1774 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1775 Fix merge error in NetBSD code.
1776 (find_partition_start) [__NetBSD__]: Likewise.
1778 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1780 Fix grub-mkrescue usage unit testing.
1782 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1784 2010-05-18 Christian Franke <franke@computer.org>
1786 * util/grub.d/10_windows.in: Use path names instead of
1787 drive letters to prevent warning from Cygwin 1.7.
1788 Add drivemap command to menuentry if needed.
1790 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1792 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1793 gnumach and gnumach.gz.
1795 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1797 * include/grub/i18n.h (gettext): Inline instead of using #define.
1798 (grub_gettext): Likewise.
1801 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1803 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1804 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1805 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1806 (main): Add a slash after pkglibdirroot.
1808 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1810 * util/grub-install.in: Add missing "in" keyword.
1812 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1814 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1815 Reported by: Seth Goldberg.
1817 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1819 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1821 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1823 * configure.ac: Check for Linux device-mapper support.
1825 * util/hostdisk.c (device_is_mapped): New function.
1826 (find_partition_start): New function, partly broken out from
1827 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1828 device-mapper support added.
1829 (linux_find_partition): Use find_partition_start.
1830 (convert_system_partition_to_system_disk): Add `st' argument.
1831 Support Linux /dev/mapper/* devices if device-mapper support is
1832 available; only DM-RAID devices are understood at present.
1833 (find_system_device): Add `st' argument. Pass it to
1834 convert_system_partition_to_system_disk.
1835 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1836 find_system_device and convert_system_partition_to_system_disk. Use
1837 find_partition_start.
1839 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1840 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1841 * util/deviceiter.c [__linux__]: Define MINOR.
1842 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1843 * util/mkdevicemap.c (grub_putchar): New function.
1844 (grub_getkey): New function.
1845 (grub_refresh): New function.
1846 (main): Set debug=all if -v -v is used.
1848 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1850 Fix build with non-GNU libcs.
1852 * util/misc.c (canonicalize_file_name): Move to ...
1853 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1854 grub_make_system_path_relative_to_its_root.
1856 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1858 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1859 we handle finding grub-mkimage. Default to finding grub-mkimage in
1860 ${bindir} with program_transform_name applied, and provide a
1861 --grub-mkimage option to override this.
1863 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1865 Remove grub-mkisofs.
1867 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1868 (grub_mkisofs_SOURCES): Removed.
1869 (grub_mkisofs_CFLAGS): Removed.
1870 * util/mkisofs/defaults.h: Removed.
1871 * util/mkisofs/eltorito.c: Likewise.
1872 * util/mkisofs/exclude.h: Likewise.
1873 * util/mkisofs/hash.c: Likewise.
1874 * util/mkisofs/include/: Likewise.
1875 * util/mkisofs/include/fctldefs.h: Likewise.
1876 * util/mkisofs/include/mconfig.h: Likewise.
1877 * util/mkisofs/include/prototyp.h: Likewise.
1878 * util/mkisofs/include/statdefs.h: Likewise.
1879 * util/mkisofs/iso9660.h: Likewise.
1880 * util/mkisofs/joliet.c: Likewise.
1881 * util/mkisofs/match.c: Likewise.
1882 * util/mkisofs/match.h: Likewise.
1883 * util/mkisofs/mkisofs.c: Likewise.
1884 * util/mkisofs/mkisofs.h: Likewise.
1885 * util/mkisofs/msdos_partition.h: Likewise.
1886 * util/mkisofs/multi.c: Likewise.
1887 * util/mkisofs/name.c: Likewise.
1888 * util/mkisofs/rock.c: Likewise.
1889 * util/mkisofs/tree.c: Likewise.
1890 * util/mkisofs/write.c: Likewise.
1892 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1894 Unify grub-mkimage accross platforms.
1896 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1897 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1898 (grub_mkelfimage_SOURCES): Removed.
1899 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1900 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1901 (bin_UTILITIES): Add grub-mkimage.
1902 (grub_mkimage_SOURCES): New variable.
1903 (kernel_img_HEADERS): Remove machine/kernel.h.
1904 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1905 (pkglib_PROGRAMS): Add kernel.img.
1906 (kernel_img_HEADERS): Add machine/kernel.h.
1907 (kernel_img_FORMAT): Removed.
1908 (bin_UTILITIES): Remove grub-mkimage.
1909 (grub_mkimage_SOURCES): Removed.
1910 (grub_mkimage_CFLAGS): Likewise.
1911 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1912 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1913 (pkglib_PROGRAMS): Add kernel.img.
1914 (bin_UTILITIES): Remove grub-mkimage.
1915 (grub_mkimage_SOURCES): Removed.
1916 (grub_mkimage_CFLAGS): Likewise.
1917 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1918 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1919 (pkglib_PROGRAMS): Add kernel.img.
1920 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1921 (pkglib_PROGRAMS): Add kernel.img.
1922 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1923 (grub_mkimage_SOURCES): Removed.
1924 (grub_mkimage_CFLAGS): Likewise.
1925 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1926 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1927 (pkglib_PROGRAMS): Add kernel.img.
1928 (bin_UTILITIES): Remove grub-mkimage.
1929 (grub_mkimage_SOURCES): Removed.
1930 (grub_mkimage_CFLAGS): Likewise.
1931 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1932 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1933 (grub_mkimage_SOURCES): Removed.
1934 (grub_mkimage_CFLAGS): Likewise.
1935 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1936 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1937 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1938 (grub_pe32_optional_header): ... this.
1939 (grub_pe64_optional_header): ... and this. All users updated.
1940 (GRUB_PE32_PE32_MAGIC): Split into ..
1941 (GRUB_PE32_PE32_MAGIC): .. this.
1942 (GRUB_PE32_PE64_MAGIC): .. and this.
1943 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1944 * include/grub/elf.h (PT_GNU_STACK): New definition.
1945 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1946 * include/grub/i386/efi/kernel.h: Likewise.
1947 * include/grub/i386/kernel.h: Likewise.
1948 * include/grub/i386/pc/kernel.h: Likewise.
1949 * include/grub/i386/qemu/boot.h: Likewise.
1950 * include/grub/mips/kernel.h: Likewise.
1951 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1952 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1953 * include/grub/powerpc/kernel.h: Likewise.
1954 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1955 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1956 * include/grub/sparc64/kernel.h: Likewise.
1957 * include/grub/x86_64/efi/kernel.h: Likewise.
1958 * include/grub/x86_64/kernel.h: Likewise.
1959 * include/grub/offsets.h: New file.
1960 * include/grub/kernel.h (grub_module_info): Split into ...
1961 (grub_module_info32): ... this.
1962 (grub_module_info64): ... and this.
1963 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1964 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1965 (grub_boot_blocklist): Moved from here ...
1966 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1967 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1968 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1969 * include/grub/types.h (grub_target_to_host16): Removed.
1970 (grub_target_to_host32): Likewise.
1971 (grub_target_to_host64): Likewise.
1972 (grub_host_to_target16): Likewise.
1973 (grub_host_to_target32): Likewise.
1974 (grub_host_to_target64): Likewise.
1975 (grub_host_to_target_addr): Likewise.
1977 Support grub-mkrescue for efi, coreboot and qemu.
1979 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1980 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1981 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1982 * util/grub-mkrawimage.c: Moved from here ...
1983 * util/grub-mkimage.c: ... here. All users updated.
1984 (ALIGN_ADDR): Use image_target.
1985 (TARGET_NO_FIELD): New const.
1986 (image_target_desc): New type.
1987 (image_targets): New array.
1988 (grub_target_to_host64): Use image_target.
1989 (grub_target_to_host32): Likewise.
1990 (grub_target_to_host16): Likewise.
1991 (grub_host_to_target64): Likewise.
1992 (grub_host_to_target32): Likewise.
1993 (grub_host_to_target16): Likewise.
1994 (grub_host_to_target_addr): Likewise.
1995 (generate_image): Handle multiimage.
1996 (main): Require -O parameter. All users updated.
1997 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1998 util/efi/grub-mkimage.c
1999 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
2000 New option --rom-directory.
2002 * util/i386/efi/grub-mkimage.c: Removed.
2003 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
2004 (grub_target_to_host32): Likewise.
2005 (grub_target_to_host64): Likewise.
2006 (grub_host_to_target16): Likewise.
2007 (grub_host_to_target32): Likewise.
2008 (grub_host_to_target64): Likewise.
2009 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
2010 (grub_target_to_host32): Likewise.
2011 (grub_target_to_host64): Likewise.
2012 (grub_host_to_target16): Likewise.
2013 (grub_host_to_target32): Likewise.
2014 (grub_host_to_target64): Likewise.
2016 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
2018 Source tree is reorganized for emu build.
2020 * include/grub/util/console.h: Move from here...
2021 * include/grub/emu/console.h: ...to here.
2022 * include/grub/util/getroot.h: Move from here...
2023 * include/grub/emu/getroot.h: ...to here.
2024 * include/grub/util/hostdisk.h: Move from here...
2025 * include/grub/emu/hostdisk.h: ...to here.
2026 * util/console.c: Move from here...
2027 * kern/emu/console.c: ...to here.
2028 * util/getroot.c: Move from here...
2029 * kern/emu/getroot.c: ...to here.
2030 * util/grub-emu.c: Move from here...
2031 * kern/emu/main.c: ...to here.
2032 * util/hostdisk.c: Move from here...
2033 * kern/emu/hostdisk.c: ...to here.
2034 * util/hostfs.c: Move from here...
2035 * kern/emu/hostfs.c: ...to here.
2036 * util/mm.c: Move from here...
2037 * kern/emu/mm.c: ...to here.
2038 * util/pci.c: Move from here...
2039 * bus/emu/pci.c: ...to here.
2040 * util/sdl.c: Move from here...
2041 * video/emu/sdl.c: ...to here.
2042 * util/time.c: Move from here...
2043 * kern/emu/time.c: ...to here.
2044 * util/usb.c: Move from here...
2045 * bus/usb/emu/usb.c: ...to here.
2047 * include/grub/emu/misc.h: New header for grub-emu functions.
2048 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
2050 * conf/any-emu.rmk: Rule updates for above renames.
2051 * conf/common.rmk: Likewise.
2052 * conf/i386-pc.rmk: Likewise.
2053 * conf/i386-qemu.rmk: Likewise.
2054 * conf/mips.rmk: Likewise.
2055 * conf/sparc64-ieee1275.rmk: Likewise.
2056 * conf/x86-efi.rmk: Likewise.
2058 * disk/lvm.h: #include updates for above renames.
2059 * util/grub-mkrelpath.c: Likewise.
2060 * util/grub-probe.c: Likewise.
2061 * util/i386/pc/grub-setup.c: Likewise.
2062 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2063 * kern/emu/console.c: Likewise.
2064 * kern/emu/getroot.c: Likewise.
2065 * kern/emu/hostdisk.c: Likewise.
2066 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
2068 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
2069 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
2070 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
2071 * util/misc.c: Remove grub-emu functions.
2073 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2076 Reported by: Thorsten Grützmacher.
2078 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
2080 (circprog_set_property): Register and unregister timeout hook.
2081 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
2082 (label_destroy): Free template. and unregister hook.
2083 (label_set_state): New function.
2084 (label_set_property): Handle templates and hooks.
2085 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
2087 (progress_bar_set_property): Register and unregister timeout hook.
2088 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
2089 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
2090 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
2091 (update_timeout_visit): Removed.
2092 (update_timeouts): New function.
2093 (redraw_timeouts): Likewise.
2094 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
2095 (grub_gfxmenu_clear_timeout): Likewise.
2096 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
2097 (grub_gfxmenu_timeout_notify): Likewise.
2098 (grub_gfxmenu_timeout_notifications): New external variable.
2099 (grub_gfxmenu_timeout_register): New function.
2100 (grub_gfxmenu_timeout_unregister): Likewise.
2102 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2104 Transform (broken) vga terminal into (working) vga video driver.
2106 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
2107 video/i386/pc/vga.c.
2108 * include/grub/video.h (grub_video_driver_id):
2109 Add GRUB_VIDEO_DRIVER_VGA.
2110 * term/i386/pc/vga.c: Renamed to ...
2111 * video/i386/pc/vga.c: ...this
2112 (DEBUG_VGA): Removed.
2113 (CHAR_WIDTH): Likewise.
2114 (CHAR_HEIGHT): Likewise.
2115 (TEXT_WIDTH): Likewise.
2116 (TEXT_HEIGHT): Likewise.
2117 (DEFAULT_FG_COLOR): Likewise.
2118 (DEFAULT_BG_COLOR): Likewise.
2119 (colored_char): Likewise.
2122 (cursor_state): Likewise.
2123 (fg_color): Likewise.
2124 (bg_color): Likewise.
2125 (text_buf): Likewise.
2128 (framebuffer): New variable.
2129 (set_read_map): Disabled.
2130 (setup): New variable.
2131 (is_target): Likewise.
2132 (grub_vga_mod_init): Likewise.
2133 (grub_vga_mod_fini): Likewise.
2134 (check_vga_mem): Likewise.
2135 (write_char): Likewise.
2136 (write_cursor): Likewise.
2137 (scroll_up): Likewise.
2138 (grub_vga_putchar): Likewise.
2139 (grub_vga_getcharwidth): Likewise.
2140 (grub_vga_getwh): Likewise.
2141 (grub_vga_getxy): Likewise.
2142 (grub_vga_gotoxy): Likewise.
2143 (grub_vga_cls): Likewise.
2144 (grub_vga_setcolorstate): Likewise.
2145 (grub_vga_setcursor): Likewise.
2146 (grub_video_vga_init): New function.
2147 (grub_video_vga_setup): Likewise.
2148 (grub_video_vga_fini): Likewise.
2149 (update_target): Likewise.
2150 (grub_video_vga_blit_bitmap): Likewise.
2151 (grub_video_vga_blit_render_target): Likewise.
2152 (grub_video_vga_set_active_render_target): Likewise.
2153 (grub_video_vga_get_active_render_target): Likewise.
2154 (grub_video_vga_swap_buffers): Likewise.
2155 (grub_video_vga_set_palette): Likewise.
2156 (grub_video_vga_get_info_and_fini): Likewise.
2157 (grub_vga_term): Removed.
2158 (grub_video_vga_adapter): New variable.
2159 (GRUB_MOD_INIT): Register a video driver instead of terminal.
2160 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
2162 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2164 * video/readers/jpeg.c: Indented.
2166 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2168 Various jpeg cleanups.
2170 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
2171 (grub_jpeg_decode_quan_table): Use sizeof.
2172 (grub_jpeg_decode_du): Use ARRAY_SIZE.
2174 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
2176 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
2177 tables. Ignore non-last ac bit.
2178 (grub_jpeg_decode_quan_table): Likewise.
2180 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2182 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2183 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
2184 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2185 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
2186 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
2187 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
2189 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2191 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
2194 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2196 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
2198 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2200 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
2203 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2205 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
2208 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2210 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
2213 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2215 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
2217 2010-05-01 Christian Franke <franke@computer.org>
2219 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
2220 Remove broken Cygwin path conversion.
2221 * util/misc.c: [__CYGWIN__] Add include and define.
2222 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
2224 (make_system_path_relative_to_its_root): Simplify loop, replace early
2226 [__CYGWIN__] Add conversion to win32 path.
2227 Include "/" case in trailing slash removal.
2229 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2231 * kern/main.c (grub_load_config): Fix copy-pasted comment.
2232 Reported by: Seth Goldberg
2234 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2236 * commands/help.c (grub_cmd_help): Fix a typo.
2237 Reported by: Seth Goldberg
2239 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2241 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
2243 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
2244 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
2245 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
2246 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
2247 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
2248 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
2249 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2250 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2251 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2252 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2253 * normal/context.c (GRUB_MOD_INIT): Likewise.
2254 * normal/main.c (GRUB_MOD_INIT): Likewise.
2255 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2256 * term/serial.c (GRUB_MOD_INIT): Likewise.
2257 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2259 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2261 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
2264 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2266 * commands/iorw.c: New file.
2267 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
2268 (iorw_mod_SOURCES): New variable.
2269 (iorw_mod_CFLAGS): Likewise.
2270 (iorw_mod_LDFLAGS): Likewise.
2272 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2276 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
2277 * normal/main.c (hotkey_aliases): New variable.
2278 (grub_normal_add_menu_entry): Parse "--hotkey".
2279 * normal/menu_text.c (run_menu): Handle hotkeys.
2281 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2283 * kern/i386/coreboot/init.c (grub_machine_init): Call
2284 grub_machine_mmap_init on qemu.
2286 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2288 * boot/i386/qemu/boot.S: Add a missing .code16.
2290 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2292 Use LBIO on coreboot.
2294 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
2295 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
2296 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
2298 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
2299 grub_machine_mmap_init on coreboot.
2300 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
2301 GRUB_LINUXBIOS_MEMBER_LINK.
2302 (grub_machine_mmap_iterate): Fix declaration.
2303 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
2305 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2307 Split coreboot and multiboot ports.
2309 * conf/i386-multiboot.rmk: New file.
2310 * configure.ac: Add multiboot port.
2311 * include/grub/i386/multiboot/boot.h: New file.
2312 * include/grub/i386/multiboot/console.h: Likewise.
2313 * include/grub/i386/multiboot/init.h: Likewise.
2314 * include/grub/i386/multiboot/kernel.h: Likewise.
2315 * include/grub/i386/multiboot/loader.h: Likewise.
2316 * include/grub/i386/multiboot/memory.h: Likewise.
2317 * include/grub/i386/multiboot/serial.h: Likewise.
2318 * include/grub/i386/multiboot/time.h: Likewise.
2319 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
2320 * loader/multiboot.c: Likewise.
2321 * loader/multiboot_mbi2.c: Likewise.
2322 * util/grub-mkrescue.in: Generate multiboot rescue.
2324 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2326 * kern/parser.c (grub_parser_execute): Cope with read-only config.
2328 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2330 Merge handling of input and output terminals. Fix a hang.
2332 * commands/terminal.c (abstract_terminal): New struct.
2333 (handle_command): New function. Based on grub_cmd_terminal_input.
2334 (grub_cmd_terminal_input): Use handle_command.
2335 (grub_cmd_terminal_output): Use handle_command.
2337 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
2339 Fix comment handling.
2341 * tests/grub_script_comments.in: New testcase.
2342 * conf/tests.rmk: Rules for new testcase.
2343 * script/yylex.l: Updated flex rules.
2345 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2347 * docs/grub.texi (play): Document that zero pitches produce rests.
2348 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
2351 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2353 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
2356 2010-04-26 Christian Franke <franke@computer.org>
2358 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
2359 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
2360 (grub_get_prefix): Remove function.
2361 * util/grub-emu.c (main): Replace grub_get_prefix () call by
2362 make_system_path_relative_to_its_root ().
2363 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2365 2010-04-24 Christian Franke <franke@computer.org>
2367 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
2368 (kernel_img_LDFLAGS): Remove -static-libgcc.
2370 2010-04-24 Christian Franke <franke@computer.org>
2372 * configure.ac: Do not CHECK_BSS_START_SYMBOL
2373 and CHECK_END_SYMBOL if grub-emu is built.
2374 Unset TARGET_OBJ2ELF if grub-emu is built
2375 without module support.
2377 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
2381 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
2382 (grub_fstest_SOURCES): Likewise.
2383 (pkglib_MODULES): Add nilfs2.mod.
2384 (nilfs2_mod_SOURCES): New variable.
2385 (nilfs2_mod_CFLAGS): Likewise.
2386 (nilfs2_mod_LDFLAGS): Likewise.
2387 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2388 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2389 * fs/nilfs2.c: New file.
2391 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2393 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
2396 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
2398 Add grub-mkconfig support for NetBSD.
2400 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
2401 * util/grub-mkconfig.in: export new NetBSD specific variables.
2402 * po/POTFILES-shell: added 10_netbsd.in.
2403 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
2405 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
2407 Fix emu build with grub-emu-pci and grub-emu-modules.
2409 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
2411 * include/grub/libpciaccess.h: New file.
2412 * conf/any-emu.rmk: Update kernel headers for emu build.
2414 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2416 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
2418 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2420 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
2422 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2424 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
2425 Retrieve chosen/bootpath if bootpath isn't hardcoded.
2426 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
2427 util/ieee1275/ofpath.c.
2428 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
2429 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
2430 * include/grub/sparc64/ieee1275/boot.h
2431 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
2432 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
2433 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
2434 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
2436 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
2437 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
2438 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
2441 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
2443 * util/grub-mkconfig.in: Corrected two == equality tests.
2444 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
2445 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
2446 expect a number appended to it.
2447 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
2448 expects a number appended to it.
2450 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2452 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
2454 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2456 * util/hostdisk.c (make_device_name): Change to new partition naming.
2458 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2460 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
2462 2010-04-17 Christian Franke <franke@computer.org>
2464 * Makefile.in: Add missing localedir setting.
2466 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
2468 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
2469 mistake in r2156. Noticed by Anthony Fok.
2471 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
2473 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
2475 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
2477 Fix a spurious, uninitialized variable warning.
2479 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
2480 Initialize variable, shdr.
2481 (grub_freebsd_load_elfmodule): Likewise.
2482 (grub_freebsd_load_elf_meta): Likewise.
2484 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
2486 Fix for escaped dollar in double quoted strings.
2488 * script/yylex.l: Updated flex rules.
2489 * conf/tests.rmk: Rule for new testcase.
2490 * tests/grub_script_dollar.in: New testcase.
2492 2010-04-13 Carles Pina i Estany <carles@pina.cat>
2493 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
2495 Enclose all translated strings in grub.cfg in single quotes, and
2496 escape them appropriately (Ubuntu bug #552921).
2498 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2499 * util/grub.d/10_hurd.in: Use it.
2500 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2501 * util/grub.d/10_linux.in (linux_entry): Likewise.
2503 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2505 Fix cygwin compilation.
2507 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2508 * include/grub/misc.h (__register_frame_info)
2509 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2510 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2511 * kern/misc.c (__register_frame_info)
2512 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2513 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2515 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2517 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2519 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2521 Unify libgcc processing.
2523 * Makefile.in (kernel_img_LDFLAGS): New variable.
2524 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2525 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2527 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2528 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2529 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2530 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2531 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2532 overwriting. Remove -lgcc and -static-libgcc
2533 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2534 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2535 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2536 (kernel_img_LDFLAGS): Append instead of overwriting.
2537 Remove -lgcc and -static-libgcc
2538 * conf/sparc64-ieee1275.rmk: Likewise.
2539 * include/grub/powerpc/libgcc.h: Move to ...
2540 * include/grub/libgcc.h: .. this.
2541 * include/grub/libgcc.h: Don't export most of the function on x86.
2542 (__bswapsi2): New export.
2543 (__bswapdi2): Likewise.
2544 * include/grub/mips/libgcc.h: Removed.
2545 * include/grub/sparc64/libgcc.h: Likewise.
2547 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2549 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2550 disk_info_msg (conflicts with gettexting into languages with cases).
2552 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2554 Add grub-probe support for NetBSD.
2556 * util/getroot.c (find_root_device): Convert block device to
2557 character device on NetBSD.
2558 * util/probe.c (probe): Require character device on NetBSD.
2559 * util/hostdisk.c: NetBSD specific headers.
2560 (configure_device_driver): new function to tune device driver
2561 parameters (currently only for NetBSD floppy driver).
2562 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2563 via disklabel ioctl).
2564 (open_device): call configure_device_driver on NetBSD.
2565 (convert_system_partition_to_system_disk): NetBSD specific code.
2566 (device_is_wholedisk): Likewise.
2567 (grub_util_biosdisk_get_grub_dev): Likewise.
2568 (make_device_name): Fixed a typo in bsd_part_str.
2569 * configure.ac: check for opendisk() and getrawpartition() on
2570 NetBSD and set LIBUTIL.
2571 * Makefile.in: add LIBUTIL to LIBS.
2573 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2577 * util/grub-script-check.c: Better help message.
2579 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2583 * configure.ac: Flex version check.
2584 * conf/common.rmk: Add -Wno-error to sh.mod.
2585 * script/yylex.l: Remove all #pragma.
2587 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2589 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2591 Reported by: Seth Goldberg.
2593 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2595 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2596 Rename "module" to "module2".
2597 Reported by: Seth Goldberg.
2599 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2601 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2603 Reported by: Seth Goldberg.
2605 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2607 * lib/posix_wrap/locale.h: Add missing file.
2608 Reported by: Seth Goldberg.
2610 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2612 grub-emu module load support.
2614 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2615 NO_DYNAMIC_MODULES switched to this.
2616 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2618 * conf/any-emu.rmk: Generate symlist.
2619 (kernel_img_HEADERS): Add util/datetime.h.
2620 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2621 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2622 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2623 kern/$(target_cpu)/cache.S.
2624 * configure.ac (grub-emu-modules): New option.
2625 * genmk.rb: Handle multiple source lists.
2626 * include/grub/sdl.h: New file.
2627 * include/grub/libusb.h: Likewise.
2628 * util/grub-emu.c (main): Hanle (host) root.
2629 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2630 GRUB_ERR_UNKNOWN_DEVICE.
2631 * util/misc.c: Move mm functions to ...
2632 * util/mm.c: ... here. All users updated.
2634 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2636 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2637 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2639 (maintainer-clean): Remove libgcrypt-grub.
2641 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2643 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2645 2010-04-09 EFI Coder <eficoder@hotmail.com>
2647 * normal/menu_text.c (print_message): Clean up the message and show
2648 the Fn information when on EFI
2649 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2651 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2653 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2655 * normal/crypto.c (read_crypto_list): Likewise.
2656 * normal/dyncmd.c (read_command_list): Likewise.
2657 * normal/term.c (read_terminal_list): Likewise.
2658 * normal/main.c (read_lists): Use explicit prefix.
2659 (read_lists_hook): Use read_lists.
2660 (grub_normal_execute): Likewise.
2662 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2664 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2665 Reported by: Thomas Schmitt.
2666 Add -no-emul-boot to grub-mkisofs parameters.
2668 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2670 * font/font.c: Indented.
2672 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2674 Elif support to GRUB script (by Deepak Vankadaru).
2676 * tests/grub_script_if.in: New testcase.
2677 * conf/tests.rmk: Rule for new testcase.
2678 * script/parser.y: Grammar rules for elif.
2680 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2682 While and until loops support to GRUB script.
2684 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2685 (grub_script_create_cmdwhile): New function prototype.
2686 (grub_script_execute_cmdwhile): New function prototype.
2687 * script/execute.c (grub_script_execute_cmdwhile): New function.
2688 * script/parser.y (command): New commands.
2689 (whilecmd): New grammar rule.
2690 (untilcmd): New grammar rule.
2691 * script/script.c (grub_script_create_cmdwhile): New function.
2692 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2695 * tests/grub_script_while1.in: New testcase.
2696 * conf/tests.rmk: Rule for new testcase.
2698 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2700 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2703 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2705 GRUB_BACKGROUND support.
2707 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2708 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2710 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2712 Load fonts and modules for gfxmenu in grub-mkconfig.
2713 Idea by: Mario Vazquez
2715 * util/grub.d/00_header.in: Load pf2 and image modules.
2717 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2719 grub-mkconfig multiple terminal support.
2721 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2722 * util/grub.d/00_header.in: Likewise.
2724 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2726 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2727 we use cd $(srcdir).
2729 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2731 * util/grub.d/10_linux.in: Only use the first word of
2732 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2733 spaces in GRUB_DISTRIBUTOR.
2734 * util/grub.d/10_kfreebsd.in: Likewise.
2735 * util/grub.d/10_hurd.in: Likewise.
2737 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2739 Fix unit testing framework for Qemu 0.12.
2741 * tests/util/grub-shell.in: Remove -serial stdio option.
2743 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2745 POSIX header file wrappers.
2747 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2749 * lib/posix_wrap/ctype.h: Likewise.
2750 * lib/posix_wrap/errno.h: Likewise.
2751 * lib/posix_wrap/langinfo.h: Likewise.
2752 * lib/posix_wrap/limits.h: Likewise.
2753 * lib/posix_wrap/localcharset.h: Likewise.
2754 * lib/posix_wrap/stdint.h: Likewise.
2755 * lib/posix_wrap/stdio.h: Likewise.
2756 * lib/posix_wrap/stdlib.h: Likewise.
2757 * lib/posix_wrap/string.h: Likewise.
2758 * lib/posix_wrap/sys/types.h: Likewise.
2759 * lib/posix_wrap/unistd.h: Likewise.
2760 * lib/posix_wrap/wchar.h: Likewise.
2761 * lib/posix_wrap/wctype.h: Likewise.
2762 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2763 (grub_script.yy.h): Likewise.
2764 * script/yylex.l: Remove POSIX emulation #defines.
2765 * Makefile.in (POSIX_CFLAGS): New variable.
2766 (GNULIB_UTIL_CFLAGS): Likewise.
2770 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2771 (regexp_mod_SOURCES): New variable.
2772 (regexp_mod_CFLAGS): Likewise.
2773 (regexp_mod_LDFLAGS): Likewise.
2774 * commands/regexp.c: New file.
2775 * gnulib/regcomp.c: New file. Imported from gnulib.
2776 * gnulib/regex.c: Likewise.
2777 * gnulib/regex_internal.c: Likewise.
2778 * gnulib/regex_internal.h: Likewise.
2779 * gnulib/regexec.c: Likewise.
2780 * gnulib/regex.h: Likewise.
2782 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2784 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2785 unsupported video mode types.
2787 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2789 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2791 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2793 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2794 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2796 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2798 Remove unused grub_vga_get_font.
2800 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2801 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2803 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2805 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2806 * include/grub/misc.h: Likewise.
2808 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2810 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2811 for which failure is fatal.
2813 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2815 * util/grub-install.in: Use mkdir -p to create grub directory.
2816 * util/i386/efi/grub-install.in: Likewise.
2817 * util/ieee1275/grub-install.in: Likewise.
2819 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2821 * Makefile.in (LEX): new variable.
2823 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2825 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2826 `=' and added double quotes on operands of this equality test.
2828 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2830 * Makefile.in (uninstall): Remove a leftover debug echo.
2831 Reported by: Grégoire Sutre
2833 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2835 MIPS multiboot2 support.
2837 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2838 (multiboot2_mod_SOURCES): New variable.
2839 (multiboot2_mod_CFLAGS): Likewise.
2840 (multiboot2_mod_LDFLAGS): Likewise.
2841 (multiboot2_mod_ASFLAGS): Likewise.
2842 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2844 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2845 (MULTIBOOT_MBI_REGISTER): Likewise.
2846 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2847 (MULTIBOOT_ELF32_MACHINE): Likewise.
2848 (MULTIBOOT_ELF64_MACHINE): Likewise.
2849 * include/grub/mips/multiboot.h: New file.
2850 * include/grub/video.h (grub_video_driver_id): New type
2851 GRUB_VIDEO_DRIVER_SM712.
2852 (grub_video_get_info_and_fini): Export.
2853 (grub_video_get_palette): Likewise.
2854 (grub_video_get_driver_id): Likewise.
2855 * include/multiboot2.h: Resynced with spec.
2856 * loader/i386/multiboot.c: Moved from here ...
2857 * loader/multiboot.c: ... here. All users updated.
2858 (grub_multiboot_boot): Use platform-specific macros.
2859 * loader/i386/multiboot_elfxx.c: Moved from here ...
2860 * loader/multiboot_elfxx.c: ... here. All users updated.
2861 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2862 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2863 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2865 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2867 Import gnulib argp module.
2869 * gnulib/argp-ba.c: New file.
2870 * gnulib/argp-eexst.c: Likewise.
2871 * gnulib/argp-fmtstream.c: Likewise.
2872 * gnulib/argp-fmtstream.h: Likewise.
2873 * gnulib/argp-fs-xinl.c: Likewise.
2874 * gnulib/argp-help.c: Likewise.
2875 * gnulib/argp-namefrob.h: Likewise.
2876 * gnulib/argp-parse.c: Likewise.
2877 * gnulib/argp-pin.c: Likewise.
2878 * gnulib/argp-pv.c: Likewise.
2879 * gnulib/argp-pvh.c: Likewise.
2880 * gnulib/argp-version-etc.c: Likewise.
2881 * gnulib/argp-version-etc.h: Likewise.
2882 * gnulib/argp-xinl.c: Likewise.
2883 * gnulib/argp.h: Likewise.
2885 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2887 * kern/device.c (grub_device_iterate): Clear errors after failed
2890 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2892 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2893 returned by firmware.
2895 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2897 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2898 compilation on coreboot and qemu
2900 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2902 * include/multiboot2.h: Resync with spec.
2904 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2906 Multiboot2 tag support
2908 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2909 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2910 Remove loader/multiboot_loader.c.
2911 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2912 (grub_multiboot2_real_boot): Likewise.
2913 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2914 (grub_get_multiboot_mmap_count): New proto.
2915 (grub_fill_multiboot_mmap): Likewise.
2916 (grub_multiboot_set_video_mode): Likewise.
2917 (grub_multiboot_set_console): Likewise.
2918 (grub_multiboot_load): Likewise.
2919 (grub_multiboot_load_elf): Likewise.
2920 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2921 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2922 * include/multiboot.h: Resynced with specification.
2923 * include/multiboot2.h: Resynced with specification.
2924 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2925 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2926 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2927 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2929 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2930 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2931 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2933 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2935 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2936 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2938 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2939 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2940 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2942 * loader/i386/multiboot_mbi2.c: New file.
2944 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2948 * Makefile.in (GNULIB_CFLAGS): New variable.
2949 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2950 (grub_script_check_CFLAGS): New variable.
2951 * gnulib/alloca.h: Resync with gnulib.
2952 * gnulib/error.c: Likewise.
2953 * gnulib/error.h: Likewise.
2954 * gnulib/fnmatch.c: Likewise.
2955 * gnulib/fnmatch_loop.c: Likewise.
2956 * gnulib/getdelim.c: Likewise.
2957 * gnulib/getline.c: Likewise.
2958 * gnulib/getopt.c: Likewise.
2959 * gnulib/getopt1.c: Likewise.
2960 * gnulib/getopt_int.h: Likewise.
2961 * gnulib/gettext.h: Likewise.
2962 * gnulib/progname.c: Likewise.
2963 * gnulib/progname.h: Likewise.
2965 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2967 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2968 which is the case with --disabled-nls.
2970 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2971 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2972 * util/misc.c: Likewise.
2973 * util/mkisofs/mkisofs.c: Likewise.
2974 * util/mkisofs/mkisofs.h: Likewise.
2976 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2978 Simplify Apple CC support.
2980 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2981 Add 0 byte at the end not to have a symbol with empty target.
2982 * mmap/i386/pc/mmap_helper.S: Likewise.
2983 * genmk.rb: Ignore errors 2030 and 2050.
2984 * kern/i386/pc/startup.S: Use LOCAL when possible.
2986 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2988 Testcase and the fix for final semicolon on cmdline.
2990 * tests/grub_script_final_semicolon.in: New testcase.
2991 * conf/tests.rmk: Rules for the new testcase.
2992 * script/parser.y: Grammar fix.
2994 2010-03-26 BVK Chaitanya <bvk@localhost>
2996 Blank lines testcase for GRUB script.
2998 * tests/grub_script_blanklines.in: New testcase.
2999 * conf/tests.rmk: Rules for the new testcase.
3001 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3005 * genmk.rb: Add -DGRUB_FILE to all C targets.
3006 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
3007 * include/grub/list.h: Likewise.
3008 * include/grub/misc.h: Likewise.
3009 * include/grub/mm.h: Likewise.
3010 * include/grub/test.h: Likewise.
3011 * kern/mm.c: Likewise.
3012 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
3014 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3016 Sunpc partitions support.
3018 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
3019 (grub_fstest_SOURCES): Likewise.
3020 (pkglib_MODULES): Add part_sunpc.mod.
3021 (part_sunpc_mod_SOURCES): New variable.
3022 (part_sunpc_mod_CFLAGS): Likewise.
3023 (part_sunpc_mod_LDFLAGS): Likewise.
3024 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
3025 * partmap/sunpc.c: New file.
3027 2010-03-26 BVK Chaitanya <bvk@localhost>
3029 For loop support to GRUB script.
3031 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
3032 (grub_script_create_cmdfor): New function prototype.
3033 (grub_script_execute_cmdfor): New function prototype.
3034 * script/execute.c (grub_script_execute_cmdfor): New function.
3035 * script/parser.y (command): New for command.
3036 (forcmd): New grammar rule.
3037 * script/script.c (grub_script_create_cmdfor): New function.
3038 * util/grub-script-check.c (grub_script_execute_cmdfor): New
3040 * tests/grub_script_for1.in: New testcase.
3041 * conf/tests.rmk: Rules for new testcase.
3043 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3047 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
3048 'partition' is NULL, grub_partition_get_start already does that.
3049 * commands/loadenv.c (check_blocklists): Likewise.
3050 (write_blocklists): Likewise.
3051 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
3052 (grub_fstest_SOURCES): Likewise.
3053 (pkglib_MODULES): Add part_bsd.mod.
3054 (part_bsd_mod_SOURCES): New variable.
3055 (part_bsd_mod_CFLAGS): Likewise.
3056 (part_bsd_mod_LDFLAGS): Likewise.
3057 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
3058 (grub_emu_SOURCES): Likewise.
3059 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3060 * include/grub/bsdlabel.h: New file.
3061 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
3063 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
3064 (grub_partition_map_list): New variable.
3065 (grub_partition_map_register): Inline.
3066 (grub_partition_map_unregister): Likewise.
3067 (FOR_PARTITION_MAPS): New macro.
3068 (grub_partition_map_iterate): Removed.
3069 (grub_partition_get_start): Handle nested partitions.
3070 * include/grub/msdos_partition.h: Remove bsd-related entries.
3071 (grub_pc_partition): Remove.
3072 * kern/disk.c (grub_disk_close): Free partition data.
3073 (grub_disk_adjust_range): Handle nested partitions.
3074 * kern/partition.c (grub_partition_map_probe): New function.
3075 (grub_partition_probe): Parse name to number, handle subpartitions.
3076 (get_partmap): New function.
3077 (grub_partition_iterate): Handle subpartitions.
3078 (grub_partition_get_name): Likewise.
3079 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
3080 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
3081 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
3082 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
3084 (acorn_partition_map_probe): Remove.
3085 (acorn_partition_map_get_name): Likewise.
3086 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
3088 Set 'index' to 0 since there can be only one partition entry per sector.
3089 (amiga_partition_map_probe): Remove.
3090 (amiga_partition_map_get_name): Likewise.
3091 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
3093 Set 'offset' and 'index' to real positions of partitions.
3094 (apple_partition_map_probe): Remove.
3095 (apple_partition_map_get_name): Likewise.
3096 * partmap/bsdlabel.c: New file.
3097 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
3099 Allocate 'data' so it can be correctly freed.
3100 Set 'index' to offset inside sector.
3101 (gpt_partition_map_probe): Remove.
3102 (gpt_partition_map_get_name): Likewise.
3103 * partmap/msdos.c (grub_partition_parse): Remove.
3104 (pc_partition_map_iterate): Don't force raw access.
3106 Make 'ext_offset' a local variable.
3107 (pc_partition_map_probe): Remove.
3108 (pc_partition_map_get_name): Remove.
3109 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
3111 (sun_partition_map_probe): Remove.
3112 (sun_partition_map_get_name): Likewise.
3113 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
3114 (grub_pcpart_type): Likewise.
3115 * util/hostdisk.c (open_device): Handle new numbering scheme.
3116 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
3117 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
3118 * util/grub-probe.c (probe_partmap): Handle nested paritions.
3119 * util/grub-install.in: Insert all subpartition modules.
3120 * util/ieee1275/grub-install.in: Likewise.
3122 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
3124 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
3127 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
3129 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
3131 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
3133 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
3134 match where 'make install' puts them.
3135 * util/i386/efi/grub-install.in: Likewise.
3137 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
3139 * .bzrignore: Add gentrigtables, grub-script-check,
3140 grub_script_check_init.c, grub_script_check_init.h, and
3143 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
3145 * kern/parser.c: Indented.
3147 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3149 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
3151 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3153 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
3154 alpha_mask_size == 0 case.
3156 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
3158 GRUB shell lexer and parser improvements.
3160 * conf/any-emu.rmk: Build rule updates.
3161 * conf/common.rmk: Likewise.
3162 * conf/i386-coreboot.rmk: Likewise.
3163 * conf/i386-efi.rmk: Likewise.
3164 * conf/i386-ieee1275.rmk: Likewise.
3165 * conf/i386-pc.rmk: Likewise.
3166 * conf/powerpc-ieee1275.rmk: Likewise.
3167 * conf/x86_64-efi.rmk: Likewise.
3169 * configure.ac: Configure check for flex.
3171 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
3173 (grub_lexer_param): Struct member updates.
3174 (grub_parser_param): Likewise.
3175 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
3176 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
3177 (grub_script_lexer_init): Prototype update.
3178 (grub_script_lexer_record_start): Likewise.
3179 (grub_script_lexer_record_stop): Likewise.
3180 (grub_script_lexer_yywrap): New function prototype.
3181 (grub_script_lexer_fini): Likewise.
3182 (grub_script_execute_argument_to_string): Removed by...
3183 (grub_script_execute_argument_to_argv): ...better version.
3185 * script/execute.c (ROUND_UPTO): New macro.
3186 (grub_script_execute_cmdline): Out of memory fixes.
3187 (grub_script_execute_menuentry): Likewise.
3188 (grub_script_execute_argument_to_string): Removed. Update all
3190 (grub_script_execute_argument_to_argv): ...better version.
3191 * script/function.c (grub_script_function_create): Use
3192 grub_script_execute_argument_to_argv instead of
3193 grub_script_execute_argument_to_string.
3195 * script/lexer.c (check_varstate): Removed.
3196 (check_textstate): Removed.
3197 (grub_script_lexer_record_start): Likewise.
3198 (grub_script_lexer_record_stop): Likewise.
3199 (recordchar): Replaced with...
3200 (grub_script_lexer_record): ...new function.
3201 (nextchar): Removed.
3202 (grub_script_lexer_init): Rewritten.
3203 (grub_script_yylex): Rewritten.
3204 (append_newline): New function.
3205 (grub_script_lexer_yywrap): New function.
3206 (grub_script_lexer_fini): New function.
3207 (grub_script_yyerror): Sets error flag.
3209 * script/yylex.l: New file.
3210 (grub_lexer_yyfree): Wrapper for flex yyffre.
3211 (grub_lexer_yyalloc): Likewise.
3212 (grub_lexer_yyrealloc): Likewise.
3213 * script/parser.y: Refactored.
3215 * script/script.c (grub_script_arg_add): Out of memory fixes.
3216 (grub_script_add_arglist): Likewise.
3217 (grub_script_create_cmdline): Likewise.
3218 (grub_script_create_cmdmenu): Likewise.
3219 (grub_script_add_cmd): Likewise.
3220 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
3221 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
3224 * tests/grub_script_echo1.in: New testcase.
3225 * tests/grub_script_vars1.in: New testcase.
3226 * tests/grub_script_echo_keywords.in: New testcase.
3228 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3230 Remove some redundancy in build system.
3232 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
3233 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
3234 (TARGET_LDFLAGS): Add -nostdlib.
3235 (TARGET_IMG_LDFLAGS): Likewise.
3236 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
3237 anything since mmap isn't available.
3238 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
3240 (pkglib_MODULES): Remove reboot.mod.
3241 (reboot_mod_SOURCES): Removed.
3242 (reboot_mod_CFLAGS): Likewise.
3243 (reboot_mod_LDFLAGS): Likewise.
3244 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
3245 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
3246 (DEFSYMFILES): Add kernel_syms.lst.
3247 (kernel_img_HEADERS): Add common headers.
3248 (symlist.c): New target.
3249 (kernel_syms.lst): Likewise.
3250 (pkglib_MODULES): Add memdisk.mod.
3251 (memdisk_mod_SOURCES): New variable.
3252 (memdisk_mod_CFLAGS): Likewise.
3253 (memdisk_mod_LDFLAGS): Likewise.
3254 (pkglib_MODULES): Add reboot.mod.
3255 (reboot_mod_SOURCES): New variable.
3256 (reboot_mod_CFLAGS): Likewise.
3257 (reboot_mod_LDFLAGS): Likewise.
3258 (pkglib_MODULES): Add date.mod.
3259 (date_mod_SOURCES): New variable.
3260 (date_mod_CFLAGS): Likewise.
3261 (date_mod_LDFLAGS): Likewise.
3262 (pkglib_MODULES): Add datehook.mod.
3263 (datehook_mod_SOURCES): New variable.
3264 (datehook_mod_CFLAGS): Likewise.
3265 (datehook_mod_LDFLAGS): Likewise.
3266 (pkglib_MODULES): Add lsmmap.mod.
3267 (lsmmap_mod_SOURCES): New variable.
3268 (lsmmap_mod_CFLAGS): Likewise.
3269 (lsmmap_mod_LDFLAGS): Likewise.
3270 (pkglib_MODULES): Add boot.mod.
3271 (boot_mod_SOURCES): New variable.
3272 (boot_mod_CFLAGS): Likewise.
3273 (boot_mod_LDFLAGS): Likewise.
3274 * conf/i386-coreboot.rmk: Removed redundant parts.
3275 * conf/i386-ieee1275.rmk: Likewise.
3276 * conf/i386-pc.rmk: Likewise.
3277 * conf/mips-yeeloong.rmk: Likewise.
3278 * conf/mips.rmk: Likewise.
3279 * conf/powerpc-ieee1275.rmk: Likewise.
3280 * conf/sparc64-ieee1275.rmk: Likewise.
3281 * conf/x86_64-efi.rmk: Likewise.
3282 * conf/i386-coreboot.rmk: Moved qemu parts ..
3283 * conf/i386-qemu.rmk: ... here
3284 * conf/i386-efi.rmk: Moved common parts to...
3285 * conf/x86-efi.rmk: ... here.
3286 * conf/i386.rmk: Added modules common to all x86 variants.
3287 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
3288 * disk/memdisk.c: Remove grub/machine/kernel.h.
3289 * gensymlist.sh.in: Include symbol.h.
3290 * hook/datehook.c: Correct module name.
3291 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
3292 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
3293 * include/grub/i386/efi/serial.h: New file.
3294 * include/grub/x86_64/efi/serial.h: Likewise.
3295 * util/time.c: Likewise.
3296 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
3298 2010-03-14 Colin King <colin.king@ubuntu.com>
3299 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3301 Shrink the pre-partition-table part of boot.img by eight bytes.
3303 * boot/i386/pc/boot.S (ERR): New macro.
3304 (chs_mode): Use ERR.
3305 (geometry_error): Likewise.
3306 (hd_probe_error): Remove. This is only used once, so we wrwite
3308 (read_error): Instead of printing read_error_string, just set up
3309 %si and fall through to ...
3310 (error_message): ... this new function, also used by ERR.
3312 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3314 Speed up consecutive hostdisk operations on the same device.
3316 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
3317 (grub_util_biosdisk_open): Initialise disk->data.
3318 (struct linux_partition_cache): New structure.
3319 (linux_find_partition): Cache partition start positions; these are
3320 expensive to compute on every read and write.
3321 (open_device): Cache open file descriptor in disk->data, so that we
3322 don't have to reopen it and flush the buffer cache for consecutive
3323 operations on the same device.
3324 (grub_util_biosdisk_close): New function.
3325 (grub_util_biosdisk_dev): Set `close' member.
3327 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
3328 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
3329 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3330 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3331 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
3333 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3335 Compile parts of grub-emu as modules.
3337 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
3338 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
3339 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
3340 (all-local): Add $(GRUB_EMU).
3341 (install-local): Install $(GRUB_EMU).
3342 (uninstall): Uninstall $(GRUB_EMU).
3343 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
3344 * kern/dl.c: Likewise.
3345 * commands/sleep.c: Not include machine/time.h.
3346 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
3347 (COMMON_CFLAGS): Likewise.
3348 (sbin_UTILITIES): Remove grub-emu.
3349 (grub_emu_SOURCES): Removed.
3350 (kernel_img_RELOCATABLE): New variable.
3351 (pkglib_PROGRAMS): Add kernel.img.
3352 (kernel_img_SOURCES): New variable
3353 (kernel_img_CFLAGS): Likewise.
3354 (kernel_img_LDFLAGS): Likewise.
3355 (TARGET_NO_STRIP): Likewise.
3356 (TARGET_NO_DYNAMIC_MODULES): Likewise.
3357 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
3358 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
3359 (grub-emu): New target.
3360 (GRUB_EMU): New variable.
3361 * configure.ac: Whitelist -emu as possible x86_64 architecture.
3362 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
3363 * loader/xnu.c: Likewise.
3364 * include/grub/pci.h: Likewise.
3365 * genemuinit.sh: New file.
3366 * genemuinitheader.sh: Likewise.
3367 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
3368 Support TARGET_NO_DYNAMIC_MODULES.
3369 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
3370 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
3371 * disk/loopback.c: Likewise.
3372 * font/font_cmd.c: Likewise.
3373 * partmap/acorn.c: Likewise.
3374 * partmap/amiga.c: Likewise.
3375 * partmap/apple.c: Likewise.
3376 * partmap/gpt.c: Likewise.
3377 * partmap/msdos.c: Likewise.
3378 * partmap/sun.c: Likewise.
3379 * parttool/msdospart.c: Likewise.
3380 * term/gfxterm.c: Likewise.
3381 * video/bitmap.c: Likewise.
3382 * video/readers/jpeg.c: Likewise.
3383 * video/readers/png.c: Likewise.
3384 * video/readers/tga.c: Likewise.
3385 * video/video.c: Likewise.
3386 * util/grub-emu.c (read_command_list): Removed.
3387 (main): Don't call util_init_nls.
3388 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
3389 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
3391 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3393 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
3394 date.mod, datehook.mod.
3395 (datetime_mod_SOURCES): New variable.
3396 (datetime_mod_CFLAGS): Likewise.
3397 (datetime_mod_LDFLAGS): Likewise.
3398 (date_mod_SOURCES): Likewise.
3399 (date_mod_CFLAGS): Likewise.
3400 (date_mod_LDFLAGS): Likewise.
3401 (datehook_mod_SOURCES): Likewise.
3402 (datehook_mod_CFLAGS): Likewise.
3403 (datehook_mod_LDFLAGS): Likewise.
3404 * conf/sparc64-ieee1275.rmk: Likewise.
3405 * lib/ieee1275/datetime.c: New file.
3407 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3409 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
3410 (ieee1275_fb_mod_SOURCES): New variable.
3411 (ieee1275_fb_mod_CFLAGS): Likewise.
3412 (ieee1275_fb_mod_LDFLAGS): Likewise.
3413 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
3415 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
3416 (HEAP_MAX_ADDR): Likewise.
3417 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
3419 Correct stop condition.
3420 (grub_ieee1275_devices_iterate): New function.
3421 * video/ieee1275.c: New file.
3423 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3425 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
3427 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
3429 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
3430 SCRATCH_PAD_DISKBOOT as scratch.
3431 (bootit): Pass Openfirmware pointer in %o4.
3432 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
3434 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
3435 with util/grub-mkrawimage.c.
3436 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
3437 * include/grub/aout.h (AOUT_MID_SUN): New definition.
3438 (grub_aout_get_type) [GRUB_UTIL]: Removed.
3439 (grub_aout_load) [GRUB_UTIL]: Likewise.
3440 * include/grub/kernel.h (grub_modules_get_end): New proto.
3441 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
3442 (SCRATCH_PAD_BOOT): New definition.
3443 (SCRATCH_PAD_DISKBOOT): Likewise.
3444 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
3445 * include/grub/sparc64/ieee1275/ieee1275.h
3446 (grub_ieee1275_original_stack): New variable
3447 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
3449 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
3450 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
3451 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
3452 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
3453 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
3454 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
3455 (grub_platform_image_format_t): New type.
3456 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
3457 * kern/main.c (grub_modules_get_end)
3458 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
3459 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
3460 (codestart): Switch stacks.
3461 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
3463 (grub_heap_init): Use grub_modules_get_end.
3464 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
3466 * util/grub-mkrawimage.c (generate_image): Support sparc64.
3468 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
3470 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
3472 * util/grub-mkrescue.in: Base ISO UUID on UTC.
3474 2010-03-08 Matt Kraai <kraai@ftbfs.org>
3476 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
3479 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3481 * genmoddep.awk: Output all missing symbols and not only first.
3483 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3485 * NEWS: Put the date of 1.98 release.
3487 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3489 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
3492 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3494 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3495 completition in the middle of string.
3497 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3499 * util/grub-mkrescue.in: Use mktemp with explicit template.
3501 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3503 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3505 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3507 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3510 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3512 Fix FreeBSD compilation.
3514 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3515 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3517 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3519 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3521 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3523 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3525 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3527 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3529 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3531 Support relative image path in theme file.
3533 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3534 (image_set_property): Handle theme_dir and relative path.
3536 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3538 * configure.ac: Alias amd64 to x86_64.
3540 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3542 * NEWS: mention multiboot on EFI.
3544 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3546 * kern/main.c (grub_load_modules): Handle errors from init functions of
3549 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3551 * normal/autofs.c (autoload_fs_module): Handle errors.
3553 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3555 Disable linux.mod on qemu-mips since it's not functional and leads
3556 to compilation failure.
3558 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3559 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3560 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3561 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3562 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3563 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3564 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3565 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3566 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3567 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3568 Reported by: BVK Chaitanya
3570 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3572 * INSTALL: Add gettext as a dependency and add qemu to a new section
3573 "Prerequisites for make-check".
3575 2010-03-04 Christian Franke <franke@computer.org>
3577 * util/grub-pe2elf.c: Add missing include "progname.h".
3579 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3581 * normal/crypto.c (read_crypto_list): Fix a typo.
3582 Reported by: Seth Goldberg.
3584 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3586 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3587 Reported by: Seth Goldberg.
3589 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3591 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3594 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3596 * genmk.rb: Remove terminal*.lst in make clean.
3597 Reported by: Seth Goldberg.
3599 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3601 * util/i386/efi/grub-install.in: Copy gettext files.
3603 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3605 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3607 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3609 Wait for user entry basing on presence of output rather than on errors.
3611 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3612 (grub_install_newline_hook): Likewise.
3613 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3614 * normal/menu.c (show_menu): Check line_counter to determine presence
3616 * normal/term.c (grub_normal_line_counter): New variable.
3617 (grub_normal_get_line_counter): New function.
3618 (grub_install_newline_hook): Likewise.
3620 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3622 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3624 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3626 * configure.ac: Update version to 1.98.
3628 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3630 * util/grub.d/10_linux.in (linux_entry): Don't default to
3631 gfxpayload=keep if Linux doesn't support video handover.
3633 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3635 Don't compile video modules on yeeloong since video subsystem is part
3638 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3639 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3640 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3641 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3642 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3643 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3644 * include/grub/bitmap_scale.h: Likewise.
3645 * include/grub/bufio.h: Likewise.
3646 * include/grub/font.h: Likewise.
3647 * include/grub/gfxterm.h: Likewise.
3648 * include/grub/video.h: Likewise.
3649 * include/grub/vbe.h: Don't include video_fb.h.
3650 * video/i386/pc/vbe.c: Include video_fb.h.
3651 * commands/i386/pc/vbetest.c: Include video.h.
3653 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3655 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3656 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3657 default entry if GRUB_SAVEDEFAULT=true. This allows using
3658 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3659 saving a new default on every boot.
3661 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3663 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3664 * normal/term.c (read_terminal_list): Likewise.
3665 * normal/main.c (grub_normal_init_page): Likewise.
3666 (grub_normal_read_line_real): Likewise.
3668 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3670 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3672 Reported by: Seth Goldberg.
3674 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3676 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3677 duplicate declaration of `start'.
3679 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3681 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3683 Reported by: Georgy Buranov
3685 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3687 * util/grub-mkrawimage.c (usage): Change string formatting to
3690 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3692 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3695 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3697 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3698 Reported by: Michael Suchanek.
3700 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3702 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3703 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3705 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3707 Remove any reference to non-free fonts.
3709 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3710 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3711 uses non-free components.
3712 * font/font.c (grub_font_get_name): Remove example name.
3713 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3714 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3715 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3716 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3718 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3720 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3722 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3724 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3726 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3728 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3730 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3732 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3734 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3736 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3737 * docs/grub.texi (Command-line and menu entry commands): Document play
3740 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3742 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3743 parse arguments as inline tempo and notes. Move code for playing notes
3745 (play): ... new function.
3747 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3749 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3750 grub_uint16_t instead of short.
3751 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3752 disk from little endian to cpu endianness.
3754 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3756 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3757 GRUB_TICKS_PER_SECOND instead of 120.
3759 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3761 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3762 escape sequence after \e.
3764 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3766 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3767 non-ASCII characters.
3769 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3771 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3772 set root in single quotes to prevent \, from being unescaped.
3774 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3776 Prevent unknown commands from stopping menuentry execution.
3778 * script/execute.c (grub_script_execute_cmdline): Print error after
3781 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3783 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3784 Reported by: Pavel Pisa.
3786 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3788 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3790 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3792 Merge grub_ieee1275_map_physical into grub_map and rename to
3795 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3796 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3798 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3799 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3801 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3803 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3805 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3806 opening and not after.
3808 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3810 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3813 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3815 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3816 (alloc_phys): Use ALIGN_UP instead of align_addr.
3818 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3820 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3822 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3824 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3826 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3828 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3831 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3833 Fix over-4GiB seek on sparc64.
3835 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3836 Replace pos_i and pos_lo with pos. All users updated.
3837 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3839 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3841 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3844 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3846 * util/grub-mkrawimage.c (main): Call set_program_name.
3848 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3850 Properly align 64-bit targets.
3852 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3853 (generate_image): Use ALIGN_ADDR.
3855 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3857 Properly create cross-endian images.
3859 * include/grub/types.h (grub_host_to_target_addr): New macro
3860 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3862 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3864 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3866 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3868 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3870 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3871 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3872 (grub_linux_boot): Divide by 64K when on VESA.
3874 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3876 Support GRUB_GFXPAYLOAD_LINUX.
3878 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3879 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3881 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3883 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3884 to show messages instead of discarding them.
3885 Process errors after executing command and not before. Keep old method
3888 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3890 * configure.ac: Check for ft2build.h.
3892 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3894 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3896 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3898 * genkernsyms.sh.in: Use TARGET_CC.
3900 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3904 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3906 * include/grub/multiboot2.h: Remove leftover file.
3907 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3908 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3910 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3912 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3914 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3916 Fix warnings in grub-emu when compiling with maximum warning options.
3918 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3919 (grub_arch_modules_addr): Return 0 and not NULL.
3920 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3921 (xstrdup): Use newstr instead of dup.
3922 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3923 of disk to dsk to avoid shadowing.
3924 (find_free_slot): Fix prototype.
3925 * util/getroot.c (grub_util_is_dmraid): Make static.
3926 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3927 Add missing prototype.
3928 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3930 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3932 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3935 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3937 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3940 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3942 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3943 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3944 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3945 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3946 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3947 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3949 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3951 * include/grub/err.h (grub_err_printf): Don't export.
3953 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3955 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3957 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3959 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3960 * kern/misc.c (grub_gettext_dummy): Make static.
3962 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3964 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3966 * kern/term.c (grub_putchar): Likewise.
3968 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3970 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3971 buggy hook call and memory leak.
3973 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3975 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3977 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3979 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3981 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3983 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3985 Return grub_errno on allocation error.
3987 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3989 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3991 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3993 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3994 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3996 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3998 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
4000 (grub_pxefs_open): Likewise.
4002 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4004 * util/grub.d/10_hurd.in: Add --class information to menuentries.
4005 * util/grub.d/10_kfreebsd.in: Likewise.
4006 * util/grub.d/10_linux.in: Likewise.
4008 2010-02-06 Colin D Bennett <colin@gibibit.com>
4010 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
4011 (gfxmenu_mod_SOURCES): New variable.
4012 (gfxmenu_mod_CFLAGS): Likewise.
4013 (gfxmenu_mod_LDFLAGS): Likewise.
4014 * include/grub/term.h (grub_term_set_current_output): Declare
4016 * docs/gfxmenu-theme-example.txt: New file.
4017 * gfxmenu/gfxmenu.c: Likewise.
4018 * gfxmenu/gui_box.c: Likewise.
4019 * gfxmenu/gui_canvas.c: Likewise.
4020 * gfxmenu/gui_circular_progress.c: Likewise.
4021 * gfxmenu/gui_image.c: Likewise.
4022 * gfxmenu/gui_label.c: Likewise.
4023 * gfxmenu/gui_list.c: Likewise.
4024 * gfxmenu/gui_progress_bar.c: Likewise.
4025 * gfxmenu/gui_string_util.c: Likewise.
4026 * gfxmenu/gui_util.c: Likewise.
4027 * gfxmenu/icon_manager.c: Likewise.
4028 * gfxmenu/model.c: Likewise.
4029 * gfxmenu/named_colors.c: Likewise.
4030 * gfxmenu/theme_loader.c: Likewise.
4031 * gfxmenu/view.c: Likewise.
4032 * gfxmenu/widget-box.c: Likewise.
4033 * include/grub/gfxmenu_model.h: Likewise.
4034 * include/grub/gfxmenu_view.h: Likewise.
4035 * include/grub/gfxwidgets.h: Likewise.
4036 * include/grub/gui.h: Likewise.
4037 * include/grub/gui_string_util.h: Likewise.
4038 * include/grub/icon_manager.h: Likewise.
4040 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4042 Agglomerate scrolling in gfxterm.
4044 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
4045 (grub_virtual_screen_setup): Initialise 'total_screen'.
4046 (write_char): Split to ...
4047 (paint_char): ... this ...
4048 (write_char): ... and this.
4049 (paint_char): Handle delayed scrolling.
4050 (draw_cursor): Likewise.
4051 (scroll_up): Split to ...
4052 (real_scroll): ... this ...
4053 (scroll_up): ... and this.
4054 (real_scroll): Handle multi-line scroll and draw below-the-bottom
4056 (grub_gfxterm_refresh): Call real_scroll.
4058 2010-02-06 Colin D Bennett <colin@gibibit.com>
4060 * include/grub/misc.h (grub_iscntrl): New inline function.
4061 (grub_isalnum): Likewise.
4062 (grub_strtol): Likewise.
4064 2010-02-06 Colin D Bennett <colin@gibibit.com>
4066 * normal/menu_text.c (get_entry_number): Move from here ...
4067 * normal/menu.c (get_entry_number): ... moved here.
4068 * include/grub/menu.h (grub_menu_get_default_entry_index):
4070 * normal/menu.c (grub_menu_get_default_entry_index): New function.
4071 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
4072 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
4073 (grub_menu_viewer_should_return): Likewise.
4074 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
4075 * normal/menu_text.c (run_menu): Enable menu switching.
4076 * normal/menu_viewer.c (should_return): New variable.
4077 (menu_viewer_changed): Likewise.
4078 (grub_menu_viewer_show_menu): Handle menu viewer changes.
4079 (grub_menu_viewer_should_return): New function.
4080 (menuviewer_write_hook): Likewise.
4081 (grub_menu_viewer_init): Likewise.
4083 2010-02-06 Colin D Bennet <colin@gibibit.com>
4084 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4086 Support for gfxterm in a window.
4088 * include/grub/gfxterm.h: New file.
4089 * include/grub/video.h (struct grub_video_rect): New declaration.
4090 (grub_video_rect_t): Likewise.
4091 * term/gfxterm.c (struct grub_gfxterm_window): New type.
4092 (refcount): New variable.
4093 (render_target): Likewise.
4095 (repaint_callback): Likewise.
4096 (grub_virtual_screen_setup): Use 'render_target'.
4097 (init_window): New function.
4098 (grub_gfxterm_init_window): Likewise.
4099 (grub_gfxterm_init): Check reference counter.
4101 (destroy_window): New function.
4102 (grub_gfxterm_destroy_window): Likewise.
4103 (grub_gfxterm_fini): Check reference counter.
4105 (redraw_screen_rect): Restore viewport.
4106 Use 'render_target' and 'window'.
4107 Call 'repaint_callback'.
4108 (write_char): Use 'render_target'.
4109 (draw_cursor): Likewise.
4110 (scroll_up): Restore viewport.
4111 Use 'render_target' and 'window'.
4112 Call 'repaint_callback'.
4113 (grub_gfxterm_cls): Likewise.
4114 (grub_gfxterm_refresh): Use 'window'.
4115 (grub_gfxterm_set_repaint_callback): New function.
4116 (grub_gfxterm_background_image_cmd): Use 'window'.
4117 (grub_gfxterm_get_term): New function.
4118 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
4120 2010-02-06 Colin D Bennett <colin@gibibit.com>
4122 Bitmap scaling support.
4124 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
4125 (bitmap_scale_mod_SOURCES): New variable.
4126 (bitmap_scale_mod_CFLAGS): Likewise.
4127 (bitmap_scale_mod_LDFLAGS): Likewise.
4128 * include/grub/bitmap_scale.h: New file.
4129 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
4130 (background_image_cmd_options): New variable.
4131 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
4132 (cmd): Rename and change type to ...
4133 (background_image_cmd_handle): ... this. All users updated.
4134 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
4135 * video/bitmap_scale.c: New file.
4137 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4141 * Makefile.in (LIBSDL): New variable.
4142 (enable_grub_emu_sdl): Likewise.
4143 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
4144 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
4145 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
4146 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
4147 * util/sdl.c: New file.
4149 2010-02-06 Colin D Bennett <colin@gibibit.com>
4150 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4152 Double buffering support.
4154 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
4155 * include/grub/video.h: Update comment.
4156 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4158 (grub_video_fb_doublebuf_blit_init): New prototype.
4159 * term/gfxterm.c (scroll_up): Support double buffering.
4160 (grub_gfxterm_refresh): Likewise.
4161 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
4162 (grub_video_fb_doublebuf_blit_init): Likewise.
4163 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
4164 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
4165 'displayed_page', 'render_page' and 'update_screen'.
4166 (grub_video_vbe_fini): Free offscreen buffer.
4167 (doublebuf_pageflipping_commit): New function.
4168 (doublebuf_pageflipping_update_screen): Likewise.
4169 (doublebuf_pageflipping_init): Likewise.
4170 (double_buffering_init): Likewise.
4171 (grub_video_vbe_setup): Enable doublebuffering.
4172 (grub_video_vbe_swap_buffers): Implement.
4173 (grub_video_vbe_set_active_render_target): Handle double buffering.
4174 (grub_video_vbe_get_active_render_target): Likewise.
4175 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
4176 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
4177 (grub_video_vbe_enable_double_buffering): Likewise.
4178 (grub_video_vbe_swap_buffers): Use update_screen.
4179 (grub_video_set_mode): Use double buffering.
4181 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4183 * maintainance/gentrigtables.py: Remove.
4184 * lib/trig.c: Likewise.
4186 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
4188 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
4190 (trigtables.c): New rule.
4191 (gentrigtables): Likewise.
4192 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
4194 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4196 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
4199 2010-02-06 Colin D Bennet <colin@gibibit.com>
4201 Trigonometry support.
4203 * include/grub/trig.h: New file.
4204 * lib/trig.c: Likewise.
4205 * maintainance/gentrigtables.py: Likewise.
4206 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
4207 (trig_mod_SOURCES): New variable.
4208 (trig_mod_CFLAGS): Likewise.
4209 (trig_mod_LDFLAGS): Likewise.
4211 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4213 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
4216 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4218 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
4221 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4223 * util/hostdisk.c (open_device): Don't use partition device when reading
4224 before the partition.
4225 (grub_util_biosdisk_read): Don't read from partition and before the
4226 partition in single operation.
4227 (grub_util_biosdisk_write): Don't write to partition and before the
4228 partition in single operation.
4230 2010-02-03 Torsten Landschoff <torsten@debian.org>
4232 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4235 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4237 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
4239 (grub_biosdisk_write): Refuse to write to CDROM.
4241 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4243 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
4245 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4247 * font/font.c (find_glyph): Check that bmp_idx is available before
4249 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
4250 with (font == NULL).
4252 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
4254 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
4256 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
4258 * include/grub/script_sh.h (sourcecode): Add const qualifier.
4259 * util/grub-script-check.c (getline): Fix empty lines case.
4261 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
4263 * Makefile.in (check): Exit with fail status when one of the tests
4265 * tests/example_functional_test.c (example_test): Fix reversed assert.
4266 * tests/example_unit_test.c (example_test): Likewise.
4268 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
4270 * util/grub.d/10_linux.in: This script does not use any of the
4271 contents of gettext.sh, only the external command `gettext', so stop
4272 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
4273 the same prefix as GRUB.)
4274 * util/grub.d/10_kfreebsd.in: Likewise.
4276 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4278 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
4281 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4283 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4286 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4288 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
4289 having a 4KiB and not 32KiB buffer size.
4291 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4293 * util/hostfs.c: Include `<errno.h>'.
4294 (grub_hostfs_read): Handle errors from fseeko() and fread().
4296 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4298 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
4299 loop when using read hooks on files whose size isn't sector-aligned.
4301 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4303 Remove unused parameter.
4305 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
4306 (grub_iso9660_open): Remove initialization of `data->length'.
4308 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4310 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
4313 2010-01-27 Carles Pina i Estany <carles@pina.cat>
4315 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
4316 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
4318 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4320 * util/bin2h.c (usage): Fix warning (space after backslash).
4322 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4324 * font/font.c: Include `grub/fontformat.h.
4325 Remove font file format constants.
4326 (grub_font_load): Use the new macros.
4327 * include/grub/fontformat.h: New file.
4328 * util/grub-mkfont.c: Include `grub/fontformat.c'.
4329 (write_font_pf2): Use the new macros.
4331 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4333 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
4336 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4338 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
4340 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
4341 (_start): Macroify `0x7F'.
4343 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
4344 (make_install_device): Use "(pxe)" as fallback prefix when booting
4347 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
4349 * configure.ac: Reset LIBS after check for libgcc symbols.
4351 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
4353 * util/hostdisk.c (open_device): Add trailing newline to debug
4356 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4358 * configure.ac: Check for `limits.h'.
4359 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
4361 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
4363 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
4364 capitalize error strings.
4366 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4368 * util/grub.d/10_hurd.in: Add a recovery mode.
4370 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
4372 * configure.ac: Check for libgcc symbols with -nostdlib.
4374 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
4376 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
4378 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4380 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
4381 stack since heap may be unavailable at that point.
4382 (grub_ofconsole_gotoxy): Likewise.
4384 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4386 * configure.ac: Check for _restgpr_14_x.
4387 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
4388 and _savegpr_* prototypes.
4390 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
4392 Use generic grub_reboot() for i386-efi.
4394 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
4395 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
4396 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
4398 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4400 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
4401 presence of "prefix" variable as it breaks when normal.mod is
4404 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4406 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
4407 stack since heap is unavailable at that point.
4409 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4411 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
4412 (grub_freebsd_bootinfo): Rewritten.
4413 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
4415 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4417 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
4419 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
4421 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
4424 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
4426 * util/misc.c (make_system_path_relative_to_its_root): Change the work
4427 around for handling "/" to the correct fix. Fix a memory leak. Use
4428 xstrdup instead of strdup.
4430 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4432 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
4434 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4436 Optimise glyph lookup by Basic Multilingual Plane lookup array.
4438 * font/font.c (struct grub_font): New member 'bmp_idx'.
4439 (font_init): Initialise 'bmp_idx'.
4440 (load_font_index): Fill 'bmp_idx'.
4441 (find_glyph): Make inline. Use bmp_idx for BMP characters.
4443 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4445 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
4448 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4450 Move context handling out of the kernel.
4452 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
4453 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
4454 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
4455 * conf/i386-efi.rmk: Likewise.
4456 * conf/i386-ieee1275.rmk: Likewise.
4457 * conf/i386-pc.rmk: Likewise.
4458 * conf/powerpc-ieee1275.rmk: Likewise.
4459 * conf/sparc64-ieee1275.rmk: Likewise.
4460 * conf/x86_64-efi.rmk: Likewise.
4461 * include/grub/env.h: Include grub/menu.h.
4462 (grub_env_var_type): Removed.
4463 (grub_env_var): Replaced field 'type' with 'global'.
4464 (grub_env_find): New prototype.
4465 (grub_env_context_open): Remove EXPORT_FUNC.
4466 (grub_env_context_close): Likewise.
4467 (grub_env_export): Likewise.
4468 (grub_env_set_data_slot): Removed.
4469 (grub_env_get_data_slot): Likewise.
4470 (grub_env_unset_data_slot): Likewise.
4471 (grub_env_unset_menu): New prototype.
4472 (grub_env_set_menu): Likewise.
4473 (grub_env_get_menu): Likewise.
4474 * include/grub/env_private.h: New file.
4475 * include/grub/normal.h (grub_context_init): New prototype.
4476 (grub_context_fini): Likewise.
4477 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
4478 * normal/context.c (grub_cmd_export): ... to here.
4479 * kern/env.c: Include env_private.h.
4480 (HASHSZ): Moved to include/grub/env_private.h.
4481 (grub_env_context): Likewise.
4482 (grub_env_sorted_var): Likewise.
4483 (current_context): Renamed from this ...
4484 (grub_current_context): ...to this. 'static' removed. All users updated.
4485 (grub_env_find): Removed 'static'.
4486 (grub_env_context_open): Moved to normal/context.c.
4487 (grub_env_context_close): Likewise.
4488 (grub_env_export): Likewise.
4489 (mangle_data_slot_name): Removed.
4490 (grub_env_set_data_slot): Likewise.
4491 (grub_env_get_data_slot): Likewise.
4492 (grub_env_unset_data_slot): Likewise.
4493 * kern/main.c (grub_set_root_dev): Don't export root.
4494 It will be done later.
4495 (grub_main): Don't export prefix.
4496 It will be done later.
4497 * normal/context.c: New file.
4498 * normal/main.c (free_menu): Use grub_env_unset_menu.
4499 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4500 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4501 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4502 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4504 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4508 * commands/setpci.c: New file.
4509 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4510 (setpci_mod_SOURCES): New variable.
4511 (setpci_mod_CFLAGS): Likewise.
4512 (setpci_mod_LDFLAGS): Likewise.
4514 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4516 Byte-addressable PCI configuration space.
4518 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4520 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4521 GRUB_PCI_REG_CACHELINE.
4522 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4523 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4524 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4525 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4526 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4527 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4528 grub_pci_make_address.
4529 (lock_rom_area): Likewise.
4530 * commands/lspci.c (grub_lspci_iter): Use macroses
4531 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4532 of grub_pci_make_address.
4533 * disk/ata.c (grub_ata_pciinit): Likewise.
4534 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4535 (GRUB_PCI_REG_VENDOR): Likewise.
4536 (GRUB_PCI_REG_DEVICE): Likewise.
4537 (GRUB_PCI_REG_COMMAND): Likewise.
4538 (GRUB_PCI_REG_STATUS): Likewise.
4539 (GRUB_PCI_REG_REVISION): Likewise.
4540 (GRUB_PCI_REG_CLASS): Likewise.
4541 (GRUB_PCI_REG_CACHELINE): Likewise.
4542 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4543 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4544 (GRUB_PCI_REG_BIST): Likewise.
4545 (GRUB_PCI_REG_ADDRESSES): Likewise.
4546 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4547 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4548 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4549 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4550 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4551 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4552 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4553 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4554 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4555 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4556 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4557 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4558 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4559 (GRUB_PCI_REG_MIN_GNT): Likewise.
4560 (GRUB_PCI_REG_MAX_LAT): Likewise.
4561 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4562 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4563 * video/efi_uga.c (find_framebuf): Likewise.
4564 * video/sm712.c (grub_video_sm712_setup): Likewise.
4565 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4568 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4570 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4571 can be reliably determined to be supported.
4573 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4575 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4576 that VESA is supported.
4577 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4580 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4582 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4584 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4586 * util/misc.c (make_system_path_relative_to_its_root): Work around
4587 special-casing of "/", as previous incarnation of this routine did.
4589 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4591 Fix any-emu compilation.
4593 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4594 * grub_bin2h_SOURCES: New variable.
4596 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4598 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4600 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4602 * util/grub.d/00_header.in: Fix handling of locale_dir.
4604 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4606 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4607 as possible unifont location (Gentoo).
4608 Reported by: Alexander Brüning
4610 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4612 Don't try to generate lists for kernel.img.
4614 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4615 (pkglib_MODULES): Remove kernel.img.
4616 (kernel_img_EXPORTS): Removed.
4617 (kernel_img_RELOCATABLE): New variable.
4618 * conf/x86_64-efi.rmk: Likewise.
4619 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4621 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4623 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4624 grub_xasprintf or grub_snprintf.
4625 (grub_vsprintf): Likewise.
4626 (grub_snprintf): New proto.
4627 (grub_vsnprintf): Likewise.
4628 (grub_xasprintf): Likewise.
4629 (grub_xvasprintf): Likewise.
4630 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4631 (grub_sprintf): Removed.
4632 (grub_vsnprintf): New function.
4633 (grub_snprintf): Likewise.
4634 (grub_xvasprintf): Likewise.
4635 (grub_xasprintf): Likewise.
4636 (grub_vsprintf): Renamed to ...
4637 (grub_vsnprintf_real): ...this. New argument max_len.
4639 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4641 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4642 fix grub-script-check warning.
4644 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4646 * include/grub/font.h (grub_font_load): Fix prototype.
4648 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4650 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4652 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4654 * include/grub/x86_64/at_keyboard.h: New file.
4656 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4658 * loader/mips/linux.c: Include missing grub/i18n.h.
4660 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4662 * normal/menu.c (notify_execution_failure): Clarify error message.
4664 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4666 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4667 return value (and revert all return statements). Update users.
4669 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4671 * kern/device.c (grub_device_iterate): Allocate new part_ent
4672 structure based on sizeof (*p) rather than sizeof (p->next), to
4673 account for structure padding.
4675 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4676 disk is NULL, which might happen for LVM physical volumes with no
4679 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4681 * loader/mips/linux.c (grub_cmd_initrd)
4682 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4684 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4686 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4687 (grub_video_video_init, grub_video_bitmap_init)
4688 (grub_font_manager_init, grub_term_gfxterm_init)
4689 (grub_at_keyboard_init): New extern declarations.
4690 (grub_machine_init): Initialize gfxterm and at_keyboard.
4692 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4694 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4695 `gfxterm.mod' into core image.
4697 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4698 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4699 (kernel_img_FORMAT): Copy to ...
4701 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4702 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4703 (kernel_img_FORMAT): ... here, and ...
4705 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4706 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4707 (kernel_img_FORMAT): ... here.
4709 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4710 and input (at_keyboard) terminals in kernel.
4711 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4713 (pkglib_MODULES): Remove `pci.mod'.
4714 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4715 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4716 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4717 (at_keyboard_mod_LDFLAGS): Remove variables.
4719 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4721 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4723 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4725 * include/grub/mips/libgcc.h: Only export symbols for functions
4726 that libgcc provides.
4728 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4732 * bus/bonito.c: New file.
4733 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4734 GRUB_PCI_NUM_DEVICES.
4735 * term/i386/pc/serial.c: Move to ...
4736 * term/serial.c: ... here. All users updated.
4737 * util/i386/pc/grub-mkimage.c: Move to ...
4738 * util/grub-mkrawimage.c: ... here. All users updated.
4739 * term/i386/pc/at_keyboard.c: Move to ...
4740 * term/at_keyboard.c: ... here. All users updated.
4741 * conf/mips-qemu-mips.rmk: New file.
4742 * conf/mips-yeeloong.rmk: Likewise.
4743 * conf/mips.rmk: Likewise.
4744 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4746 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4748 (grub_ata_pciinit): Support CS5536.
4749 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4750 * font/font_cmd.c (loadfont_command): Open file before passing it to
4752 (pseudo_file_read): New function.
4753 (pseudo_file_close): Likewise.
4754 (pseudo_fs): New structure.
4755 (load_font_module): New function.
4756 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4757 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4758 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4759 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4760 * include/grub/i386/at_keyboard.h: Split into ...
4761 * include/grub/at_keyboard.h: ... this ...
4762 * include/grub/i386/at_keyboard.h: ... and this.
4763 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4765 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4767 (grub_elf64_size): Likewise.
4768 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4770 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4771 * include/grub/i386/coreboot/serial.h: Rewritten.
4772 * include/grub/i386/ieee1275/serial.h: Include
4773 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4774 * include/grub/i386/pc/serial.h: Moved from here ...
4775 * include/grub/serial.h: ... to here. All users updated.
4776 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4777 (GRUB_PCI_NUM_BUS): Likewise.
4778 (GRUB_PCI_NUM_DEVICES): Likewise.
4779 (grub_pci_device_map_range): Add missing volatile keyword.
4780 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4781 * include/grub/mips/at_keyboard.h: New file.
4782 * include/grub/mips/cache.h: Likewise.
4783 * include/grub/mips/io.h: Likewise.
4784 * include/grub/mips/kernel.h: Likewise.
4785 * include/grub/mips/libgcc.h: Likewise.
4786 * include/grub/mips/pci.h: Likewise.
4787 * include/grub/mips/qemu-mips/boot.h: Likewise.
4788 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4789 * include/grub/mips/qemu-mips/loader.h: Likewise.
4790 * include/grub/mips/qemu-mips/memory.h: Likewise.
4791 * include/grub/mips/qemu-mips/serial.h: Likewise.
4792 * include/grub/mips/qemu-mips/time.h: Likewise.
4793 * include/grub/mips/relocator.h: Likewise.
4794 * include/grub/mips/time.h: Likewise.
4795 * include/grub/mips/types.h: Likewise.
4796 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4797 * include/grub/mips/yeeloong/boot.h: Likewise.
4798 * include/grub/mips/yeeloong/kernel.h: Likewise.
4799 * include/grub/mips/yeeloong/loader.h: Likewise.
4800 * include/grub/mips/yeeloong/memory.h: Likewise.
4801 * include/grub/mips/yeeloong/pci.h: Likewise.
4802 * include/grub/mips/yeeloong/serial.h: Likewise.
4803 * include/grub/mips/yeeloong/time.h: Likewise.
4804 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4805 * kern/elf.c (grub_elf32_size): New parameter. All users
4807 (grub_elf64_size): Likewise.
4808 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4809 Load modules before saying "Welcome to GRUB!".
4810 Call grub_refresh after saying "Welcome to GRUB!".
4811 * kern/mips/cache.S: New file.
4812 * kern/mips/cache_flush.S: Likewise.
4813 * kern/mips/dl.c: Likewise.
4814 * kern/mips/init.c: Likewise.
4815 * kern/mips/qemu-mips/init.c: Likewise.
4816 * kern/mips/startup.S: Likewise.
4817 * kern/mips/yeeloong/init.c: Likewise.
4818 * kern/term.c (grub_putcode): Handle NULL terminal.
4819 (grub_getcharwidth): Likewise.
4820 (grub_getkey): Likewise.
4821 (grub_checkkey): Likewise.
4822 (grub_getkeystatus): Likewise.
4823 (grub_getxy): Likewise.
4824 (grub_getwh): Likewise.
4825 (grub_gotoxy): Likewise.
4826 (grub_cls): Likewise.
4827 (grub_setcolorstate): Likewise.
4828 (grub_setcolor): Likewise.
4829 (grub_getcolor): Likewise.
4830 (grub_refresh): Likewise.
4831 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4832 (write_jump): Add hatch nop.
4833 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4834 * lib/mips/setjmp.S: New file.
4835 * loader/mips/linux.c: Likewise.
4836 * term/i386/pc/at_keyboard.c: Move from here ...
4837 * term/at_keyboard.c: ... to here.
4838 * term/i386/pc/serial.c: Moved from here ...
4839 * term/serial.c: ... to here. All users updated.
4840 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4841 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4842 (serial_translate_key_sequence): Avoid deadlock.
4843 (grub_serial_getkey): Handle backspace.
4844 (grub_serial_putchar): Fix newline handling.
4845 * util/i386/pc/grub-mkimage.c: Move from here ...
4846 * util/grub-mkrawimage.c: ... to here. All users updated.
4847 (generate_image): New parameters 'font_path' and 'format'.
4848 Support embedding font.
4849 Use grub_host_to_target* instead of grub_cpu_to_le*.
4850 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4851 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4852 (options): New option "--font".
4854 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4855 (main): Handle "--font".
4856 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4857 (grub_virtual_screen_setup): Set bg_color_display.
4858 (redraw_screen_rect): Use bg_color_display instead of incorrect
4860 (grub_gfxterm_cls): Likewise.
4861 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4862 Support embedding config file.
4863 (add_segments): Likewise.
4864 (options): New option "--config".
4865 (main): Handle "--config".
4866 * video/sm712.c: New file.
4868 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4870 Fix parallel builds.
4872 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4873 font.c depend on ascii.h).
4875 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4877 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4879 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4881 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4882 By default: disabled.
4883 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4886 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4888 * font/font.c: Update copyright years.
4889 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4891 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4893 * font/font.c: Include `ascii.h'.
4894 (ASCII_BITMAP_SIZE): New macro.
4895 (ascii_font_glyph): Define.
4896 (ascii_glyph_lookup): New function.
4897 (grub_font_get_string_width): Change comment. If glyph not found, use
4899 (grub_font_get_glyph_with_fallback): If glyph not available returns
4901 * util/grub-mkfont.c (file_formats): New enum.
4902 (options): Add `ascii-bitmaps' new option.
4903 (usage): Add `asii-bitmaps' new option.
4904 (write_font_ascii_bitmap): New function.
4905 (write_font): Rename to ...
4906 (write_font_p2): ... this. Remove print_glyphs call.
4907 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4908 used. Call print_glyphs.
4909 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4911 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4913 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4914 (grub_bin2h_SOURCES): New variable.
4915 * util/bin2h.c: New file.
4917 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4919 * include/multiboot.h: Resynced with spec.
4920 * include/multiboot2.h: Likewise.
4921 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4922 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4924 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4926 * include/grub/term.h (grub_term_register_input,
4927 grub_term_register_output): Check return of terminal init()
4928 routines, and abort if errors are raised.
4930 * commands/terminal.c: Update copyright year.
4932 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4934 * commands/terminal.c (grub_cmd_terminal_input)
4935 (grub_cmd_terminal_output): Check return of terminal init()
4936 routines, and abort if errors are raised.
4938 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4940 * include/grub/i386/bsd.h: Fix include pathes.
4942 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4944 Add missing *BSD copyright headers.
4946 * include/grub/aout.h: Add BSD licence.
4947 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4948 * include/grub/i386/freebsd_linker.h: ... here,
4949 * include/grub/i386/freebsd_reboot.h: ... here,
4950 * include/grub/i386/netbsd_bootinfo.h: ... here,
4951 * include/grub/i386/netbsd_reboot.h: ... here,
4952 * include/grub/i386/openbsd_bootarg.h: ... here,
4953 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4954 licence to each file.
4956 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4958 * acinclude.m4: Remove `nop' assembly instruction; it's not
4959 implemented by all architectures.
4961 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4963 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4964 ELILO. This is no longer necessary.
4966 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4968 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4970 * util/grub-script-check.c: grub-script-check tool.
4971 * conf/common.rmk: Make rules for grub-script-check.
4973 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4975 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4976 spotting it back in 2008. Shame on me for forgetting he did.
4978 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4980 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4982 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4983 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4984 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4985 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4986 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4987 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4989 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4991 * include/grub/test.h: Add license header.
4992 * tests/example_functional_test.c: Likewise.
4993 * tests/example_unit_test.c: Likewise.
4994 * tests/lib/functional_test.c: Likewise.
4995 * tests/lib/test.c: Likewise.
4996 * tests/lib/unit_test.c: Likewise.
4998 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
5000 Use flag-based instead of hook-based video mode selection and "auto"
5003 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
5004 (grub_video_set_mode): Changed prototype. All users updated.
5005 (grub_video_check_mode_flag): New inline function.
5006 * video/video.c (parse_modespec): New function.
5007 (grub_video_set_mode): Parse flags and keywords.
5009 2010-01-17 Carles Pina i Estany <carles@pina.cat>
5011 * util/misc.c (grub_util_info): Fix the order of the parameters in a
5014 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5016 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
5018 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5020 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
5022 * util/grub-emu.c (usage): Likewise.
5023 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
5024 * util/i386/efi/grub-mkimage.c (usage): Likewise.
5025 * util/i386/pc/grub-mkimage.c (usage): Likewise.
5026 * util/i386/pc/grub-setup.c (usage): Likewise.
5028 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5030 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
5032 (grub_util_info): Likewise.
5033 (grub_util_error): Likewise.
5034 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
5035 and/or new lines in `grub_util_warna', `grub_util_info',
5036 `grub_util_error' calls.
5037 * util/getroot.c: Likewise.
5038 * util/grub-editenv.c: Likewise.
5039 * util/grub-emu.c: Likewise.
5040 * util/grub-fstest.c: Likewise.
5041 * util/grub-mkdevicemap.c: Likewise.
5042 * util/grub-mkfont.c: Likewise.
5043 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5044 * util/grub-mkrelpath.c: Likewise.
5045 * util/grub-pe2elf.c: Likewise.
5046 * util/grub-probe.c: Likewise.
5047 * util/hostdisk.c: Likewise.
5048 * util/i386/efi/grub-mkimage.c: Likewise.
5049 * util/i386/pc/grub-mkimage.c: Likewise.
5050 * util/i386/pc/grub-setup.c: Likewise.
5051 * util/ieee1275/ofpath.c: Likewise.
5052 * util/mkisofs/eltorito.c: Likewise.
5053 * util/mkisofs/rock.c: Likewise.
5054 * util/mkisofs/write.c: Likewise.
5055 * util/raid.c: Likewise.
5056 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
5057 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5059 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5061 Enable multiboot on non-pc.
5063 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
5064 multiboot.mod and multiboot2.mod to ...
5065 * conf/i386.rmk (pkglib_MODULES): ... here.
5066 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
5068 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
5069 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
5071 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
5072 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
5074 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
5075 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
5077 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
5078 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
5080 (ata_mod_SOURCES): Removed.
5081 (ata_mod_CFLAGS): Likewise.
5082 (ata_mod_LDFLAGS): Likewise.
5083 (relocator_mod_SOURCES): Removed.
5084 (relocator_mod_CFLAGS): Likewise.
5085 (relocator_mod_ASFLAGS): Likewise.
5086 (relocator_mod_LDFLAGS): Likewise.
5088 * include/grub/x86_64/multiboot.h: New file.
5089 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
5092 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5094 Video multiboot support.
5096 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
5098 * include/multiboot.h: Resynced with multiboot specification.
5099 * include/multiboot2.h: Likewise.
5100 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
5101 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
5102 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
5103 (HAS_VGA_TEXT): Likewise.
5104 (accepts_video): New variable.
5105 (grub_multiboot_set_accepts_video): New function.
5106 (grub_multiboot_get_mbi_size): Account for video structures.
5107 (set_video_mode): New function.
5108 (retrieve_video_parameters): Likewise.
5109 (grub_multiboot_make_mbi): Fill video fields.
5111 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5115 * include/grub/video.h (grub_video_driver_id): New type.
5116 (grub_video_adapter): New member 'id'. All users updated.
5117 (grub_video_get_driver_id): New proto.
5118 * video/video.c (grub_video_get_driver_id): New function.
5120 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5122 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
5125 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5127 * normal/cmdline.c (print_completion): Gettextizze.
5129 2001-01-14 Carles Pina i Estany <carles@pina.cat>
5131 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
5133 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5135 * gettext/gettext.c (grub_gettext_translate): Push and pop
5137 (grub_gettext_delete_list): Change comment style.
5138 * kern/err.c (grub_error): Gettextizze.
5139 (grub_fatal): Gettextizze.
5141 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5143 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
5144 (grub_linux16_real_boot): ... this.
5145 * kern/i386/loader.S: Likewise.
5146 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
5147 (grub_linux16_boot): New function. Switches to text mode and calls
5148 grub_linux16_real_boot().
5150 * loader/i386/bsd.c: Include `<grub/video.h>'.
5151 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
5152 text mode before calling grub_unix_real_boot().
5154 * loader/i386/multiboot.c: Include `<grub/video.h>'.
5155 (grub_multiboot_boot): Switch to text mode before calling
5156 grub_relocator32_boot().
5158 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
5159 (grub_chainloader_boot): Switch to text mode before calling
5160 grub_chainloader_real_boot().
5162 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5163 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5165 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
5168 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5169 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5171 * util/grub.d/00_header.in: Define a "savedefault" function for use
5173 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
5175 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5176 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5178 * util/grub-mkconfig_lib.in (save_default_entry): Only set
5179 saved_entry if boot_once is unset.
5180 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
5181 previous saved entry (i.e. grub-reboot).
5183 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5185 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
5187 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5189 * util/grub.d/00_header.in: Use `set var=val' rather than plain
5191 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
5193 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5195 * util/grub-reboot.in: Fix --version output.
5196 * util/grub-set-default.in: Likewise.
5198 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5200 * util/grub.d/00_header.in: Silently ignore zero-sized environment
5203 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5205 * util/grub.d/00_header.in: Quote the value assigned to `default',
5206 in case it contains spaces.
5208 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5210 * util/grub.d/30_os-prober.in: Fix merge error that moved a
5211 `save_default_entry' call from the macosx case to the linux case.
5213 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5214 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
5216 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
5217 in `chosen' environment variable.
5218 * normal/menu_text.c (get_entry_number): Check if the variable
5219 matches the title of a menu entry.
5220 (run_menu): Pass menu to get_entry_number.
5222 * util/grub-reboot.in: New file.
5223 * util/grub-set-default.in: New file.
5224 * conf/common.rmk (grub-reboot): New utility.
5225 (grub-set-default): New utility.
5227 * util/grub-mkconfig_lib.in (save_default_entry): New function.
5228 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
5229 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
5230 move it to `saved_entry' for the next boot. Load environment on
5232 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
5233 * util/grub.d/10_hurd.in: Likewise.
5234 * util/grub.d/10_linux.in (linux_entry): Likewise.
5235 * util/grub.d/10_windows.in: Likewise.
5236 * util/grub.d/30_os-prober.in: Likewise.
5238 * util/grub-install.in: Create environment block.
5239 * util/i386/efi/grub-install.in: Likewise.
5240 * util/ieee1275/grub-install.in: Likewise.
5241 * util/sparc64/ieee1275/grub-install.in: Likewise.
5243 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
5245 Unit testing framework for GRUB.
5247 * Makefile.in: Test framework build rules for 'make check'.
5248 * conf/tests.rmk: Build rules for individual tests and framework.
5250 * include/grub/test.h: Header file for whitebox tests.
5251 * tests/lib/functional_test.c: Framework support for whitebox
5253 * tests/lib/test.c: Common whitebox testing code for unit and
5255 * tests/lib/unit_test.c: Framework support for whitebox unit
5258 * tests/util/grub-shell-tester.in: Support utility for grub-script
5260 * tests/util/grub-shell.in: Utility to execute grub-script
5261 commands in a Qemu instance.
5263 * tests/example_functional_test.c: Example whitebox functional
5265 * tests/example_grub_script_test.in: Example grub-script test.
5266 * tests/example_scripted_test.in: Example scripted test.
5267 * tests/example_unit_test.c: Example whitebox unit test.
5269 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5271 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
5272 Add loader/i386/multiboot_mbi.c.
5273 (multiboot2_mod_SOURCES): Likewise.
5274 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
5275 (multiboot2_mod_SOURCES): Likewise.
5276 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
5277 (grub_multiboot_make_mbi): Likewise.
5278 (grub_multiboot_free_mbi): Likewise.
5279 (grub_multiboot_init_mbi): Likewise.
5280 (grub_multiboot_add_module): Likewise.
5281 (grub_multiboot_set_bootdev): Likewise.
5282 * loader/i386/multiboot.c (mbi): Removed.
5283 (mbi_dest): Likewise.
5284 (alloc_mbi): New variable.
5285 (grub_multiboot_payload_size): Removed. All users updated.
5286 (grub_multiboot_pure_size): New variable.
5287 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
5288 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
5289 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
5290 (grub_fill_multiboot_mmap): Likewise.
5291 (grub_multiboot_get_bootdev): Likewise.
5292 (grub_multiboot): Use multiboot_mbi functions.
5293 * loader/i386/multiboot_mbi.c: New file.
5295 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5297 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
5298 it would result in module crash.
5300 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5302 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
5303 (grub_ofconsole_getwh): Split to ...
5304 (grub_ofconsole_getwh): ... this.
5305 (grub_ofconsole_dimensions): ...and this.
5306 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
5308 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
5310 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
5312 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5314 * loader/i386/pc/multiboot2.c: Removed stalled file.
5316 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5318 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
5319 Reported by: Grégoire Sutre
5321 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
5323 * util/misc.c (canonicalize_file_name): New function.
5324 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
5325 instead of realpath().
5327 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
5329 * util/grub-install.in (usage): Clarify meaning of --root-directory,
5330 and make it clearer that it's optional. Based on confusion
5333 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5335 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
5336 in premature implicit newline.
5338 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5340 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5341 which resulted in garbled command line at the end of screen.
5343 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5345 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
5346 initialization with similar approach as with other Linux loaders.
5348 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5350 Fix i386-ieee1275 build.
5352 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
5353 and grub_term_height() for video_{width,height} initialization.
5355 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5359 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
5361 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5362 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5364 Support for multiple terminals.
5366 * Makefile.in (pkglib_DATA): terminal.lst.
5367 (terminal.lst): New target.
5368 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
5369 (GRUB_MOD_INIT(handler)): Likewise.
5370 (GRUB_MOD_FINI(handler)): Likewise.
5371 * commands/help.c (grub_cmd_help): Handle multiple terminals.
5372 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
5373 * commands/sleep.c (do_print): Use grub_term_restore_pos.
5374 (grub_cmd_sleep): Use grub_term_save_pos.
5375 * commands/terminal.c: New file.
5376 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
5377 commands/terminal.c and lib/charset.c.
5378 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
5379 (pkglib_MODULES): Add terminal.mod.
5380 (terminal_mod_SOURCES): New variable.
5381 (terminal_mod_CFLAGS): Likewise.
5382 (terminal_mod_LDFLAGS): Likewise.
5383 * genhandlerlist.sh: Don't handle terminals.
5384 * genmk.rb: Generate terminal-*.lst.
5385 * genterminallist.sh: New file.
5386 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
5387 (grub_is_valid_utf8): Likewise.
5388 (grub_utf8_to_ucs4_alloc): Likewise.
5389 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
5390 (grub_menu_register_viewer): Changed argument.
5391 (grub_menu_try_text): New proto.
5392 (grub_gfxmenu_try_hook): New declaration.
5393 * include/grub/normal.h (grub_normal_exit_level): New declaration.
5394 (grub_menu_init_page): Additional argument term.
5395 (grub_normal_init_page): Likewise.
5396 (grub_cmdline_get): Arguments simplified.
5397 (grub_utf8_to_ucs4_alloc): Removed.
5398 (grub_print_ucs4): Additional argument term.
5399 (grub_getstringwidth): Likewise.
5400 (grub_print_message_indented): Likewise.
5401 (grub_menu_text_register_instances): New proto.
5402 (grub_show_menu): Likewise.
5403 (read_terminal_list): Likewise.
5404 (grub_set_more): Likewise.
5405 * include/grub/parser.h: Include handler.h.
5406 * include/grub/reader.h: Rewritten.
5407 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
5408 (GRUB_TERM_WIDTH): Changed to function.
5409 (GRUB_TERM_HEIGHT): Likewise.
5410 (GRUB_TERM_BORDER_WIDTH): Likewise.
5411 (GRUB_TERM_BORDER_HEIGHT): Likewise.
5412 (GRUB_TERM_NUM_ENTRIES): Likewise.
5413 (GRUB_TERM_ENTRY_WIDTH): Likewise.
5414 (GRUB_TERM_CURSOR_X): Likewise.
5415 (grub_term_input_class): Likewise.
5416 (grub_term_output_class): Likewise.
5417 (grub_term_outputs_disabled): New declaration.
5418 (grub_term_inputs_disabled): Likewise.
5419 (grub_term_outputs): Likewise.
5420 (grub_term_inputs): Likewise.
5421 (grub_term_register_input): Rewritten.
5422 (grub_term_register_output): Likewise.
5423 (grub_term_unregister_input): Likewise.
5424 (grub_term_unregister_output): Likewise.
5425 (FOR_ACTIVE_TERM_INPUTS): New macro.
5426 (FOR_DISABLED_TERM_INPUTS): Likewise.
5427 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5428 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5429 * include/grub/terminfo.h: Add oterm argument to all protypes.
5430 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
5431 Use grub_rescue_run.
5432 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
5434 * kern/reader.c: Removed. All users updated.
5435 * kern/rescue_reader.c (grub_rescue_init): Removed.
5436 (grub_rescue_reader): Likewise.
5437 (grub_register_rescue_reader): Likewise.
5438 (grub_rescue_run): New function based on kern/reader.c.
5439 * kern/term.c: Adapted for multiterm.
5440 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
5441 (grub_is_valid_utf8): Likewise.
5442 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
5443 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
5445 * loader/i386/linux.c (grub_linux_boot): Likewise.
5446 * normal/auth.c (grub_username_get): New function.
5447 (grub_auth_check_authentication): Use grub_username_get.
5448 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
5449 * normal/color.c: Adapt for multiterm.
5450 * normal/main.c (read_config_file): Don't use grub_reader_loop.
5451 (grub_normal_init_page): Additional argument term.
5452 (read_lists): Call read_terminal_lists.
5453 (grub_enter_normal_mode): Call grub_cmdline_run.
5454 Handle grub_normal_exit_level.
5455 (grub_cmd_normal): Make reentrant.
5456 (grub_cmd_normal_exit): New function.
5457 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
5458 * normal/menu.c: Adapt for multiterm.
5459 * normal/menu_entry.c: Likewise.
5460 * normal/menu_text.c: Likewise.
5461 * normal/menu_viewer.c: Removed. All users updated.
5462 * normal/term.c: New file.
5463 * util/console.c: Change order of includes to workaround a bug in
5465 * term/terminfo.c: New argument oterm on all exported functions.
5467 * util/grub-editenv.c (grub_term_input_class): Removed.
5468 (grub_term_output_class): Likewise.
5470 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5472 Make loader output a bit more user-friendly.
5474 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
5475 is being loaded. Likewise for the Hurd.
5477 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
5478 that kernel of FreeBSD ${version} is being loaded.
5480 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
5482 (grub_cmd_initrd): Likewise.
5483 * util/grub.d/10_linux.in (linux_entry): Print message indicating
5484 that Linux ${version} is being loaded. Likewise for initrd.
5486 2010-01-09 Carles Pina i Estany <carles@pina.cat>
5488 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
5490 2010-01-08 Carles Pina i Estany <carles@pina.cat>
5492 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5493 (GRUB_MOD_INIT): Gettextizze.
5494 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5495 (GRUB_MOD_INIT): Gettextizze.
5496 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5497 (grub_cmd_linux): Capitalise Linux.
5498 (GRUB_MOD_INIT): Gettextizze.
5499 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5500 (grub_cmd_linux): Capitalise Linux.
5501 (GRUB_MOD_INIT): Gettextizze.
5502 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5503 (grub_cmd_linux): Capitalise Linux.
5504 (GRUB_MOD_INIT): Gettextizze.
5505 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5506 (GRUB_MOD_INIT): Gettextizze.
5507 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5508 (grub_cmd_linux): Capitalise Linux.
5509 (GRUB_MOD_INIT): Gettextizze.
5510 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5511 (grub_cpu_xnu_init): Gettextizze.
5512 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5513 (GRUB_MOD_INIT): Gettextizze.
5514 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5515 (GRUB_MOD_INIT): Gettextizze.
5516 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5517 (grub_linux_load64): Capitalise Linux.
5518 (GRUB_MOD_INIT): Gettextizze.
5519 * loader/xnu.c: Include `<grub/i18n.h>'.
5520 (GRUB_MOD_INIT): Gettextizze.
5521 * po/POTFILES: Add `loader/efi/appleloader.c',
5522 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5523 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5524 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5525 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5526 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5529 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5531 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5533 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5535 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5536 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5537 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5539 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5541 Reset Multiboot 2 support. New loader implements the draft in
5542 /branches/multiboot2 and shares as much code as possible with the
5543 production Multiboot 1 implementation.
5545 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5546 * loader/multiboot2.c: Likewise.
5547 * loader/i386/multiboot_helper.S: Likewise.
5548 * include/multiboot2.h: Replace with latest version from the draft
5549 in /branches/multiboot2.
5551 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5552 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5553 and `loader/multiboot2.c'.
5554 (pkglib_MODULES): Add `multiboot2.mod'.
5555 (multiboot2_mod_SOURCES): New variable.
5556 (multiboot2_mod_LDFLAGS): Likewise.
5557 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5559 * conf/i386-pc.rmk: Likewise.
5561 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5562 (multiboot_mod_SOURCES): Remove variable.
5563 (multiboot_mod_LDFLAGS): Likewise.
5564 (multiboot_mod_CFLAGS): Likewise.
5566 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5567 `<multiboot2.h>' instead of `<multiboot.h>'.
5568 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5569 (MULTIBOOT_HEADER_MAGIC): New macros.
5571 * loader/multiboot_loader.c (module_version_status): Remove variable.
5572 (find_multi_boot2_header): Remove function.
5573 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5574 logic. Always check for the Multiboot version we're compiling for.
5575 (grub_cmd_module_loader): Likewise.
5576 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5577 command instead of `multiboot'.
5579 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5581 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5582 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5585 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5586 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5588 Fix breakage introduced with previous commit.
5590 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5592 * normal/handler.c (read_handler_list): Revert part of previous commit
5593 affecting this file.
5594 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5595 (grub_normal_execute): ... here.
5597 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5599 Merge prefix-redefinition-fix branch.
5601 * normal/autofs.c (read_fs_list): Make function capable of being
5602 run multiple times, gracefuly replacing the previous data
5604 * normal/dyncmd.c (read_command_list): Likewise.
5605 * normal/handler.c (read_handler_list): Likewise.
5606 * normal/main.c (read_lists): New function. Calls all the
5607 list reading functions.
5608 (grub_normal_execute): Use read_lists() instead of calling all
5609 list reading functions explicitly. Register read_lists() as a
5610 variable hook attached to ${prefix}.
5612 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5614 Merge crypto branch.
5616 * Makefile.in (pkglib_DATA): Add crypto.lst.
5617 (crypto.lst): New target.
5618 * commands/hashsum.c: New file.
5619 * commands/password.c (check_password): Use grub_crypto_memcmp.
5620 * commands/password_pbkdf2.c: New file.
5621 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5622 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5623 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5624 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5625 -I$(srcdir)/lib/libgcrypt_wrap.
5626 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5627 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5628 password_pbkdf2.mod.
5629 (crypto_mod_SOURCES): New variable.
5630 (crypto_mod_CFLAGS): Likewise.
5631 (crypto_mod_LDFLAGS): Likewise.
5632 (hashsum_mod_SOURCES): New variable.
5633 (hashsum_mod_CFLAGS): Likewise.
5634 (hashsum_mod_LDFLAGS): Likewise.
5635 (pbkdf2_mod_SOURCES): New variable.
5636 (pbkdf2_mod_CFLAGS): Likewise.
5637 (pbkdf2_mod_LDFLAGS): Likewise.
5638 (password_pbkdf2_mod_SOURCES): New variable.
5639 (password_pbkdf2_mod_CFLAGS): Likewise.
5640 (password_pbkdf2_mod_LDFLAGS): Likewise.
5641 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5642 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5643 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5644 Include conf/gcry.rmk.
5645 * include/grub/auth.h: Rewritten.
5646 * include/grub/crypto.h: New file.
5647 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5648 * include/grub/normal.h (read_crypto_list): New prototype.
5649 * lib/crypto.c: New file.
5650 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5651 * lib/pbkdf2.c: Likewise.
5652 * normal/auth.c (grub_auth_strcmp): Removed.
5653 (grub_iswordseparator): Likewise.
5654 (grub_auth_strword): Likewise.
5655 (is_authenticated): Use grub_strword.
5656 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5657 and grub_strword. Pass entered password to authentication callback.
5658 * normal/crypto.c: New file.
5659 * normal/main.c: Call read_crypto_list.
5660 * util/grub-mkpasswd-pbkdf2.c: New file.
5661 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5663 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5665 Fix descent and ascent calculation.
5667 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5668 (options): New option "asce".
5670 (add_char): Ignore invalid glyphs for descent calculation.
5671 Calculate ascent from actual content.
5672 (print_glyphs): Use 'asce'.
5673 (write_font): Likewise. Allow ascent override.
5674 (main): Handle "asce" option.
5676 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5678 * kern/err.c: Include `<grub/i18n.h>'.
5679 (grub_print_error): Add full stop. Gettextizze.
5680 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5681 (grub_bsd_load_elf): Capitalise ELF.
5682 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5683 (grub_cmd_freebsd_module): Likewise.
5684 (grub_cmd_freebsd_module_elf): Likewise.
5685 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5687 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5689 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5690 * commands/search_file.c (HELP_MESSAGE): New macro.
5691 * commands/search_label.c (HELP_MESSAGE): Likewise.
5692 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5693 * po/POTFILES: Add `commands/search_file.c',
5694 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5695 `commands/search.c'.
5697 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5699 * config.rpath: Update from Gnulib.
5701 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5703 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5705 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5707 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5709 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5711 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5712 arguments to fread so that we get a return value in bytes, rather
5713 than something that will normally be rounded down to 0.
5714 Adjust error handling to avoid producing garbage when size_t is not
5715 the same size as long long.
5717 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5719 * util/mkisofs/write.c (padblock_write): Check return value of
5722 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5724 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5727 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5729 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5731 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5732 instead of manual alignment.
5733 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5734 verbose). Avoid attempts to read past end of the device
5735 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5736 but GRUB_DISK_CACHE_SIZE may exceed that).
5738 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5740 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5741 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5744 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5746 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5748 (grub_efi_piwg_device_path): New structure
5749 (grub_efi_piwg_device_path_t): New type.
5750 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5751 (devpath_1): Transform to a structure. All users updated.
5752 (devpath_2): Likewise.
5753 (devpath_3): Likewise.
5754 (devpath_4): Likewise.
5755 (devpath_5): Likewise.
5757 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5759 * loader/efi/appleloader.c: Restored. Update all users.
5761 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5763 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5765 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5766 (struct boot_blocklist): Move from here ...
5767 * include/grub/i386/pc/boot.h [ASM_FILE]
5768 (struct grub_boot_blocklist): ... to here. Update all users.
5769 (setup): Only initialize `start' member of `first_block'
5770 structure. Add assert() calls to verify the other members.
5772 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5773 (generate_image): Fix broken blocklist length initialization.
5774 Add assert() call to verify blocklist `segment' field.
5776 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5778 * loader/efi/appleloader.c: Remove. Update all users.
5780 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5782 * boot/i386/pc/boot.S: Update copyright year.
5783 * boot/i386/pc/cdboot.S: Likewise.
5784 * boot/i386/pc/diskboot.S: Likewise.
5785 * boot/i386/pc/lnxboot.S: Likewise.
5786 * boot/i386/pc/pxeboot.S: Likewise.
5787 * bus/pci.c: Likewise.
5788 * commands/cmp.c: Likewise.
5789 * commands/help.c: Likewise.
5790 * commands/hexdump.c: Likewise.
5791 * commands/i386/pc/halt.c: Likewise.
5792 * commands/i386/pc/play.c: Likewise.
5793 * commands/i386/pc/vbeinfo.c: Likewise.
5794 * commands/ls.c: Likewise.
5795 * commands/test.c: Likewise.
5796 * disk/dmraid_nvidia.c: Likewise.
5797 * disk/i386/pc/biosdisk.c: Likewise.
5798 * disk/ieee1275/nand.c: Likewise.
5799 * disk/ieee1275/ofdisk.c: Likewise.
5800 * disk/lvm.c: Likewise.
5801 * disk/raid.c: Likewise.
5802 * disk/raid6_recover.c: Likewise.
5803 * disk/scsi.c: Likewise.
5804 * fs/affs.c: Likewise.
5805 * fs/cpio.c: Likewise.
5806 * fs/ext2.c: Likewise.
5807 * fs/hfs.c: Likewise.
5808 * fs/iso9660.c: Likewise.
5809 * fs/ntfs.c: Likewise.
5810 * fs/sfs.c: Likewise.
5811 * fs/udf.c: Likewise.
5812 * fs/ufs.c: Likewise.
5813 * fs/xfs.c: Likewise.
5814 * gencmdlist.sh: Likewise.
5815 * genmk.rb: Likewise.
5816 * include/grub/disk.h: Likewise.
5817 * include/grub/efi/api.h: Likewise.
5818 * include/grub/efi/efi.h: Likewise.
5819 * include/grub/efi/pe32.h: Likewise.
5820 * include/grub/elf.h: Likewise.
5821 * include/grub/fs.h: Likewise.
5822 * include/grub/i386/at_keyboard.h: Likewise.
5823 * include/grub/i386/pc/memory.h: Likewise.
5824 * include/grub/i386/pc/vbe.h: Likewise.
5825 * include/grub/i386/pci.h: Likewise.
5826 * include/grub/i386/tsc.h: Likewise.
5827 * include/grub/ieee1275/ieee1275.h: Likewise.
5828 * include/grub/ntfs.h: Likewise.
5829 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5830 * include/grub/sparc64/libgcc.h: Likewise.
5831 * include/grub/symbol.h: Likewise.
5832 * include/grub/types.h: Likewise.
5833 * include/multiboot2.h: Likewise.
5834 * io/gzio.c: Likewise.
5835 * kern/device.c: Likewise.
5836 * kern/disk.c: Likewise.
5837 * kern/efi/efi.c: Likewise.
5838 * kern/efi/mm.c: Likewise.
5839 * kern/elf.c: Likewise.
5840 * kern/file.c: Likewise.
5841 * kern/i386/dl.c: Likewise.
5842 * kern/i386/pc/init.c: Likewise.
5843 * kern/i386/pc/startup.S: Likewise.
5844 * kern/ieee1275/ieee1275.c: Likewise.
5845 * kern/ieee1275/init.c: Likewise.
5846 * kern/main.c: Likewise.
5847 * kern/mm.c: Likewise.
5848 * kern/powerpc/dl.c: Likewise.
5849 * kern/sparc64/dl.c: Likewise.
5850 * kern/x86_64/dl.c: Likewise.
5851 * lib/hexdump.c: Likewise.
5852 * loader/efi/appleloader.c: Likewise.
5853 * loader/i386/ieee1275/linux.c: Likewise.
5854 * loader/i386/pc/chainloader.c: Likewise.
5855 * loader/i386/pc/linux.c: Likewise.
5856 * loader/i386/pc/multiboot2.c: Likewise.
5857 * loader/ieee1275/multiboot2.c: Likewise.
5858 * loader/multiboot2.c: Likewise.
5859 * loader/multiboot_loader.c: Likewise.
5860 * loader/powerpc/ieee1275/linux.c: Likewise.
5861 * normal/completion.c: Likewise.
5862 * normal/menu_entry.c: Likewise.
5863 * partmap/apple.c: Likewise.
5864 * util/grub.d/10_hurd.in: Likewise.
5865 * util/hostfs.c: Likewise.
5866 * video/readers/png.c: Likewise.
5868 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5870 * include/grub/misc.h (GNUC_PREREQ): New macro.
5871 (ATTRIBUTE_ERROR): New macro.
5872 * include/grub/list.h (grub_bad_type_cast_real): Use
5875 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5877 * normal/menu_text.c (print_message): Change messages.
5879 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5881 * normal/menu_entry.c (store_completion): Gettextizze.
5883 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5885 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5887 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5889 * po/POTFILES: Sort correctly.
5891 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5893 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5894 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5895 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5897 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5898 summary. Gettextizze the strings.
5899 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5900 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5901 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5903 (GRUB_MOD_INIT): Remove command name from summary.
5904 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5906 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5907 * term/i386/pc/serial.c (options): Add full stops.
5908 (GRUB_MOD_INIT): Remove command name from the summary.
5910 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5912 * commands/acpi.c: Gettextizze help strings and/or options. Include
5913 `grub/i18n.h' if needed.
5914 * commands/blocklist.c: Likewise.
5915 * commands/boot.c: Likewise.
5916 * commands/cat.c: Likewise.
5917 * commands/cmp.c: Likewise.
5918 * commands/configfile.c: Likewise.
5919 * commands/crc.c: Likewise.
5920 * commands/date.c: Likewise.
5921 * commands/echo.c: Likewise.
5922 * commands/efi/fixvideo.c: Likewise.
5923 * commands/efi/loadbios.c: Likewise.
5924 * commands/gptsync.c: Likewise.
5925 * commands/halt.c: Likewise.
5926 * commands/handler.c: Likewise.
5927 * commands/hdparm.c: Likewise.
5928 * commands/hexdump.c: Likewise.
5929 * commands/i386/cpuid.c: Likewise.
5930 * commands/i386/pc/drivemap.c: Likewise.
5931 * commands/i386/pc/halt.c: Likewise.
5932 * commands/i386/pc/pxecmd.c: Likewise.
5933 * commands/i386/pc/vbeinfo.c: Likewise.
5934 * commands/i386/pc/vbetest.c: Likewise.
5935 * commands/ieee1275/suspend.c: Likewise.
5936 * commands/keystatus.c: Likewise.
5937 * commands/loadenv.c: Likewise.
5938 * commands/ls.c: Likewise.
5939 * commands/lsmmap.c: Likewise.
5940 * commands/lspci.c: Likewise.
5941 * commands/memrw.c: Likewise.
5942 * commands/minicmd.c: Likewise.
5943 * commands/parttool.c: Likewise.
5944 * commands/password.c: Likewise.
5945 * commands/probe.c: Likewise.
5946 * commands/read.c: Likewise.
5947 * commands/reboot.c: Likewise.
5948 * commands/search.c: Likewise.
5949 * commands/sleep.c: Likewise.
5950 * commands/test.c: Likewise.
5951 * commands/true.c: Likewise.
5952 * commands/usbtest.c: Likewise.
5953 * commands/videotest.c: Likewise.
5954 * commands/xnu_uuid.c: Likewise.
5955 * disk/loopback.c: Likewise.
5956 * hello/hello.c: Likewise.
5957 * loader/i386/bsd.c: Likewise.
5958 * term/i386/pc/serial.c: Likewise.
5959 * po/POTFILES: Add new files.
5961 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5963 * term/i386/pc/at_keyboard.c
5964 (keyboard_controller_wait_untill_ready): Rename to ...
5965 (keyboard_controller_wait_until_ready): ... this. Update all users.
5967 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5969 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5970 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5971 string using string width.
5972 * normal/menu_text.c (grub_print_message_indented): Use
5973 grub_print_spaces and not print_spaces.
5974 (print_timeout): Likewise.
5975 (print_spaces): Move to...
5976 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5978 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5982 * gnulib/getdelim.c: New file.
5983 * gnulib/getline.c: Likewise.
5985 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5987 * include/grub/list.h (grub_assert_fail): Removed.
5988 (grub_bad_type_cast_real): New function.
5989 (grub_bad_type_cast): New macro.
5990 (GRUB_AS_LIST): Use grub_bad_type_cast.
5991 (GRUB_AS_LIST_P): Likewise.
5992 (GRUB_AS_NAMED_LIST): Likewise.
5993 (GRUB_AS_NAMED_LIST_P): Likewise.
5994 (GRUB_AS_PRIO_LIST): Likewise.
5995 (GRUB_AS_PRIO_LIST_P): Likewise.
5996 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5998 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
6000 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
6003 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
6005 * configure.ac: Check for TARGET_CFLAGS initialization before we
6006 initialize it ourselves (sigh).
6007 Move a few modifications to TARGET_CFLAGS to be unconditional
6008 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
6011 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
6012 * term/i386/pc/at_keyboard.c
6013 (keyboard_controller_wait_untill_ready): Likewise.
6014 (keyboard_controller_led): Rename `led_status' paramter to avoid
6017 2009-12-28 Carles Pina i Estany <carles@pina.cat>
6019 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
6022 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6024 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
6026 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6028 * normal/menu_text.c (grub_print_message_indented): Prevent
6029 past-the-end-of-array dereference.
6031 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6033 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
6034 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
6036 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6038 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
6039 * normal/main.c (grub_normal_read_line): Remove a space from the
6042 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6044 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
6045 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6046 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6047 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6048 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6049 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6050 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6052 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6054 * video/readers/jpeg.c (cmd): Declare.
6055 (grub_cmd_jpegtest): Use `grub_command_t' type.
6056 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6058 (GRUB_MOD_FINI): Use `cmd' to unregister.
6059 * video/readers/png.c (cmd): Declare.
6060 (grub_cmd_pngtest): Use `grub_command_t' type.
6061 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6063 (GRUB_MOD_FINI): Use `cmd' to unregister.
6064 * video/readers/tga.c (cmd): Declare.
6065 (grub_cmd_tgatest): Use `grub_command_t' type.
6066 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6068 (GRUB_MOD_FINI): Use `cmd' to unregister.
6070 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6072 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
6074 * kern/corecmd.c (grub_register_core_commands): Likewise.
6075 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
6076 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6077 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
6078 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6079 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6080 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
6081 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6082 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
6083 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6084 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6085 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6086 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6087 * normal/handler.c (insert_handler): Likewise.
6088 * normal/main.c (GRUB_MOD_INIT): Likewise.
6089 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6091 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6093 * commands/help.c (grub_cmd_help): Print the command name before the
6095 (GRUB_MOD_INIT): Remove command name from the summary.
6096 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
6098 * lib/arg.c (find_long): Print the command name before the summary.
6099 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
6101 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
6102 * commands/cat.c (GRUB_MOD_INIT): Likewise.
6103 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
6104 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
6105 * commands/crc.c (GRUB_MOD_INIT): Likewise.
6106 * commands/date.c (GRUB_MOD_INIT): Likewise.
6107 * commands/echo.c (GRUB_MOD_INIT): Likewise.
6108 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
6109 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6110 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6111 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
6112 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
6113 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
6114 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
6115 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6116 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
6117 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
6118 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
6119 * commands/ls.c (GRUB_MOD_INIT): Likewise.
6120 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6121 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6122 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6123 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
6124 * commands/password.c (GRUB_MOD_INIT): Likewise.
6125 * commands/probe.c (GRUB_MOD_INIT): Likewise.
6126 * commands/read.c (GRUB_MOD_INIT): Likewise.
6127 * commands/search.c (GRUB_MOD_INIT): Likewise.
6128 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
6129 * commands/test.c (GRUB_MOD_INIT): Likewise.
6130 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
6131 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6132 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6133 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
6134 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6135 * lib/arg.c (GRUB_MOD_INIT): Likewise.
6136 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
6137 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6138 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6139 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6140 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6141 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
6142 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
6143 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
6145 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6147 Use search command for preliminar UUID search.
6149 * commands/search.c: Split into ...
6150 * commands/search_wrap.c: ...this
6151 * commands/search.c: ...and this.
6152 * commands/search_file.c: New file.
6153 * commands/search_label.c: New file.
6154 * commands/search_uuid.c: New file.
6155 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
6156 Add commands/search_wrap.c, commands/search_file.c,
6157 commands/search_label.c and commands/search_uuid.c.
6158 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
6159 (search_mod_SOURCES): Set to commands/search_wrap.c.
6160 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
6162 (search_fs_file_mod_SOURCES): New variable.
6163 (search_fs_file_mod_CFLAGS): Likewise.
6164 (search_fs_file_mod_LDFLAGS): Likewise.
6165 (search_label_mod_SOURCES): Likewise.
6166 (search_label_mod_CFLAGS): Likewise.
6167 (search_label_mod_LDFLAGS): Likewise.
6168 (search_fs_uuid_mod_SOURCES): New variable.
6169 (search_fs_uuid_mod_CFLAGS): Likewise.
6170 (search_fs_uuid_mod_LDFLAGS): Likewise.
6171 (fs_file_mod_SOURCES): Removed.
6172 (fs_file_mod_CFLAGS): Likewise.
6173 (fs_file_mod_LDFLAGS): Likewise.
6174 (fs_uuid_mod_SOURCES): Removed.
6175 (fs_uuid_mod_CFLAGS): Likewise.
6176 (fs_uuid_mod_LDFLAGS): Likewise.
6177 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
6178 Set to util/grub-install.in.
6179 * disk/fs_file.c: Removed.
6180 * disk/fs_uuid.c: Likewise.
6181 * include/grub/search.h: New file.
6182 * util/grub-install.in: Handle sparc64.
6183 Create and use load.cfg.
6184 * util/sparc64/ieee1275/grub-install.in: Removed.
6186 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6188 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
6189 Ignore return status if CF is cleared.
6190 (grub_biosdisk_get_diskinfo_standard): Likewise.
6192 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6194 * term/i386/pc/at_keyboard.c
6195 (keyboard_controller_wait_untill_ready): New function.
6196 (grub_keyboard_controller_write, grub_keyboard_controller_read)
6197 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
6198 for keyboard polling, rather than duplicate the same loop. This
6199 saves a few bytes in code size.
6201 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6203 Support for (pxe[:server[:gateway]]) syntax and
6204 use environment variable for PXE.
6206 * commands/i386/pc/pxecmd.c (options): Removed.
6207 (print_ip): Removed.
6208 (grub_cmd_pxe): Removed
6209 (grub_cmd_pxe_unload): New function.
6210 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
6211 (grub_pxe_your_ip): Made static.
6212 (grub_pxe_default_server_ip): Likewise.
6213 (grub_pxe_default_gateway_ip): Likewise.
6214 (grub_pxe_blksize): Likewise.
6215 (parse_ip): New function.
6216 (grub_pxe_open): Support server and gateway specification.
6217 (grub_pxe_close): Free disk->data.
6218 (grub_pxefs_open): Use disk->data.
6219 (grub_pxefs_read): Likewise.
6220 (grub_env_write_readonly): New function.
6221 (set_mac_env): Likewise.
6222 (set_env_limn_ro): Likewise.
6223 (parse_dhcp_vendor): Likewise.
6224 (grub_pxe_detect): Set the environment variables.
6225 (set_ip_env): New function.
6226 (write_ip_env): Likewise.
6227 (grub_env_write_pxe_default_server): Likewise.
6228 (grub_env_write_pxe_default_gateway): Likewise.
6229 (grub_env_write_pxe_blocksize): Likewise.
6230 (GRUB_MOD_INIT(pxe)): Set environment variables.
6231 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
6232 (grub_pxe_mac_addr_t): ... this. All users updated.
6233 (grub_pxe_your_ip): Removed.
6234 (grub_pxe_server_ip): Likewise.
6235 (grub_pxe_gateway_ip): Likewise.
6236 (grub_pxe_blksize): Likewise.
6238 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6240 * commands/help.c: Include `<grub/i18n.h>'.
6241 (grub_cmd_help): Gettextizze.
6242 (GRUB_MOD_INIT): Likewise.
6243 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
6244 (GRUB_MOD_INIT): Gettextizze.
6245 * commands/search.c: Include `<grub/i18n.h>'.
6246 (options): Gettextizze.
6247 (GRUB_MOD_INIT): Gettextizze.
6248 * lib/arg.c: Include `<grub/i18n.h>'.
6249 (help_options): Gettextizze.
6250 (find_long): Likewise.
6251 (grub_arg_show_help): Likewise.
6252 * normal/dyncmd.c: Include `<grub/i18n.h>'.
6253 (read_command_list): Gettextizze.
6254 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
6255 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
6257 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6259 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
6260 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
6261 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
6262 (led_status): New variable.
6263 (keyboard_controller_led): New function.
6264 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
6265 update led status for caps lock, num lock and scroll lock.
6267 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
6269 * util/hostdisk.c (open_device): Fix a comment.
6271 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6273 * util/grub-install.in (host_os): New variable.
6274 * util/i386/efi/grub-install.in (host_os): Likewise.
6276 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6278 * util/mkisofs/write.c (padblock_write): Abort when given an
6279 excedingly large embed image, instead of silently truncating it.
6281 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6283 * include/multiboot.h: Indentation fixes.
6285 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6287 * include/multiboot.h (struct multiboot_aout_symbol_table)
6288 (struct multiboot_elf_section_header_table): New structure
6289 declarations (stolen from GRUB Legacy).
6290 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
6293 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
6294 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
6297 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6299 * include/multiboot.h: Make comments src2texi-friendly.
6301 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6303 For consistency with [multiboot]/docs/boot.S.
6305 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
6306 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
6307 (MULTIBOOT_MAGIC2): Rename from this ...
6308 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
6310 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6312 * include/multiboot.h: Remove `<grub/types.h>'.
6313 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
6314 types. Update all users.
6316 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6318 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
6319 `couldn't' and `can not' by `cannot'.
6320 * commands/i386/pc/drivemap.c: Likewise.
6321 * disk/ata.c: Likewise.
6322 * disk/ieee1275/nand.c: Likewise.
6323 * fs/affs.c: Likewise.
6324 * fs/fat.c: Likewise.
6325 * fs/hfs.c: Likewise.
6326 * fs/hfsplus.c: Likewise.
6327 * fs/iso9660.c: Likewise.
6328 * fs/jfs.c: Likewise.
6329 * fs/minix.c: Likewise.
6330 * fs/reiserfs.c: Likewise.
6331 * fs/sfs.c: Likewise.
6332 * fs/udf.c: Likewise.
6333 * fs/ufs.c: Likewise.
6334 * fs/xfs.c: Likewise.
6335 * loader/powerpc/ieee1275/linux.c: Likewise.
6336 * loader/sparc64/ieee1275/linux.c: Likewise.
6337 * util/grub-probe.c: Likewise.
6338 * util/misc.c: Likewise.
6340 2009-12-24 Carles Pina i Estany <carles@pina.cat>
6342 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
6344 * commands/acpi.c: Likewise.
6345 * commands/blocklist.c: Likewise.
6346 * commands/efi/loadbios.c: Likewise.
6347 * commands/i386/pc/drivemap.c: Likewise.
6348 * commands/loadenv.c: Likewise.
6349 * commands/memrw.c: Likewise.
6350 * commands/password.c: Likewise.
6351 * commands/videotest.c: Likewise.
6352 * disk/ata.c: Likewise.
6353 * disk/ata_pthru.c: Likewise.
6354 * disk/dmraid_nvidia.c: Likewise.
6355 * disk/ieee1275/nand.c: Likewise.
6356 * disk/ieee1275/ofdisk.c: Likewise.
6357 * disk/loopback.c: Likewise.
6358 * disk/lvm.c: Likewise.
6359 * disk/mdraid_linux.c: Likewise.
6360 * disk/raid.c: Likewise.
6361 * disk/raid6_recover.c: Likewise.
6362 * disk/scsi.c: Likewise.
6363 * efiemu/main.c: Likewise.
6364 * efiemu/mm.c: Likewise.
6365 * efiemu/pnvram.c: Likewise.
6366 * efiemu/symbols.c: Likewise.
6367 * font/font.c: Likewise.
6368 * fs/cpio.c: Likewise.
6369 * fs/hfsplus.c: Likewise.
6370 * fs/iso9660.c: Likewise.
6371 * fs/jfs.c: Likewise.
6372 * fs/minix.c: Likewise.
6373 * fs/ntfs.c: Likewise.
6374 * fs/ntfscomp.c: Likewise.
6375 * fs/reiserfs.c: Likewise.
6376 * fs/ufs.c: Likewise.
6377 * fs/xfs.c: Likewise.
6378 * gettext/gettext.c: Likewise.
6379 * include/grub/auth.h: Likewise.
6380 * kern/elf.c: Likewise.
6381 * kern/file.c: Likewise.
6382 * kern/ieee1275/init.c: Likewise.
6383 * kern/ieee1275/mmap.c: Likewise.
6384 * kern/ieee1275/openfw.c: Likewise.
6385 * kern/powerpc/dl.c: Likewise.
6386 * kern/sparc64/dl.c: Likewise.
6387 * lib/arg.c: Likewise.
6388 * loader/i386/bsd.c: Likewise.
6389 * loader/i386/bsdXX.c: Likewise.
6390 * loader/i386/efi/linux.c: Likewise.
6391 * loader/i386/efi/xnu.c: Likewise.
6392 * loader/i386/ieee1275/linux.c: Likewise.
6393 * loader/i386/linux.c: Likewise.
6394 * loader/i386/multiboot.c: Likewise.
6395 * loader/i386/pc/linux.c: Likewise.
6396 * loader/i386/pc/multiboot2.c: Likewise.
6397 * loader/i386/xnu.c: Likewise.
6398 * loader/ieee1275/multiboot2.c: Likewise.
6399 * loader/macho.c: Likewise.
6400 * loader/machoXX.c: Likewise.
6401 * loader/multiboot2.c: Likewise.
6402 * loader/multiboot_loader.c: Likewise.
6403 * loader/powerpc/ieee1275/linux.c: Likewise.
6404 * loader/sparc64/ieee1275/linux.c: Likewise.
6405 * loader/xnu.c: Likewise.
6406 * loader/xnu_resume.c: Likewise.
6407 * mmap/i386/pc/mmap.c: Likewise.
6408 * normal/menu_viewer.c: Likewise.
6409 * partmap/acorn.c: Likewise.
6410 * partmap/amiga.c: Likewise.
6411 * partmap/apple.c: Likewise.
6412 * script/lexer.c: Likewise.
6413 * term/gfxterm.c: Likewise.
6414 * term/i386/pc/serial.c: Likewise.
6415 * term/i386/pc/vga.c: Likewise.
6416 * term/ieee1275/ofconsole.c: Likewise.
6417 * term/terminfo.c: Likewise.
6418 * video/bitmap.c: Likewise.
6419 * video/efi_gop.c: Likewise.
6420 * video/efi_uga.c: Likewise.
6421 * video/fb/video_fb.c: Likewise.
6422 * video/i386/pc/vbe.c: Likewise.
6423 * video/readers/tga.c: Likewise.
6424 * video/video.c: Likewise.
6426 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
6428 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
6429 * commands/lspci.c: Likewise.
6430 * commands/probe.c: Likewise.
6431 * commands/xnu_uuid.c: Likewise.
6432 * conf/i386-coreboot.rmk: Likewise.
6433 * conf/i386-efi.rmk: Likewise.
6434 * conf/i386-ieee1275.rmk: Likewise.
6435 * conf/i386-pc.rmk: Likewise.
6436 * conf/powerpc-ieee1275.rmk: Likewise.
6437 * conf/sparc64-ieee1275.rmk: Likewise.
6438 * conf/x86_64-efi.rmk: Likewise.
6439 * fs/i386/pc/pxe.c: Likewise.
6440 * gettext/gettext.c: Likewise.
6441 * include/grub/efi/graphics_output.h: Likewise.
6442 * include/grub/i386/pc/memory.h: Likewise.
6443 * kern/env.c: Likewise.
6444 * kern/i386/qemu/startup.S: Likewise.
6445 * lib/i386/pc/biosnum.c: Likewise.
6446 * lib/i386/relocator.c: Likewise.
6447 * lib/i386/relocator_asm.S: Likewise.
6448 * lib/relocator.c: Likewise.
6449 * loader/i386/bsd.c: Likewise.
6450 * loader/i386/multiboot.c: Likewise.
6451 * loader/i386/pc/chainloader.c: Likewise.
6452 * loader/i386/xnu.c: Likewise.
6453 * loader/xnu.c: Likewise.
6454 * normal/main.c: Likewise.
6455 * normal/menu_text.c: Likewise.
6456 * util/getroot.c: Likewise.
6457 * util/grub-mkconfig_lib.in: Likewise.
6458 * util/grub.d/00_header.in: Likewise.
6459 * util/i386/pc/grub-mkimage.c: Likewise.
6460 * util/mkisofs/eltorito.c: Likewise.
6461 * util/mkisofs/exclude.h: Likewise.
6462 * util/mkisofs/hash.c: Likewise.
6463 * util/mkisofs/iso9660.h: Likewise.
6464 * util/mkisofs/joliet.c: Likewise.
6465 * util/mkisofs/mkisofs.c: Likewise.
6466 * util/mkisofs/mkisofs.h: Likewise.
6467 * util/mkisofs/multi.c: Likewise.
6468 * util/mkisofs/name.c: Likewise.
6469 * util/mkisofs/rock.c: Likewise.
6470 * util/mkisofs/tree.c: Likewise.
6471 * util/mkisofs/write.c: Likewise.
6472 * video/efi_gop.c: Likewise.
6474 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6476 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
6479 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6481 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
6482 * genmk.rb (class SCRIPT): Modify the target file instead of source.
6484 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6486 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
6487 (GRUB_MOD_INIT(memrw)): Update help line.
6489 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6491 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6492 Use grub_extcmd_t. All users updated.
6493 (options): New variable.
6494 (grub_cmd_read): Restructure for readability. Support "-v" option.
6495 (grub_cmd_write): Restructure for readability.
6497 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6499 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6501 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6503 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6504 with the actual contents of the correspondending make variable.
6505 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6506 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6507 specifying `*.lst' and `efiemu??.o'
6509 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6511 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6512 after function name.
6513 Noticed by Rene Engelhard <rene@debian.org>.
6515 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6517 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6518 (options): New variable.
6519 (iospace): Likewise.
6520 (grub_lspci_iter): List IO spaces if "-i" was given.
6521 (grub_cmd_lspci): Parse options.
6522 (GRUB_MOD_INIT(lspci)): Use extcmd.
6523 (GRUB_MOD_FINI(lspci)): Likewise.
6525 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6527 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6529 Patch by Tony Mancill <tmancill@debian.org>.
6531 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6533 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6534 (grub_uhci_portstatus): Likewise.
6535 (grub_uhci_portstatus): Add necessary delay.
6536 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
6538 2009-12-21 Carles Pina i Estany <carles@pina.cat>
6540 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6541 (GRUB_MOD_INIT): Likewise.
6542 * commands/boot.c (GRUB_MOD_INIT): Likewise.
6543 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6544 * commands/echo.c (options): Fix capitalizations and/or full stops.
6545 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6546 (enable_rom_area): Likewise.
6547 (GRUB_MOD_INIT): Likewise.
6548 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6549 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6550 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6551 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6552 * commands/hexdump.c (options): Likewise.
6553 * commands/i386/cpuid.c (options): Likewise.
6554 (GRUB_MOD_INIT): Likewise.
6555 * commands/i386/pc/drivemap.c (options): Likewise.
6556 (GRUB_MOD_INIT): Likewise.
6557 * commands/i386/pc/halt (options): Likewise.
6558 (GRUB_MOD_INIT): Likewise.
6559 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6560 * commands/i386/pc/pxecmd.c (options): Likewise.
6561 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6562 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6563 * commands/keystatus.c (options): Likewise.
6564 (GRUB_MOD_INIT): Likewise.
6565 * commands/loadenv.c (options): Likewise.
6566 * commands/ls.c (options): Likewise.
6567 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6568 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6569 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6570 * commands/parttool.c (helpmsg): Likewise.
6571 * commands/probe.c (options): Likewise.
6572 * commands/read.c (GRUB_MOD_INIT): Likewise.
6573 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6574 * commands/search.c (options): Likewise.
6575 * commands/sleep.c (options): Likewise.
6576 * commands/test.c (GRUB_MOD_INIT): Likewise.
6577 * commands/true.c (GRUB_MOD_INIT): Likewise.
6578 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6579 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6580 * lib/arg.c (help_options): Likewise.
6581 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6583 * po/POTFILES: Add `commands/loadenv.c'.
6585 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6587 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6588 instead of specifying them explicit.
6590 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6592 * NEWS: Add grub-probe support for GNU/Hurd.
6594 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6596 * NEWS: gettext was added after 1.97.
6598 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6600 * util/mkisofs/msdos_partition.h: New file (based on
6601 include/grub/msdos_partition.h).
6602 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6603 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6604 (ld_options, main): Recognize --protective-msdos-label.
6605 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6606 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6607 (padblock_write): If `use_protective_msdos_label' is set, patch a
6608 protective DOS-style label in the output image.
6610 * util/grub-mkrescue.in: Use --protective-msdos-label.
6612 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6614 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6617 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6619 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6621 (ld_options, main): Recognize `--embedded-boot'.
6622 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6624 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6625 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6626 (padblock_write): Likewise. Rewrite to support embedded boot image.
6628 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6629 for BIOS-based disk boot instead of only ElTorito.
6631 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6633 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6634 build (not needed for bootstrap).
6636 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6638 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6639 from i386-pc build (not needed for bootstrap).
6640 Rewrite a pair of strings.
6642 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6644 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6646 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6648 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6650 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6652 * kern/env.c (grub_env_context_open): Mark exported variable for
6655 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6657 * kern/env.c (grub_env_export): Create nonexistent variables before
6660 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6662 * include/grub/auth.h: Include `<grub/i18n.h>'.
6663 (GRUB_GET_PASSWORD): Gettextizze string.
6664 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6666 (grub_utf8_to_ucs4_alloc): Fix indentation.
6667 (grub_print_ucs4): Likewise.
6668 (grub_getstringwidth): Likewise.
6669 (print_message_indented): New declaration.
6670 * normal/auth.c: Include `<grub/i18n.h>'.
6671 (grub_auth_check_authentication): Gettexttize string.
6672 * normal/cmdline.c: Include `<grub/i18n.h>'.
6673 (grub_cmdline_get): Gettextizze.
6674 * normal/color.c: Include `<grub/i18n.h>'.
6675 (grub_parse_color_name_pair): Gettexttize strings.
6676 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6677 string (use `print_message_indented').
6678 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6679 `include/grub/normal.h'.
6680 (print_message_indented): Renamed to ...
6681 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6682 used in normal/main.c).
6683 (print_message): Use `grub_print_message_indented' instead of
6684 `print_message_indented'.
6685 (print_timeout): Likewise.
6686 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6687 (grub_normal_print_device_info): Gettexttize strings.
6688 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6690 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6692 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6693 of arguments. Return number of tokens and not arguments. All users
6696 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6698 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6699 non-MSDOS paritions.
6701 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6703 * include/grub/types.h (UNUSED): Removed since it conflicts with
6704 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6705 Reported by Grégoire Sutre.
6707 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6709 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6710 (grub_print_ucs4_alloc): Likewise.
6711 (grub_getstringwidth): Likewise.
6712 * normal/main.c (grub_normal_init_page): Gettextize version string.
6713 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6714 (getstringwidth): Renamed to ...
6715 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6716 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6717 (grub_print_ucs4): Remove `static' qualifer (now used in
6719 * po/POTFILES: Add normal/main.c.
6721 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6723 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6724 (print_message_indented): Add `margin_left' and `margin_right'
6726 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6728 (print_timeout): Use `print_message_indented' to print the message.
6729 Deletes `second_stage' parameter.
6730 (run_menu): Update `print_timeout' calls.
6732 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6734 Fix console palette on OpenFirmware.
6736 * term/ieee1275/ofconsole.c (MAX): Removed.
6737 (colors): Redone based on VGA palette.
6738 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6739 colors are supported.
6740 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6742 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6744 Fix potential EfiEmu double prepare.
6746 * efiemu/main.c (prepared): New variable
6747 (grub_efiemu_unload): Set prepare to '0'.
6748 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6750 set_virtual_address_map support.
6752 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6754 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6756 (grub_efiemu_crc32): Likewise.
6757 (grub_efiemu_crc64): Likewise.
6758 (grub_efiemu_set_virtual_address_map): Likewise.
6759 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6761 (grub_autoefi_set_virtual_address_map): Likewise.
6762 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6763 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6764 Restructure flow to accomodate it.
6765 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6766 (grub_efiemu_crc): Recompute CRC32.
6767 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6768 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6769 * efiemu/symbols.c (relocated_handle): New variable.
6770 (grub_efiemu_free_syms): Free relocated_handle.
6771 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6772 (grub_efiemu_write_sym_markers): New function.
6773 (grub_efiemu_set_virtual_address_map): Likewise.
6775 Newer XNU parameters.
6777 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6778 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6779 (grub_xnu_fill_devicetree): New prototype.
6780 (grub_xnu_heap_real_start): New variable.
6781 * loader/xnu.c (get_name_ptr): New function.
6782 (grub_xnu_load_driver): Fill namelen and name.
6786 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6787 and 'loader/macho64.c'.
6788 * conf/i386-pc.rmk: Likewise.
6789 * conf/x86_64-efi.rmk: Likewise.
6790 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6791 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6792 * include/grub/macho.h (grub_macho_segment64): New structure.
6793 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6794 (grub_macho_size32): ... to this.
6795 (grub_macho32_get_entry_point): Renamed from ...
6796 (grub_macho_get_entry_point32): ... to this.
6797 (grub_macho_contains_macho64): New prototype.
6798 (grub_macho_size64): Likewise.
6799 (grub_macho_get_entry_point64): Likewise.
6800 (grub_macho32_load): Renamed from ...
6801 (grub_macho_load32): ... to this.
6802 (grub_macho32_filesize): Renamed from ...
6803 (grub_macho_filesize32): ... to this.
6804 (grub_macho32_readfile): Renamed from ...
6805 (grub_macho_readfile32): ... to this.
6806 (grub_macho_filesize64): New prototype.
6807 (grub_macho_readfile64): Likewise.
6808 (grub_macho_parse32): Likewise.
6809 (grub_macho_parse64): Likewise.
6810 * loader/macho.c: Split into ...
6811 * loader/machoXX.c: ... and this. Replace 32 with XX.
6812 * loader/macho32.c: New file.
6813 * loader/macho64.c: Likewise.
6814 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6815 (grub_cmd_xnu_kernel): Make 32-bit only.
6816 (grub_cmd_xnu_kernel64): New function.
6817 (grub_xnu_load_driver): Support Mach-O 64.
6818 (grub_cmd_xnu_mkext): Likewise.
6819 * util/grub.d/30_os-prober.in (osx_entry): New function.
6820 Generate entries for 64-bit boot too.
6822 Eliminate ad-hoc tree format in XNU and EfiEmu.
6824 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6825 * efiemu/pnvram.c: Rewritten to use environment variables.
6828 Inline utf16_to_utf8.
6830 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6831 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6833 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6835 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6836 * commands/usbtest.c (grub_usb_get_string): ... move here.
6837 (usb_print_str): Fix error handling.
6838 * include/grub/usb.h (grub_usb_get_string): Remove.
6840 UTF-8 to UTF-16 transformation.
6842 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6843 (charset_mod_SOURCES): New variable.
6844 (charset_mod_CFLAGS): Likewise.
6845 (charset_mod_LDFLAGS): Likewise.
6846 * include/grub/utf.h: New file.
6847 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6849 Support for device properties.
6851 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6852 (grub_xnu_devprop_device_header): Likewise.
6853 (grub_xnu_devprop_device_descriptor): Likewise.
6854 (grub_xnu_devprop_add_device): New prototype.
6855 (grub_xnu_devprop_remove_device): Likewise.
6856 (grub_xnu_devprop_remove_property): Likewise.
6857 (grub_xnu_devprop_add_property_utf8): Likewise.
6858 (grub_xnu_devprop_add_property_utf16): Likewise.
6859 (grub_cpu_xnu_init): Likewise.
6860 (grub_cpu_xnu_fini): Likewise.
6861 (grub_cpu_xnu_unload): Likewise.
6862 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6863 (property_descriptor): Likewise.
6864 (devices): New variable.
6865 (grub_xnu_devprop_remove_property): New function.
6866 (grub_xnu_devprop_add_device): Likewise.
6867 (grub_xnu_devprop_remove_device): Likewise.
6868 (grub_xnu_devprop_add_property): Likewise.
6869 (grub_xnu_devprop_add_property_utf8): Likewise.
6870 (grub_xnu_devprop_add_property_utf16): Likewise.
6871 (hextoval): Likewise.
6872 (grub_cpu_xnu_fill_devprop): Likewise.
6873 (grub_cmd_devprop_load): Likewise.
6874 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6875 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6876 (cmd_devprop_load): New variable.
6877 (grub_cpu_xnu_init): New function.
6878 (grub_cpu_xnu_fini): Likewise.
6879 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6880 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6881 (grub_cmd_xnu_devtree): Likewise.
6882 (hextoval): New function.
6883 (unescape): Likewise.
6884 (grub_xnu_fill_devicetree): Likewise.
6886 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6887 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6889 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6891 Workaround for broken ATI VBE.
6893 * video/i386/pc/vbe.c (last_set_mode): New variable.
6894 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6895 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6896 (grub_video_vbe_setup): Don't check for reserved flag.
6898 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6900 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6903 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6905 UUID support for HFS.
6907 * fs/hfs.c (grub_hfs_uuid): New function.
6908 (grub_hfs_fs): New value .uuid.
6909 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6911 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6913 Fix a segfault with parsing unknown long options.
6915 * util/grub-mkrelpath.c (options): Zero terminate it.
6917 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6919 * include/grub/misc.h (grub_puts): New declaration.
6920 (grub_puts_): Likewise.
6921 * kern/misc.c (grub_puts): New definition.
6922 (grub_puts_): Likewise.
6924 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6926 * util/grub-probe.c (probe): Improve error message.
6928 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6930 * loader/i386/multiboot_elfxx.c
6931 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6934 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6938 * loader/i386/xnu_helper.S: Removed. All users updated.
6939 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6940 (relocator_mod_SOURCES): New variable.
6941 (relocator_mod_CFLAGS): Likewise.
6942 (relocator_mod_LDFLAGS): Likewise.
6943 (relocator_mod_ASFLAGS): Likewise.
6944 * conf/x86_64.rmk: Likewise.
6945 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6946 (grub_multiboot_payload_entry_offset): Likewise.
6947 (grub_multiboot_forward_relocator): Likewise.
6948 (grub_multiboot_forward_relocator_end): Likewise.
6949 (grub_multiboot_backward_relocator): Likewise.
6950 (grub_multiboot_backward_relocator_end): Likewise.
6951 (grub_multiboot_payload_eip): New variable.
6952 (grub_multiboot_payload_orig): Likewise.
6953 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6954 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6955 * include/grub/i386/memory.h
6956 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6957 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6958 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6959 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6960 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6961 * include/grub/i386/relocator.h: New file.
6962 * include/grub/x86_64/relocator.h: Likewise.
6963 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6964 (XNU_RELOCATOR): New macro.
6965 (grub_xnu_launcher_start): Remove.
6966 (grub_xnu_launcher_end): Likewise.
6967 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6968 (grub_xnu_heap_real_start): Remove.
6969 (grub_xnu_heap_start): Change to void *. All users updated.
6970 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6971 * lib/i386/relocator.c: New file.
6972 * lib/i386/relocator_asm.S: Likewise.
6973 * lib/i386/relocator_backward.S: Likewise.
6974 * lib/mips/relocator.c: Likewise.
6975 * lib/mips/relocator_asm.S: Likewise.
6976 * lib/relocator.c: Likewise.
6977 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6979 (playground): Likewise.
6980 (grub_multiboot_payload_orig): New variable.
6981 (grub_multiboot_payload_dest): Likewise.
6982 (grub_multiboot_payload_size): Likewise.
6983 (grub_multiboot_payload_eip): Likewise.
6984 (grub_multiboot_payload_esp): Likewise.
6985 (grub_multiboot_boot): Use grub_relocator32_boot.
6986 (grub_multiboot_unload): Free relocators.
6987 (grub_multiboot): Setup stack. Use relocators.
6988 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6989 (grub_multiboot_load_elfXX): Use relocators.
6990 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6991 (grub_multiboot_payload_size): Likewise.
6992 (grub_multiboot_payload_dest): Likewise.
6993 (grub_multiboot_payload_entry_offset): Likewise.
6994 (grub_multiboot_forward_relocator): Likewise.
6995 (grub_multiboot_backward_relocator): Likewise.
6996 (grub_multiboot_real_boot): Likewise.
6997 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6998 (grub_xnu_entry_point): Likewise.
6999 (grub_xnu_arg1): Likewise.
7000 (grub_xnu_stack): Likewise.
7001 (grub_xnu_launch): Removed.
7002 (grub_xnu_boot_resume): New function.
7003 (grub_xnu_boot): Use relocators.
7004 * loader/i386/xnu_helper.S: Removed.
7005 * loader/xnu.c (grub_xnu_heap_start): New variable.
7006 (grub_xnu_heap_size): Likewise.
7007 (grub_xnu_heap_malloc): Use relocators.
7008 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
7010 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7012 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
7015 2009-12-13 Carles Pina i Estany <carles@pina.cat>
7017 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
7018 GRUB_ERR_NONE before calling grub_env_set.
7020 2009-12-12 Robert Millan <rmh@aybabtu.com>
7022 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
7023 * genmk.rb (video): New variable.
7024 (CLEANFILES, VIDEOFILES): Add #{video}.
7025 (#{video}): New target rule.
7026 * genvideolist.sh: New file.
7027 * Makefile.in (pkglib_DATA): Add video.lst.
7028 (video.lst): New target rule.
7029 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
7031 * util/grub.d/30_os-prober.in: Replace `vbe' with
7032 ${GRUB_VIDEO_BACKEND}.
7034 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
7036 * THANKS: Add David Miller.
7038 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7040 libpciaccess support.
7042 * Makefile.in (LIBPCIACCESS): New variable.
7043 (enable_grub_emu_pci): Likewise.
7044 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
7045 util/pci.c and commands/lspci.c.
7046 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
7047 * configure.ac (grub-emu-pci): New option.
7048 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
7049 (grub_pci_device_unmap_range): Likewise.
7050 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
7051 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
7052 (grub_pci_address_t) [!GRUB_UTIL]: New type.
7053 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
7054 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
7055 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
7056 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
7057 * include/grub/pciutils.h: New file.
7058 * util/pci.c: Likewise.
7060 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
7062 * util/misc.c: Don't include <errno.h> twice.
7064 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
7066 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
7067 name in an error message.
7068 (grub_biosdisk_rw): Likewise.
7070 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7072 Eliminate NTFS 4Gib barrier.
7074 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
7075 (read_run_data): Likewise.
7076 (grub_ntfs_read_run_list): Likewise.
7077 (grub_ntfs_read_block): Likewise.
7078 (grub_ntfs_iterate_dir): Likewise.
7079 (read_mft): Likewise.
7080 (read_data): Likewise.
7082 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
7083 to avoid 64-bit division
7084 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
7085 (grub_ntfs_rlst): Use grub_disk_addr_t.
7087 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7089 Eliminate grub-fstest 4Gib barrier.
7091 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
7092 (read_file): Fix error reporting.
7094 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7096 Eliminate hexdump 4Gib barrier.
7098 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
7099 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
7101 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7103 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
7106 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
7108 Remove miscellaneous files in distclean target.
7110 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
7112 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
7114 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
7115 if they're already set. This resolves the conflict between my
7116 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
7117 fixing the --grub-probe option again.
7118 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
7119 change on 2009-10-06, so that we now once again source
7120 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7122 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
7124 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
7125 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
7128 2009-12-08 Carles Pina i Estany <carles@pina.cat>
7130 * include/grub/misc.h (grub_printf_): New declaration.
7131 * kern/misc.c (grub_printf_): New definition.
7132 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
7133 instead of `grub_printf' and `_'.
7134 * normal/menu_entry.c (store_completion): Likewise.
7136 (grub_menu_entry_run): Likewise.
7137 * normal/menu_text.c (grub_wait_after_message): Likewise.
7138 (notify_booting): Likewise.
7139 (notify_fallback): Likewise.
7140 (notify_execution_failure): Likewise.
7142 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
7144 * configure.ac: Check for vasprintf.
7145 * util/misc.c (asprintf): Move allocation from here ...
7146 (vasprintf): ... to here. New function.
7147 (xasprintf): New function.
7148 * include/grub/util/misc.h (vasprintf, xasprintf): Add
7150 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7151 * util/grub-mkfont.c (write_font): Likewise.
7152 * util/grub-probe.c (probe): Likewise.
7153 * util/hostdisk.c (make_device_name): Likewise.
7155 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
7157 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
7158 anything even prefixed with 'cdrom' as a cdrom.
7160 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
7162 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
7165 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7167 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
7168 grub_gettext_msg_list.
7169 (grub_gettext_gettranslation_from_position): Return const char *
7171 (grub_gettext_translate): Add the translated strings into a list,
7172 returns from the list if existing there.
7173 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
7174 (grub_gettext_delete_list): Delete the list.
7175 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
7176 lang environment variable is changed.
7177 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
7179 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7181 Rename kernel.mod to kernel.img.
7183 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
7184 (kernel_mod_EXPORTS): Rename to ...
7185 (kernel_img_EXPORTS): ... this.
7186 (kernel_mod_SOURCES): Rename to ...
7187 (kernel_img_SOURCES): ... this.
7188 (kernel_mod_HEADERS): Rename to ...
7189 (kernel_img_HEADERS): ... this. All users updated.
7190 (kernel_mod_CFLAGS): Rename to ...
7191 (kernel_img_CFLAGS): ... this.
7192 (kernel_mod_ASFLAGS): Rename to ...
7193 (kernel_img_ASFLAGS): ... this.
7194 (kernel_mod_LDFLAGS): Rename to ...
7195 (kernel_img_LDFLAGS): ... this.
7196 * conf/x86_64-efi.rmk: Likewise.
7197 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
7198 (read_kernel_image): ... this. All users updated.
7199 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
7201 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7203 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
7204 (print_spaces): New function.
7205 (grub_print_ucs4): New function.
7206 (getstringwidth): New function.
7207 (print_message_indented): New function.
7208 (print_message): Gettexttize strings using print_message_indented.
7209 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
7211 (get_entry_number): Gettextize and uses dynamic terminal width.
7212 (notify_booting, notify_fallback, notify_execution_failure):
7214 * normal/menu_entry.c (store_completion): Cleanup the gettextized
7217 (grub_menu_entry_run): Likewise.
7218 * PO/POTFILES: Add normal/menu_entry.c.
7220 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7222 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
7224 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7226 * util/grub-install.in: Install gettext .mo files.
7227 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
7229 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7231 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
7234 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
7236 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
7237 non-firmware-dependant one in realmode.S takes precedence.
7239 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
7241 * commands/halt.c: Replace misc arch-specific headers with
7243 * commands/reboot.c: Likewise.
7244 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
7246 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
7247 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
7248 (kernel_img_SOURCES): ... to here.
7250 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
7251 * include/grub/i386/pc/init.h: Likewise.
7252 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7253 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7255 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
7257 * include/grub/i386/halt.h: Remove.
7258 * include/grub/i386/reboot.h: Likewise.
7260 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
7262 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
7264 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
7265 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
7266 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
7268 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7269 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7270 (usage): Add missing comma in printf.
7272 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
7274 Use the same reboot approach on i386 coreboot and qemu as we do on
7277 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
7278 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
7279 * kern/i386/reboot.c: Remove.
7280 * include/grub/i386/reboot.h (grub_reboot): Export function.
7281 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
7282 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
7283 0xf000:0xfff0 instead of 0xffff:0x0000.
7284 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
7285 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
7287 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
7289 Fix $srcdir != $objdir build.
7291 * Makefile.in (po/%.po): Rewrite as ...
7292 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
7294 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
7296 Fix GNU/Hurd grub-install crash.
7297 * util/grub-probe.c (probe): Try to access `path' only when it is not
7300 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7302 Correct module naming.
7304 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7305 (GRUB_MOD_INIT(efi_uga)): ... to this
7306 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7307 (GRUB_MOD_FINI(efi_uga)): ... to this
7308 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7309 (GRUB_MOD_INIT(efi_gop)): ... to this
7310 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7311 (GRUB_MOD_FINI(efi_gop)): ... to this
7313 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
7315 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
7317 (usage): Translate `arg' strings using gettext().
7318 Thanks to Jordi Mallach for the suggestion.
7320 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7322 GOP support. Based on patch from Bean
7323 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7325 * video/efi_gop.c: New file.
7326 * include/grub/efi/graphics_output.h: Likewise.
7327 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
7328 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7330 * conf/x86_64-efi.rmk: Likewise.
7332 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7334 Rename efi_fb to efi_uga.
7336 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7338 (efi_fb_mod_SOURCES): Rename this ...
7339 (efi_uga_mod_SOURCES): ... to this.
7340 (efi_fb_mod_CFLAGS): Rename this ...
7341 (efi_uga_mod_CFLAGS): ... to this.
7342 (efi_fb_mod_LDFLAGS): Rename this ...
7343 (efi_uga_mod_LDFLAGS): ... to this.
7344 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7346 (efi_fb_mod_SOURCES): Rename this ...
7347 (efi_uga_mod_SOURCES): ... to this.
7348 (efi_fb_mod_CFLAGS): Rename this ...
7349 (efi_uga_mod_CFLAGS): ... to this.
7350 (efi_fb_mod_LDFLAGS): Rename this ...
7351 (efi_uga_mod_LDFLAGS): ... to this.
7352 * video/efi_fb.c: Move this ...
7353 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
7355 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7357 * po/README: New file. Explain our PO file workflow.
7359 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7361 * po/ChangeLog: Remove. Move relevant entries back to ...
7362 * ChangeLog: ... here.
7363 * po/ca.po: Remove (now handled by TLP).
7364 * po/id.po: Likewise.
7365 * po/zh_CN.po: Likewise.
7366 * Makefile.in (LINGUAS): Initialize in a way that supports
7369 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7371 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
7372 reliing on po/LINGUAS.
7373 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
7374 (po/%.po): ... this.
7376 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7378 * util/i386/efi/grub-mkimage.c: Include "progname.h".
7379 (main): Use `program_name' instead of nonexistent `progname'.
7381 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7383 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7384 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
7386 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7388 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
7390 * conf/i386-efi.rmk: Likewise.
7391 * conf/i386-ieee1275.rmk: Likewise.
7392 * conf/powerpc-ieee1275.rmk: Likewise.
7393 * conf/sparc64-ieee1275.rmk: Likewise.
7394 * conf/x86_64-efi.rmk: Likewise.
7396 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7398 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
7400 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7402 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
7404 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7406 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
7407 (grub_mkdevicemap_SOURCES): New variable.
7408 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
7409 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
7410 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
7411 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
7412 (grub_mkdevicemap_SOURCES): Remove.
7413 * conf/i386-efi.rmk: Likewise.
7414 * conf/i386-ieee1275.rmk: Likewise.
7415 * conf/i386-pc.rmk: Likewise.
7416 * conf/powerpc-ieee1275.rmk: Likewise.
7417 * conf/sparc64-ieee1275.rmk: Likewise.
7418 * conf/x86_64-efi.rmk: Likewise.
7419 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
7420 (usage): Fix strings to use `program_name'.
7421 (main): Initialize gettext.
7422 * util/grub-editenv.c: Likewise.
7423 * util/grub-emu.c: Likewise.
7424 * util/grub-fstest.c: Likewise.
7425 * util/grub-mkdevicemap.c: Likewise.
7426 * util/grub-mkfont.c: Likewise.
7427 * util/grub-mkrelpath.c: Likewise.
7428 * util/grub-pe2elf.c: Likewise.
7429 * util/grub-probe.c: Likewise.
7430 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7431 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7432 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7434 * util/misc.c: Include `"progname.h"'.
7435 (progname): Remove variable.
7436 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
7438 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7440 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
7441 printf and print a newline after the menuentry header line.
7442 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7444 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7446 autoconf >= 2.60 support $(localedir).
7448 * INSTALL: Note that autoconf 2.60 is required.
7449 * configure.ac (AC_PREREQ): Bump to 2.60.
7450 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
7451 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7453 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
7455 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
7458 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7460 * normal/main.c (grub_normal_read_line): Fix off-by-one
7463 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7465 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
7466 "parser.grub" in grub_command_execute() call.
7468 2009-11-24 Carles Pina i Estany <carles@pina.cat>
7470 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
7471 * conf/i386-efi.rmk: Likewise.
7472 * conf/i386-ieee1275.rmk: Likewise.
7473 * conf/i386-pc.rmk: Likewise.
7474 * conf/powerpc-ieee1275.rmk: Likewise.
7475 * conf/sparc64-ieee1275.rmk: Likewise.
7476 * conf/x86_64-efi.rmk: Likewise.
7477 * gettext/gettex.c: Include <grub/i18n.h>.
7478 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
7480 * include/grub/i18n.h: ... to here
7481 * include/grub/i18n.h: ... to here.
7482 * kern/misc.c: Include <grub/i18n.h>
7483 (grub_gettext_dummy): Move above user.
7485 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7487 * util/Makefile.in (install-local): Convert a `for' into a normal
7490 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7492 * autogen.sh: Add automake call.
7493 * config.guess: Remove.
7494 * config.sub: Likewise.
7495 * install-sh: Likewise.
7497 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7499 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7501 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7503 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7504 function to a normal shell `for'.
7506 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7508 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7510 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7512 * util/grub-mkrelpath.c: New file.
7513 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7514 (grub_mkrelpath_SOURCES): New variable.
7515 * include/grub/util/misc.h: New function prototype.
7516 * util/misc.c (make_system_path_relative_to_its_root): New function.
7518 * util/grub-mkconfig_lib.in (bindir): New variable.
7519 (grub_mkrelpath): Likewise.
7520 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7522 * util/probe.c (probe): Make the file path relative to its root.
7523 Change a info message to use the GRUB path. Enable again the
7524 check if we can read the file with GRUB facilities.
7526 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7529 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7531 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7534 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7536 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7539 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7541 * util/getroot.c (grub_util_is_dmraid): New function.
7542 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7543 devices as normal ones, not as LVM.
7545 2009-11-23 Carles Pina i Estany <carles@pina.cat>
7547 * conf/common.rmk: Add grub-gettext_lib target and updates
7548 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7550 * gettext/gettext.c: New file. (Reads mo files).
7551 * include/grub/file.h (grub_file_pread): New prototype.
7552 * include/grub/i18n.h (_): New prototype.
7553 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7555 * kern/misc.c (grub_gettext_dummy): New function.
7556 * normal/menu_text.c: Include <grub/i18n.h>.
7557 * normal/menu_text.c (print_timeout): Gettexttize string.
7558 * normal/menu_text.c (print_message): Gettexttize string.
7559 * po/POTFILES: Add `normal/menu_text.c'.
7560 * po/ca.po: Add new translations.
7561 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7562 gettext module and defines locale_dir and lang in grub.cfg.
7563 * NEWS: Add gettext support.
7565 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7567 * util/hostdisk.c: Include `<grub/i18n.h>'.
7568 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7569 (make_device_name): Rewrite using asprintf.
7570 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7571 (find_system_device): If a device is not found, generate one just
7572 by reusing the OS path name.
7573 (read_device_map): Make it permissible for device.map not to exist.
7575 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7577 * script/sh/execute.c: Move from here ...
7578 * script/execute.c: ... to here. Update all users.
7579 * script/sh/function.c: Move from here ...
7580 * script/function.c: ... to here. Update all users.
7581 * script/sh/lexer.c: Move from here ...
7582 * script/lexer.c: ... to here. Update all users.
7583 * script/sh/main.c: Move from here ...
7584 * script/main.c: ... to here. Update all users.
7585 * script/sh/parser.y: Move from here ...
7586 * script/parser.y: ... to here. Update all users.
7587 * script/sh/script.c: Move from here ...
7588 * script/script.c: ... to here. Update all users.
7590 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7592 * configure.ac: Detect all `emu' platforms. Define
7593 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7594 --enable-grub-emu logic. Disable include/grub/machine
7595 symlink on `emu' platforms.
7597 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7598 * gensymlist.sh.in: Likewise.
7600 * include/grub/i386/coreboot/machine.h: Remove file.
7601 * include/grub/i386/efi/machine.h: Likewise.
7602 * include/grub/i386/ieee1275/machine.h: Likewise.
7603 * include/grub/i386/pc/machine.h: Likewise.
7604 * include/grub/i386/qemu/machine.h: Likewise.
7605 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7606 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7607 * include/grub/x86_64/efi/machine.h: Likewise.
7609 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7610 * commands/halt.c: Likewise.
7611 * commands/reboot.c: Likewise.
7612 * include/grub/autoefi.h: Likewise.
7613 * include/grub/i386/at_keyboard.h: Likewise.
7614 * include/grub/i386/kernel.h: Likewise.
7615 * include/grub/i386/loader.h: Likewise.
7616 * include/grub/i386/pc/memory.h: Likewise.
7617 * kern/dl.c: Likewise.
7618 * kern/i386/coreboot/init.c: Likewise.
7619 * loader/i386/bsd.c: Likewise.
7620 * loader/i386/linux.c: Likewise.
7621 * loader/multiboot_loader.c: Likewise.
7622 * term/i386/pc/serial.c: Likewise.
7623 * term/usb_keyboard.c: Likewise.
7625 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7626 `<grub/machine/machine.h>'
7627 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7628 * util/misc.c: Remove `<grub/machine/machine.h>' and
7629 `<grub/machine/time.h>'.
7631 * Makefile.in (enable_grub_emu): Remove variable.
7632 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7634 * conf/any-emu.rmk: New file.
7635 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7636 (grub_emu_init.c): Move from here ...
7637 * conf/any-emu.rmk: ... to here.
7639 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7640 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7641 * conf/any-emu.rmk: ... to here.
7643 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7645 * include/grub/parser.h (grub_parser_register): Document need
7646 of `name' parameter.
7647 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7648 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7651 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7653 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7655 * include/grub/i18n.h (N_): New macro.
7656 * util/mkisofs/mkisofs.h: Likewise.
7657 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7659 (usage): Use gettext() to translate help strings when printing them.
7661 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7663 Based on patch from Bean
7664 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7666 * video/efi_fb.c: New file.
7667 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7668 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7670 * conf/x86_64-efi.rmk: Likewise.
7672 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7674 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7675 * util/i386/pc/grub-setup.c: Likewise.
7677 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7679 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7681 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7682 file_get_storage_info to implement grub_guess_root_device.
7684 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7686 * Makefile.in (target): Use make's builtin $(shell) function
7687 instead of calling directly $(SHELL) to create the locale directories,
7688 inside the $(foreach) function.
7690 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7692 * util/grub-mkrescue.in: Print an error and usage if output option
7695 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7697 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7698 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7699 root and /boot are on different devices.
7701 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7703 Fix build for srcdir != objdir.
7705 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7706 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7708 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7709 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7710 reference for input.
7712 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7714 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7715 or hardlinking it). Remove -J option, Joliet is not compatible with
7716 multiple source directories.
7718 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7719 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7721 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7722 (process_input_dir): New function. Process an arbitrary input
7724 Misc adjustments to support both "override mode" and system-wide mode.
7726 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7728 * configure.ac (UNIFONT_BDF): Rename to ...
7729 (FONT_SOURCE): ... this. Update all users.
7731 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7733 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7734 to the list of unifont files to look for.
7736 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7738 Patch from Joe Auricchio <jauricchio@gmail.com>
7739 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7740 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7741 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7743 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7745 * Makefile.in (install-local): Add a missing backslash.
7747 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7749 * include/grub/x86_64/io.h: New file.
7751 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7753 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7754 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7755 Include `"progname.h"'.
7756 (main): Initialize gettext.
7757 * util/i386/pc/grub-setup.c: Gettexttize.
7758 * util/i386/pc/grub-mkimage.c: Likewise.
7760 * Makefile.in (po/*.po): Redefine as ...
7761 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7763 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7765 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7767 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7768 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7769 (program_name): Remove.
7770 (main): Initialize gettext support.
7771 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7772 Include `<libintl.h>'.
7775 * util/mkisofs/eltorito.c: Gettexttize.
7776 * util/mkisofs/joliet.c: Likewise.
7777 * util/mkisofs/mkisofs.c: Likewise.
7778 * util/mkisofs/multi.c: Likewise.
7779 * util/mkisofs/rock.c: Likewise.
7780 * util/mkisofs/tree.c: Likewise.
7781 * util/mkisofs/write.c: Likewise.
7783 * po/POTFILES: Update with new files.
7785 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7787 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7788 * util/mkisofs/iso9660.h: Likewise.
7789 * util/mkisofs/joliet.c: Likewise.
7790 * util/mkisofs/mkisofs.c: Likewise.
7791 * util/mkisofs/mkisofs.h: Likewise.
7792 * util/mkisofs/rock.c: Likewise.
7793 * util/mkisofs/tree.c: Likewise.
7794 * util/mkisofs/write.c: Likewise.
7796 * util/mkisofs/eltorito.c (rcsid): Remove.
7797 * util/mkisofs/hash.c: Likewise.
7798 * util/mkisofs/joliet.c: Likewise.
7799 * util/mkisofs/name.c: Likewise.
7800 * util/mkisofs/rock.c: Likewise.
7801 * util/mkisofs/tree.c: Likewise.
7802 * util/mkisofs/write.c: Likewise.
7804 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7806 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7807 instead of static allocation.
7808 * util/mkisofs/match.h: Likewise.
7810 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7812 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7813 and `util/grub.d/10_linux.in'.
7814 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7815 translatable Shell files.
7817 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7819 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7821 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7823 * INSTALL: Document Automake is needed for bootstrap.
7824 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7825 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7826 Add gettext initialization.
7827 (kfreebsd_entry): Make menuentry output translatable.
7829 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7831 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7832 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7833 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7834 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7835 (LINGUAS): Auto-generate using `po/LINGUAS'.
7836 * po/LINGUAS: New file.
7838 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7840 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7842 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7843 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7844 bindtextdomain() calls for gettext initialization.
7846 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7848 * gnulib/progname.c: New file (imported from Gnulib).
7849 * gnulib/progname.h: Likewise.
7850 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7851 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7852 (usage): Replace `progname' with `program_name'.
7853 (main): Use set_program_name() for program name initialization.
7855 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7857 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7859 * Makefile.in (CPPFLAGS): ... to here.
7861 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7863 * aclocal.m4: Move from here ...
7864 * acinclude.m4: ... to here.
7865 * autogen.sh: Add call to `aclocal'.
7866 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7868 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7870 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7871 (LINGUAS): New variable.
7872 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7873 (install-local): Install MO files.
7874 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7875 * include/grub/i18n.h: New file.
7876 * po/POTFILES: New file.
7877 * po/ca.po: New file.
7878 * util/grub.d/10_linux.in (bindir): New variable.
7879 Add gettext initialization.
7880 (linux_entry): Make menuentry output translatable.
7881 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7882 (usage): Make --help output translatable.
7883 (main): Initialize gettext.
7885 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7887 * import_gcry.py: New file (written by Vladimir with minor
7889 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7891 * INSTALL: Document that Python is required for bootstrap.
7893 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7895 Import ciphers from libgcrypt 1.4.4.
7897 * lib/libgcrypt/cipher/ChangeLog
7898 * lib/libgcrypt/cipher/ac.c
7899 * lib/libgcrypt/cipher/arcfour.c
7900 * lib/libgcrypt/cipher/bithelp.h
7901 * lib/libgcrypt/cipher/blowfish.c
7902 * lib/libgcrypt/cipher/camellia-glue.c
7903 * lib/libgcrypt/cipher/camellia.c
7904 * lib/libgcrypt/cipher/camellia.h
7905 * lib/libgcrypt/cipher/cast5.c
7906 * lib/libgcrypt/cipher/cipher.c
7907 * lib/libgcrypt/cipher/crc.c
7908 * lib/libgcrypt/cipher/des.c
7909 * lib/libgcrypt/cipher/dsa.c
7910 * lib/libgcrypt/cipher/ecc.c
7911 * lib/libgcrypt/cipher/elgamal.c
7912 * lib/libgcrypt/cipher/hash-common.c
7913 * lib/libgcrypt/cipher/hash-common.h
7914 * lib/libgcrypt/cipher/hmac-tests.c
7915 * lib/libgcrypt/cipher/md.c
7916 * lib/libgcrypt/cipher/md4.c
7917 * lib/libgcrypt/cipher/md5.c
7918 * lib/libgcrypt/cipher/primegen.c
7919 * lib/libgcrypt/cipher/pubkey.c
7920 * lib/libgcrypt/cipher/rfc2268.c
7921 * lib/libgcrypt/cipher/rijndael-tables.h
7922 * lib/libgcrypt/cipher/rijndael.c
7923 * lib/libgcrypt/cipher/rmd.h
7924 * lib/libgcrypt/cipher/rmd160.c
7925 * lib/libgcrypt/cipher/rsa.c
7926 * lib/libgcrypt/cipher/seed.c
7927 * lib/libgcrypt/cipher/serpent.c
7928 * lib/libgcrypt/cipher/sha1.c
7929 * lib/libgcrypt/cipher/sha256.c
7930 * lib/libgcrypt/cipher/sha512.c
7931 * lib/libgcrypt/cipher/tiger.c
7932 * lib/libgcrypt/cipher/twofish.c
7933 * lib/libgcrypt/cipher/whirlpool.c
7935 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7937 Fix build for systems without error().
7939 * gnulib/error.c: New file (imported from Gnulib).
7940 * gnulib/error.h: Likewise.
7941 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7942 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7943 (this variable is now used by error()).
7945 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7947 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7948 instead of relying that char is signed.
7950 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7952 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7953 blocksize different from specified.
7954 (grub_pxefs_read): Likewise.
7956 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7958 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7960 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7961 (grub_ata_readwrite): Likewise. Update 2 format strings.
7962 (grub_atapi_read): Likewise.
7964 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7965 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7966 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7967 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7968 (ata_mod_LDFLAGS): Move from here ...
7969 * conf/i386.rmk: ... to here ...
7970 * conf/x86_64-efi.rmk: ... and here.
7971 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7972 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7974 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7976 Relicense multiboot.h, with RMS' blessing.
7978 * include/multiboot.h: Change to X11 license.
7980 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7982 Support --version in grub-mkisofs.
7984 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7985 (OPTION_VERSION): New macro.
7986 (ld_options): Recognize --version.
7987 (usage): Move `program_name' from here ...
7988 (program_name): ... to here. Add `static' qualifier.
7989 (main): Recognize `OPTION_VERSION'.
7991 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7993 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7994 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7996 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7998 Fix help2man generation for mkisofs.
8000 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
8001 (usage): Send output to stdout (rather than stderr).
8003 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
8005 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
8006 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8007 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
8008 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8009 (bin_SCRIPTS): Add `grub-mkfloppy'.
8010 (grub_mkfloppy_SOURCES): New variable.
8012 * util/grub-mkrescue.in: New file.
8013 * util/i386/pc/grub-mkfloppy.in: New file.
8015 * util/i386/coreboot/grub-mkrescue.in: Remove.
8016 * util/i386/pc/grub-mkrescue.in: Remove.
8018 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8020 * include/grub/multiboot.h (struct grub_multiboot_header): Move
8022 * include/multiboot.h (struct multiboot_header): ... to here. Update
8024 * include/grub/multiboot.h (struct grub_multiboot_info): Move
8026 * include/multiboot.h (struct multiboot_info): ... to here. Update
8028 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
8030 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
8032 * include/grub/multiboot.h (struct grub_mod_list): Move
8034 * include/multiboot.h (struct multiboot_mod_list): ... to here.
8037 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8039 * include/multiboot2.h (multiboot_word): Rename from this ...
8040 (multiboot2_word): ... to this. Update all users.
8041 (multiboot_header): Rename from this ...
8042 (multiboot2_header): ... to this. Update all users.
8043 (multiboot_tag_header): Rename from this ...
8044 (multiboot2_tag_header): ... to this. Update all users.
8045 (multiboot_tag_start): Rename from this ...
8046 (multiboot2_tag_start): ... to this. Update all users.
8047 (multiboot_tag_name): Rename from this ...
8048 (multiboot2_tag_name): ... to this. Update all users.
8049 (multiboot_tag_module): Rename from this ...
8050 (multiboot2_tag_module): ... to this. Update all users.
8051 (multiboot_tag_memory): Rename from this ...
8052 (multiboot2_tag_memory): ... to this. Update all users.
8053 (multiboot_tag_unused): Rename from this ...
8054 (multiboot2_tag_unused): ... to this. Update all users.
8055 (multiboot_tag_end): Rename from this ...
8056 (multiboot2_tag_end): ... to this. Update all users.
8058 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8060 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
8061 this platform we should support Multiboot1 first.
8063 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
8064 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
8065 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
8067 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8069 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
8070 of write calls (converting them to fwrite() if they aren't already).
8071 (get_torito_desc): Likewise.
8072 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
8074 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8076 * util/i386/pc/grub-install.in: Move from here ...
8077 * util/grub-install.in: ... to here. Update all users.
8079 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
8081 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
8083 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8085 Support for El Torito without floppy emulation.
8087 * util/mkisofs/eltorito.c: Include `<errno.h>'.
8088 (init_boot_catalog): Improve error handling.
8089 (get_torito_desc): Don't use floppy emulation unless requested by
8090 user. Patch boot information table when requested via
8092 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
8093 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
8094 (use_boot_info_table): New variables.
8095 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
8096 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
8097 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
8098 `--eltorito-emul-floppy'.
8099 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
8100 and `OPTION_ELTORITO_EMUL_FLOPPY'.
8101 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
8102 (use_boot_info_table, get_731): New prototypes.
8103 * util/mkisofs/write.c (get_731): New function.
8105 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
8107 Fix the generation of the man page.
8109 * util/pc/i386/grub-install.in: Source
8110 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
8112 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8114 Large file support for grub-mkisofs.
8116 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
8117 * util/mkisofs/mkisofs.c (next_extent, last_extent)
8118 (session_start): Upgrade type to `uint64_t'. Update all users.
8119 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
8120 (struct directory_entry): Upgrade type of `starting_block' and
8121 `size' to `uint64_t'. Update all users.
8122 (struct deferred): Remove unused structure.
8123 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
8125 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
8126 file is larger than `UINT32_MAX'.
8127 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
8128 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
8130 (struct deferred_write): Upgrade type of `extent' and `size' to
8131 `uint64_t'. Update all users.
8132 (last_extent_written): Upgrade type to `uint64_t'. Update all
8134 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
8135 Update all users. Upgrade type of `remain' to `int64_t' and
8136 `use' to `size_t'. Use error() to handle fread() errors.
8137 (write_files): Rely on write_one_file() rather than calling
8140 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
8142 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
8144 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8146 * util/mkisofs/fnmatch.c: Remove.
8147 * util/mkisofs/getopt1.c: Likewise.
8148 * util/mkisofs/getopt.c: Likewise.
8149 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
8150 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
8151 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
8152 `gnulib/getopt1.c' and `gnulib/getopt.c'.
8153 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
8155 * configure.ac: Detect `mingw32msvc' host_os.
8156 Check for lstat(), getuid() and getgid().
8158 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
8159 instances of `u_char' with `uint8_t'.
8161 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
8162 [!HAVE_GETUID] (getuid): New function (stub).
8163 [!HAVE_GETGID] (getgid): Likewise.
8164 [!HAVE_LSTAT] (lstat): Likewise.
8165 [!S_IROTH] (S_IROTH): New macro (dummy).
8166 [!S_IRGRP] (S_IRGRP): Likewise.
8168 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8170 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
8171 conditional expression).
8173 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8177 * gnulib/fnmatch.c: New file.
8178 * gnulib/fnmatch.h: Likewise.
8179 * gnulib/fnmatch_loop.c: Likewise.
8180 * gnulib/getopt.c: Likewise.
8181 * gnulib/getopt.h: Likewise.
8182 * gnulib/getopt1.c: Likewise.
8183 * gnulib/getopt_int.h: Likewise.
8184 * gnulib/gettext.h: Likewise.
8186 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8188 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
8189 * normal/handler.c (read_handler_list): Likewise.
8191 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8195 * kern/command.c (grub_register_command_prio): Use
8196 grub_zalloc() instead of explicitly zeroing data.
8197 * kern/list.c: Include `<grub/mm.h>'.
8198 (grub_named_list_find): Replace `0' with `NULL'.
8199 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
8200 (fs_module_list): Change type to `grub_named_list_t'. Update all
8202 * normal/dyncmd.c (read_command_list): Add space between function
8203 call and parenthesis.
8204 * normal/handler.c (read_handler_list): Likewise.
8206 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8208 * normal/auth.c (punishment_delay): Moved from here ...
8209 (grub_auth_strcmp): ... to here (inside function).
8211 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8213 * include/grub/list.h (struct grub_named_list): Remove `const'
8214 qualifier from `name'.
8215 (struct grub_prio_list): Likewise.
8217 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8219 * normal/auth.c: Include `<grub/time.h>'.
8220 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
8222 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8224 * normal/auth.c (punishment_delay): New variable.
8225 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
8226 (grub_auth_check_authentication): Punish failed login attempts with
8227 an incremental (2^N) delay.
8229 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8231 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
8232 path with $(srcdir).
8234 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8236 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
8238 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8240 * util/i386/coreboot/grub-mkrescue.in: New file.
8241 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
8244 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
8245 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
8246 * configure.ac: Add header and function checks to satisfy grub-mkisofs
8248 * util/mkisofs/defaults.h: New file.
8249 * util/mkisofs/eltorito.c: Likewise.
8250 * util/mkisofs/exclude.h: Likewise.
8251 * util/mkisofs/fnmatch.c: Likewise.
8252 * util/mkisofs/getopt.c: Likewise.
8253 * util/mkisofs/getopt1.c: Likewise.
8254 * util/mkisofs/hash.c: Likewise.
8255 * util/mkisofs/include/fctldefs.h: Likewise.
8256 * util/mkisofs/include/mconfig.h: Likewise.
8257 * util/mkisofs/include/prototyp.h: Likewise.
8258 * util/mkisofs/include/statdefs.h: Likewise.
8259 * util/mkisofs/iso9660.h: Likewise.
8260 * util/mkisofs/joliet.c: Likewise.
8261 * util/mkisofs/match.c: Likewise.
8262 * util/mkisofs/match.h: Likewise.
8263 * util/mkisofs/mkisofs.c: Likewise.
8264 * util/mkisofs/mkisofs.h: Likewise.
8265 * util/mkisofs/multi.c: Likewise.
8266 * util/mkisofs/name.c: Likewise.
8267 * util/mkisofs/rock.c: Likewise.
8268 * util/mkisofs/tree.c: Likewise.
8269 * util/mkisofs/write.c: Likewise.
8271 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8273 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
8276 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8278 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
8279 `grub-mkimage' (and use $0 when possible).
8281 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8283 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
8284 error message for excessively large memory map.
8286 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8288 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
8291 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8293 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
8294 message for coreboot users.
8296 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
8298 Fix build with GNU gold.
8300 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
8301 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
8302 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
8304 * aclocal.m4: Likewise.
8306 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
8308 * configure.ac (AC_PREREQ): Bump to 2.59d.
8309 * INSTALL: Make it more clear when Autoconf and Ruby are
8310 needed and when to run `./autogen.sh'.
8312 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8314 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
8317 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8319 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
8321 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8323 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
8324 giving it to GNU Mach.
8326 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8328 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
8329 GNU partition number to get internal GRUB partition number.
8331 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8333 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
8334 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
8336 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
8338 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
8339 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
8342 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
8344 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
8346 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8350 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
8351 `-isystem=$(srcdir)/include'.
8353 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8355 * util/i386/pc/grub-install.in: Remove hint that device.map should be
8356 checked (grub-install doesn't currently rely on it).
8358 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
8362 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
8363 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8364 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
8365 * conf/i386-ieee1275.rmk: Likewise.
8366 * conf/i386-pc.rmk: Likewise.
8367 * conf/powerpc-ieee1275.rmk: Likewise.
8368 * conf/sparc64-ieee1275.rmk: Likewise.
8369 * conf/x86_64-efi.rmk: Likewise.
8371 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8373 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
8375 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8377 * include/grub/misc.h: Stop checking for APPLE_CC.
8379 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8381 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
8382 doesn't cause an infinite call loop.
8384 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
8386 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
8389 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8391 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
8393 * Makefile.in: Likewise.
8395 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8397 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
8399 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8401 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
8403 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8405 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
8407 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8409 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
8411 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
8413 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8415 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
8416 in $(MAKEINFO) invocation. This makes it clear in output that
8417 errors are being ignored.
8419 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8421 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
8423 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8424 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
8425 * conf/i386-ieee1275.rmk: Likewise.
8426 * conf/i386-pc.rmk: Likewise.
8427 * conf/powerpc-ieee1275.rmk: Likewise.
8428 * conf/sparc64-ieee1275.rmk: Likewise.
8429 * conf/x86_64-efi.rmk: Likewise.
8431 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8433 * util/grub-editenv.c (main): If only a command is given, use
8434 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
8435 (usage): FILENAME is now optional and has a default.
8437 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8439 Improve grub-mkconfig performance when there are several menu
8440 entries on a single filesystem.
8442 * util/grub.d/10_linux.in (linux_entry): Cache the output of
8443 prepare_grub_to_access_device.
8444 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8445 * util/grub.d/30_os-prober.in: Likewise.
8447 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8449 * util/grub.d/10_freebsd.in: Remove.
8450 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
8451 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
8453 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8455 * docs/grub.cfg: Fix example usage of *BSD loaders.
8457 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8459 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
8460 grub_util_error() call.
8462 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8464 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
8465 `reserved_first_sector' member.
8466 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
8467 `reserved_first_sector' to 1.
8468 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
8469 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
8470 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
8471 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
8472 filesystems which begin at first sector.
8473 (options): New option --skip-fs-probe.
8474 (main): Handle --skip-fs-probe and pass it to setup().
8476 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8478 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
8479 (memset): Fix function prototype.
8481 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8482 2009-10-25 Vasily Averin <vvs@parallels.com>
8484 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
8485 `dirent.direntlen == 0'.
8487 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8489 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
8491 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8493 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8495 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8496 `__trampoline_setup' and `__ucmpdi2'.
8497 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8498 that libgcc provides.
8500 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8502 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8503 * include/grub/sparc64/libgcc.h (memset): Likewise.
8504 * include/grub/misc.h (memset, memcmp): New function prototypes.
8506 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8508 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8510 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8512 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8514 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8515 * docs/grub.cfg: Compensate for recent change in multiboot
8516 loader (since 2009-08-14 it won't pass filename to payload).
8517 * util/grub.d/10_hurd.in: Likewise.
8519 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
8521 * config.guess: Update to latest version from config git
8523 * config.sub: Likewise.
8525 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8527 Fix build on sparc64.
8529 * configure.ac: Perform checks for libgcc symbols before
8530 adding `-nostdlib' to LDFLAGS.
8532 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8534 Let user specify OpenBSD root device.
8536 * loader/i386/bsd.c (openbsd_root): New variable.
8537 (openbsd_opts): New option 'root'.
8538 (OPENBSD_ROOT_ARG): New macro.
8539 (grub_openbsd_boot): Use 'openbsd_root'.
8540 (grub_cmd_openbsd): Fill 'openbsd_root'.
8542 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8544 * NEWS: Misc adjustments.
8546 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8548 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8550 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8552 * configure.ac: Bump version to 1.97.
8554 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
8556 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8557 -mno-3dnow on x86 architectures. Some toolchains enable these
8558 features by default, but they rely on registers that aren't enabled
8559 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8561 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8563 Make entry text a bit more readable.
8565 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8567 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8569 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8571 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8573 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8576 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8578 * configure.ac: Add missing dollar.
8580 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8582 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8584 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8585 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8587 * include/grub/sparc64/libgcc.h: Likewise. Use
8588 preprocessor conditionals.
8590 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8592 * conf/common.rmk (grub-dumpbios): Remove rule.
8593 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8594 * util/grub-dumpbios.in: Remove file.
8596 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8598 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8599 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8601 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8602 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8605 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8606 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8607 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8608 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8611 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8613 * term/tparm.c: Switch to GPLv3.
8615 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8617 * include/grub/i386/cpuid.h: Add header protection.
8619 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8621 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8623 * include/grub/i386/cpuid.h: New file.
8624 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8625 (has_longmode): Rename to ...
8626 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8628 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8629 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8630 on a CPU that doesn't implement AMD64 instruction set.
8632 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8634 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8635 that version.texi is rebuilt on version number changes.
8637 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8639 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8642 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8644 * util/i386/pc/grub-install.in: Source
8645 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8646 that the --grub-probe option will work.
8647 * util/sparc64/ieee1275/grub-install.in: Likewise.
8649 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8651 * configure.ac: Bump version to 1.97~beta4.
8653 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8655 Resync grub-mkdevicemap in x86_64-efi.
8657 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8658 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8661 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8663 * util/grub-editenv.c (create_envblk_file): Write new block with a
8664 .new suffix and then rename it into place, to ensure atomic
8667 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8669 Do not automatically install headers.
8671 * Makefile.in (include_DATA): Remove. Update all users.
8673 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8675 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8676 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8678 * util/osdetect.lua: Remove.
8679 * script/lua/lauxlib.c: Likewise.
8680 * script/lua/ldebug.c: Likewise.
8681 * script/lua/grub_main.c: Likewise.
8682 * script/lua/lauxlib.h: Likewise.
8683 * script/lua/ldebug.h: Likewise.
8684 * script/lua/ltablib.c: Likewise.
8685 * script/lua/liolib.c: Likewise.
8686 * script/lua/lstrlib.c: Likewise.
8687 * script/lua/lualib.h: Likewise.
8688 * script/lua/ldo.c: Likewise.
8689 * script/lua/ldump.c: Likewise.
8690 * script/lua/ldo.h: Likewise.
8691 * script/lua/loslib.c: Likewise.
8692 * script/lua/lundump.c: Likewise.
8693 * script/lua/grub_lib.c: Likewise.
8694 * script/lua/ldblib.c: Likewise.
8695 * script/lua/lundump.h: Likewise.
8696 * script/lua/lmem.c: Likewise.
8697 * script/lua/grub_lib.h: Likewise.
8698 * script/lua/lmathlib.c: Likewise.
8699 * script/lua/lstate.c: Likewise.
8700 * script/lua/ltm.c: Likewise.
8701 * script/lua/lvm.c: Likewise.
8702 * script/lua/lmem.h: Likewise.
8703 * script/lua/lstate.h: Likewise.
8704 * script/lua/ltm.h: Likewise.
8705 * script/lua/ltable.c: Likewise.
8706 * script/lua/lvm.h: Likewise.
8707 * script/lua/llex.c: Likewise.
8708 * script/lua/lgc.c: Likewise.
8709 * script/lua/grub_lua.h: Likewise.
8710 * script/lua/loadlib.c: Likewise.
8711 * script/lua/lfunc.c: Likewise.
8712 * script/lua/lopcodes.c: Likewise.
8713 * script/lua/lparser.c: Likewise.
8714 * script/lua/ltable.h: Likewise.
8715 * script/lua/llex.h: Likewise.
8716 * script/lua/lgc.h: Likewise.
8717 * script/lua/lfunc.h: Likewise.
8718 * script/lua/lbaselib.c: Likewise.
8719 * script/lua/lopcodes.h: Likewise.
8720 * script/lua/lparser.h: Likewise.
8721 * script/lua/lzio.c: Likewise.
8722 * script/lua/linit.c: Likewise.
8723 * script/lua/lobject.c: Likewise.
8724 * script/lua/llimits.h: Likewise.
8725 * script/lua/lstring.c: Likewise.
8726 * script/lua/lzio.h: Likewise.
8727 * script/lua/lapi.c: Likewise.
8728 * script/lua/lcode.c: Likewise.
8729 * script/lua/lua.h: Likewise.
8730 * script/lua/lobject.h: Likewise.
8731 * script/lua/lstring.h: Likewise.
8732 * script/lua/lapi.h: Likewise.
8733 * script/lua/lcode.h: Likewise.
8734 * script/lua/luaconf.h: Likewise.
8736 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8738 * docs/grub.texi (Command-line and menu entry commands): Document
8739 date and echo commands.
8741 2009-09-24 Pavel Roskin <proski@gnu.org>
8743 * include/grub/kernel.h (struct grub_module_header): Remove
8744 `grub_module_header_types'. Make `type' unsigned. Make `size'
8745 32-bit on all platforms.
8746 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8747 8-bit field. Use grub_host_to_target32() for `size'.
8748 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8749 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8750 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8752 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8754 Fix "lost keypress" bug in at_keyboard.
8756 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8757 Checks for readyness of input buffer (without flushing it).
8758 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8759 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8761 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8763 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8764 size check within GRUB_MACHINE_PCBIOS section.
8766 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8768 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8770 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8771 KEYBOARD_ISREADY check.
8772 (grub_at_keyboard_checkkey): Rename to ...
8773 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8774 Remove gratuitous cast.
8776 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8778 * configure.ac: Call AC_PROG_MKDIR_P.
8779 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8780 version.texi in $(builddir) rather than $(srcdir).
8781 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8782 to makeinfo's @include search path.
8784 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8786 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8788 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8790 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8793 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8795 Build info documentation. Some code borrowed from Automake.
8797 * configure.ac: Check for makeinfo.
8798 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8799 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8801 (MOSTLYCLEANFILES): Add vti.tmp.
8802 (docs/version.texi, docs/stamp-vti): Update automatically.
8803 (docs/grub.info): Build info documentation. Use --force and ignore
8805 (all-local): Add $(INFOS).
8806 (install-local): Install info files.
8807 (uninstall): Uninstall info files.
8808 * docs/version.texi: Remove from revision control. This file is
8809 automatically generated on build now.
8810 * gendistlist.sh: Add `*.info'.
8812 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8814 * kern/term.c: Fix indentation.
8816 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8818 * util/hostdisk.c: Fix a comment.
8820 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8822 Fix regression introduced in r2539.
8824 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8827 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8829 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8830 os-prober. Under normal operation, it does not print anything to
8831 stderr; if it does, we need to debug it, and throwing away stderr
8832 makes that excessively difficult.
8834 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8836 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8838 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8840 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8841 AC_LANG_PROGRAM from autoconf.
8842 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8843 prototypes (fixes warning).
8845 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8846 `--disable-werror' was used.
8848 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8850 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8851 uninitialized `lastaddr'.
8853 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8855 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8857 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8859 * commands/test.c (get_fileinfo): Return immediately if
8860 grub_fs_probe fails.
8862 2009-09-14 José Martínez <xosemp@gmail.com>
8864 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8866 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8868 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8871 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8873 * configure.ac: Remove --enable-grub-pe2elf. Only build
8874 grub-pe2elf when needed by the build system itself.
8875 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8877 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8879 * configure.ac: Bump version to 1.97~beta3.
8880 * docs/version.texi: Likewise.
8882 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8884 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8885 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8887 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8888 (grub_linux_setup_video): ... to here (with some adjustments).
8890 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8892 Fix memory corruption issue (spotted by Colin Watson).
8894 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8895 causing returned size to be stored in an incorrect memory location.
8896 Fix use of uninitialized value when storing the returned size.
8898 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8900 Change clean rules to properly remove files
8902 * genmk.rb: add new clean rules
8903 * Makefile.in (clean): add the new targets
8904 (mostlyclean): likewise
8906 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8908 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8910 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8913 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8915 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8918 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8920 * util/grub-mkconfig.in: Make the created config mode 400 and
8921 print a warning if it fails.
8923 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8925 * util/grub.d/40_custom.in: Ask user to type custom entries below
8926 comment, rather than below 'exec tail' line.
8928 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8930 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8931 visible in grub.cfg.
8933 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8935 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8938 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8940 * docs/grub.cfg: Add an example menu entry for memtest86+.
8942 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8944 * config.guess: Update to latest version from config git.
8945 * config.sub: Likewise.
8947 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8949 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8950 unknown-command case. Fixes bug #27320.
8952 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8954 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8955 `help' if the command exists.
8957 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8959 * INSTALL: Require GCC 4.1.3 or later.
8961 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8963 * Makefile.in (RMKFILES): add i386-qemu.rmk
8964 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8965 $(srcdir)/stamp-h.in
8967 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8969 * util/grub-probe.c (probe): Comment out buggy codepath, which
8970 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8971 should be re-enabled after 1.97.
8973 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8975 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8978 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8980 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8981 unnecessary calls to grub_error.
8983 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8985 * NEWS: Mention `keystatus' and Unicode fonts.
8987 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8989 * configure.ac: Bump version to 1.97~beta2.
8990 * docs/version.texi: Likewise.
8992 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8994 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8995 containing unwind information in some cases where it previously did
8996 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8997 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
9000 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
9002 Embedding loadenv module into grub-emu
9004 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
9006 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
9007 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
9008 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
9009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
9010 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
9011 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
9013 2009-09-03 Magnus Granberg <zorry@ume.nu>
9015 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
9016 include -fPIE in the default specs.
9017 * configure.ac: Check if pie_possible is yes and add -fno-PIE
9020 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
9022 * INSTALL: Note that GNU Bison 2.3 or later is required.
9024 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
9026 * kern/i386/pc/startup.S: Fix typo.
9028 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9030 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
9033 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9035 * docs/grub.texi (Naming convention): Describe one-based partition
9037 (Device syntax): Likewise.
9038 (File name syntax): Likewise.
9039 (Block list syntax): Likewise.
9040 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
9042 (File name syntax): Likewise.
9043 (Command-line and menu entry commands): Document acpi, blocklist,
9044 crc, export, insmod, keystatus, ls, set, and unset commands.
9046 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9048 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
9049 to avoid implying that only one of --shift, --ctrl, or --alt may be
9052 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9054 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
9055 rather than comparing against S_IFREG, which will almost never work.
9057 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9059 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
9060 (write_blocklists): Likewise.
9062 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
9064 * script/lua/grub_lua.h (fputs): Supply a format string as the first
9065 argument to grub_printf.
9067 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
9069 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
9072 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9074 * kern/file.c (grub_file_read): Spelling fix
9076 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9078 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
9079 loading of headers in some cases.
9081 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
9083 * configure.ac: Bump version to 1.97~beta1.
9084 * docs/version.texi: Likewise.
9086 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9088 * include/grub/i386/xnu.h: Add license header.
9089 include grub/err.h explicitly.
9091 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9093 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
9094 to `ufs' in the vfs.root.mountfrom kernel parameter.
9096 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9098 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
9100 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
9101 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
9103 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
9106 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9108 * kern/file.c (grub_file_read): Check offset.
9109 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
9110 * fs/jfs.c (grub_jfs_read_file): Likewise.
9111 * fs/ntfs.c (grub_ntfs_read): Likewise.
9112 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
9113 * fs/minix.c (grub_minix_read_file): Correct offset check.
9114 * fs/ufs.c (grub_ufs_read_file): Likewise.
9116 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9118 * term/i386/pc/console.c (bios_data_area): Cast
9119 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
9121 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9123 1-bit optimised blitters.
9125 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
9127 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9128 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9129 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9130 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9131 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9132 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9133 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
9135 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9136 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9137 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9138 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9139 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9140 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9141 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
9143 * video/video.c (grub_video_get_blit_format): Return
9144 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
9146 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9148 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
9149 the first argument to grub_printf.
9151 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9152 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
9154 Add `getkeystatus' terminal method. Add a new `keystatus' command
9157 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
9158 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
9159 modifier key bitmasks.
9160 (struct grub_term_input): Add `getkeystatus' member.
9161 (grub_getkeystatus): Add prototype.
9162 * kern/term.c (grub_getkeystatus): New function.
9164 * include/grub/i386/pc/memory.h
9165 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
9166 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
9168 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
9169 (grub_console_term_input): Set `getkeystatus' member.
9170 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
9172 (grub_usb_keyboard_getreport): Likewise.
9173 (grub_usb_keyboard_checkkey): Likewise.
9174 (grub_usb_keyboard_getkeystatus): New function.
9175 (grub_usb_keyboard_term): Set `getkeystatus' member.
9177 * commands/keystatus.c: New file.
9178 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
9179 (keystatus_mod_SOURCES): New variable.
9180 (keystatus_mod_CFLAGS): Likewise.
9181 (keystatus_mod_LDFLAGS): Likewise.
9182 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
9183 commands/keystatus.c.
9184 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9185 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9186 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9188 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9189 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9191 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9193 Split befs.mod and afs.mod into *_be.mod and *.mod
9195 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
9196 (grub_fstest_SOURCES): Likewise.
9197 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
9198 (afs_be_mod_SOURCES): New variable.
9199 (afs_be_mod_CFLAGS): Likewise.
9200 (afs_be_mod_LDFLAGS): Likewise.
9201 (befs_be_mod_SOURCES): Likewise.
9202 (befs_be_mod_CFLAGS): Likewise.
9203 (befs_be_mod_LDFLAGS): Likewise.
9204 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
9205 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9206 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9207 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9208 (grub_emu_SOURCES): Likewise.
9209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9210 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9211 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9212 * fs/afs_be.c: New file.
9213 * fs/befs_be.c: New file.
9214 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
9215 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
9216 (U16): Replaced with ...
9217 (grub_afs_to_cpu16): ...this. All users updated.
9218 (U32): Replaced with ...
9219 (grub_afs_to_cpu32): ...this. All users updated.
9220 (U64): Replaced with ...
9221 (grub_afs_to_cpu64): ...this. All users updated.
9222 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
9223 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
9224 (grub_afs_validate_sblock): Check only one endianness.
9225 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9226 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9227 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9228 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9229 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9230 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9231 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9232 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9234 2009-08-26 Bean <bean123ch@gmail.com>
9236 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
9238 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9239 (grub_xfs_inode_block): Change return type to grub_uint64_t.
9240 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
9242 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9244 NetBSD memory map support.
9246 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
9247 (grub_netbsd_btinfo_mmap_header): New structure.
9248 (grub_netbsd_btinfo_mmap_entry): Likewise.
9249 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
9251 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9253 Enable bsd.mod on coreboot.
9255 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
9256 (bsd_mod_SOURCES): New variable.
9257 (bsd_mod_CFLAGS): Likewise.
9258 (bsd_mod_LDFLAGS): Likewise.
9259 (bsd_mod_ASFLAGS): Likewise.
9260 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
9261 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
9263 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9265 Cleanup NetBSD root support.
9267 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
9268 grub_bsd_get_device.
9271 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
9273 * util/grub.d/00_header.in: Move check for the video backend of
9274 gfxterm from here ...
9275 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
9276 a suitable video backend.
9278 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9280 Fix breakage in grub-setup.
9282 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
9283 "msdos_partition_map".
9285 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9287 Fix breakage in normal/auth.c.
9289 * normal/auth.c (grub_iswordseparator): New function.
9291 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9293 Authentication support.
9295 * commands/password.c: New file.
9296 * conf/common.rmk (pkglib_MODULES): Add password.mod.
9297 (password_mod_SOURCES): New variable.
9298 (password_mod_CFLAGS): Likewise.
9299 (password_mod_LDFLAGS): Likewise.
9300 (normal_mod_SOURCES): Add normal/auth.c.
9301 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
9303 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9304 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9305 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9307 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9308 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9309 * include/grub/auth.h: New file.
9310 * include/grub/err.h (grub_err_t): New enum value
9311 GRUB_ERR_ACCESS_DENIED.
9312 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
9314 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
9315 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
9317 * normal/auth.c: New file.
9318 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
9319 (grub_cmdline_run): Don't allow to go to command line without
9321 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
9322 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
9323 menuentry without superuser rights.
9324 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
9325 user isn't a superuser.
9327 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9329 Save space by inlining misc.c functions.
9331 * kern/misc.c (grub_iswordseparator): Made static.
9332 * kern/misc.c (grub_strcat): Moved from here ...
9333 * include/grub/misc.h (grub_strcat): ... here. Inlined.
9334 * kern/misc.c (grub_strncat): Moved from here ...
9335 * include/grub/misc.h (grub_strncat): ... here. Inlined.
9336 * kern/misc.c (grub_strcasecmp): Moved from here ...
9337 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
9338 * kern/misc.c (grub_strncasecmp): Moved from here ...
9339 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
9340 * kern/misc.c (grub_isalpha): Moved from here ...
9341 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
9342 * kern/misc.c (grub_isdigit): Moved from here ...
9343 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
9344 * kern/misc.c (grub_isgraph): Moved from here ...
9345 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
9346 * kern/misc.c (grub_tolower): Moved from here ...
9347 * include/grub/misc.h (grub_tolower): ... here. Inlined.
9349 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9351 * script/sh/function.c (grub_script_function_find): Cut error message
9352 not to flood terminal.
9353 * script/sh/lexer.c (grub_script_yylex): Remove command line length
9355 * script/sh/script.c (grub_script_arg_add): Duplicate string.
9357 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
9359 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
9360 `report' grub_uint8_t *.
9361 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
9362 Use a 50-millisecond timeout rather than just repeating
9363 grub_usb_keyboard_getreport 50 times.
9364 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
9366 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9368 Rename *_partition_map to part_*
9370 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
9371 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
9372 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
9373 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
9375 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
9377 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
9378 * util/grub-probe.c (probe_partmap): Don't transform partition name
9381 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9383 Fix OpenBSD and NetBSD support.
9385 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
9386 memory address conflict.
9387 (OPENBSD_MMAP_ACPI): New definition.
9388 (OPENBSD_MMAP_NVS): Likewise.
9389 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
9390 and OPENBSD_MMAP_NVS.
9391 Add memory map terminator
9392 Explicit cast when calling grub_unix_real_boot.
9393 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
9395 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9397 Let user specify NetBSD root device.
9399 * loader/i386/bsd.c (netbsd_root): New variable.
9400 (netbsd_opts): New option 'root'.
9401 (NETBSD_ROOT_ARG): New macro.
9402 (grub_netbsd_boot): Use 'netbsd_root'.
9403 (grub_bsd_unload): Free 'netbsd_root'.
9404 (grub_cmd_netbsd): Fill 'netbsd_root'.
9406 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9408 Support for 64-bit NetBSD.
9410 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
9411 point when booting non-FreeBSD.
9413 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9415 Support --no-smp and --no-acpi for NetBSD.
9417 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
9418 (NETBSD_AB_NOACPI): Likewise.
9419 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
9420 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
9422 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9424 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
9426 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
9427 errors. Call grub_error when needed.
9429 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9431 * commands/search.c (search_fs): Try searching without autoload first.
9432 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
9433 filesystem module explicitly for faster booting.
9435 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9437 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
9439 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9441 * util/grub.d/30_os-prober.in: Disable os-prober if
9442 `GRUB_DISABLE_OS_PROBER' was set to true.
9444 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
9446 * partmap/pc.c: Rename to ...
9447 * partmap/msdos.c: ... this. Update all users.
9448 (grub_pc_partition_map): Rename to ...
9449 (grub_msdos_partition_map): ... this. Update all users.
9451 * parttool/pcpart.c: Rename to ...
9452 * parttool/msdospart.c: ... this. Update all users.
9454 * include/grub/pc_partition.h: Rename to ...
9455 * include/grub/msdos_partition.h: ... this. Update all users.
9456 (grub_pc_partition_bsd_entry): Rename to ...
9457 (grub_msdos_partition_bsd_entry): ... this. Update all users.
9458 (grub_pc_partition_disk_label): Rename to ...
9459 (grub_msdos_partition_disk_label): ... this. Update all users.
9460 (grub_pc_partition_entry): Rename to ...
9461 (grub_msdos_partition_entry): ... this. Update all users.
9462 (grub_pc_partition_mbr): Rename to ...
9463 (grub_msdos_partition_mbr): ... this. Update all users.
9464 (grub_pc_partition): Rename to ...
9465 (grub_msdos_partition): ... this. Update all users.
9466 (grub_pc_partition_is_empty): Rename to ...
9467 (grub_msdos_partition_is_empty): ... this. Update all users.
9468 (grub_pc_partition_is_extended): Rename to ...
9469 (grub_msdos_partition_is_extended): ... this. Update all users.
9470 (grub_pc_partition_is_bsd): Rename to ...
9471 (grub_msdos_partition_is_bsd): ... this. Update all users.
9473 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
9474 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
9475 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
9476 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
9477 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
9478 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
9479 (gpt_mod_LDFLAGS): Rename to ...
9480 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
9481 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
9482 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
9483 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
9484 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
9485 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
9486 (part_gpt_mod_LDFLAGS): ... this.
9487 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
9488 `pcpart.mod' to `msdospart.mod'.
9489 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
9491 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9492 (msdospart_mod_LDFLAGS): ... this.
9494 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9496 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9497 (openbsd_opts): Likewise.
9498 (netbsd_opts): Likewise.
9499 (freebsd_flags): Added 0 terminator.
9500 (openbsd_flags): Likewise.
9501 (netbsd_flags): Likewise.
9502 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9503 (grub_cmd_freebsd): Transformed into extended command.
9504 (grub_cmd_openbsd): Likewise.
9505 (grub_cmd_netbsd): Likewise.
9506 (cmd_freebsd): Changed type to grub_extcmd_t.
9507 (cmd_openbsd): Likewise.
9508 (cmd_netbsd): Likewise.
9509 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9510 grub_cmd_openbsd as extended commands.
9511 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9512 cmd_netbsd and cmd_openbsd
9514 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9516 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9518 2009-08-21 Pavel Roskin <proski@gnu.org>
9520 * Makefile.in (install-local): When checking if a file is in the
9521 build directory, use "test -e" to detect symlinks.
9523 * Makefile.in (install-local): Remove all files in
9524 $(DESTDIR)$(pkglibdir) before installing new files there.
9526 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9528 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9531 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9533 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9534 explicitly specified by the user.
9536 2009-08-18 Pavel Roskin <proski@gnu.org>
9538 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9539 grub_uint8_t pointer for data.
9540 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9542 * video/fb/fbutil.c: Remove unnecessary casts.
9544 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9548 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9549 (grub_vbe_set_video_mode): Save active mode info
9550 only after setting the mode.
9551 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9554 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9556 Rename variables for clarity.
9558 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9559 (active_vbe_mode_info): ... this. All users updated.
9560 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9562 (initial_mode): Rename to ...
9563 (initial_vbe_mode): ... this. All users updated.
9564 (mode_in_use): Rename to ..
9565 (vbe_mode_in_use): ... this. All users updated.
9566 (mode_list): Rename to ..
9567 (vbe_mode_list): ... this. All users updated.
9568 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9569 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9570 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9571 'mode_list_size' to 'vbe_mode_list_size'.
9572 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9573 'best_mode_info' to 'best_vbe_mode_info' and
9574 'best_mode' to 'best_vbe_mode'
9576 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9578 Remove duplicate grub_video_fb_get_video_ptr.
9580 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9581 (grub_video_fb_get_video_ptr): ... this.
9582 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9583 * video/fb/fbutil.c: Add comment about addressing.
9584 (get_data_ptr): Rename to ...
9585 (grub_video_fb_get_video_ptr): ... this. All users updated.
9586 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9588 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9590 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9591 grub_dprintf() that was just added.
9593 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9595 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9596 (DEFAULT_VIDEO_MODE): Remove macros.
9597 (grub_linux_boot): Remove assumption that Linux has FB support,
9598 and use "text" as default video mode.
9600 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9602 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9604 * fs/fat.c (grub_fat_read_data): Likewise.
9606 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9608 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9610 (grub_module): Likewise.
9612 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9614 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9615 mbi->cmdline but free playground.
9617 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9619 Handle group offset on UFS1.
9621 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9622 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9624 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9626 Split ufs.mod into ufs1.mod and ufs2.mod.
9628 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9629 (grub_fstest_SOURCES): Likewise.
9630 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9631 (ufs_mod_SOURCES): Remove.
9632 (ufs_mod_CFLAGS): Likewise.
9633 (ufs_mod_LDFLAGS): Likewise.
9634 (ufs1_mod_SOURCES): New variable.
9635 (ufs1_mod_CFLAGS): Likewise.
9636 (ufs1_mod_LDFLAGS): Likewise.
9637 (ufs2_mod_SOURCES): New variable.
9638 (ufs2_mod_CFLAGS): Likewise.
9639 (ufs2_mod_LDFLAGS): Likewise.
9640 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9641 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9643 (grub_emu_SOURCES): Likewise.
9644 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9645 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9646 (grub_setup_SOURCES): Likewise.
9647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9648 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9649 (grub_setup_SOURCES): Likewise.
9650 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9652 * fs/ufs2.c: New file.
9653 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9655 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9659 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9660 subsystem at the end.
9661 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9662 (video_fb_mod_SOURCES): New variable.
9663 (video_fb_mod_CFLAGS): Likewise.
9664 (video_fb_mod_LDFLAGS): Likewise.
9665 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9666 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9667 * video/i386/pc/vbeblit.c: Moved from here ...
9668 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9669 * video/i386/pc/vbefill.c: Moved from here ...
9670 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9671 * video/i386/pc/vbeutil.c: Moved from here ...
9672 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9673 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9674 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9675 * include/grub/i386/pc/vbefill.h: Moved from here ...
9676 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9677 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9678 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9679 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9680 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9681 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9682 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9683 (grub_video_adapter): Added 'get_info_and_fini'.
9684 (grub_video_get_info_and_fini): New prototype.
9685 (grub_video_set_mode): make modestring const char *.
9686 * loader/i386/linux.c (grub_linux_setup_video): Use
9687 grub_video_get_info_and_fini.
9688 (grub_linux_boot): Move modesetting just before booting.
9689 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9690 grub_video_get_info_and_fini.
9691 * video/i386/pc/vbe.c: Moved framebuffer part ...
9692 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9693 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9694 grub_video_fbstd_colors and grub_video_fb_set_palette.
9695 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9697 (grub_video_vbe_fini): Use grub_video_fb_fini.
9698 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9699 render_target and use grub_video_fb_set_active_render_target and
9700 grub_video_fb_set_palette.
9701 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9702 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9703 (grub_video_vbe_adapter): Use framebuffer.
9704 * video/video.c (grub_video_get_info_and_fini): New function.
9705 (grub_video_set_mode): Make modestring const char *.
9706 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9707 values are already initialised.
9709 2009-08-14 Pavel Roskin <proski@gnu.org>
9711 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9713 * boot/i386/pc/diskboot.S: Likewise.
9714 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9715 sectors allow compilation on MacOSX.
9716 * conf/i386-pc.rmk: Enable unconditional compilation of
9719 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9721 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9722 * util/grub.d/00_header.in: Enter interruptible sleep if
9723 GRUB_HIDDEN_TIMEOUT is set.
9725 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9727 * include/grub/symbol.h: Add the LOCAL macro.
9728 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9731 2009-08-13 Pavel Roskin <proski@gnu.org>
9733 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9734 any modern compilers we support.
9736 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9737 Use local labels starting with "L_" so that Apple assembler
9738 knows they are local.
9740 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9742 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9743 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9744 (bsd_kernel_types): ... this enum.
9746 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9747 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9748 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9750 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9751 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9752 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9755 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9757 * util/grub-dumpdevtree: Moved from here ...
9758 * util/i386/efi/grub-dumpdevtree: ... to here.
9759 (hexify): New function. Converts a string to its hex version.
9760 Generate hex versions of "efi" and "device-properties" by calling
9761 hexify() on the ASCII strings rather than by hardcoding numbers.
9763 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9765 * fs/jfs.c: Update copyright year.
9767 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9769 * util/grub.d/00_header.in: Fix a comment.
9770 * util/grub.d/10_linux.in: Likewise.
9771 * util/grub.d/10_windows.in: Likewise.
9772 * util/grub.d/10_hurd.in: Likewise.
9774 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9776 * util/grub-mkconfig.in: Allow the user to specify the used font
9779 2009-08-08 Pavel Roskin <proski@gnu.org>
9781 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9782 available, xfs.mod needs it now.
9784 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9785 the "g" modifier in sed when the intention is to strip something
9786 once. This fixes comparison of kernels with multiple dashes.
9788 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9789 on it. Add missing space before closing bracket. Fix
9790 misleading formatting.
9792 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9794 * docs/grub.texi: Major overhaul. Remove all sections that are
9795 specific to GRUB Legacy, or mostly composed of Legacy-specific
9798 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9800 * docs/version.texi: New file. Provides version information for
9803 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9805 * docs/grub.texi: Update CVS information to SVN.
9806 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9808 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9810 * util/grub-mkconfig.in: Remove a wrong `fi'.
9812 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9814 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9815 (grub_jfs_uuid): New function.
9816 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9818 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9820 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9822 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9823 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9825 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9827 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9828 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9831 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9832 not just "vmlinu[zx]".
9834 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9837 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9838 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9841 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9843 * util/grub.d/10_freebsd.in: Use an absolute device path for
9844 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9846 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9848 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9849 handling of multiple abstraction modules.
9851 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9853 Fix a bug resulting in black screen when loading Linux using a
9856 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9859 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9860 (grub_vbe_bios_getset_dac_palette_width): New function.
9861 (grub_vbe_bios_get_dac_palette_width)
9862 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9863 grub_vbe_bios_getset_dac_palette_width()).
9865 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9866 check for return status.
9867 (grub_vbe_get_video_mode_info): When getting information for a packed
9868 mode (<= 8 bpp), obtain DAC palette width using
9869 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9870 {red,green,blue}_mark_size.
9872 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9874 * commands/search.c (options): Fix help output to match actual code.
9876 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9878 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9881 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9883 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9886 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9888 Support Apple partition map with sector size different from 512 bytes.
9890 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9891 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9892 and 'apart.partmap_size'.
9894 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9895 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9899 * commands/i386/cpuid.c (options): New variable.
9900 (grub_cmd_cpuid): Return real error.
9901 (GRUB_MOD_INIT(cpuid)): Declare options.
9903 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9905 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9908 2009-07-31 Bean <bean123ch@gmail.com>
9910 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9912 (grub_fshelp_node): Move inode field to the end.
9913 (grub_xfs_data): Remove inode field.
9914 (grub_xfs_inode_block): Calculate inode size using sblock.
9915 (grub_xfs_inode_offset): Likewise.
9916 (grub_xfs_read_inode): Calculate inode size using sblock.
9917 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9918 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9919 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9920 to match inode size.
9921 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9922 not accessible when data is null.
9923 (grub_xfs_open): Likewise.
9925 2009-07-31 Bean <bean123ch@gmail.com>
9927 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9928 Don't change pv->disk if it's already set.
9930 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9931 (grub_raid_register): ... here.
9932 (grub_raid_rescan): Removed.
9934 * include/grub/raid.h (grub_raid_rescan): Removed.
9936 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9937 (fstest): Replace grub_raid_rescan with module fini function followed
9940 * util/grub-probe.c: Add include file <grub/raid.h>.
9941 (probe_raid_level): New function.
9942 (probe): Detect abstraction by walking the disk device, support two
9943 level of abstraction (LVM on RAID) when detecting partition map.
9945 2009-07-31 Pavel Roskin <proski@gnu.org>
9947 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9948 to grub_zalloc(), it was erroneous.
9949 Reported by Bean <bean123ch@gmail.com>
9951 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9953 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9954 embedding zone, not only the first one.
9956 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9958 * term/gfxterm.c (clear_char): New function.
9959 (grub_virtual_screen_setup): Use clear_char.
9960 (scroll_up): Likewise.
9961 (grub_virtual_screen_cls): Likewise.
9963 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9965 * util/deviceiter.c (get_acceleraid_disk_name): New static
9967 (grub_util_iterate_devices): Handle Accelraid devices.
9968 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9970 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9972 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9973 separator for the suggested gfxpayload string (';' collides with the
9974 parser and needs escaping).
9976 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9978 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9979 Clear direction flag before jumping to OS.
9980 (grub_multiboot2_real_boot): Likewise.
9982 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9984 * util/i386/pc/grub-install: Fix parsing of --disk-module
9987 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9989 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9992 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9994 * util/grub-mkconfig.in (package_version): New variable.
9995 Use it do display the version.
9997 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9999 * kern/file.c (grub_file_open): Revert to previous check with
10002 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10004 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
10005 from help line. It's out of sync with code.
10007 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10009 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
10010 entries on failed boot.
10012 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
10014 * kern/file.c (grub_file_open): Fix an error check.
10016 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
10018 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
10019 partition map couldn't be identified.
10021 2009-07-23 Pavel Roskin <proski@gnu.org>
10023 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
10024 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
10025 case of little endian words becomes just an optimization.
10026 Respect const modifier.
10027 (md5_final): Use code that doesn't depend on endianness.
10029 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
10030 to avoid loss of upper bits if align is unsigned and shorter
10033 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10035 UUID support for UFS
10037 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
10038 (grub_ufs_uuid): New function.
10039 (grub_ufs_fs): add .uuid
10041 2009-07-21 Pavel Roskin <proski@gnu.org>
10043 * kern/dl.c (grub_dl_check_header): Make static.
10045 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
10047 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
10048 add drivemap for Vista. It breaks Windows 7.
10050 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10052 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
10055 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10059 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
10060 (grub_fstest_SOURCES): Likewise.
10061 (pkglib_MODULES): Add befs.mod.
10062 (befs_mod_SOURCES): New variable.
10063 (befs_mod_CFLAGS): Likewise.
10064 (befs_mod_LDFLAGS): Likewise.
10065 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10066 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10067 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10068 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10069 (grub_setup_SOURCES): Likewise.
10070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10071 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10072 (grub_setup_SOURCES): Likewise.
10073 * fs/befs.c: New file.
10074 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
10075 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
10076 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
10077 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
10078 (B_KEY_INDEX_ALIGN): New declaration.
10079 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
10080 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
10081 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
10082 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
10083 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
10084 (grub_afs_mount) [MODE_BFS]: Likewise.
10085 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
10086 (grub_afs_fs): Use GRUB_AFS_FSNAME
10087 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
10088 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
10089 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
10090 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
10092 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
10094 * util/getroot.c (find_root_device): Add support for MacOSX.
10095 * util/hostdisk.c: Likewise.
10097 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10099 * font/font.c (find_glyph): Check whether a font is present to avoid
10100 segmentation fault.
10102 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
10104 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
10106 2009-07-20 Pavel Roskin <proski@gnu.org>
10108 * configure.ac: Trim excessively wordy excuses.
10110 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10112 Add symlink, mtime and label support to AtheFS.
10114 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
10115 (grub_afs_iterate_dir): Handle symlinks.
10116 (grub_afs_open): Use grub_afs_read_symlink.
10117 (grub_afs_dir): Likewise.
10119 (grub_afs_label): New function.
10120 (grub_afs_fs): Add grub_afs_label.
10121 (grub_afs_read_symlink): New function.
10123 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10125 Fix AtheFS support.
10127 * fs/afs.c: Fix comments style.
10128 (grub_afs_blockrun): Declare as packed.
10129 (grub_afs_datastream): Likewise.
10130 (grub_afs_bnode): Likewise.
10131 (grub_afs_btree): Likewise.
10132 (grub_afs_sblock): Likewise.
10133 Declare `name' as char.
10134 (grub_afs_inode): Declare as packed.
10135 Change void *vnode to grub_uint32_t unused.
10136 (grub_afs_iterate_dir): Check that key_size is positive.
10137 (grub_afs_mount): Don't read superblock twice.
10138 (grub_afs_dir): Don't free node in case of error,
10139 grub_fshelp_find_file already handles this.
10140 (grub_afs_open): Likewise.
10142 2009-07-19 Pavel Roskin <proski@gnu.org>
10144 * Makefile.in: Remove LIBLZO and enable_lzo.
10145 * conf/i386-pc.rmk: Remove lzo support.
10146 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
10147 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
10149 * kern/i386/pc/lzo1x.S: Remove.
10150 * kern/i386/pc/startup.S: Remove lzo support.
10151 * util/i386/pc/grub-mkimage.c: Likewise.
10153 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
10155 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
10156 * fs/xfs.c (grub_xfs_dir): Likewise.
10157 * fs/afs.c (grub_afs_dir): Likewise.
10158 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10159 (grub_iso9660_open): Likewise.
10160 * fs/jfs.c (grub_jfs_open): Likewise.
10161 * fs/ext2.c (grub_ext2_dir): Likewise.
10162 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
10163 * script/sh/lexer.c (grub_script_yylex): Likewise.
10165 2009-07-16 Pavel Roskin <proski@gnu.org>
10167 * configure.ac: Never add "-c" to CFLAGS.
10169 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
10171 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
10172 grub_cv_cc_efiemu should be used.
10174 * configure.ac: Typo fixes.
10176 * kern/mm.c (grub_zalloc): New function.
10177 (grub_debug_zalloc): Likewise.
10178 * include/grub/mm.h: Declare grub_zalloc() and
10179 grub_debug_zalloc().
10180 * util/misc.c (grub_zalloc): New function.
10181 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
10182 instead of grub_malloc(), remove unneeded initializations.
10183 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
10184 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
10185 * commands/parttool.c (grub_cmd_parttool): Likewise.
10186 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10187 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
10188 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
10189 * disk/usbms.c (grub_usbms_finddevs): Likewise.
10190 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
10191 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
10192 (grub_cmd_efiemu_pnvram): Likewise.
10193 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
10194 * fs/iso9660.c (grub_iso9660_mount): Likewise.
10195 (grub_iso9660_iterate_dir): Likewise.
10196 * fs/jfs.c (grub_jfs_opendir): Likewise.
10197 * fs/ntfs.c (list_file): Likewise.
10198 (grub_ntfs_mount): Likewise.
10199 * kern/disk.c (grub_disk_open): Likewise.
10200 * kern/dl.c (grub_dl_load_core): Likewise.
10201 * kern/elf.c (grub_elf_file): Likewise.
10202 * kern/env.c (grub_env_context_open): Likewise.
10203 (grub_env_set): Likewise.
10204 (grub_env_set_data_slot): Likewise.
10205 * kern/file.c (grub_file_open): Likewise.
10206 * kern/fs.c (grub_fs_blocklist_open): Likewise.
10207 * loader/i386/multiboot.c (grub_module): Likewise.
10208 * loader/xnu.c (grub_xnu_create_key): Likewise.
10209 (grub_xnu_create_value): Likewise.
10210 * normal/main.c (grub_normal_add_menu_entry): Likewise.
10211 (read_config_file): Likewise.
10212 * normal/menu_entry.c (make_screen): Likewise.
10213 * partmap/sun.c (sun_partition_map_iterate): Likewise.
10214 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
10215 * script/sh/script.c (grub_script_parse): Likewise.
10216 * video/bitmap.c (grub_video_bitmap_create): Likewise.
10217 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10218 * video/readers/png.c (grub_png_output_byte): Likewise.
10219 (grub_video_reader_png): Likewise.
10221 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10223 Enable all targets that can be built by default
10225 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
10226 grub-mkfont and grub-fstest if they can be built
10228 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10230 Fix hang and segmentation fault in grub-emu-usb
10232 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
10233 * util/usb.c (grub_libusb_devices): likewise
10234 (grub_libusb_init): rename to ...
10235 (GRUB_MOD_INIT (libusb)):...this
10236 (grub_libusb_fini): rename to ..
10237 (GRUB_MOD_FINI (libusb)):...this
10238 * disk/usbms.c (grub_usbms_transfer): fix retry logic
10239 * include/grub/disk.h (grub_raid_init): removed, it's useless
10240 (grub_raid_fini): likewise
10241 (grub_lvm_init): likewise
10242 (grub_lvm_fini): likewise
10243 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
10246 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10250 * Makefile.in (LIBUSB): new macro
10251 * genmk.rb (Utility/print_tail): new method
10252 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
10253 (top level): call util.print_tail at the end.
10255 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10257 Make FreeBSD accept zpool.cache
10259 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
10260 type is /boot/zfs/zpool.cache
10262 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10266 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
10267 correct wrong typedef
10268 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
10270 2009-07-15 Pavel Roskin <proski@gnu.org>
10272 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
10273 * kern/disk.c (struct grub_disk_cache): Likewise.
10275 * commands/probe.c (options): Typo fix.
10277 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
10278 Increase to 0x5a to accommodate FAT32. Adjust other offsets
10280 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
10282 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
10283 the end of "Error" to make the message more readable.
10285 * boot/i386/pc/boot.S (kernel_segment): Remove.
10286 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
10289 * boot/i386/pc/boot.S (boot_version): Remove.
10290 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10293 * include/grub/i386/pc/boot.h: Sort all offsets.
10294 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
10295 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
10296 * boot/i386/pc/boot.S: Assert location of every offset listed in
10297 include/grub/i386/pc/boot.h.
10299 2009-07-13 Pavel Roskin <proski@gnu.org>
10301 * include/grub/i386/coreboot/machine.h: Rename
10302 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
10303 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
10304 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
10306 * kern/dl.c: Force native word size to suppress warnings when
10307 compiling grub-emu.
10309 * kern/device.c (grub_device_iterate): Change struct part_ent to
10310 hold the name, not a pointer to it. Use one grub_malloc() per
10311 partition, not two. Free partition_name if grub_malloc() fails.
10312 Set ents to NULL only before grub_partition_iterate() is called.
10314 2009-07-11 Bean <bean123ch@gmail.com>
10316 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
10319 2009-07-10 Bean <bean123ch@gmail.com>
10320 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
10322 * kern/ieee1275/openfw.c (grub_children_iterate)
10323 (grub_devalias_iterate): Fix size evaluation for property or path
10324 strings, which was broken since r2132.
10326 2009-07-07 Pavel Roskin <proski@gnu.org>
10328 * commands/search.c (search_file): Merge into ...
10329 (search_fs): ... this. Accept search type as argument.
10330 (grub_cmd_search): Pass search type to search_fs().
10332 * include/grub/util/console.h: New file.
10333 * util/console.c: Use it instead of grub/machine/console.h.
10334 * util/grub-emu.c: Likewise.
10336 * lib/arg.c (find_long_option): Remove.
10337 (find_long): Add `len' argument, make `s' const char *.
10338 (grub_arg_parse): Parse long options in place, not in a
10341 2009-07-06 Pavel Roskin <proski@gnu.org>
10343 * commands/search.c (search_fs): Fix potential NULL pointer
10346 * commands/search.c (search_fs): Replace QUID macro with quid_fn
10349 2009-07-06 Daniel Mierswa <impulze@impulze.org>
10351 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
10354 2009-07-05 Pavel Roskin <proski@gnu.org>
10356 * include/grub/i386/linux.h (struct linux_kernel_params):
10357 Restore padding3, it's still needed.
10359 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
10361 * util/osdetect.lua: Likewise.
10363 2009-07-05 Bean <bean123ch@gmail.com>
10365 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
10367 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
10368 (grub_lua_getenv): Likewise.
10369 (grub_lua_setenv): Likewise.
10370 (save_errno): New function.
10371 (push_result): Likewise.
10372 (grub_lua_enum_device): Likewise.
10373 (grub_lua_enum_file): Likewise.
10374 (grub_lua_file_open): Likewise.
10375 (grub_lua_file_close): Likewise.
10376 (grub_lua_file_seek): Likewise.
10377 (grub_lua_file_read): Likewise.
10378 (grub_lua_file_getline): Likewise.
10379 (grub_lua_file_getsize): Likewise.
10380 (grub_lua_file_getpos): Likewise.
10381 (grub_lua_file_eof): Likewise.
10382 (grub_lua_file_exist): Likewise.
10383 (grub_lua_add_menu): Likewise.
10385 * script/lua/grub_lua.h (isupper): New inline function.
10386 (islower): Likewise.
10387 (ispunct): Likewise.
10388 (isxdigit): Likewise.
10389 (strcspn): Change to normal function.
10390 (strpbkr): New function declaration.
10391 (memchr): Likewise.
10393 * script/lua/grub_main.c (scan_str): New function.
10394 (strcspn): Likewise.
10395 (strpbrk): Likewise.
10396 (memchr): Likewise.
10398 * script/lua/linit.c (lualibs): Enable the string library.
10400 * util/osdetect.lua: New file.
10402 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
10404 * include/grub/i386/linux.h (struct linux_kernel_params): Add
10405 `capabilities' member.
10407 2009-07-02 Pavel Roskin <proski@gnu.org>
10409 * genparttoollist.sh: Add missing newline at the end.
10411 2009-07-01 Pavel Roskin <proski@gnu.org>
10413 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
10415 * util/hostdisk.c (open_device): Remove `const' from
10416 `sysctl_size', as sysctlbyname() can change it (in this case it
10417 doesn't actually happen).
10419 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
10420 using signed long int constants.
10422 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
10423 constant to avoid a warning on FreeBSD.
10425 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
10428 * Makefile.in: Install include/grub/machine symlink.
10430 * Makefile.in: When installing symlinks, use "cp -fR", which
10431 works on FreeBSD and MacOSX.
10432 From Yves Blusseau <cl7m42e02@sneakemail.com>
10434 * kern/dl.c (grub_dl_resolve_symbol): Make static.
10435 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
10437 * util/misc.c: Move grub_reboot() and grub_halt() ...
10438 * util/grub-emu.c: ... here. Make main_env static.
10439 * include/grub/util/misc.h: Remove main_env.
10441 * kern/mm.c: Use correct format to print size_t.
10443 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
10444 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
10445 * kern/powerpc/dl.c: Likewise.
10446 * kern/sparc64/dl.c: Likewise.
10447 * kern/x86_64/dl.c: Likewise.
10449 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10451 Fix grub-emu build on sparc64-ieee1275.
10453 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
10454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
10456 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10458 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
10459 (grub_reboot, grub_halt): New functions.
10461 * util/i386/pc/misc.c: Delete. Update all users.
10462 * util/sparc64/ieee1275/misc.c: Likewise.
10463 * util/powerpc/ieee1275/misc.c: Likewise.
10465 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10467 * conf/i386.rmk (setjmp_mod_SOURCES)
10468 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
10469 * conf/common.rmk (setjmp_mod_SOURCES)
10470 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
10471 to use $(target_cpu).
10472 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
10473 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
10474 * conf/powerpc-ieee1275.rmk: Likewise.
10475 * conf/sparc64-ieee1275.rmk: Likewise.
10477 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
10478 $(target_cpu) for kern/$(target_cpu)/dl.c.
10479 * conf/i386-efi.rmk: Likewise.
10480 * conf/i386-ieee1275.rmk: Likewise.
10481 * conf/x86_64-efi.rmk: Likewise.
10482 * conf/i386-coreboot.rmk: Likewise.
10483 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
10484 $(target_cpu) for kern/$(target_cpu)/dl.c and for
10485 kern/$(target_cpu)/cache.S.
10486 * conf/sparc64-ieee1275.rmk: Likewise.
10488 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10490 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10491 type to `grub_uint8_t', and adjust `padding9' accordingly.
10493 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10495 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10497 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10498 assembly in final jump, using register constraints.
10500 (grub_linux_boot): For text mode, initialize `have_vga' using
10501 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10503 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10504 right before the final jump.
10506 Set `video_mode' to 0x3.
10508 Document initialization of `video_page', `video_mode' and
10511 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10513 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10514 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
10515 and set GRUB_LINUX_FLAG_QUIET appropriately.
10517 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10519 Fix build on Debian / sparc.
10521 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10523 2009-06-28 Pavel Roskin <proski@gnu.org>
10525 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10528 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10530 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10532 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10535 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10539 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10540 file can't be opened. grub_file_open() is already supposed to set
10541 grub_errno / grub_errmsg appropriately.
10542 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10544 2009-06-27 Pavel Roskin <proski@gnu.org>
10545 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10547 * include/grub/dl.h: Include grub/elf.h.
10548 (struct grub_dl): Add symtab field.
10549 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10550 GRUB_MODULES_MACHINE_READONLY.
10551 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10552 of the header for read-only modules.
10553 (grub_dl_unload): Free mod->symtab for read-only modules.
10554 * kern/i386/dl.c: Use mod->symtab.
10555 * kern/powerpc/dl.c: Likewise.
10556 * kern/sparc64/dl.c: Likewise.
10557 * kern/x86_64/dl.c: Likewise.
10559 * conf/i386-qemu.rmk: New file.
10560 * kern/i386/qemu/startup.S: Likewise.
10561 * kern/i386/qemu/mmap.c: Likewise.
10562 * boot/i386/qemu/boot.S: Likewise.
10563 * include/grub/i386/qemu/time.h: Likewise.
10564 * include/grub/i386/qemu/serial.h: Likewise.
10565 * include/grub/i386/qemu/kernel.h: Likewise.
10566 * include/grub/i386/qemu/console.h: Likewise.
10567 * include/grub/i386/qemu/boot.h: Likewise.
10568 * include/grub/i386/qemu/init.h: Likewise.
10569 * include/grub/i386/qemu/machine.h: Likewise.
10570 * include/grub/i386/qemu/loader.h: Likewise.
10571 * include/grub/i386/qemu/memory.h: Likewise.
10573 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10574 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10575 [qemu] (pkglib_IMAGES): Add `boot.img'.
10576 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10577 [qemu] (boot_img_FORMAT): New variables.
10578 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10579 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10580 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10581 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10582 [qemu] (kernel_img_FORMAT): New variables.
10584 * configure.ac: Recognise `i386-qemu'.
10586 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10587 (for no compression).
10588 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10589 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10590 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10591 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10594 2009-06-27 Pavel Roskin <proski@gnu.org>
10596 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10598 * efiemu/prepare32.c: Likewise.
10599 * efiemu/prepare64.c: Likewise.
10601 2009-06-26 Pavel Roskin <proski@gnu.org>
10603 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10604 * include/grub/elf.h: Define symbols without "32" or "64" based
10605 on GRUB_TARGET_WORDSIZE.
10606 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10607 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10609 * efiemu/loadcore64.c: Likewise.
10610 * loader/i386/bsd32.c: Likewise.
10611 * loader/i386/bsd64.c: Likewise.
10612 * kern/dl.c: Remove own ELF definitions.
10613 * util/i386/efi/grub-mkimage.c: Likewise.
10615 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10617 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10618 segment 0x0 unconditionally, because the reference generated by
10619 GAS is an absolute address.
10621 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10623 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10624 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10626 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10628 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10629 indexes. Check for -f explicitly.
10630 (search_file): Improve error message.
10631 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10633 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10635 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10636 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10638 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10640 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10641 * conf/i386-ieee1275.rmk: Likewise.
10642 * conf/i386-coreboot.rmk: Likewise.
10644 * kern/i386/pc/startup.S (grub_stop): Remove function.
10645 * kern/i386/ieee1275/startup.S: Likewise.
10646 * kern/i386/coreboot/startup.S: Likewise.
10647 * kern/i386/misc.S (grub_stop): New function.
10649 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10651 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10652 * kern/i386/realmode.S (real_to_prot): ... to here.
10654 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10656 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10658 (kernel_elf_SOURCES): Rename to ...
10659 (kernel_img_SOURCES): ... this.
10660 (kernel_elf_HEADERS): Rename to ...
10661 (kernel_img_HEADERS): ... this. Update all users.
10662 (kernel_elf_ASFLAGS): Rename to ...
10663 (kernel_img_ASFLAGS): ... this.
10664 (kernel_elf_CFLAGS): Rename to ...
10665 (kernel_img_CFLAGS): ... this.
10666 (kernel_elf_LDFLAGS): Rename to ...
10667 (kernel_img_LDFLAGS): ... this.
10668 * conf/i386-coreboot.rmk: Likewise.
10669 * conf/powerpc-ieee1275.rmk: Likewise.
10671 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10674 2009-06-21 Pavel Roskin <proski@gnu.org>
10676 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10677 to match nested functions.
10678 * loader/sparc64/ieee1275/linux.c: Likewise.
10680 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10682 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10684 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10685 all i386 platforms.
10687 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10689 Fix asm file handling on ELF, and remove workarounds.
10691 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10692 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10693 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10694 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10696 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10698 Load BSD ELF modules
10700 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10701 and loader/i386/bsd64.c
10702 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10703 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10704 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10705 (grub_freebsd_load_elfmodule32): New declaration
10706 (grub_freebsd_load_elfmoduleobj64): Likewise
10707 (grub_freebsd_load_elf_meta32): Likewise
10708 (grub_freebsd_load_elf_meta64): Likewise
10709 (grub_freebsd_add_meta): Likewise
10710 (grub_freebsd_add_meta_module): Likewise
10711 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10712 (grub_freebsd_add_meta_module): Likewise and move module-specific
10713 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10714 (grub_cmd_freebsd): Add elf-kernel specific parts
10715 based on grub_freebsd_add_meta_module
10716 (grub_cmd_freebsd_module): Add type parsing moved from
10717 grub_freebsd_add_meta_module
10718 (grub_cmd_freebsd_module_elf): New function
10719 (cmd_freebsd_module_elf): New variable
10720 (GRUB_MOD_INIT): Register freebsd_module_elf
10721 * loader/i386/bsd32.c: New file
10722 * loader/i386/bsd64.c: Likewise
10723 * loader/i386/bsdXX.c: Likewise
10724 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10725 (grub_elf64_load): Likewise
10726 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10728 (grub_elf64_load_hook_t): Likewise
10730 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10732 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10734 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10735 don't write a menu entry for recovery mode.
10737 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10739 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10740 after it's no longer needed.
10742 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10744 * include/grub/i386/loader.h (grub_linux_prot_size)
10745 (grub_linux_tmp_addr, grub_linux_real_addr)
10746 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10747 GRUB_MACHINE_PCBIOS.
10748 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10749 common grub_util_info() call to ...
10750 (generate_image): ... here.
10751 Fix use of uninitialized memory, comparison of signed with
10752 unsigned integers and memory leak.
10753 Remove bogus module address message.
10755 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10757 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10759 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10761 2009-06-19 Pavel Roskin <proski@gnu.org>
10763 * configure.ac: Remove stray AC_MSG_CHECKING.
10765 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10767 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10769 2009-06-18 Pavel Roskin <proski@gnu.org>
10771 * conf/common.rmk: Add fs_file.mod.
10772 * disk/fs_file.c: New file.
10773 * include/grub/disk.h (enum grub_disk_dev_id): Add
10774 GRUB_DISK_DEVICE_FILE_ID.
10776 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10778 Fix build with Apple's toolchain. Part 2
10780 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10783 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10785 Fix build with Apple's toolchain. Part 1
10787 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10789 * configure.ac: remove a leftover AC_MSG_RESULT
10790 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10793 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10797 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10798 (decomp_block): initialize ch
10799 use grub_memcpy instead of memcpy
10801 2009-06-17 Pavel Roskin <proski@gnu.org>
10803 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10804 version, use declarations needed to use vga_text as the startup
10807 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10808 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10810 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10811 and grub_at_keyboard_fini(), it's done on module load and
10814 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10816 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10817 file can't be found.
10818 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10820 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10822 Fix newline handling
10824 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10825 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10826 (grub_script_yylex): don't segfault on unterminated script
10827 newline terminates command and variable
10829 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10831 avoid double grub_adjust_range call. Bug reported by David Simner
10833 * kern/disk.c (grub_disk_write): change to raw disk access before
10836 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10838 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10839 spaces, for the benefit of help2man.
10840 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10842 2009-06-16 Pavel Roskin <proski@gnu.org>
10844 * kern/i386/halt.c: Include grub/machine/init.h.
10845 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10847 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10849 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10850 drivemap menuentry.
10852 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10854 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10857 2009-06-16 Pavel Roskin <proski@gnu.org>
10859 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10860 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10861 save %dx, we only need %dl and we never change it.
10862 * boot/i386/pc/cdboot.S: Don't set the root drive.
10863 * boot/i386/pc/pxeboot.S: Likewise.
10864 * include/grub/i386/pc/boot.h: Remove
10865 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10866 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10867 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10868 * kern/i386/pc/init.c (make_install_device): Remove references
10869 to grub_root_drive.
10870 * kern/i386/pc/startup.S: Likewise.
10871 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10873 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10877 * commands/xnu_uuid.c: new file
10878 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10879 (xnu_uuid_mod_SOURCES): new variable
10880 (xnu_uuid_mod_CFLAGS): likewise
10881 (xnu_uuid_mod_LDFLAGS): likewise
10882 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10883 * conf/i386-ieee1275.rmk: likewise
10884 * conf/i386-pc.rmk: likewise
10885 * conf/powerpc-ieee1275.rmk: likewise
10886 * conf/sparc64-ieee1275.rmk: likewise
10887 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10889 2009-06-16 Pavel Roskin <proski@gnu.org>
10891 * configure.ac: Avoid '==' in test command, it's not portable.
10893 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10897 * commands/probe.c: new file
10898 * conf/common.rmk (pkglib_MODULES): add probe.mod
10899 (probe_mod_SOURCES): new variable
10900 (probe_mod_CFLAGS): likewise
10901 (probe_mod_LDFLAGS): likewise
10902 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10903 * conf/i386-ieee1275.rmk: likewise
10904 * conf/i386-pc.rmk: likewise
10905 * conf/powerpc-ieee1275.rmk: likewise
10906 * conf/sparc64-ieee1275.rmk: likewise
10908 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10910 Fix handling of string like \"hello\" and "a
10913 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10914 (grub_script_yylex): fix parsing of quoting, escaping and newline
10916 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10918 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10921 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10923 * util/grub-mkconfig.in: Fix parsing of --output option.
10925 2009-06-12 Pavel Roskin <proski@gnu.org>
10927 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10928 genmk.rb don't need to be generated or installed.
10930 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10932 * commands/i386/pc/drivemap_int13h.S: add more comments
10934 2009-06-11 Pavel Roskin <proski@gnu.org>
10936 * Makefile.in (uninstall): Uninstall manuals.
10938 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10939 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10940 and update-grub_lib in two places.
10941 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10943 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10944 a compiler warning.
10946 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10947 `entry_lo' to fix variable shadowing.
10949 2009-06-11 Christian Franke <franke@computer.org>
10951 * kern/misc.c (__enable_execute_stack): Add missing return type
10952 to prevent gcc warning.
10954 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10956 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10958 2009-06-11 Pavel Roskin <proski@gnu.org>
10960 * Makefile.in: Don't rely on any scripts being executable.
10961 Always use $(SHELL) to run shell scripts.
10963 * configure.ac: Always define ___main if using -nostdlib. This
10964 fixes tests on Cygwin.
10966 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10970 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10971 is in bytes and not in blocks
10973 2009-06-11 Pavel Roskin <proski@gnu.org>
10975 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10978 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10980 * util/grub.d/30_os-prober.in: Fix a comment. Source
10981 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10982 to set the root device. Place drivemap command in the generated
10985 2009-06-11 Pavel Roskin <proski@gnu.org>
10987 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10988 have long been resolved.
10990 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10992 * util/grub.d/10_linux.in: Capitalise "Linux".
10994 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10996 2009-06-11 Pavel Roskin <proski@gnu.org>
10998 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10999 fix a gcc warning and ensure that the function won't ever exit.
11001 * kern/i386/ieee1275/init.c: Add missing prototype for
11002 grub_stop_floppy().
11004 * loader/ieee1275/multiboot2.c [__i386__]: Include
11005 grub/cpu/multiboot.h.
11007 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
11008 casts to short - they are not portable and cause warnings. Fix
11009 use of uninitialized values in input_buf. Use ARRAY_SIZE.
11011 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
11015 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
11017 (grub_get_root_biosnumber_saved): new variable
11018 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
11019 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
11020 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
11021 %dx after the call if necessary
11022 * conf/common.rmk (pkglib_MODULES): remove boot.mod
11023 (boot_mod_SOURCES): remove
11024 (boot_mod_CFLAGS): remove
11025 (boot_mod_LDFLAGS): remove
11026 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
11027 (boot_mod_SOURCES): new variable
11028 (boot_mod_CFLAGS): likewise
11029 (boot_mod_LDFLAGS): likewise
11030 * conf/i386-efi.rmk: likewise
11031 * conf/i386-ieee1275.rmk: likewise
11032 * conf/i386-pc.rmk: likewise
11033 * conf/powerpc-ieee1275.rmk: likewise
11034 * conf/sparc64-ieee1275.rmk: likewise
11035 * conf/x86_64-efi.rmk: likewise
11036 * include/grub/i386/pc/biosnum.h: new file
11037 * lib/i386/pc/biosnum.c: likewise
11038 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
11039 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
11040 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
11042 2009-06-10 Pavel Roskin <proski@gnu.org>
11044 * io/gzio.c (test_header): Don't reuse one buffer for all data.
11045 Use separate variables. Read only the file size at the end, but
11046 not the checksum that we don't use.
11048 * kern/file.c (grub_file_read): Use void pointer for the buffer.
11049 Adjust all callers.
11051 * kern/ieee1275/openfw.c: Remove libc includes.
11052 * kern/ieee1275/cmain.c: Likewise.
11053 * include/grub/ieee1275/ieee1275.h: Likewise.
11055 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
11058 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11060 * Makefile.in: Remove all trailing whitespace.
11061 * conf/i386-pc.rmk: Likewise.
11062 * conf/powerpc-ieee1275.rmk: Likewise.
11063 * conf/sparc64-ieee1275.rmk: Likewise.
11064 * docs/grub.texi: Likewise.
11065 * docs/texinfo.tex: Likewise.
11066 * disk/fs_uuid.c: Likewise.
11067 * disk/lvm.c: Likewise.
11068 * disk/scsi.c: Likewise.
11069 * disk/ata.c: Likewise.
11070 * disk/ieee1275/ofdisk.c: Likewise.
11071 * disk/i386/pc/biosdisk.c: Likewise.
11072 * disk/host.c: Likewise.
11073 * disk/raid.c: Likewise.
11074 * disk/efi/efidisk.c: Likewise.
11075 * disk/usbms.c: Likewise.
11076 * disk/memdisk.c: Likewise.
11077 * disk/loopback.c: Likewise.
11078 * kern/powerpc/dl.c: Likewise.
11079 * kern/device.c: Likewise.
11080 * kern/dl.c: Likewise.
11081 * kern/sparc64/dl.c: Likewise.
11082 * kern/ieee1275/ieee1275.c: Likewise.
11083 * kern/term.c: Likewise.
11084 * kern/fs.c: Likewise.
11085 * kern/i386/dl.c: Likewise.
11086 * kern/i386/pc/startup.S: Likewise.
11087 * kern/i386/pc/init.c: Likewise.
11088 * kern/i386/pc/mmap.c: Likewise.
11089 * kern/i386/pc/lzo1x.S: Likewise.
11090 * kern/i386/ieee1275/init.c: Likewise.
11091 * kern/i386/realmode.S: Likewise.
11092 * kern/i386/tsc.c: Likewise.
11093 * kern/partition.c: Likewise.
11094 * kern/corecmd.c: Likewise.
11095 * kern/file.c: Likewise.
11096 * kern/efi/efi.c: Likewise.
11097 * kern/efi/init.c: Likewise.
11098 * kern/efi/mm.c: Likewise.
11099 * kern/main.c: Likewise.
11100 * kern/err.c: Likewise.
11101 * kern/env.c: Likewise.
11102 * kern/disk.c: Likewise.
11103 * kern/generic/millisleep.c: Likewise.
11104 * kern/generic/rtc_get_time_ms.c: Likewise.
11105 * kern/misc.c: Likewise.
11106 * kern/parser.c: Likewise.
11107 * genmk.rb: Likewise.
11108 * configure.ac: Likewise.
11109 * boot/i386/pc/diskboot.S: Likewise.
11110 * boot/i386/pc/pxeboot.S: Likewise.
11111 * boot/i386/pc/boot.S: Likewise.
11112 * boot/i386/pc/lnxboot.S: Likewise.
11113 * boot/i386/pc/cdboot.S: Likewise.
11114 * parttool/pcpart.c: Likewise.
11115 * video/readers/tga.c: Likewise.
11116 * video/video.c: Likewise.
11117 * video/bitmap.c: Likewise.
11118 * lib/envblk.c: Likewise.
11119 * lib/i386/setjmp.S: Likewise.
11120 * fs/xfs.c: Likewise.
11121 * fs/afs.c: Likewise.
11122 * fs/fat.c: Likewise.
11123 * fs/ntfs.c: Likewise.
11124 * fs/udf.c: Likewise.
11125 * fs/affs.c: Likewise.
11126 * fs/iso9660.c: Likewise.
11127 * fs/hfs.c: Likewise.
11128 * fs/fshelp.c: Likewise.
11129 * fs/ext2.c: Likewise.
11130 * fs/jfs.c: Likewise.
11131 * fs/reiserfs.c: Likewise.
11132 * fs/hfsplus.c: Likewise.
11133 * fs/minix.c: Likewise.
11134 * fs/cpio.c: Likewise.
11135 * fs/sfs.c: Likewise.
11136 * fs/ufs.c: Likewise.
11137 * efiemu/prepare.c: Likewise.
11138 * efiemu/loadcore_common.c: Likewise.
11139 * efiemu/runtime/efiemu.sh: Likewise.
11140 * efiemu/runtime/efiemu.S: Likewise.
11141 * efiemu/runtime/efiemu.c: Likewise.
11142 * efiemu/pnvram.c: Likewise.
11143 * efiemu/main.c: Likewise.
11144 * efiemu/i386/pc/cfgtables.c: Likewise.
11145 * efiemu/i386/loadcore64.c: Likewise.
11146 * efiemu/i386/loadcore32.c: Likewise.
11147 * efiemu/loadcore.c: Likewise.
11148 * efiemu/symbols.c: Likewise.
11149 * efiemu/mm.c: Likewise.
11150 * include/grub/autoefi.h: Likewise.
11151 * include/grub/datetime.h: Likewise.
11152 * include/grub/term.h: Likewise.
11153 * include/grub/hfs.h: Likewise.
11154 * include/grub/lvm.h: Likewise.
11155 * include/grub/i386/tsc.h: Likewise.
11156 * include/grub/i386/linux.h: Likewise.
11157 * include/grub/i386/xnu.h: Likewise.
11158 * include/grub/i386/efiemu.h: Likewise.
11159 * include/grub/i386/pc/biosdisk.h: Likewise.
11160 * include/grub/i386/pc/memory.h: Likewise.
11161 * include/grub/i386/pc/vbe.h: Likewise.
11162 * include/grub/parttool.h: Likewise.
11163 * include/grub/video.h: Likewise.
11164 * include/grub/memory.h: Likewise.
11165 * include/grub/fs.h: Likewise.
11166 * include/grub/partition.h: Likewise.
11167 * include/grub/xnu.h: Likewise.
11168 * include/grub/efi/api.h: Likewise.
11169 * include/grub/efi/pe32.h: Likewise.
11170 * include/grub/efi/memory.h: Likewise.
11171 * include/grub/multiboot.h: Likewise.
11172 * include/grub/usbdesc.h: Likewise.
11173 * include/grub/multiboot2.h: Likewise.
11174 * include/grub/acpi.h: Likewise.
11175 * include/grub/efiemu/efiemu.h: Likewise.
11176 * include/grub/disk.h: Likewise.
11177 * include/grub/ieee1275/ieee1275.h: Likewise.
11178 * include/grub/net.h: Likewise.
11179 * include/grub/machoload.h: Likewise.
11180 * include/grub/macho.h: Likewise.
11181 * include/multiboot.h: Likewise.
11182 * genmoddep.awk: Likewise.
11183 * normal/main.c: Likewise.
11184 * normal/menu_entry.c: Likewise.
11185 * normal/menu_viewer.c: Likewise.
11186 * normal/completion.c: Likewise.
11187 * normal/cmdline.c: Likewise.
11188 * normal/misc.c: Likewise.
11189 * normal/datetime.c: Likewise.
11190 * bus/usb/usbtrans.c: Likewise.
11191 * bus/usb/ohci.c: Likewise.
11192 * bus/usb/uhci.c: Likewise.
11193 * bus/usb/usb.c: Likewise.
11194 * mmap/efi/mmap.c: Likewise.
11195 * mmap/i386/pc/mmap_helper.S: Likewise.
11196 * mmap/i386/pc/mmap.c: Likewise.
11197 * mmap/i386/mmap.c: Likewise.
11198 * mmap/i386/uppermem.c: Likewise.
11199 * mmap/mmap.c: Likewise.
11200 * commands/acpi.c: Likewise.
11201 * commands/echo.c: Likewise.
11202 * commands/blocklist.c: Likewise.
11203 * commands/loadenv.c: Likewise.
11204 * commands/usbtest.c: Likewise.
11205 * commands/boot.c: Likewise.
11206 * commands/parttool.c: Likewise.
11207 * commands/search.c: Likewise.
11208 * commands/cat.c: Likewise.
11209 * commands/i386/pc/play.c: Likewise.
11210 * commands/i386/pc/drivemap.c: Likewise.
11211 * commands/i386/pc/vbeinfo.c: Likewise.
11212 * commands/i386/pc/acpi.c: Likewise.
11213 * commands/i386/pc/vbetest.c: Likewise.
11214 * commands/ls.c: Likewise.
11215 * commands/cmp.c: Likewise.
11216 * commands/test.c: Likewise.
11217 * commands/efi/acpi.c: Likewise.
11218 * commands/gptsync.c: Likewise.
11219 * commands/help.c: Likewise.
11220 * partmap/amiga.c: Likewise.
11221 * partmap/apple.c: Likewise.
11222 * partmap/acorn.c: Likewise.
11223 * partmap/pc.c: Likewise.
11224 * partmap/sun.c: Likewise.
11225 * partmap/gpt.c: Likewise.
11226 * script/sh/lexer.c: Likewise.
11227 * script/sh/function.c: Likewise.
11228 * font/font.c: Likewise.
11229 * font/font_cmd.c: Likewise.
11230 * loader/powerpc/ieee1275/linux.c: Likewise.
11231 * loader/efi/chainloader.c: Likewise.
11232 * loader/multiboot_loader.c: Likewise.
11233 * loader/macho.c: Likewise.
11234 * loader/i386/multiboot.c: Likewise.
11235 * loader/i386/linux.c: Likewise.
11236 * loader/i386/pc/linux.c: Likewise.
11237 * loader/i386/pc/multiboot2.c: Likewise.
11238 * loader/i386/pc/chainloader.c: Likewise.
11239 * loader/i386/pc/xnu.c: Likewise.
11240 * loader/i386/bsd_trampoline.S: Likewise.
11241 * loader/i386/efi/linux.c: Likewise.
11242 * loader/i386/multiboot_elfxx.c: Likewise.
11243 * loader/i386/bsd_helper.S: Likewise.
11244 * loader/i386/bsd.c: Likewise.
11245 * loader/i386/linux_trampoline.S: Likewise.
11246 * loader/i386/xnu_helper.S: Likewise.
11247 * loader/i386/xnu.c: Likewise.
11248 * loader/i386/bsd_pagetable.c: Likewise.
11249 * loader/i386/multiboot_helper.S: Likewise.
11250 * loader/xnu.c: Likewise.
11251 * loader/xnu_resume.c: Likewise.
11252 * io/gzio.c: Likewise.
11253 * term/efi/console.c: Likewise.
11254 * term/terminfo.c: Likewise.
11255 * term/ieee1275/ofconsole.c: Likewise.
11256 * term/i386/pc/serial.c: Likewise.
11257 * term/i386/pc/vesafb.c: Likewise.
11258 * term/i386/pc/vga.c: Likewise.
11259 * term/usb_keyboard.c: Likewise.
11260 * term/gfxterm.c: Likewise.
11261 * aclocal.m4: Likewise.
11262 * util/lvm.c: Likewise.
11263 * util/grub.d/30_os-prober.in: Likewise.
11264 * util/grub.d/10_hurd.in: Likewise.
11265 * util/console.c: Likewise.
11266 * util/grub-macho2img.c: Likewise.
11267 * util/grub-probe.c: Likewise.
11268 * util/hostfs.c: Likewise.
11269 * util/i386/pc/grub-mkimage.c: Likewise.
11270 * util/i386/pc/grub-setup.c: Likewise.
11271 * util/i386/efi/grub-mkimage.c: Likewise.
11272 * util/grub-mkconfig.in: Likewise.
11273 * util/raid.c: Likewise.
11274 * util/resolve.c: Likewise.
11275 * util/grub-mkdevicemap.c: Likewise.
11276 * util/grub-emu.c: Likewise.
11277 * util/getroot.c: Likewise.
11278 * util/hostdisk.c: Likewise.
11279 * util/usb.c: Likewise.
11280 * util/grub-editenv.c: Likewise.
11281 * util/misc.c: Likewise.
11283 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11285 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
11286 `genparttoollist.sh'.
11287 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
11288 Add `*.sh' to the list find searches for and change `mdate.sh'
11291 2009-06-10 Pavel Roskin <proski@gnu.org>
11293 * include/grub/multiboot2.h: Provide compatibility defines for
11295 * include/multiboot2.h: Include stdint.h only if needed, using
11297 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
11299 * loader/ieee1275/multiboot2.c: Likewise.
11300 * loader/multiboot2.c: Likewise.
11301 * loader/multiboot_loader.c: Likewise.
11303 * configure.ac: Use -nostdlib when probing for the target. It
11304 should not be required to have libc for the target.
11306 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
11307 they fail without libc headers for the target.
11308 * include/grub/powerpc/libgcc.h: Use weak attribute for all
11310 * include/grub/sparc64/libgcc.h: Likewise. Don't use
11311 preprocessor conditionals.
11313 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
11314 build system doesn't need to be aware of the tar.c internals.
11316 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
11318 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
11320 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
11322 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
11323 disk limit to 26 for IDE, Virtio, Xen and SCSI.
11325 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
11327 * util/i386/pc/grub-install.in: Change the error message if UUIDs
11328 aren't available if ata.mod gets used.
11330 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
11332 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
11333 initialising controller.
11334 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11336 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11338 * util/i386/pc/grub-install.in: Add a parameter --disk-module
11339 to choose between ata and biosdisk module on i386-pc.
11341 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
11343 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
11344 Subclass and Programming Interface fields in terms of the 3 byte
11345 Class Code register.
11346 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11348 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
11349 interface is OHCI. Add grub_dprintf for symmetry with
11351 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
11352 interface is UHCI. Add interf variable for programming
11353 interface. Print interface with class/subclass.
11355 * bus/usb/ohci.c: Set interf with correct field.
11357 * bus/usb/uhci.c: Remove unneeded doubled lines.
11358 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
11359 Remove whitespace inside comment.
11361 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
11363 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
11364 as fallback an equivalent option without depth.
11366 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11368 Not fail if unable to retrieve C/H/S on LBA disks
11370 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
11371 if unable to retrieve C/H/S on LBA disks
11373 2009-06-08 Pavel Roskin <proski@gnu.org>
11375 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
11378 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11380 * Makefile.in (uninstall): Remove all $lib_DATA files.
11382 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11384 Bugfix: install on partitionless device
11386 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
11389 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11391 * Makefile.in (uninstall): Remove all $include_DATA files.
11393 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11395 * commands/true.c: New file. Implement the true and false commands.
11396 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
11397 (true_mod_SOURCES): New variable.
11398 (true_mod_CFLAGS): Likewise.
11399 (true_mod_LDFLAGS): Likewise.
11401 2009-06-05 Colin D Bennett <colin@gibibit.com>
11403 Optimized font character lookup using binary search instead of linear
11404 search. Fonts now are required to have the character index ordered by
11407 * font/font.c (load_font_index): Verify that fonts have ordered
11409 (find_glyph): Use binary search instead of linear search to find a
11410 character in a font.
11412 2009-06-05 Michael Scherer <misc@mandriva.org>
11414 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
11415 uses case sensitive btree.
11416 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
11417 only for case insensitive filesystems.
11419 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
11421 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
11422 * conf/common.rmk (search_mod_CFLAGS): likewise
11424 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11426 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
11427 compensate a compiler bug
11429 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11431 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
11434 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11436 Definitions for creating asm symbols with Apple's CC
11438 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
11439 [APPLE_CC] (VARIABLE): likewise
11441 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11443 Disable lnxboot.img when compiled
11446 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
11447 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
11448 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
11449 [! APPLE_CC] (CODE_LENG): skip
11450 [! APPLE_CC] (setup_sects): likewise
11451 [! APPLE_CC]: skip filling
11453 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11455 Address in trampolines based on 32-bit registers when compiled
11458 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
11460 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
11462 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11464 Avoid aliases when compiling with Apple's CC for PCBIOS machine
11466 * kern/misc.c [APPLE_CC] (memcpy): new function
11467 [APPLE_CC] (memmove): likewise
11468 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
11469 (memcpy): define alias conditionally on !APPLE_CC
11472 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
11473 APPLE_CC are defined
11474 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
11475 (grub_assert_fail): make prototype conditional
11477 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11479 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
11481 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
11483 (CLEANFILES): add grub-macho2img
11484 (grub_macho2img_SOURCES): new variable
11485 * kern/i386/pc/startup.S (bss_start): new variable
11486 (bss_end): likewise
11487 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
11488 * util/grub-macho2img.c: new file
11490 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11492 Use objconv when compiling with Apple's CC
11494 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11495 (efiemu64.o): likewise
11496 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11497 when compiling with Apple's CC
11498 (efiemu64_s.o): likewise
11499 * configure.ac: check for objconv when compiling with Apple's CC
11500 * genmk.rb: use objconv for modules when compiled with Apple's CC
11502 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11504 Define segment as well as section when compiling with
11507 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11508 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11509 (efiemu_convert_pointer): likewise
11510 (efiemu_set_virtual_address_map): likewise
11511 (efiemu_convert_pointer): likewise
11512 (efiemu_getcrc32): likewise
11513 (init_crc32_table): likewise
11514 (reflect): likewise
11515 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11516 (GRUB_MOD_DEP): likewise
11518 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11520 Allow a compilation without -mcmodel=large
11522 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11523 when compiled without -mcmodel=large
11524 (filter_memory_map): remove memory post 4 GiB when compiled
11525 without -mcmodel=large
11526 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
11527 TARGET_CFLAGS when -mcmodel=large isn't supported
11529 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11531 Remove nested functions in efiemu core
11533 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
11535 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11537 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11539 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11541 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11543 (grub_cpu_is_tsc_supported): likewise
11544 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
11546 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11548 Absolute addressing through constant with Apple's cc
11550 * kern/i386/pc/startup.S: Define necessary constants
11551 and address through it when using ABS with Apple's CC
11552 * boot/i386/pc/diskboot.S: likewise
11553 * boot/i386/pc/boot.S: likewise
11554 * boot/i386/pc/lnxboot.S: likewise
11555 * boot/i386/pc/cdboot.S: likewise
11556 * mmap/i386/pc/mmap_helper.S: likewise
11557 * commands/i386/pc/drivemap_int13h.S: likewise
11559 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11561 Check if compiler is apple cc
11563 * Makefile.in (ASFLAGS): new variable
11564 (TARGET_ASFLAGS): likewise
11565 (TARGET_MODULE_FORMAT): likewise
11566 (TARGET_APPLE_CC): likewise
11567 (OBJCONV): likewise
11568 (TARGET_IMG_CFLAGS): likewise
11569 (TARGET_CPPFLAGS): add includedir
11570 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11571 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11572 Check for linker script only if compiler isn't Apple's CC
11573 (TARGET_MODULE_FORMAT): set
11574 (TARGET_APPLE_CC): likewise
11575 (TARGET_ASFLAGS): likewise
11576 (ASFLAGS): likewise
11577 Check for objcopy only if compiler isn't Apple's CC
11578 Check for BSS symbol only if compiler isn't Apple's CC
11579 * genmk.rb: adapt nm options if we use Apple's utils
11580 * aclocal.m4 (grub_apple_cc): new test
11581 (grub_apple_target_cc): likewise
11583 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11585 Simplify sed expressions and improve awk
11587 * Makefile.in (install-local): simplify sed expression
11588 * gencmdlist.sh: likewise
11589 * genmoddep.awk: avoid adding module as a dependency of itself
11591 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11593 Add missing start symbols
11595 * boot/i386/pc/boot.S: add start
11596 * boot/i386/pc/pxeboot.S: likewise
11598 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11600 Fix wrong assumptions with grub-mkimage on EFI
11602 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11603 (relocate_addresses): consider both r_addend and value at offset
11604 (make_mods_section): zerofill modinfo and header
11605 (convert_elf): write prefix here
11607 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11609 Use .asciz instead of .string
11611 * i386/pc/diskboot.S: use .asciz instead of .string
11612 * i386/pc/boot.S: likewise
11613 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11614 (GRUB_MOD_NAME): likewise
11616 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11620 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11621 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11622 (grub_video_setup): remove
11623 (grub_video_set_mode): new prototype
11624 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11626 (linux_vesafb_res): compile only on PCBIOS
11627 (grub_linux_boot): support gfxpayload
11628 * loader/i386/pc/xnu.c (video_hook): new function
11629 (grub_xnu_set_video): support gfxpayload
11630 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11631 (DEFAULT_VIDEO_HEIGHT): likewise
11632 (DEFAULT_VIDEO_FLAGS): likewise
11633 (DEFAULT_VIDEO_MODE): new definition
11634 (video_hook): new function
11635 (grub_gfxterm_init): use grub_video_set_mode
11636 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11638 * video/video.c (grub_video_setup): removed
11639 (grub_video_set_mode): new function based on grub_gfxterm_init and
11642 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11644 Avoid calling biosdisk in drivemap
11646 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11647 (revparse_biosdisk): likewise
11648 (list_mappings): derive name from id directly
11649 (grub_cmd_drivemap): use tryparse_diskstring
11651 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11655 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11656 (grub_lexer_param): add tokenonhold
11657 (grub_script_create_cmdline): remove cmdline. All callers updated
11658 (grub_script_function_create): make functionname
11659 grub_script_arg. All callers updated
11660 (grub_script_execute_argument_to_string): new prototype
11661 * kern/parser.c (state_transitions): reorder
11662 (grub_parser_cmdline_state): fix a bug and make more compact
11663 * script/sh/execute.c (grub_script_execute_argument_to_string):
11665 (grub_script_execute_cmdline): use new format
11666 * script/sh/function.c (grub_script_function_create): make functionname
11667 grub_script_arg. All callers updated
11668 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11669 (grub_script_yylex): remove
11670 (grub_script_yylex2): renamed to ...
11671 (grub_script_yylex): ...renamed
11672 parse the expressions like a${b}c
11673 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11674 (GRUB_PARSER_TOKEN_VAR): remove
11675 (GRUB_PARSER_TOKEN_NAME): likewise
11676 ("if"): declare as typeless
11677 ("while"): likewise
11678 ("function"): likewise
11683 (argument): likewise
11684 (script): accept empty scripts and make exit on error
11685 (arguments): use GRUB_PARSER_TOKEN_ARG
11686 (function): likewise
11687 (command): move error handling to script
11688 (menuentry): move grub_script_lexer_ref before
11689 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11690 argument. All callers updated
11692 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11694 Prevent GRUB from probing floppies during boot.
11696 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11697 * commands/search.c (options): Add --no-floppy.
11698 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11699 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11700 --no-floppy when searching for UUIDs.
11702 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11704 Simplify the code duplication in commands/search.c.
11706 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11707 (search_fs): ... this. Update all users.
11709 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11711 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11713 2009-05-28 Pavel Roskin <proski@gnu.org>
11715 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11716 Remove the original symlink explicitly.
11718 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11719 just one slash. That's how grub_fshelp_find_file() does it.
11721 2009-05-26 Pavel Roskin <proski@gnu.org>
11723 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11726 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11729 2009-05-25 Christian Franke <franke@computer.org>
11731 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11733 (grub_atapi_identify): Add wait after drive select.
11734 (grub_ata_identify): Do more strict status register check before
11735 calling grub_atapi_identify (). Suppress error message if status
11736 register is 0x00 after command failure. Add status register
11737 check after PIO read to avoid bogus identify due to stuck DRQ.
11738 Thanks to Pavel Roskin for testing.
11739 (grub_device_initialize): Remove unsafe status register check.
11740 Thanks to 'phcoder' for problem report and patch.
11741 Prevent sign extension in debug message.
11743 2009-05-23 Colin D Bennett <colin@gibibit.com>
11745 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11746 definition file, and functions defined in `normal/menu.c' have had
11747 their prototypes moved to `include/grub/menu.h' for consistency.
11749 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11751 (grub_menu_get_entry): Likewise.
11752 (grub_menu_get_timeout): Likewise.
11753 (grub_menu_set_timeout): Likewise.
11754 (grub_menu_execute_entry): Likewise.
11755 (grub_menu_execute_with_fallback): Likewise.
11756 (grub_menu_entry_run): Likewise.
11758 * include/grub/normal.h: Re-ordered and grouped function
11759 prototypes by file that the function is defined in.
11760 (grub_menu_execute_callback): Removed; moved to menu.h.
11761 (grub_menu_get_entry): Likewise.
11762 (grub_menu_get_timeout): Likewise.
11763 (grub_menu_set_timeout): Likewise.
11764 (grub_menu_execute_entry): Likewise.
11765 (grub_menu_execute_with_fallback): Likewise.
11766 (grub_menu_entry_run): Likewise.
11767 (grub_menu_addentry): Renamed from this ...
11768 (grub_normal_add_menu_entry): ... to this.
11770 * normal/main.c (grub_menu_addentry): Renamed from this ...
11771 (grub_normal_add_menu_entry): ... to this.
11773 * script/sh/execute.c (grub_script_execute_menuentry): Update
11774 reference to renamed grub_menu_addentry function.
11776 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11778 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11780 2009-05-22 Pavel Roskin <proski@gnu.org>
11782 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11783 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11784 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11785 compiling for the i386 targets, but not for the utilities.
11787 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11789 (grub_root_drive): Likewise.
11790 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11792 (grub_root_drive): Change size to byte.
11793 (grub_start_addr): Remove.
11794 (grub_end_addr): Likewise.
11795 (grub_apm_bios_info): Likewise.
11797 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11799 * normal/i386: Remove.
11800 * normal/powerpc: Likewise.
11801 * normal/sparc64: Likewise.
11802 * normal/x86_64: Likewise.
11804 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11806 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11807 * loader/i386/linux_trampoline.S: Fix indentation
11808 * loader/i386/xnu_helper.S: Likewise
11810 2009-05-18 Colin D Bennett <colin@gibibit.com>
11812 Display error messages when parsing a Lua statement fails.
11813 Previously, executing a syntactically invalid statement like
11814 ")foo" or "bar;" would silently fail.
11816 * script/lua/grub_main.c (handle_lua_error): New function.
11817 (grub_lua_parse_line): Improved reporting of Lua parser and
11820 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11822 Remove -Werror which causes build to fail on some systems
11824 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11825 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11826 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11828 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11830 trampoline for linux on 64-bit platform
11832 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11833 loader/i386/efi/linux_trampoline.S
11834 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11836 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11838 * loader/i386/linux_trampoline.S: moved here
11839 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11841 (jumpvector): removed
11842 (grub_linux_trampoline_start): new declaration
11843 (grub_linux_trampoline_end): likewise
11844 (grub_linux_boot): use trampoline when on 64-bit platform
11845 * loader/i386/linux.c: likewise
11847 2009-05-16 Pavel Roskin <proski@gnu.org>
11849 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11850 const to avoid a warning.
11851 (grub_lua_setenv): Likewise.
11852 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11853 lmsg to fix a warning.
11855 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11857 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11858 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11859 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11860 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11861 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11862 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11863 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11864 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11866 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11868 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11870 2009-05-16 Bean <bean123ch@gmail.com>
11872 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11873 (lua_mod_SOURCES): New variable.
11874 (lua_mod_CFLAGS): Likewise.
11875 (lua_mod_LDFLAGS): Likewise.
11877 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11878 (setjmp_mod_SOURCES): New variable.
11879 (setjmp_mod_CFLAGS): Likewise.
11880 (setjmp_LDFLAGS): Likewise.
11882 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11883 (setjmp_mod_SOURCES): New variable.
11884 (setjmp_mod_CFLAGS): Likewise.
11885 (setjmp_LDFLAGS): Likewise.
11887 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11888 (setjmp_mod_SOURCES): New variable.
11889 (setjmp_mod_CFLAGS): Likewise.
11890 (setjmp_LDFLAGS): Likewise.
11892 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11893 (setjmp_mod_SOURCES): New variable.
11894 (setjmp_mod_CFLAGS): Likewise.
11895 (setjmp_LDFLAGS): Likewise.
11897 * normal/i386/setjmp.S: Moved from here ...
11898 * lib/i386/setjmp.S: ... Moved here
11899 * normal/x86_64/setjmp.S: Moved from here ...
11900 * lib/x86_64/setjmp.S: ... Moved here
11901 * normal/powerpc/setjmp.S: Moved from here ...
11902 * lib/powerpc/setjmp.S: ... Moved here
11903 * normal/sparc64/setjmp.S: Moved from here ...
11904 * lib/sparc64/setjmp.S: ... Moved here
11906 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11907 returns_twice in mingw.
11909 * script/lua/grub_lib.c: New file.
11910 * script/lua/grub_lib.h: Likewise.
11911 * script/lua/grub_lua.h: Likewise.
11912 * script/lua/grub_main.c: Likewise.
11913 * script/lua/lapi.c: Likewise.
11914 * script/lua/lapi.h: Likewise.
11915 * script/lua/lauxlib.c: Likewise.
11916 * script/lua/lauxlib.h: Likewise.
11917 * script/lua/lbaselib.c: Likewise.
11918 * script/lua/lcode.c: Likewise.
11919 * script/lua/lcode.h: Likewise.
11920 * script/lua/ldblib.c: Likewise.
11921 * script/lua/ldebug.c: Likewise.
11922 * script/lua/ldebug.h: Likewise.
11923 * script/lua/ldo.c: Likewise.
11924 * script/lua/ldo.h: Likewise.
11925 * script/lua/ldump.c: Likewise.
11926 * script/lua/lfunc.c: Likewise.
11927 * script/lua/lfunc.h: Likewise.
11928 * script/lua/lgc.c: Likewise.
11929 * script/lua/lgc.h: Likewise.
11930 * script/lua/linit.c: Likewise.
11931 * script/lua/liolib.c: Likewise.
11932 * script/lua/llex.c: Likewise.
11933 * script/lua/llex.h: Likewise.
11934 * script/lua/llimits.h: Likewise.
11935 * script/lua/lmathlib.c: Likewise.
11936 * script/lua/lmem.c: Likewise.
11937 * script/lua/lmem.h: Likewise.
11938 * script/lua/loadlib.c: Likewise.
11939 * script/lua/lobject.c: Likewise.
11940 * script/lua/lobject.h: Likewise.
11941 * script/lua/lopcodes.c: Likewise.
11942 * script/lua/lopcodes.h: Likewise.
11943 * script/lua/loslib.c: Likewise.
11944 * script/lua/lparser.c: Likewise.
11945 * script/lua/lparser.h: Likewise.
11946 * script/lua/lstate.c: Likewise.
11947 * script/lua/lstate.h: Likewise.
11948 * script/lua/lstring.c: Likewise.
11949 * script/lua/lstring.h: Likewise.
11950 * script/lua/lstrlib.c: Likewise.
11951 * script/lua/ltable.c: Likewise.
11952 * script/lua/ltable.h: Likewise.
11953 * script/lua/ltablib.c: Likewise.
11954 * script/lua/ltm.c: Likewise.
11955 * script/lua/ltm.h: Likewise.
11956 * script/lua/lua.h: Likewise.
11957 * script/lua/luaconf.h: Likewise.
11958 * script/lua/lualib.h: Likewise.
11959 * script/lua/lundump.c: Likewise.
11960 * script/lua/lundump.h: Likewise.
11961 * script/lua/lvm.c: Likewise.
11962 * script/lua/lvm.h: Likewise.
11963 * script/lua/lzio.c: Likewise.
11964 * script/lua/lzio.h: Likewise.
11966 2009-05-16 Bean <bean123ch@gmail.com>
11968 * include/grub/kernel.h (grub_module_header_types): Add type
11971 * kern/main.c (grub_load_config): New function.
11972 (grub_main): Call grub_load_config to read boot config.
11974 * grub-mkimage (generate_image): New parameter config_path.
11975 (options): New option --config.
11976 (main): Parse --config option, and pass it to generate_image.
11978 2009-05-14 Christian Franke <franke@computer.org>
11980 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11981 This fixes build on Cygwin.
11983 2009-05-14 Pavel Roskin <proski@gnu.org>
11985 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11986 jump. This saves two bytes, so the typical case of 2 swapped
11987 drives would fit 32 bytes.
11989 2009-05-13 Pavel Roskin <proski@gnu.org>
11991 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11992 grub_uint32_t to avoid a warning.
11994 * loader/i386/linux.c (allocate_pages): When assigning
11995 real_mode_mem, cast through grub_size_t to fix a warning. The
11996 code already makes sure that the value would fit a pointer.
11997 (grub_linux_setup_video): Cast render_target->data to
11998 grub_size_t to fix a warning.
12000 2009-05-13 Javier Martín <lordhabbit@gmail.com>
12002 * commands/i386/pc/drivemap.c: New file - implement drivemap
12004 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
12005 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
12007 2009-05-13 Pavel Roskin <proski@gnu.org>
12009 * util/i386/pc/grub-setup.c (setup): Remove unused variable
12010 embedding_area_exists.
12012 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
12014 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
12015 it easier to understand / work with.
12016 Improve warning messages for cases where there's no embedding area,
12017 or when it is too small (or core.img too large).
12019 2009-05-13 Pavel Roskin <proski@gnu.org>
12021 * loader/i386/pc/multiboot2.c: Add necessary includes for
12022 grub_multiboot2_real_boot().
12024 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
12025 PX record is always little-endian. We only need the lower 2
12028 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
12029 facilitate code reuse.
12030 (grub_cpio_mount): Use "struct head", not a char buffer. This
12031 fixes a warning reported by gcc 4.4.
12033 * kernel/disk.c (grub_disk_read): Use void pointer for the
12035 (grub_disk_write): Use const void pointer for the buffer.
12036 Adjust all callers. Remove unnecessary casts.
12038 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
12040 * util/i386/pc/grub-install.in: Update copyright year.
12042 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12046 * commands/gptsync.c: new file
12047 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
12048 (gptsync_mod_SOURCES): new variable
12049 (gptsync_mod_CFLAGS): likewise
12050 (gptsync_mod_LDFLAGS): likewise
12051 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
12053 (GRUB_PC_PARTITION_TYPE_HFS): likewise
12054 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
12055 * conf/i386-ieee1275.rmk: likewise
12056 * conf/i386-pc.rmk: likewise
12057 * conf/powerpc-ieee1275.rmk: likewise
12059 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12063 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
12064 (grub_dl_ref): likewise
12066 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
12068 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
12069 split in two functions (one for msdos and one for gpt).
12071 2009-05-08 Pavel Roskin <proski@gnu.org>
12073 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
12076 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
12077 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
12078 Initialize them with -1. Add sanity check for bad1. Eliminate
12081 2009-05-08 David S. Miller <davem@davemloft.net>
12083 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
12085 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
12087 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
12090 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
12092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
12093 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
12095 2009-05-05 David S. Miller <davem@davemloft.net>
12097 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
12099 2009-05-05 Pavel Roskin <proski@gnu.org>
12101 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
12102 of grub_dl_ref() and grub_dl_unref().
12103 * commands/parttool.c: Remove preprocessor conditionals around
12104 grub_dl_ref() and grub_dl_unref().
12105 * fs/affs.c: Likewise.
12106 * fs/afs.c: Likewise.
12107 * fs/cpio.c: Likewise.
12108 * fs/ext2.c: Likewise.
12109 * fs/fat.c: Likewise.
12110 * fs/hfs.c: Likewise.
12111 * fs/hfsplus.c: Likewise.
12112 * fs/iso9660.c: Likewise.
12113 * fs/jfs.c: Likewise.
12114 * fs/minix.c: Likewise.
12115 * fs/ntfs.c: Likewise.
12116 * fs/reiserfs.c: Likewise.
12117 * fs/sfs.c: Likewise.
12118 * fs/udf.c: Likewise.
12119 * fs/ufs.c: Likewise.
12120 * fs/xfs.c: Likewise.
12121 * include/grub/dl.h: Likewise.
12122 * loader/xnu.c: Likewise.
12124 2009-05-04 Pavel Roskin <proski@gnu.org>
12126 * commands/acpi.c: Remove unused variable my_mod.
12127 * partmap/amiga.c: Likewise.
12128 * partmap/apple.c: Likewise.
12129 * partmap/gpt.c: Likewise.
12130 * partmap/pc.c: Likewise.
12131 * partmap/sun.c: Likewise.
12132 * term/gfxterm.c: Likewise.
12133 * term/i386/pc/vesafb.c: Likewise.
12134 * term/i386/pc/vga.c: Likewise.
12136 2009-05-04 David S. Miller <davem@davemloft.net>
12138 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
12139 pointer args to grub_ieee1275_get_property().
12141 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
12143 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
12144 devices, and do not traverse down under controller nodes.
12146 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
12147 (grub_ofdisk_open): Use it to un-escape "," characters.
12148 * kern/disk.c (find_part_sep): New.
12149 (grub_disk_open): Use it to find the first non-escaped ','
12150 character in the disk name.
12151 * util/ieee1275/devicemap.c (escape_of_path): New.
12152 (grub_util_emit_devicemap_entry): Use it.
12153 * util/sparc64/ieee1275/grub-install.in: Update script to
12154 strip partition specifiers properly by not triggering on
12155 '\' escaped ',' characters.
12157 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12159 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
12161 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
12163 (linux_vesafb_modes): Add a lot of additional modes to the list (based
12164 on documentation from Wikipedia).
12166 2009-05-04 Pavel Roskin <proski@gnu.org>
12168 * disk/ata.c: Spelling fixes.
12169 * disk/raid.c: Likewise.
12170 * disk/usbms.c: Likewise.
12171 * disk/dmraid_nvidia.c: Likewise.
12172 * kern/ieee1275/openfw.c: Likewise.
12173 * kern/ieee1275/init.c: Likewise.
12174 * kern/ieee1275/cmain.c: Likewise.
12175 * boot/i386/pc/cdboot.S: Likewise.
12176 * video/readers/png.c: Likewise.
12177 * video/i386/pc/vbe.c: Likewise.
12178 * fs/udf.c: Likewise.
12179 * fs/hfs.c: Likewise.
12180 * fs/reiserfs.c: Likewise.
12181 * efiemu/runtime/efiemu.c: Likewise.
12182 * efiemu/main.c: Likewise.
12183 * efiemu/mm.c: Likewise.
12184 * include/grub/elf.h: Likewise.
12185 * include/grub/xnu.h: Likewise.
12186 * include/grub/usbdesc.h: Likewise.
12187 * include/grub/usb.h: Likewise.
12188 * include/grub/script_sh.h: Likewise.
12189 * include/grub/lib/LzmaEnc.h: Likewise.
12190 * include/grub/efiemu/efiemu.h: Likewise.
12191 * include/grub/command.h: Likewise.
12192 * normal/menu.c: Likewise.
12193 * normal/main.c: Likewise.
12194 * normal/datetime.c: Likewise.
12195 * bus/usb/uhci.c: Likewise.
12196 * mmap/i386/uppermem.c: Likewise.
12197 * mmap/mmap.c: Likewise.
12198 * commands/acpi.c: Likewise.
12199 * commands/test.c: Likewise.
12200 * partmap/apple.c: Likewise.
12201 * font/font.c: Likewise.
12202 * loader/sparc64/ieee1275/linux.c: Likewise.
12203 * loader/macho.c: Likewise.
12204 * loader/i386/bsd_trampoline.S: Likewise.
12205 * loader/i386/bsd.c: Likewise.
12206 * loader/xnu.c: Likewise.
12207 * term/i386/pc/vesafb.c: Likewise.
12208 * term/usb_keyboard.c: Likewise.
12209 * util/resolve.c: Likewise.
12210 * util/getroot.c: Likewise.
12212 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12214 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
12216 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12218 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
12221 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12223 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
12224 parameter only available on BIOS.
12226 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12228 Removed wrong semicolon in declaration
12230 * grub/misc.h (grub_dprintf): remove semicolon
12232 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12234 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
12235 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
12236 is done by grub_cmd_linux() now).
12237 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
12238 restore video to text mode.
12239 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
12240 indicates lack of "vga=" parameter. "vga=0" is mapped to
12241 `GRUB_LINUX_VID_MODE_NORMAL'.
12243 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12245 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
12246 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
12247 and `normal/script.c'. Add `kern/rescue_reader.c',
12248 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
12249 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
12250 `grub_script.tab.c'.
12252 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12253 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12254 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12255 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12256 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12258 * Makefile.in: Remove duplicated 2008 in Copyright line.
12260 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12262 * util/misc.c (grub_util_warn): New function. Emits a warning
12264 * include/grub/util/misc.h (grub_util_warn): New declaration.
12266 * util/i386/pc/grub-install.in: Understand --force and pass it down
12269 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
12271 (setup): Improve error messages and add warnings when requested to
12272 install in odd layouts. Refuse to install using blocklists unless
12275 2009-05-04 martin f. krafft <madduck@madduck.net>
12277 * disk/raid.c (grub_raid_scan_device): Improve debug message.
12279 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12281 Updated copyright year
12283 * fs/hfsplus.c: updated copyright year
12285 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12289 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
12290 in the space previously used by unused3
12291 (grub_hfsplus_uuid): new function
12292 (grub_hfsplus_fs): added uuid field
12294 2009-05-03 Pavel Roskin <proski@gnu.org>
12296 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
12297 suppress warnings. It's no longer needed.
12298 * disk/host.c: Likewise.
12299 * disk/ata_pthru.c: Likewise.
12300 * disk/loopback.c: Likewise.
12301 * hook/datehook.c: Likewise.
12302 * parttool/pcpart.c: Likewise.
12303 * fs/i386/pc/pxe.c: Likewise.
12304 * fs/ntfscomp.c: Likewise.
12305 * efiemu/main.c: Likewise.
12306 * mmap/mmap.c: Likewise.
12307 * commands/crc.c: Likewise.
12308 * commands/hexdump.c: Likewise.
12309 * commands/hdparm.c: Likewise.
12310 * commands/acpi.c: Likewise.
12311 * commands/echo.c: Likewise.
12312 * commands/minicmd.c: Likewise.
12313 * commands/blocklist.c: Likewise.
12314 * commands/memrw.c: Likewise.
12315 * commands/loadenv.c: Likewise.
12316 * commands/usbtest.c: Likewise.
12317 * commands/lsmmap.c: Likewise.
12318 * commands/boot.c: Likewise.
12319 * commands/parttool.c: Likewise.
12320 * commands/configfile.c: Likewise.
12321 * commands/search.c: Likewise.
12322 * commands/ieee1275/suspend.c: Likewise.
12323 * commands/cat.c: Likewise.
12324 * commands/i386/pc/pxecmd.c: Likewise.
12325 * commands/i386/pc/play.c: Likewise.
12326 * commands/i386/pc/halt.c: Likewise.
12327 * commands/i386/pc/vbeinfo.c: Likewise.
12328 * commands/i386/pc/vbetest.c: Likewise.
12329 * commands/lspci.c: Likewise.
12330 * commands/date.c: Likewise.
12331 * commands/handler.c: Likewise.
12332 * commands/ls.c: Likewise.
12333 * commands/test.c: Likewise.
12334 * commands/cmp.c: Likewise.
12335 * commands/efi/loadbios.c: Likewise.
12336 * commands/efi/fixvideo.c: Likewise.
12337 * commands/halt.c: Likewise.
12338 * commands/help.c: Likewise.
12339 * commands/reboot.c: Likewise.
12340 * hello/hello.c: Likewise.
12341 * script/sh/main.c: Likewise.
12342 * loader/xnu.c: Likewise.
12343 * term/terminfo.c: Likewise.
12344 * term/i386/pc/serial.c: Likewise.
12345 * term/usb_keyboard.c: Likewise.
12347 2009-05-03 David S. Miller <davem@davemloft.net>
12349 * normal/menu.c: Include grub/parser.h
12351 2009-05-03 Pavel Roskin <proski@gnu.org>
12353 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
12355 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
12356 Suggested by Javier Martín <lordhabbit@gmail.com>
12358 * util/i386/pc/grub-mkrescue.in: Allow for the case when
12359 efiemu??.o doesn't exist.
12360 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
12363 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
12365 FreeBSD 64-bit support
12367 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
12368 and loader/i386/bsd_trampoline.S
12369 (bsd_mod_ASFLAGS): new variable
12370 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
12371 (FREEBSD_MODTYPE_KERNEL64): likewise
12372 (grub_bsd64_trampoline_start): likewise
12373 (grub_bsd64_trampoline_end): likewise
12374 (grub_bsd64_trampoline_selfjump): likewise
12375 (grub_bsd64_trampoline_gdt): likewise
12376 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
12377 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
12378 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
12379 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
12380 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12382 * loader/i386/bsd_pagetable.c: new file
12383 * loader/i386/bsd_trampoline.S: likewise
12384 * loader/i386/bsd.c (ALIGN_QWORD): new macro
12385 (ALIGN_VAR): likewise
12386 (entry_hi): new variable
12387 (kern_end_mdofs): likewise
12388 (is_64bit): likewise
12389 (grub_freebsd_add_meta): use ALIGN_VAR
12390 (grub_e820_mmap): new declaration
12391 (grub_freebsd_add_mmap): new function
12392 (grub_freebsd_add_meta_module): support 64 bit kernels
12393 (grub_freebsd_list_modules): use ALIGN_VAR
12394 (gdt_descriptor): new declaration
12395 (grub_freebsd_boot): support 64 bit kernels
12396 (grub_bsd_elf64_hook): new function
12397 (grub_bsd_load_elf): support elf64
12399 2009-05-03 Bean <bean123ch@gmail.com>
12401 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
12402 after we get the result of if statement.
12404 2009-05-03 Bean <bean123ch@gmail.com>
12406 * Makefile.in (enable_efiemu): New variable.
12408 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
12410 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
12412 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
12413 path, add -mno-red-zone option.
12414 (efiemu64_s.o): Likewise.
12415 (efiemu64.o): Use macro $^ for source file.
12417 * configure.ac (--enable-efiemu): New option.
12419 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12423 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
12424 (pkglib_MODULES): add xnu.mod
12425 (xnu_mod_SOURCES): new variable
12426 (xnu_mod_CFLAGS): likewise
12427 (xnu_mod_LDFLAGS): likewise
12428 (xnu_mod_ASFLAGS): likewise
12429 * conf/i386-pc.rmk: likewise
12430 * conf/x86_64-efi.rmk: likewise
12431 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
12433 * include/grub/i386/macho.h: new file
12434 * include/grub/i386/xnu.h: likewise
12435 * include/grub/macho.h: likewise
12436 * include/grub/machoload.h: likewise
12437 * include/grub/x86_64/macho.h: likewise
12438 * include/grub/x86_64/xnu.h: likewise
12439 * include/grub/xnu.h: likewise
12440 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
12441 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
12442 * loader/i386/efi/xnu.c: new file
12443 * loader/i386/pc/xnu.c: likewise
12444 * loader/i386/xnu.c: likewise
12445 * loader/i386/xnu_helper.S: likewise
12446 * loader/macho.c: likewise
12447 * loader/xnu.c: likewise
12448 * loader/xnu_resume.c: likewise
12449 * util/grub-dumpdevtree: likewise
12450 * include/grub/i386/pit.h: include grub/err.h
12451 (grub_pit_wait): export
12452 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
12454 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12458 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
12459 _linux_efi, linux_efi.
12460 new files in grub-emu
12461 new targets efiemu32.o and efiemu64.o
12462 * loader/linux_normal_efiemu.c: likewise
12463 * loader/i386/efi/linux.c: added preliminary efiemu support
12464 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
12466 * include/grub/autoefi.h: new file
12467 * include/grub/i386/efiemu.h: likewise
12468 * include/grub/i386/pc/efiemu.h: likewise
12469 * include/grub/efi/api.h: add LL suffix when necessary
12470 new definitions relating to tables
12471 * include/grub/efiemu/efiemu.h: new file
12472 * include/grub/efiemu/runtime.h: likewise
12473 * efiemu/prepare.c: likewise
12474 * efiemu/loadcore_common.c: likewise
12475 * efiemu/loadcore64.c: likewise
12476 * efiemu/runtime/efiemu.sh: likewise
12477 * efiemu/runtime/efiemu.S: likewise
12478 * efiemu/runtime/efiemu.c: likewise
12479 * efiemu/runtime/config.h: likewise
12480 * efiemu/prepare32.c: likewise
12481 * efiemu/main.c: likewise
12482 * efiemu/modules/pnvram.c: likewise
12483 * efiemu/modules/i386: likewise
12484 * efiemu/modules/i386/pc: likewise
12485 * efiemu/modules/acpi.c: likewise
12486 * efiemu/i386/pc/cfgtables.c: likewise
12487 * efiemu/i386/loadcore64.c: likewise
12488 * efiemu/i386/loadcore32.c: likewise
12489 * efiemu/prepare64.c: likewise
12490 * efiemu/loadcore.c: likewise
12491 * efiemu/symbols.c: likewise
12492 * efiemu/mm.c: likewise
12493 * efiemu/loadcore32.c: likewise
12495 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12499 * commands/acpi.c: new file
12500 * commands/i386/pc/acpi.c: likewise
12501 * commands/efi/acpi.c: likewise
12502 * include/grub/acpi.h: likewise
12503 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12504 (acpi_mod_SOURCES): new variable
12505 (acpi_mod_CFLAGS): likewise
12506 (acpi_mod_LDFLAGS): likewise
12507 * conf/i386-efi.rmk: likewise
12508 * conf/x86_64-efi.rmk: likewise
12510 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12512 Missing part from mmap patch
12514 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12515 (grub_mmap_unregister)
12516 (grub_mmap_free_and_unregister): use grub_mmap_register
12518 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12522 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12523 * loader/i386/linux.c (find_mmap_size): likewise
12524 (allocate_pages): likewise
12525 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12526 (grub_fill_multiboot_mmap): likewise
12527 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12528 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12529 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12530 (OPENBSD_MMAP_RESERVED): likewise
12531 * include/grub/i386/pc/memory.h: include grub/memory.h
12532 (grub_lower_mem): removed
12533 (grub_upper_mem): likewise
12534 (GRUB_MACHINE_MEMORY_ACPI): new definition
12535 (GRUB_MACHINE_MEMORY_NVS): likewise
12536 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12537 (GRUB_MACHINE_MEMORY_HOLE): likewise
12538 (grub_machine_mmap_register): likewise
12539 (grub_machine_mmap_unregister): likewise
12540 (grub_machine_get_upper): likewise
12541 (grub_machine_get_lower): likewise
12542 (grub_machine_get_post64): likewise
12543 * include/grub/i386/efi/memory.h: new file
12544 * include/grub/x86_64/efi/memory.h: likewise
12545 * include/grub/efi/memory.h: likewise
12546 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12547 (mmap_mod_SOURCES): new variable
12548 (mmap_mod_LDFLAGS): likewise
12549 (mmap_mod_ASFLAGS): likewise
12550 * conf/i386-coreboot.rmk: likewise
12551 * conf/i386-ieee1275.rmk: likewise
12552 * conf/i386-efi.rmk: likewise
12553 * conf/x86_64-efi.rmk: likewise
12554 * include/grub/types.h (UINT_TO_PTR): new macro
12555 (PTR_TO_UINT32): likewise
12556 (PTR_TO_UINT64): likewise
12557 * include/grub/memory.h: new file
12558 * mmap/i386/pc/mmap.c: likewise
12559 * mmap/i386/pc/mmap_helper.S: likewise
12560 * mmap/i386/uppermem.c: likewise
12561 * mmap/mmap.c: likewise
12562 * mmap/efi/mmap.c: likewise
12563 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12565 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12566 (grub_upper_mem): likewise
12567 (grub_machine_init): don't use grub_upper_mem,
12568 make grub_lower_mem local
12569 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12570 grub_mmap_iterate and grub_mmap_get_upper
12571 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12573 2009-05-02 Bean <bean123ch@gmail.com>
12575 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12576 script/sh/parser.y.
12577 (pkglib_MODULES): Add normal.mod and sh.mod.
12578 (normal_SOURCES): New variable.
12579 (normal_mod_CFLAGS): Likewise.
12580 (normal_mod_LDFLAGS): Likewise.
12581 (sh_mod_SOURCES): Likewise.
12582 (sh_mod_CFLAGS): Likewise.
12583 (sh_mod_LDFLAGS): Likewise.
12585 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12586 script/sh/lexer.c_DEPENDENCIES.
12587 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12588 kern/rescue_reader.c and kern/rescue_parser.c.
12589 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12590 (grub_emu_SOURCES): Change source files.
12591 (pkglib_MODULES): Remove normal.mod.
12592 (normal_SOURCES): Removed.
12593 (normal_mod_CFLAGS): Likewise.
12594 (normal_mod_LDFLAGS): Likewise.
12595 * conf/i386-coreboot.rmk: Likewise.
12596 * conf/i386-efi.rmk: Likewise.
12597 * conf/i386-ieee1276.rmk: Likewise.
12598 * conf/powerpc-ieee1275.rmk: Likewise.
12599 * conf/sparc64-ieee1275.rmk: Likewise.
12600 * conf/x86_64-efi.rmk: Likewise.
12602 * include/grub/command.h (grub_command_execute): New inline function.
12604 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12606 * include/grub/normal.h: Remove <grub/setjmp.h>.
12607 (grub_fs_module_list): Moved to normal/autofs.c.
12608 (grub_exit_env): Removed.
12609 (grub_command_execute): Likewise.
12610 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12612 (read_command_list): New function declaration.
12613 (read_fs_list): Likewise.
12615 * include/parser.h: Include <grub/reader.h>.
12616 (grub_parser_split_cmdline): Change type of getline parameter.
12617 (grub_parser): New structure.
12618 (grub_parser_class): New variable.
12619 (grub_parser_execute): New function declaration.
12620 (grub_register_rescue_parser): Likewise.
12621 (grub_parser_register): New inline function.
12622 (grub_parser_unregister): Likewise.
12623 (grub_parser_get_current): Likewise.
12624 (grub_parser_set_current): Likewise.
12626 * include/grub/reader.h: New file.
12627 * kern/reader.c: Likewise.
12628 * kern/rescue_parser.c: Likewise.
12629 * kern/rescue_reader.c: Likewise.
12630 * normal/autofs.c: Likewise.
12631 * normal/dyncmd.c: Likewise.
12633 * include/grub/rescue.h: Removed.
12634 * normal/command.h: Likewise.
12636 * include/grub/script.h: Moved to ...
12637 * include/grub/script_sh.h: ... Moved here.
12638 * normal/execute.c: Moved to ...
12639 * script/sh/execute.c: ... Moved here.
12640 * normal/function.c: Moved to ...
12641 * script/sh/function.c: ... Moved here.
12642 * normal/lexer.c: Moved to ...
12643 * script/sh/lexer.c: ... Moved here.
12644 * normal/parser.y: Moved to ...
12645 * script/sh/parser.y: ... Moved here.
12646 * normal/script.c: Moved to ...
12647 * script/sh/script.c: ... Moved here.
12649 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12651 (grub_exit_env): Removed.
12652 (fs_module_list): Moved to normal/autofs.c.
12653 (grub_file_getline): Don't handle comment here.
12654 (free_menu): Skip removed field entry->commands.
12655 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12657 (read_config_file): Removed nested parameter, change getline function.
12658 (grub_enter_normal_mode): Removed.
12659 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12660 (read_command_list): Likewise.
12661 (autoload_fs_module): Moved to normal/autofs.c.
12662 (read_fs_list): Likewise.
12663 (reader_nested): New variable.
12664 (grub_normal_execute): Run parser.sh to switch to sh parser.
12665 (grub_cmd_rescue): Removed.
12666 (cmd_normal): Removed.
12667 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12669 (grub_cmdline_run): New function.
12670 (grub_normal_reader_init): Likewise.
12671 (grub_normal_read_line): Likewise.
12672 (grub_env_write_pager): Likewise.
12673 (cmdline): New variable.
12674 (grub_normal_reader): Likewise.
12675 (GRUB_MOD_INIT): Register normal reader and set as current, register
12676 pager hook, register normal command with grub_register_command_prio,
12677 so that it won't show up in command.lst.
12678 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12679 grub_fs_autoload_hook.
12681 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12682 (grub_menu_execute_entry): Replace grub_script_execute with
12683 grub_parser_execute, change parameter to grub_command_execute.
12685 * normal/menu_text.c: Remove <grub/script.h>.
12687 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12688 and <grub/parser.h>.
12689 (run): Change editor_getline to use new parser interface. Change
12690 parameter to grub_command_execute.
12692 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12693 <grub/reader.h> and <grub/parser.h>.
12694 (grub_load_normal_mode): Execute normal command.
12695 (grub_main): Call grub_register_core_commands,
12696 grub_register_rescue_parser and grub_register_rescue_reader, use
12697 grub_reader_loop to enter input loop.
12699 * kern/parser.c (grub_parser_split_cmdline): Change type of
12701 (grub_parser_class): New variable.
12702 (grub_parser_execute): New function.
12704 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12705 * loader/multiboot2.c: Likewise.
12706 * loader/sparc64/ieee1275/linux.c: Likewise.
12708 * util/grub-emu.c (read_command_list): New dummy function.
12710 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12712 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12713 count to 16 for CCISS and IDA.
12715 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12717 * normal/menu_text.c (grub_wait_after_message): Print a newline
12718 after waiting for user input.
12720 * loader/i386/linux.c: Include `<grub/normal.h>'.
12721 (grub_cmd_linux): Improve the error message about `ask' mode, by
12722 waiting for user input so it's not missed (we can do this, since
12723 user requested interaction).
12725 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12727 Added missing lst to grub-mkrescue
12729 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12730 and ${input_dir}/parttool.lst
12732 2009-04-30 David S. Miller <davem@davemloft.net>
12734 * util/hostdisk.c (device_is_wholedisk): New function.
12735 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12736 zero only if device_is_wholedisk() returns true.
12738 * util/hostdisk.c (convert_system_partition_to_system_disk):
12739 Handle virtual disk devices named /dev/vdiskX as found on sparc
12742 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12743 lettered partition specifier is found, convert to numbered.
12745 2009-04-29 David S. Miller <davem@davemloft.net>
12747 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12748 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12750 * normal/command.c: Add missing newline at end of file.
12752 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12754 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12755 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12756 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12757 ihandles have a 32-bit type but need to be stored in a "void *".
12759 2009-04-28 Pavel Roskin <proski@gnu.org>
12761 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12762 not disk. Adjust all dependencies.
12763 (grub_fs_uuid_close): Use grub_device_close(), not
12766 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12767 parent's partition, don't copy it by reference, as it gets freed
12770 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12772 Preboot hooks support
12774 * commands/boot.c (struct grub_preboot_t): new declaration
12775 (preboots_head): new variable
12776 (preboots_tail): likewise
12777 (grub_loader_register_preboot_hook): new function
12778 (grub_loader_unregister_preboot_hook): likewise
12779 (grub_loader_set): launch preboot hooks
12780 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12781 (grub_loader_register_preboot_hook): new declaration
12782 (grub_loader_unregister_preboot_hook): likewise
12784 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12788 * disk/scsi.c (grub_scsi_open): added missing cast when
12789 calling grub_dprintf
12791 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12793 Bug and warning fixes
12795 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12797 * commands/test.c (test_parse): fixed bug with file tests and corrected
12798 declaration of find_file
12800 2009-04-26 Pavel Roskin <proski@gnu.org>
12802 * Makefile.in: Don't install empty manual pages if help2man is
12803 missing. Use help2man option for output, not shell redirection.
12805 2009-04-26 David S. Miller <davem@davemloft.net>
12807 * util/grub-mkdevicemap.c (make_device_map): Add missing
12808 NESTED_FUNC_ATTR to process_device().
12810 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12814 * commands/test.c: rewritten to use bash-like test
12816 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12818 Parttool autoloading and improvements
12820 * Makefile.in (pkglib_DATA): add parttool.lst
12821 (parttool.lst): new target
12822 * genmk.rb: generate parttool-*
12823 (CLEANFILES): add #{parttool}
12824 (PARTTOOLFILES): new variable
12825 * genparttoollist.sh: new file
12826 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12827 (grub_pcpart_type): likewise
12828 * commands/parttool.c (helpmsg): new variable
12829 (grub_cmd_parttool): output help if not enough arguments are supplied
12831 (GRUB_MOD_INIT(parttool)): use helpmsg
12833 2009-04-24 David S. Miller <davem@davemloft.net>
12835 Avoiding opening same device multiple times in device iterator.
12837 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12838 and use it to build a list of partitions in iterate_disk() and
12839 iterate_partition().
12841 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12844 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12845 grub_devalias_iterate() result instead of unconditional 0.
12846 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12847 Also, capture hook return value, either directly or via
12848 grub_children_iterate(), and propagate to caller.
12849 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12850 grub_children_iterate): Return value is now 'int' instead of
12852 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12853 like a proper iterator, stopping when hooks return non-zero.
12854 (grub_devalias_iterate): Likewise.
12856 2009-04-23 David S. Miller <davem@davemloft.net>
12858 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12860 2009-04-22 David S. Miller <davem@davemloft.net>
12862 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12863 is larger than address_cells, use that value for address_cells too.
12865 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12866 IEEE1275_MAX_PATH_LEN): Define.
12867 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12868 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12869 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12870 'devtype'. Explicitly NULL terminate devalias expansion.
12872 * util/sparc64/ieee1275/misc.c: New file.
12873 * util/sparc64/ieee1275/grub-setup.c: New file.
12874 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12875 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12876 * util/sparc64/ieee1275/grub-install.in: New file.
12877 * util/ieee1275/ofpath.c: New file.
12878 * util/ieee1275/devicemap.c: New file.
12879 * util/devicemap.c: New file.
12880 * util/deviceiter.c: New file.
12881 * kern/sparc64/ieee1275/init.c: New file.
12882 * include/grub/util/ofpath.h: New file.
12883 * include/grub/util/deviceiter.h: New file.
12884 * util/grub-mkdevicemap.c: Include deviceiter.h.
12885 Implement using grub_util_emit_devicemap_entry and
12886 grub_util_iterate_devices.
12887 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12888 util/devicemap.c into grub-mkdevicemap
12889 * conf/i386-efi.rmk: Likewise.
12890 * conf/i386-ieee1275.rmk: Likewise.
12891 * conf/i386-pc.rmk: Likewise.
12892 * conf/powerpc-ieee1275.rmk: Likewise.
12893 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12894 images and installation utilities. Build kernel as image
12895 instead of as elf binary. Use common rules as much as possible.
12897 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12899 Correct GPT definition
12901 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12904 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12906 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12908 2009-04-19 David S. Miller <davem@davemloft.net>
12910 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12911 (grub_rescue_cmd_linux): Rename to...
12912 (grub_cmd_linux): and fix prototype.
12913 (grub_rescue_cmd_initrd): Rename to...
12914 (grub_cmd_initrd): and fix prototype.
12915 (cmd_linux, cmd_initrd): New.
12916 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12917 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12919 2009-04-17 Pavel Roskin <proski@gnu.org>
12921 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12923 (grub_ohci_transfer): Likewise.
12925 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12927 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12928 return without a value. Fix inconsistent indentation.
12930 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12931 match struct grub_fs.
12933 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12934 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12935 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12936 * commands/lspci.c (grub_lspci_iter): Likewise.
12938 2009-04-16 Bean <bean123ch@gmail.com>
12940 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12943 2009-04-15 Pavel Roskin <proski@gnu.org>
12945 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12946 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12947 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12950 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12952 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12953 that no multiple data or metadata areas are supported and `Unknown
12956 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12958 Move loader out of the kernel
12960 * kern/loader.c: moved to ...
12961 * commands/boot.c: ... moved here
12962 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12963 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12964 * include/grub/kernel.h (grub_machine_fini): export
12965 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12966 (grub_loader_set): likewise
12967 (grub_loader_unset): likewise
12968 (grub_loader_boot): likewise
12969 * conf/common.rmk: new module boot.mod
12970 (pkglib_MODULES): add boot.mod
12971 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12972 (grub_emu_SOURCES): likewise
12973 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12974 (grub_emu_SOURCES): likewise
12975 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12976 (grub_emu_SOURCES): likewise
12977 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12978 (grub_emu_SOURCES): likewise
12979 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12980 (grub_emu_SOURCES): likewise
12981 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12982 (grub_emu_SOURCES): likewise
12983 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12984 (grub_emu_SOURCES): likewise
12986 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12988 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12990 * kern/misc.c (grub_itoa): Removed function
12991 (grub_ltoa): likewise
12992 (grub_vsprintf): use grub_lltoa
12994 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12998 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12999 * conf/i386-coreboot.rmk: likewise
13000 * conf/i386-ieee1275.rmk: likewise
13001 * conf/powerpc-ieee1275.rmk: likewise
13003 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
13005 * INSTALL: Add that `./autogen.sh' needs to be run before
13008 2009-04-14 Bean <bean123ch@gmail.com>
13010 * Makefile.in (pkglib_DATA): Add handler.lst.
13011 (handler.lst): New rule.
13013 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
13014 * conf/i386-coreboot.rmk: Likewise.
13015 * conf/i386-ieee1275.rmk: Likewise.
13016 * conf/i386-efi.rmk: Likewise.
13017 * conf/x86_64-efi.rmk: Likewise.
13018 * conf/powerpc-ieee1275.rmk: Likewise.
13019 * conf/sparc64-ieee1275.rmk: Likewise.
13021 * genhandlerlist.sh: New file.
13023 * genmk.rb: Add rules to generate handler.lst.
13025 * include/grub/normal.h (grub_file_getline): New function definition.
13026 (read_handler_list): Likewise.
13027 (free_handler_list): Likewise.
13029 * include/grub/term.h (grub_term_register_input): Add name parameter
13030 for auto generation of handler.lst.
13031 (grub_term_register_output): Likewise.
13033 * normal/handler.c: New file.
13035 * normal/main.c (get_line): Renamed to grub_file_getline.
13036 (read_config_file): Use the newly renamed grub_file_getline.
13037 (read_command_list): Likewise.
13038 (read_fs_list): Likewise.
13039 (grub_normal_execute): Call read_handler_list to parse handler.lst.
13040 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
13042 * term/efi/console.c (grub_console_init): Add name parameter for auto
13043 generation of handler.lst.
13044 * term/gfxterm.c: Likewise.
13045 * term/i386/pc/at_keyboard.c: Likewise.
13046 * term/i386/pc/console.c: Likewise.
13047 * term/i386/pc/serial.c: Likewise.
13048 * term/i386/pc/vesafb.c: Likewise.
13049 * term/i386/pc/vga.c: Likewise.
13050 * term/i386/pc/vga_text.c: Likewise.
13051 * term/ieee1275/ofconsole.c: Likewise.
13052 * term/usb_keyboard.c: Likewise.
13054 2009-04-14 Bean <bean123ch@gmail.com>
13056 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
13057 properly with null character.
13059 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13061 * configure: Remove.
13062 * config.h.in: Likewise.
13063 * stamp-h.in: Likewise.
13064 * DISTLIST: Likewise.
13065 * conf/common.mk: Likewise.
13066 * conf/i386-coreboot.mk: Likewise.
13067 * conf/i386-efi.mk: Likewise.
13068 * conf/i386-ieee1275.mk: Likewise.
13069 * conf/i386.mk: Likewise.
13070 * conf/i386-pc.mk: Likewise.
13071 * conf/powerpc-ieee1275.mk: Likewise.
13072 * conf/sparc64-ieee1275.mk: Likewise.
13073 * conf/x86_64-efi.mk: Likewise.
13075 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
13078 2009-04-14 John Stanley <jpsinthemix@verizon.net>
13079 David S. Miller <davem@davemloft.net>
13081 * util/hostdisk.c (make_device_name): Fix buffer length
13084 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13086 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
13087 <sys/param.h> and <sys/sysctl.h>.
13088 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
13089 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
13090 opening the device and reset them afterwards.
13092 2009-04-13 Pavel Roskin <proski@gnu.org>
13094 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
13095 Reported by John Stanley <jpsinthemix@verizon.net>
13097 2009-04-13 Robert Millan <rmh@aybabtu.com>
13099 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
13100 that name for menuentries when appropriate.
13102 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13104 * util/grub.d/10_freebsd.in: Add a missing `fi'.
13106 2009-04-13 Robert Millan <rmh@aybabtu.com>
13108 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
13109 to Linux, simply abort telling the user it's no longer supported.
13111 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13113 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
13114 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
13115 `freebsd_loadenv' only when devices.hints exist.
13117 2009-04-13 Pavel Roskin <proski@gnu.org>
13119 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
13121 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13123 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
13125 (grub_drive): Likewise.
13127 2009-04-13 David S. Miller <davem@davemloft.net>
13129 * kern/sparc64/ieee1275/ieee1275.c: New file.
13130 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
13131 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
13132 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
13133 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
13134 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
13135 grub_ieee1275_alloc_physmem): Declare new exported functions.
13137 * include/grub/sparc64/ieee1275/loader.h: New file.
13138 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13139 * include/grub/sparc64/kernel.h: Likewise.
13140 * loader/sparc64/ieee1275/linux.c: Likewise.
13142 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
13143 (grub_fstest_SOURCES): Likewise.
13145 * util/hostdisk.c (make_device_name): Do not make any assumptions
13146 about the length of drive names.
13148 * kern/dl.c (grub_dl_load_file): Close file immediately when
13149 we are done using it.
13151 2009-04-12 David S. Miller <davem@davemloft.net>
13153 * kern/misc.c (grub_ltoa): Fix cast when handling negative
13154 values. Noticed by Pavel Roskin.
13156 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
13159 * genmk.rb: Add more flexible image type specification, also
13160 pass --strip-unneeded to objcopy.
13161 * conf/i386-pc.rmk: Use *_FORMAT.
13162 * conf/i386-pc.mk: Rebuilt.
13164 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
13165 (OFDISK_HASH_SZ): Define.
13166 (ofdisk_hash): New hash table.
13167 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
13168 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
13169 instead of device phandle which is not unique.
13171 * kern/sparc64/ieee1275/init.c: Delete, replace with...
13172 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
13173 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
13174 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
13175 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
13176 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
13177 GRUB_KERNEL_MACHINE_DATA_END): Define.
13178 (grub_kernel_image_size, grub_total_module_size): Declare.
13180 2009-04-12 Pavel Roskin <proski@gnu.org>
13182 * configure.ac: Change the logic when we check for target tools.
13183 Do it when the target is specified and it's different from the
13184 specified value of the host.
13186 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
13188 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
13189 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
13190 GNU/kFreeBSD. Check if a device is a character device. Use
13191 DIOCGMEDIASIZE to get the size.
13192 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
13193 support for GNU/kFreeBSD.
13194 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
13195 is a character device instead of a block device. Add support for
13196 FreeBSD device names.
13198 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
13199 is a character device instead of a block device.
13201 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
13202 is a character device instead of a block device.
13204 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
13206 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
13207 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
13208 FreeBSD. Check if a device is a character device. Use
13209 DIOCGMEDIASIZE to get the size.
13210 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
13211 support for FreeBSD.
13212 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
13213 is a character device instead of a block device. Add support for
13214 FreeBSD device names.
13216 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
13217 a character device instead of a block device.
13218 (grub_util_check_char_device): New function.
13220 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
13221 a character device instead of a block device.
13223 * include/grub/util/getroot.h (grub_util_check_char_device): New
13226 2009-04-11 David S. Miller <davem@davemloft.net>
13228 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
13230 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
13231 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
13232 function, if present.
13233 (__bswapdi2): Likewise.
13235 * include/grub/sparc64/ieee1275/boot.h: New file.
13236 * boot/sparc64/ieee1275/boot.S: Likewise.
13237 * boot/sparc64/ieee1275/diskboot.S: Likewise.
13239 * kern/misc.c (grub_ltoa): New function.
13240 (grub_vsprintf): Use it to format 'long' integers.
13242 2009-04-10 David S. Miller <davem@davemloft.net>
13244 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
13245 slots are of type grub_ieee1275_cell_t.
13246 (grub_nand_read): Likewise.
13247 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
13248 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
13249 macros are used to compare values in arg/ret block of the call.
13250 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13251 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
13252 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
13253 grub_ieee1275_instance_to_path, grub_ieee1275_write,
13254 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
13255 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
13256 grub_ieee1275_close, grub_ieee1275_set_property,
13257 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
13258 grub_ieee1275_cell_t.
13259 * kern/ieee1275/openfw.c (grub_map): Likewise.
13260 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
13261 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
13263 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
13264 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13265 (grub_devalias_iterate): Likewise.
13267 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13271 * fs/ufs.c (INODE_NBLOCKS): new definition
13272 (struct grub_ufs_dirent): added fields for non-BSD dirents
13273 (grub_ufs_get_file_block): fixed double indirect handling
13274 (grub_ufs_lookup_symlink): use more robust way to determine whether
13276 (grub_ufs_find_file): support for non-BSD dirents
13277 (grub_ufs_dir): support for non-BSD dirents
13279 2009-04-10 Bean <bean123ch@gnail.com>
13281 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
13282 attribute, otherwise the size would be wrong for i386 platform.
13284 * include/grub/pci.h (grub_pci_read_word): New inline function.
13285 (grub_pci_read_byte): Likewise.
13286 (grub_pci_write): Likewise.
13287 (grub_pci_write_word): Likewise.
13288 (grub_pci_write_byte): Likewise.
13290 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
13292 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
13293 (find_framebuf): Scan pci to locate the frame buffer address.
13295 * commands/efi/fixvideo.c: New file.
13297 * commands/efi/loadbios.c: Likewise.
13299 * commands/memrw.c: Likewise.
13301 * util/grub-dumpbios.in: Likewise.
13303 * conf/common.rmk (grub-dumpbios): New utility.
13304 (pkglib_MODULES): New module memrw.mod.
13305 (memrw_mod_SOURCE): New macro.
13306 (memrw_mod_CFLAGS): Likewise.
13307 (memrw_mod_LDFLAGS): Likewise.
13309 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
13311 (loadbios_mod_SOURCE): New macro.
13312 (loadbios_mod_CFLAGS): Likewise.
13313 (loadbios_mod_LDFLAGS): Likewise.
13314 (fixvideo_mod_SOURCE): Likewise.
13315 (fixvideo_mod_CFLAGS): Likewise.
13316 (fixvideo_mod_LDFLAGS): Likewise.
13318 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
13320 (loadbios_mod_SOURCE): New macro.
13321 (loadbios_mod_CFLAGS): Likewise.
13322 (loadbios_mod_LDFLAGS): Likewise.
13323 (fixvideo_mod_SOURCE): Likewise.
13324 (fixvideo_mod_CFLAGS): Likewise.
13325 (fixvideo_mod_LDFLAGS): Likewise.
13327 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
13329 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
13331 2009-04-07 David S. Miller <davem@davemloft.net>
13333 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
13334 support for R_SPARC_OLO10 relocations. Fix compile warning for
13335 R_SPARC_WDISP30 case.
13336 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
13338 2009-04-06 Pavel Roskin <proski@gnu.org>
13340 * include/grub/misc.h (ARRAY_SIZE): New macro.
13341 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
13343 * loader/i386/linux.c (allocate_pages): Use free_pages().
13344 (grub_linux_unload): Don't use free_pages().
13345 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
13346 wrong index. Treat all other modes as text modes.
13347 (grub_cmd_linux): Initialize vid_mode unconditionally to
13348 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
13350 * commands/help.c (print_command_help): Use cmd->prio, not
13351 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
13353 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13357 * parttool/pcpart.c: new file
13358 * commands/parttool.c: likewise
13359 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
13360 (parttool_mod_SOURCES): new variable
13361 (parttool_mod_CFLAGS): likewise
13362 (parttool_mod_LDFLAGS): likewise
13363 (pcpart_mod_SOURCES): likewise
13364 (pcpart_mod_CFLAGS): likewise
13365 (pcpart_mod_LDFLAGS): likewise
13366 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
13367 and parttool/pcpart.c
13368 * conf/i386-efi.rmk: likewise
13369 * conf/i386-ieee1275.rmk: likewise
13370 * conf/i386-pc.rmk: likewise
13371 * conf/powerpc-ieee1275.rmk: likewise
13372 * conf/sparc64-ieee1275.rmk: likewise
13373 * conf/x86_64-ieee1275.rmk: likewise
13375 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13377 Support for mtime and further expandability of dir command
13379 * include/grub/lib/datetime.h: moved to ...
13380 * include/grub/datetime.h: ... moved here and added
13381 declaration of grub_unixtime2datetime. All users updated
13382 * include/grub/fs.h: new syntax for dir and mtime functions in
13384 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
13385 and GRUB_FSHELP_FLAGS_MASK
13386 * commands/ls.c (grub_ls_list_files): Write mtime in long format
13387 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
13388 (grub_ext2_mtime): new function
13389 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
13390 (grub_hfsplus_mtime): new function
13391 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
13392 (GRUB_UFS_ATTR_FILE): likewise
13393 (GRUB_UFS_ATTR_LNK): likewise
13394 (struct grub_ufs_sblock): new fields mtime
13395 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
13397 (grub_ufs_dir): mtime support
13398 (grub_ufs_mtime): new function
13399 * fs/affs.c (grub_affs_dir): use new dir syntax
13400 * fs/afs.c (grub_afs_dir): likewise
13401 * fs/cpio.c (grub_cpio_dir): likewise
13402 * fs/fat.c (grub_fat_find_dir): likewise
13403 * fs/hfs.c (grub_hfs_dir): likewise
13404 * fs/iso9660.c (grub_iso9660_dir): likewise
13405 * fs/jfs.c (grub_jfs_dir): likewise
13406 * fs/minix.c (grub_minix_dir): likewise
13407 * fs/ntfs.c (grub_ntfs_dir): likewise
13408 * fs/reiserfs.c (grub_reiserfs_dir): likewise
13409 * fs/sfs.c (grub_sfs_dir): likewise
13410 * fs/xfs.c (grub_xfs_dir): likewise
13411 * util/hostfs.c (grub_hostfs_dir): likewise
13412 * lib/datetime.c: moved to ...
13413 * normal/datetime.c: ... moved here
13414 (grub_unixtime2datetime): new function
13415 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
13416 * normal/completion.c (iterate_dir): use new dir syntax
13417 * normal/misc.c (grub_normal_print_device_info): tell the
13418 last modification time of a volume
13419 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
13420 * conf/common.rmk: added lib/datetime.c to ls.mod
13421 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
13422 (normal_mod_SOURCES): likewise
13423 (datetime_mod_SOURCES): Removed lib/datetime.c
13424 * conf/i386-efi.rmk: likewise
13425 * conf/i386-ieee1275.rmk: likewise
13426 * conf/i386-pc.rmk: likewise
13427 * conf/powerpc-ieee1275.rmk: likewise
13428 * conf/sparc64-ieee1275.rmk: likewise
13429 * conf/x86_64-efi.rmk: likewise
13431 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13433 Trim trailing spaces in FAT label and support mtools-like labels
13435 * fs/fat.c (grub_fat_iterate_dir): New function based
13436 on grub_fat_find_dir
13437 (grub_fat_find_dir): use grub_fat_iterate_dir
13438 (grub_fat_label): likewise
13440 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13442 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
13444 remove extraneous kernel_elf_HEADERS
13446 2009-04-04 Bean <bean123ch@gnail.com>
13448 * include/grub/util/misc.h: Add dummy function fsync for mingw.
13450 * util/misc.c: Likewise.
13452 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
13454 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
13455 instead of grub_printf.
13457 2009-04-03 Robert Millan <rmh@aybabtu.com>
13459 * loader/i386/linux.c (grub_linux_setup_video): Fill
13460 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
13461 values from `mode info' structure instead of hardcoded
13464 2009-04-01 Pavel Roskin <proski@gnu.org>
13466 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
13468 * genmk.rb: Likewise.
13469 * configure.ac: Likewise.
13471 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
13473 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
13474 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
13476 2009-04-01 David S. Miller <davem@davemloft.net>
13478 * normal/sparc64/setjmp.S: Fix setjmp implementation.
13479 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
13480 (grub_setjmp): Mark with 'returns_twice' attribute.
13481 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
13482 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
13483 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
13485 2009-04-01 Robert Millan <rmh@aybabtu.com>
13487 Reapply fix from 2008-07-28 which was accidentally reverted; also
13488 perform the same fix to a similar check in same function.
13490 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13491 with the same number are found, just use issue a warning with
13492 grub_dprintf(), as this error has been reported to be non-fatal.
13494 2009-03-31 Pavel Roskin <proski@gnu.org>
13496 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13497 for cross-compilation.
13499 2009-03-30 Robert Millan <rmh@aybabtu.com>
13501 Fix i386-ieee1275 build.
13503 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13504 Remove declaration.
13506 2009-03-30 Pavel Roskin <proski@gnu.org>
13508 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13509 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13510 zero-terminated, rely only on the strlen value. Fix comparison
13511 of strings differing in length.
13513 2009-03-30 Robert Millan <rmh@aybabtu.com>
13515 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13516 checking for abi version. Improve error messages on BIOS to notify
13517 user about `linux16' command.
13519 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13523 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13524 in case of collision
13525 * disk/scsi.c (grub_scsi_open): free scsi in case of error
13527 2009-03-29 Robert Millan <rmh@aybabtu.com>
13529 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13530 set `vid_mode' accordingly.
13531 (grub_linux_boot): Process `vid_mode' and set video mode.
13533 2009-03-29 Robert Millan <rmh@aybabtu.com>
13535 * util/grub.d/10_linux.in (linux_entry): New function.
13536 Factorize generation of Linux boot entries.
13538 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13540 Make the format of Environment Block plain text. The boot loader
13541 part is not tested well yet.
13543 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13545 (envblk): Likewise.
13546 (usage): Remove "info" and "clear". Add "unset". Update the
13547 description of "set", as this does not delete variables any
13549 (create_envblk_file): Complete rewrite.
13550 (open_envblk_file): Likewise.
13551 (cmd_info): Removed.
13552 (cmd_list): Likewise.
13553 (cmd_set): Likewise.
13554 (cmd_clear): Likewise.
13555 (list_variables): New function.
13556 (write_envblk): Likewise.
13557 (set_variables): Likewise.
13558 (unset_variables): Likewise.
13559 (main): Complete rewrite.
13561 * commands/loadenv.c (buffer): Removed.
13562 (envblk): Likewise.
13563 (open_envblk_file): New function.
13564 (read_envblk_file): Complete rewrite.
13565 (grub_cmd_load_env): Likewise.
13566 (grub_cmd_list_env): Likewise.
13567 (struct blocklist): New struct.
13568 (free_blocklists): New function.
13569 (check_blocklists): Likewise.
13570 (write_blocklists): Likewise.
13571 (grub_cmd_save_env): Complete rewrite.
13573 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13574 a plain text signature.
13575 (GRUB_ENVBLK_MAXLEN): Removed.
13576 (struct grub_envblk): Complete rewrite.
13577 (grub_envblk_find): Removed.
13578 (grub_envblk_insert): Likewise.
13579 (grub_envblk_open): New prototype.
13580 (grub_envblk_set): Likewise.
13581 (grub_envblk_delete): Put const to VALUE.
13582 (grub_envblk_iterate): Put const to NAME and VALUE.
13583 (grub_envblk_close): New prototype.
13584 (grub_envblk_buffer): New inline function.
13585 (grub_envblk_size): Likewise.
13587 * lib/envblk.c: Include grub/mm.h.
13588 (grub_env_find): Removed.
13589 (grub_envblk_open): New function.
13590 (grub_envblk_close): Likewise.
13591 (escaped_value_len): Likewise.
13592 (find_next_line): Likewise.
13593 (grub_envblk_insert): Removed.
13594 (grub_envblk_set): New function.
13595 (grub_envblk_delete): Complete rewrite.
13596 (grub_envblk_iterate): Likewise.
13598 2009-03-28 Robert Millan <rmh@aybabtu.com>
13600 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13601 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13602 variables. Use 16-bit loader.
13603 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13605 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13606 (grub_linux16_boot): ... this. Update all users.
13607 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13608 (grub_linux_boot): ... this. Update all users.
13610 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13611 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13612 commands to `linux16' and `initrd16'.
13613 (GRUB_MOD_FINI(linux)): Rename to ...
13614 (GRUB_MOD_FINI(linux16)): ... this.
13616 2009-03-24 Pavel Roskin <proski@gnu.org>
13618 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13619 not just for compilation.
13621 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13623 Move multiboot helper out of kernel
13625 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13626 `loader/i386/multiboot_helper.S'.
13627 * conf/i386-coreboot.rmk: Likewise
13628 * conf/i386-ieee1275.rmk: Likewise
13630 * kern/i386/loader.S: Move multiboot helpers from here...
13631 * loader/i386/multiboot_helper.S: ...moved here
13632 * include/grub/i386/loader.h: Move declarations of multiboot
13633 helpers from here...
13634 * include/grub/i386/multiboot.h: ...moved here
13635 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13637 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13639 * kern/env.c (grub_env_context_open): Added an argument to specify
13640 whether a new context inherits exported variables from current
13641 one. This is useful when making a sandbox to interpret a config
13643 All callers updated.
13645 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13647 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13649 * kern/env.c (grub_env_context_close): Fix memory leaks.
13651 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13653 * normal/main.c (grub_normal_execute): Added an argument
13654 BATCH to specify if an interactive interface should be provided
13655 after reading a config file.
13656 All callers updated.
13657 (read_command_list): Prevent being executed twice.
13658 (read_fs_list): Likewise.
13660 * include/grub/normal.h (grub_normal_execute): Updated the
13663 2009-03-22 Pavel Roskin <proski@gno.org>
13665 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13667 * kern/i386/pc/startup.S: Likewise.
13668 * kern/i386/efi/startup.S: Likewise.
13669 * kern/i386/ieee1275/startup.S: Likewise.
13670 * kern/i386/coreboot/startup.S: Likewise.
13671 * kern/x86_64/efi/startup.S: Likewise.
13673 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13674 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13675 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13677 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13679 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13681 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13683 Use vaddr of correct segment for entry_point.
13685 2009-03-21 Bean <bean123ch@gmail.com>
13687 * commands/blocklist.c: Add include file <grub/command.h>, remove
13688 <grub/normal.h> and <grub/arg.h>.
13689 (grub_cmd_blocklist): Use the new command interface.
13690 (GRUB_MOD_INIT): Likewise.
13691 (GRUB_MOD_FINI): Likewise.
13692 * commands/boot.c: Likewise.
13693 * commands/cat.c: Likewise.
13694 * commands/cmp.c: Likewise.
13695 * commands/configfile.c: Likewise.
13696 * commands/crc.c: Likewise.
13697 * commands/echo.c: Likewise.
13698 * commands/halt.c: Likewise.
13699 * commands/handler.c: Likewise.
13700 * commands/hdparm.c: Likewise.
13701 * commands/help.c: Likewise.
13702 * commands/hexdump.c: Likewise.
13703 * commands/loadenv.c: Likewise.
13704 * commands/ls.c: Likewise.
13705 * commands/lsmmap.c: Likewise.
13706 * commands/lspci.c: Likewise.
13707 * commands/loadenv.c: Likewise.
13708 * commands/read.c: Likewise.
13709 * commands/reboot.c: Likewise.
13710 * commands/search.c: Likewise.
13711 * commands/sleep.c: Likewise.
13712 * commands/test.c: Likewise.
13713 * commands/usbtest.c: Likewise.
13714 * commands/videotest.c: Likewise.
13715 * commands/i386/cpuid.c: Likewise.
13716 * commands/i386/pc/halt.c: Likewise.
13717 * commands/i386/pc/play.c: Likewise.
13718 * commands/i386/pc/pxecmd.c: Likewise.
13719 * commands/i386/pc/vbeinfo.c: Likewise.
13720 * commands/i386/pc/vbetest.c: Likewise.
13721 * commands/ieee1275/suspend.c: Likewise.
13722 * disk/loopback.c: Likewise.
13723 * font/font_cmd.c: Likewise.
13724 * hello/hello.c: Likewise.
13725 * loader/efi/appleloader.c: Likewise.
13726 * loader/efi/chainloader.c: Likewise.
13727 * loader/i386/bsd.c: Likewise.
13728 * loader/i386/efi/linux.c: Likewise.
13729 * loader/i386/ieee1275/linux.c: Likewise.
13730 * loader/i386/linux.c: Likewise.
13731 * loader/i386/pc/chainloader.c: Likewise.
13732 * loader/i386/pc/linux.c: Likewise.
13733 * loader/powerpc/ieee1275/linux.c: Likewise.
13734 * loader/multiboot_loader.c: Likewise.
13735 * term/gfxterm.c: Likewise.
13736 * term/i386/pc/serial.c: Likewise.
13737 * term/terminfo.c: Likewise.
13739 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13740 * term/i386/pc/vga.c: Likewise.
13741 * video/readers/jpeg.c: Likewise.
13742 * video/readers/png.c: Likewise.
13743 * video/readers/tga.c: Likewise.
13745 * util/grub-fstest (cmd_loopback): Removed.
13746 (cmd_blocklist): Likewise.
13747 (cmd_ls): Likewise.
13748 (grub_register_command): Likewise.
13749 (grub_unregister_command): Likewise.
13750 (execute_command): Use grub_command_find to locate command and execute
13753 * include/grub/efi/chainloader.h: Removed.
13754 * loader/efi/chainloader_normal.c: Likewise.
13755 * loader/i386/bsd_normal.c: Likewise.
13756 * loader/i386/pc/chainloader_normal.c: Likewise.
13757 * loader/i386/pc/multiboot_normal.c: Likewise.
13758 * loader/linux_normal.c: Likewise.
13759 * loader/multiboot_loader_normal.c: Likewise.
13760 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13762 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13763 and grub_register_command_p1.
13765 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13766 kern/command.c, lib/arg.c and commands/extcmd.c.
13767 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13768 (minicmd_mod_SOURCES): New variable.
13769 (minicmd_mod_CFLAGS): Likewise.
13770 (minicmd_mod_LDFLAGS): Likewise.
13771 (extcmd_mod_SOURCES): Likewise.
13772 (extcmd_mod_CFLAGS): Likewise.
13773 (extcmd_mod_LDFLAGS): Likewise.
13774 (boot_mod_SOURCES): Removed.
13775 (boot_mod_CFLAGS): Likewise.
13776 (boot_mod_LDFLAGS): Likewise.
13778 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13780 (kernel_img_HEADERS): Add command.h.
13781 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13782 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13784 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13785 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13786 remove the corresponding normal mode command.
13787 (normal_mod_SOURCES): Remove normal/arg.c.
13788 * conf/i386-coreboot.rmk: Likewise.
13789 * conf/i386-efi.rmk: Likewise.
13790 * conf/i386-ieee1275.rmk: Likewise.
13791 * conf/powerpc-ieee1275.rmk: Likewise.
13792 * conf/x86_64-efi.rmk: Likewise.
13794 * include/grub/arg.h: Move from here ...
13795 * include/grub/lib/arg.h: ... to here.
13797 * normal/arg.c: Move from here ...
13798 * lib/arg.c: ... to here.
13800 * commands/extcmd.c: New file.
13801 * commands/minicmd.c: Likewise.
13802 * include/grub/command.h: Likewise.
13803 * include/grub/extcmd.h: Likewise.
13804 * kern/command.c: Likewise.
13805 * kern/corecmd.c: Likewise.
13807 * kern/list.c (grub_list_iterate): Return int instead of void.
13808 (grub_list_insert): New function.
13809 (grub_prio_list_insert): Likewise.
13811 * kern/rescue.c (grub_rescue_command): Removed.
13812 (grub_rescue_command_list): Likewise.
13813 (grub_rescue_register_command): Likewise.
13814 (grub_rescue_unregister_command): Likewise.
13815 (grub_rescue_cmd_boot): Move to minicmd.c
13816 (grub_rescue_cmd_help): Likewise.
13817 (grub_rescue_cmd_info): Likewise.
13818 (grub_rescue_cmd_boot): Likewise.
13819 (grub_rescue_cmd_testload): Likewise.
13820 (grub_rescue_cmd_dump): Likewise.
13821 (grub_rescue_cmd_rmmod): Likewise.
13822 (grub_rescue_cmd_lsmod): Likewise.
13823 (grub_rescue_cmd_exit): Likewise.
13824 (grub_rescue_print_devices): Moved to corecmd.c.
13825 (grub_rescue_print_files): Likewise.
13826 (grub_rescue_cmd_ls): Likewise.
13827 (grub_rescue_cmd_insmod): Likewise.
13828 (grub_rescue_cmd_set): Likewise.
13829 (grub_rescue_cmd_unset): Likewise.
13830 (attempt_normal_mode): Use grub_command_find to get normal module.
13831 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13832 commands, remove grub_rescue_register_command calls.
13834 * normal/command.c (grub_register_command): Removed.
13835 (grub_unregister_command): Likewise.
13836 (grub_command_find): Likewise.
13837 (grub_iterate_commands): Likewise.
13838 (rescue_command): Likewise.
13839 (export_command): Moved to corecmd.c.
13840 (set_command): Removed.
13841 (unset_command): Likewise.
13842 (insmod_command): Likewise.
13843 (rmmod_command): Likewise.
13844 (lsmod_command): Likewise.
13845 (grub_command_init): Likewise.
13847 * normal/completion.c (iterate_command): Use cmd->prio to check for
13849 (complete_arguments): Use grub_extcmd_t structure to find options.
13850 (grub_normal_do_completion): Change function grub_iterate_commands to
13851 grub_command_iterate.
13853 * normal/execute.c (grub_script_execute_cmd): No need to parse
13856 * normal/main.c (grub_dyncmd_dispatcher): New function.
13857 (read_command_list): Register unload commands as dyncmd.
13858 (grub_cmd_normal): Use new command interface, register rescue,
13859 unregister normal at entry, register normal, unregister rescue at exit.
13861 * include/grub/list.h (grub_list_test_t): New type.
13862 (grub_list_iterate): Return int instead of void.
13863 (grub_list_insert): New function.
13864 (GRUB_AS_NAMED_LIST_P): New macro.
13865 (GRUB_AS_PRIO_LIST): Likewise.
13866 (GRUB_AS_PRIO_LIST_P): Likewise.
13867 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13868 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13869 (grub_prio_list): New structure.
13870 (grub_prio_list_insert): New function.
13871 (grub_prio_list_remove): New inline function.
13873 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13874 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13875 (GRUB_COMMAND_FLAG_MENU): Likewise.
13876 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13877 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13878 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13879 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13880 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13881 (grub_command): Likewise.
13882 (grub_register_command): Likewise.
13883 (grub_command_find): Likewise.
13884 (grub_iterate_commands): Likewise.
13885 (grub_command_init): Likewise.
13886 (grub_arg_parse): Likewise.
13887 (grub_arg_show_help): Likewise.
13889 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13890 (grub_rescue_unregister_command): Likewise.
13892 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13893 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13894 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13896 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13897 grub_rescue_cmd_initrd.
13898 * include/grub/i386/loader.h: Likewise.
13899 * include/grub/x86_64/loader.h: Likewise.
13901 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13903 2009-03-21 Bean <bean123ch@gmail.com>
13905 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13906 instead of stat in mingw environment.
13908 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13910 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13912 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13915 2009-03-21 Bean <bean123ch@gmail.com>
13917 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13918 out of range error.
13920 2009-03-18 Michel Dänzer <michel@daenzer.net>
13922 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13923 checking inode flags for EXT4_EXTENTS_FLAG.
13925 2009-03-18 Robert Millan <rmh@aybabtu.com>
13927 * loader/i386/linux.c: Include `<grub/video.h>' and
13928 `<grub/i386/pc/vbe.h>'..
13929 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13930 (grub_linux32_boot): Attempt to configure video settings with
13931 grub_linux_setup_video().
13932 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13933 to avoid grub_console_fini() which would step out of graphical mode
13936 2009-03-14 Robert Millan <rmh@aybabtu.com>
13938 Fix build on powerpc.
13939 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13941 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13943 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13944 background image command.
13946 2009-03-12 Colin D Bennett <colin@gibibit.com>
13948 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13949 (grub_gfxterm_putchar): Extract pairs of identical calls to
13950 draw_cursor out of conditional blocks.
13952 2009-03-11 Pavel Roskin <proski@gnu.org>
13954 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13955 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13957 2009-03-11 Robert Millan <rmh@aybabtu.com>
13959 * loader/i386/multiboot_elfxx.c
13960 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13962 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13964 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13967 2009-03-11 Robert Millan <rmh@aybabtu.com>
13969 * loader/i386/multiboot.c (code_size): New variable.
13970 (grub_multiboot): Define offsets by adding to `code_size' rather
13971 than subtracting from `grub_multiboot_payload_size'. Provide
13972 4-byte alignment to MBI and others by increasing
13973 `boot_loader_name_length' appropriately.
13975 * loader/i386/multiboot_elfxx.c
13976 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13978 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13983 2009-03-08 Robert Millan <rmh@aybabtu.com>
13985 Make loader/i386/linux.c usable on i386-pc again.
13987 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13989 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13992 2009-03-07 Bean <bean123ch@gmail.com>
13994 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13997 2009-03-06 Robert Millan <rmh@aybabtu.com>
13999 Fix display issue on terminals with screen size other than 80x25
14000 (e.g. gfxterm with resolution higher than 640x480).
14002 * normal/main.c (grub_normal_init_page): Display title text in a
14003 position relative to the center of the terminal instead of relying
14004 on a hardcoded offset.
14006 2009-03-04 Robert Millan <rmh@aybabtu.com>
14008 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
14011 * Makefile.in (host_kernel): New variable.
14012 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
14013 scripts instead of just the windows one.
14014 * configure.ac: Initialize and AC_SUBST `host_kernel'.
14016 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14018 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
14020 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14021 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14022 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14024 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14025 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14027 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14029 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
14030 or if there's no space for the disk label and print the partition number on a
14033 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14035 * util/misc.c: Include <time.h>.
14036 (grub_millisleep): New function.
14038 2009-03-04 Bean <bean123ch@gmail.com>
14040 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
14041 another option -mno-red-zone.
14043 * commands/handler.c: Change module description.
14045 * kern/handler.c: Add missing space at the end of description line.
14047 * kern/list.c: Likewise.
14049 2009-03-03 Robert Millan <rmh@aybabtu.com>
14051 Move more components to the relocation area, and fix mbi pointer
14052 handling to use the destination rather than the origin (thanks to
14053 Vladimir Serbinenko for spotting).
14055 * loader/i386/multiboot.c (mbi_dest): New variable.
14056 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
14057 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
14060 2009-03-01 Bean <bean123ch@gmail.com>
14062 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
14063 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
14064 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
14065 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
14067 * loader/i386/efi/linux.c (acpi_guid): New variable.
14068 (acpi_guid): Likewise.
14069 (EBDA_SEG_ADDR): New constant.
14070 (LOW_MEM_ADDR): Likewise.
14071 (FAKE_EBDA_SEG): Likewise.
14072 (fake_bios_data): New function.
14073 (grub_linux_boot): Call fake_bios_data.
14075 2009-03-01 Bean <bean123ch@gmail.com>
14077 * commands/terminal.c: Removed.
14079 * commands/handler.c: New file.
14081 * include/grub/list.h: Likewise.
14083 * include/grub/handler.h: Likewise.
14085 * kern/list.c: Likewise.
14087 * kern/handler.c: Likewise.
14089 * kern/term.h: Include header file <grub/handler.h>.
14090 (grub_term_input): Move next field to the beginning.
14091 (grub_term_output): Likewise.
14092 (grub_term_input_class): New variable.
14093 (grub_term_output_class): Likewise.
14094 (grub_term_register_input): Changed to inline function.
14095 (grub_term_register_output): Likewise.
14096 (grub_term_unregister_input): Likewise.
14097 (grub_term_unregister_output): Likewise.
14098 (grub_term_set_current_input): Likewise.
14099 (grub_term_set_current_output): Likewise.
14100 (grub_term_get_current_input): Likewise.
14101 (grub_term_get_current_output): Likewise.
14102 (grub_term_iterate_input): Removed.
14103 (grub_term_iterate_output): Likewise.
14105 * kern/term.c (grub_term_list_input): Removed.
14106 (grub_term_list_output): Likewise.
14107 (grub_term_input_class): New variable.
14108 (grub_term_output_class): Likewise.
14109 (grub_cur_term_input): Change variable as macro.
14110 (grub_cur_term_output): Likewise.
14111 (grub_term_register_input): Removed.
14112 (grub_term_register_output): Likewise.
14113 (grub_term_unregister_input): Likewise.
14114 (grub_term_unregister_output): Likewise.
14115 (grub_term_set_current_input): Likewise.
14116 (grub_term_set_current_output): Likewise.
14117 (grub_term_iterate_input): Likewise.
14118 (grub_term_iterate_output): Likewise.
14119 (grub_term_get_current_input): Likewise.
14120 (grub_term_get_current_output): Likewise.
14122 * util/grub-editenv.c: Include header file <grub/handler.h>.
14123 (grub_term_get_current_input): Removed.
14124 (grub_term_get_current_output): Likewise.
14125 (grub_term_input_class): New variable.
14126 (grub_term_output_class): Likewise.
14128 * util/grub-fstest.c (grub_term_get_current_input): Removed.
14129 (grub_term_get_current_output): Likewise.
14130 (grub_term_input_class): New variable.
14131 (grub_term_output_class): Likewise.
14133 * util/grub-probe.c (grub_term_get_current_input): Removed.
14134 (grub_term_get_current_output): Likewise.
14135 (grub_term_input_class): New variable.
14136 (grub_term_output_class): Likewise.
14138 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
14139 (grub_term_get_current_output): Likewise.
14140 (grub_term_input_class): New variable.
14141 (grub_term_output_class): Likewise.
14143 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
14144 (terminal_mod_SOURCES): Likewise.
14145 (terminal_mod_CFLAGS): Likewise.
14146 (terminal_mod_LDFLAGS): Likewise.
14148 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
14150 (kernel_img_SOURCES): Add list.c and handler.c.
14151 (kernel_img_HEADERS): Add list.h and handler.h.
14153 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14155 (kernel_mod_SOURCES): Add list.c and handler.c.
14156 (kernel_mod_HEADERS): Add list.h and handler.h.
14158 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
14160 (kernel_elf_SOURCES): Add list.c and handler.c.
14161 (kernel_elf_HEADERS): Add list.h and handler.h.
14163 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14165 (kernel_elf_SOURCES): Add list.c and handler.c.
14166 (kernel_elf_HEADERS): Add list.h and handler.h.
14168 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14170 (kernel_mod_SOURCES): Add list.c and handler.c.
14171 (kernel_mod_HEADERS): Add list.h and handler.h.
14173 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14175 (kernel_elf_SOURCES): Add list.c and handler.c.
14176 (kernel_elf_HEADERS): Add list.h and handler.h.
14178 2009-02-27 Robert Millan <rmh@aybabtu.com>
14180 Factorize elf32 / elf64 code in Multiboot loader. This will
14181 prevent it from getting out of sync again.
14183 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
14184 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
14185 grub_multiboot_load_elf64): Move from here ...
14186 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
14187 grub_multiboot_load_elf): ... to here (new file).
14189 2009-02-27 Robert Millan <rmh@aybabtu.com>
14191 * util/grub.d/10_linux.in: Rename "single-user mode" to
14194 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
14196 Don't leak in SCSI code.
14197 * disk/scsi.c (grub_scsi_close): free `scsi'.
14199 2009-02-27 Robert Millan <rmh@aybabtu.com>
14201 * loader/i386/pc/multiboot.c: Move from here ...
14202 * loader/i386/multiboot.c: ... to here. Update all users.
14204 2009-02-27 Robert Millan <rmh@aybabtu.com>
14206 Patch from Alexandre Bique <bique.alexandre@gmail.com>
14207 * util/i386/pc/grub-setup.c (setup): Fix directory path.
14209 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
14211 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
14214 2009-02-27 Robert Millan <rmh@aybabtu.com>
14216 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
14217 `0x' qualifier as 0 when base is specified as parameter).
14219 2009-02-24 Bean <bean123ch@gmail.com>
14221 * configure.ac: Check for -mcmodel=large in x86_64 target.
14223 * include/grub/efi/api.h (efi_call_10): New macro.
14224 (efi_wrap_10): New function.
14226 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
14227 (GRUB_PE32_REL_BASED_HIGH): Likewise.
14228 (GRUB_PE32_REL_BASED_LOW): Likewise.
14229 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
14230 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
14231 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
14232 (GRUB_PE32_REL_BASED_SECTION): Likewise.
14233 (GRUB_PE32_REL_BASED_REL): Likewise.
14234 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
14235 (GRUB_PE32_REL_BASED_DIR64): Likewise.
14236 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
14238 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
14241 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
14242 (efi_wrap_10): New function.
14244 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
14246 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
14247 MB/MBP model (NV chipset).
14248 (devdata_devs): Add devpath_5 to the list.
14250 * load/i386/efi/linux.c (video_base): Remove variable.
14251 (RGB_MASK): New macro.
14252 (RGB_MAGIC): Likewise.
14253 (LINE_MIN): Likewise.
14254 (LINE_MAX): Likewise.
14255 (FBTEST_STEP): Likewise.
14256 (FBTEST_COUNT): Likewise.
14257 (fb_list): New variable.
14258 (grub_find_video_card): Remove function.
14259 (find_framebuf): New function.
14260 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
14263 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
14264 problem for x86_64.
14266 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
14268 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
14270 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
14273 2009-02-22 Robert Millan <rmh@aybabtu.com>
14275 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
14276 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
14277 in our relocation, instead of using it directly from heap. Also
14278 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
14280 2009-02-21 Robert Millan <rmh@aybabtu.com>
14282 Implement USB keyboard support (based on patch by Marco Gerards)
14284 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
14285 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
14286 (usb_keyboard_mod_LDFLAGS): New variables.
14288 * term/usb_keyboard.c: New file.
14290 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14292 Corrected wrong declaration
14294 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
14296 2009-02-14 Christian Franke <franke@computer.org>
14298 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
14299 (grub_lspci_iter): Print class code and programming interface byte.
14301 2009-02-14 Christian Franke <franke@computer.org>
14303 * gendistlist.sh: Ignore `.svn' directories.
14305 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
14307 * fs/fat.c: Add 2009 to Copyright line.
14309 2009-02-14 Christian Franke <franke@computer.org>
14311 * commands/hdparm.c: New file. Provides `hdparm' command
14312 which sends ATA commands via grub_disk_ata_pass_through ().
14314 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
14316 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
14317 and <grub/cpu/io.h> to include/grub/ata.h.
14318 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
14319 (GRUB_CDROM_SECTOR_SIZE): Remove.
14320 (GRUB_ATA_*): Move to include/grub/ata.h.
14321 (GRUB_ATAPI_*): Likewise.
14322 (enum grub_ata_commands): Likewise.
14323 (enum grub_ata_timeout_milliseconds): Likewise.
14324 (struct grub_ata_device): Likewise.
14325 (grub_ata_regset): Likewise.
14326 (grub_ata_regget): Likewise.
14327 (grub_ata_regset2): Likewise.
14328 (grub_ata_regget2): Likewise.
14329 (grub_ata_check_ready): Likewise.
14330 (grub_ata_wait_not_busy): Remove static, exported in
14331 include/grub/ata.h.
14332 (grub_ata_wait_drq): Likewise.
14333 (grub_ata_pio_read): Likewise.
14335 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
14336 function for hdparm.mod.
14338 * include/grub/ata.h: New file, contains declarations from
14340 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
14342 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
14343 (grub_disk_ata_pass_through): New exported variable.
14345 * kern/disk.c (grub_disk_ata_pass_through): New variable.
14347 2009-02-13 Colin D Bennett <colin@gibibit.com>
14349 Support multiple fallback entries, and provide an API to support
14350 executing default+fallback menu entries. Renamed the `terminal' menu
14353 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
14354 variable declaration.
14355 (grub_menu_execute_callback): New structure declaration.
14356 (grub_menu_execute_callback_t): New typedef.
14357 (grub_menu_execute_with_fallback): New function declaration.
14358 (grub_menu_get_entry): Likewise.
14359 (grub_menu_get_timeout): Likewise.
14360 (grub_menu_set_timeout): Likewise.
14362 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
14364 * normal/menu.c (grub_wait_after_message): Moved to
14365 `normal/menu_text.c'.
14366 (draw_border): Likewise.
14367 (print_message): Likewise.
14368 (print_entry): Likewise.
14369 (print_entries): Likewise.
14370 (grub_menu_init_page): Likewise.
14371 (get_entry_number): Likewise.
14372 (print_timeout): Likewise.
14373 (run_menu): Likewise.
14374 (grub_menu_execute_entry): Likewise.
14375 (show_text_menu): Likewise.
14376 (get_and_remove_first_entry_number): New function.
14377 (grub_menu_execute_with_fallback): Likewise.
14378 (get_entry): Renamed to ...
14379 (grub_menu_get_entry): .. this and made it global.
14380 (get_timeout): Renamed to ...
14381 (grub_menu_get_timeout): ... this and made it global.
14382 (set_timeout): Renamed to ...
14383 (grub_menu_set_timeout): ... this and made it global.
14384 (grub_normal_terminal_menu_viewer): Renamed to ...
14385 (grub_normal_text_menu_viewer): ... this.
14387 * normal/menu_text.c: New file. Extracted text-menu-specific code
14388 from normal/menu.c.
14390 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
14391 (normal_mod_SOURCES): Likewise.
14393 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14394 (normal_mod_SOURCES): Likewise.
14396 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14397 (normal_mod_SOURCES): Likewise.
14399 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
14400 (normal_mod_SOURCES): Likewise.
14402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14403 (normal_mod_SOURCES): Likewise.
14405 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14406 (normal_mod_SOURCES): Likewise.
14408 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14409 (normal_mod_SOURCES): Likewise.
14411 2009-02-11 Robert Millan <rmh@aybabtu.com>
14413 * util/grub.d/00_header.in: Update old reference to `font' command.
14415 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
14417 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
14419 Based on patch from Javier Martín.
14421 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14423 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
14424 to avoid false positives with FAT.
14425 (grub_fstest_SOURCES): Likewise.
14426 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14427 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14429 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14430 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14431 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14433 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14435 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
14436 bpb.version_specific.fat12_or_fat16.fstype and
14437 bpb.version_specific.fat32.fstype.
14439 2009-02-08 Robert Millan <rmh@aybabtu.com>
14441 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
14443 2009-02-08 Robert Millan <rmh@aybabtu.com>
14445 * Makefile.in (host_os, host_cpu): New variables.
14446 (target_os): Remove. Update all users.
14448 2009-02-08 Marco Gerards <marco@gnu.org>
14450 * Makefile.in (enable_grub_emu_usb): New variable.
14451 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
14452 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
14453 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
14454 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
14455 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
14456 `usbtest.mod' and `usbms.mod'.
14457 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
14458 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
14459 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
14460 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
14461 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
14464 * disk/usbms.c: New file.
14466 * include/grub/usb.h: Likewise.
14468 * include/grub/usbtrans.h: Likewise.
14470 * include/grub/usbdesc.h: Likewise.
14472 * bus/usb/usbtrans.c: Likewise.
14474 * bus/usb/ohci.c: Likewise.
14476 * bus/usb/uhci.c: Likewise.
14478 * bus/usb/usbhub.c: Likewise.
14480 * bus/usb/usb.c: Likewise.
14482 * commands/usbtest.c: Likewise.
14484 * util/usb.c: Likewise.
14486 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
14488 * configure.ac: Test for libusb presence.
14490 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14492 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14494 * kern/mm.c: Add more comments.
14496 2009-02-08 Robert Millan <rmh@aybabtu.com>
14498 Patch from Javier Martín.
14499 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14500 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14502 2009-02-08 Robert Millan <rmh@aybabtu.com>
14504 * fs/cpio.c: Split tar functionality to ...
14505 * fs/tar.c: ... here (new file). Update all users.
14507 2009-02-07 Robert Millan <rmh@aybabtu.com>
14509 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14510 backward-incompatible features.
14512 Based on patch from Javier Martín, with some adjustments.
14514 2009-02-07 Michael Scherer <misc@mandriva.org>
14516 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14518 2009-02-07 Robert Millan <rmh@aybabtu.com>
14520 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14521 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14522 after the RAID stuff.
14524 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14526 Fixes problem when running vbetest command as reported by
14527 Vladimir Serbinenko <phcoder@gmail.com>.
14529 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14531 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
14533 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14534 /dev/md/NpN style mdraid devices.
14536 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14538 * util/unifont2pff.rb: Remove.
14540 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14542 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14545 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14547 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14548 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14549 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14550 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14552 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14553 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14555 2009-02-02 Christian Franke <franke@computer.org>
14557 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14559 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
14561 * INSTALL: Note that we now require at least autoconf 2.59 and
14562 that LZO is optional.
14564 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14566 Base on patch on bug #24154 created by Tomas Tintera
14567 <trosos@seznam.cz>.
14569 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14571 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14573 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14574 <bero@arklinux.org>.
14576 * normal/parser.y (script_init): Add missing semicolon.
14578 2009-01-31 Colin D Bennett <colin@gibibit.com>
14580 * normal/main.c: Add include to grub/menu_viewer.h.
14581 (free_menu_entry_classes): Added.
14582 (grub_normal_menu_addentry): Added class property handling.
14583 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14584 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14586 * normal/menu_viewer.c: New file.
14588 * normal/menu.c (run_menu_entry): Renamed to ...
14589 (grub_menu_execute_entry): ... this and made it as global.
14590 (grub_menu_run): Renamed to ...
14591 (show_text_menu): ... this and made it local.
14592 (show_text_menu): Adapt to new function names.
14593 (grub_normal_terminal_menu_viewer): New global variable.
14595 * include/grub/menu.h: New file.
14597 * include/grub/menu_viewer.h: New file.
14599 * include/grub/normal.h: Added include to grub/menu.h.
14600 (grub_menu_entry): Moved to include/grub/menu.h.
14601 (grub_menu_entry_t): Likewise.
14602 (grub_menu): Likewise.
14603 (grub_menu_t): Likewise.
14604 (grub_normal_terminal_menu_viewer): Added.
14605 (grub_menu_execute_entry): Likewise.
14606 (grub_menu_run): Removed.
14608 * DISTLIST: Added include/grub/menu.h.
14609 Added include/grub/menu_viewer.h.
14610 Added normal/menu_viewer.c.
14612 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14614 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14615 arglist for menutitle arguments.
14617 * normal/main.c (grub_normal_menu_addentry): Likewise.
14619 * normal/parser.y (menuentry): Likewise.
14621 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14623 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14624 (grub_script_create_cmdmenu): Likewise.
14626 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14628 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14631 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14633 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14635 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14637 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14639 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14641 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14643 2009-01-30 Christian Franke <franke@computer.org>
14645 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14646 in option help text.
14648 2009-01-27 Pavel Roskin <proski@gnu.org>
14650 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14652 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14654 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14656 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14658 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14659 unregister function.
14661 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14663 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14665 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14667 * util/grub-mkfont.c (usage): Fix typo.
14669 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14671 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14673 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14675 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14677 * kern/misc.c (grub_strcasecmp): New function.
14678 (grub_strcasecmp): Use grub_size_t instead of int for length.
14680 * include/grub/misc.h: Update function prototypes.
14682 2009-01-26 Robert Millan <rmh@aybabtu.com>
14684 * configure.ac: Fix cross-compilation check.
14686 2009-01-22 Christian Franke <franke@computer.org>
14688 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14689 (precision) digit string. Allow `.format2' without `format1' (width).
14690 Limit input chars for `%s' output to `format2' if specified. This is
14691 compatible with standard printf ().
14693 2009-01-22 Christian Franke <franke@computer.org>
14695 * disk/ata.c (grub_ata_wait_status): Replace by ...
14696 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14697 other status bits may be invalid while BSY is asserted.
14698 (grub_ata_check_ready): New function.
14699 (grub_ata_cmd): Removed.
14700 (grub_ata_wait_drq): New function.
14701 (grub_ata_strncpy): Remove inline.
14702 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14703 and error check now done by grub_ata_wait_drq ().
14704 (grub_ata_pio_write): Likewise.
14705 (grub_atapi_identify): Set DEV before check for !BSY. Use
14706 grub_ata_wait_drq () to wait for data.
14707 (grub_ata_device_initialize): Add status register check to
14708 detect missing SATA slave devices. Add debug messages.
14709 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14710 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14711 transfer loop by grub_ata_pio_write ().
14712 (grub_ata_identify): Set DEV before check for !BSY. Use
14713 grub_ata_wait_drq () to wait for data.
14714 (grub_ata_setaddress): Set DEV before check for !BSY.
14715 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14716 read/write in one loop. Fix invalid command on write. Fix incomplete
14717 command on (size % batch) == 0. Add missing error check after write of
14718 last block. Add debug messages.
14719 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14721 2009-01-19 Christian Franke <franke@computer.org>
14723 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14724 (GRUB_ATAPI_IREASON_*): Likewise.
14725 (grub_ata_pio_write): Fix timeout error return.
14726 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14727 (grub_atapi_wait_drq): New function.
14728 (grub_atapi_packet): New parameter `size'.
14729 Use grub_atapi_wait_drq () and direct write instead of
14730 grub_ata_pio_write ().
14731 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14732 reads the number of bytes requested by the device for each DRQ
14734 (grub_atapi_write): Remove old implementation, return not
14735 implemented instead.
14737 2009-01-19 Christian Franke <franke@computer.org>
14739 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14740 of 512 to calculate data size.
14741 (grub_scsi_read12): Likewise.
14742 (grub_scsi_write10): Likewise.
14743 (grub_scsi_write12): Likewise.
14744 (grub_scsi_read): Adjust size according to blocksize.
14745 Add checks for invalid blocksize and unaligned transfer.
14747 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14749 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14751 * term/gfxterm.c (write_char): Fix background rendering for wide
14754 2009-01-19 Robert Millan <rmh@aybabtu.com>
14756 * config.guess: Update to latest version from config git.
14757 * config.sub: Likewise.
14759 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14761 * Makefile.in: Change font compilation to use new grub-mkfont instead
14764 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14765 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14766 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14767 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14768 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14769 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14770 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14771 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14772 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14774 2009-01-16 Christian Franke <franke@computer.org>
14776 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14777 (enum grub_ata_timeout_milliseconds): New enum.
14778 (grub_ata_wait_status): Add parameter milliseconds.
14779 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14780 recovery from timed-out commands.
14781 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14782 return grub_errno instead of REG_ERROR.
14783 (grub_ata_pio_write): Add parameter milliseconds.
14784 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14785 Pass milliseconds to grub_ata_wait_status () and
14786 grub_ata_pio_read ().
14787 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14788 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14789 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14790 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14791 It is not suitable for device detection, because DEV bit is ignored,
14792 the command may run too long, and not all devices set the signature
14794 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14795 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14796 Fix device selection, DEV bit must be set first to address the registers
14797 of the correct device.
14798 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14799 grub_ata_pio_read/write ().
14800 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14801 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14803 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14805 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14807 2009-01-13 Bean <bean123ch@gmail.com>
14809 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14811 2009-01-13 Bean <bean123ch@gmail.com>
14813 * Makefile.in: (enable_grub_mkfont): New variable.
14814 (freetype_cflags): Likewise.
14815 (freetype_libs): Likewise.
14817 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14818 (grub_mkfont_SOURCES): New variable.
14819 (grub_mkfont_CFLAGS): Likewise.
14820 (grub_mkfont_LDFLAGS): Likewise.
14822 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14823 library if `--enable-grub-mkfont' is requested.
14824 (enable_grub_mkfont): New variable.
14825 (freetype_cflags): Likewise.
14826 (freetype_libs): Likewise.
14828 * util/grub-mkfont.c: New file.
14830 2009-01-12 Christian Franke <franke@computer.org>
14832 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14833 mode check. Fix setting of compat_use[].
14835 2009-01-10 Robert Millan <rmh@aybabtu.com>
14837 Update a few copyright years which we forgot to do in 2008 (only for
14838 files whose changes made in 2008 were copyright-significant)
14840 * Makefile.in: Add 2008 to Copyright line.
14841 * disk/ieee1275/ofdisk.c: Likewise.
14842 * disk/efi/efidisk.c: Likewise.
14843 * kern/dl.c: Likewise.
14844 * kern/sparc64/ieee1275/init.c: Likewise.
14845 * kern/mm.c: Likewise.
14846 * kern/efi/mm.c: Likewise.
14847 * boot/i386/pc/boot.S: Likewise.
14848 * genfslist.sh: Likewise.
14849 * fs/iso9660.c: Likewise.
14850 * fs/hfs.c: Likewise.
14851 * fs/jfs.c: Likewise.
14852 * fs/minix.c: Likewise.
14853 * fs/ufs.c: Likewise.
14854 * gensymlist.sh.in: Likewise.
14855 * genkernsyms.sh.in: Likewise.
14856 * include/grub/misc.h: Likewise.
14857 * include/grub/types.h: Likewise.
14858 * include/grub/symbol.h: Likewise.
14859 * include/grub/elf.h: Likewise.
14860 * include/grub/kernel.h: Likewise.
14861 * include/grub/disk.h: Likewise.
14862 * include/grub/dl.h: Likewise.
14863 * include/grub/i386/linux.h: Likewise.
14864 * include/grub/i386/pc/biosdisk.h: Likewise.
14865 * include/grub/efi/api.h: Likewise.
14866 * include/grub/efi/pe32.h: Likewise.
14867 * include/grub/util/misc.h: Likewise.
14868 * normal/execute.c: Likewise.
14869 * normal/arg.c: Likewise.
14870 * normal/completion.c: Likewise.
14871 * normal/lexer.c: Likewise.
14872 * normal/parser.y: Likewise.
14873 * normal/misc.c: Likewise.
14874 * commands/i386/pc/vbeinfo.c: Likewise.
14875 * commands/hexdump.c: Likewise.
14876 * commands/terminal.c: Likewise.
14877 * commands/ls.c: Likewise.
14878 * commands/help.c: Likewise.
14879 * partmap/pc.c: Likewise.
14880 * loader/efi/chainloader.c: Likewise.
14881 * loader/multiboot_loader.c: Likewise.
14882 * loader/i386/pc/multiboot2.c: Likewise.
14883 * term/efi/console.c: Likewise.
14884 * term/i386/pc/serial.c: Likewise.
14885 * util/lvm.c: Likewise.
14886 * util/console.c: Likewise.
14887 * util/i386/efi/grub-mkimage.c: Likewise.
14888 * util/raid.c: Likewise.
14890 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14892 * commands/videotest.c: Removed include to grub/machine/memory.h.
14894 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14895 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14896 (video_mod_SOURCES): Removed.
14897 (video_mod_CFLAGS): Likewise.
14898 (video_mod_LDFLAGS): Likewise.
14899 (gfxterm_mod_SOURCES): Likewise.
14900 (gfxterm_mod_CFLAGS): Likewise.
14901 (gfxterm_mod_LDFLAGS): Likewise.
14902 (videotest_mod_SOURCES): Likewise.
14903 (videotest_mod_CFLAGS): Likewise.
14904 (videotest_mod_LDFLAGS): Likewise.
14905 (bitmap_mod_SOURCES): Likewise.
14906 (bitmap_mod_CFLAGS): Likewise.
14907 (bitmap_mod_LDFLAGS): Likewise.
14908 (tga_mod_SOURCES): Likewise.
14909 (tga_mod_CFLAGS): Likewise.
14910 (tga_mod_LDFLAGS): Likewise.
14911 (jpeg_mod_SOURCES): Likewise.
14912 (jpeg_mod_CFLAGS): Likewise.
14913 (jpeg_mod_LDFLAGS): Likewise.
14914 (png_mod_SOURCES): Likewise.
14915 (png_mod_CFLAGS): Likewise.
14916 (png_mod_LDFLAGS): Likewise.
14918 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14919 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14920 (video_mod_SOURCES): Added.
14921 (video_mod_CFLAGS): Likewise.
14922 (video_mod_LDFLAGS): Likewise.
14923 (videotest_mod_SOURCES): Likewise.
14924 (videotest_mod_CFLAGS): Likewise.
14925 (videotest_mod_LDFLAGS): Likewise.
14926 (bitmap_mod_SOURCES): Likewise.
14927 (bitmap_mod_CFLAGS): Likewise.
14928 (bitmap_mod_LDFLAGS): Likewise.
14929 (tga_mod_SOURCES): Likewise.
14930 (tga_mod_CFLAGS): Likewise.
14931 (tga_mod_LDFLAGS): Likewise.
14932 (jpeg_mod_SOURCES): Likewise.
14933 (jpeg_mod_CFLAGS): Likewise.
14934 (jpeg_mod_LDFLAGS): Likewise.
14935 (png_mod_SOURCES): Likewise.
14936 (png_mod_CFLAGS): Likewise.
14937 (png_mod_LDFLAGS): Likewise.
14938 (gfxterm_mod_SOURCES): Likewise.
14939 (gfxterm_mod_CFLAGS): Likewise.
14940 (gfxterm_mod_LDFLAGS): Likewise.
14942 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14943 grub/machine/console.h.
14945 2009-01-04 Jerone Young <jerone@gmail.com>
14947 Make on screen instructions clearer
14949 Based on patch created by Jidanni <jidanni@jidanni.org>
14951 * normal/menu.c: print clearer instructions on the screen
14953 2009-01-02 Colin D Bennett <colin@gibibit.com>
14957 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14958 build system and fixed gfxterm.c to work with different sized fonts.
14960 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14962 * configure: Re-generated.
14964 * DISTLIST: Removed font/manager.c.
14966 Added font/font_cmd.c.
14968 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14971 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14973 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14975 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14977 * normal/menu.c: Likewise.
14979 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14980 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14982 * include/grub/font.h: Replaced with new file.
14984 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14985 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14986 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14987 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14988 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14989 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14990 fg_red, fg_green, fg_blue, fg_alpha.
14991 (grub_video_adapter): Removed blit_glyph.
14992 (grub_video_blit_glyph): Removed.
14994 * font/manager.c: Removed file.
14996 * font/font.c: New file.
14998 * font/font_cmd.c: Likewise.
15000 * video/video.c (grub_video_blit_glyph): Removed.
15002 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
15003 (grub_video_vbe_map_rgba): Likewise.
15004 (grub_video_vbe_unmap_color_int): Likewise.
15005 (grub_video_vbe_blit_glyph): Removed.
15006 (grub_video_vbe_adapter): Removed blit_glyph.
15008 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
15009 (get_pixel): Likewise.
15010 (set_pixel): Likewise.
15012 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
15014 * term/gfxterm.c: Adapted to new font engine.
15016 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
15018 * term/i386/pc/vga.c: Likewise.
15020 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
15022 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
15024 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15026 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15028 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
15030 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
15032 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
15034 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
15036 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
15038 * util/grub.d/00_header.in: Changed to use new loadfont command.
15040 * util/grub-mkconfig_lib.in: Changed font extension.
15042 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
15044 * util/getroot.c (grub_util_get_grub_dev): Add support for
15045 /dev/md/dNNpNN style partitionable mdraid devices.
15047 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
15049 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
15050 at a time limit of the PXE TFTP API correctly.
15051 (grub_pxefs_close): Likewise.
15053 2008-11-29 Robert Millan <rmh@aybabtu.com>
15055 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
15056 grub_ata_device_initialize() calls.
15058 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
15060 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
15062 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
15064 2008-11-28 Robert Millan <rmh@aybabtu.com>
15066 Fix build on powerpc-ieee1275. Based on patch created by
15067 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
15068 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15069 `kern/ieee1275/mmap.c'.
15070 * include/grub/powerpc/ieee1275/memory.h: New file.
15072 Provide grub-install on coreboot.
15073 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
15074 (grub_install_SOURCES): New variable.
15075 * util/i386/pc/grub-install.in: Add a few condition checks to make it
15076 usable on coreboot.
15078 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
15080 * util/grub-fstest.c (grub_term_get_current_input): Change return type
15081 to `grub_term_input_t'.
15082 (grub_term_get_current_output): Change return type to
15083 `grub_term_output_t'.
15085 2008-11-22 Robert Millan <rmh@aybabtu.com>
15087 Fix breakage on coreboot due to declaration mismatch.
15088 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
15089 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
15090 grub_vga_text_cls().
15092 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
15093 comments. Avoid copying one more byte than necessary (just in case).
15095 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
15096 to 0x200000 (avoids trouble with some OFW implementations, and matches
15097 with the one in Yaboot).
15098 Reported by Manoel Abranches
15100 2008-11-20 Robert Millan <rmh@aybabtu.com>
15102 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
15103 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
15105 * util/grub-mkconfig_lib.in (grub_warn): New function.
15106 (convert_system_path_to_grub_path): Use grub_warn() when issuing
15107 warnings, to obtain consistent formatting.
15108 * util/grub.d/00_header.in: Likewise.
15109 * util/update-grub_lib.in: Likewise.
15111 * loader/i386/linux.c (allocate_pages): Fix a warning.
15112 Move comment text to `#error' stanza.
15114 Harmonize ieee1275's grub_available_iterate() with the generic
15115 grub_machine_mmap_iterate() interface (fixes a recently-introduced
15116 build problem on i386-ieee1275):
15117 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
15118 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
15119 parameter `type'. Update all users of this function.
15120 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
15121 `kern/ieee1275/mmap.c'.
15122 * kern/ieee1275/init.c
15123 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
15125 (grub_machine_mmap_iterate): ... this.
15126 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
15127 return type to `grub_err_t'. Update all implementations of this
15128 function prototype.
15129 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
15132 Add `lsmmap' command (lists firmware-provided memory map):
15133 * commands/lsmmap.c: New file.
15134 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
15135 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
15137 * conf/powerpc-ieee1275.rmk: Likewise.
15138 * conf/i386-coreboot.rmk: Likewise.
15139 * conf/i386-ieee1275.rmk: Likewise.
15141 2008-11-19 Robert Millan <rmh@aybabtu.com>
15143 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
15144 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
15145 constraints to initrd allocation (based on code from
15146 loader/i386/pc/linux.c). Without them, initrd was allocated too high
15147 for Linux to find it.
15149 2008-11-14 Robert Millan <rmh@aybabtu.com>
15151 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
15152 order to cope with duplicate slashes.
15154 2008-11-14 Robert Millan <rmh@aybabtu.com>
15156 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
15157 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
15158 don't want to mess with lower memory, because it is used in the Linux
15161 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
15162 an appropriate place in lower memory, between 0x10000 and 0x90000,
15163 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
15164 is in our heap (probably as a result of it being corrupted during
15165 decompression). Add #error instance with comment to explain why this
15166 loader isn't currently usable on PC/BIOS.
15168 2008-11-14 Robert Millan <rmh@aybabtu.com>
15170 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
15171 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
15173 2008-11-12 Robert Millan <rmh@aybabtu.com>
15175 Make loader/i386/linux.c buildable on i386-pc (although disabled).
15177 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
15178 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
15180 * include/grub/i386/pc/memory.h: ... to here.
15182 2008-11-12 Robert Millan <rmh@aybabtu.com>
15184 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
15187 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
15188 (grub_console_cur_color, grub_console_real_putchar)
15189 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15190 (grub_console_setcolorstate, grub_console_setcolor)
15191 (grub_console_getcolor): Move from here ...
15192 * include/grub/i386/vga_common.h: ... to here (new file).
15194 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
15195 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
15196 `<grub/i386/io.h>'.
15197 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
15198 `<grub/i386/vga_common.h>'.
15200 2008-11-12 Robert Millan <rmh@aybabtu.com>
15202 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
15203 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
15204 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
15206 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15207 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
15209 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
15210 grub_console_init() with call to grub_vga_text_init().
15211 (grub_machine_fini): Replace call to
15212 grub_console_fini() with call to grub_vga_text_fini() and
15213 grub_at_keyboard_fini().
15215 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
15216 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15217 (grub_console_setcolorstate, grub_console_setcolor)
15218 (grub_console_getcolor): New function prototypes.
15220 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
15221 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
15222 (grub_vga_text_setcursor): Static-ize.
15223 (grub_vga_text_term): New structure.
15224 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
15226 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
15227 (grub_console_cur_color, grub_console_standard_color)
15228 (grub_console_normal_color, grub_console_highlight_color)
15229 (map_char, grub_console_putchar, grub_console_getcharwidth)
15230 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
15231 (grub_console_getcolor): Move from here ...
15232 * term/i386/vga_common.c: ... to here (same function names).
15234 2008-11-12 Robert Millan <rmh@aybabtu.com>
15236 Use newly-added Multiboot support in coreboot.
15238 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15239 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
15241 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
15242 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
15243 (codestart): Store the MBI in `startup_multiboot_info' when we're
15244 being loaded using Multiboot.
15246 * kern/i386/coreboot/init.c (grub_machine_init): Move
15247 grub_at_keyboard_init() call to beginning of function (useful for
15248 debugging). Call grub_machine_mmap_init() before attempting to use
15249 grub_machine_mmap_iterate().
15250 (grub_lower_mem, grub_upper_mem): Move from here ...
15251 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
15254 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
15255 function prototype.
15257 2008-11-12 Robert Millan <rmh@aybabtu.com>
15259 Fix a regression introduced by the at_keyboard.mod split. Because
15260 some terminals are default on some platforms and non-default on
15261 others, the first terminal being registered determines which is
15262 going to be default.
15264 * kern/term.c (grub_term_register_input): If this is the first
15265 terminal being registered, set it as the current one.
15266 (grub_term_register_output): Likewise.
15268 * term/efi/console.c (grub_console_init): Do not call
15269 grub_term_set_current_output() or grub_term_set_current_input().
15270 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
15271 * term/i386/pc/console.c (grub_console_init): Likewise.
15272 (grub_console_fini): Do not call grub_term_set_current_input()
15273 (but leave grub_term_set_current_output() to restore text mode).
15275 2008-11-10 Robert Millan <rmh@aybabtu.com>
15277 * util/grub.d/00_header.in: Add backward compatibility check for
15278 versions of terminal.mod that don't understand `terminal_input' or
15281 2008-11-09 Robert Millan <rmh@aybabtu.com>
15283 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
15284 `terminal_input' / `terminal_output', not `terminal'.
15286 2008-11-08 Robert Millan <rmh@aybabtu.com>
15288 * Makefile.in (include_DATA): Fix srcdir=. assumption.
15289 (DISTCLEANFILES): Add `build_env.mk'.
15291 2008-11-08 Robert Millan <rmh@aybabtu.com>
15293 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
15294 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15295 members. Update all users.
15296 * util/console.c (grub_ncurses_term): Split in ...
15297 (grub_ncurses_term_input): ... this, and ...
15298 (grub_ncurses_term_output): ... this. Update all users.
15299 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
15301 2008-11-08 Robert Millan <rmh@aybabtu.com>
15303 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
15304 (PKGDATA): Add $(pkgdata_SRCDIR).
15305 (pkglib_BUILDDIR): New variable.
15306 (pkgdata_SRCDIR): New variable.
15307 (build_env.mk): New target.
15308 (include_DATA): New variable.
15309 (install-local): Install $(include_DATA) files in $(includedir).
15311 2008-11-07 Pavel Roskin <proski@gnu.org>
15313 * gendistlist.sh: Use C locale for sorting to ensure consistent
15314 output on all systems.
15316 * util/grub.d/00_header.in: Remove incorrect space before
15319 2008-11-07 Robert Millan <rmh@aybabtu.com>
15321 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
15323 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
15324 * loader/multiboot_loader.c (find_multi_boot2_header): New function
15325 (based on find_multi_boot1_header).
15326 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
15327 using find_multi_boot2_header(), and abort if neither Multiboot or
15328 Multiboot headers were found.
15330 2008-11-07 Robert Millan <rmh@aybabtu.com>
15332 Modularize at_keyboard.mod:
15334 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
15335 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
15336 (at_keyboard_mod_LDFLAGS): New variables.
15338 Actual terminal split:
15340 * include/grub/term.h (struct grub_term): Split in ...
15341 (struct grub_term_input): ... this, and ...
15342 (struct grub_term_output): ... this. Update all users.
15343 (grub_term_set_current): Split in ...
15344 (grub_term_set_current_input): ... this, and ...
15345 (grub_term_set_current_output): ... this.
15346 (grub_term_get_current): Split in ...
15347 (grub_term_get_current_input): ... this, and ...
15348 (grub_term_get_current_output): ... this.
15349 (grub_term_register): Split in ...
15350 (grub_term_register_input): ... this, and ...
15351 (grub_term_register_output): ... this.
15352 (grub_term_unregister): Split in ...
15353 (grub_term_unregister_input): ... this, and ...
15354 (grub_term_unregister_output): ... this.
15355 (grub_term_iterate): Split in ...
15356 (grub_term_iterate_input): ... this, and ...
15357 (grub_term_iterate_output): ... this.
15359 * kern/term.c (grub_term_list): Split in ...
15360 (grub_term_list_input): ... this, and ...
15361 (grub_term_list_output): ... this. Update all users.
15362 (grub_cur_term): Split in ...
15363 (grub_cur_term_input): ... this, and ...
15364 (grub_cur_term_output): ... this. Update all users.
15365 (grub_term_set_current): Split in ...
15366 (grub_term_set_current_input): ... this, and ...
15367 (grub_term_set_current_output): ... this.
15368 (grub_term_get_current): Split in ...
15369 (grub_term_get_current_input): ... this, and ...
15370 (grub_term_get_current_output): ... this.
15371 (grub_term_register): Split in ...
15372 (grub_term_register_input): ... this, and ...
15373 (grub_term_register_output): ... this.
15374 (grub_term_unregister): Split in ...
15375 (grub_term_unregister_input): ... this, and ...
15376 (grub_term_unregister_output): ... this.
15377 (grub_term_iterate): Split in ...
15378 (grub_term_iterate_input): ... this, and ...
15379 (grub_term_iterate_output): ... this.
15381 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
15382 a check for input and one for output (and only attempt to get keys
15383 from user when input works).
15385 * util/grub-probe.c (grub_term_get_current): Split in ...
15386 (grub_term_get_current_input): ... this, and ...
15387 (grub_term_get_current_output): ... this.
15388 * util/grub-fstest.c: Likewise.
15389 * util/i386/pc/grub-setup.c: Likewise.
15390 * util/grub-editenv.c: Likewise.
15392 Portability adjustments:
15394 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
15395 `term/i386/pc/at_keyboard.c'.
15396 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
15397 grub_keyboard_controller_init() (now handled by terminal .init).
15398 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
15399 grub_at_keyboard_init().
15400 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
15401 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
15402 at_keyboard.mod via input terminal interface).
15403 * include/grub/i386/coreboot/console.h: Convert into a stub for
15404 `<grub/i386/pc/console.h>'.
15406 Migrate full terminals to new API:
15408 * term/efi/console.c (grub_console_term): Split into ...
15409 (grub_console_term_input): ... this, and ...
15410 (grub_console_term_output): ... this. Update all users.
15411 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
15412 (grub_ofconsole_init): Split into ...
15413 (grub_ofconsole_init_input): ... this, and ...
15414 (grub_ofconsole_init_output): ... this.
15415 (grub_ofconsole_term): Split into ...
15416 (grub_ofconsole_term_input): ... this, and ...
15417 (grub_ofconsole_term_output): ... this. Update all users.
15418 * term/i386/pc/serial.c (grub_serial_term): Split into ...
15419 (grub_serial_term_input): ... this, and ...
15420 (grub_serial_term_output): ... this. Update all users.
15421 * term/i386/pc/console.c (grub_console_term): Split into ...
15422 (grub_console_term_input): ... this, and ...
15423 (grub_console_term_output): ... this. Update all users.
15424 (grub_console_term_input): Only enable it on PC/BIOS platform.
15425 (grub_console_init): Remove grub_keyboard_controller_init() call.
15427 Migrate input terminals to new API:
15429 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
15430 `i386' and `i386/pc' to enable build on x86_64 (this driver is
15431 i386-specific anyway).
15432 (grub_console_checkkey): Rename to ...
15433 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
15435 (grub_keyboard_controller_orig): New variable.
15436 (grub_console_getkey): Rename to ...
15437 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
15439 (grub_keyboard_controller_init): Static-ize. Save original
15440 controller value so that it can be restored ...
15441 (grub_keyboard_controller_fini): ... here (new function).
15442 (grub_at_keyboard_term): New structure.
15443 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
15446 Migrate output terminals to new API:
15448 * term/i386/pc/vga.c (grub_vga_term): Change type to
15449 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15450 members. Update all users.
15451 * term/gfxterm.c (grub_video_term): Change type to
15452 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15453 members. Update all users.
15454 * include/grub/i386/pc/console.h (grub_console_checkkey)
15455 (grub_console_getkey): Do not export (no longer needed by gfxterm,
15458 Migrate `terminal' command and userland tools to new API:
15460 * commands/terminal.c (grub_cmd_terminal): Split into ...
15461 (grub_cmd_terminal_input): ... this, and ...
15462 (grub_cmd_terminal_output): ... this.
15463 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
15464 `terminal_input' and `terminal_output'.
15465 * util/grub.d/00_header.in: Adjust `terminal' calls to new
15466 `terminal_input' / `terminal_output' API.
15467 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
15468 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
15469 provided ${GRUB_TERMINAL}, convert it).
15471 2008-11-04 Robert Millan <rmh@aybabtu.com>
15473 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
15475 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
15477 2008-11-03 Bean <bean123ch@gmail.com>
15479 * kern/elf.c (grub_elf32_load): Revert to previous code.
15480 (grub_elf64_load): Likewise.
15482 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
15484 2008-11-01 Robert Millan <rmh@aybabtu.com>
15486 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
15487 (TARGET_CPPFLAGS): Likewise.
15488 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
15490 2008-11-01 Carles Pina i Estany <carles@pina.cat>
15492 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15494 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15496 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15497 addition of objects until the code is not going to be able to fail.
15499 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15501 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15502 (add a missing NULL check, and correct them by moving the pointer
15503 operations after the actual check).
15505 2008-10-29 Robert Millan <rmh@aybabtu.com>
15507 * util/i386/pc/grub-install.in: Handle empty string as output from
15508 make_system_path_relative_to_its_root().
15510 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15512 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15513 circular metadata worst case scenario. If the metadata is circular
15514 then copy the wrap in place.
15515 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15516 project lib/format_text/layout.h
15517 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15519 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15521 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
15523 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15525 * util/update-grub_lib.in: Mention filename in warning message.
15527 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15529 * NEWS: Update for rename of update-grub to grub-mkconfig.
15531 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15533 * util/update-grub_lib.in: Copy to ...
15534 * util/grub-mkconfig_lib.in: ... this. Update all users.
15535 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
15536 * util/update-grub.in: Rename to ...
15537 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15538 option. Add `--output' option to allow users to specify the generated
15539 configuration file. Default to stdout.
15540 (update_grub_dir): Rename to ...
15541 (grub_mkconfig_dir): ... this.
15542 (grub_cfg): Default to an empty string.
15543 * conf/common.rmk (update-grub): Rename to ...
15544 (grub-mkconfig): ... this.
15545 (update-grub_lib): Copy to ...
15546 (grub-mkconfig_lib): ... this.
15547 (update-grub_SCRIPTS): Copy to ...
15548 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15549 (update-grub_DATA): Rename to ...
15550 (grub-mkconfig_DATA): ... this.
15552 2008-09-28 Robert Millan <rmh@aybabtu.com>
15554 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15555 to `modified'. Add the real `created' field.
15556 (grub_iso9660_uuid): Use `modified' rather than `created' for
15557 constructing the UUID.
15559 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
15561 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15562 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15564 2008-09-28 Bean <bean123ch@gmail.com>
15566 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15567 Thanks to Christian Franke for finding this bug.
15569 2008-09-25 Robert Millan <rmh@aybabtu.com>
15571 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15572 instances of grub_util_get_disk_name() (see previous commit).
15574 2008-09-25 Robert Millan <rmh@aybabtu.com>
15576 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15577 `util/i386/get_disk_name.c'.
15578 * conf/i386-efi.rmk: Likewise.
15579 * conf/x86_64-efi.rmk: Likewise.
15580 * conf/i386-coreboot.rmk: Likewise.
15581 * conf/i386-ieee1275.rmk: Likewise.
15582 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15583 `util/ieee1275/get_disk_name.c'.
15584 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15585 * util/ieee1275/get_disk_name.c: Remove file.
15586 * util/i386/get_disk_name.c: Remove file.
15587 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15588 "hd%d" for device.map entries, rather than using
15589 grub_util_get_disk_name().
15591 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15593 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15595 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15597 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15599 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15601 (GRUB_TERM_PPAGE): Changed to 0x4900.
15603 2008-09-24 Robert Millan <rmh@aybabtu.com>
15605 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15606 macros (they were i386-pc specific).
15607 * include/grub/sparc64/ieee1275/console.h: Likewise.
15608 * include/grub/efi/console.h: Likewise.
15610 2008-09-22 Bean <bean123ch@gmail.com>
15612 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15613 resident and in attribute list.
15615 * include/grub/ntfs.h (BMP_LEN): Removed.
15617 2008-09-22 Bean <bean123ch@gmail.com>
15619 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15620 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15622 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15623 error occurs, as grub_disk_open will call grub_disk_close, which will
15624 call p->close (scsi).
15626 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15628 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15629 (AC_PREREQ): Bumped to 2.59.
15630 (AC_TRY_COMPILE): Replace obsolete macro with ...
15631 (AC_COMPILE_IFELSE): ... this.
15632 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15633 (AC_LINK_IFELSE): ... this.
15635 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15637 * autogen.sh: Add a call to `gendistlist.sh'.
15639 2008-09-19 Christian Franke <franke@computer.org>
15641 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15642 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15643 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15644 Export __enable_execute_stack() to modules.
15645 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15648 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15650 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15653 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15655 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15656 #include <grub/util/hostdisk.h>.
15658 2008-09-08 Robert Millan <rmh@aybabtu.com>
15660 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15661 segments when their filesz is zero (grub_file_read() interprets
15662 zero-size as "read until EOF", which results in memory corruption).
15663 Use `lowest_segment' rather than 0 for calculating the current
15664 segment load address.
15666 2008-09-08 Robert Millan <rmh@aybabtu.com>
15668 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15669 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15670 clobbered useful information.
15672 2008-09-08 Robert Millan <rmh@aybabtu.com>
15674 * include/grub/util/biosdisk.h: Move to ...
15675 * include/grub/util/hostdisk.h: ... here. Update all users.
15676 * util/biosdisk.c: Move to ...
15677 * util/hostdisk.c: ... here. Update all users.
15679 2008-09-07 Robert Millan <rmh@aybabtu.com>
15681 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15683 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15684 and length can be stored directly in the `mbi->mmap_addr' and
15685 `mbi->mmap_length' struct fields.
15687 2008-09-07 Robert Millan <rmh@aybabtu.com>
15689 * conf/i386.rmk: New file. Provides declaration for building
15691 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15692 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15694 Include `conf/i386.mk'.
15695 * conf/i386-efi.rmk: Likewise.
15696 * conf/x86_64-efi.rmk: Likewise.
15697 * conf/i386-coreboot.rmk: Likewise.
15698 * conf/i386-ieee1275.rmk: Likewise.
15700 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15702 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15703 Adds optimization support for BGR based modes.
15705 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15706 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15707 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15708 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15709 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15710 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15711 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15712 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15713 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15714 (grub_video_i386_vbeblit_index_index): Likewise.
15715 (grub_video_i386_vbeblit_replace_directN): Added.
15716 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15717 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15718 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15719 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15720 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15721 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15722 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15723 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15724 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15725 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15726 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15727 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15728 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15730 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15731 (grub_video_i386_vbefill_R8G8B8): Likewise.
15732 (grub_video_i386_vbefill_index): Likewise.
15733 (grub_video_i386_vbefill_direct32): Added.
15734 (grub_video_i386_vbefill_direct24): Likewise.
15735 (grub_video_i386_vbefill_direct16): Likewise.
15736 (grub_video_i386_vbefill_direct8): Likewise.
15738 * include/grub/video.h (grub_video_blit_format): Removed
15739 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15740 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15741 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15742 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15743 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15745 * video/video.c (grub_video_get_blit_format): Updated to use new
15746 blit formats. Added handling for 16 bit color modes.
15748 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15750 (common_blitter): Updated to use new blitters.
15752 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15754 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15755 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15756 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15757 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15758 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15759 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15760 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15761 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15762 (grub_video_i386_vbeblit_index_index): Likewise.
15763 (grub_video_i386_vbeblit_replace_directN): Added.
15764 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15765 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15766 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15767 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15768 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15769 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15770 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15771 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15772 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15773 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15774 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15775 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15776 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15778 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15779 (grub_video_i386_vbefill_R8G8B8): Likewise.
15780 (grub_video_i386_vbefill_index): Likewise.
15781 (grub_video_i386_vbefill_direct32): Added.
15782 (grub_video_i386_vbefill_direct24): Likewise.
15783 (grub_video_i386_vbefill_direct16): Likewise.
15784 (grub_video_i386_vbefill_direct8): Likewise.
15786 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15789 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15792 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15795 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15798 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15800 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15803 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15805 * fs/iso9660.c (grub_iso9660_date): New structure.
15806 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15807 (grub_iso9660_uuid): New function.
15809 2008-09-05 Bean <bean123ch@gmail.com>
15811 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15813 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15814 insensitive bit for names in Win32 and Win32 & DOS namespace.
15816 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15818 * include/grub/types.h (LONG_MAX): Likewise.
15820 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15822 * util/getroot.c: Include <config.h>.
15823 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15824 add support for /dev/md/N devices and handle LVM double dash escaping.
15826 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15828 * config.guess: Update to latest version from config git.
15829 * config.sub: Likewise.
15831 2008-09-03 Robert Millan <rmh@aybabtu.com>
15833 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15834 `disk->total_sectors'.
15836 2008-09-01 Colin D Bennett <colin@gibibit.com>
15838 * include/grub/normal.h: Fixed incorrect comment for
15839 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15841 2008-09-01 Colin D Bennett <colin@gibibit.com>
15843 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15844 values with defines.
15846 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15847 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15848 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15849 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15850 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15851 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15852 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15853 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15854 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15855 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15856 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15857 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15858 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15859 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15860 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15861 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15862 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15863 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15864 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15866 2008-08-31 Robert Millan <rmh@aybabtu.com>
15868 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15870 (grub_multiboot): Fix a few warnings.
15872 2008-08-31 Robert Millan <rmh@aybabtu.com>
15874 * loader/i386/pc/multiboot.c: Update comment not to say that
15875 boot_device support is unimplemented.
15877 2008-08-31 Robert Millan <rmh@aybabtu.com>
15879 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15880 or memory map support are unimplemented.
15882 2008-08-31 Colin D Bennett <colin@gibibit.com>
15884 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15886 2008-08-31 Colin D Bennett <colin@gibibit.com>
15888 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15889 total video memory in 'vbeinfo' output; show color format details for
15892 2008-08-30 Pavel Roskin <proski@gnu.org>
15894 * util/genmoddep.c: Remove for real this time.
15895 * DISTLIST: Remove util/genmoddep.c.
15897 2008-08-30 Robert Millan <rmh@aybabtu.com>
15899 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15900 as required by Multiboot spec (it was already 4-byte aligned, but
15903 2008-08-29 Pavel Roskin <proski@gnu.org>
15905 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15906 * kern/powerpc/ieee1275/startup.S: ... this.
15907 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15908 * DISTLIST: Likewise.
15910 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15911 grub/cpu/kernel.h. Add start label for consistency with other
15912 platforms. Add grub_prefix immediately after start. Add jump
15913 to the code after grub_prefix.
15914 * include/grub/powerpc/kernel.h: Provide valid values for
15915 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15917 2008-08-29 Bean <bean123ch@gmail.com>
15919 * configure.ac: Change host_os to cygwin for mingw.
15920 (asprintf): New check for function.
15922 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15923 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15925 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15926 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15927 sync, sleep and grub_util_get_disk_size for mingw.
15929 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15930 to get size in mingw.
15931 (open_device): Use flag O_BINARY if it's defined.
15932 (find_root_device): Add dummy code for mingw.
15934 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15935 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15936 (get_scsi_disk_name): Return 0 for mingw.
15938 * util/hostfs.c: #include <grub/util/misc.h>.
15939 (grub_hostfs_open): Use "rb" flag to open file, use
15940 grub_util_get_disk_size to get disk size for mingw.
15942 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15943 (asprintf): New function if HAVE_ASPRINTF is not set.
15944 (sync): New function for mingw.
15946 (grub_util_get_disk_size): Likewise.
15948 2008-08-28 Pavel Roskin <proski@gnu.org>
15950 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15953 2008-08-28 Robert Millan <rmh@aybabtu.com>
15955 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15957 2008-08-28 Robert Millan <rmh@aybabtu.com>
15959 Change find_grub_drive() syntax so it doesn't prevent it from
15960 detecting NULL names as errors.
15962 * util/biosdisk.c (find_grub_drive): Move free slot search code
15964 (find_free_slot): ... to here.
15965 (read_device_map): Use find_free_slot() to search for free slots.
15967 2008-08-27 Marco Gerards <marco@gnu.org>
15969 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15970 (scsi_mod_SOURCES): New variable.
15971 (scsi_mod_CFLAGS): Likewise
15972 (scsi_mod_LDFLAGS): Likewise.
15974 * disk/scsi.c: New file.
15976 * include/grub/scsi.h: Likewise.
15978 * include/grub/scsicmd.h: Likewise.
15980 * disk/ata.c: Include <grub/scsi.h>.
15981 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15983 (grub_ata_iterate): Skip ATAPI devices.
15984 (grub_ata_open): Only handle ATAPI devices.
15985 (struct grub_atapi_read): Removed.
15986 (grub_atapi_readsector): Likewise.
15987 (grub_ata_read): No longer handle ATAPI devices.
15988 (grub_ata_write): Likewise.
15989 (grub_atapi_iterate): New function.
15990 (grub_atapi_read): Likewise.
15991 (grub_atapi_write): Likewise.
15992 (grub_atapi_open): Likewise.
15993 (grub_atapi_close): Likewise.
15994 (grub_atapi_dev): New variable.
15995 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15996 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15998 * include/grub/disk.h (enum grub_disk_dev_id): Add
15999 `GRUB_DISK_DEVICE_SCSI_ID'.
16001 2008-08-26 Robert Millan <rmh@aybabtu.com>
16003 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
16004 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
16007 2008-08-23 Bean <bean123ch@gmail.com>
16009 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
16010 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16011 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
16012 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
16014 (raid5rec_mod_SOURCES): New macro.
16015 (raid5rec_mod_CFLAGS): Likewise.
16016 (raid5rec_mod_LDFLAGS): Likewise.
16017 (raid6rec_mod_SOURCES): Likewise.
16018 (raid6rec_mod_CFLAGS): Likewise.
16019 (raid6rec_mod_LDFLAGS): Likewise.
16020 (mdraid_mod_SOURCES): Likewise.
16021 (mdraid_mod_CFLAGS): Likewise.
16022 (mdraid_mod_LDFLAGS): Likewise.
16023 (dm_nv_mod_SOURCES): Likewise.
16024 (dm_nv_mod_CFLAGS): Likewise.
16025 (dm_nv_mod_LDFLAGS): Likewise.
16027 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
16028 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16029 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16031 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
16032 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16034 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16036 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16038 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16042 * disk/raid5_recover.c: New file.
16044 * disk/raid6_recover.c: Likewise.
16046 * disk/mdraid_linux.c: Likewise.
16048 * disk/dmraid_nvidia.c: Likewise.
16050 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
16053 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
16054 calculate the size of raid device.
16055 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
16056 different layout of raid5.
16057 (grub_raid_scan_device): Remove code specific to mdraid.
16058 (grub_raid_list): New variable.
16059 (free_array): New function.
16060 (grub_raid_register): Likewise.
16061 (grub_raid_unregister): Likewise.
16062 (grub_raid_rescan): Likewise.
16063 (GRUB_MOD_INIT): Don't iterate device here.
16064 (GRUB_MOD_FINI): Use free_array to release resource.
16066 * include/grub/raid.h: Remove macro and structure specific to mdraid.
16067 (grub_raid5_recover_func_t): New function variable type.
16068 (grub_raid6_recover_func_t): Likewise.
16069 (grub_raid5_recover_func): New variable.
16070 (grub_raid6_recover_func): Likewise.
16071 (grub_raid_register): New function.
16072 (grub_raid_unregister): Likewise.
16073 (grub_raid_rescan): Likewise.
16074 (grub_raid_block_xor): Likewise.
16076 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
16077 (CMD_CRC): New macro.
16079 (read_file): Handle device as well as file.
16080 (cmd_crc): New function.
16081 (fstest): Handle multiple disks.
16082 (options): Remove part, raw and long, add root and diskcount.
16083 (usage): Add crc, remove -p, -r, -l, add -r and -c.
16084 (main): Find the first non option entry and ignore subsequent options,
16085 add handling for the new options, support multiple disks.
16087 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
16089 2008-08-23 Bean <bean123ch@gmail.com>
16091 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
16093 * genfslist.sh: Ignore kernel.mod.
16095 * genpartmaplist.sh: Likewise.
16097 2008-08-23 Robert Millan <rmh@aybabtu.com>
16099 * util/getroot.c (find_root_device): Skip anything that starts with
16100 a dot, not just directories. This avoids things like /dev/.tmp.md0.
16102 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
16104 * util/update-grub.in (GRUB_GFXMODE): Export variable.
16105 * util/grub.d/00_header.in: Allow the administrator to change default
16106 gfxmode via ${GRUB_GFXMODE}.
16108 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
16110 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
16112 2008-08-21 Robert Millan <rmh@aybabtu.com>
16114 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
16116 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
16117 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
16119 2008-08-20 Carles Pina i Estany <carles@pina.cat>
16121 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
16122 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
16124 2008-08-19 Robert Millan <rmh@aybabtu.com>
16126 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
16127 (struct grub_virtual_screen): Remove `cursor_color'.
16128 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
16130 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
16132 2008-08-18 Robert Millan <rmh@aybabtu.com>
16134 Unify (identical) linux_normal.c files.
16135 * loader/i386/efi/linux_normal.c: Move from here ...
16136 * loader/linux_normal.c: ... to here. Update all users.
16137 * loader/i386/pc/linux_normal.c: Delete. Update all users.
16138 * loader/i386/ieee1275/linux_normal.c: Likewise.
16140 2008-08-18 Robert Millan <rmh@aybabtu.com>
16142 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
16143 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
16144 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
16145 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
16146 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
16148 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
16149 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
16150 (GRUB_LINUX_CL_END_OFFSET): ... to here.
16151 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
16152 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
16153 (GRUB_EFI_CL_END_OFFSET): Rename to ...
16154 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
16155 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
16156 Initialize `params->video_cursor_x' and `params->video_cursor_y'
16157 portably using grub_getxy().
16158 Replace `-EFI' with `-bzImage' in boot message.
16160 2008-08-17 Robert Millan <rmh@aybabtu.com>
16162 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
16164 2008-08-17 Robert Millan <rmh@aybabtu.com>
16166 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
16168 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
16169 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
16170 (grub_machine_mmap_iterate): New function declaration.
16171 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
16173 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
16176 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
16177 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
16178 Move e820 parsing from here ...
16179 * kern/i386/pc/mmap.c: New file.
16180 (grub_machine_mmap_iterate): ... to here.
16182 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
16183 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
16184 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
16185 (grub_available_iterate): Redeclare to return `void', and redeclare
16186 its hook to use grub_uint64_t as addr and size parameters, and rename
16188 (grub_machine_mmap_iterate): ... this. Update all users.
16190 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
16191 to make it more readable. Rename to ...
16192 (grub_machine_mmap_iterate): ... this.
16194 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
16195 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
16196 (grub_multiboot): Allocate an extra region after the payload, and fill
16197 it with a Multiboot memory map. Adjust a.out loader to calculate size
16198 with the extra space.
16199 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
16200 with the extra space.
16202 2008-08-17 Carles Pina i Estany <carles@pina.cat>
16204 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
16206 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
16208 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
16209 mdate-sh to the list `find' searches for.
16210 * DISTLIST: Regenerated.
16212 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
16214 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
16215 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
16216 genmoddep.awk, gensymlist.sh.in.
16217 (DISTDIRS): Add bus, docs, hook, lib.
16218 * DISTLIST: Regenerated.
16219 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
16221 2008-08-16 Robert Millan <rmh@aybabtu.com>
16223 * disk/raid.c (grub_raid_init): Handle/report errors set by
16224 grub_device_iterate().
16225 * disk/lvm.c (grub_lvm_init): Likewise.
16227 2008-08-15 Bean <bean123ch@gmail.com>
16229 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16231 (datetime_mod_SOURCES): New macro.
16232 (datetime_mod_CFLAGS): Likewise.
16233 (datetime_mod_LDFLAGS): Likewise.
16234 (date_mod_SOURCES): Likewise.
16235 (date_mod_CFLAGS): Likewise.
16236 (date_mod_LDFLAGS): Likewise.
16237 (datehook_mod_SOURCES): Likewise.
16238 (datehook_mod_CFLAGS): Likewise.
16239 (datehook_mod_LDFLAGS): Likewise.
16241 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16243 (datetime_mod_SOURCES): New macro.
16244 (datetime_mod_CFLAGS): Likewise.
16245 (datetime_mod_LDFLAGS): Likewise.
16246 (date_mod_SOURCES): Likewise.
16247 (date_mod_CFLAGS): Likewise.
16248 (date_mod_LDFLAGS): Likewise.
16249 (datehook_mod_SOURCES): Likewise.
16250 (datehook_mod_CFLAGS): Likewise.
16251 (datehook_mod_LDFLAGS): Likewise.
16253 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16255 (datetime_mod_SOURCES): New macro.
16256 (datetime_mod_CFLAGS): Likewise.
16257 (datetime_mod_LDFLAGS): Likewise.
16258 (date_mod_SOURCES): Likewise.
16259 (date_mod_CFLAGS): Likewise.
16260 (date_mod_LDFLAGS): Likewise.
16261 (datehook_mod_SOURCES): Likewise.
16262 (datehook_mod_CFLAGS): Likewise.
16263 (datehook_mod_LDFLAGS): Likewise.
16265 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16267 (datetime_mod_SOURCES): New macro.
16268 (datetime_mod_CFLAGS): Likewise.
16269 (datetime_mod_LDFLAGS): Likewise.
16270 (date_mod_SOURCES): Likewise.
16271 (date_mod_CFLAGS): Likewise.
16272 (date_mod_LDFLAGS): Likewise.
16273 (datehook_mod_SOURCES): Likewise.
16274 (datehook_mod_CFLAGS): Likewise.
16275 (datehook_mod_LDFLAGS): Likewise.
16277 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16279 (datetime_mod_SOURCES): New macro.
16280 (datetime_mod_CFLAGS): Likewise.
16281 (datetime_mod_LDFLAGS): Likewise.
16282 (date_mod_SOURCES): Likewise.
16283 (date_mod_CFLAGS): Likewise.
16284 (date_mod_LDFLAGS): Likewise.
16285 (datehook_mod_SOURCES): Likewise.
16286 (datehook_mod_CFLAGS): Likewise.
16287 (datehook_mod_LDFLAGS): Likewise.
16289 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
16291 * commands/date.c: New file.
16293 * hook/datehook.c: Likewise.
16295 * include/grub/lib/datetime.h: Likewise.
16297 * include/grub/i386/cmos.h: Likewise.
16299 * lib/datetime.c: Likewise.
16301 * lib/i386/datetime.c: Likewise.
16303 * lib/efi/datetime.c: Likewise.
16305 2008-08-14 Robert Millan <rmh@aybabtu.com>
16307 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
16308 (grub_mkelfimage_SOURCES): New variable.
16309 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
16311 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
16312 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
16313 * conf/powerpc-ieee1275.rmk: Likewise.
16314 * conf/i386-ieee1275.rmk: Likewise.
16316 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
16317 * kern/i386/coreboot/init.c: Likewise.
16319 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
16320 with `<grub/cpu/kernel.h>'.
16321 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
16323 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
16324 * kern/i386/coreboot/startup.S: Likewise.
16326 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
16327 (GRUB_MOD_GAP): Remove.
16328 * include/grub/powerpc/kernel.h: New file.
16329 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
16330 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16331 * include/grub/i386/kernel.h: New file.
16332 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
16333 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
16334 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16336 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
16338 Use --directory when invoking grub_mkimage.
16340 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
16341 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
16342 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
16343 and GRUB_KERNEL_CPU_PREFIX.
16345 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
16347 * include/grub/err.h (grub_err_printf): New function prototype.
16348 * util/misc.c (grub_err_printf): New function.
16349 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
16351 * kern/err.c (grub_print_error): Use grub_err_printf.
16353 2008-08-13 Robert Millan <rmh@aybabtu.com>
16355 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
16357 2008-08-13 Robert Millan <rmh@aybabtu.com>
16359 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
16362 2008-08-12 Robert Millan <rmh@aybabtu.com>
16364 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
16365 of the relocation code from here ...
16366 (grub_multiboot): ... to here.
16367 (forward_relocator, backward_relocator): Move from here ...
16368 * kern/i386/loader.S (grub_multiboot_forward_relocator)
16369 (grub_multiboot_backward_relocator): ... to here.
16370 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
16371 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
16372 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
16373 (grub_multiboot_forward_relocator_end)
16374 (grub_multiboot_backward_relocator)
16375 (grub_multiboot_backward_relocator_end): New variables.
16377 2008-08-12 Bean <bean123ch@gmail.com>
16379 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
16381 2008-08-11 Robert Millan <rmh@aybabtu.com>
16383 * kern/i386/linuxbios/startup.S: Move from here ...
16384 * kern/i386/coreboot/startup.S: ... to here.
16386 * kern/i386/linuxbios/init.c: Move from here ...
16387 * kern/i386/coreboot/init.c: ... to here.
16389 * kern/i386/linuxbios/table.c: Move from here ...
16390 * kern/i386/coreboot/mmap.c: ... to here.
16392 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
16394 2008-08-11 Robert Millan <rmh@aybabtu.com>
16396 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
16397 errors. Leave it to the upper layer to handle them.
16399 2008-08-09 Christian Franke <franke@computer.org>
16401 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
16402 * conf/common.rmk: Install `grub-pe2elf' only if requested.
16403 Install `grub.d/10_windows' only on Cygwin.
16404 * configure.ac: Add subst of `target_os'.
16405 Check `target_os' also before setting TARGET_OBJ2ELF.
16406 Add `--enable-grub-pe2elf'.
16408 2008-08-08 Robert Millan <rmh@aybabtu.com>
16410 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16411 (grub_last_time): Change type to grub_uint64_t.
16412 (grub_disk_open): Migrate code from to using grub_get_time_ms().
16413 (grub_disk_close): Likewise.
16415 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16416 (run_menu): Migrate code from to using grub_get_time_ms().
16418 * util/misc.c (grub_get_time_ms): New function.
16420 2008-08-08 Marco Gerards <marco@gnu.org>
16422 * disk/ata.c (grub_ata_regget): Change return type to
16424 (grub_ata_regget2): Likewise.
16425 (grub_ata_wait_status): New function.
16426 (grub_ata_wait_busy): Removed function, updated all users to use
16427 `grub_ata_wait_status'.
16428 (grub_ata_wait_drq): Likewise.
16429 (grub_ata_cmd): New function.
16430 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
16432 (grub_ata_pio_write): Add error handling.
16433 (grub_atapi_identify): Likewise.
16434 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
16436 (grub_ata_identify): Use `grub_ata_cmd' and improve error
16437 handling. Actually use the detected registers. Reorder the
16438 detection logic such that it is easier to read.
16439 (grub_ata_pciinit): Do not assign the same ID to each controller.
16440 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
16442 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
16444 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
16446 2008-08-08 Marco Gerards <marco@gnu.org>
16450 2008-08-07 Bean <bean123ch@gmail.com>
16452 * include/grub/x86_64/pci.h: New file.
16454 2008-08-07 Christian Franke <franke@computer.org>
16456 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
16457 (TIMER2_GATE): Likewise.
16458 (grub_pit_wait): Add enable/disable of the timer2 gate
16459 bit of port 0x61. This fixes a possible infinite loop.
16461 2008-08-07 Bean <bean123ch@gmail.com>
16463 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
16464 kern/i386/tsc.c and kern/i386/pit.c.
16466 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
16469 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
16472 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
16474 2008-08-07 Bean <bean123ch@gmail.com>
16476 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
16478 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
16480 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
16481 multiple inclusion. Add #include <grub/types.h>.
16483 2008-08-06 Christian Franke <franke@computer.org>
16485 * conf/common.rmk: Build and install `10_windows'.
16486 * util/grub.d/10_windows.in: New script.
16488 2008-08-06 Pavel Roskin <proski@gnu.org>
16490 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16492 2008-08-06 Robert Millan <rmh@aybabtu.com>
16494 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16495 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16497 2008-08-06 Bean <bean123ch@gmail.com>
16499 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16500 (grub_pxefs_fs_int): Remove dummy definition.
16501 (grub_pxefs_open): Use data->block_size to store the current block
16503 (grub_pxefs_read): Use block size stored in data->block_size. As the
16504 value of grub_pxe_blksize can be changed after the file is opened.
16506 2008-08-06 Bean <bean123ch@gmail.com>
16508 * fs/i386/pc/pxe.c (curr_file): new variable.
16509 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16510 require the dummy internal file system anymore.
16511 (grub_pxefs_read): Removed.
16512 (grub_pxefs_close): Likewise.
16513 (grub_pxefs_fs_int): Likewise.
16514 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16515 connection when we switch file.
16516 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16518 2008-08-06 Robert Millan <rmh@aybabtu.com>
16520 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16522 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16523 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16525 * kern/i386/halt.c: New file.
16526 * kern/i386/reboot.c: Likewise.
16527 * include/grub/i386/reboot.h: Likewise.
16528 * include/grub/i386/halt.h: Likewise.
16530 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16531 Include `<grub/cpu/halt.h>'.
16532 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16533 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16535 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16536 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16537 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16538 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16539 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16540 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16542 * include/grub/i386/at_keyboard.h: ... to here.
16544 2008-08-05 Robert Millan <rmh@aybabtu.com>
16546 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16547 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16548 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16549 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16550 `kern/generic/millisleep.c'.
16552 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16553 instead of grub_get_rtc().
16554 (grub_tsc_init): Initialize `tsc_boot_time'.
16556 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16557 (grub_machine_init): Use grub_tsc_init() rather than
16558 installing an RTC-based handler via grub_install_get_time_ms().
16560 * kern/i386/pit.c: New file.
16561 * include/grub/i386/pit.h: Likewise.
16563 2008-08-05 Bean <bean123ch@gmail.com>
16565 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16567 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16568 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16569 (pxe_mod_SOURCES): New macro.
16570 (pxe_mod_CFLAGS): Likewise.
16571 (pxe_mod_LDFLAGS): Likewise.
16572 (pxecmd_mod_SOURCES): Likewise.
16573 (pxecmd_mod_CFLAGS): Likewise.
16574 (pxecmd_mod_LDFLAGS): Likewise.
16576 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16577 (grub_pxe_call): Likewise.
16579 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16581 * commands/i386/pc/pxecmd.c: New file.
16583 * fs/i386/pc/pxe.c: Likewise.
16585 * include/grub/i386/pc/pxe.h: Likewise.
16587 2008-08-05 Bean <bean123ch@gmail.com>
16589 * util/console.c (grub_console_cur_color): New variable.
16590 (grub_console_standard_color): Likewise.
16591 (grub_console_normal_color): Likewise.
16592 (grub_console_highlight_color): Likewise.
16593 (color_map): Likewise.
16594 (use_color): Likewise.
16595 (NUM_COLORS): New macro.
16596 (grub_ncurses_setcolorstate): Handle color properly.
16597 (grub_ncurses_setcolor): Don't change color here, just remember the
16598 settings, color will be set in grub_ncurses_setcolorstate.
16599 (grub_ncurses_getcolor): New function.
16600 (grub_ncurses_init): Initialize color pairs.
16601 (grub_ncurses_term): New member grub_ncurses_getcolor.
16603 2008-08-05 Colin D Bennett <colin@gibibit.com>
16605 High resolution timer support. Implemented for x86 CPUs using TSC.
16606 Extracted generic grub_millisleep() so it's linked in only as needed.
16607 This requires a Pentium compatible CPU; if the RDTSC instruction is
16608 not supported, then it falls back on the generic grub_get_time_ms()
16609 implementation that uses the machine's RTC.
16611 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16612 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16613 `kern/generic/millisleep.c'.
16615 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16616 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16618 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16619 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16621 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16623 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16624 `kern/generic/millisleep.c'.
16626 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16628 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16630 * kern/generic/rtc_get_time_ms.c: New file.
16632 * kern/generic/millisleep.c: New file.
16634 * kern/misc.c: Don't include
16635 <kern/time.h> anymore.
16636 (grub_millisleep_generic): Removed.
16638 * commands/sleep.c (grub_interruptible_millisleep): Uses
16639 grub_get_time_ms() instead of grub_get_rtc().
16641 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16643 (grub_cpu_is_cpuid_supported): New inline function.
16644 (grub_cpu_is_tsc_supported): New inline function.
16645 (grub_tsc_init): New function prototype.
16646 (grub_tsc_get_time_ms): New function prototype.
16648 * kern/i386/tsc.c (grub_get_time_ms): New file.
16650 * include/grub/time.h: Include <grub/types.h.
16651 (grub_millisleep_generic): Removed.
16652 (grub_get_time_ms): New prototype.
16653 (grub_install_get_time_ms): New prototype.
16654 (grub_rtc_get_time_ms): New prototype.
16656 * kern/time.c (grub_get_time_ms): New function.
16657 (grub_install_get_time_ms): New function.
16659 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16660 <grub/time.h> anymore.
16661 (grub_millisleep): Removed.
16662 (grub_machine_init): Call grub_tsc_init.
16664 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16665 get_time_ms() implementation.
16667 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16668 (ieee1275_get_time_ms): New function.
16669 (grub_machine_init): Install get_time_ms() implementation.
16671 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16672 (grub_machine_init): Call grub_tsc_init().
16673 (grub_millisleep): Removed.
16675 * kern/ieee1275/init.c (grub_millisleep): Removed.
16676 (grub_machine_init): Install ieee1275_get_time_ms()
16678 (ieee1275_get_time_ms): New function.
16679 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16682 2008-08-05 Marco Gerards <marco@gnu.org>
16684 * disk/ata.c: Include <grub/pci.h>.
16685 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16686 (grub_ata_initialize): Rewritten.
16687 (grub_ata_device_initialize): New function.
16689 2008-08-04 Pavel Roskin <proski@gnu.org>
16691 * kern/main.c: Include grub/mm.h.
16693 2008-08-04 Robert Millan <rmh@aybabtu.com>
16695 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16696 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16697 corruption problem).
16699 2008-08-04 Robert Millan <rmh@aybabtu.com>
16701 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16702 warnings introduced in my last commit.
16704 2008-08-03 Robert Millan <rmh@aybabtu.com>
16706 Make PCI available on all i386 architectures.
16708 * include/grub/i386/pc/pci.h: Move from here ...
16709 * include/grub/i386/pci.h: ... to here.
16711 * include/grub/i386/pc/pci.h: Remove.
16712 * include/grub/i386/efi/pci.h: Remove.
16713 * include/grub/x86_64/efi/pci.h: Remove.
16715 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16716 `<grub/cpu/pci.h>'.
16718 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16719 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16720 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16722 * conf/i386-ieee1275.rmk: Likewise.
16724 2008-08-03 Robert Millan <rmh@aybabtu.com>
16726 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16727 (grub_console_setcursor): Make it possible to set cursor off.
16729 2008-08-03 Robert Millan <rmh@aybabtu.com>
16731 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16732 of modules instead of assuming which platform provides what.
16733 * util/update-grub.in: Likewise.
16735 2008-08-03 Robert Millan <rmh@aybabtu.com>
16737 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16738 instead of `grub_install_dos_part' to determine whether a drive needs
16739 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16740 because it can be overridden when loading GRUB via Multiboot).
16742 2008-08-02 Robert Millan <rmh@aybabtu.com>
16744 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16746 2008-08-02 Robert Millan <rmh@aybabtu.com>
16748 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16749 of informational grub_dprintf() calls.
16751 2008-08-02 Robert Millan <rmh@aybabtu.com>
16753 * disk/memdisk.c (memdisk_size): Don't initialize.
16754 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16756 * include/grub/i386/pc/kernel.h
16757 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16758 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16759 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16760 (grub_arch_memdisk_size): Remove.
16762 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16763 field (was only used to transfer a constant). Add `type' field to
16764 support multiple module types.
16765 (grub_module_iterate): New function.
16767 * kern/device.c (grub_device_open): Do not hide error messages
16768 when grub_disk_open() fails. Use grub_print_error() instead.
16770 * kern/i386/pc/init.c (grub_arch_modules_addr)
16771 (grub_arch_memdisk_size): Remove functions.
16772 (grub_arch_modules_addr): Return the module address in high memory
16773 (now that it isn't copied anymore).
16775 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16776 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16777 decompression routine (grub_total_module_size already includes that
16778 now). Don't copy modules back to low memory.
16780 * kern/main.c: Include `<grub/mm.h>'.
16781 (grub_load_modules): Split out (and use) ...
16782 (grub_module_iterate): ... this function, which iterates through
16783 module objects and runs a hook.
16784 Comment out grub_mm_init_region() call, as it would cause non-ELF
16785 modules to be overwritten.
16787 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16788 the memdisk image in its own region, make it part of the module list.
16789 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16790 (main): Parse --memdisk|-m option, and pass user-provided path as
16791 parameter to generate_image().
16792 (add_segments): Pass `memdisk_path' down to load_modules().
16793 (load_modules): Embed memdisk image in module section when requested.
16794 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16795 `header.type' instead of `header.offset'.
16797 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16798 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16799 (memdisk_mod_LDFLAGS): New variables.
16800 * conf/i386-coreboot.rmk: Likewise.
16801 * conf/i386-ieee1275.rmk: Likewise.
16803 2008-08-02 Robert Millan <rmh@aybabtu.com>
16805 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16806 (backward_relocator): New variables. Used to allocate and relocate
16807 the payload, respectively.
16808 (grub_multiboot_load_elf32): Load into heap instead of requested
16809 address, install the appropriate relocator code in each bound of
16810 the payload, and set the entry point such that
16811 grub_multiboot_real_boot() will jump to one of them.
16813 * kern/i386/loader.S (grub_multiboot_payload_size)
16814 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16815 (grub_multiboot_payload_entry_offset): New variables.
16816 (grub_multiboot_real_boot): Set cpu context to what the relocator
16817 expects, and jump to the relocator instead of the payload.
16819 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16820 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16821 (grub_multiboot_payload_entry_offset): Export.
16823 2008-08-01 Bean <bean123ch@gmail.com>
16825 * normal/menu_entry.c (editor_getline): Don't return the original
16826 string as result, as it will be released by lexer once it has done
16829 2008-08-01 Robert Millan <rmh@aybabtu.com>
16831 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16832 within menuentries, not before them.
16833 util/grub.d/10_hurd.in: Likewise.
16835 2008-08-01 Bean <bean123ch@gmail.com>
16837 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16838 (bufio_mod_SOURCES): New macro.
16839 (bufio_mod_CFLAGS): Likewise.
16840 (bufio_mod_LDFLAGS): Likewise.
16842 * include/grub/bufio.h: New file.
16844 * io/bufio.c: Likewise.
16846 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16847 (grub_video_reader_png): Use grub_buffile_open to open file.
16849 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16850 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16852 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16853 (grub_video_reader_tga): Use grub_buffile_open to open file.
16855 * font/manager.c: Include <grub/bufio.h>.
16856 (add_font): Use grub_buffile_open to open file.
16858 2008-07-31 Robert Millan <rmh@aybabtu.com>
16860 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16861 ELF segments, use a macro for arbitrarily accessing any of them instead
16862 of preparing a pointer that allows access to one at a time.
16863 (grub_multiboot_load_elf64): Likewise.
16865 2008-07-31 Bean <bean123ch@gmail.com>
16867 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16868 GRUB_KERNEL_MACHINE_DATA_END.
16870 2008-07-30 Robert Millan <rmh@aybabtu.com>
16872 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16873 Increase from 0x50 to 0x60.
16874 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16875 use UUIDs to identify the root drive for them. If that's not
16877 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16878 check, for cross-disk installs.
16880 2008-07-30 Robert Millan <rmh@aybabtu.com>
16882 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16883 is non-empty, use it to set the `prefix' environment variable instead
16884 of the usual approach.
16885 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16886 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16887 environment variable instead of dummy make_install_device().
16889 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16890 (start): Insert a data section, with `grub_prefix' variable.
16891 * kern/i386/linuxbios/startup.S: Likewise.
16893 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16894 New variable reference.
16895 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16896 New macro. Defines offset of `grub_prefix' within startup.S (relative
16898 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16899 section within startup.S (relative to `start').
16900 * include/grub/i386/coreboot/kernel.h: Likewise.
16902 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16903 Overwrite grub_prefix with its contents, at the beginning of the
16905 (main): Understand -p|--prefix.
16907 2008-07-30 Robert Millan <rmh@aybabtu.com>
16909 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16911 2008-07-30 Robert Millan <rmh@aybabtu.com>
16913 * term/i386/pc/vga_text.c (grub_console_cls): Use
16914 grub_console_gotoxy() to go back to beginning of the screen.
16915 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16917 2008-07-29 Christian Franke <franke@computer.org>
16919 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16920 Add conversion of emulated mount points on Cygwin.
16922 2008-07-29 Christian Franke <franke@computer.org>
16924 * util/update-grub.in: Add a check for admin
16926 Remove old `grub.cfg.new' before creation.
16927 Add `-f' to `mv' to handle the different filesystem
16928 semantics of Windows.
16930 2008-07-29 Bean <bean123ch@gmail.com>
16932 * normal/main.c (get_line): Fix buffer overflow bug.
16934 2008-07-28 Robert Millan <rmh@aybabtu.com>
16936 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16937 (struct grub_apple_header): New struct. Describes the layout of
16938 the partmap header.
16939 (apple_partition_map_iterate): Check the header magic as well as the
16940 partition magic (which was already being checked).
16942 2008-07-28 Pavel Roskin <proski@gnu.org>
16944 * genmk.rb: Add a warning to the beginning of the output that
16945 it's a generated file and should not be edited.
16947 2008-07-28 Robert Millan <rmh@aybabtu.com>
16949 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16950 with the same number are found, just use issue a warning with
16951 grub_dprintf(), as this error has been reported to be non-fatal.
16953 2008-07-27 Robert Millan <rmh@aybabtu.com>
16955 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16958 2008-07-27 Bean <bean123ch@gmail.com>
16960 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16961 (grub_fat_find_dir): Ignore case when comparing filename.
16963 2008-07-27 Bean <bean123ch@gmail.com>
16965 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16966 smallino, as it's more descriptive, and i8count can be confused with
16967 the other field count.
16968 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16971 2008-07-27 Bean <bean123ch@gmail.com>
16973 * commands/crc.c: New file.
16975 * lib/crc.c: Likewise.
16977 * include/grub/lib/crc.h: Likewise.
16979 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16981 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16982 (hexdump): Move this function to ...
16984 * lib/hexdump.c: ... here.
16986 * include/grub/hexdump.h: Renamed to ...
16988 * include/grub/lib/hexdump.h: ... this.
16990 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16992 * util/grub-editenv.c: Likewise.
16994 * include/envblk.h: Renamed to ...
16996 * include/lib/envblk.h: ... this.
16998 * util/envblk.c: Renamed to ...
17000 * lib/envblk.c: ... this.
17002 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
17004 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
17005 (pkglib_MODULES): Add crc.mod.
17006 (hexdump_mod_SOURCES): Add lib/hexdump.c.
17007 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
17008 (crc_mod_SOURCES): New macro.
17009 (crc_mod_CFLAGS): Likewise.
17010 (crc_mod_LDFLAGS): Likewise.
17012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
17014 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17016 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17020 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17022 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
17024 * commands/help.c: Include <grub/term.h>.
17025 (TERM_WIDTH): Removed. Updated all users.
17027 2008-07-27 Pavel Roskin <proski@gnu.org>
17029 * util/getroot.c (find_root_device): Rephrase a comment to avoid
17030 spurious warnings about a comment within a comment.
17032 2008-07-25 Robert Millan <rmh@aybabtu.com>
17034 * util/getroot.c (find_root_device): Skip devices that match
17035 /dev/dm-[0-9]. This lets the real device be found for any type of
17036 abstraction (LVM, EVMS, RAID..).
17037 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
17038 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
17039 device is found first, find_root_device() will now skip it.
17041 2008-07-24 Pavel Roskin <proski@gnu.org>
17043 * include/grub/types.h: Use __builtin_bswap32() and
17044 __builtin_bswap64() with gcc 4.3 and newer.
17046 2008-07-24 Christian Franke <franke@computer.org>
17048 * util/i386/pc/grub-install.in: If `--debug' is specified,
17049 pass `--verbose' to grub-setup.
17050 Abort script if make_system_path_relative_to_its_root() fails.
17052 2008-07-24 Bean <bean123ch@gmail.com>
17054 * configure.ac: Fixed a bug caused by the previous cygwin patch,
17055 variable `target_platform' should be `platform'.
17057 2008-07-24 Bean <bean123ch@gmail.com>
17059 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
17060 (grub_png_init_fixed_block): New function.
17061 (grub_png_decode_image_data): Handle fixed huffman code compression.
17063 2008-07-24 Bean <bean123ch@gmail.com>
17065 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
17066 (grub_pe2elf_SOURCES): New macro.
17067 (CLEANFILES): Add grub-pe2elf.
17069 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
17070 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
17071 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
17072 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
17073 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
17074 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
17075 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
17076 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
17077 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
17078 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
17079 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
17080 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
17081 (GRUB_PE32_DT_FUNCTION): Likewise.
17082 (GRUB_PE32_REL_I386_DIR32): Likewise.
17083 (GRUB_PE32_REL_I386_REL32): Likewise.
17084 (grub_pe32_symbol): New structure.
17085 (grub_pe32_reloc): Likewise.
17087 * util/grub-pe2elf.c: New file.
17089 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
17090 start symbol in non pc platform.
17092 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
17094 The following patches are from Christian Franke.
17096 * include/grub/dl.h: Remove .previous, gas supports this only
17099 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
17100 Remove .type, gas supports this only for ELF format.
17102 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
17103 nullbytes in symbol table. This fixes an infinite loop if table is
17106 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
17107 TARGET_IMG_LDFLAGS and EXEEXT.
17109 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
17110 TARGET_IMG_LDFLAGS_AC.
17111 (grub_CHECK_STACK_ARG_PROBE): New function.
17113 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
17115 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
17117 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
17118 to set TARGET_IMG_LD* accordingly.
17119 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
17120 Add call to grub_CHECK_STACK_ARG_PROBE.
17121 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
17123 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
17125 * genmk.rb: Add EXEEXT to CLEANFILES.
17127 2008-07-23 Robert Millan <rmh@aybabtu.com>
17129 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
17130 define the codes for arrows and lines used for the menu).
17131 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
17134 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
17135 fonts, because the latter are too slow.
17137 2008-07-21 Bean <bean123ch@gmail.com>
17139 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
17140 a20. Run keyboard test last, as it will cause macbook to halt.
17142 2008-07-18 Pavel Roskin <proski@gnu.org>
17144 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
17145 load foreign architecture modules correctly anyway. Keep
17146 support for loading host architecture modules, whether we
17147 compile them or not.
17149 2008-07-17 Pavel Roskin <proski@gnu.org>
17151 * configure.ac: Use -m32 or -m64 regardless of whether we had to
17152 change target_cpu. The compiler default can mismatch target_cpu
17155 * disk/efi/efidisk.c: Fix format warnings on x86_64.
17156 * kern/efi/efi.c: Likewise.
17158 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
17159 target compiler is functional.
17160 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
17163 * configure.ac: Default to efi platform for x86_64-apple. Allow
17164 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
17165 adjustments from the rest, only do them if target is not
17166 explicitly given. Merge other adjustments with the final sanity
17167 check. Remove an extraneous check for supported CPU. Be
17168 specific which CPU and which platform is not supported.
17170 * configure.ac: Default to pc platform for x86_64.
17172 2008-07-17 Robert Millan <rmh@aybabtu.com>
17174 Partial LinuxBIOS -> Coreboot rename.
17176 * conf/i386-linuxbios.rmk: Renamed to ...
17177 * conf/i386-coreboot.rmk: ... this.
17178 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
17179 * configure.ac: Accept "coreboot" as input platform (but maintain
17180 compatibility with "linuxbios").
17181 * include/grub/i386/linuxbios: Renamed to ...
17182 * include/grub/i386/coreboot: ... this.
17184 2008-07-17 Bean <bean123ch@gmail.com>
17186 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
17187 (appleldr_mod_SOURCE): New variable.
17188 (appleldr_mod_CFLAGS): Likewise.
17189 (appleldr_mod_LDFLAGS): Likewise.
17190 (pci_mod_SOURCES): Likewise.
17191 (pci_mod_CFLAGS): Likewise.
17192 (pci_mod_LDFLAGS): Likewise.
17193 (lspci_mod_SOURCES): Likewise.
17194 (lspci_mod_CFLAGS): Likewise.
17195 (lspci_mod_LDFLAGS): Likewise.
17197 * conf/x86_64-efi.rmk: New file.
17199 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
17201 (grub_efidisk_write): Likewise.
17203 * include/efi/api.h (efi_call_0): New macro.
17204 (efi_call_1): Likewise.
17205 (efi_call_2): Likewise.
17206 (efi_call_3): Likewise.
17207 (efi_call_4): Likewise.
17208 (efi_call_5): Likewise.
17209 (efi_call_6): Likewise.
17211 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
17212 grub_rescue_cmd_chainloader.
17214 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
17215 (grub_pe32_optional_header): Change some fields based on i386 or
17217 (GRUB_PE32_PE32_MAGIC): Likewise.
17219 * include/grub/efi/uga_draw.h: New file.
17221 * include/grub/elf.h (STN_ABS): New constant.
17222 (R_X86_64_NONE): Relocation constant for x86_64.
17223 (R_X86_64_64): Likewise.
17224 (R_X86_64_PC32): Likewise.
17225 (R_X86_64_GOT32): Likewise.
17226 (R_X86_64_PLT32): Likewise.
17227 (R_X86_64_COPY): Likewise.
17228 (R_X86_64_GLOB_DAT): Likewise.
17229 (R_X86_64_JUMP_SLOT): Likewise.
17230 (R_X86_64_RELATIVE): Likewise.
17231 (R_X86_64_GOTPCREL): Likewise.
17232 (R_X86_64_32): Likewise.
17233 (R_X86_64_32S): Likewise.
17234 (R_X86_64_16): Likewise.
17235 (R_X86_64_PC16): Likewise.
17236 (R_X86_64_8): Likewise.
17237 (R_X86_64_PC8): Likewise.
17239 * include/grub/i386/efi/pci.h: New file.
17241 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
17242 Change it value based on platform.
17243 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
17244 (GRUB_E820_RAM): Likewise.
17245 (GRUB_E820_RESERVED): Likewise.
17246 (GRUB_E820_ACPI): Likewise.
17247 (GRUB_E820_NVS): Likewise.
17248 (GRUB_E820_EXEC_CODE): Likewise.
17249 (GRUB_E820_MAX_ENTRY): Likewise.
17250 (grub_e820_mmap): New structure.
17251 (linux_kernel_header): Change the efi field according to different
17252 kernel version, also field from linux_kernel_header.
17254 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
17256 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
17257 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
17258 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
17259 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
17260 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
17261 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
17262 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
17263 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
17264 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
17265 (GRUB_PCI_ADDR_IO_MASK): Likewise.
17267 * include/grub/x86_64/efi/kernel.h: New file.
17269 * include/grub/x86_64/efi/loader.h: Likewise.
17271 * include/grub/x86_64/efi/machine.h: Likewise.
17273 * include/grub/x86_64/efi/pci.h: Likewise.
17275 * include/grub/x86_64/efi/time.h: Likewise.
17277 * include/grub/x86_64/linux.h: Likewise.
17279 * include/grub/x86_64/setjmp.h: Likewise.
17281 * include/grub/x86_64/time.h: Likewise.
17283 * include/grub/x86_64/types.h: Likewise.
17285 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
17286 GRUB_TARGET_SIZEOF_VOID_P.
17288 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
17289 (grub_efi_locate_handle): Likewise.
17290 (grub_efi_open_protocol): Likewise.
17291 (grub_efi_set_text_mode): Likewise.
17292 (grub_efi_stall): Likewise.
17293 (grub_exit): Likewise.
17294 (grub_reboot): Likewise.
17295 (grub_halt): Likewise.
17296 (grub_efi_exit_boot_services): Likewise.
17297 (grub_get_rtc): Likewise.
17299 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
17300 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
17301 (grub_efi_allocate_pages): Wrap efi calls.
17302 (grub_efi_free_pages): Wrap efi calls.
17303 (grub_efi_get_memory_map): Wrap efi calls.
17305 * kern/x86_64/dl.c: New file.
17307 * kern/x86_64/efi/callwrap.S: Likewise.
17309 * kern/x86_64/efi/startup.S: Likewise.
17311 * loader/efi/appleloader.c: Likewise.
17313 * loader/efi/chainloader.c (cmdline): New variable.
17314 (grub_chainloader_unload): Wrap efi calls.
17315 (grub_chainloader_boot): Likewise.
17316 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
17319 * loader/efi/chainloader_normal.c (chainloader_command):
17320 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
17323 * loader/i386/efi/linux.c (allocate_pages): Change allocation
17325 (grub_e820_add_region): New function.
17326 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
17328 (grub_find_video_card): New function.
17329 (grub_linux_setup_video): New function.
17330 (grub_rescue_cmd_linux): Probe for video information.
17332 * normal/x86_64/setjmp.S: New file.
17334 * term/efi/console.c (map_char): New function.
17335 (grub_console_putchar): Map unicode char.
17336 (grub_console_checkkey): Wrap efi calls.
17337 (grub_console_getkey): Likewise.
17338 (grub_console_getwh): Likewise.
17339 (grub_console_gotoxy): Likewise.
17340 (grub_console_cls): Likewise.
17341 (grub_console_setcolorstate): Likewise.
17342 (grub_console_setcursor): Likewise.
17344 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
17346 2008-07-16 Pavel Roskin <proski@gnu.org>
17348 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
17351 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
17352 pointer, not an integer. This fixes a warning and prevents
17353 precision loss on 64-bit systems.
17354 (relocate_addresses): Remove unneeded cast.
17356 2008-07-15 Pavel Roskin <proski@gnu.org>
17358 * kern/i386/ieee1275/init.c: Include grub/cache.h.
17360 * term/ieee1275/ofconsole.c: Disable code unused on i386.
17362 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
17363 Fix comparison between signed and unsigned.
17365 * include/grub/i386/ieee1275/console.h: Declare
17366 grub_console_init() and grub_console_fini().
17368 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
17369 It's empty and unused.
17371 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
17372 beginning to avoid warnings with some compilers.
17374 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
17375 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
17377 2008-07-14 Pavel Roskin <proski@gnu.org>
17379 * kern/env.c (grub_register_variable_hook): Don't copy empty
17380 string, it leaks memory. Pass "" to grub_env_set(), it should
17381 handle constant strings.
17383 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
17384 * commands/cmp.c (grub_cmd_cmp): Likewise.
17385 * kern/dl.c (grub_dl_flush_cache): Likewise.
17386 (grub_dl_load_core): Likewise.
17387 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
17388 (grub_elf64_load_phdrs): Likewise.
17390 2008-07-13 Pavel Roskin <proski@gnu.org>
17392 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
17393 between signed and unsigned.
17394 (LzmaEnc_Finish): Fix warning about an unused parameter.
17396 2008-07-13 Bean <bean123ch@gmail.com>
17398 * Makefile.in (enable_lzo): New rule.
17400 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
17402 * configure.ac (ENABLE_LZO): New option --enable-lzo.
17404 * boot/i386/pc/lnxboot.S: #include <config.h>.
17406 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
17407 its value according to the compression algorithm used, lzo or lzma.
17409 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
17410 compression algorithm according to configure macro.
17412 * kern/i386/pc/startup.S (codestart): Likewise.
17414 * kern/i386/pc/lzma_decode.S: New file.
17416 * include/grub/lib/LzFind.h: Likewise.
17418 * include/grub/lib/LzHash.h: Likewise.
17420 * include/grub/lib/LzmaDec.h: Likewise.
17422 * include/grub/lib/LzmaEnc.h: Likewise.
17424 * include/grub/lib/LzmaTypes.h: Likewise.
17426 * lib/LzFind.c: Likewise.
17428 * lib/LzmaDec.c: Likewise.
17430 * lib/LzmaEnc.c: Likewise.
17432 2008-07-13 Bean <bean123ch@gmail.com>
17434 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
17435 (grub_ext4_extent_header): New structure.
17436 (grub_ext4_extent): Likewise.
17437 (grub_ext4_extent_idx): Likewise.
17438 (grub_ext4_find_leaf): New function.
17439 (grub_ext2_read_block): Handle extents.
17441 2008-07-12 Robert Millan <rmh@aybabtu.com>
17443 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
17445 2008-07-11 Robert Millan <rmh@aybabtu.com>
17447 * util/grub.d/40_custom.in: New file. Example on how to add custom
17448 entries to /etc/grub.d.
17449 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
17450 40_custom (implicitly, by merging all the grub.d rules).
17452 2008-07-11 Pavel Roskin <proski@gnu.org>
17454 * commands/read.c (grub_getline): Fix invalid memory access.
17455 Don't add newline to the variable value.
17457 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
17458 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
17459 (serial_hw_get_port): Check validity of the port number.
17460 (grub_cmd_serial): Check return value of serial_hw_get_port().
17462 2008-07-07 Pavel Roskin <proski@gnu.org>
17464 * boot/i386/pc/diskboot.S (notification_string): Replace
17465 "Loading kernel" with just "loading". This is shorter, less
17466 confusing and saves a few bytes for possible future changes.
17468 2008-07-05 Pavel Roskin <proski@gnu.org>
17470 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
17471 size for ATAPI devices, they are undefined. Output sector
17472 number in decimal form.
17474 * disk/ata.c: Use named constants for status bits.
17476 2008-07-04 Pavel Roskin <proski@gnu.org>
17478 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
17479 grub_addr_t before casting it to the void pointer to fix a
17480 warning. Non-addressable regions are discarded earlier.
17481 (grub_arch_modules_addr): Cast _end to grub_addr_t.
17482 * kern/i386/linuxbios/table.c: Include grub/misc.h.
17483 (check_signature): Don't shadow table_header.
17484 (grub_linuxbios_table_iterate): Cast numeric constants to
17485 grub_linuxbios_table_header_t.
17486 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
17489 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
17492 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17493 pointer, which can cause warnings. Support 64-bit addresses.
17495 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17496 of sizeof(long). This fixes PowerPC image generation on x86_64.
17498 2008-07-04 Robert Millan <rmh@aybabtu.com>
17500 This fixes a performance issue when pc & gpt partmap iterators
17501 didn't abort iteration even after our hook found what it was
17502 looking for (often causing expensive probes of non-existent drives).
17504 Some callers relied on previous buggy behaviour, since they would
17505 raise an error when their own hooks caused early abortion of its
17508 * kern/device.c (grub_device_open): Improve error message.
17509 * disk/lvm.c (grub_lvm_open): Likewise.
17510 * disk/raid.c (grub_raid_open): Likewise.
17512 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17513 when hook requests it, independently of grub_errno.
17514 (pc_partition_map_probe): Do not fail when find_func() caused
17515 early abortion of pc_partition_map_iterate().
17517 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17518 when hook requests it, independently of grub_errno.
17519 (gpt_partition_map_probe): Do not fail when find_func() caused
17520 early abortion of gpt_partition_map_iterate().
17522 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17523 when hook requests it, independently of grub_errno. Do not fail when
17524 part_map_iterate_hook() caused early abortion of p->iterate().
17526 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17527 when grub_partition_iterate() returned with non-zero.
17529 2008-07-03 Pavel Roskin <proski@gnu.org>
17531 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17532 like we do in grub_ata_pio_read().
17533 (grub_ata_readwrite): Always write individual sectors. Fix the
17534 sector count for the remainder.
17535 (grub_ata_write): Enable writing to ATA devices. Correctly
17536 report error for ATAPI devices.
17538 2008-07-02 Pavel Roskin <proski@gnu.org>
17540 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17543 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17544 for every read sector, we already increment it for the whole
17545 batch. This fixes reading more than 256 sectors at once.
17547 * util/grub-editenv.c (cmd_info): Cast argument to long
17548 explicitly. ptrdiff_t reduces to int on i386.
17550 * util/grub-editenv.c (main): Be specific which parameter is
17553 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17554 (memdisk): Make memdisk_orig_addr a pointer.
17556 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17557 for file offsets, use grub_off_t instead. Fix printf format
17560 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17561 there. Real unexpected warnings should not drown in the noise
17562 about known problems.
17564 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17565 grub_disk_addr_t for memory addresses.
17567 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17568 explicitly to fix a warning.
17570 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17572 * Makefile.in (MODULE_LDFLAGS): New variable.
17573 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17574 the linker accepts --build-id=none.
17575 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17577 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17579 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17580 those in Linux XFS code. Provide a way to access 64-bit parent
17582 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17583 the end of struct grub_xfs_dir_header.
17585 2008-07-02 Bean <bean123ch@gmail.com>
17587 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17588 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17589 and GRUB_IEEE1275_FLAG_NO_ANSI.
17591 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17592 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17593 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17595 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17596 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17598 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17599 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17601 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17602 esc sequence on non ANSI terminal.
17603 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17605 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17608 2008-07-02 Bean <bean123ch@gmail.com>
17610 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17611 (grub_editenv_SOURCES): New variable.
17612 (pkglib_MODULES): Add loadenv.mod.
17613 (loadenv_mod_SOURCES): New variable.
17614 (loadenv_mod_CFLAGS): Likewise.
17615 (loadenv_mod_LDFLAGS): Likewise.
17617 * include/grub/envblk.h: New file.
17619 * util/envblk.c: New file.
17621 * util/grub-editenv.c: New file.
17623 * commands/loadenv.c: New file.
17625 2008-07-01 Pavel Roskin <proski@gnu.org>
17627 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17628 not unsigned char. This fixes warnings and is consistent with
17631 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17633 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17635 * term/tparm.c (analyze): Always set *popcount.
17637 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17638 cast to fix a warning.
17640 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17641 cast to suppress a warning.
17643 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17644 grub_fshelp_read_file() expects.
17646 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17647 write uuid as a 32-bit value in CPU byte order, so declare and
17650 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17651 long if the format specifier expects it.
17652 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17653 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17654 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17655 long to fix a warning.
17656 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17657 grub_dprintf() arguments to fix warnings.
17659 2008-06-30 Pavel Roskin <proski@gnu.org>
17661 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17662 install_bsd_part immediately before core.img is embedded or
17663 modified on disk. This fixes core.img verification if core.img
17664 cannot be embedded.
17666 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17667 core_path to calculate the blocklist.
17668 Patch from Javier Martín <lordhabbit@gmail.com>
17670 2008-06-29 Robert Millan <rmh@aybabtu.com>
17672 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17673 block to disk block.
17674 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17675 Patch from Niels Böhm <bitbucket@arcor.de>
17677 2008-06-29 Robert Millan <rmh@aybabtu.com>
17679 * util/update-grub_lib.in (font_path): Search for fonts in
17680 /boot/grub first, which is more likely to be readable (we aren't
17681 deciding where fonts live, just looking for them).
17683 2008-06-26 Pavel Roskin <proski@gnu.org>
17685 * util/biosdisk.c (read_device_map): Don't leave dead map
17686 entries for devices failing stat() check.
17688 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17689 core_path_dev for the core.img path on the target device.
17691 2008-06-26 Robert Millan <rmh@aybabtu.com>
17693 * disk/fs_uuid.c: New file.
17694 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17695 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17696 (fs_uuid_mod_LDFLAGS): New variables.
17697 * include/grub/disk.h (grub_disk_dev_id): Add
17698 `GRUB_DISK_DEVICE_UUID_ID'.
17699 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17700 implement iterate().
17702 2008-06-26 Robert Millan <rmh@aybabtu.com>
17704 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17705 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17706 Linux image includes no initrd.
17708 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17710 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17711 call to resolve the core image location that effectively appended the
17714 2008-06-21 Robert Millan <rmh@aybabtu.com>
17716 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17719 * util/grub.d/10_hurd.in: ... to here ...
17720 * util/grub.d/10_linux.in: ... and here.
17722 2008-06-19 Robert Millan <rmh@aybabtu.com>
17724 * kern/main.c (grub_main): Export `prefix' variable immediately
17725 after it has been set by grub_machine_set_prefix().
17727 2008-06-19 Robert Millan <rmh@aybabtu.com>
17729 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17730 search result when not saving to variable, not the other way around.
17731 When saving to variable, abort iteration as soon as a match is found.
17733 2008-06-19 Robert Millan <rmh@aybabtu.com>
17735 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17736 check for partition that provides /boot/grub. Its logic is flawed,
17737 as it prevents prepare_grub_to_access_device() from being called
17740 2008-06-19 Robert Millan <rmh@aybabtu.com>
17742 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17743 "insmod" command directly when abstraction modules are needed,
17744 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17745 since it had already been processed).
17747 2008-06-19 Pavel Roskin <proski@gnu.org>
17749 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17750 changed. This is needed in case GRUB_LIBDIR changes.
17751 * conf/i386-ieee1275.rmk: Likewise.
17752 * conf/i386-linuxbios.rmk: Likewise.
17753 * conf/i386-pc.rmk: Likewise.
17754 * conf/powerpc-ieee1275.rmk: Likewise.
17756 2008-06-18 Pavel Roskin <proski@gnu.org>
17758 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17759 kernel_elf_symlist.c to symlist.c for consistency with other
17760 architectures. Update all users.
17761 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17763 2008-06-18 Robert Millan <rmh@aybabtu.com>
17765 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17768 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17769 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17770 a RAID device, run setup() for all members independently on whether
17771 LVM abstraction is being used.
17772 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17773 If grub-mkimage has set `*install_dos_part == -2', don't override this
17775 Perform *install_dos_part adjustments independently on whether
17776 we're embedding or not.
17777 Clarify error message when image is too big for embedding.
17778 Remove duplicate *install_dos_part stanza.
17780 2008-06-17 Robert Millan <rmh@aybabtu.com>
17782 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17783 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17785 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17786 values in grub_ofconsole_normal_color and
17787 grub_ofconsole_highlight_color (they're not directly related to
17788 background and foreground).
17789 (grub_ofconsole_setcolorstate): Extract background and foreground
17790 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17792 2008-06-17 Robert Millan <rmh@aybabtu.com>
17794 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17795 /boot/grub for the check in last commit, not /boot (they could be
17796 different partitions).
17798 2008-06-16 Robert Millan <rmh@aybabtu.com>
17800 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17801 asked to setup access for the same partition that provides /boot,
17802 don't bother using UUIDs since our root already has the value we
17805 2008-06-16 Robert Millan <rmh@aybabtu.com>
17807 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17809 Patch from Sven Mueller <sven@debian.org>.
17811 2008-06-16 Robert Millan <rmh@aybabtu.com>
17813 * util/update-grub.in: Check for $EUID instead of $UID.
17814 Reported by Vincent Zweije.
17816 2008-06-16 Bean <bean123ch@gmail.com>
17818 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17819 (grub_ext2_read_block): Likewise.
17820 (grub_ext2_read_inode): Likewise.
17821 (grub_ext2_mount): Likewise.
17822 (grub_ext2_close): Likewise.
17823 (grub_ext3_get_journal): Removed.
17825 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17826 (grub_reiserfs_read_symlink): Likewise.
17827 (grub_reiserfs_mount): Likewise.
17828 (grub_reiserfs_open): Likewise.
17829 (grub_reiserfs_read): Likewise.
17830 (grub_reiserfs_close): Likewise.
17831 (grub_reiserfs_get_journal): Removed.
17833 * fs/fshelp.c (grub_fshelp_read): Removed.
17834 (grub_fshelp_map_block): Likewise.
17836 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17837 (grub_fshelp_journal): Likewise.
17838 (grub_fshelp_read): Likewise.
17839 (grub_fshelp_map_block): Likewise.
17841 2008-06-16 Pavel Roskin <proski@gnu.org>
17843 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17844 floating point anymore.
17845 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17847 2008-06-15 Pavel Roskin <proski@gnu.org>
17849 * commands/ls.c (grub_ls_list_files): Use integer calculations
17850 for human readable format, avoid floating point use.
17851 * kern/misc.c (grub_ftoa): Remove.
17852 (grub_vsprintf): Remove floating point support.
17854 2008-06-15 Robert Millan <rmh@aybabtu.com>
17856 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17858 Reported by Max Vozeler.
17860 2008-06-15 Robert Millan <rmh@aybabtu.com>
17862 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17863 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17865 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17866 the beginning of the prefix.
17868 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17869 It is assumed that if we have a memdisk, grub-mkimage has set
17870 grub_prefix to include the "(memdisk)" drive in it.
17872 2008-06-15 Robert Millan <rmh@aybabtu.com>
17874 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17875 Initialize keyboard controller after registering the terminal, so that
17876 grub_printf() can be called from grub_keyboard_controller_init().
17878 2008-06-15 Robert Millan <rmh@aybabtu.com>
17880 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17881 extent-btree which is written as big endian on disk.
17882 Reported by Alain Greppin <al@chilibi.org>.
17884 2008-06-14 Robert Millan <rmh@aybabtu.com>
17886 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17887 * util/i386/pc/grub-install.in (modules): Likewise.
17889 2008-06-13 Pavel Roskin <proski@gnu.org>
17891 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17893 2008-06-13 Bean <bean123ch@gmail.com>
17895 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17897 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17899 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17900 to indicate sparse block.
17902 2008-06-12 Pavel Roskin <proski@gnu.org>
17904 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17905 number, grub_fshelp_read() does it for us.
17907 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17908 linear disk read with journal translation.
17909 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17910 * include/grub/fshelp.h: Declare grub_fshelp_read().
17912 2008-06-09 Pavel Roskin <proski@gnu.org>
17914 * fs/minix.c (grub_minix_mount): Handle error reading
17917 2008-06-08 Robert Millan <rmh@aybabtu.com>
17919 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17920 don't append the RAID prefix afterwards.
17921 Reported by Clint Adams.
17923 2008-06-08 Robert Millan <rmh@aybabtu.com>
17925 Based on description from Pavel:
17926 * kern/disk.c (grub_disk_check_range): Rename to ...
17927 (grub_disk_adjust_range): ... this. Add a comment explaining the
17928 tasks performed by this function.
17930 2008-06-08 Robert Millan <rmh@aybabtu.com>
17932 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17933 `num_serial' (for consistency with other variables).
17934 (struct grub_ntfs_data): Add `uuid' member.
17935 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17936 (grub_ntfs_uuid): New function.
17937 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17939 2008-06-07 Pavel Roskin <proski@gnu.org>
17941 * util/biosdisk.c (open_device): Revert last change to the
17942 function, it broke installation. The sector needs to be
17943 different dependent on which device is opened.
17945 2008-06-06 Robert Millan <rmh@aybabtu.com>
17947 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17948 rest of GRUB, and breakage doesn't happen if its value were modified.
17950 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17951 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17952 a constant (same value).
17953 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17954 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17956 2008-06-06 Robert Millan <rmh@aybabtu.com>
17958 * util/biosdisk.c (open_device): Do not modify sector offset when
17959 accessing a partition. kern/disk.c already handles this for us.
17961 2008-06-06 Robert Millan <rmh@aybabtu.com>
17963 * util/grub-emu.c (grub_machine_init): Move code in this function from
17965 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17966 segfault in case grub_printf() is called).
17968 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17969 grub_probe. Update all users not to explicitly add it again.
17970 (grub_device): New variable; contains corresponding device for grubdir.
17971 (fs_module, partmap_module, devabstraction_module): Pass
17972 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17975 2008-06-05 Robert Millan <rmh@aybabtu.com>
17977 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17978 is found, print it (same layout as with labels).
17980 2008-06-04 Robert Millan <rmh@aybabtu.com>
17982 * util/biosdisk.c (get_drive): Rename to ...
17983 (find_grub_drive): ... this. Update all users.
17985 (get_os_disk): Rename to ...
17986 (convert_system_partition_to_system_disk): ... this. Update all users.
17988 (find_drive): Rename to ...
17989 (find_system_device): ... this. Update all users.
17991 2008-06-04 Robert Millan <rmh@aybabtu.com>
17993 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17994 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17995 (make_device_map): Likewise.
17997 2008-06-01 Robert Millan <rmh@aybabtu.com>
17999 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
18000 before dereferencing it.
18002 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
18003 union with fat12/fat16-specific ones. Add some new fields, including
18004 `num_serial' for both versions.
18005 (struct grub_fat_data): Add `uuid' member.
18006 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
18007 names. Initialize `data->uuid' using `num_serial'.
18008 (grub_fat_uuid): New function.
18009 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
18011 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
18012 (grub_reiserfs_uuid): New function.
18013 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
18016 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
18017 (grub_xfs_uuid): New function.
18018 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
18020 2008-06-01 Robert Millan <rmh@aybabtu.com>
18022 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
18023 code that is backward compatible with pre-uuid search command.
18025 2008-05-31 Robert Millan <rmh@aybabtu.com>
18027 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
18028 floppies after everything else, to ensure floppy drive isn't accessed
18029 unnecessarily (patch from Bean).
18031 2008-05-31 Robert Millan <rmh@aybabtu.com>
18033 * commands/search.c (search_label, search_fs_uuid, search_file): Do
18034 not print device names when we were asked to set a variable.
18036 2008-05-31 Robert Millan <rmh@aybabtu.com>
18038 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
18039 using "cursor-on" and "cursor-off" commands (understood at least by
18040 the Open Firmware flavour on OLPC).
18042 2008-05-31 Michael Gorven <michael@gorven.za.net>
18044 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
18045 on and off sequences.
18047 2008-05-31 Robert Millan <rmh@aybabtu.com>
18049 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
18050 * util/update-grub.in: Likewise.
18052 2008-05-30 Pavel Roskin <proski@gnu.org>
18054 * util/biosdisk.c (linux_find_partition): Simplify logic and
18055 make the code more universal. Keep special processing for
18056 devfs, but use a simple rule for all other devices. If the
18057 device ends with a number, append 'p' and the partition number.
18058 Otherwise, append only the partition number.
18060 2008-05-30 Robert Millan <rmh@aybabtu.com>
18062 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
18063 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
18064 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
18065 the `root' parameter to Linux.
18067 2008-05-30 Robert Millan <rmh@aybabtu.com>
18069 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
18070 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
18071 --fs_uuid with --fs-uuid.
18072 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
18073 all filesystems support them).
18075 2008-05-30 Robert Millan <rmh@aybabtu.com>
18077 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
18078 grub_printf() flags, since we're printing in units of 2 bytes.
18080 2008-05-30 Robert Millan <rmh@aybabtu.com>
18082 * util/grub.d/00_header.in: Remove obsolete comment referencing
18083 convert_system_path_to_grub_path().
18084 * util/update-grub.in: Likewise.
18085 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
18086 (convert_system_path_to_grub_path): Add a warning message explaining
18087 that this function is deprecated. Rely on is_path_readable_by_grub()
18088 for the readability checks.
18089 (font_path): Use is_path_readable_by_grub() for the readability
18090 check rather than convert_system_path_to_grub_path().
18092 2008-05-30 Robert Millan <rmh@aybabtu.com>
18094 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
18095 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
18096 converting it first.
18097 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
18098 grub.cfg for access to font file, and afterwards call it again to set
18101 2008-05-30 Robert Millan <rmh@aybabtu.com>
18103 * commands/search.c (options): Add --fs_uuid option.
18104 (search_fs_uuid): New function.
18105 (grub_cmd_search): Fix --set argument passing.
18106 Use search_fs_uuid() when requested via --fs_uuid.
18107 (grub_search_init): Update help message.
18108 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
18109 and redeclare it as an array of 16-bit words.
18110 (grub_ext2_uuid): New function.
18111 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
18112 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
18113 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
18114 (GRUB_DEVICE_BOOT_UUID): New variables.
18115 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
18116 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
18118 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
18119 just assume `root' variable has the right value.
18120 * util/grub.d/10_linux.in: Likewise.
18121 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
18123 (main): Recognise `-t fs_uuid' argument.
18125 2008-05-30 Robert Millan <rmh@aybabtu.com>
18127 * util/biosdisk.c (map): Redefine structure to hold information
18128 about GRUB drive name.
18129 (get_drive): Reimplement without assuming (and verifying) BIOS-like
18131 (call_hook): Remove.
18132 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
18133 member. Assume drive has partitions.
18134 (grub_util_biosdisk_open): Access device names via `.device' struct
18136 (open_device): Likewise.
18137 (find_drive): Likewise.
18138 (read_device_map): Adjust map[] usage to match the new struct
18139 definition. Don't check for duplicates (still possible, but not cheap
18141 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
18142 (make_device_name): Remove assumption of BIOS-like drive names.
18144 2008-05-30 Pavel Roskin <proski@gnu.org>
18146 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
18147 compiling execute.c doesn't need grub_script.tab.h anymore.
18148 (normal/command.c_DEPENDENCIES): Likewise.
18149 (normal/function.c_DEPENDENCIES): Likewise.
18150 * conf/i386-ieee1275.rmk: Likewise.
18151 * conf/i386-linuxbios.rmk: Likewise.
18152 * conf/i386-pc.rmk: Likewise.
18153 * conf/powerpc-ieee1275.rmk: Likewise.
18154 * conf/sparc64-ieee1275.rmk: Likewise.
18156 2008-05-29 Pavel Roskin <proski@gnu.org>
18158 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
18159 when scanning metadata for volume group name.
18161 * include/grub/script.h: Don't include grub_script.tab.h. It's
18162 a generated file, which may only be included from the files with
18163 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
18164 use union YYSTYPE, as the later allows forward declaration.
18165 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
18167 2008-05-29 Robert Millan <rmh@aybabtu.com>
18169 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
18170 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
18171 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
18172 (grub_console_checkkey): Add grub_dprintf() call to report unknown
18175 2008-05-29 Robert Millan <rmh@aybabtu.com>
18177 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
18178 control key combinations.
18180 2008-05-29 Robert Millan <rmh@aybabtu.com>
18182 * util/powerpc/ieee1275/grub-install.in: Move from here ...
18183 * util/ieee1275/grub-install.in: ... to here.
18184 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
18185 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
18186 (grub_install_SOURCES): Likewise.
18188 2008-05-29 Robert Millan <rmh@aybabtu.com>
18190 * fs/affs.c: Update copyright year.
18191 * fs/ext2.c: Likewise.
18192 * fs/fshelp.c: Likewise.
18193 * fs/hfsplus.c: Likewise.
18194 * fs/ntfs.c: Likewise.
18195 * fs/xfs.c: Likewise.
18196 * include/grub/fshelp.h: Likewise.
18197 * util/grub-mkdevicemap.c: Likewise.
18199 2008-05-28 Robert Millan <rmh@aybabtu.com>
18201 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
18202 might need to be fatfs to support some firmware implementations
18205 2008-05-28 Robert Millan <rmh@aybabtu.com>
18207 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
18209 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18210 (make_device_map): Likewise.
18212 2008-05-20 Bean <bean123ch@gmail.com>
18214 * fs/fshelp.c (grub_fshelp_map_block): New function.
18215 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
18216 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
18218 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
18219 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
18220 (grub_fshelp_journal): New structure.
18221 (grub_fshelp_map_block): New function prototype.
18222 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
18223 (grub_fshelp_map_block): Likewise.
18225 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
18226 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
18227 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
18228 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
18229 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
18230 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
18231 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
18232 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
18233 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
18234 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
18235 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
18236 (grub_ext2_sblock): New members for journal support.
18237 (grub_ext3_journal_header): New structure.
18238 (grub_ext3_journal_revoke_header): Likewise.
18239 (grub_ext3_journal_block_tag): Likewise.
18240 (grub_ext3_journal_sblock): Likewise.
18241 (grub_fshelp_node): New members logfile and journal.
18242 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
18243 grub_fshelp_map_block to get real block number.
18244 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
18246 (grub_ext2_read_inode): Likewise.
18247 (grub_ext3_get_journal): New function.
18248 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
18249 (grub_ext2_close): Release memory used by journal.
18251 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
18252 (REISERFS_MAGIC_DESC_BLOCK): New macro.
18253 (grub_reiserfs_transaction_header): Renamed to
18254 grub_reiserfs_description_block, replace field data with real_blocks.
18255 (grub_reiserfs_commit_block): New structure.
18256 (grub_reiserfs_data): New member journal.
18257 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
18259 (grub_reiserfs_read_symlink): Likewise.
18260 (grub_reiserfs_iterate_dir): Likewise.
18261 (grub_reiserfs_open): Likewise.
18262 (grub_reiserfs_read): Likewise.
18263 (grub_reiserfs_get_journal): New function.
18264 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
18265 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
18266 using grub_reiserfs_get_journal.
18267 (grub_reiserfs_close): Release memory used by journal.
18269 * fs/affs.c (grub_affs_read_block): Change block type to
18270 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
18272 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
18274 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
18276 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
18278 * fs/udf.c (grub_udf_read_block): Change block type to
18279 grub_disk_addr_t. Use type cast to avoid warning.
18281 * fs/xfs.c (grub_xfs_read_block): Likewise.
18283 2008-05-16 Christian Franke <franke@computer.org>
18285 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
18286 to ensure that break with ESC will always work.
18287 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
18288 Remove ESC from keyboard queue.
18290 2008-05-16 Christian Franke <franke@computer.org>
18292 * util/biosdisk.c: [__CYGWIN__] Add includes.
18293 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
18294 (get_os_disk): Move variable declarations to OS specific
18295 parts to avoid warning.
18296 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
18297 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
18298 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
18300 * util/getroot.c: [__CYGWIN__] Add includes.
18301 (strip_extra_slashes): Fix "/" case.
18302 [__CYGWIN__] (get_win32_path): New function.
18303 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
18304 [__CYGWIN__] (find_root_device): Disable.
18305 [__CYGWIN__] (get_bootsec_serial): New function.
18306 [__CYGWIN__] (find_cygwin_root_device): Likewise.
18307 [__linux__] (grub_guess_root_device): Add early returns to simplify
18309 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
18310 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
18311 check for Linux only.
18313 2008-05-15 Bean <bean123ch@gmail.com>
18315 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
18316 keyboard hang problem in apple's intel mac.
18318 2008-05-09 Robert Millan <rmh@aybabtu.com>
18320 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
18322 * util/grub-mkdevicemap.c (get_virtio_disk_name)
18323 (make_device_map): Likewise.
18324 Reported by Aurelien Jarno <aurel32@debian.org>
18326 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
18328 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
18329 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
18330 (make_device_map): Output entries for xvd type disks.
18332 2008-05-07 Robert Millan <rmh@aybabtu.com>
18334 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
18336 * util/grub-mkdevicemap.c (get_cciss_disk_name)
18337 (make_device_map): Likewise.
18338 Reported by Roland Dreier <rdreier@cisco.com>
18340 2008-05-07 Robert Millan <rmh@aybabtu.com>
18342 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
18343 grub_strstr() call. Correct a few mistakes in failure path handling.
18345 2008-05-06 Robert Millan <rmh@aybabtu.com>
18347 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
18348 Do not print a trailing slash (therefore, the root directory is an
18350 (convert_system_path_to_grub_path): Do not remove trailing slash
18351 from make_system_path_relative_to_its_root() output.
18353 * util/i386/pc/grub-install.in: Add trailing slash to output from
18354 make_system_path_relative_to_its_root().
18356 2008-05-06 Robert Millan <rmh@aybabtu.com>
18358 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
18359 ensures that output lines aren't intermangled with those sent to
18360 stderr (via grub_util_info()).
18361 * util/grub-probe.c (grub_refresh): Likewise.
18362 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
18364 2008-05-05 Christian Franke <franke@computer.org>
18366 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
18367 Add Cygwin device names.
18368 (get_ide_disk_name) [__CYGWIN__]: Likewise.
18369 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
18370 (check_device): Return error instead of success on empty name.
18371 (make_device_map): Move label inside linux specific code to
18372 prevent compiler warning.
18374 2008-04-30 Robert Millan <rmh@aybabtu.com>
18376 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
18377 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
18379 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
18381 2008-04-29 Robert Millan <rmh@aybabtu.com>
18383 * docs/grub.cfg: New file (example GRUB configuration).
18385 2008-04-26 Robert Millan <rmh@aybabtu.com>
18387 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
18388 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
18389 and `disk/ieee1275/nand.c'.
18391 2008-04-25 Bean <bean123ch@gmail.com>
18393 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
18396 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
18397 change the buffer size to 4096 for cdrom device.
18399 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
18401 (_linux_mod_SOURCES): New variable.
18402 (_linux_mod_CFLAGS): Likewise.
18403 (_linux_mod_LDFLAGS): Likewise.
18404 (linux_mod_SOURCES): Likewise.
18405 (linux_mod_CFLAGS): Likewise.
18406 (linux_mod_LDFLAGS): Likewise.
18407 (nand_mod_SOURCES): Likewise.
18408 (nand_mod_CFLAGS): Likewise.
18409 (nand_mod_LDFLAGS): Likewise.
18411 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
18412 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
18413 type property. (nand device in olpc don't have this property)
18415 * include/grub/disk.h (grub_disk_dev_id): New macro
18416 GRUB_DISK_DEVICE_NAND_ID.
18418 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
18419 function prototype.
18420 (grub_rescue_cmd_initrd): Likewise.
18422 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
18423 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
18424 ofw_cif_handler and ofw_idt, adjust padding number.
18426 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
18427 GRUB_MACHINE_IEEE1275 is defined.
18429 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
18430 Use NESTED_FUNC_ATTR attribute on the hook parameter.
18432 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
18433 on nested function heap_init.
18434 (grub_upper_mem): New variable for i386-ieee1275.
18435 (grub_get_extended_memory): New function for i386-ieee1275.
18436 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
18438 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
18439 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
18442 * loader/i386/ieee1275/linux.c: New file.
18444 * loader/i386/ieee1275/linux_normal.c: New file.
18446 * disk/ieee1275/nand.c: New file.
18448 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
18450 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
18452 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
18454 2008-04-18 Robert Millan <rmh@aybabtu.com>
18456 Restructures early code path on ieee1275 to unify grub_main() as
18457 the first C function that is executed in every platform.
18459 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
18460 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
18462 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
18463 * kern/ieee1275/cmain.c (cmain): Rename to ...
18464 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
18465 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
18468 2008-04-18 Robert Millan <rmh@aybabtu.com>
18470 * util/update-grub.in: Fix syntax error when setting
18471 `GRUB_PRELOAD_MODULES'.
18472 Reported by Stephane Chazelas <stephane@artesyncp.com>
18474 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
18476 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
18477 section into account, newer toolchains generate unique build ids
18478 * configure.ac: remove the test for --build-id=none acceptance,
18479 we want build ids to be preserved
18480 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
18481 far from other sections don't cause the raw binary images grow
18484 2008-04-15 Robert Millan <rmh@aybabtu.com>
18486 * disk/lvm.c: Update copyright year.
18487 * kern/misc.c: Likewise.
18489 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18491 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
18492 there is no memory left for physical volume name.
18494 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18496 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18497 volume name mapping to support bigger than 9 character names properly.
18499 2008-04-13 Robert Millan <rmh@aybabtu.com>
18501 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18502 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18504 2008-04-13 Christian Franke <franke@computer.org>
18506 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18507 to create a floppy emulation boot CD when non emulation mode
18509 Enable Joliet CD filesystem extension.
18511 2008-04-13 Robert Millan <rmh@aybabtu.com>
18513 * kern/misc.c (grub_strncat): Fix off-by-one error.
18514 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18516 * kern/env.c (grub_env_context_close): Clear current context, not
18518 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18520 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18522 2008-04-13 Robert Millan <rmh@aybabtu.com>
18524 Improve robustness when handling LVM.
18526 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
18527 (and leave `*p' unmodified).
18528 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18530 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18531 iterating through it.
18532 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18534 (grub_lvm_scan_device): Check the return value (and fail gracefully
18535 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18536 Don't assume `vg->pvs != NULL' when iterating through it.
18538 2008-04-13 Robert Millan <rmh@aybabtu.com>
18540 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18541 * genmk.rb (partmap): New variable.
18542 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18543 (#{partmap}): New target rule.
18544 * genpartmaplist.sh: New file.
18545 * Makefile.in (pkglib_DATA): Add partmap.lst.
18546 (partmap.lst): New target rule.
18547 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18548 modules (including all partition maps), instead of preloading them.
18550 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18552 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18553 `linux-boot-prober' (if installed) to detect other operating
18554 systems which are installed on the computer and add them to
18556 * conf/common.rmk: Build and install 30_os-prober.
18558 2008-04-12 Robert Millan <rmh@aybabtu.com>
18560 * kern/powerpc/ieee1275/init.c: Move from here ...
18561 * kern/ieee1275/init.c: ... to here. Update all users.
18563 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18564 * kern/ieee1275/cmain.c: ... to here. Update all users.
18566 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18567 * kern/ieee1275/openfw.c: ... to here. Update all users.
18569 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18570 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18572 2008-04-10 Pavel Roskin <proski@gnu.org>
18574 * configure.ac: Always use "_cv_" in cache variables for
18575 compatibility with Autoconf 2.62.
18577 2008-04-07 Robert Millan <rmh@aybabtu.com>
18579 Revert grub/machine/init.h addition by Pavel (since it breaks on
18580 i386-ieee1275 and others):
18581 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18582 * util/powerpc/ieee1275/misc.c: Likewise.
18584 2008-04-07 Robert Millan <rmh@aybabtu.com>
18586 * util/grub-probe.c (probe): Improve error message.
18588 2008-04-07 Robert Millan <rmh@aybabtu.com>
18590 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18591 (this prevents the presence of a bogus entry from ruining the whole
18594 2008-04-06 Pavel Roskin <proski@gnu.org>
18596 * util/biosdisk.c: Include grub/util/biosdisk.h.
18597 * util/grub-fstest.c (execute_command): Make static.
18598 * util/grub-mkdevicemap.c (check_device): Likewise.
18599 * util/i386/pc/misc.c: Include grub/machine/init.h.
18600 * util/powerpc/ieee1275/misc.c: Likewise.
18601 * util/lvm.c: Include grub/util/lvm.h.
18602 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18604 * util/raid.c: Include grub/util/raid.h.
18605 (grub_util_getdiskname): Make static.
18607 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18608 grub_hostfs_fini(), as they are called from grub_init_all() and
18609 grub_fini_all() respectively. This fixes an infinite loop in
18610 grub-fstest due to double registration of hostfs.
18611 Reported by Christian Franke <Christian.Franke@t-online.de>
18613 2008-04-05 Pavel Roskin <proski@gnu.org>
18615 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18616 all 8 functions. Otherwise, probe function 0 only.
18618 2008-04-04 Pavel Roskin <proski@gnu.org>
18620 * commands/lspci.c (grub_lspci_iter): Print the bus number
18623 * commands/lspci.c (grub_pci_classes): Fix typos.
18624 (grub_lspci_iter): Don't print func twice. Print vendor ID
18625 before device ID, as it's normally done.
18627 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18628 Fix signedness warnings.
18629 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18631 * util/ieee1275/get_disk_name.c: Include config.h so that
18632 _GNU_SOURCE is defined and getline() is declared. Mark an
18633 unused argument as such. Fix a signedness warning.
18635 2008-04-02 Pavel Roskin <proski@gnu.org>
18637 * genkernsyms.sh.in: Use more robust assignments for CC and
18638 srcdir. Quote srcdir.
18639 * gensymlist.sh.in: Likewise. Assert at the compile time that
18640 the symbol table is not empty.
18642 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18643 * fs/cpio.c (grub_cpio_read): Likewise.
18645 2008-04-01 Pavel Roskin <proski@gnu.org>
18647 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18648 * disk/host.c (grub_host_open): Likewise.
18649 * disk/loopback.c (grub_loopback_open): Likewise.
18650 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18651 disk->id as in disk/host.c, not a multi-character constant.
18653 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18654 later is obsolete, potentially dangerous and sets a bad example.
18655 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18656 * util/misc.c (grub_util_get_image_size): Likewise.
18658 * disk/loopback.c (options): Improve help for "--partitions".
18660 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18661 options to align them with the short options, e.g. "echo -e".
18663 2008-03-31 Bean <bean123ch@gmail.com>
18665 * video/reader/png.c (grub_png_data): New member is_16bit and
18667 (grub_png_decode_image_header): Detect 16 bit png image.
18668 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18669 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18670 (grub_video_reader_png): Release memory occupied by image_data.
18672 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18674 (grub_nfs_mount): Skip the test for sector per cluster.
18676 * include/grub/ntfs.h (MAX_SPC): Removed.
18678 2008-03-31 Bean <bean123ch@gmail.com>
18680 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18681 (grub_probe_SOURCES): Add fs/afs.c.
18682 (grub_fstest_SOURCES): Likewise.
18683 (afs_mod_SOURCES): New variable.
18684 (afs_mod_CFLAGS): Likewise.
18685 (afs_mod_LDFLAGS): Likewise.
18687 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18688 (grub_emu_SOURCES): Likewise.
18690 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18692 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18694 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18698 * fs/afs.c: New file.
18700 2008-03-30 Pavel Roskin <proski@gnu.org>
18702 * disk/host.c: Include grub/misc.h to fix a warning.
18703 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18704 warnings about implicit declarations.
18706 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18708 * include/grub/i386/loader.h: Change declaration of
18709 grub_linux_boot() to match what grub_loader_set() expects.
18710 * util/getroot.c (grub_guess_root_device): Return const char* to
18712 * util/grub-probe.c (probe): Fix a warning about uninitialized
18713 abstraction_name variable.
18714 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18715 second argument as unused to fix a warning.
18717 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18718 missing grub_error() call.
18720 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18721 2.60 and newer uses it to define datadir.
18723 * commands/sleep.c: Fix warning about implicit declaration.
18724 * disk/memdisk.c: Likewise.
18725 * loader/aout.c: Likewise.
18726 * loader/i386/bsd_normal.c: Likewise.
18727 * util/grub-probe.c: Likewise.
18729 * commands/i386/cpuid.c (has_longmode): Make static.
18730 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18731 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18733 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18734 GDT. This is more robust, as %ds can change.
18735 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18736 calling real_to_prot().
18737 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18739 2008-03-28 Pavel Roskin <proski@gnu.org>
18741 * kern/i386/pc/startup.S: Assert that uncompressed functions
18742 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18743 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18744 code, as they push parts of the code (error handlers) beyond
18745 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18746 code as correctness and size.
18748 2008-03-28 Pavel Roskin <proski@gnu.org>
18750 * kern/i386/pc/startup.S
18751 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18752 data block address to the real mode, keep offset minimal. This
18753 works around a bug in AWARD BIOS on old Athlon systems, which
18754 makes CD detection hang.
18756 2008-03-26 Pavel Roskin <proski@gnu.org>
18758 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18760 * include/grub/normal.h: Add grub_parse_color_name_pair()
18763 2008-03-24 Bean <bean123ch@gmail.com>
18765 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18766 (cd_count): Removed.
18767 (cd_drive): New variable.
18768 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18769 (grub_biosdisk_call_hook): Likewise.
18770 (grub_biosdisk_iterate): Change cdrom detection method.
18771 (grub_biosdisk_open): Replace cd_start with cd_drive.
18772 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18773 detect cdrom device.
18775 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18777 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18778 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18779 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18780 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18781 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18782 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18783 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18784 (grub_biosdisk_cdrp): New structure.
18785 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18787 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18789 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18792 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18795 2008-03-20 Robert Millan <rmh@aybabtu.com>
18797 Remove 2 TiB limit in ata.mod.
18798 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18799 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18800 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18801 grub_uint64_t instead of grub_uint32_t.
18803 2008-03-05 Bean <bean123ch@gmail.com>
18805 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18806 (grub_multiboot): Set boot device.
18808 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18810 2008-03-02 Bean <bean123ch@gmail.com>
18812 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18815 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18817 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18820 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18823 * docs/fdl.texi: New file.
18825 * docs/mdate-sh: New file. Copied from gnulib.
18826 * docs/texinfo.tex: Likewise.
18828 * config.guess: Updated from gnulib.
18829 * install-sh: Likewise.
18831 2008-02-28 Robert Millan <rmh@aybabtu.com>
18833 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18834 (aout_mod_SOURCES): New variable.
18835 (aout_mod_CFLAGS): Likewise.
18836 (aout_mod_LDFLAGS): Likewise.
18838 * conf/i386-ieee1275.rmk: Likewise.
18840 2008-02-28 Robert Millan <rmh@aybabtu.com>
18842 * util/update-grub.in: Reorganise terminal validity check. Accept
18843 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18844 Based on suggestion by Franklin PIAT.
18846 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18848 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18850 * util/getroot.c (grub_util_check_block_device): New function that
18851 returns the given argument if it is a block device and returns NULL else.
18852 * util/grub-probe.c (argument_is_device): New variable.
18853 (probe): Promote device_name from a variable to an argument. Receive
18854 device_name from grub_util_check_block_device() if path is NULL and from
18855 grub_guess_root_device() else. Do not free() device_name anymore.
18856 (options): Introduce new parameter '-d, --device'.
18857 (main): Add description of the new parameter to the help screen.
18858 Rename path variable to argument. Set argument_is_device if the '-d'
18859 option is given. Pass argument to probe() depending on
18860 argument_is_device.
18862 2008-02-24 Bean <bean123ch@gmail.com>
18864 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18865 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18866 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18867 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18868 (GRUB_ISO9660_VOLDESC_END): Likewise.
18869 (grub_iso9660_primary_voldesc): New member escape.
18870 (grub_iso9660_data): New member joliet.
18871 (grub_iso9660_convert_string): New function.
18872 (grub_iso9660_mount): Detect joliet extension.
18873 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18874 (grub_iso9660_iso9660_label): Likewise.
18876 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18877 (grub_setup_SOURCES): Add fs/udf.c.
18878 (grub_fstest_SOURCES): Likewise.
18879 (udf_mod_SOURCES): New variable.
18880 (udf_mod_CFLAGS): Likewise.
18881 (udf_mod_LDFLAGS): Likewise.
18883 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18884 (grub_emu_SOURCES): Likewise.
18886 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18888 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18890 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18894 * fs/udf.c: New file.
18896 2008-02-24 Robert Millan <rmh@aybabtu.com>
18898 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18899 (normal/lexer.c_DEPENDENCIES): New variables.
18900 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18901 (normal/lexer.c_DEPENDENCIES): Likewise.
18902 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18903 (normal/lexer.c_DEPENDENCIES): Likewise.
18904 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18905 (normal/lexer.c_DEPENDENCIES): Likewise.
18906 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18907 (normal/lexer.c_DEPENDENCIES): Likewise.
18908 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18909 (normal/lexer.c_DEPENDENCIES): Likewise.
18911 2008-02-23 Robert Millan <rmh@aybabtu.com>
18913 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18914 since they were intended to be in hex. This didn't break previously
18915 because of a bug in gpt_partition_map_iterate() (see below).
18917 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18918 when checking the validity of GPT header.
18919 Remove `partno', since it always provides the same information as `i'.
18921 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18923 * include/grub/efi/time.h: Fix a wrong comment.
18925 2008-02-19 Pavel Roskin <proski@gnu.org>
18927 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18930 2008-02-19 Bean <bean123ch@gmail.com>
18932 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18933 (aout_mod_SOURCES): New variable.
18934 (aout_mod_CFLAGS): Likewise.
18935 (aout_mod_LDFLAGS): Likewise.
18936 (_bsd_mod_SOURCES): New variable.
18937 (_bsd_mod_CFLAGS): Likewise.
18938 (_bsd_mod_LDFLAGS): Likewise.
18939 (bsd_mod_SOURCES): New variable.
18940 (bsd_mod_CFLAGS): Likewise.
18941 (bsd_mod_LDFLAGS): Likewise.
18943 * include/grub/aout.h: New file.
18945 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18947 * include/grub/i386/bsd.h: New file.
18949 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18952 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18953 function is called, so that it's possible to change it inside the hook.
18954 (grub_elf64_load): Likewise.
18955 (grub_elf_file): Don't close the file if elf header is not found.
18956 (grub_elf_close): Close the file if grub_elf_file fails (The new
18957 grub_elf_file won't close it).
18958 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18959 (grub_elf64_size): Likewise.
18961 * kern/i386/loader.S (grub_unix_real_boot): New function.
18963 * loader/aout.c: New file.
18965 * loader/i386/bsd.c: New file.
18967 * loader/i386/bsd_normal.c: New file.
18969 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18971 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18972 can test other formats.
18974 2008-02-19 Robert Millan <rmh@aybabtu.com>
18976 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18977 (grub_gpt_partition_type_empty): Redefine with macro from
18978 `<grub/gpt_partition.h>'.
18979 (gpt_partition_map_iterate): Adjust partition type comparison.
18981 Export `entry' as partmap-specific `part.data' struct.
18982 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18984 * include/grub/gpt_partition.h (grub_gpt_header)
18985 (grub_gpt_partentry): ... to here (new file).
18987 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18989 (grub_gpt_partition_type_bios_boot): New const variable, defined
18990 with macro from `<grub/gpt_partition.h>'.
18992 (setup): Replace `first_start' with `embed_region', which keeps
18993 track of the embed region (and is partmap-agnostic).
18995 Replace find_first_partition_start() with find_usable_region(),
18996 which finds a usable region for embedding using partmap-specific
18997 knowledge (supports PC/MSDOS and GPT).
18999 Fix all assumptions that the embed region start at sector 1, using
19000 `embed_region.start' from now on. Similarly, use `embed_region.end'
19001 rather than `first_start' to calculate available size.
19003 In grub_util_info() message, replace "into after the MBR" with an
19004 indication of the specific sector our embed region starts at.
19006 2008-02-19 Robert Millan <rmh@aybabtu.com>
19008 * DISTLIST: Replace `commands/ieee1275/halt.c' and
19009 `commands/ieee1275/reboot.c' with `commands/halt.c' and
19010 `commands/reboot.c'.
19011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19012 (halt_mod_SOURCES): Likewise.
19013 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19014 (halt_mod_SOURCES): Likewise.
19016 2008-02-17 Christian Franke <franke@computer.org>
19018 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
19020 2008-02-17 Robert Millan <rmh@aybabtu.com>
19022 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19023 set `first_start' to 0 for non-PC/MSDOS partition maps.
19025 2008-02-16 Robert Millan <rmh@aybabtu.com>
19027 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19028 do not assume partition map is PC/MSDOS before performing checks that
19029 are specific to that layout.
19031 2008-02-13 Robert Millan <rmh@aybabtu.com>
19033 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
19034 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
19035 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
19037 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
19039 * configure.ac: Only a cosmetic change on the handling of
19040 -fno-stack-protector.
19042 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
19044 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
19045 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
19047 (grub_install_SOURCES): Add halt.mod and reboot.mod.
19048 (halt_mod_SOURCES): New variable.
19049 (halt_mod_CFLAGS): Likewise.
19050 (halt_mod_LDFLAGS): Likewise.
19051 (reboot_mod_SOURCES): Likewise.
19052 (reboot_mod_CFLAGS): Likewise.
19053 (reboot_mod_LDFLAGS): Likewise.
19055 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
19056 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
19058 (halt_mod_SOURCES): Likewise.
19059 (reboot_mod_SOURCES): Likewise.
19061 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
19062 commands/i386/pc/reboot.c by commands/reboot.c.
19063 (reboot_mod_SOURCES): Likewise.
19065 * commands/i386/pc/reboot.c: merge this file ...
19067 * commands/ieee1275/reboot.c: ... and this file ...
19069 * commands/reboot.c: ... to this file.
19070 Add some precompiler directive to include the correct header for
19073 * commands/ieee1275/halt.c: move this file ...
19075 * commands/halt.c: ... to here.
19076 Add some precompiler directive to include the correct header for
19079 * include/grub/efi/efi.h (grub_reboot): New function declaration.
19080 (grub_halt): Likewise.
19082 * kern/efi/efi.c (grub_reboot): New function.
19083 (grub_halt): Likewise.
19085 2008-02-12 Robert Millan <rmh@aybabtu.com>
19087 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
19088 /dev (like it is done for /dev/mapper). This doesn't provide support
19089 for EVMS, but at least it is now easy to identify the problem when it
19092 2008-02-11 Robert Millan <rmh@aybabtu.com>
19094 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
19095 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
19096 comparing it with -1, not 0.
19098 2008-02-10 Robert Millan <rmh@aybabtu.com>
19100 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
19102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19103 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19105 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
19106 `disk/lvm.c' to the end of the list.
19107 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19108 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19110 2008-02-10 Robert Millan <rmh@aybabtu.com>
19112 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
19113 grub_print_error() instead. This will let user know why we're entering
19115 Based on suggestions from Sam Morris.
19117 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
19119 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
19120 on remaining N args, instead of "--" arg N times.
19122 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
19124 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
19125 (fill_with_default_glyph): Changed to use unknown_glyph for fill
19126 pattern for unknown glyphs.
19128 2008-02-09 Robert Millan <rmh@aybabtu.com>
19130 * configure.ac: Probe for `help2man'.
19131 * Makefile.in (builddir): New variable.
19132 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
19133 or otherwise add a few flags/options to it.
19134 (install-local): For every executable utility or script that is
19135 installed, invoke $(HELP2MAN) to install a manpage based on --help
19138 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
19139 that it doesn't prevent --help from working in build tree.
19141 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
19142 with `bug-grub@gnu.org'.
19143 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
19144 * util/update-grub.in (usage): New function.
19145 Implement proper argument check, with support for --help and --version
19146 (as well as existing -y).
19148 2008-02-09 Christian Franke <franke@computer.org>
19150 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
19151 avoid overwriting previous output.
19152 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
19154 2008-02-09 Robert Millan <rmh@aybabtu.com>
19156 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
19159 2008-02-09 Robert Millan <rmh@aybabtu.com>
19161 * commands/sleep.c: New file.
19162 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
19163 (sleep_mod_SOURCES): New variable.
19164 (sleep_mod_CFLAGS): Likewise.
19165 (sleep_mod_LDFLAGS): Likewise.
19167 2008-02-09 Robert Millan <rmh@aybabtu.com>
19169 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
19170 situations in which we can deduce the RAID size and the superblock
19173 2008-02-09 Robert Millan <rmh@aybabtu.com>
19175 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
19176 and return a grub_diskmemberlist_t composed of LVM physical volumes.
19177 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
19179 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
19180 and return a grub_diskmemberlist_t composed of physical array members.
19181 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
19183 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
19185 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
19186 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
19187 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
19189 * util/grub-probe.c (probe): Move partmap probing code from here ...
19190 (probe_partmap): ... to here.
19191 (probe): Use probe_partmap() once for the disk we're probing, and
19192 additionally, when such disk contains a memberlist() struct member,
19193 once for each disk that is contained in the structure returned by
19196 2008-02-09 Robert Millan <rmh@aybabtu.com>
19198 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
19199 environment variable to 'all' in order to obtain debug output from
19201 * util/i386/pc/grub-setup.c (main): Likewise.
19203 2008-02-08 Robert Millan <rmh@aybabtu.com>
19205 * disk/raid.c (grub_raid_scan_device): Check for
19206 `array->device[sb.this_disk.number]' rather than for
19207 `array->device[sb.this_disk.number]->name', since the latter is not
19208 guaranteed to be accessible.
19210 2008-02-08 Robert Millan <rmh@aybabtu.com>
19212 * disk/raid.c: Update copyright.
19213 * fs/cpio.c: Likewise.
19214 * include/grub/raid.h: Likewise.
19215 * loader/i386/pc/multiboot.c: Likewise.
19216 * util/hostfs.c: Likewise.
19218 2008-02-08 Robert Millan <rmh@aybabtu.com>
19220 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
19221 to a grub_disk_t array.
19222 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
19224 (grub_raid_scan_device): Replace `device[x].name' accesses with
19225 `device[x]->name'. Simplify initialization of `array->device[x]'.
19227 2008-02-08 Robert Millan <rmh@aybabtu.com>
19229 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
19230 grub_dprintf() calls.
19231 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
19234 2008-02-07 Christian Franke <franke@computer.org>
19236 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
19237 instead of fseek and ftell to support large files.
19238 (grub_hostfs_read): Likewise.
19240 2008-02-07 Robert Millan <rmh@aybabtu.com>
19242 Patch from Jeroen Dekkers.
19243 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
19244 failure, since successfully reading all array members might not be
19247 2008-02-06 Robert Millan <rmh@aybabtu.com>
19249 * util/grub-probe.c (probe): Simplify partmap probing (with the
19250 assumption that the first word up to the underscore equals to
19253 2008-02-06 Christian Franke <franke@computer.org>
19255 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
19256 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
19257 last block of a cpio or tar stream.
19258 Check for "TRAILER!!!" instead of any empty data
19259 block to detect last block of a cpio stream.
19260 (grub_cpio_dir): Fix constness of variable np.
19261 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
19262 cpio or tar trailer is detected. This fixes a crash
19263 on open of a non existing file.
19265 2008-02-05 Bean <bean123ch@gmail.com>
19267 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
19269 (grub_multiboot_load_elf64): Likewise.
19270 (grub_multiboot): Initialize mbi structure.
19272 * util/grub-fstest.c: Don't include unused header file script.h.
19274 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
19276 (grub_fstest_SOURCES): Likewise.
19278 2008-02-05 Robert Millan <rmh@aybabtu.com>
19280 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
19281 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
19282 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
19283 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
19285 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
19286 (translation_table): Replace hardcoded values with macros
19287 provided by `<grub/term.h>'.
19289 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
19290 (keyboard_map): Correct/add a few values, with macros provided
19291 by `<grub/term.h>'.
19292 (keyboard_map_shift): Zero values that don't differ from their
19293 `keyboard_map' equivalents.
19294 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
19295 Discard the second scan code that is always sent by Caps lock.
19296 Only use `keyboard_map_shift' when it provides a non-zero value,
19297 otherwise fallback to `keyboard_map'.
19299 2008-02-04 Bean <bean123ch@gmail.com>
19301 * Makefile.in (enable_grub_fstest): New variable.
19303 * conf/common.rmk (grub_fstest_init.lst): New rule.
19304 (grub_fstest_init.h): Likewise.
19305 (grub_fstest_init.c): Likewise.
19306 (util/grub-fstest.c_DEPENDENCIES): New variable.
19307 (grub_fstest_SOURCES): Likewise.
19309 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
19311 * util/grub-fstest.c: New file.
19313 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19315 Make grub-setup handle a separate root device.
19317 * util/i386/pc/grub-setup.c (setup): Always open the root device,
19318 so that the root device can be compared with the destination
19320 When embedding the core image, if the root and destination devices
19321 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
19323 When not embedding, set ROOT_DRIVE to 0xFF.
19325 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19327 Add support for having a grub directory in a different drive. This
19328 is still only the data handling part.
19330 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
19331 (codestart): Save %dh in GRUB_ROOT_DRIVE.
19332 (grub_root_drive): New variable.
19334 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
19335 instead of GRUB_BOOT_DRIVE to construct a device name. Set
19336 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
19339 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
19341 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
19343 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
19345 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
19346 is bogus, because PXE booting does not specify any drive
19349 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
19350 am not sure if this is really correct.
19352 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
19353 is always identical to the boot drive when booting from a CD.
19355 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
19357 (root_drive): New variable.
19358 (real_start): Unconditionally set %dh to ROOT_DRIVE.
19359 (setup_sectors): Push %dx right after popping it, because %dh will
19361 (copy_buffer): Restore %dx.
19363 2008-02-03 Robert Millan <rmh@aybabtu.com>
19365 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
19366 use `cdboot.img' for cdrom images.
19368 2008-02-03 Robert Millan <rmh@aybabtu.com>
19370 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
19371 only setup gfxterm when `font' command has succeeded.
19373 2008-02-03 Robert Millan <rmh@aybabtu.com>
19375 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
19376 (grub_rescue_cmd_multiboot_loader)
19377 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
19379 2008-02-03 Pavel Roskin <proski@gnu.org>
19381 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
19382 %edx and %esi from stack only after grub_gate_a20() is called.
19383 grub_gate_a20() clobbers %edx.
19385 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19387 * configure.ac (AC_INIT): Bumped to 1.96.
19389 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
19390 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
19391 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
19392 video/readers/png.c.
19394 2008-02-03 Bean <bean123ch@gmail.com>
19396 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
19397 (cdboot_img_SOURCES): New variable.
19398 (cdboot_img_ASFLAGS): New variable.
19399 (cdboot_img_LDFLAGS): New variable.
19401 * boot/i386/pc/cdboot.S: New file.
19403 * disk/i386/pc/biosdisk.c (cd_start): New variable.
19404 (cd_count): Likewise.
19405 (grub_biosdisk_get_drive): Add support for cd device.
19406 (grub_biosdisk_call_hook): Likewise.
19407 (grub_biosdisk_iterate): Likewise.
19408 (grub_biosdisk_open): Likewise.
19409 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
19410 (grub_biosdisk_rw): Support reading from cd device.
19411 (GRUB_MOD_INIT): Iterate cd devices.
19413 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
19414 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
19415 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
19417 * kern/i386/pc/init.c (make_install_device): Check for cd device.
19419 2008-02-02 Robert Millan <rmh@aybabtu.com>
19421 * commands/read.c: New file.
19422 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
19423 (read_mod_SOURCES): New variable.
19424 (read_mod_CFLAGS): Likewise.
19425 (read_mod_LDFLAGS): Likewise.
19427 2008-02-02 Robert Millan <rmh@aybabtu.com>
19429 * normal/main.c (grub_normal_execute): Check for `menu->size' when
19430 determining whether menu has to be displayed.
19432 2008-02-02 Marco Gerards <marco@gnu.org>
19434 * bus/pci.c: New file.
19436 * include/grub/pci.h: Likewise.
19438 * include/grub/i386/pc/pci.h: Likewise.
19440 * commands/lspci.c: Likewise.
19442 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
19444 (pci_mod_SOURCES): New variable.
19445 (pci_mod_CFLAGS): Likewise.
19446 (pci_mod_LDFLAGS): Likewise.
19447 (lspci_mod_SOURCES): Likewise.
19448 (lspci_mod_CFLAGS): Likewise.
19449 (lspci_mod_LDFLAGS): Likewise.
19451 2008-02-02 Bean <bean123ch@gmail.com>
19453 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
19454 (grub_ufs_get_file_block): Fix indirect block calculation problem.
19456 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
19457 (grub_xfs_btree_node): New structure.
19458 (grub_xfs_btree_root): New structure.
19459 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
19460 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
19461 (GRUB_XFS_EXTENT_BLOCK): Likewise.
19462 (GRUB_XFS_EXTENT_SIZE): Likewise.
19463 (grub_xfs_read_block): Support btree format type.
19464 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
19465 Use directory block as basic unit.
19467 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
19469 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
19470 __attribute__ ((__regparm__ (1))).
19472 2008-02-01 Robert Millan <rmh@aybabtu.com>
19474 Correct a mistake in previous commit.
19476 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
19478 (normal/command.c_DEPENDENCIES): New variable.
19480 2008-02-01 Robert Millan <rmh@aybabtu.com>
19482 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
19484 (normal/command.c_DEPENDENCIES): New variable.
19485 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
19486 * conf/i386-ieee1275.rmk: Likewise.
19487 * conf/i386-linuxbios.rmk: Likewise.
19488 * conf/i386-pc.rmk: Likewise.
19489 * conf/sparc64-ieee1275.rmk: Likewise.
19490 * conf/powerpc-ieee1275.rmk: Likewise.
19491 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19493 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19495 2008-02-01 Robert Millan <rmh@aybabtu.com>
19497 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19498 call at beginning of function.
19500 2008-01-31 Pavel Roskin <proski@gnu.org>
19502 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
19503 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19504 (grub_mkrescue_SOURCES): Likewise.
19505 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19507 2008-01-30 Robert Millan <rmh@aybabtu.com>
19509 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19510 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19511 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19512 (grub_probe_SOURCES): ... to here.
19514 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19515 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19516 * conf/i386-ieee1275.rmk: Likewise.
19517 * conf/i386-linuxbios.rmk: Likewise.
19518 * conf/powerpc-ieee1275.rmk: Likewise.
19520 2008-01-30 Tristan Gingold <gingold@free.fr>
19522 * kern/rescue.c: Silently accept empty lines.
19524 2008-01-29 Bean <bean123ch@gmail.com>
19526 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19527 (real_code_2): Code cleanup and change comment style.
19528 (move_memory): Avoid using 32-bit address mode.
19530 2008-01-29 Bean <bean123ch@gmail.com>
19532 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19533 (png_mod_SOURCES): New variable.
19534 (png_mod_CFLAGS): Likewise.
19535 (png_mod_LDFLAGS): Likewise.
19537 * video/readers/png.c: New file.
19539 2008-01-28 Robert Millan <rmh@aybabtu.com>
19541 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19542 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19543 `ifndef GRUB_MOD_GAP' hack.
19544 * util/elf/grub-mkimage.c (add_segments): Likewise.
19546 2008-01-27 Robert Millan <rmh@aybabtu.com>
19548 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19549 `GRUB_MOD_GAP' for platforms in which it's not defined.
19550 * util/elf/grub-mkimage.c (add_segments): Likewise.
19552 2008-01-27 Robert Millan <rmh@aybabtu.com>
19554 Get grub-emu to build again (including parallel builds).
19556 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19558 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19559 (normal/execute.c_DEPENDENCIES): ... this, ...
19560 (grub-emu_DEPENDENCIES): ... and this.
19562 * conf/i386-efi.rmk: Likewise.
19563 * conf/i386-linuxbios.rmk: Likewise.
19564 * conf/i386-ieee1275.rmk: Likewise.
19565 * conf/powerpc-ieee1275.rmk: Likewise.
19566 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19568 2008-01-27 Robert Millan <rmh@aybabtu.com>
19570 * NEWS: Add a few items.
19572 2008-01-27 Robert Millan <rmh@aybabtu.com>
19574 Fix parallel builds with grub-emu. Based on earlier commit for
19575 grub-probe and grub-setup.
19577 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19578 (util/grub-emu.c_DEPENDENCIES): ... this.
19579 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19580 (util/grub-emu.c_DEPENDENCIES): ... this.
19581 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19582 (util/grub-emu.c_DEPENDENCIES): ... this.
19583 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19584 (util/grub-emu.c_DEPENDENCIES): ... this.
19585 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19586 (util/grub-emu.c_DEPENDENCIES): ... this.
19588 2008-01-27 Pavel Roskin <proski@gnu.org>
19590 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19591 to create a gap between _end and the modules added to the image
19592 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19593 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19594 * util/elf/grub-mkimage.c (add_segments): Likewise.
19596 2008-01-26 Pavel Roskin <proski@gnu.org>
19598 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19599 just return an error.
19601 2008-01-26 Bean <bean123ch@gmail.com>
19603 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19604 (grub_reiserfs_get_item): Save offset of the next item.
19605 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19607 2008-01-25 Robert Millan <rmh@aybabtu.com>
19609 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19610 make all filesystem sources appear together (possibly fixing omissions
19612 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19613 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19614 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19617 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19619 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19620 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19621 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19622 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19624 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19625 (probe): Add a sanity check to make sure of our ability to read
19626 requested files when probing for filesystem type.
19628 * genmk.rb: Update copyright year (2007).
19630 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19631 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19632 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19633 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19634 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19635 : Remove function prototypes.
19637 2008-01-25 Robert Millan <rmh@aybabtu.com>
19639 Revert my previous commits (based on wrong assumption of how grub_errno
19642 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19643 * kern/file.c (grub_file_open): Likewise.
19645 2008-01-24 Pavel Roskin <proski@gnu.org>
19647 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19648 that hang if GRUB tries to setup colors.
19649 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19650 colors for firmwares that don't support it.
19651 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19652 Recognize Open Hack'Ware, set flags to work around its
19655 2008-01-24 Robert Millan <rmh@aybabtu.com>
19657 * kern/file.c (grub_file_open): Do not account previous failures of
19658 unrelated functions when grub_errno is checked for.
19659 Reported by Oleg Strikov.
19661 2008-01-24 Bean <bean123ch@gmail.com>
19663 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19664 (grub_ufs_sblock): New member volume name.
19665 (grub_ufs_find_file): Fix string copy bug.
19666 (grub_ufs_label): Implement this function properly.
19668 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19669 (grub_hfs_iterate_records): Use the correct file number for extents
19670 and catalog file. Fix problem in next index calculation.
19671 (grub_hfs_find_node): Replace recursive function call with loop.
19672 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19674 2008-01-23 Robert Millan <rmh@aybabtu.com>
19676 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19677 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19678 (grub_multiboot2_real_boot): New function prototype.
19680 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19681 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19683 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19684 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19686 2008-01-23 Robert Millan <rmh@aybabtu.com>
19688 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19689 #ifdef'ed out grub_printf().
19691 2008-01-23 Robert Millan <rmh@aybabtu.com>
19693 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19694 grub_dprintf calls, since they make "debug=all" mode unusable.
19695 (grub_console_checkkey): Likewise.
19697 2008-01-23 Robert Millan <rmh@aybabtu.com>
19699 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19700 `term/i386/pc/at_keyboard.c'.
19701 (pkglib_MODULES): Add `serial.mod'.
19702 (serial_mod_SOURCES): New variable.
19703 (serial_mod_CFLAGS): Likewise.
19704 (serial_mod_LDFLAGS): Likewise.
19706 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19707 `<grub/powerpc/ieee1275/console.h>'.
19708 (grub_keyboard_controller_init): New function prototype.
19709 (grub_console_checkkey): Likewise.
19710 (grub_console_getkey): Likewise.
19712 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19715 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19716 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19718 2008-01-23 Robert Millan <rmh@aybabtu.com>
19720 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19721 present, "(memdisk)/boot/grub" becomes the default prefix.
19723 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19724 a memdisk tarball with all the modules. Add --overlay=DIR option that
19725 allows users to overlay additional files into the image.
19727 2008-01-23 Robert Millan <rmh@aybabtu.com>
19729 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19730 and `machine/memory.h'.
19731 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19732 (_multiboot_mod_SOURCES): New variable.
19733 (_multiboot_mod_CFLAGS): Likewise.
19734 (_multiboot_mod_LDFLAGS): Likewise.
19735 (multiboot_mod_SOURCES): Likewise.
19736 (multiboot_mod_CFLAGS): Likewise.
19737 (multiboot_mod_LDFLAGS): Likewise.
19739 * include/grub/i386/ieee1275/loader.h: New file.
19741 * include/grub/i386/ieee1275/machine.h: Likewise.
19743 * include/grub/i386/ieee1275/memory.h: Likewise.
19745 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19746 variable declaration.
19747 (grub_os_area_size): Likewise.
19749 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19750 (grub_lower_mem, grub_upper_mem): New variables.
19751 (grub_stop_floppy): New function (just to make
19752 grub_multiboot2_real_boot() happy).
19754 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19755 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19756 (grub_stop): New function.
19757 Include `"../realmode.S"' and `"../loader.S"'.
19759 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19760 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19762 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19763 rely on grub_multiboot2_real_boot() for final boot.
19765 2008-01-22 Robert Millan <rmh@aybabtu.com>
19767 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19768 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19769 device that doesn't look like an SD card.
19770 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19771 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19772 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19773 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19776 2008-01-22 Robert Millan <rmh@aybabtu.com>
19778 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19779 avoid claiming over our own code.
19781 2008-01-22 Bean <bean123ch@gmail.com>
19783 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19784 (jpeg_mod_SOURCES): New variable.
19785 (jpeg_mod_CFLAGS): Likewise.
19786 (jpeg_mod_LDFLAGS): Likewise.
19788 * video/readers/jpeg.c : New file.
19790 2008-01-22 Bean <bean123ch@gmail.com>
19792 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19793 there are no more items.
19795 2008-01-21 Robert Millan <rmh@aybabtu.com>
19797 * kern/mm.c (grub_mm_init_region): Improve debug message.
19799 2008-01-21 Robert Millan <rmh@aybabtu.com>
19801 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19802 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19804 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19806 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19807 Indicates start of upper memory.
19808 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19809 (generate_image): Abort when image size is big enough to corrupt
19812 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19813 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19814 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19815 instead of hardcoding 0xA0000.
19816 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19817 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19818 instead of hardcoding 0xA0000.
19820 2008-01-21 Robert Millan <rmh@aybabtu.com>
19822 * disk/memdisk.c (memdisk_size): New variable.
19823 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19825 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19826 image to dynamic memory.
19827 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19828 `memdisk_size'. Free memdisk block.
19830 2008-01-21 Robert Millan <rmh@aybabtu.com>
19832 Fix detection of very small filesystems (like tar).
19834 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19835 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19836 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19837 a problem with this disk).
19839 2008-01-21 Robert Millan <rmh@aybabtu.com>
19841 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19842 on grub_biosdisk_rw_standard() error.
19844 2008-01-21 Robert Millan <rmh@aybabtu.com>
19846 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19848 * kern/elf.c: Likewise.
19849 * kern/ieee1275/ieee1275.c: Likewise.
19850 * kern/powerpc/ieee1275/openfw.c: Likewise.
19851 * term/ieee1275/ofconsole.c: Likewise.
19853 2008-01-21 Robert Millan <rmh@aybabtu.com>
19855 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19857 * include/grub/kernel.h (grub_arch_memdisk_addr)
19858 (grub_arch_memdisk_size): Moved from here ...
19860 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19861 (grub_arch_memdisk_size): ... to here.
19863 2008-01-21 Robert Millan <rmh@aybabtu.com>
19865 Mostly based on bugfix from Bean.
19867 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19868 attribute with hook() parameter.
19869 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19871 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19872 attribute with hook() parameter.
19873 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19876 2008-01-21 Robert Millan <rmh@aybabtu.com>
19878 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19879 (pkglib_MODULES): Add `memdisk.mod'.
19880 (memdisk_mod_SOURCES): New variable.
19881 (memdisk_mod_CFLAGS): Likewise.
19882 (memdisk_mod_LDFLAGS): Likewise.
19884 * disk/memdisk.c: New file.
19886 * include/grub/disk.h (grub_disk_dev_id): Add
19887 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19889 * include/grub/i386/pc/kernel.h
19890 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19891 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19892 (grub_kernel_image_size): New variable declaration.
19893 (grub_total_module_size): Likewise.
19894 (grub_memdisk_image_size): Likewise.
19896 * include/grub/i386/pc/memory.h
19897 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19899 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19900 (grub_arch_memdisk_addr): New variable declaration.
19901 (grub_arch_memdisk_size): Likewise.
19903 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19904 (grub_arch_memdisk_size): Likewise.
19906 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19907 (codestart): Replace hardcoded `0x100000' with
19908 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19910 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19911 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19912 not NULL, append the contents of the file it refers to, at the end of
19913 the compressed kernel image. Initialize `grub_memdisk_image_size'
19914 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19915 (options): Add "memdisk"|'m' option.
19916 (main): Parse --memdisk|-m option, and pass user-provided path as
19917 parameter to generate_image().
19919 2008-01-20 Robert Millan <rmh@aybabtu.com>
19921 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19922 grub_dprintf() calls from here ...
19923 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19925 2008-01-20 Robert Millan <rmh@aybabtu.com>
19927 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19929 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19931 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19932 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19933 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19934 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19936 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19937 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19939 2008-01-19 Robert Millan <rmh@aybabtu.com>
19941 Get rid of confusing function (superseded by
19942 `grub_ieee1275_get_integer_property')
19943 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19945 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19947 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19948 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19949 in native endianness from grub_ieee1275_get_integer_property().
19951 2008-01-19 Robert Millan <rmh@aybabtu.com>
19953 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19954 command after "shut-down", since implementations differ on which
19955 the command for halt is.
19957 2008-01-19 Robert Millan <rmh@aybabtu.com>
19959 * include/grub/i386/linuxbios/console.h: Add header protection.
19960 (grub_keyboard_controller_init): New function prototype.
19961 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19962 (KEYBOARD_COMMAND_READ): Likewise.
19963 (KEYBOARD_COMMAND_WRITE): Likewise.
19964 (KEYBOARD_SCANCODE_SET1): Likewise.
19965 (grub_keyboard_controller_write): New function.
19966 (grub_keyboard_controller_read): Likewise.
19967 (grub_keyboard_controller_init): Likewise.
19969 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19970 (grub_console_init): On coreboot/LinuxBIOS, call
19971 grub_keyboard_controller_init().
19973 2008-01-19 Robert Millan <rmh@aybabtu.com>
19975 PowerPC changes provided by Pavel Roskin.
19977 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19978 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19979 don't rely on cmain() doing it.
19980 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19981 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19983 2008-01-16 Robert Millan <rmh@aybabtu.com>
19985 * include/grub/i386/linuxbios/memory.h
19986 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19987 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19988 receive `table_header' as argument. Instead, probe for it in the
19989 known memory ranges where it can be present.
19990 (grub_available_iterate): Do not pass a fixed `table_header' address
19991 to grub_linuxbios_table_iterate().
19993 2008-01-15 Robert Millan <rmh@aybabtu.com>
19995 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19996 * conf/i386-ieee1275.rmk: New file.
19997 * include/grub/i386/ieee1275/console.h: Likewise.
19998 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19999 * include/grub/i386/ieee1275/kernel.h: Likewise.
20000 * include/grub/i386/ieee1275/time.h: Likewise.
20001 * kern/i386/ieee1275/init.c: Likewise.
20002 * kern/i386/ieee1275/startup.S: Likewise.
20004 2008-01-15 Robert Millan <rmh@aybabtu.com>
20006 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
20007 when pointers are 32-bit (but still do set it to one when they are
20010 2008-01-15 Robert Millan <rmh@aybabtu.com>
20012 * include/grub/ieee1275/ieee1275.h
20013 (grub_ieee1275_get_integer_property): New function prototype.
20015 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
20016 (grub_ieee1275_get_integer_property): New function. Wraps around
20017 grub_ieee1275_get_property() to handle endianness.
20019 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
20020 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
20022 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
20023 (grub_map): Likewise.
20024 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
20026 2008-01-15 Bean <bean123ch@gmail.com>
20028 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
20029 (grub_script_execute_cmdline): Reset grub_errno.
20031 * normal/main.c (read_config_file): Reset grub_errno.
20033 * normal/parse.y (script_init): New.
20034 (script): Move function and menuentry here.
20036 (command): Add delimiter at the end of command.
20037 (commands): Adjust to match the new command.
20038 (commandblock): Remove grub_script_lexer_record_start.
20039 (menuentry): Add grub_script_lexer_record_start, use the new commands.
20040 (if): Use the new commands.
20042 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
20044 2008-01-15 Robert Millan <rmh@aybabtu.com>
20046 * normal/menu.c (run_menu): Move timeout message from here ...
20047 (print_timeout): ... to here.
20048 (run_menu): Use print_timeout() once during initial draw to print
20049 the whole message, and again in every clock tick to update only
20050 the number of seconds.
20052 2008-01-15 Robert Millan <rmh@aybabtu.com>
20054 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
20055 actual size of `available' from grub_ieee1275_get_property(), and
20056 restrict parsing to that bound.
20058 2008-01-15 Christian Franke <franke@computer.org>
20060 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
20061 (argp_program_version): Remove variable.
20062 (argp_program_bug_address): Likewise.
20063 (options): Convert from struct argp_option to struct option.
20064 (struct arguments): Remove.
20065 (parse_opt): Remove.
20066 (usage): New function.
20067 (main): Replace struct args members by simple variables.
20068 Replace argp_parse() by getopt_long().
20069 Add switch to evaluate options.
20070 Add missing "(...)" around root_dev in prefix string.
20072 2008-01-14 Robert Millan <rmh@aybabtu.com>
20074 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
20075 for grub_ieee1275_exit(), in order to improve portability.
20077 2008-01-14 Robert Millan <rmh@aybabtu.com>
20079 * util/grub.d/10_linux.in (prefix): Define.
20080 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
20082 2008-01-13 Pavel Roskin <proski@gnu.org>
20084 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
20085 grub_errno if no errors have been detected.
20087 2008-01-12 Robert Millan <rmh@aybabtu.com>
20089 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
20090 (grub_util_get_dev_abstraction): New function prototype.
20092 * util/getroot.c: Include `<grub/util/getroot.h>'
20093 (grub_util_get_grub_dev): Move detection of abstraction type to ...
20094 (grub_util_get_dev_abstraction): ... here (new function).
20096 * util/grub-probe.c: Convert PRINT_* to an enum. Add
20097 `PRINT_ABSTRACTION'.
20098 (probe): Probe for abstraction type when requested.
20099 (main): Understand `--target=abstraction'.
20101 * util/i386/efi/grub-install.in: Add abstraction module to core
20102 image when it is found to be necessary.
20103 * util/i386/pc/grub-install.in: Likewise.
20104 * util/powerpc/ieee1275/grub-install.in: Likewise.
20106 * util/update-grub_lib.in (font_path): Return system path without
20107 converting to GRUB path.
20108 * util/update-grub.in: Convert system path returned by font_path()
20109 to a GRUB path. Use `grub-probe -t abstraction' to determine what
20110 abstraction module is needed for loading fonts (if any). Export
20111 that as `GRUB_PRELOAD_MODULES'.
20112 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
20115 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
20117 Remove some unused code from reiserfs.
20119 * fs/reiserfs.c (struct grub_reiserfs_key)
20120 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
20121 (struct grub_reiserfs_node_body): Removed.
20122 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20124 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20126 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20128 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20130 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20132 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
20134 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20135 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20136 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20138 2008-01-10 Robert Millan <rmh@aybabtu.com>
20140 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
20141 Determines if a file is garbage left by packaging systems, etc.
20142 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
20143 for processing /etc/grub.d scripts.
20144 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
20145 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
20146 as a condition for processing Linux images.
20148 2008-01-10 Pavel Roskin <proski@gnu.org>
20150 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
20151 to compile reiserfs.c on PowerPC.
20153 2008-01-10 Robert Millan <rmh@aybabtu.com>
20155 * kern/device.c (grub_device_iterate): Do not abort device iteration
20156 when one of the devices cannot be opened.
20157 * kern/disk.c (grub_disk_open): Do not account previous failures of
20158 unrelated functions when grub_errno is checked for.
20160 2008-01-08 Robert Millan <rmh@aybabtu.com>
20162 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
20163 `! grub_linux_is_bzimage', change order of address comparison to make
20164 it more intuitive, and improve "too big zImage" error message.
20166 2008-01-08 Robert Millan <rmh@aybabtu.com>
20168 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
20169 `$(update-grub_DATA)'.
20170 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
20173 2008-01-07 Robert Millan <rmh@aybabtu.com>
20175 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
20176 which instruction is modified by grub-setup during installation
20177 (since it wasn't obvious by only looking at this file).
20179 2008-01-07 Robert Millan <rmh@aybabtu.com>
20181 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
20182 listing actual TODO items.
20184 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20186 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
20188 (grub_reiserfs_get_key_offset): Likewise.
20189 (grub_reiserfs_set_key_offset): Likewise.
20190 (grub_reiserfs_set_key_type): Likewise.
20191 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
20193 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
20194 better to remove the bitfield version completely.
20196 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20198 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
20199 allocated from the heap, due to the fshelp implementation.
20200 (grub_reiserfs_dir): Free NODE, due to the same reason.
20202 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20204 Mostly from Vincent Pelletier:
20206 * fs/reiserfs.c: New file.
20208 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
20209 (reiserfs_mod_SOURCES): New variable.
20210 (reiserfs_mod_CFLAGS): Likewise.
20211 (reiserfs_mod_LDFLAGS): Likewise.
20213 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
20214 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
20215 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
20218 2008-01-06 Robert Millan <rmh@aybabtu.com>
20220 * normal/color.c: Remove `<grub/env.h>'.
20222 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
20224 * include/grub/normal.h: Include <grub/env.h>.
20226 2008-01-05 Robert Millan <rmh@aybabtu.com>
20228 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
20229 usage example with `(hd0,1)'.
20230 Reported by Samuel Thibault.
20232 2008-01-05 Robert Millan <rmh@aybabtu.com>
20234 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
20235 (grub_linux_boot_zimage): Rename to ...
20236 (grub_linux_boot): ... this.
20237 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
20238 (grub_linux_boot_zimage): Conditionalize zImage copy.
20240 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
20241 (grub_linux_boot_bzimage): Remove prototype.
20242 (grub_linux_boot_zimage): Rename to ...
20243 (grub_linux_boot): ... this.
20245 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
20246 (grub_linux_boot): Remove function.
20248 2008-01-05 Robert Millan <rmh@aybabtu.com>
20250 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
20251 (grub_env_write_color_highlight): Likewise.
20252 (grub_wait_after_message): Likewise.
20254 * normal/color.c: New file.
20256 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20257 (normal_mod_DEPENDENCIES): Likewise.
20259 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20260 (normal_mod_DEPENDENCIES): Likewise.
20262 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20263 (normal_mod_DEPENDENCIES): Likewise.
20265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20266 (normal_mod_DEPENDENCIES): Likewise.
20268 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
20269 for waiting after a message is printed.
20270 * normal/main.c (read_config_file): Likewise.
20271 (grub_normal_init): Register grub_env_write_color_normal() and
20272 grub_env_write_color_highlight() hooks. Mark `color_normal' and
20273 `color_highlight' variables as global.
20275 * normal/menu.c (grub_wait_after_message): New function.
20276 (grub_color_menu_normal): New variable. Replaces ...
20277 (GRUB_COLOR_MENU_NORMAL): ... this macro.
20278 (grub_color_menu_highlight): New variable. Replaces ...
20279 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
20280 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
20281 `GRUB_TERM_COLOR_STANDARD'.
20282 (print_message): Use `grub_setcolorstate' to reload colors. Rename
20283 `normal_code' and `highlight_code' to `old_color_normal' and
20284 `old_color_highlight', respectively.
20285 (grub_menu_init_page): Update colors when drawing the menu, based on
20286 `menu_color_normal' and `menu_color_highlight' variables.
20287 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
20288 a message is printed.
20290 2008-01-05 Robert Millan <rmh@aybabtu.com>
20292 * kern/env.c (grub_env_context_open): Propagate hooks for global
20293 variables to new context.
20295 * kern/main.c (grub_set_root_dev): Export `root' variable.
20297 2008-01-05 Robert Millan <rmh@aybabtu.com>
20299 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
20300 discs unconditionally, since udev and others have options to provide
20303 2008-01-05 Robert Millan <rmh@aybabtu.com>
20305 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
20307 2008-01-04 Christian Franke <franke@computer.org>
20309 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
20312 2008-01-03 Pavel Roskin <proski@gnu.org>
20314 * kern/i386/linuxbios/init.c: Put "void" to all function
20315 declarations with no arguments.
20316 * kern/powerpc/ieee1275/init.c: Likewise.
20317 * term/i386/pc/at_keyboard.c: Likewise.
20318 * term/i386/pc/vga_text.c: Likewise.
20319 * util/grub-mkdevicemap.c: Likewise.
20321 2008-01-02 Robert Millan <rmh@aybabtu.com>
20323 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
20324 message when loaded image is out of bounds.
20325 (grub_multiboot_load_elf64): Likewise.
20327 2008-01-02 Pavel Roskin <proski@gnu.org>
20329 * util/grub.d/10_linux.in: Try version without ".old" when
20330 looking for initrd. It's better to use initrd from the newer
20331 kernel of the same version than no initrd at all.
20333 2008-01-01 Robert Millan <rmh@aybabtu.com>
20335 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
20337 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
20339 * include/grub/video.h: Added grub_video_unmap_color and
20340 grub_video_get_active_render_target.
20341 (grub_video_adapter): Added unmap_color and get_active_render_target.
20343 * video/video.c: Added grub_video_unmap_color and
20344 grub_video_get_active_render_target.
20345 (grub_video_get_info): Changed method to accept NULL pointer as an
20346 argument to allow detection of active video adapter.
20348 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
20349 grub_video_vbe_unmap_color_int.
20350 Added grub_video_vbe_unmap_color and
20351 grub_video_vbe_get_active_render_target.
20352 (grub_video_vbe_adapter): Added unmap_color and
20353 get_active_render_target.
20355 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
20356 with grub_video_vbe_unmap_color_int.
20358 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
20359 (DEFAULT_NORMAL_COLOR): Likewise.
20360 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
20361 (DEFAULT_FG_COLOR): Removed.
20362 (DEFAULT_BG_COLOR): Likewise.
20363 (DEFAULT_CURSOR_COLOR): Changed value.
20364 (grub_virtual_screen): Added standard_color_setting,
20365 normal_color_setting, highlight_color_setting and term_color.
20366 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
20367 (bitmap_width): Added.
20368 (bitmap_height): Likewise.
20369 (bitmap): Likewise.
20370 (set_term_color): Likewise.
20371 (grub_virtual_screen_setup): Changed to use new terminal coloring
20373 (grub_gfxterm_init): Added init for bitmap.
20374 (grub_gfxterm_fini): Added destroy for bitmap.
20375 (redraw_screen_rect): Updated to use background bitmap and new
20377 (scroll_up): Added optimization for case when there is no bitmap.
20378 (grub_gfxterm_cls): Fixed to use correct background color.
20379 (grub_virtual_screen_setcolorstate): Changed to use new terminal
20381 (grub_virtual_screen_setcolor): Likewise.
20382 (grub_virtual_screen_getcolor): Added.
20383 (grub_gfxterm_background_image_cmd): Likewise.
20384 (grub_video_term): Added setcolor and getcolor.
20385 (MOD_INIT): Added registration of background_image command.
20386 (MOD_TERM): Added unregistration for background_image command.
20388 2007-12-30 Pavel Roskin <proski@gnu.org>
20390 * loader/multiboot_loader.c: Fix multiboot command
20391 unregistration. Fix all typos in the word "multiboot".
20393 2007-12-29 Pavel Roskin <proski@gnu.org>
20395 * util/grub.d/10_linux.in: Refactor search for initrd. Add
20396 support for initrd names used in Fedora.
20398 2007-12-26 Bean <bean123ch@gmail.com>
20400 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
20401 (cpio_mod_SOURCES): New variable.
20402 (cpio_mod_CFLAGS): Likewise.
20403 (cpio_mod_LDFLAGS): Likewise.
20405 * fs/cpio.c: New file.
20407 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
20409 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20411 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20413 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20415 2007-12-25 Robert Millan <rmh@aybabtu.com>
20417 * include/grub/term.h (struct grub_term): Add `getcolor' function.
20418 (grub_getcolor): New function.
20420 * kern/term.c (grub_getcolor): New function.
20421 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
20422 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
20423 (print_entry): Set normal and highlight colors to
20424 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
20425 respectively, before printing and restore them to old
20427 (grub_menu_init_page): Likewise. Fill an additional colored space
20428 that would otherwise be left blank.
20430 * term/efi/console.c (grub_console_getcolor): New function.
20431 (struct grub_console_term.getcolor): New variable.
20432 * term/i386/pc/console.c (grub_console_getcolor): New function.
20433 (struct grub_console_term.getcolor): New variable.
20434 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
20435 (struct grub_console_term.getcolor): New variable.
20437 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
20438 (struct grub_console_term.setcolor): Remove variable.
20439 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
20440 (struct grub_console_term.setcolor): Remove variable.
20441 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
20442 (struct grub_console_term.setcolor): Remove variable.
20443 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
20444 (struct grub_console_term.setcolor): Remove variable.
20446 2007-12-25 Robert Millan <rmh@aybabtu.com>
20448 * configure.ac: Search for possible unifont.hex locations, and
20449 define UNIFONT_HEX if found.
20451 * Makefile.in (UNIFONT_HEX): Define variable.
20452 (DATA): Rename to ...
20453 (PKGLIB): ... this. Update all users.
20454 (PKGDATA): New variable.
20455 (pkgdata_IMAGES): Rename to ...
20456 (pkglib_IMAGES): ... this. Update all users.
20457 (pkgdata_MODULES): Rename to ...
20458 (pkglib_MODULES): ... this. Update all users.
20459 (pkgdata_PROGRAMS): Rename to ...
20460 (pkglib_PROGRAMS): ... this. Update all users.
20461 (pkgdata_DATA): Rename to ...
20462 (pkglib_DATA): ... this. Update all users.
20463 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
20464 (unicode.pff, ascii.pff): New rules.
20465 (all-local): Add `$(PKGDATA)' dependency.
20466 (install-local): Process `$(PKGDATA)'.
20468 * util/update-grub_lib.in (font_path): Search for *.pff files in
20469 a few more locations, including `${pkgdata}'.
20471 2007-12-23 Robert Millan <rmh@aybabtu.com>
20473 Patch from Bean <bean123ch@gmail.com>:
20474 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
20477 2007-12-21 Bean <bean123ch@gmail.com>
20479 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
20480 (ntfscomp_mod_SOURCES): New variable.
20481 (ntfscomp_mod_CFLAGS): Likewise.
20482 (ntfscomp_mod_LDFLAGS): Likewise.
20484 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
20485 (grub_probe_SOURCES): Likewise.
20486 (grub_emu_SOURCES): Likewise.
20488 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20489 (grub_emu_SOURCES): Likewise.
20491 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20492 (grub_emu_SOURCES): Likewise.
20494 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20495 (grub_emu_SOURCES): Likewise.
20497 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20498 (read_run_list): Renamed to grub_ntfs_read_run_list.
20499 (decomp_nextvcn): Moved to ntfscomp.c.
20500 (decomp_getch): Likewise.
20501 (decomp_get16): Likewise.
20502 (decomp_block): Likewise.
20503 (read_block): Likewise.
20504 (read_data): Partially moved to ntfscomp.c.
20505 (fixup): Change unsigned to grub_uint16_t.
20506 (read_mft): Change unsigned long to grub_uint32_t.
20507 (read_attr): Likewise.
20508 (read_data): Likewise.
20509 (read_run_data): Likewise.
20510 (read_run_list): Likewise.
20511 (read_mft): Likewise.
20513 * fs/ntfscomp.c: New file.
20515 * include/grub/ntfs.h: New file.
20517 2007-12-16 Robert Millan <rmh@aybabtu.com>
20519 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20520 IDE disk check, since Linux is known to support 20 IDE disks.
20521 Reported by Colin Watson.
20523 2007-12-15 Bean <bean123ch@gmail.com>
20525 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20526 (lnxboot_img_SOURCES): New variable.
20527 (lnxboot_img_ASFLAGS): Likewise.
20528 (lnxboot_img_LDFLAGS): Likewise.
20530 * boot/i386/pc/lnxboot.S: New file.
20532 2007-11-24 Pavel Roskin <proski@gnu.org>
20534 * configure.ac: Test if '--build-id=none' is supported by the
20535 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20536 objcopy to generate incorrect binary files (binutils
20537 2.17.50.0.18-1 as shipped by Fedora 8).
20538 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20539 linking, so that build ID doesn't break the test.
20541 2007-11-24 Pavel Roskin <proski@gnu.org>
20543 * include/grub/i386/time.h: use "void" in the argument list
20544 of grub_cpu_idle().
20545 * include/grub/powerpc/time.h: Likewise.
20546 * include/grub/sparc64/time.h: Likewise.
20548 2007-11-18 Christian Franke <franke@computer.org>
20550 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20551 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20552 This fixes the problem that function keys did not work in grub-emu.
20554 2007-11-18 Christian Franke <franke@computer.org>
20556 * disk/host.c (grub_host_open): Remove attribute unused from
20557 name parameter. Add check for "host". This fixes the problem
20558 that grub-emu does not find partitions.
20560 2007-11-18 Christian Franke <franke@computer.org>
20562 * util/hostfs.c (is_dir): New function.
20563 (grub_hostfs_dir): Handle missing dirent.d_type case.
20564 (grub_hostfs_read): Add missing fseek().
20565 (grub_hostfs_label): Clear label pointer. This fixes a crash
20566 of grub-emu on "ls (host)".
20568 2007-11-18 Christian Franke <franke@computer.org>
20570 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20571 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20572 to 64 bit boundary by default.
20574 2007-11-18 Bean <bean123ch@gmail.com>
20576 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20577 (hexdump_mod_SOURCES): New variable.
20578 (hexdump_mod_CFLAGS): Likewise.
20579 (hexdump_mod_LDFLAGS): Likewise.
20581 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20583 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20585 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20589 * include/grub/hexdump.h: New file.
20591 * commands/hexdump.c: New file.
20593 2007-11-10 Robert Millan <rmh@aybabtu.com>
20595 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20596 in grub_outb() calls.
20597 (beep_on): Likewise.
20599 2007-11-10 Christian Franke <franke@computer.org>
20601 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20602 (grub_menu_run): Likewise.
20604 2007-11-10 Robert Millan <rmh@aybabtu.com>
20606 * include/grub/i386/efi/machine.h: New file.
20607 * include/grub/i386/linuxbios/machine.h: Likewise.
20608 * include/grub/i386/pc/machine.h: Likewise.
20609 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20610 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20612 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20613 (serial_hw_io_addr): New variable.
20614 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20615 instead of `(unsigned short *) 0x400'.
20617 2007-11-10 Bean <bean123ch@gmail.com>
20619 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20621 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20623 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20624 (vga_mod_SOURCES): Added.
20625 (vga_mod_CFLAGS): Likewise.
20626 (vga_mod_LDFLAGS): Likewise.
20628 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20630 (set_map_mask): Likewise.
20631 (set_read_map): Likewise.
20632 (set_read_address): Likewise.
20633 (vga_font): Removed variable.
20634 (get_vga_glyph): Removed function.
20635 (invalidate_char): Likewise.
20636 (write_char): Changed to use grub_font_get_glyph() for font
20638 (grub_vga_putchar): Likewise.
20639 (grub_vga_getcharwidth): Likewise.
20641 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20643 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20645 (pxeboot_img_LDFLAGS): Likewise.
20646 (diskboot_img_LDFLAGS): Likewise.
20647 (kernel_img_LDFLAGS): Likewise.
20649 2007-11-06 Robert Millan <rmh@aybabtu.com>
20651 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20652 in grub_outb() calls.
20653 (serial_hw_init): Likewise.
20655 2007-11-05 Robert Millan <rmh@aybabtu.com>
20657 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20658 spaces. Skip non-regular files.
20660 2007-11-05 Robert Millan <rmh@aybabtu.com>
20662 * kern/disk.c (grub_disk_firmware_fini)
20663 (grub_disk_firmware_is_tainted): New variables.
20665 * include/grub/disk.h (grub_disk_firmware_fini)
20666 (grub_disk_firmware_is_tainted): Likewise.
20668 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20669 (grub_disk_biosdisk_fini): ... to here.
20670 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20671 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20672 is set. Register grub_disk_biosdisk_fini() in
20673 `grub_disk_firmware_fini'.
20675 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20676 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20677 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20678 to finish existing firmware disk interface.
20680 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20681 (ata_mod_SOURCES): New variable.
20682 (ata_mod_CFLAGS): Likewise.
20683 (ata_mod_LDFLAGS): Likewise.
20685 2007-11-05 Robert Millan <rmh@aybabtu.com>
20687 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20688 (grub_ata_wait): Reimplement using grub_millisleep().
20690 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20691 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20693 2007-11-03 Marco Gerards <marco@gnu.org>
20695 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20696 (CRTC_ADDR_PORT): New macro.
20697 (CRTC_DATA_PORT): Likewise.
20698 (CRTC_CURSOR): Likewise.
20699 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20700 (CRTC_CURSOR_ADDR_LOW): Likewise.
20701 (update_cursor): New function.
20702 (grub_console_real_putchar): Call `update_cursor'.
20703 (grub_console_gotoxy): Likewise.
20704 (grub_console_cls): Set the default color when clearing the
20706 (grub_console_setcursor): Implemented.
20708 2007-11-03 Marco Gerards <marco@gnu.org>
20710 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20712 (grub_ata_pio_write): Likewise.
20714 (grub_atapi_identify): Wait after issuing an ATA command.
20715 (grub_atapi_packet): Likewise.
20716 (grub_ata_identify): Likewise.
20717 (grub_ata_readwrite): Likewise.
20719 2007-11-03 Marco Gerards <marco@gnu.org>
20721 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20722 (grub_ata_pio_write): Likewise.
20723 (grub_ata_readwrite): Use `grub_error', instead of
20724 returning `grub_errno'.
20726 2007-11-03 Marco Gerards <marco@gnu.org>
20728 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20729 grub_ata_pio_write once for every single sector, instead of for
20732 2007-10-31 Robert Millan <rmh@aybabtu.com>
20734 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20736 * conf/i386-linuxbios.rmk: New file.
20738 * kern/i386/pc/hardware.c: Likewise.
20739 * term/i386/pc/at_keyboard.c: Likewise.
20740 * term/i386/pc/vga_text.c: Likewise.
20742 * include/grub/i386/linuxbios/boot.h: Likewise.
20743 * include/grub/i386/linuxbios/console.h: Likewise.
20744 * include/grub/i386/linuxbios/init.h: Likewise.
20745 * include/grub/i386/linuxbios/kernel.h: Likewise.
20746 * include/grub/i386/linuxbios/loader.h: Likewise.
20747 * include/grub/i386/linuxbios/memory.h: Likewise.
20748 * include/grub/i386/linuxbios/serial.h: Likewise.
20749 * include/grub/i386/linuxbios/time.h: Likewise.
20751 * kern/i386/linuxbios/init.c: Likewise.
20752 * kern/i386/linuxbios/startup.S: Likewise.
20753 * kern/i386/linuxbios/table.c: Likewise.
20755 2007-10-31 Marco Gerards <marco@gnu.org>
20757 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20758 (ata_mod_SOURCES): New variable.
20759 (ata_mod_CFLAGS): Likewise.
20760 (ata_mod_LDFLAGS): Likewise.
20762 * disk/ata.c: New file.
20764 * include/grub/disk.h (grub_disk_dev_id): Add
20765 `GRUB_DISK_DEV_ATA_ID'.
20767 2007-10-31 Robert Millan <rmh@aybabtu.com>
20769 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20770 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20772 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20773 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20775 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20778 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20780 2007-10-27 Robert Millan <rmh@aybabtu.com>
20782 * include/grub/types.h (ULONG_MAX): Define macro.
20784 2007-10-22 Robert Millan <rmh@aybabtu.com>
20786 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20788 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20790 2007-10-22 Robert Millan <rmh@aybabtu.com>
20792 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20793 (pkgdata_MODULES): Add `biosdisk.mod'.
20794 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20797 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20798 (grub_biosdisk_init): Replace with ...
20799 (GRUB_MOD_INIT(biosdisk)): ... this.
20800 (grub_biosdisk_fini): Replace with ...
20801 (GRUB_MOD_FINI(biosdisk)): ... this.
20803 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20804 (grub_machine_init): Remove call to grub_biosdisk_init().
20805 (grub_machine_fini): Remove call to grub_machine_fini().
20807 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20809 2007-10-22 Robert Millan <rmh@aybabtu.com>
20811 * include/grub/time.h: New file.
20812 * include/grub/i386/time.h: Likewise.
20813 * include/grub/powerpc/time.h: Likewise.
20814 * include/grub/sparc64/time.h: Likewise.
20816 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20818 (KERNEL_MACHINE_TIME_HEADER): ... this.
20819 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20821 (KERNEL_MACHINE_TIME_HEADER): ... this.
20822 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20824 (KERNEL_MACHINE_TIME_HEADER): ... this.
20826 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20827 (grub_millisleep): New function.
20828 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20829 (grub_millisleep): New function.
20830 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20831 Remove `grub/machine/time.h' include.
20832 (grub_millisleep): New function.
20833 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20834 Remove `grub/machine/time.h' include.
20835 (grub_millisleep): New function.
20837 * include/grub/misc.h (grub_div_roundup): New function.
20839 * kern/misc.c: Include `<grub/time.h>'.
20840 (grub_millisleep_generic): New function.
20842 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20844 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20846 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20847 `machine/time.h'. Add `time.h'.
20848 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20850 2007-10-21 Robert Millan <rmh@aybabtu.com>
20852 * include/grub/misc.h (grub_max): New function.
20854 2007-10-21 Robert Millan <rmh@aybabtu.com>
20856 * util/misc.c (grub_util_info): Call fflush() before returning.
20858 2007-10-20 Robert Millan <rmh@aybabtu.com>
20860 * genmk.rb (Image): Copy `extra_flags' from here ...
20861 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20863 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20864 to `argc' and `args' arguments.
20866 2007-10-17 Robert Millan <rmh@aybabtu.com>
20868 * kern/i386/loader.S: New file.
20870 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20871 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20872 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20873 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20874 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20875 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20876 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20877 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20878 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20879 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20880 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20881 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20882 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20883 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20885 * kern/i386/realmode.S: New file.
20887 * kern/i386/pc/startup.S (protstack): Moved from here ...
20888 * kern/i386/realmode.S (protstack)... to here.
20889 * kern/i386/pc/startup.S (gdt): Moved from here ...
20890 * kern/i386/realmode.S (gdt)... to here.
20891 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20892 * kern/i386/realmode.S (prot_to_real)... to here.
20894 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20895 `kern/i386/realmode.S'.
20897 2007-10-17 Robert Millan <rmh@aybabtu.com>
20899 * include/grub/i386/loader.h: New file.
20901 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20902 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20903 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20904 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20905 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20906 * include/grub/i386/loader.h (grub_linux_prot_size)
20907 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20908 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20909 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20910 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20912 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20914 2007-10-15 Robert Millan <rmh@aybabtu.com>
20916 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20917 filesystem when dev->disk is unset.
20918 Do probe for filesystem even when dev->disk->has_partitions is set.
20919 In case a filesystem is found, always report it.
20920 In case it isn't, if dev->disk->has_partitions is set, report that
20921 a partition table was found instead of reporting that no filesystem
20922 could be identified.
20924 2007-10-12 Robert Millan <rmh@aybabtu.com>
20926 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20927 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20929 * include/grub/types.h (grub_host_to_target16): New macro.
20930 (grub_host_to_target32): Likewise.
20931 (grub_host_to_target64): Likewise.
20932 (grub_target_to_host16): Likewise.
20933 (grub_target_to_host32): Likewise.
20934 (grub_target_to_host64): Likewise.
20936 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20937 Renamed from to ...
20938 (GRUB_MOD_ALIGN): ...this. Update all users.
20940 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20941 grub_host_to_target32.
20942 Replace grub_be_to_cpu32 with grub_target_to_host32.
20943 (load_modules): Likewise.
20944 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20945 Replace grub_be_to_cpu32 with grub_target_to_host32.
20946 Replace grub_cpu_to_be16 with grub_host_to_target16.
20947 Replace grub_cpu_to_be32 grub_host_to_target32.
20949 2007-10-12 Robert Millan <rmh@aybabtu.com>
20951 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20952 * util/elf/grub-mkimage.c: ... here.
20954 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20955 `util/powerpc/ieee1275/grub-mkimage.c'.
20957 2007-10-07 Robert Millan <rmh@aybabtu.com>
20959 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20960 and make it easier to figure out.
20961 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20962 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20963 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20964 leave us with less than HEAP_MIN_SIZE total heap.
20965 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20967 2007-10-03 Robert Millan <rmh@aybabtu.com>
20969 * include/grub/i386/io.h: New file.
20970 * commands/i386/pc/play.c (inb): Removed.
20972 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20974 * term/i386/pc/serial.c (inb): Removed.
20976 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20978 * term/i386/pc/vga.c (inb): Removed.
20980 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20983 2007-10-02 Robert Millan <rmh@aybabtu.com>
20985 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20987 Reported by Marcin Kurek.
20989 2007-09-07 Robert Millan <rmh@aybabtu.com>
20991 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20992 SmartFirmware version updates (as released by Sven Luther), and avoid
20993 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20994 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20997 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20999 From Hitoshi Ozeki:
21000 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
21001 when merging two regions.
21003 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21005 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
21006 * normal/completion.c (grub_normal_do_completion): Likewise.
21007 Reported by Hitoshi Ozeki.
21009 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21011 Do not use devices at boot in chainloading.
21013 * loader/i386/pc/chainloader.c (boot_drive): New variable.
21014 (boot_part_addr): Likewise.
21015 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
21016 with BOOT_DRIVE and BOOT_PART_ADDR.
21017 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
21018 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
21020 2007-08-29 Robert Millan <rmh@aybabtu.com>
21022 Patch from Simon Peter <dn.tlp@gmx.net>:
21023 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
21024 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
21025 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
21026 util/i386/pc/grub-setup.c_DEPENDENCIES.
21027 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
21028 util/grub-probe.c_DEPENDENCIES.
21029 * conf/powerpc-ieee1275.rmk: Likewise.
21031 2007-08-28 Robert Millan <rmh@aybabtu.com>
21033 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
21034 to tell grub-mkdevicemap how to name devices.
21035 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
21038 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
21039 util/i386/get_disk_name.c.
21040 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
21041 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
21042 util/ieee1275/get_disk_name.c.
21044 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
21046 * DISTLIST: Add util/i386/get_disk_name.c and
21047 util/ieee1275/get_disk_name.c.
21049 * util/grub-mkdevicemap.c: Replace device naming logic with
21050 grub_util_get_disk_name() calls.
21052 2007-08-20 Robert Millan <rmh@aybabtu.com>
21054 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
21055 (so that it works for both plural and singular quantities).
21057 2007-08-05 Robert Millan <rmh@aybabtu.com>
21059 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
21060 so that [xz] isn't taken into account when determining order.
21062 2007-08-02 Marco Gerards <marco@gnu.org>
21064 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
21065 `include/multiboot2.h', `include/grub/elfload.h',
21066 `include/multiboot.h', `include/grub/multiboot.h',
21067 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
21068 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
21069 `kern/elf.c', `loader/multiboot_loader.c',
21070 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
21071 `loader/i386/pc/multiboot2.c',
21072 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
21073 `util/i386/pc/grub-mkrescue.in'. Remove
21074 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
21075 `include/grub/i386/pc/util/biosdisk.h' and
21076 `include/grub/powerpc/ieee1275/multiboot.h'.
21078 2007-08-02 Bean <bean123ch@gmail.com>
21080 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
21081 (ntfs_mod_SOURCES): New variable.
21082 (ntfs_mod_CFLAGS): Likewise.
21083 (ntfs_mod_LDFLAGS): Likewise.
21085 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
21086 (grub_probe_SOURCES): Likewise.
21087 (grub_emu_SOURCES): Likewise.
21089 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21090 (grub_emu_SOURCES): Likewise.
21092 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21093 (grub_emu_SOURCES): Likewise.
21095 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
21097 * fs/ntfs.c: New file.
21099 2007-08-02 Bean <bean123ch@gmail.com>
21101 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
21103 * file.h (grub_file): Likewise.
21105 * fshelp.h (grub_fshelp_read_file): Likewise.
21107 * util/i386/pc/grub-setup.c (setup): Likewise.
21108 (save_first_sector): Likewise.
21109 (save_blocklists): Likewise.
21111 * fs/affs.c (grub_affs_read_file): Likewise.
21113 * fs/ext2.c (grub_ext2_read_file): Likewise.
21115 * fs/fat.c (grub_fat_read_data): Likewise.
21117 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
21119 * fs/hfs.c (grub_hfs_read_file): Likewise.
21121 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21123 * fs/jfs.c (grub_jfs_read_file): Likewise.
21125 * fs/minix.c (grub_minix_read_file): Likewise.
21127 * fs/sfs.c (grub_sfs_read_file): Likewise.
21129 * fs/ufs.c (grub_ufs_read_file): Likewise.
21131 * fs/xfs.c (grub_xfs_read_file): Likewise.
21133 * command/blocklist.c (read_blocklist): Likewise.
21134 (print_blocklist): Likewise.
21136 2007-08-02 Marco Gerards <marco@gnu.org>
21138 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
21141 * disk/host.c: New file.
21143 * util/hostfs.c: Likewise.
21145 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
21146 return `GRUB_ERR_BAD_FS'.
21147 * fs/sfs.c (grub_sfs_mount): Likewise.
21148 * fs/xfs.c (grub_xfs_mount): Likewise.
21150 * include/grub/disk.h (enum grub_disk_dev_id): Add
21151 `GRUB_DISK_DEVICE_HOST_ID'.
21153 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
21155 2007-07-24 Jerone Young <jerone@gmail.com>
21157 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
21158 modules for compilation.
21159 * conf/powerpc-ieee1275.rmk: Likewise.
21161 * include/multiboot.h: Move multiboot definitions to one file. Rename
21162 many definitions to not get grub specific.
21163 * include/multiboot2.h: Create header with multiboot 2 definitions.
21164 * include/grub/multiboot.h: Header for grub specific function
21165 prototypes and definitions.
21166 * include/grub/multiboot2.h: Likewise.
21167 * include/grub/multiboot_loader.h: Likewise.
21168 * include/grub/i386/pc/multiboot.h: Removed.
21169 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
21171 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
21172 and 2 to allow for one multiboot and module commands.
21173 * loader/multiboot2.c: Add multiboot2 functionality.
21174 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
21175 and definition names.
21176 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
21178 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
21179 ieee1275 specific multiboot2 code.
21181 * kern/i386/pc/startup.S: Change headers and definition names for
21182 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
21184 2007-07-22 Robert Millan <rmh@aybabtu.com>
21186 * geninitheader.sh: Process file specified in first parameter rather
21187 than hardcoding grub_modules_init.lst.
21188 * geninit.sh: Likewise. Also, construct header name dynamically rather
21189 than hardcoding grub_modules_init.h.
21191 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
21192 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
21193 grub_probe_init.[ch] and grub_setup_init.[ch].
21195 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
21196 grub_modules_init.h with grub_emu_init.h.
21197 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
21198 grub_probe_init.[ch] files.
21199 * conf/i386-efi.rmk: Likewise.
21200 * conf/i386-pc.rmk: Likewise.
21201 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
21202 grub_setup_init.[ch] files.
21204 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
21205 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
21206 to initialize modules rather than a list of hardcoded functions.
21207 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
21208 grub_init_all() to initialize modules rather than a list of hardcoded
21211 2007-07-22 Robert Millan <rmh@aybabtu.com>
21213 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21214 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
21216 2007-07-22 Robert Millan <rmh@aybabtu.com>
21218 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
21219 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
21220 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
21221 flag when running on SmartFirmware.
21222 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
21223 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
21226 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21227 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
21228 rather than decreasing it.
21230 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
21231 there's not enough space to do it, fail in the same way as when it
21232 can't be done because there are no partitions.
21234 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
21235 when nvsetenv failed.
21237 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21239 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
21240 because this rule is automatically generated.
21241 (grub-mkrescue): Removed for the same reason as above.
21243 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21245 Migrate to GNU General Public License Version 3.
21247 * COPYING: Replaced with the plain text version of GPLv3.
21249 * config.guess: Updated from gnulib.
21250 * config.sub: Likewise.
21252 * geninit.sh: Output a GPLv3 copyright notice.
21253 * geninitheader.sh: Likewise.
21254 * genmodsrc.sh: Likewise.
21255 * gensymlist.sh.in: Likewise.
21257 * boot/i386/pc/boot.S: Upgraded to GPLv3.
21258 * boot/i386/pc/diskboot.S: Likewise.
21259 * boot/i386/pc/pxeboot.S: Likewise.
21260 * commands/blocklist.c: Likewise.
21261 * commands/boot.c: Likewise.
21262 * commands/cat.c: Likewise.
21263 * commands/cmp.c: Likewise.
21264 * commands/configfile.c: Likewise.
21265 * commands/echo.c: Likewise.
21266 * commands/help.c: Likewise.
21267 * commands/ls.c: Likewise.
21268 * commands/search.c: Likewise.
21269 * commands/terminal.c: Likewise.
21270 * commands/test.c: Likewise.
21271 * commands/videotest.c: Likewise.
21272 * commands/i386/cpuid.c: Likewise.
21273 * commands/i386/pc/halt.c: Likewise.
21274 * commands/i386/pc/play.c: Likewise.
21275 * commands/i386/pc/reboot.c: Likewise.
21276 * commands/i386/pc/vbeinfo.c: Likewise.
21277 * commands/i386/pc/vbetest.c: Likewise.
21278 * commands/ieee1275/halt.c: Likewise.
21279 * commands/ieee1275/reboot.c: Likewise.
21280 * commands/ieee1275/suspend.c: Likewise.
21281 * disk/loopback.c: Likewise.
21282 * disk/lvm.c: Likewise.
21283 * disk/raid.c: Likewise.
21284 * disk/efi/efidisk.c: Likewise.
21285 * disk/i386/pc/biosdisk.c: Likewise.
21286 * disk/ieee1275/ofdisk.c: Likewise.
21287 * font/manager.c: Likewise.
21288 * fs/affs.c: Likewise.
21289 * fs/ext2.c: Likewise.
21290 * fs/fat.c: Likewise.
21291 * fs/fshelp.c: Likewise.
21292 * fs/hfs.c: Likewise.
21293 * fs/hfsplus.c: Likewise.
21294 * fs/iso9660.c: Likewise.
21295 * fs/jfs.c: Likewise.
21296 * fs/minix.c: Likewise.
21297 * fs/sfs.c: Likewise.
21298 * fs/ufs.c: Likewise.
21299 * fs/xfs.c: Likewise.
21300 * hello/hello.c: Likewise.
21301 * include/grub/acorn_filecore.h: Likewise.
21302 * include/grub/arg.h: Likewise.
21303 * include/grub/bitmap.h: Likewise.
21304 * include/grub/boot.h: Likewise.
21305 * include/grub/cache.h: Likewise.
21306 * include/grub/device.h: Likewise.
21307 * include/grub/disk.h: Likewise.
21308 * include/grub/dl.h: Likewise.
21309 * include/grub/elfload.h: Likewise.
21310 * include/grub/env.h: Likewise.
21311 * include/grub/err.h: Likewise.
21312 * include/grub/file.h: Likewise.
21313 * include/grub/font.h: Likewise.
21314 * include/grub/fs.h: Likewise.
21315 * include/grub/fshelp.h: Likewise.
21316 * include/grub/gzio.h: Likewise.
21317 * include/grub/hfs.h: Likewise.
21318 * include/grub/kernel.h: Likewise.
21319 * include/grub/loader.h: Likewise.
21320 * include/grub/lvm.h: Likewise.
21321 * include/grub/misc.h: Likewise.
21322 * include/grub/mm.h: Likewise.
21323 * include/grub/net.h: Likewise.
21324 * include/grub/normal.h: Likewise.
21325 * include/grub/parser.h: Likewise.
21326 * include/grub/partition.h: Likewise.
21327 * include/grub/pc_partition.h: Likewise.
21328 * include/grub/raid.h: Likewise.
21329 * include/grub/rescue.h: Likewise.
21330 * include/grub/script.h: Likewise.
21331 * include/grub/setjmp.h: Likewise.
21332 * include/grub/symbol.h: Likewise.
21333 * include/grub/term.h: Likewise.
21334 * include/grub/terminfo.h: Likewise.
21335 * include/grub/tparm.h: Likewise.
21336 * include/grub/types.h: Likewise.
21337 * include/grub/video.h: Likewise.
21338 * include/grub/efi/api.h: Likewise.
21339 * include/grub/efi/chainloader.h: Likewise.
21340 * include/grub/efi/console.h: Likewise.
21341 * include/grub/efi/console_control.h: Likewise.
21342 * include/grub/efi/disk.h: Likewise.
21343 * include/grub/efi/efi.h: Likewise.
21344 * include/grub/efi/pe32.h: Likewise.
21345 * include/grub/efi/time.h: Likewise.
21346 * include/grub/i386/linux.h: Likewise.
21347 * include/grub/i386/setjmp.h: Likewise.
21348 * include/grub/i386/types.h: Likewise.
21349 * include/grub/i386/efi/kernel.h: Likewise.
21350 * include/grub/i386/efi/loader.h: Likewise.
21351 * include/grub/i386/efi/time.h: Likewise.
21352 * include/grub/i386/pc/biosdisk.h: Likewise.
21353 * include/grub/i386/pc/boot.h: Likewise.
21354 * include/grub/i386/pc/chainloader.h: Likewise.
21355 * include/grub/i386/pc/console.h: Likewise.
21356 * include/grub/i386/pc/init.h: Likewise.
21357 * include/grub/i386/pc/kernel.h: Likewise.
21358 * include/grub/i386/pc/loader.h: Likewise.
21359 * include/grub/i386/pc/memory.h: Likewise.
21360 * include/grub/i386/pc/multiboot.h: Likewise.
21361 * include/grub/i386/pc/serial.h: Likewise.
21362 * include/grub/i386/pc/time.h: Likewise.
21363 * include/grub/i386/pc/vbe.h: Likewise.
21364 * include/grub/i386/pc/vbeblit.h: Likewise.
21365 * include/grub/i386/pc/vbefill.h: Likewise.
21366 * include/grub/i386/pc/vbeutil.h: Likewise.
21367 * include/grub/i386/pc/vga.h: Likewise.
21368 * include/grub/ieee1275/ieee1275.h: Likewise.
21369 * include/grub/ieee1275/ofdisk.h: Likewise.
21370 * include/grub/powerpc/libgcc.h: Likewise.
21371 * include/grub/powerpc/setjmp.h: Likewise.
21372 * include/grub/powerpc/types.h: Likewise.
21373 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
21374 * include/grub/powerpc/ieee1275/console.h: Likewise.
21375 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
21376 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21377 * include/grub/powerpc/ieee1275/loader.h: Likewise.
21378 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
21379 * include/grub/powerpc/ieee1275/time.h: Likewise.
21380 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
21381 * include/grub/sparc64/libgcc.h: Likewise.
21382 * include/grub/sparc64/setjmp.h: Likewise.
21383 * include/grub/sparc64/types.h: Likewise.
21384 * include/grub/sparc64/ieee1275/console.h: Likewise.
21385 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21386 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21387 * include/grub/sparc64/ieee1275/time.h: Likewise.
21388 * include/grub/util/biosdisk.h: Likewise.
21389 * include/grub/util/getroot.h: Likewise.
21390 * include/grub/util/lvm.h: Likewise.
21391 * include/grub/util/misc.h: Likewise.
21392 * include/grub/util/raid.h: Likewise.
21393 * include/grub/util/resolve.h: Likewise.
21394 * io/gzio.c: Likewise.
21395 * kern/device.c: Likewise.
21396 * kern/disk.c: Likewise.
21397 * kern/dl.c: Likewise.
21398 * kern/elf.c: Likewise.
21399 * kern/env.c: Likewise.
21400 * kern/err.c: Likewise.
21401 * kern/file.c: Likewise.
21402 * kern/fs.c: Likewise.
21403 * kern/loader.c: Likewise.
21404 * kern/main.c: Likewise.
21405 * kern/misc.c: Likewise.
21406 * kern/mm.c: Likewise.
21407 * kern/parser.c: Likewise.
21408 * kern/partition.c: Likewise.
21409 * kern/rescue.c: Likewise.
21410 * kern/term.c: Likewise.
21411 * kern/efi/efi.c: Likewise.
21412 * kern/efi/init.c: Likewise.
21413 * kern/efi/mm.c: Likewise.
21414 * kern/i386/dl.c: Likewise.
21415 * kern/i386/efi/init.c: Likewise.
21416 * kern/i386/efi/startup.S: Likewise.
21417 * kern/i386/pc/init.c: Likewise.
21418 * kern/i386/pc/lzo1x.S: Likewise.
21419 * kern/i386/pc/startup.S: Likewise.
21420 * kern/ieee1275/ieee1275.c: Likewise.
21421 * kern/powerpc/cache.S: Likewise.
21422 * kern/powerpc/dl.c: Likewise.
21423 * kern/powerpc/ieee1275/cmain.c: Likewise.
21424 * kern/powerpc/ieee1275/crt0.S: Likewise.
21425 * kern/powerpc/ieee1275/init.c: Likewise.
21426 * kern/powerpc/ieee1275/openfw.c: Likewise.
21427 * kern/sparc64/cache.S: Likewise.
21428 * kern/sparc64/dl.c: Likewise.
21429 * kern/sparc64/ieee1275/init.c: Likewise.
21430 * kern/sparc64/ieee1275/openfw.c: Likewise.
21431 * loader/efi/chainloader.c: Likewise.
21432 * loader/efi/chainloader_normal.c: Likewise.
21433 * loader/i386/efi/linux.c: Likewise.
21434 * loader/i386/efi/linux_normal.c: Likewise.
21435 * loader/i386/pc/chainloader.c: Likewise.
21436 * loader/i386/pc/chainloader_normal.c: Likewise.
21437 * loader/i386/pc/linux.c: Likewise.
21438 * loader/i386/pc/linux_normal.c: Likewise.
21439 * loader/i386/pc/multiboot.c: Likewise.
21440 * loader/i386/pc/multiboot_normal.c: Likewise.
21441 * loader/powerpc/ieee1275/linux.c: Likewise.
21442 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21443 * normal/arg.c: Likewise.
21444 * normal/cmdline.c: Likewise.
21445 * normal/command.c: Likewise.
21446 * normal/completion.c: Likewise.
21447 * normal/execute.c: Likewise.
21448 * normal/function.c: Likewise.
21449 * normal/lexer.c: Likewise.
21450 * normal/main.c: Likewise.
21451 * normal/menu.c: Likewise.
21452 * normal/menu_entry.c: Likewise.
21453 * normal/misc.c: Likewise.
21454 * normal/parser.y: Likewise.
21455 * normal/script.c: Likewise.
21456 * normal/i386/setjmp.S: Likewise.
21457 * normal/powerpc/setjmp.S: Likewise.
21458 * normal/sparc64/setjmp.S: Likewise.
21459 * partmap/acorn.c: Likewise.
21460 * partmap/amiga.c: Likewise.
21461 * partmap/apple.c: Likewise.
21462 * partmap/gpt.c: Likewise.
21463 * partmap/pc.c: Likewise.
21464 * partmap/sun.c: Likewise.
21465 * term/gfxterm.c: Likewise.
21466 * term/terminfo.c: Likewise.
21467 * term/efi/console.c: Likewise.
21468 * term/i386/pc/console.c: Likewise.
21469 * term/i386/pc/serial.c: Likewise.
21470 * term/i386/pc/vesafb.c: Likewise.
21471 * term/i386/pc/vga.c: Likewise.
21472 * term/ieee1275/ofconsole.c: Likewise.
21473 * util/biosdisk.c: Likewise.
21474 * util/console.c: Likewise.
21475 * util/genmoddep.c: Likewise.
21476 * util/getroot.c: Likewise.
21477 * util/grub-emu.c: Likewise.
21478 * util/grub-mkdevicemap.c: Likewise.
21479 * util/grub-probe.c: Likewise.
21480 * util/lvm.c: Likewise.
21481 * util/misc.c: Likewise.
21482 * util/raid.c: Likewise.
21483 * util/resolve.c: Likewise.
21484 * util/update-grub.in: Likewise.
21485 * util/update-grub_lib.in: Likewise.
21486 * util/grub.d/00_header.in: Likewise.
21487 * util/grub.d/10_hurd.in: Likewise.
21488 * util/grub.d/10_linux.in: Likewise.
21489 * util/i386/efi/grub-install.in: Likewise.
21490 * util/i386/efi/grub-mkimage.c: Likewise.
21491 * util/i386/pc/grub-install.in: Likewise.
21492 * util/i386/pc/grub-mkimage.c: Likewise.
21493 * util/i386/pc/grub-mkrescue.in: Likewise.
21494 * util/i386/pc/grub-setup.c: Likewise.
21495 * util/i386/pc/misc.c: Likewise.
21496 * util/powerpc/ieee1275/grub-install.in: Likewise.
21497 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21498 * util/powerpc/ieee1275/misc.c: Likewise.
21499 * video/bitmap.c: Likewise.
21500 * video/video.c: Likewise.
21501 * video/i386/pc/vbe.c: Likewise.
21502 * video/i386/pc/vbeblit.c: Likewise.
21503 * video/i386/pc/vbefill.c: Likewise.
21504 * video/i386/pc/vbeutil.c: Likewise.
21505 * video/readers/tga.c: Likewise.
21507 2007-07-02 Robert Millan <rmh@aybabtu.com>
21509 * conf/i386-efi.rmk: Replace obsolete reference to
21510 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21511 with util/getroot.c.
21512 * conf/powerpc-ieee1275.rmk: Likewise.
21513 * conf/sparc64-ieee1275.rmk: Likewise.
21515 * util/grub-emu.c (main): Fix unchecked pointer handling.
21517 2007-07-02 Robert Millan <rmh@aybabtu.com>
21519 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21520 invocation to fail, in order to support partition-less media.
21522 * util/i386/pc/grub-install.in: Likewise.
21524 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21525 which fs or partmap modules are needed (akin to its sister scripts).
21527 Also use grub-probe to get rid of unportable /proc/mounts check.
21529 Print the same informational message that the other scripts do, before
21532 2007-06-23 Robert Millan <rmh@aybabtu.com>
21534 * util/update-grub_lib.in (font_path): New function. Determine whether
21535 a font file can be found and, if so, echo the GRUB path to it.
21537 * util/update-grub.in: Handle multiple terminals depending on user
21538 input, platform availability and font file presence. Propagate
21539 variables of our findings to /etc/grub.d/ children.
21541 * util/grub.d/00_header.in: Handle multiple terminals, based on
21542 environment setup by update-grub.
21544 2007-06-23 Robert Millan <rmh@aybabtu.com>
21546 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
21548 2007-06-21 Robert Millan <rmh@aybabtu.com>
21550 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21551 indicate end of data section in kernel image.
21552 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21553 GRUB_KERNEL_MACHINE_DATA_END.
21555 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21557 * kern/i386/efi/startup.S: Likewise.
21559 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21560 during image generation. Implement --prefix option to override this
21562 * util/i386/efi/grub-mkimage.c: Likewise.
21564 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21565 code to make path relative to its root into a separate function.
21567 * util/i386/pc/grub-install.in: Use newly provided
21568 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21569 pass the result to grub-install --prefix.
21571 2007-06-13 Robert Millan <rmh@aybabtu.com>
21573 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21574 DEFAULT_DEVICE_MAP.
21575 * util/grub-emu.c: Use above definitions from misc.h instead of
21577 * util/grub-mkdevicemap.c: Likewise.
21578 * util/i386/pc/grub-setup.c: Likewise.
21579 * util/grub-probe.c: Likewise.
21580 (probe): Abort with grub_util_error() when either
21581 grub_guess_root_device or grub_util_get_grub_dev fails.
21583 2007-06-12 Robert Millan <rmh@aybabtu.com>
21585 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21586 "pager" assignment.
21587 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21589 * util/grub-probe.c (probe): Likewise for "drive_name".
21591 2007-06-11 Robert Millan <rmh@aybabtu.com>
21593 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21594 not just the cdrom one.
21596 2007-06-11 Robert Millan <rmh@aybabtu.com>
21598 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21599 Add --pkglibdir=DIR option to override pkglibdir.
21600 Mention --image-type=TYPE in help output.
21601 Fix --grub-mkimage (it was a no-op).
21602 Abort gracefully when no parameter is given.
21604 2007-06-11 Robert Millan <rmh@aybabtu.com>
21606 * util/i386/pc/grub-mkrescue.in: New file.
21607 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21608 * Makefile.in: Handle bin_SCRIPTS.
21610 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21612 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21613 list of video modes.
21615 2007-06-06 Robert Millan <rmh@aybabtu.com>
21617 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21618 file doesn't exist, or if it is in a filesystem grub can't read.
21620 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21621 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21622 header comment to fit in 80 columns when the variables are resolved.
21624 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21625 could be identified by update-grub. Remove redundant check for
21626 unifont.pff existence (since convert_system_path_to_grub_path now
21629 2007-06-04 Robert Millan <rmh@aybabtu.com>
21631 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21633 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21635 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21637 2007-06-04 Robert Millan <rmh@aybabtu.com>
21639 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21641 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21642 grub_apple_partition_map_fini.
21645 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21646 to access >2 TiB disks).
21648 Print disk->total_sectors with %llu instead of %lu, since this
21649 variable is always 64-bit (prevents wrong disk size from being displayed
21650 on either >2 TiB disk or big-endian CPU).
21652 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21653 into a generic case that supports all (sane) partition maps.
21655 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21658 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21659 and grub_apple_partition_map_fini() after that.
21661 2007-06-01 Robert Millan <rmh@aybabtu.com>
21663 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21665 * util/grub.d/00_header.in: Only enable gfxterm when
21666 convert_system_path_to_grub_path() succeeds.
21668 2007-05-20 Robert Millan <rmh@aybabtu.com>
21670 * util/update-grub_lib.in: New file.
21671 * DISTLIST: Add update-grub_lib.in.
21672 * conf/common.rmk: Generate update-grub_lib and install it in
21674 * Makefile.in: Add install routine for $(lib_DATA).
21676 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21677 function provided by update-grub_lib to support arbitrary paths of
21679 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21680 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21682 2007-05-19 Robert Millan <rmh@aybabtu.com>
21684 * commands/i386/cpuid.c: New module.
21685 * DISTLIST: Add it.
21686 * conf/i386-efi.rmk: Enable cpuid.mod.
21687 * conf/i386-pc.rmk: Likewise.
21689 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21691 * kern/disk.c (grub_disk_read): Check return value of
21694 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21696 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21698 * disk/raid.c (grub_raid_open): Likewise.
21700 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21702 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21703 stack instead of on the heap.
21705 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21706 before doing a read on it.
21708 * configure.ac: Only use -fno-stack-protector for the target
21711 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21713 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21714 __attribute_ ((unused)) to mode_type argument.
21716 * util/getroot.c (grub_guess_root_device): Fix #endif.
21718 * kern/misc.c (memcmp): Fix prototype.
21720 * include/grub/partition.h [GRUB_UTIL]
21721 (grub_gpt_partition_map_init): Add prototype.
21722 (grub_gpt_partition_map_fini): Likewise.
21724 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21725 at the right place.
21727 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21728 (grub_fat_read_data): Likewise.
21729 (grub_fat_find_dir): Likewise.
21731 * font/manager.c (find_glyph): Make table a const.
21732 (grub_font_get_glyph): Remove bitmap from if statement.
21734 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21736 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21737 code, first search for device in /dev/mapper, then in /dev.
21738 (grub_util_get_grub_dev): New function.
21739 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21741 * util/grub-probe.c (probe): Remove check for RAID, call
21742 grub_util_get_grub_dev() instead of
21743 grub_util_biosdisk_get_grub_dev().
21744 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21745 grub_util_biosdisk_get_grub_dev().
21746 * util/i386/pc/grub-setup.c (main): Likewise.
21748 2007-05-16 Robert Millan <rmh@aybabtu.com>
21750 * DISTLIST: Update for the latest changes.
21751 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21752 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21753 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21754 grub/util/biosdisk.h.
21755 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21756 grub/util/biosdisk.h.
21758 2007-05-16 Robert Millan <rmh@aybabtu.com>
21760 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21762 2007-05-16 Robert Millan <rmh@aybabtu.com>
21764 * util/i386/efi/grub-install.in: New.
21765 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21766 newly added grub-install.
21767 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21769 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21770 grub/util/biosdisk.h.
21771 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21772 grub/util/biosdisk.h.
21774 2007-05-16 Robert Millan <rmh@aybabtu.com>
21776 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21777 * include/grub/util/biosdisk.h: ... here.
21778 * util/i386/pc/biosdisk.c: Moved to ...
21779 * util/biosdisk.c: ... here.
21780 * util/i386/pc/getroot.c: Moved to ...
21781 * util/getroot.c: ... here.
21782 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21783 * util/grub-mkdevicemap.c: ... here.
21784 * util/i386/pc/grub-probe.c: Moved to ...
21785 * util/grub-probe.c: ... here.
21787 2007-05-15 Robert Millan <rmh@aybabtu.com>
21789 * util/update-grub.in: Remove duplicated line in grub.cfg header
21792 2007-05-13 Robert Millan <rmh@aybabtu.com>
21794 * util/update-grub.in: Fix a few assumptions about the devices holding
21795 /, /boot and /boot/grub being the same.
21796 * util/grub.d/00_header.in: Likewise.
21797 * util/grub.d/10_hurd.in: Likewise.
21798 * util/grub.d/10_linux.in: Likewise.
21800 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21801 patterns. Use that to define the `.old' suffix as older than `'.
21803 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21805 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21806 the grub.cfg header message.
21808 2007-05-11 Robert Millan <rmh@aybabtu.com>
21810 * util/update-grub.in: Create device.map if it doesn't already exist,
21811 before attempting to run grub-probe.
21812 Check for grub-probe and grub-mkdevicemap with the same code
21813 grub-install is using.
21816 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21818 * Makefile.in: Add the datarootdir autoconf variable.
21820 2007-05-09 Robert Millan <rmh@aybabtu.com>
21822 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21823 fail gracefully if dev->disk->partition == NULL.
21825 2007-05-07 Robert Millan <rmh@aybabtu.com>
21827 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21828 determine partition map module.
21829 * util/i386/pc/grub-install.in: Use this feature to decide which
21830 partition module to load, instead of hardcoding pc and gpt.
21832 2007-05-07 Robert Millan <rmh@aybabtu.com>
21834 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21835 source directory differs from build directory.
21837 2007-05-05 Robert Millan <rmh@aybabtu.com>
21839 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21842 2007-05-05 Robert Millan <rmh@aybabtu.com>
21844 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21846 2007-05-05 Robert Millan <rmh@aybabtu.com>
21848 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21849 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21851 2007-05-05 Robert Millan <rmh@aybabtu.com>
21853 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21854 (grub_probe_SOURCES): Likewise.
21855 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21856 GPT and initialize dos_part and bsd_part accordingly.
21857 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21859 (main): Activate gpt module for use during partition identification,
21860 and deactivate it afterwards.
21861 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21862 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21863 partition identification, and deactivate it afterwards.
21865 2007-05-05 Robert Millan <rmh@aybabtu.com>
21867 * term/i386/pc/console.c (grub_console_fini): Call
21868 grub_term_set_current() before grub_term_unregister().
21870 2007-05-04 Robert Millan <rmh@aybabtu.com>
21872 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21873 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21874 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21875 and update-grub_DATA.
21876 * conf/common.rmk: Build and install update-grub components.
21877 * conf/common.mk: Regenerate.
21878 * util/update-grub.in: New. Core of update-grub.
21879 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21880 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21881 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21882 * util/grub.d/README: New. Document grub.d directory layout.
21884 2007-05-01 Robert Millan <rmh@aybabtu.com>
21886 * util/grub-emu.c: Move initialization functions
21887 grub_util_biosdisk_init() and grub_init_all() before
21888 grub_util_biosdisk_get_grub_dev(), which relies on them.
21890 2007-04-19 Robert Millan <rmh@aybabtu.com>
21892 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21895 2007-04-18 Jerone Young <jerone@gmail.com>
21897 * kernel/elf.c: Add missing parenthesis for conditional statement
21900 2007-04-10 Jerone Young <jerone@gmail.com>
21902 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21903 continue on and look for device node with real device name.
21905 2007-04-10 Jerone Young <jerone@gmail.com>
21907 * configure.ac: Add argument for autoconf to use transformation
21909 * Makefile.in: Add autoconf package transformation code.
21910 * util/i386/pc/grub-install.in: Likewise.
21911 * util/powerpc/ieee1275/grub-install.in: Likewise.
21913 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21915 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21916 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21917 (EXT2_REVISION): Likewise.
21918 (EXT2_INODE_SIZE): Likewise.
21919 (struct grub_ext2_block_group): Added a missing member
21921 (grub_ext2_read_inode): Divide by the inode size in a superblock
21922 instead of 128 to obtain INODES_PER_BLOCK.
21923 Use the macro EXT2_INODE_SIZE instead of directly using
21924 SBLOCK->INODE_SIZE.
21926 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21928 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21929 superblock instead of the structure size to compute an
21930 offset. This fixes the problem that GRUB could not read a
21931 filesystem when inode size is different from 128-byte.
21933 2007-03-05 Marco Gerards <marco@gnu.org>
21935 * normal/main.c (read_config_file): When "menu" is not set, create
21936 an initial context.
21938 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21940 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21941 (HEAP_LIMIT): New macro.
21942 (grub_claim_heap): Claim memory up to `heaplimit'.
21944 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21946 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21947 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21948 (_start): Likewise.
21949 (grub_arch_modules_addr): Return address after `_end'.
21950 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21951 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21952 (add_segments): Calculate `_end' from phdr size and location.
21953 (ALIGN_UP): Moved to ...
21954 * include/grub/misc.h: here.
21955 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21957 (GRUB_IEEE1275_MODULE_BASE): Removed.
21959 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21961 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21964 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21966 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21968 (grub_elf64_load_hook_t): Likewise.
21969 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21972 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21974 * kern/mm.c: Update copyright.
21975 (grub_mm_debug): Correct syntax error.
21976 (grub_mm_dump_free): New function.
21977 (grub_debug_free): Call `grub_free'.
21978 * include/grub/mm.h: Update copyright.
21979 (grub_mm_dump_free): Add declaration.
21981 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21983 * include/grub/ieee1275/ieee1275.h: Update copyright.
21984 * kern/powerpc/ieee1275/init.c: Likewise.
21985 * kern/powerpc/ieee1275/openfw.c: Likewise.
21987 * loader/powerpc/ieee1275/linux.c: Likewise.
21988 * include/grub/elfload.h: Likewise.
21989 * kern/elf.c: Likewise.
21990 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21992 (grub_elf64_load): Likewise.
21993 (grub_elf32_load_segment): Move to a nested function.
21994 (grub_elf64_load_segment): Likewise.
21996 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21998 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
22000 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
22001 (grub_heap_len): Likewise.
22002 (HEAP_SIZE): New macro.
22003 (grub_claim_heap): New function.
22004 (grub_machine_init): Don't claim heap directly. Call
22006 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
22007 (grub_available_iterate): New function.
22009 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
22011 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
22012 * configure.ac: Use it for testing the HOST and TARGET compilers.
22014 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
22016 * Makefile.in (enable_grub_emu): New variable.
22017 * configure.ac (--enable-grub-emu): New option.
22018 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
22019 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
22020 * conf/i386-pc.rmk: Likewise.
22021 * conf/powerpc-ieee1275.rmk: Likewise.
22022 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
22024 2006-12-12 Marco Gerards <marco@gnu.org>
22026 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
22028 * kern/env.c (grub_env_unset): Don't free the member `value' when
22029 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
22032 * normal/main.c (current_menu): Removed.
22033 (free_menu): Unset the `menu' environment variable.
22034 (grub_normal_menu_addentry): Make use of the environment variable
22035 `menu', instead of using the global `current_menu'. Allocate
22036 memory for the sourcecode of this entry.
22037 (read_config_file): New argument `nested', changed all callers.
22038 Only in the case of a new context, initialize a new menu. Set the
22039 `menu' environment variable.
22040 (grub_normal_execute): Don't set and unset the environment
22041 variable `menu' here anymore. Only free the menu when leaving the
22044 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
22047 2006-12-11 Marco Gerards <marco@gnu.org>
22049 * normal/menu_entry.c (run): Fix off by one bug so the last line
22050 is executed. Move the loader check to outside the loop.
22052 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
22054 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
22056 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
22058 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
22059 the number of sectors. Reported by Andrey Shuvikov
22060 <mr_hyro@yahoo.com>.
22062 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
22064 * kern/disk.c (grub_disk_read): When there is a read error, always
22065 try to read only the necessary data.
22067 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
22069 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
22071 [GRUB_UTIL] (grub_raid_fini): Likewise.
22072 [GRUB_UTIL] (grub_lvm_init): Likewise.
22073 [GRUB_UTIL] (grub_lvm_fini): Likewise.
22074 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
22075 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
22076 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
22077 and grub_raid_fini().
22079 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
22081 * include/grub/types.h (__unused): Rename to UNUSED.
22082 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
22083 (grub_elf64_size): Likewise.
22085 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22087 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
22088 grub_error_push and grub_error_pop in the error-handling path.
22089 (grub_elf32_load_segment): Only call grub_file_read with non-zero
22092 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22094 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
22095 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22097 (kernel_elf_SOURCES): Likewise.
22098 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
22099 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
22100 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22101 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22102 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
22103 (elf_mod_SOURCES): New variable.
22104 (elf_mod_CFLAGS): Likewise.
22105 (elf_mod_LDFLAGS): Likewise.
22106 * include/grub/types.h (__unused): New macro.
22107 * include/grub/elfload.h: New file.
22108 * kern/elf.c: Likewise.
22109 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
22110 (ELF32_LOADMASK): New macro.
22111 (ELF64_LOADMASK): Likewise.
22112 (vmlinux): Removed.
22113 (grub_linux_load32): New function.
22114 (grub_linux_load64): Likewise.
22115 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
22116 Use grub_elf_t instead of grub_file_t.
22118 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
22120 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
22121 `catch_result' to struct set_color_args.
22123 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
22125 * normal/menu.c: Include grub/script.h.
22126 * normal/menu_entry.c: Likewise.
22127 * include/grub/normal.h: Do not include grub/script.h.
22129 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22131 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
22133 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22135 * kern/disk.c (grub_disk_open): Print debug messages when opening a
22137 (grub_disk_close): Print debug messages when closing a disk.
22138 (grub_disk_read): Print debug messages when disk read fails.
22139 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
22141 * kern/partition.c: Include misc.h.
22142 (grub_partition_iterate): Print debug messages when detecting
22145 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22147 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
22149 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
22151 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
22153 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22154 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
22156 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
22158 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
22159 instead of sizeof(lv). Patch by Michael Guntsche.
22161 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
22163 * disk/lvm.c: Rename VGS to VG_LIST.
22164 (grub_lvm_iterate): Change VGS->LV to VG-LV.
22165 (grub_lvm_open): Likewise.
22166 Thanks to Michael Guntsche for finding this bug.
22168 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
22170 * configure.ac (AC_INIT): Bumped to 1.95.
22172 2006-10-14 Robert Millan <rmh@aybabtu.com>
22174 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
22175 with "/dev/.static/dev/md".
22177 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22179 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
22180 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
22181 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
22182 DRIVE_NAME are always freed.
22184 * util/i386/pc/biosdisk.c (make_device_name): Add one into
22185 DOS_PART, as a DOS partition is counted from one instead of zero
22186 now. Reported by Robert Millan.
22188 2006-10-14 Robert Millan <rmh@aybabtu.com>
22190 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
22191 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
22192 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
22193 string returned by grub_guess_root_device.
22194 * util/i386/pc/grub-setup.c: Likewise.
22195 * util/i386/pc/grub-probefs.c: Likewise.
22197 * util/i386/pc/grub-probefs.c: Rename to ...
22198 * util/i386/pc/grub-probe.c: ... this.
22199 * DISTLIST: Remove grub-probefs, add grub-probe.
22200 * conf/i386-efi.rmk: Likewise.
22201 * conf/i386-pc.rmk: Likewise.
22202 * util/i386/pc/grub-install.in: Likewise.
22204 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
22205 choose which information we want to print.
22207 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22209 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
22210 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
22211 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
22212 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
22213 video/readers/tga.c and video/i386/pc/vbeutil.c.
22215 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
22217 Added support for RAID and LVM.
22219 * disk/lvm.c: New file.
22220 * disk/raid.c: Likewise.
22221 * include/grub/lvm.h: Likewise.
22222 * include/grub/raid.h: Likewise.
22223 * include/grub/util/lvm.h: Likewise.
22224 * include/grub/util/raid.h: Likewise.
22225 * util/lvm.c: Likewise.
22226 * util/raid.c: Likewise.
22228 * include/grub/disk.h (grub_disk_dev_id): Add
22229 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
22230 (grub_disk_get_size): New prototype.
22231 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
22232 returns a partition.
22233 (grub_disk_get_size): New function.
22235 * kern/i386/pc/init.c (make_install_device): Copy the prefix
22236 verbatim if grub_install_dos_part is -2.
22238 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
22241 * util/i386/pc/grub-setup.c (setup): New argument
22242 MUST_EMBED. Force embedding of GRUB when the argument is
22243 true. Close FILE before returning.
22244 (main): Add support for RAID and LVM.
22246 * conf/common.rmk: Add RAID and LVM modules.
22247 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
22249 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
22251 * kern/misc.c (grub_strstr): New function.
22252 * include/grub/misc.h (grub_strstr): New prototype.
22254 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
22256 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
22258 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
22260 * kern/misc.c (grub_strtoull): Guess the base only if not
22263 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22265 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
22268 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22270 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
22272 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
22273 Remove `flags' argument. All callers changed.
22274 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
22275 (IEEE1275_IHANDLE_INVALID): New variable.
22276 (IEEE1275_CELL_INVALID): New variable.
22277 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22278 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
22279 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
22280 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
22281 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
22282 codes from Open Firmware. All callers updated.
22283 (grub_ieee1275_next_property): Directly return Open Firmware return
22285 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22286 Standardize error checking from `grub_ieee1275_get_property'.
22287 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
22288 `devalias' to `aliases'. Correct comments. Consolidate error paths.
22290 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22292 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
22293 `instance_to_package_args' to `instance_to_path_args'.
22295 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
22296 `grub_ieee1275_chosen'.
22298 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
22299 `grub_ieee1275_interpret'.
22301 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22303 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
22305 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22307 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
22308 (__cmpdi): Likewise.
22310 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
22311 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
22314 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
22316 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
22317 to type `grub_ssize_t'.
22318 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
22320 2006-09-22 Marco Gerards <marco@gnu.org>
22322 * normal/script.c (grub_script_create_cmdmenu): Skip leading
22325 2006-09-22 Marco Gerards <marco@gnu.org>
22327 * commands/echo.c: New file.
22329 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
22331 * conf/common.rmk (echo_mod_SOURCES): New variable.
22332 (echo_mod_CFLAGS): Likewise.
22333 (echo_mod_LDFLAGS): Likewise.
22335 2006-09-22 Marco Gerards <marco@gnu.org>
22337 * normal/main.c (get_line): Malloc memory instead of using
22338 preallocated memory. Removed the arguments `cmdline' and
22339 `max_len'. Updated all callers.
22341 2006-09-22 Marco Gerards <marco@gnu.org>
22343 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
22344 (normal_mod_DEPENDENCIES): Likewise.
22346 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
22347 (normal_mod_DEPENDENCIES): Likewise.
22349 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
22351 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
22353 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
22355 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
22356 (normal_mod_DEPENDENCIES): Likewise.
22357 * conf/i386-pc.mk: Regenerate.
22358 * conf/i386-efi.mk: Likewise
22359 * conf/common.mk: Likewise.
22360 * conf/powerpc-ieee1275.mk: Likewise.
22361 * conf/sparc64-ieee1275.mk: Likewise.
22363 2006-09-22 Robert Millan <rmh@aybabtu.com>
22365 Sync with i386 version.
22366 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
22367 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
22369 2006-09-21 Robert Millan <rmh@aybabtu.com>
22371 Import from GRUB Legacy (lib/device.c):
22372 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
22373 (init_device_map) [__linux__]: Add support for I2O devices.
22375 2006-09-14 Marco Gerards <marco@gnu.org>
22377 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
22380 2006-09-14 Robert Millan <rmh@aybabtu.com>
22382 * util/i386/pc/grub-install.in: Skip menu.lst when removing
22385 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
22387 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
22388 before adding it to device.map.
22390 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
22392 * genmk.rb: Let GCC generate dependencies the first time it
22393 compiles a file; using the -MD option.
22394 * conf/common.mk: Regenerate.
22395 * conf/i386-pc.mk: Likewise.
22396 * conf/i386-efi.mk: Likewise.
22397 * conf/powerpc-ieee1275.mk: Likewise.
22398 * conf/sparc64-ieee1275.mk: Likewise.
22400 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
22402 Move the prototypes of grub_setjmp and grub_longjmp to
22403 cpu/setjmp.h, so that each architecture may specify different
22406 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
22407 (grub_longjmp): Likewise.
22408 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
22409 (grub_longjmp): Likewise.
22410 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
22411 (grub_longjmp): Likewise.
22413 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
22414 [!GRUB_UTIL] (grub_longjmp): Removed.
22416 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
22418 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
22419 "color!" method does not return any value.
22421 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22423 * include/grub/bitmap.h: New file.
22425 * include/grub/i386/pc/vbeutil.h: Likewise.
22427 * video/bitmap.c: Likewise.
22429 * video/readers/tga.c: Likewise.
22431 * video/i386/pc/vbeutil.c: Likewise.
22433 * commands/videotest.c: Code cleanup and updated to reflect to new
22436 * term/gfxterm.c: Likewise.
22438 * video/video.c: Likewise.
22440 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
22441 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
22442 (bitmap_mod_SOURCES): New entry.
22443 (bitmap_mod_CFLAGS): Likewise.
22444 (bitmap_mod_LDFLAGS): Likewise.
22445 (tga_mod_SOURCES): Likewise.
22446 (tga_mod_CFLAGS): Likewise.
22447 (tga_mod_LDFLAGS): Likewise.
22449 * include/grub/video.h (grub_video_blit_operators): New enum type.
22450 (grub_video_render_target): Changed as forward declaration and moved
22451 actual definition to be video driver specific.
22452 (grub_video_adapter.blit_bitmap): Added blitting operator.
22453 (grub_video_adapter.blit_render_target): Likewise.
22454 (grub_video_blit_bitmap): Likewise.
22455 (grub_video_blit_render_target): Likewise.
22457 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
22458 driver specific render target definition.
22459 (grub_video_vbe_map_rgba): Added driver internal helper.
22460 (grub_video_vbe_unmap_color): Updated to use
22461 grub_video_i386_vbeblit_info.
22462 (grub_video_vbe_get_video_ptr): Likewise.
22464 * include/grub/i386/pc/vbeblit.h
22465 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
22466 grub_video_i386_vbeblit_info.
22467 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
22468 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
22469 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
22470 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
22471 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
22472 (grub_video_i386_vbeblit_index_index): Likewise.
22473 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
22474 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
22475 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
22476 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
22478 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
22481 * video/i386/pc/vbeblit.c: Updated to reflect changes on
22482 include/grub/i386/pc/vbeblit.h.
22484 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
22485 Updated to use grub_video_i386_vbeblit_info.
22486 (grub_video_i386_vbefill_R8G8B8): Likewise.
22487 (grub_video_i386_vbefill_index): Likewise.
22488 (grub_video_i386_vbefill): Added generic filler.
22490 * video/i386/pc/vbefill.c: Updated to reflect changes on
22491 include/grub/i386/pc/vbefill.h.
22493 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22494 grub_video_i386_vbeblit_info.
22495 (grub_video_vbe_unmap_color): Likewise.
22496 (grub_video_vbe_blit_glyph): Likewise.
22497 (grub_video_vbe_scroll): Likewise.
22498 (grub_video_vbe_draw_pixel): Removed function.
22499 (grub_video_vbe_get_pixel): Likewise.
22500 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22501 updated code to use it.
22502 (common_blitter): Added common blitter for render target and bitmap.
22503 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22504 (grub_video_vbe_blit_render_target): Likewise.
22506 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
22508 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22509 is in text mode if there is no console control protocol instance
22512 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22514 * include/grub/video.h: Code cleanup.
22516 * include/grub/i386/pc/vbe.h: Likewise.
22518 * video/i386/pc/vbe.c: Likewise.
22520 * video/i386/pc/vbeblit.c: Likewise.
22522 * video/i386/pc/vbefill.c: Likewise.
22524 * video/video.c: Likewise. Also added more comments.
22526 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22528 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22529 (struct grub_biosdisk_dap): Likewise.
22531 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22532 linkage settings for all functions.
22534 2006-07-12 Marco Gerards <marco@gnu.org>
22536 * configure.ac (--enable-mm-debug): Fix typo.
22538 * genkernsyms.sh.in: Use proper quoting for `CC'.
22540 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22542 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22543 (normal_mod_ASFLAGS): Remove "-m32".
22545 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22547 * util/misc.c: Include config.h.
22548 [!HAVE_MEMALIGN]: Do not include malloc.h.
22549 (grub_memalign): Use posix_memalign, if present. Then, use
22550 memalign, if present. Otherwise, emit an error.
22552 * util/grub-emu.c: Do not include malloc.h.
22554 * include/grub/util/misc.h: Include unistd.h. This is required for
22555 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22556 D. Eades III <hde@foobar-qux.org>.
22558 * configure.ac (AC_GNU_SOURCE): Added.
22559 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22562 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22564 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22565 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22567 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22569 * include/grub/types.h (grub_host_addr_t): Rename to
22570 grub_target_addr_t.
22571 (grub_host_off_t): Rename to grub_target_off_t.
22572 (grub_host_size_t): Rename to grub_target_size_t.
22573 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22574 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22576 * include/grub/kernel.h (struct grub_module_header): Change type
22577 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22578 (grub_module_info): Likewise.
22580 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22582 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22583 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22584 Velazquez <jesus.velazquez@gmail.com>.
22586 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22588 Count partitions from 1 instead of 0 in the string representation
22589 of partitions. Still use 0-based internally.
22591 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22592 (sun_partition_map_iterate): Use grub_partition_t instead of
22593 struct grub_partition *. Cast DESC->START_CYLINDER to
22594 grub_uint64_t after converting the endian.
22595 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22596 (sun_partition_map_get_name): Add 1 to P->INDEX.
22598 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22600 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22602 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22603 zero instead of one.
22604 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22605 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22607 * partmap/apple.c (apple_partition_map_iterate): Change the type
22608 of POS to unsigned.
22609 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22610 (apple_partition_map_get_name): Add 1 into P->INDEX.
22612 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22613 of POS to unsigned.
22614 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22615 calculate the offset of a partition.
22616 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22617 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22619 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22620 SECTOR to grub_disk_addr_t.
22621 (acorn_partition_map_iterate): Likewise.
22622 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22623 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22625 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22627 * kern/i386/pc/init.c (make_install_device): Add 1 into
22628 GRUB_INSTALL_DOS_PART.
22630 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22633 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22635 Clean up the code to support 64-bit addressing in disks and
22636 files. This change is not enough for filesystems yet.
22638 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22639 type of "start" to grub_uint64_t.
22640 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22641 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22642 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22645 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22646 to grub_disk_addr_t.
22648 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22651 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22653 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22656 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22658 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22660 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22662 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22663 to grub_off_t, to detect an error from grub_file_seek.
22664 (grub_multiboot_load_elf32): Likewise.
22666 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22667 maximum unsigned long value when an overflow is detected.
22668 (grub_strtoull): New function.
22669 (grub_divmod64): Likewise.
22670 (grub_lltoa): use grub_divmod64.
22672 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22674 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22675 the pointer to next character. Use grub_strtoull instead of
22677 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22678 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22681 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22682 return value is signed.
22683 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22684 test if OFFSET is less than zero, as OFFSET is unsigned now.
22686 * kern/disk.c (struct grub_disk_cache): Change the type of
22687 "sector" to grub_disk_addr_t.
22688 (grub_disk_cache_get_index): Change the type of SECTOR to
22689 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22690 unsigned after shifting.
22691 (grub_disk_cache_invalidate): Change the type of SECTOR to
22693 (grub_disk_cache_unlock): Likewise.
22694 (grub_disk_cache_store): Likewise.
22695 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22696 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22697 grub_disk_addr_t and grub_uint64_t, respectively.
22698 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22699 body, as the value of OFFSET is tweaked by
22700 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22701 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22703 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22704 body, as the value of OFFSET is tweaked by
22705 grub_disk_check_range. Change the types of LEN and N to
22708 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22709 and "saved_offset" to grub_off_t.
22710 (test_header): Cast BUF to char *.
22711 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22713 (grub_gzio_read): Change the types of OFFSET and SIZE to
22714 grub_off_t and grub_size_t, respectively.
22716 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22718 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22719 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22720 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22721 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22722 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22724 * include/grub/types.h (grub_off_t): Unconditionally set to
22726 (grub_disk_addr_t): Changed to grub_uint64_t.
22728 * include/grub/partition.h (struct grub_partition): Change the
22729 types of "start", "len" and "offset" to grub_disk_addr_t,
22730 grub_uint64_t and grub_disk_addr_t, respectively.
22731 (grub_partition_get_start): Return grub_disk_addr_t.
22732 (grub_partition_get_len): Return grub_uint64_t.
22734 * include/grub/misc.h (grub_strtoull): New prototype.
22735 (grub_divmod64): Likewise.
22737 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22738 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22739 grub_off_t, respectively.
22740 All callers and references changed.
22742 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22743 grub_size_t in "read".
22744 All callers and references changed.
22746 * include/grub/file.h (struct grub_file): Change the types of
22747 "offset" and "size" to grub_off_t and grub_off_t,
22748 respectively. Change the type of SECTOR to grub_disk_addr_t in
22750 (grub_file_read): Change the type of LEN to grub_size_t.
22751 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22753 (grub_file_size): Return grub_off_t.
22754 (grub_file_tell): Likewise.
22755 All callers and references changed.
22757 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22758 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22760 (struct grub_disk): Change the type of "total_sectors" to
22761 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22763 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22764 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22765 (grub_disk_write): Likewise.
22766 All callers and references changed.
22768 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22769 char * for grub_strncmp to silence gcc.
22770 (grub_iso9660_mount): Likewise.
22771 (grub_iso9660_mount): Likewise.
22772 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22774 (grub_iso9660_iterate_dir): Likewise.
22775 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22777 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22778 LEN to grub_disk_addr_t and grub_size_t, respectively.
22780 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22782 * fs/jfs.c (grub_jfs_read_file): Likewise.
22784 * fs/minix.c (grub_jfs_read_file): Likewise.
22786 * fs/sfs.c (grub_jfs_read_file): Likewise.
22788 * fs/ufs.c (grub_jfs_read_file): Likewise.
22790 * fs/xfs.c (grub_jfs_read_file): Likewise.
22792 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22793 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22796 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22797 BLKNR to -1 instead of returning GRUB_ERRNO.
22798 (grub_ext2_read_file): Change the types of SECTOR and
22799 LEN to grub_disk_addr_t and grub_size_t, respectively.
22801 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22802 LEN to grub_disk_addr_t and grub_size_t, respectively.
22804 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22807 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22808 string. Do not cast SECTOR explicitly.
22810 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22811 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22812 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22813 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22814 over 2TB and LBA mode is not supported, raise an error.
22815 (get_safe_sectors): New function.
22816 (grub_biosdisk_read): Use get_safe_sectors.
22817 (grub_biosdisk_write): Likewise.
22819 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22820 (grub_efidisk_write): Likewise.
22822 * disk/loopback.c (delete_loopback): Cosmetic changes.
22823 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22825 (grub_loopback_open): Likewise.
22826 (grub_loopback_read): Likewise. Also, change the type of POS to
22827 grub_off_t, and fix the usage of grub_memset.
22829 * commands/i386/pc/play.c: Include grub/machine/time.h.
22831 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22834 * commands/configfile.c: Include grub/env.h.
22836 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22837 GRUB_ERRNO directly instead. Change the type of POS to
22838 grub_off_t. Follow the coding standard.
22840 * commands/blocklist.c: Include grub/partition.h.
22841 (grub_cmd_blocklist): Return an error if the underlying device is
22842 not a disk. Take the starting sector of a partition into account,
22843 if a partition is used.
22845 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22847 (lba_mode): Support 64-bit addresses.
22848 (chs_mode): Likewise.
22849 (copy_buffer): Adapted to the new offsets of a length field and a
22851 (blocklist_default_start): Allocate 64-bit space.
22853 * boot/i386/pc/boot.S (force_lba): Removed.
22854 (boot_drive): Moved to under KERNEL_SECTOR.
22855 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22857 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22859 (lba_mode): Refactored to support a 64-bit address. More size
22861 (setup_sectors): Likewise.
22863 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22865 * DISTLIST: Added include/grub/i386/linux.h. Removed
22866 include/grub/i386/pc/linux.h
22868 * configure.ac (AC_INIT): Bumped to 1.94.
22870 * config.guess: Updated from gnulib.
22871 * config.sub: Likewise.
22872 * install-sh: Likewise.
22873 * mkinstalldirs: Likewise.
22875 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22877 * conf/common.rmk (grub_modules_init.lst): Depended on
22878 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22881 * genmk.rb (PModule::rule): Reverted the previous change.
22883 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22885 * conf/common.rmk (grub_modules_init.lst): Depends on
22886 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22887 that the target does not exist before producing.
22888 (grub_modules_init.h): Remove the target before generating.
22889 (grub_emu_init.c): Likewise.
22891 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22893 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22895 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22896 for the target-specific tests. Make sure that we also have the
22897 up-to-date target variables for those tests.
22899 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22901 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22902 (PModule::rule): Likewise.
22904 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22906 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22907 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22908 target-specific flags should be prefixed.
22909 (PModule::rule): Likewise.
22911 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22913 * configure.ac (CMP): Check if cmp is available explicitly.
22915 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22917 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22918 (target_cpu): New variable.
22919 (pkglibdir): Use target_cpu instead of host_cpu.
22921 * util/i386/pc/grub-install.in (host_cpu): Removed.
22922 (target_cpu): New variable.
22923 (pkglibdir): Use target_cpu instead of host_cpu.
22925 * util/genmoddep.c: Removed.
22927 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22928 instead of GRUB_HOST_SIZEOF_VOID_P.
22929 * kern/dl.c: Likewise.
22931 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22933 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22934 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22935 (GRUB_TARGET_SIZEOF_LONG): ... this.
22936 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22937 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22938 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22940 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22941 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22942 (GRUB_TARGET_SIZEOF_LONG): ... this.
22943 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22944 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22945 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22947 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22948 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22949 (GRUB_TARGET_SIZEOF_LONG): ... this.
22950 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22951 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22953 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22954 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22955 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22956 instead of GRUB_HOST_SIZEOF_LONG.
22957 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22958 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22959 GRUB_CPU_WORDS_BIGENDIAN.
22960 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22961 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22964 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22965 (genmoddep_SOURCES): Likewise.
22966 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22967 (genmoddep_SOURCES): Likewise.
22968 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22969 (genmoddep_SOURCES): Likewise.
22970 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22972 (genmoddep_SOURCES): Likewise.
22974 * genmoddep.awk: New file.
22976 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22977 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22978 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22979 (PModule::rule): Likewise.
22980 (Program::rule): Likewise.
22981 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22982 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22985 * configure.ac: Rewritten intensively to use host and target
22986 instead of build and host, respectively.
22988 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22989 (host_cpu): Removed.
22990 (target_cpu): New variable.
22991 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22992 (BUILD_CC): Removed.
22993 (BUILD_CFLAGS): Likewise.
22994 (BUILD_CPPFLAGS): Likewise.
22995 (TARGET_CC): New variable.
22996 (TARGET_CFLAGS): Likewise.
22997 (TARGET_CPPFLAGS): Likewise.
22998 (TARGET_LDFLAGS): Likewise.
23000 (include): Use target_cpu instead of host_cpu.
23001 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
23003 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
23005 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
23007 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
23008 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
23009 field 'false' to 'exec_on_false'.
23010 (grub_script_create_cmdif): Renamed argument names to reflect above
23013 * normal/execute.c (grub_script_execute_cmdif): Likewise.
23015 * normal/script.c (grub_script_create_cmdif): Likewise.
23017 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
23019 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
23021 (grub_hfsplus_btree_recptr): Likewise.
23022 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
23023 FILEBLOCK both to pass a block number and store next block
23025 (grub_hfsplus_read_block): Rewritten heavily to support an extent
23026 overflow file correctly. Specify errors appropriately, because
23027 fshelp expects that GRUB_ERRNO is set when fails. Reuse
23028 grub_hfsplus_btree_recptr to get the pointer to a found key.
23029 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
23032 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
23034 (_linux_mod_SOURCES): New variable.
23035 (_linux_mod_CFLAGS): Likewise.
23036 (_linux_mod_LDFLAGS): Likewise.
23037 (linux_mod_SOURCES): Likewise.
23038 (linux_mod_CFLAGS): Likewise.
23039 (linux_mod_LDFLAGS): Likewise.
23041 * DISTLIST: Added loader/i386/efi/linux.c,
23042 loader/i386/efi/linux_normal.c and
23043 include/grub/i386/efi/loader.h.
23045 * loader/i386/efi/linux.c: New file.
23046 * loader/i386/efi/linux_normal.c: Likewise.
23047 * include/grub/i386/efi/loader.h: Likewise.
23049 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
23051 * commands/blocklist.c: New file.
23053 * DISTLIST: Added commands/blocklist.c.
23055 * term/efi/console.c (grub_console_highlight_color): Use a lighter
23056 color for the background, and a darker color for the foreground.
23057 (grub_console_checkkey): Return READ_KEY.
23058 (grub_console_cls): Set the background to
23059 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
23061 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
23063 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
23064 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
23066 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
23069 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
23070 BG. The spec is wrong again.
23072 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
23074 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
23076 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23077 commands/blocklist.c.
23078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23080 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
23081 (blocklist_mod_SOURCES): New variable.
23082 (blocklist_mod_CFLAGS): Likewise.
23083 (blocklist_mod_LDFLAGS): Likewise.
23085 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
23087 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
23089 (lba_mode): Use %eax more intensively to reduce the code size.
23091 2006-05-20 Marco Gerards <marco@gnu.org>
23093 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
23095 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
23097 (script): Accept leading newlines.
23098 (newlines): New rule to describe 0 or more newlines.
23099 (commands): Accept `command' with trailing newline. Fixed the
23100 order in which arguments were passed to `grub_script_add_cmd'.
23101 Accept commands separated by newlines.
23102 (function): Changed to accept newlines.
23103 (menuentry) Rewritten.
23105 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
23106 front of the list, instead of to the end.
23108 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
23110 * util/i386/pc/grub-install.in (bindir): New variable.
23111 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
23112 Shaver <lbgwjl@gmail.com>.
23114 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
23116 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
23117 grub/machine/linux.h
23118 * loader/i386/pc/linux.c: Likewise.
23120 * include/grub/i386/pc/linux.h: Moved to ...
23121 * include/grub/i386/linux.h: ... here.
23123 * include/grub/i386/linux.h (struct linux_kernel_params): New
23126 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
23128 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
23130 (grub_video_vbe_blit_glyph): Likewise.
23131 (grub_video_vbe_blit_bitmap): Likewise.
23132 (grub_video_vbe_blit_render_target): Likewise.
23134 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
23136 * configure.ac (--with-platform): Properly quote the square
23139 2006-05-08 Marco Gerards <marco@gnu.org>
23141 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
23143 (kernel_elf_HEADERS): ...to this. Updated all users.
23144 (grubof_symlist.c): Renamed from this...
23145 (kernel_elf_symlist.c): ...to this. Updated all users.
23146 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23147 (grubof_SOURCES): Renamed from this...
23148 (kernel_elf_SOURCES): ...to this.
23149 (grubof_HEADERS): Renamed from this...
23150 (kernel_elf_HEADERS): ...to this.
23151 (grubof_CFLAGS): Renamed from this...
23152 (kernel_elf_CFLAGS): ...to this.
23153 (grubof_ASFLAGS): Renamed from this...
23154 (kernel_elf_ASFLAGS): ...to this.
23155 (grubof_LDFLAGS): Renamed from this...
23156 (kernel_elf_LDFLAGS): ...to this.
23158 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
23160 (kernel_elf_HEADERS): ...to this. Updated all users.
23161 (grubof_symlist.c): Renamed from this...
23162 (kernel_elf_symlist.c): ...to this. Updated all users.
23163 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23164 (grubof_SOURCES): Renamed from this...
23165 (kernel_elf_SOURCES): ...to this.
23166 (grubof_HEADERS): Renamed from this...
23167 (kernel_elf_HEADERS): ...to this.
23168 (grubof_CFLAGS): Renamed from this...
23169 (kernel_elf_CFLAGS): ...to this.
23170 (grubof_ASFLAGS): Renamed from this...
23171 (kernel_elf_ASFLAGS): ...to this.
23172 (grubof_LDFLAGS): Renamed from this...
23173 (kernel_elf_LDFLAGS): ...to this.
23175 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
23176 `kernel.elf' instead of `grubof'.
23178 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
23180 Add --with-platform to configure. Use pkglibdir instead of
23181 pkgdatadir. This is reported by Roger Leigh.
23183 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
23184 (host_vendor): Likewise.
23185 (host_os): Likewise.
23186 (pkgdatadir): Likewise.
23187 (platform): New variable.
23188 (pkglibdir): Likewise.
23189 Use PKGLIBDIR instead of PKGDATADIR.
23191 * util/i386/pc/grub-install.in (datadir): Removed.
23192 (host_vendor): Likewise.
23193 (host_os): Likewise.
23194 (pkgdatadir): Likewise.
23195 (platform): New variable.
23196 (pkglibdir): Likewise.
23197 Use PKGLIBDIR instead of PKGDATADIR.
23199 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
23200 instead of GRUB_DATADIR.
23202 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23204 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23207 * configure.ac (--with-platform): New option.
23208 Use PLATFORM instead of HOST_VENDOR to specify a platform.
23210 * Makefile.in: Include a makefile based on PLATFORM instead of
23212 (pkgdatadir): Not appended by the machine type.
23213 (pkglibdir): Appended by the machine type.
23214 (host_vendor): Removed.
23215 (platform): New variable.
23216 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
23217 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
23218 (uninstall): Likewise.
23220 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
23222 Use the environment context in the menu. Remove the commands
23223 "default" and "timeout", and use variables instead.
23225 * normal/menu.c: Include grub/env.h.
23226 (print_entry): Cast TITLE to silence gcc.
23227 (get_timeout): New function.
23228 (set_timeout): Likewise.
23229 (get_entry_number): Likewise.
23230 (run_menu): Use a default entry, a fallback entry and a timeout
23231 in the environment variables "default", "fallback" and
23232 "timeout". Also, tweak the default entry if it is not within the
23233 current menu entries.
23234 (grub_menu_run): Use a fallback entry in the environment variable
23237 * normal/main.c (read_config_file): Do not initialize
23238 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
23240 (grub_normal_execute): Use a data slot to store the menu.
23242 * include/grub/normal.h (struct grub_menu): Removed default_entry,
23243 fallback_entry and timeout.
23244 (struct grub_menu_list): Removed.
23245 (grub_menu_list_t): Likewise.
23246 (struct grub_context): Likewise.
23247 (grub_context_t): Likewise.
23248 (grub_context_get): Likewise.
23249 (grub_context_get_current_menu): Likewise.
23250 (grub_context_push_menu): Likewise.
23251 (grub_context_pop_menu): Likewise.
23252 (grub_default_init): Likewise.
23253 (grub_default_fini): Likewise.
23254 (grub_timeout_init): Likewise.
23255 (grub_timeout_fini): Likewise.
23257 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
23259 (normal_mod_SOURCES): Removed normal/context.c.
23261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
23262 commands/default.c, commands/timeout.c and normal/context.c.
23263 (normal_mod_SOURCES): Removed normal/context.c.
23265 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
23266 commands/timeout.c and normal/context.c.
23267 (normal_mod_SOURCES): Removed normal/context.c.
23269 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
23270 commands/default.c, commands/timeout.c and normal/context.c.
23271 (normal_mod_SOURCES): Removed normal/context.c.
23273 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
23275 (default_mod_SOURCES): Removed.
23276 (default_mod_CFLAGS): Likewise.
23277 (default_mod_LDFLAGS): Likewise.
23278 (timeout_mod_SOURCES): Removed.
23279 (timeout_mod_CFLAGS): Likewise.
23280 (timeout_mod_LDFLAGS): Likewise.
23282 * DISTLIST: Removed commands/default.c, commands/timeout.c and
23285 * commands/default.c: Removed.
23286 * commands/timeout.c: Likewise.
23287 * normal/context.c: Likewise.
23289 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
23291 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
23293 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
23295 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
23296 "next" to "prev" for readability.
23297 (struct grub_env_sorted_var): New struct.
23298 (grub_env_context): Renamed to ...
23299 (initial_context): ... this.
23300 (grub_env_var_context): Renamed to ...
23301 (current_context): ... this.
23302 (grub_env_find): Look only at CURRENT_CONTEXT.
23303 (grub_env_context_open): Rewritten to copy exported variables from
23305 (grub_env_context_close): Rewritten according to the new
23306 scheme. Also, add an assertion to prevent the initial context from
23308 (grub_env_insert): Removed the code for the sorted list.
23309 (grub_env_remove): Likewise.
23310 (grub_env_export): Simply mark the variable with
23311 GRUB_ENV_VAR_GLOBAL.
23312 (grub_env_set): A cosmetic change for naming consistency.
23313 (grub_env_get): Likewise.
23314 (grub_env_unset): Likewise.
23315 (grub_env_iterate): Rewritten to sort variables within this
23317 (grub_register_variable_hook): Fixed for naming consistency. Call
23318 grub_env_find again, only if NAME is not found at the first time.
23319 (mangle_data_slot_name): New function.
23320 (grub_env_set_data_slot): Likewise.
23321 (grub_env_get_data_slot): Likewise.
23322 (grub_env_unset_data_slot): Likewise.
23324 * include/grub/env.h (grub_env_var_type): New enum.
23325 (GRUB_ENV_VAR_LOCAL): New constant.
23326 (GRUB_ENV_VAR_GLOBAL): Likewise.
23327 (GRUB_ENV_VAR_DATA): Likewise.
23328 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
23330 (grub_env_set): Replace VAR with NAME for consistency.
23331 (grub_register_variable_hook): Likewise.
23332 (grub_env_export): Specify the name of the argument.
23333 (grub_env_set_data_slot): New prototype.
23334 (grub_env_get_data_slot): Likewise.
23335 (grub_env_unset_data_slot): Likewise.
23337 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23339 Extend the loader so that GRUB can accept a loader which comes
23340 back to GRUB when a loaded image exits. Also, this change adds
23341 support for a chainloader on EFI.
23343 * term/efi/console.c: Include grub/misc.h.
23344 (grub_console_checkkey): Display a scan code on the top for
23345 debugging. This will be removed once the EFI port gets stable.
23346 Correct the scan code mapping.
23348 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
23349 allocate memory from larger regions, in order to reduce the number
23350 of allocated regions. Otherwise, the MacOSX loader panics.
23351 (filter_memory_map): Avoid less than 1MB for compatibility with
23353 (add_memory_regions): Allocate from the tail of a region, if
23354 possible, to avoid allocating a region near to 1MB, for the MacOSX
23357 * kern/efi/init.c (grub_efi_set_prefix): Specify
23358 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
23360 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
23361 argument IMAGE_HANDLE and specify it to get a loaded image.
23362 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
23363 grub_efi_get_loaded_image.
23364 (grub_efi_get_filename): Divide the length by the size of
23366 (grub_efi_get_device_path): New function.
23367 (grub_efi_print_device_path): Print End Device Path nodes. Divide
23368 the length by the size of grub_efi_char16_t for a file path device
23371 * kern/loader.c (grub_loader_noreturn): New variable.
23372 (grub_loader_set): Accept a new argument NORETURN. Set
23373 GRUB_LOADER_NORETURN to NORETURN.
23374 All callers changed.
23375 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
23378 * include/grub/efi/efi.h (grub_efi_get_device_path): New
23380 (grub_efi_get_loaded_image): Take an argument to specify an image
23383 * include/grub/loader.h (grub_loader_set): Added one more argument
23386 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
23387 instead of grub_efi_open_protocol.
23388 (grub_efidisk_get_device_name): Likewise.
23389 (grub_efidisk_close): Print a newline.
23390 (grub_efidisk_get_device_handle): Fixed to use
23391 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
23392 GRUB_EFI_DEVICE_PATH_TYPE.
23394 * disk/efi/efidisk.c (device_path_guid): Moved to ...
23395 * kern/efi/efi.c (device_path_guid): ... here.
23397 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
23399 (kernel_mod_HEADERS): Added efi/disk.h.
23400 (_chain_mod_SOURCES): New variable.
23401 (_chain_mod_CFLAGS): Likewise.
23402 (_chain_mod_LDFLAGS): Likewise.
23403 (chain_mod_SOURCES): Likewise.
23404 (chain_mod_CFLAGS): Likewise.
23405 (chain_mod_LDFLAGS): Likewise.
23407 * DISTLIST: Added include/grub/efi/chainloader.h,
23408 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
23410 * include/grub/efi/chainloader.h: New file.
23411 * loader/efi/chainloader.c: Likewise.
23412 * loader/efi/chainloader_normal.c: Likewise.
23414 2006-04-30 Marco Gerards <marco@gnu.org>
23416 * commands/configfile.c (grub_cmd_source): New function.
23417 (GRUB_MOD_INIT): Register the commands `source' and `.'.
23418 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
23420 2006-04-30 Marco Gerards <marco@gnu.org>
23422 * normal/execute.c (grub_script_execute_cmd): Change the return
23423 type to `grub_err_t'. Correctly return the error.
23424 (grub_script_execute_cmdline): In case a command line is not a
23425 command or a function, try to interpret it as an assignment.
23427 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23429 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
23430 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
23431 skip a node whose name is obviously invalid as UTF-16,
23432 i.e. contains a NUL character. Stop the iteration when the last
23433 directory entry is found. Instead of using the return value of
23434 grub_hfsplus_btree_iterate_node, store the value in RET and use
23435 it, because the iterator can be stopped by the last directory
23438 2006-04-30 Marco Gerards <marco@gnu.org>
23440 * include/grub/env.h (grub_env_export): New prototype. Reported
23441 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
23443 2006-04-30 Marco Gerards <marco@gnu.org>
23445 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
23446 size of the extents in a catalog file record.
23448 2006-04-29 Marco Gerards <marco@gnu.org>
23450 * commands/configfile.c (grub_cmd_configfile): Execute the
23451 configfile within its own context.
23453 * include/grub/env.h (grub_env_context_open): New prototype.
23454 (grub_env_context_close): Likewise.
23456 * kern/env.c (grub_env): Removed.
23457 (grub_env_sorted): Likewise.
23458 (grub_env_context): New variable.
23459 (grub_env_var_context): Likewise.
23460 (grub_env_find): Search both the active context and the global
23462 (grub_env_context_open): New function.
23463 (grub_env_context_close): Likewise.
23464 (grub_env_insert): Likewise.
23465 (grub_env_remove): Likewise.
23466 (grub_env_export): Likewise.
23467 (grub_env_set): Changed to use helper functions to avoid code
23469 (grub_env_iterate): Rewritten so both the current context and the
23470 global context are being used.
23472 * normal/command.c (export_command): New function.
23473 (grub_command_init): Register the `export' function.
23475 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
23477 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
23478 explicitly to suppress gcc's warnings.
23479 * fs/fat.c (grub_fat_find_dir): Likewise.
23480 (grub_fat_label): Likewise.
23481 * fs/xfs.c (grub_xfs_read_inode): Likewise.
23482 (grub_xfs_mount): Likewise.
23483 (grub_xfs_label): Likewise.
23484 * fs/affs.c (grub_affs_mount): Likewise.
23485 (grub_affs_label): Likewise.
23486 (grub_affs_iterate_dir): Likewise.
23487 * fs/sfs.c (grub_sfs_mount): Likewise.
23488 (grub_sfs_iterate_dir): Likewise.
23489 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
23490 * fs/hfs.c (grub_hfs_mount): Likewise.
23491 (grub_hfs_cmp_catkeys): Likewise.
23492 (grub_hfs_find_dir): Likewise.
23493 (grub_hfs_dir): Likewise.
23494 (grub_hfs_label): Likewise.
23495 * fs/jfs.c (grub_jfs_mount): Likewise.
23496 (grub_jfs_opendir): Likewise.
23497 (grub_jfs_getent): Likewise.
23498 (grub_jfs_lookup_symlink): Likewise.
23499 (grub_jfs_label): Likewise.
23500 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23501 (grub_hfsplus_iterate_dir): Likewise.
23502 (grub_hfsplus_btree_iterate_node): Made static.
23504 * util/grub-emu.c (prefix): New variable.
23505 (grub_machine_set_prefix): New function.
23506 (main): Do not set the environment variable "prefix" here. Only
23507 set PREFIX, which is used later by grub_machine_set_prefix.
23509 * include/grub/video.h: Do not include grub/symbol.h.
23510 (grub_video_register): Not exported. This symbol is not defined in
23512 (grub_video_unregister): Likewise.
23513 (grub_video_iterate): Likewise.
23514 (grub_video_setup): Likewise.
23515 (grub_video_restore): Likewise.
23516 (grub_video_get_info): Likewise.
23517 (grub_video_get_blit_format): Likewise.
23518 (grub_video_set_palette): Likewise.
23519 (grub_video_get_palette): Likewise.
23520 (grub_video_set_viewport): Likewise.
23521 (grub_video_get_viewport): Likewise.
23522 (grub_video_map_color): Likewise.
23523 (grub_video_map_rgb): Likewise.
23524 (grub_video_map_rgba): Likewise.
23525 (grub_video_fill_rect): Likewise.
23526 (grub_video_blit_glyph): Likewise.
23527 (grub_video_blit_bitmap): Likewise.
23528 (grub_video_blit_render_target): Likewise.
23529 (grub_video_scroll): Likewise.
23530 (grub_video_swap_buffers): Likewise.
23531 (grub_video_create_render_target): Likewise.
23532 (grub_video_delete_render_target): Likewise.
23533 (grub_video_set_active_render_target): Likewise.
23535 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23537 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23539 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23540 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23541 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23542 instead of $(srcdir)/genkernsyms.sh.
23544 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23545 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23546 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23547 instead of $(srcdir)/genkernsyms.sh.
23549 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23550 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23551 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23552 instead of $(srcdir)/genkernsyms.sh.
23554 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23555 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23556 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23557 instead of $(srcdir)/genkernsyms.sh.
23559 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23562 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23564 (gensymlist.sh): New target.
23565 (genkernsyms.sh): Likewise.
23567 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23568 genkernsyms.sh.in and gensymlist.sh.in.
23570 * genkernsyms.sh: Removed.
23571 * gensymlist.sh: Likewise.
23573 * genkernsyms.sh.in: New file.
23574 * gensymlist.sh.in: Likewise.
23576 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23578 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23579 clobber "prefix", since we may have already set it manually.
23581 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23583 * kern/misc.c (abort): New alias for grub_abort.
23585 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23587 A new machine-specific function "grub_machine_set_prefix" is
23588 defined. This is called after loading modules, so that a prefix
23589 initialization can use modules. Also, this change adds an
23590 intensive debugging feature for the memory manager via the
23591 configure option "--enable-mm-debug".
23593 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23596 * kern/sparc64/ieee1275/init.c (abort): Removed.
23597 (grub_stop): Likewise.
23598 (grub_exit): New function.
23599 (grub_set_prefix): Renamed to ...
23600 (grub_machine_set_prefix): ... this.
23601 (grub_machine_init): Do not call grub_set_prefix.
23603 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23604 (grub_machine_set_prefix): ... this.
23605 (grub_machine_init): Do not call grub_set_prefix.
23607 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23608 (grub_machine_init): Do not set the prefix here.
23610 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23612 * kern/efi/init.c: Include grub/mm.h.
23613 (grub_efi_set_prefix): New function.
23615 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23616 (grub_efi_get_filename): New function.
23617 (grub_print_device_path): Renamed to ...
23618 (grub_efi_print_device_path): ... this.
23620 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23621 [MM_DEBUG] (grub_realloc): Likewise.
23622 [MM_DEBUG] (grub_free): Likewise.
23623 [MM_DEBUG] (grub_memalign): Likewise.
23624 [MM_DEBUG] (grub_mm_debug): New variable.
23625 [MM_DEBUG] (grub_debug_malloc): New function.
23626 [MM_DEBUG] (grub_debug_free): New function.
23627 [MM_DEBUG] (grub_debug_realloc): New function.
23628 [MM_DEBUG] (grub_debug_memalign): New function.
23630 * kern/misc.c (grub_abort): Print a newline to distinguish
23633 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23634 grub_set_root_dev after loading modules. This is necessary when
23635 setting a prefix depends on modules.
23637 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23638 (grub_efi_print_device_path): ... this.
23639 (grub_efi_get_filename): New prototype.
23640 (grub_efi_set_prefix): Likewise.
23642 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23644 (grub_efidisk_get_device_handle): New prototype.
23645 (grub_efidisk_get_device_name): Likewise.
23647 * include/grub/mm.h: Include config.h.
23648 (MM_DEBUG): Removed.
23649 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23650 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23651 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23652 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23653 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23654 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23655 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23656 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23657 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23659 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23661 * disk/efi/efidisk.c: Include grub/partition.h.
23662 (iterate_child_devices): New function.
23663 (add_device): First, compare only last device path nodes, so that
23664 devices are sorted by the types.
23665 (grub_efidisk_get_device_handle): New function.
23666 (grub_efidisk_get_device_name): Likewise.
23668 * configure.ac (--enable-mm-debug): New option to enable the
23669 memory manager debugging feature. This makes the binary much
23670 bigger, so is disabled by default.
23672 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23674 Use grub_abort instead of grub_stop, and grub_exit must be
23675 define in each architecture now. Also, this change adds support
23678 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23679 (grub_getkey): New function.
23680 (grub_term_get_current): Likewise.
23682 * util/i386/pc/grub-setup.c: Include grub/term.h.
23683 (grub_getkey): New function.
23684 (grub_term_get_current): Likewise.
23686 * util/misc.c (grub_stop): Renamed to ...
23687 (grub_exit): ... this.
23689 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23690 (grub_exit): ... this.
23691 (grub_machine_init): Use grub_abort instead of abort.
23692 (grub_stop): Removed.
23694 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23697 * kern/i386/pc/startup.S (grub_exit): New function.
23698 (cold_reboot): New label.
23700 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23701 (grub_efi_init): Call grub_efidisk_init.
23702 (grub_efi_fini): Call grub_efidisk_fini.
23704 * kern/efi/efi.c: Include grub/mm.h.
23705 (grub_efi_console_control_guid): Renamed to ...
23706 (console_control_guid): ... this.
23707 (grub_efi_loaded_image_guid): Renamed to ...
23708 (loaded_image_guid): ... this.
23709 (grub_efi_locate_handle): New function.
23710 (grub_efi_open_protocol): Likewise.
23711 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23712 GRUB_EFI_CONSOLE_CONTROL_GUID.
23713 (grub_efi_exit): Removed.
23714 (grub_stop): Likewise.
23715 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23716 (grub_exit): New function.
23717 (grub_print_device_path): Likewise.
23719 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23720 (grub_enter_rescue_mode): Register "exit".
23722 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23723 (grub_abort): New function.
23725 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23727 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23729 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23731 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23732 (grub_print_device_path): New prototype.
23733 (grub_efi_locate_handle): Likewise.
23734 (grub_efi_open_protocol): Likewise.
23736 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23737 * disk/efi/efidisk.c: Likewise.
23739 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23741 * include/grub/efi/console_control.h
23742 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23744 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23745 last 8 bytes as an array.
23746 (GRUB_EFI_DISK_IO_GUID): New macro.
23747 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23748 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23749 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23751 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23752 (struct grub_efi_device_path): Rename the member "sub_type" to
23754 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23755 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23756 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23757 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23758 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23759 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23760 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23761 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23762 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23763 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23764 (struct grub_efi_pci_device_path): New structure.
23765 (grub_efi_pci_device_path_t): New type.
23766 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23767 (struct grub_efi_pccard_device_path): New structure.
23768 (grub_efi_pccard_device_path_t): New type.
23769 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23770 (struct grub_efi_memory_mapped_device_path): New structure.
23771 (grub_efi_memory_mapped_device_path_t): New type.
23772 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23773 (struct grub_efi_vendor_device_path): New structure.
23774 (grub_efi_vendor_device_path_t): New type.
23775 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23776 (struct grub_efi_controller_device_path): New structure.
23777 (grub_efi_controller_device_path_t): New type.
23778 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23779 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23780 (struct grub_efi_acpi_device_path): New structure.
23781 (grub_efi_acpi_device_path_t): New type.
23782 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23783 (struct grub_efi_expanded_acpi_device_path): New structure.
23784 (grub_efi_expanded_acpi_device_path_t): New type.
23785 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23786 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23787 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23788 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23789 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23790 (struct grub_efi_atapi_device_path): New structure.
23791 (grub_efi_atapi_device_path_t): New type.
23792 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23793 (struct grub_efi_fibre_channel_device_path): New structure.
23794 (grub_efi_fibre_channel_device_path_t): New type.
23795 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23796 (struct grub_efi_1394_device_path): New structure.
23797 (grub_efi_1394_device_path_t): New type.
23798 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23799 (struct grub_efi_usb_device_path): New structure.
23800 (grub_efi_usb_device_path_t): New type.
23801 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23802 (struct grub_efi_usb_class_device_path): New structure.
23803 (grub_efi_usb_class_device_path_t): New type.
23804 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23805 (struct grub_efi_i2o_device_path): New structure.
23806 (grub_efi_i2o_device_path_t): New type.
23807 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23808 (struct grub_efi_mac_address_device_path): New structure.
23809 (grub_efi_mac_address_device_path_t): New type.
23810 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23811 (struct grub_efi_ipv4_device_path): New structure.
23812 (grub_efi_ipv4_device_path_t): New type.
23813 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23814 (struct grub_efi_ipv6_device_path): New structure.
23815 (grub_efi_ipv6_device_path_t): New type.
23816 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23817 (struct grub_efi_infiniband_device_path): New structure.
23818 (grub_efi_infiniband_device_path_t): New type.
23819 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23820 (struct grub_efi_uart_device_path): New structure.
23821 (grub_efi_uart_device_path_t): New type.
23822 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23823 (struct grub_efi_vendor_messaging_device_path): New structure.
23824 (grub_efi_vendor_messaging_device_path_t): New type.
23825 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23826 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23827 (struct grub_efi_hard_drive_device_path): New structure.
23828 (grub_efi_hard_drive_device_path_t): New type.
23829 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23830 (struct grub_efi_cdrom_device_path): New structure.
23831 (grub_efi_cdrom_device_path_t): New type.
23832 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23833 (struct grub_efi_vendor_media_device_path): New structure.
23834 (grub_efi_vendor_media_device_path_t): New type.
23835 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23836 (struct grub_efi_file_path_device_path): New structure.
23837 (grub_efi_file_path_device_path_t): New type.
23838 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23839 (struct grub_efi_protocol_device_path): New structure.
23840 (grub_efi_protocol_device_path_t): New type.
23841 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23842 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23843 (struct grub_efi_bios_device_path): New structure.
23844 (grub_efi_bios_device_path_t): New type.
23845 (struct grub_efi_disk_io): New structure.
23846 (grub_efi_disk_io_t): New type.
23847 (struct grub_efi_block_io_media): New structure.
23848 (grub_efi_block_io_media_t): New type.
23849 (struct grub_efi_block_io): New structure.
23850 (grub_efi_block_io_t): New type.
23852 * include/grub/misc.h (grub_stop): Removed.
23853 (grub_exit): New prototype.
23854 (grub_abort): Likewise.
23856 * include/grub/disk.h (enum grub_disk_dev_id): Added
23857 GRUB_DISK_DEVICE_EFIDISK_ID.
23859 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23860 disk/efi/efidisk.c.
23861 (kernel_syms.lst): Remove the target if an error occurs.
23863 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23865 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23866 as it was simply too buggy.
23868 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23870 * kern/misc.c (grub_lltoa): New function.
23871 (grub_vsprintf): Added support for the long long suffix,
23874 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23876 * Makefile.in (LDFLAGS): Add variable.
23877 (LD): Remove variable.
23878 * configure.ac: Add -m32 to LDFLAGS.
23879 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23880 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23881 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23882 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23883 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23885 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23886 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23887 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23889 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23891 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23892 length for unknown glyph.
23894 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23896 Add support for pre-loaded modules into the EFI port.
23898 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23899 completely. Accept one more argument DIR. The caller has changed.
23901 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23903 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23904 (grub_efi_loaded_image_guid): New variable.
23905 (grub_efi_get_loaded_image): New function.
23906 (grub_arch_modules_addr): Likewise.
23908 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23911 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23912 (struct grub_efi_loaded_image): New structure.
23913 (grub_efi_loaded_image_t): New type.
23915 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23917 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23918 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23919 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23921 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23923 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23925 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23927 * DISTLIST: Added include/grub/efi/console.h,
23928 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23929 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23931 * include/grub/efi/console.h: New file.
23932 * include/grub/efi/time.h: Likewise.
23933 * include/grub/i386/efi/kernel.h: Likewise.
23934 * kern/efi/init.c: Likewise.
23935 * kern/efi/mm.c: Likewise.
23936 * term/efi/console.c: Likewise.
23938 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23939 (grub_stop): Removed.
23940 (grub_get_rtc): Likewise.
23941 (grub_machine_init): Simply call grub_efi_init.
23942 (grub_machine_fini): Call grub_efi_fini.
23944 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23945 (grub_efi_output_string): Removed.
23946 (grub_efi_stall): New function.
23947 (grub_stop): Likewise.
23948 (grub_get_rtc): Likewise.
23950 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23951 (grub_efi_stall): New prototype.
23952 (grub_efi_allocate_pages): Likewise.
23953 (grub_efi_free_pages): Likewise.
23954 (grub_efi_get_memory_map): Likewise.
23955 (grub_efi_mm_init): Likewise.
23956 (grub_efi_mm_fini): Likewise.
23957 (grub_efi_init): Likewise.
23958 (grub_efi_fini): Likewise.
23960 * include/grub/i386/efi/time.h: Do not include
23961 grub/symbol.h. Include grub/efi/time.h.
23962 (GRUB_TICKS_PER_SECOND): Removed.
23963 (grub_get_rtc): Likewise.
23965 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23966 Added padding. The EFI spec is buggy.
23967 (GRUB_EFI_BLACK): New macro.
23968 (GRUB_EFI_BLUE): Likewise.
23969 (GRUB_EFI_GREEN): Likewise.
23970 (GRUB_EFI_CYAN): Likewise.
23971 (GRUB_EFI_RED): Likewise.
23972 (GRUB_EFI_MAGENTA): Likewise.
23973 (GRUB_EFI_BROWN): Likewise.
23974 (GRUB_EFI_LIGHTGRAY): Likewise.
23975 (GRUB_EFI_BRIGHT): Likewise.
23976 (GRUB_EFI_DARKGRAY): Likewise.
23977 (GRUB_EFI_LIGHTBLUE): Likewise.
23978 (GRUB_EFI_LIGHTGREEN): Likewise.
23979 (GRUB_EFI_LIGHTCYAN): Likewise.
23980 (GRUB_EFI_LIGHTRED): Likewise.
23981 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23982 (GRUB_EFI_YELLOW): Likewise.
23983 (GRUB_EFI_WHITE): Likewise.
23984 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23985 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23986 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23987 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23988 (GRUB_EFI_BACKGROUND_RED): Likewise.
23989 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23990 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23991 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23992 (GRUB_EFI_TEXT_ATTR): Likewise.
23994 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23995 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23996 (kernel_mod_HEADERS): Added efi/time.h.
23998 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
24000 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
24001 include/grub/efi/api.h, include/grub/efi/console_control.h,
24002 include/grub/efi/efi.h, include/grub/efi/pe32.h,
24003 include/grub/i386/efi/time.h, kern/efi/efi.c,
24004 kern/i386/efi/init.c, kern/i386/efi/startup.S,
24005 and util/i386/efi/grub-mkimage.c.
24007 * Makefile.in (RMKFILES): Added i386-efi.rmk.
24009 * genmk.rb (PModule#rule): Do not export symbols if
24010 #{prefix}_EXPORTS is set to "no".
24012 * conf/i386-efi.mk: New file.
24013 * conf/i386-efi.rmk: Likewise.
24014 * include/grub/efi/api.h: Likewise.
24015 * include/grub/efi/console_control.h: Likewise.
24016 * include/grub/efi/efi.h: Likewise.
24017 * include/grub/efi/pe32.h: Likewise.
24018 * include/grub/i386/efi/time.h: Likewise.
24019 * kern/efi/efi.c: Likewise.
24020 * kern/i386/efi/init.c: Likewise.
24021 * kern/i386/efi/startup.S: Likewise.
24022 * util/i386/efi/grub-mkimage.c: Likewise.
24024 2006-04-17 Marco Gerards <marco@gnu.org>
24026 * include/grub/script.h: Include <grub/parser.h> and
24027 "grub_script.tab.h".
24028 (struct grub_lexer_param): New struct.
24029 (struct grub_parser_param): Likewise.
24030 (grub_script_create_arglist): Pass the state in an argument.
24031 (grub_script_add_arglist): Likewise.
24032 (grub_script_create_cmdline): Likewise.
24033 (grub_script_create_cmdblock): Likewise.
24034 (grub_script_create_cmdif): Likewise.
24035 (grub_script_create_cmdmenu): Likewise.
24036 (grub_script_add_cmd): Likewise.
24037 (grub_script_arg_add): Likewise.
24038 (grub_script_lexer_ref): Likewise.
24039 (grub_script_lexer_deref): Likewise.
24040 (grub_script_lexer_record_start): Likewise.
24041 (grub_script_lexer_record_stop): Likewise.
24042 (grub_script_mem_record): Likewise.
24043 (grub_script_mem_record_stop): Likewise.
24044 (grub_script_malloc): Likewise.
24045 (grub_script_yylex): Likewise.
24046 (grub_script_yyparse): Likewise.
24047 (grub_script_yyerror): Likewise.
24048 (grub_script_yylex): Likewise.
24049 (grub_script_lexer_init): Return the state.
24051 * normal/lexer.c (grub_script_lexer_state): Removed variable.
24052 (grub_script_lexer_done): Likewise.
24053 (grub_script_lexer_getline): Likewise.
24054 (grub_script_lexer_refs): Likewise.
24055 (script): Likewise.
24056 (newscript): Likewise.
24057 (record): Likewise.
24058 (recording): Likewise.
24059 (recordpos): Likewise.
24060 (recordlen): Likewise.
24061 (grub_script_lexer_init): Return the state instead of setting
24063 (grub_script_lexer_ref): Use the newly added argument for state
24064 instead of globals.
24065 (grub_script_lexer_deref): Likewise.
24066 (grub_script_lexer_record_start): Likewise.
24067 (grub_script_lexer_record_stop): Likewise.
24068 (recordchar): Likewise.
24069 (nextchar): Likewise.
24070 (grub_script_yylex2): Likewise.
24071 (grub_script_yylex): Likewise.
24072 (grub_script_yyerror): Likewise.
24074 * normal/parser.y (func_mem): Removed variable.
24075 (menu_entry): Likewise.
24077 (%lex-param): New parser option.
24078 (%parse-param): Likewise.
24079 (script): Always return the AST.
24080 (argument): Pass the state around.
24081 (arguments): Likewise.
24082 (grubcmd): Likewise.
24083 (commands): Likewise.
24084 (function): Likewise.
24085 (menuentry): Likewise.
24086 (if_statement): Likewise.
24089 * normal/script.c (grub_script_memused): Removed variable.
24090 (grub_script_parsed): Likewise.
24091 (grub_script_malloc): Added a state argument. Use that instead of
24093 (grub_script_mem_record): Likewise.
24094 (grub_script_mem_record_stop): Likewise.
24095 (grub_script_arg_add): Likewise.
24096 (grub_script_add_arglist): Likewise.
24097 (grub_script_create_cmdline): Likewise.
24098 (grub_script_create_cmdif): Likewise.
24099 (grub_script_create_cmdmenu): Likewise.
24100 (grub_script_add_cmd): Likewise.
24101 (grub_script_parse): Setup the state before calling the parser.
24103 2006-04-16 Marco Gerards <marco@gnu.org>
24105 * normal/command.c (grub_command_init): Remove the title command.
24107 * normal/lexer.c (grub_script_yylex): Renamed from this...
24108 (grub_script_yylex2): ... to this.
24109 (grub_script_yylex): New function. Temporary
24110 introduced to filter some tokens.
24111 (grub_script_yyerror): Print a newline.
24113 * normal/main.c (read_config_file): Output information about the
24114 lines that contain errors. Wait for a key after all lines have
24115 been processed. Don't return an empty menu.
24117 * normal/parser.y (func_mem): Don't initialize.
24118 (menu_entry): Likewise.
24119 (err): New variable.
24120 (script): Don't return anything when an error was encountered.
24121 (ws, returns): Removed rules.
24122 (argument): Disabled concatenated variable support.
24123 (arguments): Remove explicit separators.
24124 (grubcmd): Likewise.
24125 (function): Likewise.
24126 (menuentry): Likewise.
24128 (commands): Likewise. Add error handling.
24130 * normal/script.c (grub_script_create_cmdline): If
24131 `grub_script_parsed' is 0, assume the parser encountered an error.
24133 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
24135 * configure.ac: Add support for EFI. Fix the typo
24136 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
24138 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24140 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
24141 foreign multibyte characters should be shown correctly.
24143 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24145 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
24147 (read_config_file): Made it to close file before returning.
24149 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
24151 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
24152 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
24153 video/i386/pc/vbefill.c.
24155 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
24156 video/i386/pc/vbefill.c.
24158 * include/grub/video.h (grub_video_blit_format): New enum.
24159 (grub_video_mode_info): Added new member blit_format.
24160 (grub_video_get_blit_format): New function prototype.
24162 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
24163 function prototype.
24164 (grub_video_vbe_map_rgb): Likewise.
24165 (grub_video_vbe_unmap_color): Likewise.
24167 * include/grub/i386/pc/vbeblit.h: New file.
24169 * include/grub/i386/pc/vbefill.h: New file.
24171 * video/video.c (grub_video_get_blit_format): New function.
24172 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
24173 (grub_video_vbe_map_rgb): Likewise.
24174 (grub_video_vbe_unmap_color): Likewise.
24176 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
24178 (grub_video_vbe_blit_render_target): Changed to use more optimized
24180 (grub_video_vbe_setup): Added detection for optimized settings.
24181 (grub_video_vbe_create_render_target): Likewise.
24183 * video/i386/pc/vbeblit.c: New file.
24185 * video/i386/pc/vbefill.c: New file.
24187 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
24189 * font/manager.c (grub_font_get_glyph): Removed font fixup from
24192 * util/unifont2pff.rb: ... and moved it to here. Improved argument
24193 parsing to support both hex and dec ranges. If filename was missing
24194 show usage information.
24196 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
24198 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
24199 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
24201 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
24202 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
24203 (video_mod_SOURCES): Added.
24204 (video_mod_CFLAGS): Likewise.
24205 (video_mod_LDFLAGS): Likewise.
24206 (gfxterm_mod_SOURCES): Likewise.
24207 (gfxterm_mod_CFLAGS): Likewise.
24208 (gfxterm_mod_LDFLAGS): Likewise.
24209 (videotest_mod_SOURCES): Likewise.
24210 (videotest_mod_CFLAGS): Likewise.
24211 (videotest_mod_LDFLAGS): Likewise.
24212 (vesafb_mod_SOURCES): Removed.
24213 (vesafb_mod_CFLAGS): Likewise.
24214 (vesafb_mod_LDFLAGS): Likewise.
24215 (vga_mod_SOURCES): Likewise.
24216 (vga_mod_CFLAGS): Likewise.
24217 (vga_mod_LDFLAGS): Likewise.
24219 * commands/videotest.c: New file.
24221 * font/manager.c (fill_with_default_glyph): Modified to use
24223 (grub_font_get_glyph): Likewise.
24224 (fontmanager): Renamed from this...
24225 (font_manager): ... to this.
24227 * include/grub/font.h (grub_font_glyph): Added new structure.
24228 (grub_font_get_glyph): Modified to use grub_font_glyph.
24230 * include/grub/misc.h (grub_abs): Added as inline function.
24232 * include/grub/video.h: New file.
24234 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
24235 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
24236 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
24237 (grub_vbe_get_controller_info): Renamed from this...
24238 (grub_vbe_bios_get_controller_info): ... to this.
24239 (grub_vbe_get_mode_info): Renamed from this...
24240 (grub_vbe_bios_get_mode_info): ... to this.
24241 (grub_vbe_set_mode): Renamed from this...
24242 (grub_vbe_bios_set_mode): ... to this.
24243 (grub_vbe_get_mode): Renamed from this...
24244 (grub_vbe_bios_get_mode): ... to this.
24245 (grub_vbe_set_memory_window): Renamed from this...
24246 (grub_vbe_bios_set_memory_window): ... to this.
24247 (grub_vbe_get_memory_window): Renamed from this...
24248 (grub_vbe_bios_get_memory_window): ... to this.
24249 (grub_vbe_set_scanline_length): Renamed from this...
24250 (grub_vbe_set_scanline_length): ... to this.
24251 (grub_vbe_get_scanline_length): Renamed from this...
24252 (grub_vbe_bios_get_scanline_length): ... to this.
24253 (grub_vbe_set_display_start): Renamed from this...
24254 (grub_vbe_bios_set_display_start): ... to this.
24255 (grub_vbe_get_display_start): Renamed from this...
24256 (grub_vbe_bios_get_display_start): ... to this.
24257 (grub_vbe_set_palette_data): Renamed from this...
24258 (grub_vbe_bios_set_palette_data): ... to this.
24259 (grub_vbe_set_pixel_rgb): Removed.
24260 (grub_vbe_set_pixel_index): Likewise.
24262 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
24264 (grub_vbe_bios_get_controller_info): ... to this.
24265 (grub_vbe_get_mode_info): Renamed from this...
24266 (grub_vbe_bios_get_mode_info): ... to this.
24267 (grub_vbe_set_mode): Renamed from this...
24268 (grub_vbe_bios_set_mode): ... to this.
24269 (grub_vbe_get_mode): Renamed from this...
24270 (grub_vbe_bios_get_mode): ... to this.
24271 (grub_vbe_set_memory_window): Renamed from this...
24272 (grub_vbe_bios_set_memory_window): ... to this.
24273 (grub_vbe_get_memory_window): Renamed from this...
24274 (grub_vbe_bios_get_memory_window): ... to this.
24275 (grub_vbe_set_scanline_length): Renamed from this...
24276 (grub_vbe_set_scanline_length): ... to this.
24277 (grub_vbe_get_scanline_length): Renamed from this...
24278 (grub_vbe_bios_get_scanline_length): ... to this.
24279 (grub_vbe_set_display_start): Renamed from this...
24280 (grub_vbe_bios_set_display_start): ... to this.
24281 (grub_vbe_get_display_start): Renamed from this...
24282 (grub_vbe_bios_get_display_start): ... to this.
24283 (grub_vbe_set_palette_data): Renamed from this...
24284 (grub_vbe_bios_set_palette_data): ... to this.
24285 (grub_vbe_bios_get_controller_info): Fixed problem with registers
24286 getting corrupted after calling it. Added more pushes and pops.
24287 (grub_vbe_bios_set_mode): Likewise.
24288 (grub_vbe_bios_get_mode): Likewise.
24289 (grub_vbe_bios_get_memory_window): Likewise.
24290 (grub_vbe_bios_set_scanline_length): Likewise.
24291 (grub_vbe_bios_get_scanline_length): Likewise.
24292 (grub_vbe_bios_get_display_start): Likewise.
24293 (grub_vbe_bios_set_palette_data): Likewise.
24295 * normal/cmdline.c (cl_set_pos): Refresh the screen.
24296 (cl_insert): Likewise.
24297 (cl_delete): Likewise.
24299 * term/gfxterm.c: New file.
24301 * term/i386/pc/vesafb.c: Removed file.
24303 * video/video.c: New file.
24305 * video/i386/pc/vbe.c (real2pm): Added new function.
24306 (grub_video_vbe_draw_pixel): Likewise.
24307 (grub_video_vbe_get_video_ptr): Likewise.
24308 (grub_video_vbe_get_pixel): Likewise
24309 (grub_video_vbe_init): Likewise.
24310 (grub_video_vbe_fini): Likewise.
24311 (grub_video_vbe_setup): Likewise.
24312 (grub_video_vbe_get_info): Likewise.
24313 (grub_video_vbe_set_palette): Likewise.
24314 (grub_video_vbe_get_palette): Likewise.
24315 (grub_video_vbe_set_viewport): Likewise.
24316 (grub_video_vbe_get_viewport): Likewise.
24317 (grub_video_vbe_map_color): Likewise.
24318 (grub_video_vbe_map_rgb): Likewise.
24319 (grub_video_vbe_map_rgba): Likewise.
24320 (grub_video_vbe_unmap_color): Likewise.
24321 (grub_video_vbe_fill_rect): Likewise.
24322 (grub_video_vbe_blit_glyph): Likewise.
24323 (grub_video_vbe_blit_bitmap): Likewise.
24324 (grub_video_vbe_blit_render_target): Likewise.
24325 (grub_video_vbe_scroll): Likewise.
24326 (grub_video_vbe_swap_buffers): Likewise.
24327 (grub_video_vbe_create_render_target): Likewise.
24328 (grub_video_vbe_delete_render_target): Likewise.
24329 (grub_video_vbe_set_active_render_target): Likewise.
24330 (grub_vbe_set_pixel_rgb): Remove function.
24331 (grub_vbe_set_pixel_index): Likewise.
24332 (index_color_mode): Remove static variable.
24333 (active_mode): Likewise.
24334 (framebuffer): Likewise.
24335 (bytes_per_scan_line): Likewise.
24336 (grub_video_vbe_adapter): Added new static variable.
24337 (framebuffer): Likewise.
24338 (render_target): Likewise.
24339 (initial_mode): Likewise.
24340 (mode_in_use): Likewise.
24341 (mode_list): Likewise.
24343 2006-03-10 Marco Gerards <marco@gnu.org>
24345 * configure.ac (AC_INIT): Bumped to 1.93.
24347 * DISTLIST: Added `include/grub/hfs.h'.
24349 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
24351 * boot/i386/pc/boot.S (general_error): Before looping, try INT
24352 18H, which might help the BIOS falling back to next boot media.
24354 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
24356 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
24357 Poe Chen <poe.poechen@gmail.com>.
24359 2006-01-17 Marco Gerards <marco@gnu.org>
24361 * include/grub/normal.h: Include <grub/script.h>.
24362 (grub_command_list): Removed struct.
24363 (grub_command_list_t): Removed type.
24364 (grub_menu_entry): Remove members `num' and `command_list'. Add
24365 members `commands' and `sourcecode'.
24366 * include/grub/script.h: Add inclusion guards.
24367 (grub_script_cmd_menuentry): New struct.
24368 (grub_script_execute_menuentry): New prototype.
24369 (grub_script_lexer_record_start): Likewise.
24370 (grub_script_lexer_record_stop): Likewise.
24371 * normal/execute.c (grub_script_execute_menuentry): New function.
24372 * normal/lexer.c (record, recording, recordpos, recordlen): New
24374 (grub_script_lexer_record_start): New function.
24375 (grub_script_lexer_record_stop): Likewise.
24376 (recordchar): Likewise.
24377 (nextchar): Likewise.
24378 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
24379 2048 as the buffer size. Add the tokens `menuentry' and `@'.
24380 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
24381 (current_menu): New variable.
24382 (free_menu): Mainly rewritten.
24383 (grub_normal_menu_addentry): New function.
24384 (read_config_file): Rewritten.
24385 * normal/menu.c (run_menu_entry): Mainly rewritten.
24386 * normal/menu_entry.c (make_screen): Rewritten the code to insert
24388 (run): Mainly rewritten.
24389 * normal/parser.y (menu_entry): New variable.
24390 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
24391 (menuentry): New rule.
24392 (command): Add `menuentry'.
24393 (if_statement): Allow additional returns before `fi'.
24394 * normal/script.c (grub_script_create_cmdmenu): New function.
24396 2006-01-03 Marco Gerards <marco@gnu.org>
24398 * INSTALL: GNU Bison is required.
24399 * configure.ac: Rewritten the test to detect Bison.
24400 * Makefile.in (YACC): New variable. Reported by Xun Sun
24401 <xun.sun.cn@gmail.com>.
24403 2006-01-03 Marco Gerards <marco@gnu.org>
24405 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
24406 the HFS+ filesystem to filesystem blocks.
24407 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
24408 GCC warning is silenced.
24410 2006-01-03 Marco Gerards <marco@gnu.org>
24412 * partmap/apple.c (apple_partition_map_iterate): Convert the data
24413 read from disk from big endian to host byte order.
24415 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
24417 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
24419 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
24420 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
24421 embedded HFS+ filesystem.
24422 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
24423 (grub_hfs_sblock): Move from here...
24424 * include/grub/hfs.h: To here... New file.
24425 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
24427 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
24429 (grub_hfsplus_volheader): Change type of member `magic' to
24431 (grub_hfsplus_data): Add new member `embedded_offset'.
24432 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
24434 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
24435 Calculate the offset.
24437 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24439 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
24441 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
24443 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24445 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
24446 ENV->NAME is NULL after allocating ENV->VALUE.
24448 2005-12-25 Marco Gerards <marco@gnu.org>
24450 * kern/env.c (grub_env_set): Rewritten the error handling code.
24452 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24454 * geninit.sh: Made more robust, and more portable.
24456 2005-12-25 Marco Gerards <marco@gnu.org>
24458 Add support for Apple HFS+ filesystems.
24460 * fs/hfsplus.c: New file.
24462 * DISTLIST: Added `fs/hfsplus.c'.
24464 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
24465 (hfsplus_mod_SOURCES): New variable.
24466 (hfsplus_mod_CFLAGS): Likewise.
24467 (hfsplus_mod_LDFLAGS): Likewise.
24468 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
24469 (grub_setup_SOURCES): Likewise.
24470 (grub_mkdevicemap_SOURCES): Likewise.
24471 (grub_emu_SOURCES): Likewise.
24472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24474 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
24476 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
24478 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24480 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
24481 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
24482 include/grub/parser.h, include/grub/script.h, kern/parser.c,
24483 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
24484 normal/lexer.c, normal/parser.y, normal/script.c, and
24486 Removed kern/sparc64/cache.c.
24488 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
24489 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
24492 * configure.ac (AC_INIT): Bumped to 1.92.
24494 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24496 * kern/err.c (grub_error_push): Added new function to support error
24498 (grub_error_pop): Likewise.
24499 (grub_error_stack_items): New local variable to support error stacks.
24500 (grub_error_stack_pos): Likewise.
24501 (grub_error_stack_assert): Likewise.
24502 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24504 (grub_print_error): Added support to print errors from error stack.
24506 * include/grub/err.h (grub_error_push): Added function prototype.
24507 (grub_error_pop): Likewise.
24509 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24511 * configure.ac: Accept `powerpc64' as host_cpu.
24512 (amd64): Rename to `biarch32'.
24514 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24515 non-cacheline-aligned addresses.
24517 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24518 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24519 if `size' is non-zero.
24521 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
24523 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24524 and `cd' to make sure the filename is not prefixed with a
24526 (pkgdata_MODULES): Add `gpt.mod'.
24527 (gpt_mod_SOURCES): New variable.
24528 (gpt_mod_CFLAGS): Likewise.
24529 (gpt_mod_LDFLAGS): Likewise.
24531 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24533 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24536 * partmap/gpt.c: New file.
24538 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24539 GPT partition map is detected.
24541 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24543 * commands/i386/pc/play.c: New file.
24544 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24545 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24548 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
24550 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24551 ((unused))' to silence gcc warning.
24553 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24555 * configure.ac: Correct `AC_PROG_YACC' test.
24557 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24559 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24560 check before installing files.
24562 2005-11-22 Mike Small <smallm@panix.com>
24564 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24565 number regex so multidigit numbers are recognized correctly.
24567 2005-11-22 Mike Small <smallm@panix.com>
24569 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24570 debugging message before attempting to claim memory.
24571 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24572 multiple addresses in case of failure.
24574 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24576 * term/tparm.c (get_space): Remove empty `if' statement.
24578 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24580 * kern/parser.c (check_varstate): Rename `state' to 's'.
24582 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24584 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24585 variable definitions to the beginning of each function. Sort stack
24587 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24588 `buf' argument to `char *'.
24590 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24592 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24593 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24594 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24595 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24596 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24597 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24598 configfile.mod, search.mod, gzio.mod and test.mod.
24599 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24600 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24601 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24602 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24603 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24604 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24605 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24606 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24607 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24608 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24609 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24610 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24611 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24612 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24613 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24614 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24615 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24616 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24617 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24618 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24619 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24620 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24621 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24623 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24625 (pkgdata_MODULES): Add test.mod.
24627 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24629 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24630 appending to variables with "+=".
24631 (PModule): Use full pathname to generate *.lst filenames.
24633 * Makefile.in: Fixed list rules moved from genmk.rb.
24634 (.DELETE_ON_ERROR): New special target.
24635 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24637 * conf/i386-pc.rmk: Include conf/common.mk.
24638 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24639 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24640 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24641 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24642 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24643 configfile.mod, search.mod, gzio.mod and test.mod.
24644 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24645 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24646 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24647 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24648 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24649 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24650 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24651 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24652 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24653 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24654 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24655 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24656 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24657 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24658 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24659 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24660 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24661 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24662 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24663 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24664 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24665 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24666 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24668 * conf/common.rmk: ... to here. New file.
24670 * conf/common.mk: New file.
24672 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24674 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24675 (grub_script.tab.c): ... here.
24677 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24678 (grub_script.tab.c): ... here.
24680 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24681 (grub_script.tab.c): ... here.
24683 * normal/command.c (grub_command_find): Fixed a memory leak of
24684 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24686 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24688 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24689 "@" which marks the start of a comment on ARM.
24690 (VARIABLE): Likewise.
24692 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24694 Add support for Linux/ADFS partition tables.
24696 * partmap/acorn.c: New file.
24698 * include/grub/acorn_filecore.h: Likewise.
24700 * DISTLIST: Added `partmap/acorn.c' and
24701 `include/grub/acorn_filecore.h'.
24703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24705 (pkgdata_MODULES): Add `acorn.mod'.
24706 (acorn_mod_SOURCES): New variable.
24707 (acorn_mod_CFLAGS): Likewise.
24709 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24711 (pkgdata_MODULES): Add `acorn.mod'.
24712 (acorn_mod_SOURCES): New variable.
24713 (acorn_mod_CFLAGS): Likewise.
24715 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24716 (pkgdata_MODULES): Add `acorn.mod'.
24717 (acorn_mod_SOURCES): New variable.
24718 (acorn_mod_CFLAGS): Likewise.
24719 (acorn_mod_LDFLAGS): Likewise.
24721 * include/types.h (grub_disk_addr_t): New typedef.
24723 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24725 * geninit.sh: New file.
24727 * geninitheader.sh: Likewise.
24729 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24730 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24731 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24732 * commands/configfile.c (grub_configfile_init)
24733 (grub_configfile_fini): Likewise.
24734 * commands/default.c (grub_default_init, grub_default_fini):
24736 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24737 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24738 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24739 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24741 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24742 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24744 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24745 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24747 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24749 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24751 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24752 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24753 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24754 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24755 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24756 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24757 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24758 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24759 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24760 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24761 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24762 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24763 * partmap/amiga.c (grub_amiga_partition_map_init)
24764 (grub_amiga_partition_map_fini): Likewise.
24765 * partmap/apple.c (grub_apple_partition_map_init)
24766 (grub_apple_partition_map_fini): Likewise.
24767 * partmap/pc.c (grub_pc_partition_map_init)
24768 (grub_pc_partition_map_fini): Likewise.
24769 * partmap/sun.c (grub_sun_partition_map_init,
24770 grub_sun_partition_map_fini): Likewise.
24771 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24774 * util/grub-emu.c: Include <grub_modules_init.h>.
24775 (main): Don't initialize and de-initialize any modules directly,
24776 use `grub_init_all' and `grub_fini_all' instead.
24778 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24779 `grub_vesafb_mod_init'.
24780 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24782 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24783 `grub_vga_mod_init'. Updated all users.
24784 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24786 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24787 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24790 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24791 Generate a function to initialize the module in utilities.
24792 Updated all callers.
24793 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24794 initialize the module in utilities. Updated all callers.
24796 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24798 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24799 escape sequence and a literal ^L to clear the screen.
24801 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24802 when returning from Open Firmware.
24804 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24806 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24807 (grub_ofconsole_height): Likewise.
24808 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24809 manually insert a '\n'.
24810 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24811 `grub_ofconsole_height'. Return early if these are already set.
24813 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24815 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24816 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24817 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24818 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24819 and `normal/script.c'.
24820 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24821 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24822 (test_mod_SOURCES): New variable.
24823 (test_mod_CFLAGS): Likewise.
24824 (test_mod_LDFLAGS): Likewise.
24825 (pkgdata_MODULES): Add `test.mod'.
24826 (grub_script.tab.c): New rule.
24827 (grub_script.tab.h): Likewise.
24829 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24832 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24833 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24834 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24835 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24836 (test_mod_SOURCES): New variable.
24837 (test_mod_CFLAGS): Likewise.
24838 (pkgdata_MODULES): Add `test.mod'.
24839 (grub_script.tab.c): New rule.
24840 (grub_script.tab.h): Likewise.
24842 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24844 Add initial scripting support.
24846 * commands/test.c: New file.
24847 * include/grub/script.h: Likewise.
24848 * normal/execute.c: Likewise.
24849 * normal/function.c: Likewise.
24850 * normal/lexer.c: Likewise.
24851 * normal/parser.y: Likewise.
24852 * normal/script.c: Likewise.
24854 * configure.ac: Add `AC_PROG_YACC' test.
24856 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24857 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24858 `normal/function.c' and `normal/script.c'.
24859 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24860 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24861 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24863 (pkgdata_MODULES): Add `test.mod'.
24864 (grub_script.tab.c): New rule.
24865 (grub_script.tab.h): Likewise.
24867 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24869 * include/grub/normal.h (grub_test_init): New prototype.
24870 (grub_test_fini): Likewise.
24872 * normal/command.c: Include <grub/script.h>.
24873 (grub_command_execute): Rewritten.
24875 * util/grub-emu.c (main): Call `grub_test_init' and
24878 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24880 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24882 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24883 there are no pending characters.
24885 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24887 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24888 `grub_strndup' to drop device arguments. Replace unnecessary
24889 `grub_strndup' with `grub_strdup'.
24891 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24893 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24894 `debug' environment variable has been set.
24896 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24898 * Makefile.in (install-local): Use $(DATA).
24899 (uninstall): Likewise.
24900 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24901 (sbin_UTILITIES): ... to here.
24902 (sbin_SCRIPTS): New variable.
24903 (grub_install_SOURCES): New variable.
24904 * util/powerpc/ieee1275/grub-install.in: New file.
24905 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24907 (add_segments): Call `grub_util_get_path'.
24909 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24911 From Timothy Baldwin:
24912 * commands/ls.c (grub_ls_list_files): Close FILE with
24914 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24916 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24918 * include/grub/parser.h: New file.
24920 * kern/parser.c: Likewise.
24922 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24923 (grub_setup_SOURCES): Likewise.
24924 (grub_probefs_SOURCES): Likewise.
24925 (grub_emu_SOURCES): Likewise.
24926 (kernel_img_HEADERS): Add `parser.h'.
24928 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24929 (grub_emu_SOURCES): Add `kern/parser.c'.
24930 (grubof_SOURCES): Likewise.
24932 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24933 (grubof_SOURCES): Add `kern/parser.c'.
24935 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24937 * kern/misc.c (grub_split_cmdline): Removed function.
24939 * kern/rescue.c: Include <grub/parser.h>.
24940 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24941 of `grub_split_cmdline'.
24943 * normal/command.c: Include <grub/parser.h>.
24944 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24945 of `grub_split_cmdline'.
24947 * normal/completion.c: Include <grub/parser.h>.
24948 (cmdline_state): New variable.
24949 (iterate_dir): End the filename with a quote depending on the
24950 command line state.
24951 (get_state): new function.
24952 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24953 split the arguments and determine the current argument. When the
24954 argument string is not quoted, escape all spaces.
24956 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24958 * normal/sparc64/setjmp.S: New file.
24960 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24962 * include/grub/sparc64/libgcc.h: New file.
24963 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24964 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24965 normal/sparc64/setjmp.c.
24967 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24969 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24970 * kern/sparc64/cache.S: New file.
24971 * kern/sparc64/cache.c: Removed.
24972 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24973 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24975 (COMMON_LDFLAGS): Add -melf64_sparc.
24976 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24977 (grubof_SOURCES): Use cache.S instead of cache.c.
24978 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24979 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24980 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24982 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24983 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24984 (linux_mod_CFLAGS): Commented out.
24985 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24986 out because module isn't built.
24987 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24988 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24989 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24990 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24991 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24992 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24993 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24994 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24995 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24996 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24997 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24998 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24999 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
25000 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
25002 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
25004 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
25005 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
25006 longer, because HFS should not be used on PC.
25008 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25010 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
25011 consistently within the loop.
25013 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
25015 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
25016 directory can not be read.
25018 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25020 * configure.ac (AC_INIT): Increase the version number to 1.91.
25022 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
25023 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
25024 term/i386/pc/serial.c.
25026 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25028 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
25029 file size must be permitted.
25031 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
25032 between %ah and %al.
25034 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25036 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
25038 Call the hook with a NUL-terminated filename.
25039 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
25042 * kern/term.c (cursor_state): New variable.
25043 (grub_term_set_current): Reset the cursor state on a new
25045 (grub_setcursor): Rewritten to use CURSOR_STATE.
25046 (grub_getcursor): New function.
25048 * include/grub/term.h (grub_getcursor): New prototype.
25050 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
25051 integers on ARM. Reported by Timothy Baldwin
25052 <T.E.Baldwin99@members.leeds.ac.uk>.
25054 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
25056 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
25058 (grub_sfs_dir): Likewise.
25060 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
25062 Add support for the SFS filesystem.
25064 * fs/sfs.c: New file.
25066 * DISTLIST: Added `fs/sfs.c'.
25068 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
25069 (grub_probefs_SOURCES): Likewise.
25070 (grub_emu_SOURCES): Likewise.
25071 (pkgdata_MODULES): Add `sfs.mod'.
25072 (sfs_mod_SOURCES): New variable.
25073 (sfs_mod_CFLAGS): Likewise.
25074 (sfs_mod_LDFLAGS): Likewise.
25076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
25077 (pkgdata_MODULES): Add `sfs.mod'.
25078 (sfs_mod_SOURCES): New variable.
25079 (sfs_mod_CFLAGS): Likewise.
25081 * util/grub-emu.c (main): Call `grub_sfs_init' and
25084 * include/grub/fs.h (grub_sfs_init): New prototype.
25085 (grub_sfs_fini): Likewise.
25087 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
25089 Add support for the AFFS filesystem.
25091 * fs/affs.c: New file.
25093 * DISTLIST: Added `fs/affs.c'.
25095 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
25096 (grub_probefs_SOURCES): Likewise.
25097 (grub_emu_SOURCES): Likewise.
25098 (pkgdata_MODULES): Add `affs.mod'.
25099 (affs_mod_SOURCES): New variable.
25100 (affs_mod_CFLAGS): Likewise.
25101 (affs_mod_LDFLAGS): Likewise.
25103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
25104 (pkgdata_MODULES): Add `affs.mod'.
25105 (affs_mod_SOURCES): New variable.
25106 (affs_mod_CFLAGS): Likewise.
25108 * util/grub-emu.c (main): Call `grub_affs_init' and
25111 * include/grub/fs.h (grub_affs_init): New prototype.
25112 (grub_affs_fini): Likewise.
25114 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25116 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
25118 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25120 * configure.ac: Accept `x86_64' as host_cpu. In that case add
25123 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
25126 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
25127 (COMMON_LDFLAGS): New variable.
25128 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
25129 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
25130 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
25131 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
25132 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
25133 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
25134 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
25135 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
25136 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
25137 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
25138 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25139 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25140 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
25141 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
25142 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
25144 (normal_mod_ASFLAGS): Add `-m32'.
25146 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
25147 (grub_host_size_t, grub_host_ssize_t): New types.
25148 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
25149 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
25150 `GRUB_HOST_SIZEOF_VOID_P'.
25152 * include/grub/kernel.h (struct grub_module_header): Type of
25153 member offset changed to `grub_host_off_t'. Type of member size
25154 changed to `grub_host_size_t'.
25155 (struct grub_module_info): Type of member offset changed to
25156 `grub_host_off_t'. Type of member size changed to
25157 `grub_host_size_t'.
25159 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
25161 Make GRUB's kernel compliant to Multiboot Specification.
25163 * kern/i386/pc/startup.S (multiboot_header): New label.
25164 (multiboot_entry): Likewise.
25165 (multiboot_trampoline): Likewise.
25167 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25168 Increased to 0x4A0.
25170 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
25171 put parentheses after a question mark.
25172 [!GRUB_UTIL] (my_mod): New variable.
25174 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
25176 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
25178 Adds support for the XFS filesystem. Btrees are not supported
25181 * fs/xfs.c: New file.
25183 * DISTLIST: Added `fs/xfs.c'.
25185 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
25186 (grub_probefs_SOURCES): Likewise.
25187 (grub_emu_SOURCES): Likewise.
25188 (pkgdata_MODULES): Add `xfs.mod'.
25189 (xfs_mod_SOURCES): New variable.
25190 (xfs_mod_CFLAGS): Likewise.
25192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
25193 (pkgdata_MODULES): Add `xfs.mod'.
25194 (xfs_mod_SOURCES): New variable.
25195 (xfs_mod_CFLAGS): Likewise.
25197 * util/grub-emu.c (main): Call `grub_xfs_init' and
25200 * include/grub/fs.h (grub_xfs_init): New prototype.
25201 (grub_xfs_fini): Likewise.
25204 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
25206 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
25207 color modes, allow greater than 16 colors to be configured as
25210 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25212 * normal/completion.c (complete_arguments): Add the qualifier
25213 const into OPTIONS.
25215 From Omniflux <omniflux+lists@omniflux.com>:
25216 * include/grub/terminfo.h: New file.
25217 * include/grub/tparm.h: Likewise.
25218 * include/grub/i386/pc/serial.h: Likewise.
25219 * term/terminfo.c: Likewise.
25220 * term/tparm.c: Likewise.
25221 * term/i386/pc/serial.c: Likewise.
25222 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
25224 (terminfo_mod_SOURCES): New variable.
25225 (terminfo_mod_CFLAGS): Likewise.
25226 (serial_mod_SOURCES): Likewise.
25227 (serial_mod_CFLAGS): Likewise.
25229 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
25231 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
25232 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
25233 and kern/powerpc/ieee1275/cmain.c, respectively.
25235 * boot/powerpc/ieee1275/crt0.S: Moved to ...
25236 * kern/powerpc/ieee1275/crt0.S: ... here.
25238 * boot/powerpc/ieee1275/cmain.c: Moved to ...
25239 * kern/powerpc/ieee1275/cmain.c: ... here.
25241 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
25242 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
25243 instead of boot/powerpc/ieee1275/crt0.S and
25244 boot/powerpc/ieee1275/cmain.c, respectively.
25246 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
25247 sectors. It was not used anyway.
25249 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25251 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
25252 `unused parameter' warning.
25254 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25256 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
25258 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
25261 2005-08-28 Marco Gerards <metgerards@student.han.nl>
25263 * include/grub/normal.h (enum grub_completion_type): Added
25264 `GRUB_COMPLETION_TYPE_ARGUMENT'.
25266 * normal/cmdline.c (print_completion): Handle
25267 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
25268 * normal/menu_entry.c (store_completion): Likewise.
25270 * normal/completion.c (complete_arguments): New function.
25271 (grub_normal_do_completion): Call `complete_arguments' when the
25272 current words start with a dash.
25274 2005-08-27 Marco Gerards <metgerards@student.han.nl>
25276 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
25277 `gzio.mod' instead of `io.mod').
25279 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
25281 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
25282 (DISTDIRS): Added io and video.
25283 Rewrite the search routine to make an output consistently.
25285 * DISTLIST: Added conf/sparc64-ieee1275.mk,
25286 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
25287 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
25288 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
25289 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
25290 util/powerpc/ieee1275/misc.c.
25292 * include/grub/gzio.h: New file.
25293 * io/gzio.c: Likewise.
25295 * kern/file.c (grub_file_close): Call grub_device_close only if
25296 FILE->DEVICE is not NULL.
25298 * include/grub/mm.h [!NULL] (NULL): New macro.
25300 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
25302 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
25303 (pkgdata_MODULES): Added gzio.mod.
25304 (gzio_mod_SOURCES): New variable.
25305 (gzio_mod_CFLAGS): Likewise.
25307 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
25308 (pkgdata_MODULES): Added gzio.mod.
25309 (gzio_mod_SOURCES): New variable.
25310 (gzio_mod_CFLAGS): Likewise.
25312 * commands/cat.c: Include grub/gzio.h.
25313 (grub_cmd_cat): Use grub_gzfile_open instead of
25316 * commands/cmp.c: Include grub/gzio.h.
25317 (grub_cmd_cmp): Use grub_gzfile_open instead of
25320 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
25321 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
25323 (grub_rescue_cmd_module): Likewise.
25325 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25327 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
25328 kern/sparc64/ieee1275/init.c because it contains _start.
25329 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
25331 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25333 * configure.ac: Add support for sparc64 host with ieee1275
25335 * configure: Generated from configure.ac.
25336 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
25338 (grub_ofdisk_read): Likewise.
25339 (grub_ofdisk_open): Use %p to print pointer values, and cast the
25340 pointers as (void *) to remove a warning.
25341 (grub_ofdisk_close): Likewise.
25342 (grub_ofdisk_read): Likewise.
25343 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
25344 returns, so make it return void to remove a warning.
25345 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
25346 Corresponding prototype change.
25347 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
25348 values, and cast the pointers as (void *) to remove a warning.
25349 (grub_mm_dump): Likewise.
25350 * conf/sparc64-ieee1275.mk: New file.
25351 * conf/sparc64-ieee1275.rmk: Likewise.
25352 * include/grub/sparc64/setjmp.h: Likewise.
25353 * include/grub/sparc64/types.h: Likewise.
25354 * include/grub/sparc64/ieee1275/console.h: Likewise.
25355 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25356 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25357 * include/grub/sparc64/ieee1275/time.h: Likewise.
25358 * kern/sparc64/cache.c: Likewise.
25359 * kern/sparc64/dl.c: Likewise.
25360 * kern/sparc64/ieee1275/init.c: Likewise.
25361 * kern/sparc64/ieee1275/openfw.c: Likewise.
25363 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25365 * util/console.c (grub_ncurses_putchar): If C is greater than
25366 0x7f, set C to a question mark.
25367 (grub_ncurses_getcharwidth): New function.
25368 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
25371 * normal/menu.c (print_entry): Made aware of Unicode. First,
25372 convert TITLE to UCS-4, and predict the cursor position by
25375 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
25377 * kern/misc.c (grub_utf16_to_utf8): Likewise.
25379 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25381 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
25382 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25385 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
25386 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25387 grub_strcpy and grub_strlen. Take it into account that a space
25388 character is inserted as a delimiter.
25390 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25392 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
25393 invalid magic in the error.
25395 * commands/search.c: New file.
25397 * util/grub-emu.c (main): Call grub_search_init and
25400 * kern/rescue.c (grub_rescue_print_disks): Removed.
25401 (grub_rescue_print_devices): New function.
25402 (grub_rescue_cmd_ls): Use grub_device_iterate with
25403 grub_rescue_print_devices instead of grub_disk_dev_iterate with
25404 grub_rescue_print_disks.
25406 * kern/partition.c (grub_partition_iterate): Return the result of
25407 PARTMAP->ITERATE instead of GRUB_ERRNO.
25409 * kern/device.c: Include grub/partition.h.
25410 (grub_device_iterate): New function.
25412 * include/grub/partition.h (grub_partition_iterate): Return int
25413 instead of grub_err_t.
25415 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
25417 [GRUB_UTIL] (grub_search_fini): Likewise.
25419 * include/grub/device.h (grub_device_iterate): New prototype.
25421 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25423 (pkgdata_MODULES): Added search.mod.
25424 (search_mod_SOURCES): New variable.
25425 (search_mod_CFLAGS): Likewise.
25427 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
25428 (pkgdata_MODULES): Added search.mod.
25429 (search_mod_SOURCES): New variable.
25430 (search_mod_CFLAGS): Likewise.
25432 * commands/ls.c (grub_ls_list_disks): Renamed to ...
25433 (grub_ls_list_devices): ... this, and use grub_device_iterate.
25434 All callers changed.
25436 * DISTLIST: Added commands/search.c.
25438 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25440 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
25442 (grub_getcharwidth): New function.
25444 * kern/misc.c (grub_utf8_to_ucs4): New function.
25446 * include/grub/term.h (struct grub_term): Added a new member
25448 (grub_getcharwidth): New prototype.
25450 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
25452 * term/i386/pc/console.c (map_char): New function. Segregated from
25453 grub_console_putchar.
25454 (grub_console_putchar): Use map_char.
25455 (grub_console_getcharwidth): New function.
25456 (grub_console_term): Specified grub_console_getcharwidth as
25459 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
25460 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
25462 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
25464 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
25465 on grub_strtoul completely.
25466 (write_char): Declare local variables in the beginning of the
25468 (grub_vesafb_getcharwidth): New function.
25469 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
25472 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
25474 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
25475 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
25476 commands/i386/pc/vbetest.c.
25478 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
25479 call grub_vbe_get_controller_info again, because the returned
25480 information is volatile.
25481 (grub_vbe_set_video_mode): Mostly rewritten.
25482 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
25483 grub_vbe_status_t correctly.
25484 (grub_vbe_get_video_mode_info): Likewise.
25485 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
25486 several if statements.
25488 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
25489 * commands/i386/pc/vbeinfo.c: ... this.
25491 * commands/i386/pc/vbe_test.c: Renamed to ...
25492 * commands/i386/pc/vbetest.c: ... this.
25494 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25496 (grub_cmd_vbeinfo): ... this. Save video modes before
25497 iterating. Skip a video mode, if it is not available, not enough
25498 information is given or it is monochrome. Show the memory
25499 model. Leave the interpretation of MODEVAR to grub_strtoul
25501 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25502 (GRUB_MOD_FINI): Likewise.
25504 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25505 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25506 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25507 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25508 grub_strtoul completely.
25509 (real2pm): Removed.
25510 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25511 (GRUB_MOD_FINI): Likewise.
25513 * normal/misc.c: Include grub/mm.h.
25515 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25516 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25517 (vbe_list_modes_mod_SOURCES): Removed.
25518 (vbe_list_modes_mod_CFLAGS): Likewise.
25519 (vbe_test_mod_SOURCES): Likewise.
25520 (vbe_test_mod_CFLAGS): Likewise.
25521 (vbeinfo_mod_SOURCES): New variable.
25522 (vbeinfo_mod_CFLAGS): Likewise.
25523 (vbetest_mod_SOURCES): Likewise.
25524 (vbetest_mod_CFLAGS): Likewise.
25526 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25528 * normal/misc.c: New file.
25530 * DISTLIST: Added normal/misc.c.
25532 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25533 DISK to HOOK. Call HOOK with DISK.
25534 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25535 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25536 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25538 * normal/menu_entry.c (struct screen): Added a new member
25539 "completion_shown".
25540 (completion_buffer): New global variable.
25541 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25542 (store_completion): New function.
25543 (complete): Likewise.
25544 (clear_completions): Likewise.
25545 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25546 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25547 a tab, call complete.
25549 * normal/completion.c (disk_dev): Removed.
25550 (print_simple_completion): Likewise.
25551 (print_partition_completion): Likewise.
25552 (print_func): New global variable.
25553 (add_completion): Do not take the arguments WHAT or PRINT any
25554 longer. Added a new argument TYPE. Instead of printing directly,
25555 call PRINT_FUNC if not NULL.
25556 All callers changed.
25557 (complete_device): Use a local variable DEV instead of
25558 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25559 (grub_normal_do_completion): Take a new argument HOOK. Do not
25560 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25561 empty string, return NULL instead.
25562 All callers changed.
25564 * normal/cmdline.c (print_completion): New function.
25566 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25568 All callers changed.
25570 * kern/disk.c (grub_print_partinfo): Removed.
25572 * include/grub/partition.h (struct grub_partition_map): Add a new
25573 argument DISK into HOOK of ITERATE.
25574 (grub_partition_iterate): Add a new argument DISK to HOOK.
25576 * include/grub/normal.h (enum grub_completion_type): New enum.
25577 (grub_completion_type_t): New type.
25578 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25579 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25580 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25581 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25582 (grub_normal_do_completion): Added a new argument HOOK.
25583 (grub_normal_print_device_info): New prototype.
25585 * include/grub/disk.h (grub_print_partinfo): Removed.
25587 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25588 (normal_mod_SOURCES): Likewise.
25589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25590 (normal_mod_SOURCES): Likewise.
25592 * commands/ls.c (grub_ls_list_disks): Use
25593 grub_normal_print_device_info instead of grub_print_partinfo. Free
25595 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25596 duplicating the code.
25598 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25600 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25601 follow GCS more precisely.
25602 * commands/i386/pc/vbe_test.c: Likewise.
25603 * include/grub/i386/pc/vbe.h: Likewise.
25604 * term/i386/pc/vesafb.c: Likewise.
25605 * video/i386/pc/vbe.c: Likewise.
25607 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25609 * DISTLIST: Added term/i386/pc/vesafb.c
25610 DISTLIST: Added video/i386/pc/vbe.c
25611 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25612 DISTLIST: Added commands/i386/pc/vbe_test.c.
25613 * commands/i386/pc/vbe_list_modes.c: New file.
25614 * commands/i386/pc/vbe_test.c: Likewise.
25615 * term/i386/pc/vesafb.c: Likewise.
25616 * video/i386/pc/vbe.c: Likewise.
25617 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25618 (grub_vbe_probe) Added prototype.
25619 (grub_vbe_set_video_mode) Likewise.
25620 (grub_vbe_get_video_mode) Likewise.
25621 (grub_vbe_get_video_mode_info) Likewise.
25622 (grub_vbe_set_pixel_rgb) Likewise.
25623 (grub_vbe_set_pixel_index) Likewise.
25624 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25625 (pkgdata_MODULES): Added vesafb.mod.
25626 (pkgdata_MODULES): Added vbe_list_modes.mod.
25627 (pkgdata_MODULES): Added vbe_test.mod.
25628 (vbe_mod_SOURCES): Added.
25629 (vbe_mod_CFLAGS): Likewise.
25630 (vesafb_mod_SOURCES): Likewise.
25631 (vesafb_mod_CFLAGS): Likewise.
25632 (vbe_list_modes_mod_SOURCES): Likewise.
25633 (vbe_list_modes_mod_CFLAGS): Likewise.
25634 (vbe_test_mod_SOURCES): Likewise.
25635 (vbe_test_mod_CFLAGS): Likewise.
25637 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25639 * normal/command.c (grub_command_execute): If INTERACTIVE is
25640 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25641 CMDLINE. Disable the pager if INTERACTIVE is true.
25642 All callers are changed.
25644 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25645 before reading a config file.
25646 * normal/main.c (read_config_file): Even if a command is not
25647 found, register it if it is within an entry.
25649 * util/grub-emu.c: Include sys/types.h and unistd.h.
25650 (options): Added --hold.
25651 (struct arguments): Added a new member "hold".
25652 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25654 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25655 cleared by a debugger, if it is not zero.
25657 * include/grub/normal.h (grub_command_execute): Add an argument
25660 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25662 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25664 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25666 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25667 program with another one, because the old one didn't detect a bug
25668 in gcc-3.4. Always use regparm 2, because the new test is still
25669 not enough for gcc-4.0. Someone must investigate a simple test
25670 case which detects a bug in gcc-4.0.
25672 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25674 * DISTLIST: Added normal/completion.c.
25676 * normal/completion.c: New file.
25678 * term/i386/pc/console.c (grub_console_getwh): New function.
25679 (grub_console_term): Assign grub_console_getwh to getwh.
25681 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25682 function is defined in normal/completion.c as
25683 grub_normal_do_completion.
25684 (grub_cmdline_get): Use grub_normal_do_completion instead of
25687 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25688 returns non-zero, otherwise return 0.
25689 (grub_partition_iterate): First, probe the partition map. Then,
25690 call ITERATE only for this partition map.
25692 * kern/misc.c (grub_strncmp): Rewritten.
25694 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25695 returns non-zero. Otherwise return 0.
25697 * include/grub/partition.h (grub_partition_map_iterate): Return
25698 int instead of void.
25700 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25702 * include/grub/misc.h (grub_strncmp): Change the type of N to
25705 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25708 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25709 unsigned explicitly before comparing it with I.
25711 * kern/main.c (grub_env_write_root): Add the attribute unused into
25714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25715 normal/completion.c.
25716 (normal_mod_SOURCES): Likewise.
25717 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25718 (normal_mod_SOURCES): Likewise.
25720 * normal/command.c (grub_iterate_commands): If ITERATE returns
25721 non-zero, return one immediately.
25723 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25725 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25726 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25728 (grub_vbe_get_controller_info): New function.
25729 (grub_vbe_get_mode_info): Likewise.
25730 (grub_vbe_set_mode): Likewise.
25731 (grub_vbe_get_mode): Likewise.
25732 (grub_vbe_set_memory_window): Likewise.
25733 (grub_vbe_get_memory_window): Likewise.
25734 (grub_vbe_set_scanline_length): Likewise.
25735 (grub_vbe_get_scanline_length): Likewise.
25736 (grub_vbe_set_display_start): Likewise.
25737 (grub_vbe_get_display_start): Likewise.
25738 (grub_vbe_set_palette_data): Likewise.
25739 * include/grub/i386/pc/vbe.h: New file.
25741 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25743 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25744 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25745 * DISTLIST: Likewise.
25746 * kern/ieee1275/of.c: Moved to ...
25747 * kern/ieee1275/ieee1275.c: ... here.
25749 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25751 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25752 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25753 Pass 0 as `end' parameter to grub_strtoul().
25755 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25757 * include/grub/powerpc/ieee1275/console.h: Do not include
25758 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25760 (grub_console_cur_color): Remove i386-specific prototype.
25761 (grub_console_real_putchar): Likewise.
25762 (grub_console_checkkey): Likewise.
25763 (grub_console_getkey): Likewise.
25764 (grub_console_getxy): Likewise.
25765 (grub_console_gotoxy): Likewise.
25766 (grub_console_cls): Likewise.
25767 (grub_console_setcursor): Likewise.
25768 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25769 Include <grub/machine/console.h>.
25770 * term/ieee1275/ofconsole.c: Likewise.
25772 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25774 * Makefile.in (LIBLZO): New variable.
25776 * configure.ac: Check for LZO version 2.
25778 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25779 lzo/lzo1x.h instead of lzo1x.h.
25781 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25784 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25785 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25787 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25788 copying the data from PARTITION to P.
25790 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25792 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25793 negative, unload the module.
25795 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25796 map is "pc_partition_map" but not "pc".
25797 (usage): Fix the description. The options are --boot-image and
25798 --core-image but not --boot-file or --core-file.
25799 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25800 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25803 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25804 --core-file. Specify INSTALL_DEVICE as an argument.
25806 * util/console.c: Include config.h.
25807 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25808 [HAVE_NCURSES_H]: Include ncurses.h.
25809 [HAVE_CURSES_H]: Include curses.h.
25810 [!A_NORMAL] (A_NORMAL): Defined as zero.
25811 [!A_STANDOUT] (A_STANDOUT): Likewise.
25813 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25815 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25817 * configure.ac: Check for curses libraries and headers.
25819 * Makefile.in (LIBCURSES): New variable.
25821 * genmk.rb (Script::rule): Set the executable bits.
25823 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25824 name of the PC partition map is "pc_partition_map" but not "pc".
25826 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25828 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25829 (modules): Likewise.
25830 (usage): Added descriptions for --modules and --grub-probefs.
25831 Handle --modules and --grub-probefs. Save the arguments in MODULES
25832 and GRUB_PROBEFS, respectively.
25833 Auto-detect a filesystem module against GRUBDIR. If the result is
25834 empty and modules are not specified explicitly, abort the
25835 installation. Add the result to MODULES.
25837 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25838 disk/powerpc/ieee1275/ofdisk.c,
25839 include/grub/powerpc/ieee1275/init.h and
25840 term/powerpc/ieee1275/ofconsole.c.
25841 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25842 term/ieee1275/ofconsole.c.
25844 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25846 * COPYING: Upgraded to the latest version. Only the address of the
25847 FSF office has changed.
25849 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25851 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25852 kern/ieee1275.c with kern/ieee1275/of.c.
25854 * kern/ieee1275.c: Moved to ...
25855 * kern/ieee1275/of.c: ... here.
25857 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25859 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25862 * config.guess: Updated to the latest version from gnulib.
25863 * config.sub: Likewise.
25864 * install.sh: Likewise.
25865 * mkinstalldirs: Likewise.
25867 * include/grub/console.h: Removed. This file is arch-specific. Do
25868 not put this in include/grub.
25870 * include/grub/i386/pc/console.h: Resurrected.
25872 * util/console.c: Include grub/machine/console.h instead of
25874 * util/grub-emu.c: Likewise.
25876 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25878 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25881 From Vincent Pelletier <subdino2004@yahoo.fr>
25882 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25883 Redefined to use grub_getwh.
25884 (grub_term): New member named getwh.
25885 (grub_getwh): New prototype.
25886 * kern/term.c (grub_getwh): New function.
25887 * term/i386/pc/console.c (grub_console_getwh): New function.
25888 (grub_console_term): New member `getwh'.
25889 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25890 (grub_vga_term): New member `getwh'.
25891 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25893 (grub_ofconsole_getw): New function.
25894 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25895 (grub_ofconsole_term): New field named getwh and new initial
25898 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25900 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25901 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25902 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25903 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25904 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25905 of <grub/machine/ieee1275.h>.
25906 * commands/ieee1275/reboot.c: Likewise.
25907 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25908 * kern/ieee1275.c: ... to here. All users updated. Change all
25909 parameter structs to use new type `grub_ieee1275_cell_t'.
25910 * term/powerpc/ieee1275/ofconsole.c: Move ...
25911 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25912 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25913 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25914 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25916 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25917 Remove unused prototypes. All users updated.
25918 * include/grub/powerpc/ieee1275/console.h: Removed.
25919 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25920 `grub_ieee1275_cell_t'.
25921 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25922 Cast comparisons with -1 to the correct type.
25923 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25924 type to match `grub_ieee1275_entry_fn'.
25926 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25928 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25930 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25931 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25933 (grub_probefs_SOURCES): New variable.
25935 * util/i386/pc/grub-probefs.c: New file.
25937 * util/i386/pc/grub-setup.c (main): Call
25938 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25939 grub_hfs_init and grub_jfs_init to initialize the system. Call
25940 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25941 grub_pc_partition_map_fini to finish the system.
25943 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25945 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25947 (grub_multiboot_load_elf32): Likewise.
25948 (grub_multiboot_is_elf64): Likewise.
25949 (grub_multiboot_load_elf64): Likewise.
25950 (grub_multiboot_load_elf): Likewise.
25951 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25952 an ELF32 or ELF64 file.
25953 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25955 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25956 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25957 NULL before calling FS->LABEL.
25958 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25959 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25960 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25961 before calling FS->LABEL.
25963 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25965 * util/i386/pc/grub-install.in (datadir): New variable.
25967 (pkgdatadir): New variable.
25968 (pkglibdir): Removed.
25970 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25972 * DISTLIST: Added util/i386/pc/grub-install.in.
25974 * util/i386/pc/grub-install.in: New file.
25976 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25977 (grub_install_SOURCES): Likewise.
25979 * genmk.rb: Added support for scripts.
25980 (Script): New class.
25981 (scripts): New variable.
25983 * Makefile.in (install-local): Install sbin_SCRIPTS by
25985 (uninstall): Remove sbin_SCRIPTS.
25987 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25988 device, try to get a GRUB device by
25989 grub_util_biosdisk_get_grub_dev.
25992 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25993 description for --device-map.
25995 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25997 Change the semantics of variable hooks. They now return strings
25998 instead of error values.
26000 * util/i386/pc/grub-setup.c: Include grub/env.h.
26001 (setup): Use grub_device_set_root instead of grub_env_set.
26003 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
26004 grub_env_get instead of grub_device_set_root and
26005 grub_device_get_root, respectively.
26007 * kern/main.c (grub_env_write_root): New function.
26008 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
26009 grub_env_set instead of grub_device_set_root.
26011 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
26013 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
26014 rather than calling ENV->WRITE_HOOK afterwards.
26015 (grub_env_get): Return the result of ENV->READ_HOOK rather than
26016 passing a pointer of a pointer.
26017 (grub_register_variable_hook): Change the types of "read_hook" and
26018 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
26020 Allocate the default empty string on the heap, because this string
26021 may be freed later.
26023 * kern/device.c: Include grub/env.h.
26024 (grub_device_set_root): Removed.
26025 (grub_device_get_root): Likewise.
26026 (grub_device_open): Use grub_env_get instead of
26027 grub_device_get_root.
26029 * include/grub/env.h (grub_env_read_hook_t): New type.
26030 (grub_env_write_hook_t): Likewise.
26031 (grub_env_var): Change the types of "read_hook" and "write_hook"
26032 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
26033 (grub_register_variable_hook): Likewise.
26035 * include/grub/device.h (grub_device_set_root): Removed.
26036 (grub_device_set_root): Likewise.
26038 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
26039 make sure that DIRNAME terminates with '/', so that
26040 grub_fat_find_dir will fail if PATH is not a directory.
26042 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
26044 Use the qualifier auto for print_files and print_files_long.
26045 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
26047 Put a newline only if there is no error.
26048 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
26051 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26053 * kern/partition.c (grub_partition_probe): Initialize PART to
26054 NULL. Otherwise, when no partition map is registered, this returns
26057 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
26059 * partmap/apple.c (apple_partition_map_iterate): Check if POS
26060 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
26063 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
26065 * commands/ls.c (grub_ls_list_disks): Print the filesystem
26066 information on each device, if it does not have partitions. Print
26067 "Device" instead of "Disk", because this function is not specific
26070 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
26071 static to ensure that it is put on the memory rather than a
26074 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26076 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
26077 (grub_cat_init): Likewise.
26078 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
26079 (options): Likewise.
26080 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26081 (grub_configfile_init): Likewise.
26082 * font/manager.c (GRUB_MOD_INIT): Likewise.
26083 * commands/help.c (GRUB_MOD_INIT): Likewise.
26084 (grub_help_init): Likewise.
26085 * normal/command.c (grub_command_init): Likewise.
26086 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
26087 * disk/loopback.c (grub_loop_init): Likewise.
26088 (GRUB_MOD_INIT): Likewise.
26089 * commands/ls.c (grub_ls_init): Likewise.
26090 (GRUB_MOD_INIT): Likewise.
26091 (options): Likewise.
26092 * commands/boot.c (grub_boot_init): Likewise.
26093 (GRUB_MOD_INIT): Likewise.
26094 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
26095 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
26096 (GRUB_MOD_INIT): Likewise.
26097 * commands/cmp.c (grub_cmp_init): Likewise.
26098 (GRUB_MOD_INIT): Likewise.
26100 * normal/arg.c: Use <> instead of "" to include header files.
26101 (SHORT_ARG_HELP): New macro.
26102 (SHORT_ARG_USAGE): Likewise.
26103 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
26104 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
26106 (find_short): Check if C is 'h' or 'u' explicitly.
26107 (grub_arg_show_help): Use space characters instead of tabs. Treat
26108 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
26109 are shown with --help and --usage only if they are not used for
26110 the command itself.
26111 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
26114 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
26115 const into "longarg". Change the type of "shortarg" to int.
26117 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26119 * boot/i386/pc/boot.S (boot_drive_check): New label.
26121 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
26124 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
26125 which do not pass a boot drive correctly. Copied from GRUB Legacy.
26127 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26129 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
26130 When turning off Gate A20, skip the check and return immediately,
26131 because this is not fatal usually.
26133 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26135 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
26136 be 0x7C00 instead of 0x8000.
26138 * boot/i386/pc/pxeboot.S: Rewritten.
26140 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
26142 (gate_a20_check_state): Read a byte from 0x108000. Invert the
26145 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
26147 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
26148 robustness. This routine now supports a BIOS call and System
26149 Control Port A to modify the gate A20.
26151 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26152 Increased to 0x440.
26154 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
26156 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
26157 device path and resulting ihandle.
26158 (grub_ofdisk_close): dprintf the ihandle being closed.
26159 (grub_ofdisk_read): dprintf function parameters.
26160 * kern/mm.c (grub_mm_init_region): Likewise.
26161 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
26162 (grub_linux_boot): dprintf the Linux entry point, initrd address and
26163 size, and boot arguments.
26164 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
26165 before loading into memory.
26166 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
26167 before loading into memory.
26169 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
26171 * kern/mm.c: Added much documentation.
26172 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
26173 8, set to 5 instead of 8.
26175 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26177 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
26179 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
26180 (grub_mkdevicemap_SOURCES): New variable.
26182 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
26183 lib/device.c of GRUB Legacy.
26185 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26187 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
26188 instead of PATH is NULL.
26190 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
26192 * commands/cmp.c (BUFFER_SIZE): New macro.
26193 (grub_cmd_cmp): Close the right file at the right time. Compare
26194 only data just read. Don't report files of different size as
26195 identical. Dynamically allocate buffers. Move variable
26196 declarations at the beginning of function.
26198 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
26200 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
26203 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
26205 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
26206 when backspace is pressed at beginning of line.
26208 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
26210 * DISTLIST: Added genfslist.sh.
26212 * normal/main.c (fs_module_list): New variable.
26213 (autoload_fs_module): New function.
26214 (read_fs_list): Likewise.
26215 (grub_normal_execute): Call read_fs_list.
26217 * kern/fs.c (grub_fs_autoload_hook): New variable.
26218 (grub_fs_probe): Added support for auto-loading.
26220 * include/grub/normal.h (struct grub_fs_module_list): New struct.
26221 (grub_fs_module_list_t): New type.
26223 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
26224 (grub_fs_autoload_hook): New prototype.
26226 * genfslist.sh: New file.
26228 * genmk.rb: Added a rule to generate a filesystem list.
26230 2005-06-30 Marco Gerards <metgerards@student.han.nl>
26232 * configure.ac: Fix the test for cross-compiling.
26234 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
26235 define GRUB_UTIL anymore.
26237 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
26238 so this function works on other systems than just big endian.
26239 (load_modules): Likewise.
26240 (add_segments): Likewise.
26242 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
26244 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
26245 contains `l' modifier, get a long from va_arg().
26247 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
26249 * kern/mm.c (grub_free): If the next free block which is being
26250 merged is the first free block, set the first block to the block
26252 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
26254 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26256 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
26257 `grub_ieee1275_chosen'.
26259 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26261 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
26262 (grub_ieee1275_chosen): New variable.
26263 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
26265 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
26266 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26267 Rename first argument to `phandle' for consistency.
26268 (grub_ieee1275_get_property_length): Likewise.
26269 (grub_ieee1275_next_property): Likewise. Change type of first argument
26270 to grub_ieee1275_phandle_t.
26271 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
26272 Move export next to declaration.
26273 (grub_ieee1275_chosen): New variable.
26274 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
26275 Correct cosmetic typo.
26276 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
26277 `grub_ieee1275_chosen'.
26278 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
26279 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
26280 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
26281 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
26282 `grub_ieee1275_chosen'.
26284 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
26286 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
26288 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
26289 /chosen/bootargs as "variable=value" pairs.
26291 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
26293 * include/grub/misc.h (grub_dprintf): New macro.
26294 (grub_real_dprintf): New prototype.
26295 (grub_strword): Likewise.
26296 (grub_iswordseparator): Likewise.
26297 * kern/misc.c (grub_real_dprintf): New function.
26298 (grub_strword): Likewise.
26299 (grub_iswordseparator): Likewise.
26301 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
26303 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
26304 (roundup): Remove macro.
26305 (grub_ieee1275_flags): Make static.
26306 (grub_ieee1275_realmode): Remove.
26307 (grub_ieee1275_test_flag): New function.
26308 (grub_ieee1275_set_flag): Likewise.
26309 (find_options): Rename to `grub_ieee1275_find_options'; update
26310 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
26311 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
26312 (cmain): New prototype.
26313 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
26314 `grub_ieee1275_flags' directly.
26315 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
26316 machine/biosdisk.h.
26317 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
26318 Don't include grub/machine/init.h.
26319 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
26320 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26322 (grub_ieee1275_realmode): Likewise.
26323 (grub_ieee1275_flag): New enum.
26324 (grub_ieee1275_test_flag): New prototype.
26325 (grub_ieee1275_set_flag): New prototype.
26326 * include/grub/powerpc/ieee1275/init.h: Remove file.
26327 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
26328 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
26329 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
26330 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
26332 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
26333 `grub_ieee1275_test_flag'.
26334 (grub_ieee1275_encode_devname): Likewise.
26336 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
26338 * include/grub/powerpc/ieee1275/ieee1275.h
26339 (grub_ieee1275_encode_devname): New prototype.
26340 (grub_ieee1275_get_filename): Likewise.
26341 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
26343 (grub_set_prefix): Likewise.
26344 (grub_machine_init): Call grub_set_prefix.
26345 * kern/powerpc/ieee1275/openfw.c: Fix typos.
26346 (grub_parse_type): New enum.
26347 (grub_ieee1275_get_devargs): New function.
26348 (grub_ieee1275_get_devname): Likewise.
26349 (grub_ieee1275_parse_args): Likewise.
26350 (grub_ieee1275_get_filename): Likewise.
26351 (grub_ieee1275_encode_devname): Likewise.
26353 2005-03-30 Marco Gerards <metgerards@student.han.nl>
26355 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
26356 `grub_loader_unset'.
26358 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
26360 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
26361 instead of grub_ieee1275_interpret.
26362 (grub_halt_init): New function.
26363 (grub_halt_fini): Likewise.
26364 (GRUB_MOD_INIT): Correct message grammar.
26365 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
26366 instead of grub_ieee1275_interpret.
26367 (grub_reboot_init): New function.
26368 (grub_reboot_fini): Likewise.
26369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
26370 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
26371 util/i386/pc/misc.c with commands/ieee1275/halt.c,
26372 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
26373 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
26375 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
26377 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
26379 (grub_halt): Likewise.
26380 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
26381 (cmain): Remove __attribute__((unused)).
26382 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
26383 (grub_heap_len): Likewise.
26384 (grub_machine_fini): New function.
26385 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
26386 (grub_halt): Likewise.
26387 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
26389 * util/powerpc/ieee1275/misc.c: New file.
26391 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26393 * DISTLIST: New file.
26394 * gendistlist.sh: Likewise.
26396 * Makefile.in (COMMON_DISTFILES): Removed.
26397 (BOOT_DISTFILES): Likewise.
26398 (CONF_DISTFILES): Likewise.
26399 (DISK_DISTFILES): Likewise.
26400 (FS_DISTFILES): Likewise.
26401 (INCLUDE_DISTFILES): Likewise.
26402 (KERN_DISTFILES): Likewise.
26403 (LOADER_DISTFILES): Likewise.
26404 (TERM_DISTFILES): Likewise.
26405 (UTIL_DISTFILES): Likewise.
26406 (DISTFILES): Likewise.
26407 (uninstall): Uninstall files in $(pkgdata_DATA).
26408 (DISTLIST): New target.
26409 (distdir): Use the contents of the file DISTLIST to get a list of
26412 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26414 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
26415 descriptor. This is ported from GRUB Legacy.
26417 * gencmdlist.sh: Added an extra semicolon to make it work with
26418 old sed versions. Reported by Robert Bihlmeyer
26419 <robbe@orcus.priv.at>.
26421 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
26423 Automatic loading of commands is supported.
26425 * normal/main.c (read_command_list): New function.
26426 (grub_normal_execute): Call read_command_list.
26428 * normal/command.c (grub_register_command): Return zero or CMD.
26429 Allocate CMD->NAME from the heap.
26430 Initialize CMD->MODULE_NAME to zero.
26431 Find the same name as well. If the same command is found and it is
26432 a dummy command, overwrite members. If it is not a dummy command,
26434 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
26435 (grub_command_find): If a dummy command is found, load a module
26436 and retry to find a command only once.
26438 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
26439 make sure that each command is loaded.
26441 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
26443 (struct grub_command): Remove const from the member `name'.
26444 Add a new member `module_name'.
26445 (grub_register_command): Return grub_command_t.
26447 * commands/help.c (grub_cmd_help): Call grub_command_find to make
26448 sure that each command is loaded.
26450 * genmk.rb (PModule::rule): Specify a module name without the
26451 suffix ".mod" to gencmdlist.sh.
26453 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26455 * gencmdlist.sh: New file.
26457 * genmk.rb (PModule::rule): Generate a rule for a command list.
26459 Generate command.lst from $(COMMANDFILES).
26461 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
26462 (DATA): Added $(pkgdata_DATA).
26463 (install-local): Install files in $(pkgdata_DATA).
26465 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26467 * term/i386/pc/vga.c (debug_command): Removed.
26468 (GRUB_MOD_INIT): Do not register the command "debug".
26470 From Hollis Blanchard:
26471 * commands/configfile.c: New file.
26472 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26473 commands/configfile.c.
26474 (pkgdata_MODULES): Added configfile.mod.
26475 (configfile_mod_SOURCES): New variable.
26476 (configfile_mod_CFLAGS): Likewise.
26477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26478 commands/configfile.c.
26479 (pkgdata_MODULES): Added configfile.mod.
26480 (configfile_mod_SOURCES): New variable.
26481 (configfile_mod_CFLAGS): Likewise.
26482 * util/grub-emu.c (main): Call grub_configfile_init and
26483 grub_configfile_fini.
26484 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
26486 [GRUB_UTIL] (grub_configfile_fini): Likewise.
26488 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26490 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26493 * commands/help.c (grub_cmd_help): Do not print newlines after
26494 the last command in print_command_help.
26496 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26498 * commands/default.h: New file.
26499 * commands/timeout.h: Likewise.
26500 * normal/context.c: Likewise.
26502 * util/misc.c: Do not include sys/times.h.
26503 Include sys/time.h and grub/machine/time.h.
26504 (grub_get_rtc): Rewritten with gettimeofday.
26506 * util/grub-emu.c (main): Call grub_default_init and
26507 grub_timeout_init before grub_normal_init, and call
26508 grub_timeout_fini and grub_default_fini after grub_main.
26510 * util/console.c (grub_ncurses_checkkey): Return the read
26513 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26516 * normal/main.c (read_config_file): Push MENU. If this fails,
26517 print an error and wait for a user input.
26518 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26519 If a menu is empty or an error occurs, pop MENU.
26520 (grub_normal_execute): Pop and free MENU after grub_menu_run
26523 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26525 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26527 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26529 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26531 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26534 * include/grub/normal.h (struct grub_menu_list): New struct.
26535 (grub_menu_list_t): New type.
26536 (struct grub_context): New struct.
26537 (grub_context_t): New type.
26538 (grub_register_command): Got rid of EXPORT_FUNC.
26539 (grub_unregister_command): Likewise.
26540 (grub_context_get): New prototype.
26541 (grub_context_get_current_menu): Likewise.
26542 (grub_context_push_menu): Likewise.
26543 (grub_context_pop_menu): Likewise.
26544 [GRUB_UTIL] (grub_default_init): Likewise.
26545 [GRUB_UTIL] (grub_default_fini): Likewise.
26546 [GRUB_UTIL] (grub_timeout_init): Likewise.
26547 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26549 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26550 commands/timeout.c and normal/context.c.
26551 (pkgdata_MODULES): Added default.mod and timeout.mod.
26552 (normal_mod_SOURCES): Added normal/context.c.
26553 (default_mod_SOURCES): New variable.
26554 (default_mod_CFLAGS): Likewise.
26555 (timeout_mod_SOURCES): Likewise.
26556 (timeout_mod_CFLAGS): Likewise.
26557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26559 (pkgdata_MODULES): Added default.mod and timeout.mod.
26560 (normal_mod_SOURCES): Added normal/context.c.
26561 (default_mod_SOURCES): New variable.
26562 (default_mod_CFLAGS): Likewise.
26563 (timeout_mod_SOURCES): Likewise.
26564 (timeout_mod_CFLAGS): Likewise.
26566 * Makefile.in (all-local): Added $(MKFILES).
26568 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26570 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26571 (grub_emu_SOURCES): Likewise.
26572 (pkgdata_MODULES): Add `sun.mod'.
26573 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26576 (pkgdata_MODULES): Add `sun.mod'.
26577 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26578 * include/grub/partition.h (grub_sun_partition_map_init): New
26580 (grub_sun_partition_map_fini): Likewise.
26581 * partmap/sun.c: New file.
26582 * util/grub-emu.c (main): Initialize and de-initialize the sun
26583 partitionmap support.
26585 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26587 This implements an Emacs-like menu entry editor.
26589 * normal/menu_entry.c: New file.
26591 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26592 characters to ASCII.
26593 (saved_char): New variable.
26594 (grub_ncurses_checkkey): Rewritten completely.
26595 (grub_ncurses_getkey): Likewise.
26596 (grub_ncurses_init): Call raw instead of cbreak.
26598 * normal/menu.c (print_entry): Do not put a space.
26599 (init_page): Renamed to ...
26600 (grub_menu_init_page): ... this. All callers changed.
26601 (edit_menu_entry): Removed.
26602 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26604 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26606 * kern/misc.c (grub_vprintf): Call grub_refresh.
26608 * normal/menu.c (DISP_LEFT): Renamed to ...
26609 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26610 * normal/menu.c (DISP_UP): Renamed to ...
26611 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26612 * normal/menu.c (DISP_RIGHT): Renamed to ...
26613 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26614 * normal/menu.c (DISP_DOWN): Renamed to ...
26615 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26616 * normal/menu.c (DISP_HLINE): Renamed to ...
26617 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26618 * normal/menu.c (DISP_VLINE): Renamed to ...
26619 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26620 * normal/menu.c (DISP_UL): Renamed to ...
26621 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26622 * normal/menu.c (DISP_UR): Renamed to ...
26623 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26624 * normal/menu.c (DISP_LL): Renamed to ...
26625 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26626 * normal/menu.c (DISP_LR): Renamed to ...
26627 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26628 * normal/menu.c (TERM_WIDTH): Renamed to ...
26629 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26630 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26631 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26632 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26633 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26634 * normal/menu.c (TERM_MARGIN): Renamed to ...
26635 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26636 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26637 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26638 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26639 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26640 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26641 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26642 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26643 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26644 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26645 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26646 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26647 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26648 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26649 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26650 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26651 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26652 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26653 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26654 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26655 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26656 All callers changed.
26658 * include/grub/normal.h: New prototype.
26660 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26661 normal/menu_entry.c.
26662 (normal_mod_SOURCES): Likewise.
26663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26664 (normal_mod_SOURCES): Likewise.
26666 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26668 * include/grub/normal.h (grub_halt_init): New prototype.
26669 (grub_halt_fini): Likewise.
26670 (grub_reboot_init): Likewise.
26671 (grub_reboot_fini): Likewise.
26673 * util/grub-emu.c: Include signal.h.
26674 (main_env): New global variable.
26675 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26677 (grub_machine_fini): New function.
26678 (main): Call grub_halt_init and grub_reboot_init before
26679 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26680 Call setjmp with MAIN_ENV to go back afterwards.
26681 Call grub_machine_fini right before return.
26683 * include/grub/util/misc.h: Include setjmp.h.
26684 (main_env): New prototype.
26686 * include/grub/kernel.h (grub_machine_fini): New prototype.
26687 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26688 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26690 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26691 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26692 * term/i386/pc/console.c (grub_console_fini): Likewise.
26694 * util/i386/pc/misc.c: New file.
26696 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26697 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26698 commands/i386/pc/reboot.c.
26700 2005-02-14 Guillem Jover <guillem@hadrons.org>
26702 * include/grub/dl.h (grub_dl_check_header): New prototype.
26703 (grub_arch_dl_check_header): Change return type to grub_err_t,
26704 remove size parameter and export function. Update all callers.
26705 * kern/dl.c (grub_dl_check_header): New function.
26706 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26707 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26708 are inside the core.
26709 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26710 independent ELF header checks.
26711 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26712 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26713 `grub_dl_check_header' instead of explicit checks. Check for the
26715 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26716 `grub_dl_check_header' instead of explicit checks. Remove arch
26717 specific ELF header checks.
26719 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26722 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26724 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26725 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26727 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26729 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26730 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26731 (part_map_iterate): Clear `grub_errno' and return 0 if
26732 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26733 * partmap/amiga.c (amiga_partition_map_iterate): Return
26734 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26735 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26737 2005-02-01 Guillem Jover <guillem@hadrons.org>
26739 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26742 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26744 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26746 (grub_rescue_cmd_linux): New prototype.
26747 (grub_rescue_cmd_initrd): Likewise.
26748 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26750 (grub_linux_release_mem): Release the memory for the initrd.
26751 (grub_load_linux): Renamed from this...
26752 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26753 Changed `entry' not to be static. Loop over memory regions to
26754 find another one when the default fails.
26755 (grub_rescue_cmd_initrd): New function.
26756 (grub_linux_init): Remove function.
26757 (grub_linux_fini): Likewise.
26758 (GRUB_MOD_INIT): Register `initrd'.
26759 (GRUB_MOD_FINI): Unregister `initrd'.
26760 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26762 (grub_linux_normal_fini): Likewise.
26763 (GRUB_MOD_INIT): Register `initrd'.
26764 (GRUB_MOD_FINI): Unregister `initrd'.
26766 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26768 * commands/help.c: New file.
26769 * normal/arg.c (show_help): Renamed to...
26770 (grub_arg_show_help): ... this.
26771 * commands/i386/pc/halt.c: New file.
26772 * commands/i386/pc/reboot.c: Likewise.
26773 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26774 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26775 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26776 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26780 (pkgdata_MODULES): Add `help.mod'.
26781 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26782 * grub/i386/pc/init.h (grub_reboot): New prototype.
26783 (grub_halt): Likewise.
26784 * include/grub/normal.h (grub_arg_show_help): New prototype.
26785 (grub_help_init): Likewise.
26786 (grub_help_fini): Likewise.
26787 * util/grub-emu.c (main): Initialize and deinitialize the help
26790 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26792 * normal/command.c (grub_command_init): Fixed the description of
26793 the `set' and `unset' commands.
26795 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26797 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26799 * commands/ieee1275/halt.c: New file.
26800 * commands/ieee1275/reboot.c: Likewise.
26801 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26802 `__attribute__ ((unused))'. Some GCS related fixed.
26803 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26804 (grub_suspend_fini): Likewise.
26805 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26807 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26808 (halt_mod_CFLAGS): New variables.
26809 * include/grub/powerpc/ieee1275/ieee1275.h
26810 (grub_ieee1275_interpret): New prototype.
26812 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26814 * include/grub/misc.h (memmove): New prototype.
26815 (memcpy): Likewise.
26817 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26819 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26820 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26822 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26824 * kern/misc.c (grub_strndup): Function rewritten.
26826 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26828 * normal/menu.c (TERM_WIDTH): Macro redefined.
26829 (TERM_TOP_BORDER_Y): Likewise.
26830 (draw_border): Replaced while-loop by a for-loop. Make the number
26831 of lines consistent with the number of lines displayed in
26832 print_entries. Added a margin below the rectangle.
26833 (print_entry): Make the entry fit in the rectangle.
26834 (print_entries): Display the scroll arrows next to the right
26837 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26839 * fs/minix.c (grub_minix_find_file): Reserve more space for
26840 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26841 `grub_strncpy' to copy `path' into it.
26843 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26845 Add the loopback device, a device via which files can be accessed
26848 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26849 (pkgdata_MODULES): Add loopback.mod.
26850 (loopback_mod_SOURCES): New variable.
26851 (loopback_mod_CFLAGS): Likewise.
26852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26854 (pkgdata_MODULES): Add loopback.mod.
26855 (loopback_mod_SOURCES): New variable.
26856 (loopback_mod_CFLAGS): Likewise.
26857 * disk/loopback.c: new file.
26858 * include/grub/normal.h (grub_loop_init): New prototype.
26859 (grub_loop_fini): New prototype.
26860 * util/grub-emu.c (main): Initialize and de-initialize loopback
26862 * include/grub/disk.h (grub_disk_dev_id): Add
26863 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26865 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26867 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26869 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26870 (suspend_mod_SOURCES): New variable.
26871 (suspend_mod_CFLAGS): Likewise.
26872 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26874 * commands/ieee1275/suspend.c: New file.
26876 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26878 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26879 ((unused))' to `__attribute__ ((used))'.
26880 (GRUB_MOD_FINI): Likewise.
26881 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26882 * genmk.rb (PModule): Assign space to common symbols when linking
26885 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26887 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26888 `unsigned' arguments to `grub_size_t'.
26889 (grub_malloc): Likewise.
26890 (grub_realloc): Likewise.
26891 (grub_memalign): Likewise.
26892 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26893 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26894 * util/misc.c (grub_malloc): Likewise.
26895 (grub_realloc): Likewise.
26896 * kern/mm.c (get_header_from_pointer): Change the casts to
26897 `unsigned' into a cast to `grub_size_t'.
26899 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26900 point to `currnode' when `currnode' is changed.
26902 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26903 Schottelius <nico-linux@schottelius.org>.
26905 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26907 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26908 (note_path): Remove variable.
26909 (GRUB_IEEE1275_NOTE_NAME): New macro.
26910 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26911 (grub_ieee1275_note_hdr): New structure.
26912 (grub_ieee1275_note_desc): Likewise.
26913 (grub_ieee1275_note): Likewise.
26914 (load_note): Remove `dir' argument. All callers updated. Remove
26915 `note_img' and `path'. Do not load a file from `note_path'.
26916 Initialize a struct grub_ieee1275_note and write that to `out'.
26917 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26919 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26921 * util/misc.c (grub_util_read_image): Revert last change. It
26922 called `grub_util_read_at', which seeks from the beginning of the
26925 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26927 * TODO: Add note about endianness in grub-mkimage.
26928 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26930 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26931 (grub_mkimage_SOURCES): New target.
26932 * include/grub/kernel.h (grub_start_addr): Remove variable.
26933 (grub_end_addr): Likewise.
26934 (grub_total_module_size): Likewise.
26935 (grub_kernel_image_size): Likewise.
26936 (GRUB_MODULE_MAGIC): New constant.
26937 (grub_module_info): New structure.
26938 (grub_arch_modules_addr): New prototype.
26939 (grub_get_end_addr): Remove prototype.
26940 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26941 * include/grub/powerpc/ieee1275/kernel.h: New file.
26942 * include/grub/util/misc.h (grub_util_get_fp_size): New
26944 (grub_util_read_at): Likewise.
26945 (grub_util_write_image_at): Likewise.
26946 * kern/main.c (grub_get_end_addr): Remove function.
26947 (grub_load_modules): Call grub_arch_modules_addr instead of using
26948 grub_end_addr. Look for a grub_module_info struct in memory. Use
26949 the grub_module_info fields instead of calling grub_get_end_addr
26950 as loop conditions. Move grub_add_unused_region code here.
26951 (grub_add_unused_region): Remove function.
26952 * kern/i386/pc/init.c: Include grub/cache.h.
26953 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26954 one call to add_mem_region.
26955 (grub_arch_modules_addr): New function.
26956 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26957 (grub_total_module_size): Likewise.
26958 Include grub/machine/kernel.h.
26959 (grub_arch_modules_addr): New function.
26960 * util/grub-emu.c (grub_end_addr): Remove variable.
26961 (grub_total_module_size): Likewise.
26962 (grub_arch_modules_addr): New function.
26963 * util/misc.c: Include unistd.h.
26964 (grub_util_get_fp_size): New function.
26965 (grub_util_read_at): Likewise.
26966 (grub_util_write_image_at): Likewise.
26967 (grub_util_read_image): Call grub_util_read_at.
26968 (grub_util_write_image): Call grub_util_write_image_at.
26969 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26970 additional memory in kernel_img for a struct grub_module_info.
26971 Fill in that grub_module_info.
26972 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26974 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26976 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26978 * include/grub/powerpc/ieee1275/ieee1275.h
26979 (grub_ieee1275_milliseconds): New prototype.
26980 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26982 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26983 grub_ieee1275_milliseconds.
26985 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26987 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26989 (find_options): New function.
26990 (cmain): Call find_options.
26991 * include/grub/powerpc/ieee1275/ieee1275.h
26992 (grub_ieee1275_realmode): New extern variable.
26993 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26994 grub_map if grub_ieee1275_realmode is false.
26996 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26998 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26999 lines are inserted and make it work like readline. Reported by
27000 Vincent Pelletier <subdino2004@yahoo.fr>.
27002 2004-12-28 Marco Gerards <metgerards@student.han.nl>
27004 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
27006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
27007 `kern/powerpc/cache.S'.
27009 2004-12-27 Marco Gerards <metgerards@student.han.nl>
27011 * genmk.rb: Handle the `Program' class in the main loop. Written
27012 by Johan Rydberg <jrydberg@gnu.org>.
27013 (Program): New class.
27014 (programs): New variable.
27015 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
27016 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
27017 instead of "grub/kernel.h". Include <grub/machine/init.h>.
27018 (help_arch): Function removed.
27019 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
27020 `powerpc/libgcc.h' and `loader.h'.
27021 (pkgdata_PROGRAMS): New variable.
27022 (sbin_UTILITIES): Variable removed.
27023 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
27024 (grubof_SOURCES): Variable re-defined so it only includes the
27025 core functionality.
27026 (grubof_CFLAGS): Remove `-DGRUBOF'.
27027 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
27028 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
27029 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
27030 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
27031 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
27032 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
27033 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
27034 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
27035 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
27036 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
27037 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27038 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
27039 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
27040 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
27041 (pc_mod_CFLAGS): New variables.
27042 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
27043 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
27044 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
27045 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
27047 * include/grub/i386/pc/init.h (grub_os_area_addr)
27048 (rub_os_area_size): ... to here.
27049 * include/grub/powerpc/ieee1275/ieee1275.h
27050 (grub_ieee1275_entry_fn): Export symbol.
27051 * include/grub/powerpc/ieee1275/init.h: New file.
27052 * include/grub/powerpc/libgcc.h: Likewise.
27053 * include/grub/cache.h: Likewise.
27054 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
27055 <hollis@penguinppc.org>.
27056 * kern/dl.c: Include <grub/cache.h>.
27057 (grub_dl_flush_cache): New function.
27058 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
27060 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
27061 (grub_console_init): Removed prototypes.
27062 (grub_machine_init): Don't initialize the modules anymore.
27063 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
27065 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
27066 Macro undef removed.
27067 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
27068 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
27069 relocation `R_PPC_REL32'. Return an error when the relocation is
27071 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
27072 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
27073 * util/misc.c (grub_arch_sync_caches): Likewise.
27075 2004-12-19 Marco Gerards <metgerards@student.han.nl>
27077 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
27078 `symlist.c', add `grubof_symlist.c'.
27079 (symlist.c): Variable removed.
27080 (grubof_HEADERS): Variable added.
27081 (grubof_symlist.c): New target.
27082 (kernel_syms.lst): Use `grubof_HEADERS' instead of
27083 `kernel_img_HEADERS'.
27084 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
27085 * kern/powerpc/dl.c: New file.
27086 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
27088 (grub_arch_dl_relocate_symbols): Likewise.
27089 (grub_register_exported_symbols): Likewise.
27091 2004-12-13 Marco Gerards <metgerards@student.han.nl>
27093 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
27094 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
27095 to fail instead. Reported by Vincent Pelletier
27096 <subdino2004@yahoo.fr>.
27098 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
27099 it is not allocated. Reported by Vincent Pelletier
27100 <subdino2004@yahoo.fr>.
27102 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
27103 output so the output looks better.
27105 2004-12-04 Marco Gerards <metgerards@student.han.nl>
27107 Modulize the partition map support and add support for the amiga
27110 * commands/ls.c: Include <grub/partition.h> instead of
27111 <grub/machine/partition.h>.
27112 * kern/disk.c: Likewise.
27113 * kern/rescue.c: Likewise.
27114 * loader/i386/pc/chainloader.c: Likewise.
27115 * normal/cmdline.c: Likewise.
27116 * kern/powerpc/ieee1275/init.c: Likewise.
27117 (grub_machine_init): Call `grub_pc_partition_map_init',
27118 `grub_amiga_partition_map_init' and
27119 `grub_apple_partition_map_init'.
27120 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
27121 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
27122 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
27123 `partition.h' and `pc_partition.h'.
27124 (grub_setup_SOURCES): Remove
27125 `disk/i386/pc/partition.c'. Add `kern/partition.c',
27126 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27127 (grub_emu_SOURCES): Likewise.
27128 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
27129 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
27130 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
27131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27132 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
27133 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27134 (grubof_SOURCES): Likewise.
27135 * disk/i386/pc/partition.c: File removed.
27136 * disk/powerpc/ieee1275/partition.c: Likewise.
27137 * include/grub/powerpc/ieee1275/partition.h: Likewise.
27138 * include/grub/i386/pc/partition.h: Likewise.
27139 * kern/partition.c: New file.
27140 * partmap/amiga.c: Likewise.
27141 * partmap/apple.c: Likewise.
27142 * partmap/pc.c: Likewise.
27143 * include/grub/partition.h: Likewise..
27144 * include/grub/pc_partition.h: Likewise.
27145 * util/grub-emu.c: Include <grub/partition.h> instead of
27146 <grub/machine/partition.h>.
27147 (main): Call `grub_pc_partition_map_init',
27148 `grub_amiga_partition_map_init' and
27149 `grub_apple_partition_map_init' and deinitialize afterwards.
27150 * util/i386/pc/biosdisk.c: Include `#include
27151 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27152 `<grub/machine/partition.h>'.
27153 * util/i386/pc/grub-setup.c: Likewise.
27154 * util/i386/pc/biosdisk.c: Likewise.
27155 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
27156 partition information in case of a PC partition.
27157 * util/i386/pc/grub-setup.c: Include `#include
27158 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27159 `<grub/machine/partition.h>'.
27160 (setup): Only access the PC specific partition information in case
27163 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
27165 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
27166 (grub_longjmp): Likewise.
27167 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
27169 * normal/powerpc/setjmp.S: New file.
27170 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27171 `normal/powerpc/setjmp.S'.
27172 (grubof_CFLAGS): Add `-DGRUBOF'.
27173 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
27174 [GRUB_UTIL && !GRUBOF].
27176 2004-11-16 Marco Gerards <metgerards@student.han.nl>
27178 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
27179 property named `name'. Correctly handle the error returned by
27180 `grub_ieee1275_finddevice' if a device can not be opened.
27182 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
27184 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
27185 `actual' for negativity.
27186 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27189 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27191 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
27192 (PAGE_OFFSET): New macro.
27193 (CRTC_ADDR_PORT): Likewise.
27194 (CRTC_DATA_PORT): Likewise.
27195 (START_ADDR_HIGH_REGISTER): Likewise.
27196 (START_ADDR_LOW_REGISTER): Likewise.
27197 (GRAPHICS_ADDR_PORT): Likewise.
27198 (GRAPHICS_DATA_PORT): Likewise.
27199 (READ_MAP_REGISTER): Likewise.
27200 (INPUT_STATUS1_REGISTER): Likewise.
27201 (INPUT_STATUS1_VERTR_BIT): Likewise.
27202 (page): New variable.
27203 (wait_vretrace): New function.
27204 (set_read_map): Likewise.
27205 (set_start_address): Likewise.
27206 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
27208 (check_vga_mem): Take the page into account.
27209 (write_char): Likewise.
27210 (write_cursor): Likewise.
27211 (scroll_up): Likewise. Copy the page to the page that is not
27212 shown and switch between both pages.
27213 (grub_vga_putchar): Fix off by one error.
27214 (grub_vga_cls): Wait for the vertical retrace. Take the page into
27217 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27219 Add support for iso9660 (including rockridge).
27221 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27222 (iso9660_mod_SOURCES): New variable.
27223 (iso9660_mod_CFLAGS): Likewise.
27224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27225 * include/grub/fs.h (grub_iso9660_init): New prototype.
27226 * util/grub-emu.c (main): Call `grub_iso9660_init'.
27227 * fs/iso9660.c: New file.
27229 * include/grub/misc.h (grub_strncat): New prototype.
27230 * kern/misc.c (grub_strncat): New function.
27232 * fs/hfs.c (grub_hfs_mount): Translate the error
27233 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
27234 * fs/jfs.c (grub_jfs_mount): Likewise.
27235 * fs/ufs.c (grub_ufs_mount): Likewise.
27237 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
27239 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
27240 which initialized BAT registers.
27241 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
27242 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27244 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
27245 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27247 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
27248 (grub_mapclaim): Likewise.
27249 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
27250 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
27253 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
27255 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
27256 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
27257 -ffreestanding and -msoft-float.
27259 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
27261 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
27262 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
27263 set in grub_ieee1275_flags.
27265 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
27267 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
27269 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
27270 grub_console_init first.
27271 Change the memory range used for grub_ieee1275_claim and
27272 grub_mm_init_region.
27273 Print an error message if the claim fails.
27274 Include <grub/misc.h>.
27276 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
27278 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
27279 Call grub_children_iterate for device nodes of type `scsi',
27281 (grub_ofdisk_open): Remove manual device alias resolution.
27282 Fix memory leak when device cannot be opened.
27283 * include/grub/powerpc/ieee1275/ieee1275.h
27284 (grub_children_iterate): New prototype.
27285 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
27287 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27288 Return -1 if args.size was -1.
27290 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27292 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
27293 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
27294 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
27295 Open Firmware's memory for it; claim memory from _start to _end.
27296 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
27297 (_end): New extern.
27298 (_start): Zero BSS from __bss_start to _end.
27299 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
27301 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
27303 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27305 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
27306 -1 if args.base was -1.
27308 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
27310 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
27311 escape sequence instead of a literal ^L. Also call
27312 grub_ofconsole_gotoxy.
27314 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
27316 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
27317 void * arguments to grub_addr_t. All callers updated. Also make
27318 the `result' argument optional.
27319 (grub_ieee1275_release): change void * arguments to grub_addr_t.
27320 All callers updated.
27322 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
27324 * commands/ls.c (grub_ls_list_files): Use the string following the
27325 initial ')', if present, as the filesystem path.
27326 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
27328 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
27330 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
27332 Make the source code of the menu interface more readable.
27334 * normal/menu.c: Include grub/mm.h.
27335 (TERM_WIDTH): New macro.
27336 (TERM_HEIGHT): Likewise.
27337 (TERM_INFO_HEIGHT): Likewise.
27338 (TERM_MARGIN): Likewise.
27339 (TERM_SCROLL_WIDTH): Likewise.
27340 (TERM_TOP_BORDER_Y): Likewise.
27341 (TERM_LEFT_BORDER_X): Likewise.
27342 (TERM_BORDER_WIDTH): Likewise.
27343 (TERM_MESSAGE_HEIGHT): Likewise.
27344 (TERM_BORDER_HEIGHT): Likewise.
27345 (TERM_NUM_ENTRIES): Likewise.
27346 (TERM_FIRST_ENTRY_Y): Likewise.
27347 (TERM_ENTRY_WIDTH): Likewise.
27348 (TERM_CURSOR_X): Likewise.
27349 (draw_border): Use macros instead of magic numbers.
27350 (print_entry): Likewise.
27351 (print_entries): Likewise.
27352 (run_menu): Likewise. Also, handle the key 'e'.
27353 (run_menu_entry): Ignore empty command lines.
27354 (print_message): Added a new argument EDIT. If EDIT is true,
27355 print a different message.
27356 (init_page): Likewise.
27357 (edit_menu_entry): New function. Not implemented yet.
27359 2004-09-17 Marco Gerards <metgerards@student.han.nl>
27361 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
27362 can be loaded from normal mode.
27364 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
27366 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
27367 (multiboot_mod_CFLAGS): New variables.
27368 * loader/i386/pc/linux_normal.c: New file.
27369 * loader/i386/pc/multiboot_normal.c: Likewise.
27371 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
27372 attribute `unused'.
27374 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
27375 `fdiro' to read the mode information from instead of `diro'.
27377 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
27378 looking up a symlink.
27380 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
27382 * normal/command.c (grub_command_execute): Don't parse the
27383 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
27384 flags of the command.
27386 * normal/menu.c (grub_menu_run): Fix typo.
27388 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
27390 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
27392 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
27393 `y + 1' instead of `y - 1'.
27395 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
27397 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
27399 From Hollis Blanchard <hollis@penguinppc.org>:
27400 * kern/misc.c (memmove): New alias for grub_memmove.
27401 (memcmp): New alias for grub_memcmp.
27402 (memset): New alias for grub_memset.
27403 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27404 Change "int handle" to "grub_ieee1275_phandle_t handle".
27405 * include/grub/powerpc/ieee1275/ieee1275.h
27406 (grub_ieee1275_get_property): Likewise.
27408 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
27410 Added normal mode command `chainloader' as module chain.mod, which
27411 depends on normal.mod and _chain.mod.
27413 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
27414 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
27415 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
27417 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
27418 but arguments parsing moved to ...
27419 (grub_chainloader_cmd): ... here. New function.
27420 * include/grub/i386/pc/chainloader.h: New file.
27421 * loader/i386/pc/chainloader_normal.c: Likewise.
27423 2004-09-11 Marco Gerards <metgerards@student.han.nl>
27425 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
27426 (grub_mkimage_LDFLAGS): Likewise.
27427 (grub_emu_SOURCES): Likewise.
27428 (kernel_img_HEADERS): Added fshelp.h.
27429 * fs/ext2.c: Include <grub/fshelp.h>.
27430 (FILETYPE_REG): New macro.
27431 (FILETYPE_INO_REG): Likewise.
27432 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
27434 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
27436 (grub_fshelp_node): New struct.
27437 (grub_ext2_data): Added member `diropen'. Changed member `inode'
27439 (grub_ext2_get_file_block): Removed function.
27440 (grub_ext2_read_block): New function.
27441 (grub_ext2_read_file): Replaced parameter `data' by `node'.
27442 This function was written.
27443 (grub_ext2_mount): Read the root inode. Create a diropen struct.
27444 (grub_ext2_find_file): Removed function.
27445 (grub_ext2_read_symlink): New function.
27446 (grub_ext2_iterate_dir): Likewise.
27447 (grub_ext2_open): Rewritten.
27448 (grub_ext2_dir): Rewritten.
27449 * include/grub/fshelp.h: New file.
27450 * fs/fshelp.c: Likewise.
27452 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
27454 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
27455 (print_message): Add a missing newline.
27456 (run_menu): Added timeout support.
27457 (run_menu_entry): New local function.
27458 (grub_menu_run): Added support for booting.
27460 * kern/loader.c (grub_loader_is_loaded): New function.
27462 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
27463 (grub_get_rtc): Exported.
27465 * include/grub/i386/pc/time.h: Include grub/symbol.h.
27466 (grub_get_rtc): Exported.
27468 * include/grub/normal.h (struct grub_command_list): Remove
27469 constant from the member `command'.
27471 * include/grub/loader.h (grub_loader_is_loaded): Declared.
27473 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
27475 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
27477 2004-08-28 Marco Gerards <metgerards@student.han.nl>
27479 Add support for the JFS filesystem.
27481 * fs/jfs.c: New file.
27482 * include/grub/fs.h (grub_jfs_init): New prototype.
27483 (grub_jfs_fini): New prototype.
27484 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
27485 (grub_emu_SOURCES): Likewise.
27486 (pkgdata_MODULES): Add jfs.mod.
27487 (jfs_mod_SOURCES): New variable.
27488 (jfs_mod_CFLAGS): Likewise.
27489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
27490 (grubof_SOURCES): Likewise.
27491 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27493 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27494 endian to the host endian.
27495 (grub_fat_utf16_to_utf8): Move function from there...
27496 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
27497 the endianness of the source string anymore.
27498 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27500 2004-08-24 Marco Gerards <metgerards@student.han.nl>
27502 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27503 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27504 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27505 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
27507 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27508 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27509 for `node_found' and `it_dir'.
27510 (grub_hfs_dir): Add prototype for `dir_hook'.
27512 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27513 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27514 and `indir32' to silence a gcc warning.
27516 * include/grub/fs.h (grub_hfs_init): New prototype.
27517 (grub_hfs_fini): Likewise.
27520 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27522 Each disk device has its own id now. This is useful to make use
27523 of multiple disk devices.
27525 * include/grub/disk.h (grub_disk_dev_id): New enum.
27526 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27527 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27529 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27530 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27532 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27533 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27535 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27536 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27538 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27539 "id" which is used by the cache manager.
27541 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27544 2004-08-18 Marco Gerards <metgerards@student.han.nl>
27546 * fs/hfs.c: New file.
27547 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27548 (grub_emu_SOURCES): Likewise.
27549 (pkgdata_MODULES): Add hfs.mod.
27550 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27551 (grubof_SOURCES): Likewise.
27552 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27554 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27555 * kern/misc.c (grub_strncasecmp): Add function.
27557 2004-08-14 Marco Gerards <metgerards@student.han.nl>
27559 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27562 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27563 (grub_ext2_dir): In case the directory entry type is unknown, read
27566 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27568 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27569 grub_load_linux instead of grub_rescue_cmd_linux as second
27570 argument of grub_rescue_register_command.
27572 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27574 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27576 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27578 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27579 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27580 `loader/powerpc/ieee1275/linux.c',
27581 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27582 * include/grub/powerpc/ieee1275/ieee1275.h
27583 (grub_ieee1275_release): New prototype.
27584 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27585 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27586 normal, boot, linux and linux_normal.
27587 * loader/powerpc/ieee1275/linux.c: New file.
27588 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27590 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27592 * normal/arg.c (grub_arg_parse): Correct error handling after
27593 reallocating the argumentlist (check if `argl' is not null instead
27594 of checking if `args' is not null).
27595 * kern/mm.c (grub_realloc): Return the same pointer when using the
27596 same region, instead of returning the header address.
27598 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27600 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27601 one block instead of two when looking for the initial partition.
27602 (grub_partition_probe): Initialize the local variable `p' with 0.
27603 Use base 10 for the grub_strtoul call.
27604 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27605 need for one local variable.
27606 (grub_strtoul): Don't add the new value to `num', instead of that
27609 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27611 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27612 (pxeboot_img_SOURCES): New variable.
27613 (pxeboot_img_ASFLAGS): Likewise.
27614 (pxeboot_img_LDFLAGS): Likewise.
27615 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27616 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27617 <lode_leroy@hotmail.com>.
27619 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27621 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27622 there was no input.
27624 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27626 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27627 the history buffer logic.
27629 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27631 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27632 (FILETYPE_INO_SYMLINK): New macros.
27633 (grub_ext2_find_file): Check if the node is a directory using the
27634 inode stat information instead of using the filetype in the
27635 dirent. Exclude the first character of an absolute symlink.
27636 (grub_ext2_dir): Mask out the filetype part of the mode member of
27639 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27641 Add support for UFS version 1 and 2. Add support for the minix
27642 filesystem version 1 and 2, both the variants with 14 and 30 long
27645 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27647 (grub_emu_SOURCES): Likewise.
27648 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27649 (ufs_mod_SOURCES): New variable.
27650 (ufs_mod_CFLAGS): Likewise.
27651 (minix_mod_SOURCES): Likewise.
27652 (minix_mod_CFLAGS): Likewise.
27653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27655 (grubof_SOURCES): Likewise.
27656 * fs/ufs.c: New file.
27657 * fs/minix.c: New file.
27658 * include/grub/fs.h (grub_ufs_init): New prototype.
27659 (grub_ufs_fini): Likewise.
27660 (grub_minix_init): Likewise.
27661 (grub_minix_fini): Likewise.
27662 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27665 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27668 commands/ls.c, commands/terminal.c, commands/boot.c,
27669 commands/cmp.c and commands/cat.c.
27670 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27672 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27675 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27677 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27678 and grub_, respectively. Because the conversion is trivial and
27679 mechanical, I omit the details here. Please refer to the CVS
27680 if you need more information.
27682 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27684 * include/pupa: Renamed to ...
27685 * include/grub: ... this.
27686 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27687 * util/i386/pc/grub-mkimage.c: ... this.
27688 * util/i386/pc/pupa-setup.c: Renamed to ...
27689 * util/i386/pc/grub-setup.c: ... this.
27690 * util/pupa-emu.c: Renamed to ...
27691 * util/grub-emu.c: ... this.
27693 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27695 Add support for the newworld apple macintosh (PPC). This has been
27696 tested on the powerbook 2000 only. It only adds support for
27697 generic ieee1275 functions, console and disk support. This should
27698 be easy to port to other architectures with support for Open
27701 * configure.ac: Accept the powerpc as host_cpu. In the case of
27702 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27703 specific tests are only executed while building for the i386.
27704 Inverse test for crosscompile.
27705 * genmk.rb (Utility): Allow assembler files.
27706 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27707 * conf/powerpc-ieee1275.rmk: New file.
27708 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27709 * disk/powerpc/ieee1275/partition.c: Likewise.
27710 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27711 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27712 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27713 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27714 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27715 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27716 * include/pupa/powerpc/ieee1275/loader.h
27717 * include/pupa/powerpc/setjmp.h: Likewise.
27718 * include/pupa/powerpc/types.h: Likewise.
27719 * kern/powerpc/ieee1275/init.c: Likewise.
27720 * kern/powerpc/ieee1275/openfw.c: Likewise.
27721 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27723 These files were written by Johan Rydberg
27724 (jrydberg@night.trouble.net) and I only modified them slightly.
27726 * boot/powerpc/ieee1275/cmain.c: New file.
27727 * boot/powerpc/ieee1275/crt0.S: Likewise.
27728 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27729 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27731 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27733 * Makefile.in: Update copyright.
27734 * genmodsrc.sh: Likewise.
27735 * gensymlist.sh: Likewise.
27736 * term/i386/pc/vga.c: Indent correctly.
27738 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27739 bugreporting address.
27740 * util/i386/pc/pupa-setup.c (usage): Likewise,
27741 (main): Call pupa_ext2_init and pupa_ext2_fini.
27743 * fs/fat.c (log2): Renamed to ...
27744 (fat_log2): ... this.
27745 All callers changed.
27746 * kern/misc.c (memcpy): Alias to pupa_memmove.
27747 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27749 * util/console.c (pupa_ncurses_fini): Return 0.
27751 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27752 Move fail label here.
27753 [__GNU__]: Don't warn when using stat.
27754 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27755 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27756 long int. Use strtol instead of strtoul.
27758 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27760 * commands/boot.c: New file.
27761 * commands/cat.c: Likewise.
27762 * commands/cmp.c: Likewise.
27763 * commands/ls.c: Likewise.
27764 * commands/terminal.c: Likewise.
27765 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27766 (pupa_register_command): Changed interface to match the new
27768 (pupa_command_execute): Changed (almost rewritten) so it uses
27769 pupa_split_command. Added support for setting variables using the
27771 (rescue_command): Changed to work with the new argument parser.
27772 (terminal_command): Moved from here to commands/terminal.c.
27773 (set_command): New function.
27774 (unset_command): New function.
27775 (insmod_command): New function.
27776 (rmmod_command): New function.
27777 (lsmod_command): New function.
27778 (pupa_command_init): Don't initialize the command terminal
27779 anymore. Initialize the commands set, unset, insmod, rmmod and
27781 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27782 (kernel_img_HEADERS): Add arg.h and env.h.
27783 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27784 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27785 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27787 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27789 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27790 (boot_mod_SOURCES): New variable.
27791 (terminal_mod_SOURCES): Likewise.
27792 (ls_mod_SOURCES): Likewise.
27793 (cmp_mod_SOURCES): Likewise.
27794 (cat_mod_SOURCES): Likewise.
27796 * normal/arg.c: New file.
27797 * kern/env.c: Likewise.
27798 * include/pupa/arg.h: Likewise.
27799 * include/pupa/env.h: Likewise.
27800 * font/manager.c (font_command): Changed to match argument parsing
27802 (PUPA_MOD_INIT): Likewise.
27803 * hello/hello.c (pupa_cmd_hello): Likewise.
27804 (PUPA_MOD_INIT): Likewise.
27805 * include/pupa/disk.h: Include <pupa/device.h>.
27806 (pupa_print_partinfo): New prototype.
27807 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27808 (pupa_dl_get_prefix): Likewise.
27809 * include/pupa/misc.h: Include <pupa/err.h>.
27810 (pupa_isgraph): New prototype.
27811 (pupa_isdigit): Likewise.
27812 (pupa_split_cmdline): Likewise.
27813 * include/pupa/normal.h: Include <pupa/arg.h>.
27814 (pupa_command): Changed the prototype of the member `func' to
27815 match the argument parsing interface. Added member `options'.
27816 (pupa_register_command): Updated to match function.
27817 (pupa_arg_parse): New prototype.
27818 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27819 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27820 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27821 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27822 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27823 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27824 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27825 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27826 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27827 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27828 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27829 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27830 * kern/disk.c: Include <pupa/file.h>.
27831 (pupa_print_partinfo): New function.
27832 * kern/dl.c: Include <pupa/env.h>.
27833 (pupa_dl_dir): Variable removed.
27834 (pupa_dl_load): Use the environment variable `prefix' instead of
27835 the variable pupa_dl_dir.
27836 (pupa_dl_set_prefix): Function removed.
27837 (pupa_dl_get_prefix): Likewise.
27838 * kern/i386/pc/init.c: Include <pupa/env.h>.
27839 (pupa_machine_init): Use the environment variable `prefix' instead of
27840 using pupa_dl_set_prefix to set the prefix.
27841 * kern/main.c: Include <pupa/env.h>.
27842 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27843 using pupa_dl_get_prefix to get the prefix.
27844 * kern/misc.c: Include <pupa/env.h>.
27845 (pupa_isdigit): New function.
27846 (pupa_isgraph): Likewise.
27847 (pupa_ftoa): Likewise.
27848 (pupa_vsprintf): Added support for printing values of the type
27849 `double'. Make it possible to format variable output when using
27850 formatting like `%1.2%f'.
27851 (pupa_split_cmdline): New function.
27852 * kern/rescue.c: Include <pupa/env.h>.
27853 (next_word): Removed function.
27854 (pupa_rescue_cmd_prefix): Likewise.
27855 (pupa_rescue_cmd_set): New function.
27856 (pupa_rescue_cmd_unset): New function.
27857 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27858 split the command line instead of splitting it here. Added
27859 support for setting variables using the syntax `foo=bar'. Don't
27860 initialize the prefix command anymore. Initialized the set and
27862 * normal/cmdline.c: Include <pupa/env.h>.
27863 (pupa_tab_complete): Added prototypes for print_simple_completion,
27864 print_partition_completion, add_completion, iterate_commands,
27865 iterate_dev, iterate_part and iterate_dir. Moved code to print
27866 partition information from here to kern/disk.c.
27867 (pupa_cmdline_run): Don't check if the function exists anymore.
27868 * normal/main.c: Include <pupa/env.h>.
27869 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27870 instead of using pupa_dl_get_prefix to get the prefix.
27871 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27872 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27874 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27875 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27876 ((unused))' to silence a gcc warning.
27877 (pupa_vga_setcolor): Likewise.
27878 (debug_command): Changed to match argument parsing
27880 * util/pupa-emu.c: Include <pupa/env.h>.
27881 (options): Added 0's for unused fields to silence a gcc warning.
27883 (main): Use the environment variable `prefix' instead of using
27884 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27885 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27888 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27889 * util/misc.c: Include <malloc.h>.
27890 (pupa_malloc): Rewritten so errors are correctly reported.
27891 (pupa_realloc): Likewise.
27892 (pupa_memalign): Likewise.
27893 (pupa_mm_init_region): Declare unused variables with
27894 `__attribute__ ((unused))' to silence a gcc warning.
27895 * normal/i386/setjmp.S: Remove tab at the end of the file to
27896 silence a gcc warning.
27897 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27898 variables with `__attribute__ ((unused))' to silence a gcc
27900 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27901 local variable i unsigned to silence a gcc warning.
27903 * kern/term.c: Include <pupa/misc.h>.
27904 (pupa_more_lines): New variable.
27905 (pupa_more): Likewise.
27906 (pupa_putcode): When the pager is active pause at the end of every
27908 (pupa_set_more): New function.
27909 * include/pupa/term.h (pupa_set_more): New prototype.
27912 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27914 Now this project is GRUB 2 rather than PUPA. The location of
27915 the CVS repository was moved to GRUB's.
27917 * configure.ac: Use bug-grub as the reporting address.
27918 Use GRUB instead of PUPA.
27919 Change the version number to 1.90.
27921 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27923 * genkernsyms.sh: Updated copyright information.
27924 * genmk.rb: Likewise.
27925 * genmodsrc.sh: Likewise.
27926 * gensymlist.sh: Likewise.
27927 * boot/i386/pc/boot.S: Likewise.
27928 * boot/i386/pc/diskboot.S: Likewise.
27929 * disk/i386/pc/biosdisk.c: Likewise.
27930 * disk/i386/pc/partition.c: Likewise.
27931 * font/manager.c: Likewise.
27932 * fs/ext2.c: Likewise.
27933 * fs/fat.c: Likewise.
27934 * include/pupa/boot.h: Likewise.
27935 * include/pupa/device.h: Likewise.
27936 * include/pupa/disk.h: Likewise.
27937 * include/pupa/dl.h: Likewise.
27938 * include/pupa/elf.h: Likewise.
27939 * include/pupa/err.h: Likewise.
27940 * include/pupa/file.h: Likewise.
27941 * include/pupa/font.h: Likewise.
27942 * include/pupa/fs.h: Likewise.
27943 * include/pupa/kernel.h: Likewise.
27944 * include/pupa/loader.h: Likewise.
27945 * include/pupa/misc.h: Likewise.
27946 * include/pupa/mm.h: Likewise.
27947 * include/pupa/net.h: Likewise.
27948 * include/pupa/normal.h: Likewise.
27949 * include/pupa/rescue.h: Likewise.
27950 * include/pupa/setjmp.h: Likewise.
27951 * include/pupa/symbol.h: Likewise.
27952 * include/pupa/term.h: Likewise.
27953 * include/pupa/types.h: Likewise.
27954 * include/pupa/i386/setjmp.h: Likewise.
27955 * include/pupa/i386/types.h: Likewise.
27956 * include/pupa/i386/pc/biosdisk.h: Likewise.
27957 * include/pupa/i386/pc/boot.h: Likewise.
27958 * include/pupa/i386/pc/console.h: Likewise.
27959 * include/pupa/i386/pc/init.h: Likewise.
27960 * include/pupa/i386/pc/kernel.h: Likewise.
27961 * include/pupa/i386/pc/linux.h: Likewise.
27962 * include/pupa/i386/pc/loader.h: Likewise.
27963 * include/pupa/i386/pc/memory.h: Likewise.
27964 * include/pupa/i386/pc/multiboot.h: Likewise.
27965 * include/pupa/i386/pc/partition.h: Likewise.
27966 * include/pupa/i386/pc/time.h: Likewise.
27967 * include/pupa/i386/pc/vga.h: Likewise.
27968 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27969 * include/pupa/util/getroot.h: Likewise.
27970 * include/pupa/util/misc.h: Likewise.
27971 * include/pupa/util/resolve.h: Likewise.
27972 * kern/device.c: Likewise.
27973 * kern/disk.c: Likewise.
27974 * kern/dl.c: Likewise.
27975 * kern/err.c: Likewise.
27976 * kern/file.c: Likewise.
27977 * kern/fs.c: Likewise.
27978 * kern/loader.c: Likewise.
27979 * kern/main.c: Likewise.
27980 * kern/misc.c: Likewise.
27981 * kern/mm.c: Likewise.
27982 * kern/rescue.c: Likewise.
27983 * kern/term.c: Likewise.
27984 * kern/i386/dl.c: Likewise.
27985 * kern/i386/pc/init.c: Likewise.
27986 * kern/i386/pc/lzo1x.S: Likewise.
27987 * kern/i386/pc/startup.S: Likewise.
27988 * loader/i386/pc/chainloader.c: Likewise.
27989 * loader/i386/pc/linux.c: Likewise.
27990 * loader/i386/pc/multiboot.c: Likewise.
27991 * normal/cmdline.c: Likewise.
27992 * normal/command.c: Likewise.
27993 * normal/main.c: Likewise.
27994 * normal/menu.c: Likewise.
27995 * normal/i386/setjmp.S: Likewise.
27996 * term/i386/pc/console.c: Likewise.
27997 * term/i386/pc/vga.c: Likewise.
27998 * util/console.c: Likewise.
27999 * util/genmoddep.c: Likewise.
28000 * util/misc.c: Likewise.
28001 * util/pupa-emu.c: Likewise.
28002 * util/resolve.c: Likewise.
28003 * util/unifont2pff.rb: Likewise.
28004 * util/i386/pc/biosdisk.c: Likewise.
28005 * util/i386/pc/getroot.c: Likewise.
28006 * util/i386/pc/pupa-mkimage.c: Likewise.
28007 * util/i386/pc/pupa-setup.c: Likewise.
28009 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
28011 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
28012 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
28013 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
28014 reading and reset it after reading.
28015 (pupa_ext2_close): Return PUPA_ERR_NONE.
28017 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
28019 (struct linux_kernel_header): Add kernel_version and
28021 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
28022 pupa_file_read succeeds.
28023 (pupa_rescue_cmd_initrd): Implement.
28025 2003-12-03 Marco Gerards <metgerards@student.han.nl>
28027 * fs/ext2.c (pupa_ext2_label): New function.
28028 (pupa_ext2_fs): Added label.
28029 * fs/fat.c (pupa_fat_label): New function.
28030 (pupa_fat_fs): Added label.
28031 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
28033 * kern/misc.c (pupa_strndup): New function.
28034 * include/pupa/misc.h (pupa_strndup): New prototype.
28036 * include/pupa/normal.h: Include <pupa/err.h>.
28037 (pupa_set_history): New prototype.
28038 (pupa_iterate_commands): New prototype.
28039 * normal/cmdline.c: Include <pupa/machine/partition.h>,
28040 <pupa/disk.h>, <pupa/file.h>.
28041 (hist_size): New variable.
28042 (hist_lines): Likewise.
28043 (hist_end): Likewise.
28044 (hist_used): Likewise.
28045 (pupa_set_history): New function.
28046 (pupa_history_get): Likewise.
28047 (pupa_history_add): Likewise.
28048 (pupa_history_replace): Likewise.
28049 (pupa_tab_complete): Likewise.
28050 (pupa_cmdline_run): Added tab completion and history buffer. Tab
28051 completion shows partitionnames while completing partitions, this
28052 feature was suggested by Jeff Bailey.
28053 * normal/command.c (pupa_iterate_commands): New function.
28054 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
28055 (pupa_normal_init): Initialize history buffer.
28056 (PUPA_MOD_INIT): Likewise.
28057 (pupa_normal_fini): Free the history buffer.
28058 (PUPA_MOD_FINI): Likewise.
28060 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
28063 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
28064 * configure.ac [i386]: Check for regparam bug.
28065 (NESTED_FUNC_ATTR) [! i386]: Defined.
28067 2003-11-17 Marco Gerards <metgerards@student.han.nl>
28069 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
28070 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
28071 (pupa_emu_SOURCES): New variable.
28072 (pupa_emu_LDFLAGS): Likewise.
28073 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
28074 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
28075 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
28076 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28077 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
28078 (pupa_jmp_buf): New typedef.
28079 (pupa_setjmp) [PUPA_UTIL]: New macro.
28080 (pupa_longjmp) [PUPA_UTIL]: Likewise.
28081 * include/pupa/term.h (struct pupa_term): New member `refresh'.
28082 (pupa_refresh): New prototype.
28083 * include/pupa/util/getroot.h: New file.
28084 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
28086 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
28087 (pupa_rescue_cmd_cat): Likewise.
28088 (pupa_rescue_cmd_ls): Likewise.
28089 (pupa_rescue_cmd_testload): Likewise.
28090 (pupa_rescue_cmd_lsmod): Likewise.
28091 * normal/cmdline.c (pupa_cmdline_get): Likewise.
28092 * normal/menu.c (run_menu): Likewise.
28093 * kern/term.c (pupa_cls): Likewise.
28094 (pupa_refresh): New function.
28095 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
28096 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28097 * util/console.c: New file.
28099 * util/i386/pc/getroot.c: New file.
28100 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
28101 (pupa_putchar): New function.
28102 (pupa_refresh): Likewise.
28103 (xgetcwd): Function moved to ...
28104 (strip_extra_slashes): Likewise.
28105 (get_prefix): Likewise.
28106 * util/i386/pc/getroot.c: ... here.
28107 (find_root_device): Function moved and renamed to...
28108 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
28109 Changed all callers.
28110 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
28112 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
28113 Changed all callers.
28114 * util/misc.c (pupa_memalign): New function.
28115 (pupa_mm_init_region): Likewise.
28116 (pupa_register_exported_symbols): Likewise.
28117 (pupa_putchar): Function removed.
28118 * util/pupa-emu.c: New file.
28120 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
28122 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
28123 (_multiboot_mod_SOURCES): New variable.
28124 (_multiboot_mod_CFLAGS): Likewise.
28125 * loader/i386/pc/multiboot.c: New file.
28126 * include/pupa/i386/pc/multiboot.h: Likewise.
28127 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
28128 (pupa_multiboot_real_boot): New function.
28129 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
28130 (pupa_multiboot_real_boot): New prototype.
28131 (pupa_rescue_cmd_multiboot): Likewise
28132 (pupa_rescue_cmd_module): Likewise.
28134 * kern/loader.c (pupa_loader_set): Continue when
28135 pupa_loader_unload_func() fails.
28136 (pupa_loader_unset): New function.
28137 * include/pupa/loader.h (pupa_loader_unset): New prototype.
28139 * kern/misc.c (pupa_stpcpy): New function.
28140 * include/pupa/misc.h (pupa_stpcpy): New prototype.
28142 2003-11-12 Marco Gerards <metgerards@student.han.nl>
28144 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
28145 for available extensions.
28147 * include/pupa/i386/pc/time.h: New file.
28148 * kern/disk.c: Include <pupa/machine/time.h>.
28149 (PUPA_CACHE_TIMEOUT): New macro.
28150 (pupa_last_time): New variable.
28151 (pupa_disk_open): Flush the cache when there was a timeout.
28152 (pupa_disk_close): Reset the timer.
28153 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
28155 * util/misc.c: Include <sys/times.h>
28156 (pupa_get_rtc): New function.
28158 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28160 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
28162 (pupa_ext2_get_file_block): Use blocks member.
28164 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
28165 first block. Return -1 instead of pupa_errno on error.
28167 2003-10-27 Marco Gerards <metgerards@student.han.nl>
28169 * README: In the pupa-mkimage example use _chain instead of chain
28170 and ext2 instead of fat.
28171 * TODO: Replace ext2fs with jfs as an example. Add an item for
28172 adding journal playback for ext2fs.
28173 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
28174 (pkgdata_MODULES): Added ext2.mod.
28175 (ext2_mod_SOURCES): New variable.
28176 (ext2_mod_CFLAGS): Likewise.
28177 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
28178 * include/pupa/misc.h (pupa_strncpy): New prototype.
28179 (pupa_strcat): Likewise.
28180 (pupa_strncmp): Likewise.
28181 * kern/misc.c (pupa_strcat): Enable function.
28182 (pupa_strncpy): New function.
28183 (pupa_strncmp): Likewise.
28184 * fs/ext2.c: New file.
28186 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
28187 when the read failed before retrying.
28188 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
28189 (_FILE_OFFSET_BITS): Likewise.
28190 * configure.ac: Added AC_SYS_LARGEFILE.
28192 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28194 * genmk.rb (PModule#rule): Make sure to get only symbol names
28195 from the output of nm.
28196 Reported by Robert Millan <rmh.grub@aybabtu.com>.
28198 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28200 I forgot to check in these changes for a long time. This adds
28201 incomplete support for VGA console, and this is still very
28202 buggy. Also, a lot of consideration is required for I18N,
28203 UNICODE, and VGA font issues. Therefore, assume that this is
28204 such that "better than nothing".
28206 * font/manager.c: New file.
28207 * include/pupa/font.h: Likewise.
28208 * include/pupa/i386/pc/vga.h: Likewise.
28209 * term/i386/pc/vga.c: Likewise.
28210 * util/unifont2pff.rb: Likewise.
28212 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
28213 (pkgdata_MODULES): Added vga.mod and font.mod.
28214 (vga_mod_SOURCES): New variables.
28215 (vga_mod_CFLAGS): Likewise.
28216 (font_mod_SOURCES): Likewise.
28217 (font_mod_CFLAGS): Likewise.
28219 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
28221 * include/pupa/term.h: Include pupa/err.h.
28222 (struct pupa_term): Added init and fini.
28223 Changed the argument of putchar to pupa_uint32_t.
28225 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
28226 (pupa_console_real_putchar): New prototype.
28227 (pupa_console_putchar): Removed.
28228 (pupa_console_checkkey): Exported.
28229 (pupa_console_getkey): Likewise.
28231 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
28234 * kern/term.c (pupa_term_set_current): Rewritten.
28235 (pupa_putchar): Likewise.
28236 (pupa_putcode): New function.
28238 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
28239 (pupa_console_real_putchar): ... this.
28240 (pupa_vga_set_mode): New function.
28241 (pupa_vga_get_font): Likewise.
28243 * normal/command.c: Include pupa/term.h.
28244 (terminal_command): New function.
28245 (pupa_command_init): Register the command "terminal".
28247 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
28248 (DISP_UP): Likewise.
28249 (DISP_RIGHT): Likewise.
28250 (DISP_DOWN): Likewise.
28251 (DISP_HLINE): Likewise.
28252 (DISP_VLINE): Likewise.
28253 (DISP_UL): Likewise.
28254 (DISP_UR): Likewise.
28255 (DISP_LL): Likewise.
28256 (DISP_LR): Likewise.
28258 * term/i386/pc/console.c (pupa_console_putchar): New function.
28260 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
28262 * util/resolve.c (pupa_util_resolve_dependencies): BUG
28263 FIX. Reverse the path_list.
28265 * include/pupa/normal.h: Export pupa_register_command and
28266 pupa_unregister_command.
28268 * hello/hello.c (pupa_cmd_hello): New module.
28269 * conf/i386-pc.rmk: Added hello.mod.
28271 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
28273 * kern/i386/pc/lzo1x.S: New file.
28275 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
28276 (compress_kernel): New variable.
28277 (generate_image): Heavily modified to support compressing a
28278 large part of the core image.
28280 * util/misc.c (pupa_util_read_image): Fix a file descriptor
28282 (pupa_util_load_image): New function.
28284 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
28285 (pupa_compressed_size): New variable.
28286 (codestart): Enable Gate A20 here.
28287 Decompress the compressed part of the core image.
28288 Rearrange the code to put functions and variables which are
28289 required for initialization in the non-compressed part.
28292 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
28295 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
28297 * include/pupa/i386/pc/kernel.h
28298 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
28299 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
28300 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28301 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28302 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
28304 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
28306 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
28307 (Utility#rule): Likewise.
28309 * configure.ac: Check if LZO is available.
28311 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
28313 * include/pupa/normal.h: New file.
28314 * include/pupa/setjmp.h: Likewise.
28315 * include/pupa/i386/setjmp.h: Likewise.
28316 * normal/cmdline.c: Likewise.
28317 * normal/command.c: Likewise.
28318 * normal/main.c: Likewise.
28319 * normal/menu.c: Likewise.
28320 * normal/i386/setjmp.S: Likewise.
28322 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
28323 (pupa_rescue_cmd_initrd): Likewise.
28325 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
28328 * kern/i386/pc/startup.S (translation_table): New variable.
28329 (translate_keycode): New function.
28330 (pupa_console_getkey): Call translate_keycode.
28332 * kern/rescue.c (attempt_normal_mode): New function.
28333 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
28334 it failed, print a message.
28336 * kern/mm.c (pupa_real_malloc): Print more information when a
28337 free magic is broken.
28338 (pupa_free): If the first free header is not free actually, set
28341 * kern/main.c (pupa_load_normal_mode): Just load the module
28343 (pupa_main): Don't print the message
28344 "Entering into rescue mode..." here.
28346 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
28348 (pupa_rescue_cmd_initrd): Likewise.
28349 (pupa_rescue_cmd_initrd): Likewise.
28351 * include/pupa/symbol.h (FUNCTION): Specify the type.
28352 (VARIABLE): Likewise.
28354 * include/pupa/err.h (pupa_err_t): Added
28355 PUPA_ERR_UNKNOWN_COMMAND.
28357 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
28358 (pupa_dl_get_prefix): Likewise.
28360 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
28361 Added _chain.mod and _linux.mod instead of chain.mod and
28363 (chain_mod_SOURCES): Renamed to ...
28364 (_chain_mod_SOURCES): ... this.
28365 (chain_mod_CFLAGS): Renamed to ...
28366 (_chain_mod_CFLAGS): ... this.
28367 (linux_mod_SOURCES): Renamed to ...
28368 (_linux_mod_SOURCES): ... this.
28369 (linux_mod_CFLAGS): Renamed to ...
28370 (_linux_mod_CFLAGS): ... this.
28371 (normal_mod_SOURCES): New variable.
28372 (normal_mod_CFLAGS): Likewise.
28373 (normal_mod_ASFLAGS): Likewise.
28375 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
28377 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
28380 * kern/dl.c (pupa_dl_ref): Refer depending modules
28382 (pupa_dl_unref): Unrefer depending modules recursively.
28383 Don't call pupa_dl_unload implicitly, because PUPA can crash if
28384 a module is unloaded before one depending on that module is
28386 (pupa_dl_unload): Unload depending modules explicitly,
28389 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
28391 * include/pupa/i386/pc/linux.h: New file.
28392 * loader/i386/pc/linux.c: Likewise.
28394 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
28396 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
28397 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
28398 of PUPA_CHAINLOADER_BOOT_SECTOR.
28400 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
28401 (pupa_linux_prot_size): New variable.
28402 (pupa_linux_tmp_addr): Likewise.
28403 (pupa_linux_real_addr): Likewise.
28404 (pupa_linux_boot_zimage): New function.
28405 (pupa_linux_boot_bzimage): Likewise.
28407 * kern/i386/pc/init.c (struct mem_region): New structure.
28408 (MAX_REGIONS): New macro.
28409 (mem_regions): New variable.
28410 (num_regions): Likewise.
28411 (pupa_os_area_addr): Likewise.
28412 (pupa_os_area_size): Likewise.
28413 (pupa_lower_mem): Likewise.
28414 (pupa_upper_mem): Likewise.
28415 (add_mem_region): New function.
28416 (compact_mem_regions): Likewise.
28417 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
28418 the size of the conventional memory and that of so-called upper
28419 memory (before the first memory hole).
28420 Instead of adding each found region to free memory, use
28421 add_mem_region and add them after removing overlaps.
28422 Also, add only 1/4 of the upper memory to free memory. The rest
28423 is used for loading OS images. Maybe this is ad hoc, but this
28424 makes it much easier to relocate OS images when booting.
28426 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
28427 (pupa_enter_rescue_mode): Don't register initrd and module.
28429 * kern/mm.c: Include pupa/dl.h.
28431 * kern/main.c: Include pupa/file.h and pupa/device.h.
28433 * kern/loader.c (pupa_loader_load_module_func): Removed.
28434 (pupa_loader_load_module): Likewise.
28436 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
28439 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
28440 (pupa_linux_tmp_addr): Likewise.
28441 (pupa_linux_real_addr): Likewise.
28442 (pupa_linux_boot_zimage): Likewise.
28443 (pupa_linux_boot_bzimage): Likewise.
28445 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
28446 (pupa_upper_mem): Likewise.
28447 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
28448 module is too dangerous.
28450 * include/pupa/loader.h (pupa_os_area_addr): Declared.
28451 (pupa_os_area_size): Likewise.
28452 (pupa_loader_set): Remove the first argument. Loader doesn't
28453 manage modules or initrd any longer.
28454 (pupa_loader_load_module): Removed.
28456 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
28457 (linux_mod_SOURCES): New variable.
28458 (linux_mod_CFLAGS): Likewise.
28460 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
28462 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
28463 the length of a blocklist correctly.
28465 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
28466 Use ioctl only if the OS file is a block device.
28467 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
28468 not very useful for normal files.
28470 * kern/main.c (pupa_set_root_dev): New function.
28471 (pupa_load_normal_mode): Likewise.
28472 (pupa_main): Call those above.
28474 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
28477 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
28479 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28481 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
28482 (setup): Configure the installed partition information and the
28485 * loader/i386/pc/chainloader.c (my_mod): New variable.
28486 (pupa_chainloader_unload): New function.
28487 (pupa_rescue_cmd_chainloader): Refer itself.
28488 (PUPA_MOD_INIT): Save its own module in MY_MOD.
28490 * kern/i386/pc/startup.S (install_partition): Removed.
28491 (version_string): Likewise.
28492 (config_file): Likewise.
28493 (pupa_install_dos_part): New variable.
28494 (pupa_install_bsd_part): Likewise.
28495 (pupa_prefix): Likewise.
28496 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28498 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28500 (make_install_device): New function.
28501 (pupa_machine_init): Set the dl prefix.
28503 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28504 (buf): Renamed to ...
28505 (linebuf): ... this.
28506 (pupa_rescue_cmd_prefix): New function.
28507 (pupa_rescue_cmd_insmod): Likewise.
28508 (pupa_rescue_cmd_rmmod): Likewise.
28509 (pupa_rescue_cmd_lsmod): Likewise.
28510 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28513 * kern/mm.c (pupa_memalign): If failed even after invalidating
28514 disk caches, unload unneeded modules and retry.
28516 * kern/misc.c (pupa_memmove): New function.
28517 (pupa_memcpy): Removed.
28518 (pupa_strcpy): New function.
28519 (pupa_itoa): Made static.
28521 * kern/dl.c (pupa_dl_iterate): New function.
28522 (pupa_dl_ref): Likewise.
28523 (pupa_dl_unref): Likewise.
28524 (pupa_dl_unload): Return if succeeded or not.
28525 (pupa_dl_unload_unneeded): New function.
28526 (pupa_dl_unload_all): Likewise.
28527 (pupa_dl_init): Renamed to ...
28528 (pupa_dl_set_prefix): ... this.
28529 (pupa_dl_get_prefix): New function.
28531 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28532 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28533 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28534 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28535 (pupa_install_dos_part): Declared.
28536 (pupa_install_bsd_part): Likewise.
28537 (pupa_prefix): Likewise.
28538 (pupa_boot_drive): Likewise.
28540 * include/pupa/types.h: Fix a typo.
28542 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28544 (pupa_memmove): Declared.
28545 (pupa_strcpy): Likewise.
28547 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28548 pupa_mod_init takes one argument, its own module.
28549 (pupa_dl_unload_unneeded): Declared.
28550 (pupa_dl_unload_all): Likewise.
28551 (pupa_dl_ref): Likewise.
28552 (pupa_dl_unref): Likewise.
28553 (pupa_dl_iterate): Likewise.
28554 (pupa_dl_init): Renamed to ...
28555 (pupa_dl_set_prefix): ... this.
28556 (pupa_dl_get_prefix): Declared.
28558 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
28559 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
28561 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28562 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28564 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28565 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28567 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28569 * util/i386/pc/pupa-setup.c (setup): Define the internal
28570 function find_first_partition_start at the top level, because GCC
28571 3.0.x cannot compile internal functions in deeper scopes
28573 (find_root_device): Use lstat instead of stat.
28574 Don't follow symbolic links.
28575 Fix the path-constructing code.
28577 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28578 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28579 by a BLKGETSIZE ioctl first, because block devices don't fill
28580 the member st_mode of the structure stat on Linux.
28581 [__linux__] (linux_find_partition): Use a temporary buffer
28582 REAL_DEV for the working space. Copy it to DEV before returning.
28583 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28584 buffer cache consistent.
28585 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28586 strncmp. The previous value was merely wrong.
28587 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28589 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28590 FAT size is 12. The previous value was merely wrong.
28592 * kern/main.c (pupa_main): Don't split the starting message from
28595 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28596 LF, because BIOS goes crazy about character attributes in this
28599 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28601 * include/i386/pc/util/biosdisk.h: New file.
28602 * util/i386/pc/biosdisk.c: Likewise.
28603 * util/i386/pc/pupa-setup.c: Likewise.
28605 * Makefile.in (INCLUDE_DISTFILES): Added
28606 include/pupa/i386/pc/util/biosdisk.h.
28607 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28608 directory util/i386/pc.
28609 (install-local): Added a rule for sbin_UTILITIES.
28610 (uninstall): Likewise.
28612 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28614 * util/misc.c (xrealloc): New function.
28615 (pupa_malloc): Likewise.
28616 (pupa_free): Likewise.
28617 (pupa_realloc): Likewise.
28618 (pupa_stop): Likewise.
28619 (pupa_putchar): Likewise.
28621 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28623 * include/pupa/util/misc.h (xrealloc): Declared.
28625 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28627 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28628 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28630 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28631 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28633 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28634 way should be implemented.
28635 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28637 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28638 the size of NAME for safety.
28639 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28642 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28643 (pupa_setup_SOURCES): Likewise.
28645 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28647 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28649 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28650 bunch of pushl's from pusha, because this destroys the return
28653 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28655 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28656 This means that any missing prototypes could be fatal. Also, you
28657 must take care when writing assembly code. See the comments at
28658 the beginning of startup.S, for more details.
28660 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28661 compilation mechanism.
28662 (pupa_chainloader_real_boot): Likewise.
28663 (pupa_biosdisk_rw_int13_extensions): Likewise.
28664 (pupa_biosdisk_rw_standard): Likewise.
28665 (pupa_biosdisk_check_int13_extensions): Likewise.
28666 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28667 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28668 (pupa_get_memsize): Likewise.
28669 (pupa_get_mmap_entry): Likewise.
28670 (pupa_console_putchar): Likewise.
28671 (pupa_console_setcursor): Likewise.
28672 (pupa_getrtsecs): Use pushl instead of push.
28674 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28675 memory instead of the stack for a mmap entry, because some
28676 BIOSes may ignore the maximum size and overflow.
28678 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28680 * genmk.rb (PModule#rule): Compile automatically generated
28681 sources with module-specific CFLAGS as well as other sources.
28683 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28685 * configure.ac: Check ld.
28686 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28687 respectively, before checking endianness and sizes.
28689 * Makefile.in (LD): New variable.
28691 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28693 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28695 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28697 * Changelog: New file.