]> git.proxmox.com Git - grub2.git/blob - ChangeLog
99a177f664b2c8f076419b75e6ff686dfb89f6d9
[grub2.git] / ChangeLog
1 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
2
3 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
4
5 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
6
7 * kern/partition.c (grub_partition_check_containment): New function to
8 check that a partition is physically contained in a parent. Since
9 offsets are relative (and non-negative), this reduces to checking that
10 the partition ends before its parent.
11 (grub_partition_map_probe): Discard out-of-range sub-partitions.
12 (grub_partition_iterate): Likewise.
13 * include/grub/partition.h (grub_partition_map): Slightly more detailed
14 comments.
15 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
16 partitions that start before their parent, and add debug printfs.
17
18 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19
20 * Makefile.in (.SUFFIX): Spell correctly, as ...
21 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
22 bare module name without `.mod', e.g. `test') tried to invoke a
23 Modula-2 compiler.
24
25 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26
27 * README: Point to the Info manual.
28
29 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
30
31 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
32 2nd superblock position from partition size.
33
34 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
35
36 * Makefile.in (MAINTAINER_CLEANFILES): Remove
37 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
38 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
39 outputs.
40
41 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
42
43 Restructure SCSI .id handling.
44 Reported and tested by: Aleš Nesrsta.
45
46 * disk/ata.c (grub_atapi_close): Removed. All users updated.
47 (grub_atapi_dev): Changed .name to "ata". New field .id.
48 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
49 (grub_usbms_dev): New field .id.
50 * disk/scsi.c (grub_scsi_iterate): Generate name.
51 (grub_scsi_open): Parse name.
52 * include/grub/scsi.h (grub_make_scsi_id): New function.
53 (grub_scsi_dev): Change iterate and open to number instead of naming
54 busses. All users updated.
55 (grub_scsi): Remove name. Add .bus.
56
57 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * commands/help.c (grub_cmd_help): Fix a typo.
60
61 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
64 Reported and tested by: Colin Watson.
65
66 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
69 in this context.
70
71 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
74
75 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
76
77 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
78 indentation.
79
80 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
81
82 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
83 and disk/raid6_recover.c.
84 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
85 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
86
87 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
88
89 * term/gfxterm.c (repaint_schedulded): Rename to ...
90 (repaint_scheduled): ... this. Update all callers.
91 (repaint_was_schedulded): Rename to ...
92 (repaint_was_scheduled): ... this. Update all callers.
93
94 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
95
96 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
97 which we expect to be handled by upper layers.
98
99 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
100
101 * bus/usb/usbhub.c: #include time.h header.
102
103 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
104
105 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
106 entry_name also for entries without stat blocks (e.g. ".."); fixes
107 corruption of the first entry in a directory.
108
109 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
110
111 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
112 after setting gfxterm as the active terminal. GRUB_BACKGROUND
113 doesn't work otherwise.
114
115 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
116
117 * docs/grub.texi (Features): Update list of supported file systems.
118 (GNU/Linux): Update for GRUB 2.
119 (Serial terminal): Remove mention of --disable-serial, which was a
120 GRUB Legacy configure option. Update instructions to use
121 `terminal_input' and `terminal_output' rather than `terminal'.
122 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
123 configuration' and `Installing GRUB using grub-install'.
124 (Menu entry editor): Update for GRUB 2.
125 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
126 Document new -a, -u, and -v options.
127 (initrd): New section.
128 (initrd16): New section.
129 (linux): New section.
130 (linux16): New section.
131 (search): The `var' argument to `--set' is optional.
132 (GRUB only offers a rescue shell): Go into a little more detail on
133 drive ordering.
134
135 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
136
137 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
138
139 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
140
141 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
142 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
143
144 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
145
146 * util/i386/pc/grub-setup.c (setup): Rename prefix to
147 install_prefix, in line with install_dos_part and install_bsd_part.
148 Add new prefix variable, which is copied to install_prefix after
149 comparing core.img in memory with the one read from disk in the
150 no-embedding case, and use that rather than overwriting
151 install_prefix immediately when installing to a partition.
152 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
153 Bicakci.
154
155 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
156
157 * configure.ac: Avoid == in test command, it's not portable.
158 * util/grub.d/30_os-prober.in: Likewise.
159
160 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
161
162 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
163
164 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
165
166 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
167 multiple (top-level) partmaps.
168
169 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
170
171 * util/i386/efi/grub-install.in: Don't use empty grub_device.
172 Reported by: Tino Keitel.
173
174 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
175
176 Bidi and diacritics support.
177
178 * Makefile.in (widthspec.bin): New target.
179 (widthspec.h): Likewise.
180 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
181 * autogen.sh: Generate unidata.c.
182 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
183 * commands/ls.c (grub_ls_list_devices): Likewise.
184 (grub_ls_list_files): Likewise.
185 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
186 (grub_mini_cmd_lsmod): Likewise.
187 * commands/read.c: Likewise.
188 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
189 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
190 * lib/arg.c (grub_arg_show_help): Likewise.
191 * lib/crypto.c (grub_password_get): Likewise.
192 * normal/auth.c (grub_username_get): Likewise.
193 * normal/misc.c (grub_normal_print_device_info): Likewise.
194 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
195 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
196 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
197 (normal/charset.c_DEPENDENCIES): New variable.
198 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
199 (pkglib_MODULES): Remove charset.mod.
200 (charset_mod_SOURCES): Removed.
201 (charset_mod_CFLAGS): Likewise.
202 (charset_mod_LDFLAGS): Likewise.
203 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
204 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
205 and term/tparm.c.
206 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
207 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
208 (kernel_img_HEADERS): Add terminfo.h.
209 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
210 Fill ->font. Reverse ascii bitmaps.
211 (grub_font_get_xheight): New function.
212 * font/font.c (grub_font_get_string_width): Moved from here ...
213 * gfxmenu/font.c (grub_font_get_string_width): ... here.
214 * font/font.c (grub_font_draw_string): Moved from here ...
215 * gfxmenu/font.c (grub_font_draw_string): ... here.
216 * font/font.c (grub_font_dup_glyph): New function.
217 (grub_font_blit_glyph): Likewise.
218 (grub_font_blit_glyph_mirror): Likewise.
219 (blit_comb): Likewise.
220 (grub_font_construct_dry_run): Likewise.
221 (grub_font_get_constructed_device_width): Likewise.
222 (grub_font_construct_glyph): Likewise.
223 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
224 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
225 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
226 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
227 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
228 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
229 (grub_font_get_xheight): New proto.
230 (grub_font_get_constructed_device_width): Likewise.
231 (grub_font_construct_glyph): Likewise.
232 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
233 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
234 * include/grub/font.h (grub_font_draw_string): Moved from here ...
235 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
236 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
237 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
238 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
239 (grub_console_getcharwidth): Likewise.
240 * include/grub/misc.h (grub_xputs): New proto.
241 (grub_puts): Inlined.
242 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
243 (grub_normal_get_line_counter): Removed.
244 (grub_install_newline_hook): Likewise.
245 (grub_normal_get_char_counter): New proto.
246 (grub_normal_reset_more): Likewise.
247 (grub_xputs_normal): Likewise.
248 * include/grub/powerpc/ieee1275/console.h: Removed.
249 * include/grub/sparc64/ieee1275/console.h: Likewise.
250 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
251 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
252 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
253 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
254 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
255 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
256 (grub_term_input): Pass reference to self. All users updated.
257 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
258 Pass reference to self. New fields normal_color, highlight_color and
259 data. All users updated.
260 (grub_putchar): Removed.
261 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
262 (grub_unicode_estimate_width): New function.
263 (grub_term_getcharwidth): Add defaults.
264 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
265 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
266 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
267 (grub_cls): Remove EXPORT_FUNC.
268 (grub_setcolorstate): Inline.
269 (grub_newline_hook): Removed.
270 * include/grub/terminfo.h: Rewritten. All users updated.
271 * include/grub/unicode.h: New file.
272 * include/grub/video.h (grub_video_signed_rect): New type.
273 * kern/emu/console.c (grub_console_highlight_color): Removed.
274 (grub_console_normal_color): Likewise.
275 (grub_console_standard_color): Made static.
276 (grub_ncurses_putchar): Remove mapping.
277 (grub_ncurses_getcharwidth): Removed.
278 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
279 (grub_ncurses_setcolor): Removed.
280 (grub_ncurses_getcolor): Likewise.
281 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
282 (grub_console_putchar): ... this.
283 (grub_console_putchar): Handle argument difference.
284 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
285 console_init_early and console_init_lately.
286 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
287 * kern/misc.c (grub_puts): Removed.
288 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
289 (grub_vsnprintf_real): Remove str = NULL support.
290 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
291 * normal/charset.c (grub_utf8_to_ucs4): ... here.
292 * kern/term.c (grub_putcode): Renamed to ...
293 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
294 (grub_putchar): Removed.
295 (grub_xputs_dumb): New function.
296 (grub_xputs): New variable.
297 * lib/charset.c: Move from here ...
298 * normal/charset.c: ... to here.
299 (grub_ucs4_to_utf8): New function.
300 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
301 (join_types): New variable.
302 (unpack_join): New function.
303 (bidi_types): New variable.
304 (unpack_bidi): New function.
305 (get_bidi_type): Likewise.
306 (get_join_type): Likewise.
307 (is_mirrored): Likewise.
308 (grub_unicode_get_comb_type): Likewise.
309 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
310 (is_type_after): Likewise.
311 (grub_unicode_aglomerate_comb): Likewise.
312 (bidi_line_wrap): Likewise.
313 (grub_bidi_line_logical_to_visual): Likewise.
314 (grub_bidi_logical_to_visual): Likewise.
315 (grub_unicode_mirror_code): Likewise.
316 (grub_unicode_shape_code): Likewise.
317 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
318 Don't use grub_putchar.
319 * normal/main.c (grub_normal_init_page): Use grub_putcode.
320 (grub_normal_reader_init): Likewise.
321 (grub_xputs_saved): New variable.
322 (GRUB_MOD_INIT): Set grub_xputs.
323 (GRUB_MOD_FINI): Restore grub_xputs.
324 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
325 (menu_init): Avoid printing gfxmenu error.
326 (show_menu): Use grub_normal_get_char_counter.
327 * normal/menu_entry.c (update_screen): Fix out-of-array.
328 (complete): Avoid NULL dereferencing.
329 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
330 * normal/menu_text.c (print_spaces): Removed.
331 (grub_print_ucs4): Likewise.
332 (grub_print_message_indented): Use grub_print_ucs4.
333 (print_message): Use grub_putcode.
334 (print_entry): Hanlde diacritics.
335 * normal/term.c (term_state): New type.
336 (grub_more_lines): Removed.
337 (term_states): New variable.
338 (grub_normal_line_counter): Renamed to ..
339 (grub_normal_char_counter): ...this. All users updated.
340 (grub_normal_get_line_counter): Renamed to ...
341 (grub_normal_get_char_counter): ... this.
342 (grub_normal_reset_more): New function.
343 (process_newline): Removed.
344 (print_more): New function.
345 (grub_install_newline_hook): Removed.
346 (map_code): New function.
347 (grub_puts_terminal): Use grub_print_ucs4.
348 (putglyph): New function.
349 (putcode_real): Likewise.
350 (grub_putcode): Use putcode_real.
351 (get_maxwidth): New function.
352 (get_startwidth): Likewise.
353 (print_ucs4_terminal): Likewise.
354 (find_term_state): Likewise.
355 (put_glyphs_terminal): Likewise.
356 (print_backlog): Likewise.
357 (print_ucs4_real): Likewise.
358 (grub_print_ucs4): Likewise.
359 (grub_xputs_normal): Likewise.
360 * term/efi/console.c (grub_console_putchar): Output diacritics.
361 (grub_console_getcharwidth): Removed.
362 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
363 * term/gfxterm.c (clear_char): Free chars.
364 (scroll_up): Avoid leaking memory.
365 (grub_gfxterm_putchar): Support diacritics.
366 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
367 * term/i386/pc/console.c (grub_console_term_output): Declare as
368 GRUB_TERM_CODE_TYPE_VGA.
369 * term/i386/pc/vga.c (grub_vga_term): Declare as
370 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
371 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
372 GRUB_TERM_CODE_TYPE_VGA.
373 * term/i386/vga_common.c (map_char): Removed.
374 (grub_console_putchar): Likewise.
375 (grub_console_getcharwidth): Likewise.
376 * term/ieee1275/ofconsole.c: Simplify using terminfo.
377 (colors): Reordered to match terminfo.
378 (grub_ofconsole_normal_color): Removed.
379 (grub_ofconsole_writeesc): Likewise.
380 (grub_ofconsole_highlight_color): Likewise.
381 (grub_ofconsole_getcharwidth): Likewise.
382 (grub_ofconsole_setcolorstate): Likewise.
383 (grub_ofconsole_setcolor): Likewise.
384 (grub_ofconsole_getcolor): Likewise.
385 (grub_ofconsole_readkey): Renamed to ...
386 (readkey): ... this. Remove escape sequence handling. Return -1 on no
387 key.
388 (grub_ofconsole_checkkey): Removed.
389 (grub_ofconsole_getkey): Likewise.
390 (grub_ofconsole_getxy): Likewise.
391 (grub_ofconsole_gotoxy): Likewise.
392 (grub_ofconsole_cls): Likewise.
393 (grub_ofconsole_refresh): Likewise.
394 (grub_ofconsole_terminfo_input): New struct.
395 (grub_ofconsole_terminfo_output): Likewise.
396 (grub_ofconsole_term_input): Use terminfo.
397 (grub_ofconsole_term_output): Likewise.
398 (grub_console_init): Split into ...
399 (grub_console_init_early): ...this and ...
400 (grub_console_init_lately): ...this. Use terminfo.
401 (grub_ofconsole_putchar): Renamed to ...
402 (put): ... this. Remove mapping.
403 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
404 * term/serial.c: Simplify using terminfo.
405 (xpos): Removed.
406 (ypos): Likewise.
407 (keep_track): Likewise.
408 (registered): Likewise.
409 (input_buf): Likewise.
410 (npending): Likewise.
411 (serial_translate_key_sequence): Likewise.
412 (fill_input_buf): Likewise.
413 (grub_serial_checkkey): Likewise.
414 (grub_serial_getkey): Likewise.
415 (grub_serial_getxy): Likewise.
416 (grub_serial_gotoxy): Likewise.
417 (grub_serial_putchar): Likewise.
418 (grub_serial_cls): Likewise.
419 (grub_serial_setcolorstate): Likewise.
420 (grub_serial_setcursor): Likewise.
421 (serial_hw_init): Use serial_hw_fetch.
422 (grub_serial_terminfo_input): New variable.
423 (grub_serial_terminfo_output): Likewise.
424 (grub_serial_term_input): Use terminfo.
425 (grub_serial_term_output): Likewise.
426 * term/terminfo.c (putstr): Use put.
427 (grub_terminfo_all_free): New function
428 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
429 (grub_terminfo_output_register): New function.
430 (grub_terminfo_output_unregister): Likewise.
431 (grub_terminfo_getxy): Likewise.
432 (grub_terminfo_readkey): Likewise.
433 (grub_terminfo_checkkey): Likewise.
434 (grub_terminfo_getkey): Likewise.
435 (grub_terminfo_input_init): Likewise.
436 (print_terminfo): Likewise.
437 (grub_cmd_terminfo): Handle encoding.
438 (grub_terminfo_gotoxy): Track position.
439 (grub_terminfo_cls): Likewise.
440 (grub_terminfo_putchar): Likewise.
441 (grub_terminfo_setcolorstate): Handle colors
442 (grub_terminfo_cursor_on): This ...
443 (grub_terminfo_cursor_off): ... and this merged into ...
444 (grub_terminfo_setcursor): ... this.
445 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
446 * unicode/ArabicShaping.txt: New file (imported from Unicode).
447 * unicode/BidiMirroring.txt: Likewise.
448 * unicode/UnicodeData.txt: Likewise.
449 * unicode/COPYING: Likewise.
450 * util/grub-editenv.c (grub_putchar): Removed.
451 (grub_xputs_real): New function.
452 (grub_xputs): New variable.
453 * util/grub-fstest.c (grub_putchar): Removed.
454 (grub_xputs_real): New function.
455 (grub_xputs): New variable.
456 * util/grub-mkdevicemap.c (grub_putchar): Removed.
457 (grub_xputs_real): New function.
458 (grub_xputs): New variable.
459 * util/grub-probe.c (grub_putchar): Removed.
460 (grub_xputs_real): New function.
461 (grub_xputs): New variable.
462 * util/grub-script-check.c (grub_putchar): Removed.
463 (grub_xputs_real): New function.
464 (grub_xputs): New variable.
465 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
466 (grub_xputs_real): New function.
467 (grub_xputs): New variable.
468 * util/import_unicode.py: New file.
469 * util/grub-mkfont.c (ft_errmsgs): New array.
470 (grub_glyph_info): Make bitmap a pointer.
471 (file_formats): New type WIDTH_SPEC.
472 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
473 (options): Add width-spec.
474 (help): Likewise.
475 (add_char): Renamed to ...
476 (add_glyph): ... this.
477 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
478 (glyph_replace): New type.
479 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
480 (add_char): New function.
481 (add_subst): Likewise.
482 (process_cursive): Likewise.
483 (add_font): Handle GSUB.
484 (write_font_width_spec): New function.
485 (main): Sort glyphs.
486 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
487 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
488 * kern/term.c (grub_cls): Moved from here...
489 * normal/term.c (grub_cls): ... here.
490
491 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
492
493 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
494 suitable for using within the format argument of printf when
495 converting grub_size_t.
496 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
497 "x" to convert grub_size_t arguments.
498
499 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
502 too long captions.
503 (list_get_minimal_size): Take selection box into account.
504
505 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
506
507 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
508 NULL font.
509
510 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
511
512 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
513 devices when iterating over /dev/disk/by-id; they will be handled
514 later if appropriate, which they aren't always (e.g. LVM).
515
516 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
517
518 * include/grub/misc.h (grub_reboot): Declare as noreturn.
519 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
520 fails.
521 (grub_halt): Likewise.
522 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
523 reset-all fails.
524 (grub_halt): Don't return, even if all of shut-down, power-off, and
525 poweroff fail.
526
527 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
528
529 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
530 arguments, not three.
531
532 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
533
534 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
535 * util/grub.d/10_linux.in: Use it to check for LVM, so that
536 LVM-on-RAID is handled correctly.
537
538 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
539
540 * docs/grub.texi (Changes from GRUB Legacy): New section.
541 (Future): Fix typo.
542
543 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
544
545 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
546 grub.d/README accidentally ends up executable for one reason or
547 another. Ignore it.
548
549 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
550
551 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
552 (gpt_partition_map_iterate): Support non-512B sectors.
553
554 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
555
556 * kern/efi/init.c (grub_efi_init): Disable watchdog.
557 Tested by: Seth Goldberg.
558
559 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
562 Properly align mbi.
563 Reported by: Seth Goldberg.
564
565 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
566
567 * util/grub-mkrescue.in: Avoid module duplication.
568
569 2010-07-01 Sean Finney <seanius@seanius.net>
570
571 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
572
573 2010-07-01 Sean Finney <seanius@seanius.net>
574
575 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
576
577 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * disk/lvm.c (grub_lvm_checkvalue): New function.
580 (grub_lvm_check_flag): Likewise.
581
582 2010-07-01 Robert Millan <rmh@gnu.org>
583
584 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
585 Support 'p' as partition separator on kernel of FreeBSD (used
586 with GPT labels).
587 (grub_util_biosdisk_get_grub_dev): Likewise.
588
589 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
590
591 Yeeloong firmware port.
592
593 * boot/mips/yeeloong/fwstart.S: New file.
594 * bus/cs5536.c (gpiodump): New const.
595 (set_io_space): New function.
596 (set_iod): Likewise.
597 (set_p2d): Likewise.
598 (grub_cs5536_init_geode): Likewise.
599 * commands/mips/yeeloong/lsspd.c: New file.
600 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
601 (serial_mod_SOURCES): New variable.
602 (serial_mod_CFLAGS): Likewise.
603 (serial_mod_LDFLAGS): Likewise.
604 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
605 term/terminfo.c and term/tparm.c.
606 (pkglib_IMAGES): Add fwstart.img.
607 (fwstart_img_SOURCES): New variable.
608 (fwstart_img_CFLAGS): Likewise.
609 (fwstart_img_ASFLAGS): Likewise.
610 (fwstart_img_LDFLAGS): Likewise.
611 (fwstart_img_FORMAT): Likewise.
612 (pkglib_MODULES): Add lsspd.mod.
613 (lsspd_mod_SOURCES): New variable.
614 (lsspd_mod_CFLAGS): Likewise.
615 (lsspd_mod_LDFLAGS): Likewise.
616 (pkglib_MODULES): Add halt.mod.
617 (halt_mod_SOURCES): New variable.
618 (halt_mod_CFLAGS): Likewise.
619 (halt_mod_LDFLAGS): Likewise.
620 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
621 (serial_mod_SOURCES): Removed.
622 (serial_mod_CFLAGS): Likewise.
623 (serial_mod_LDFLAGS): Likewise.
624 * disk/ata.c (check_device): New function.
625 (grub_ata_device_initialize): Use check_device.
626 (grub_ata_iterate): Recheck devices.
627 (grub_ata_open): Likewise.
628 (grub_atapi_iterate): Likewise.
629 (grub_atapi_open): Likewise.
630 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
631 (GRUB_ATA_CH1_PORT1): Likewise.
632 (GRUB_ATA_CH0_PORT2): Likewise.
633 (GRUB_ATA_CH1_PORT2): Likewise.
634 * include/grub/mips/loongson.h: New file.
635 * include/grub/mips/yeeloong/ec.h: Likewise.
636 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
637 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
638 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
639 * include/grub/misc.h (grub_halt): Declare as noreturn.
640 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
641 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
642 (UART_ENABLE_FIFO_TRIGGER1): New definition.
643 (UART_ENABLE_DTRRTS): Likewise.
644 (UART_ENABLE_MODEM): Removed.
645 (UART_ENABLE_OUT2): New const.
646 * include/grub/term.h (grub_term_register_input_active): New function.
647 (grub_term_register_output_active): Likewise.
648 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
649 argument.
650 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
651 (init_pci): New function.
652 (grub_machine_init): Execute platform init when firmware. Init serial.
653 (grub_halt): Implement.
654 (grub_exit): Likewise.
655 (grub_reboot): Likewise.
656 * term/serial.c (serial_hw_init): Update macros.
657 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
658 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
659 (image_targets): New target mipsel-yeeloong-flash.
660 (generate_image): Support IMAGE_YEELOONG_FLASH.
661 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
662 (grub_video_sm712_setup): Init card.
663 (grub_video_sm712_set_palette): Removed.
664 * video/sm712_init.c: New file.
665
666 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
667
668 * Makefile.in (install-local): Temporarily prepend $(builddir) to
669 PATH when running help2man and then run it on the unadorned
670 executable names, rather than passing $(builddir)/* paths to
671 help2man. This avoids the build directory ending up in generated
672 manual pages.
673
674 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
675
676 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
677 to avoid accidents when debugging with 'sh -x'.
678 * util/grub-mkrescue.in: Likewise.
679 * util/grub.d/00_header.in: Likewise.
680 * util/grub.d/10_hurd.in: Likewise.
681 * util/grub.d/10_kfreebsd.in: Likewise.
682 * util/grub.d/10_linux.in: Likewise.
683 * util/grub.d/10_netbsd.in: Likewise.
684 * util/grub.d/10_windows.in: Likewise.
685 * util/grub.d/20_linux_xen.in: Likewise.
686 * util/grub.d/30_os-prober.in: Likewise.
687 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
688
689 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
690
691 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
692 last character in the buffer.
693 Reported by: Vladimir Serbinenko.
694
695 2010-06-29 Robert Millan <rmh@gnu.org>
696
697 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
698 (Command-line and menu entry commands): Document `badram' command.
699
700 2010-06-28 Robert Millan <rmh@gnu.org>
701
702 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
703 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
704 command using ${GRUB_BADRAM} as parameter.
705
706 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
707
708 * docs/grub.texi (Device map): New section.
709 (Themes): New section (stub).
710 * Makefile.in (docs/grub.info): The info documentation now builds
711 without errors. Make sure it stays that way.
712
713 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
714
715 Use normal parser for menu entries.
716 Reported by: Thomas Frauendorfer
717
718 * include/grub/parser.h (grub_parser_execute): Don't export.
719 * normal/menu.c (grub_menu_execute_entry_real): New function.
720 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
721
722 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
723
724 * docs/grub.texi (Embedded configuration): New section (replacing
725 old "Preset Menu" stub).
726 (Images): New section.
727 (configfile): Note that any menu entries defined in `file' are shown
728 immediately.
729
730 2010-06-28 Josh Triplett <josh@joshtriplett.org>
731
732 * mmap/i386/pc/mmap_helper.S: Set CF on return.
733
734 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
735
736 * util/grub-install.in: Add --debug-image= option.
737
738 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
739
740 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
741 possible on Linux.
742
743 * util/deviceiter.c (check_device): Rename to ...
744 (check_device_readable_unique): ... this. Update all callers.
745 Maintain and check a list of which devices (by canonicalized name)
746 have already been seen.
747 (clear_seen_devices): New function.
748 (compare_file_names) [__linux__]: New function.
749 (grub_util_iterate_devices): Clear the list of seen devices on exit
750 and (just in case) on entry.
751 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
752 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
753 seen-devices list, superseded by general code in check_device.
754
755 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
756
757 * commands/cat.c (options): New variable.
758 (grub_cmd_cat): Parse options. If the --dos option is given, print
759 DOS-style "\r\n" line endings as simple newlines (Debian bug
760 #586358).
761 (GRUB_MOD_INIT): Use extcmd.
762 (GRUB_MOD_FINI): Likewise.
763 * docs/grub.texi (cat): Document --dos.
764
765 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
766
767 XEN with Linux grub-mkconfig support.
768
769 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
770 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
771 GRUB_CMDLINE_XEN_DEFAULT.
772 * util/grub.d/20_linux_xen.in: New file.
773
774 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
775
776 Initialise VGA video on qemu ourselves.
777
778 * boot/i386/qemu/boot.S: Don't call 0xc000.
779 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
780 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
781 (kernel_img_HEADERS): Add pci.h.
782 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
783 * configure.ac: Force unifont on qemu and yeeloong.
784 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
785 (grub_vga_palette_write): Use correct register.
786 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
787 Call grub_qemu_init_cirrus.
788 * kern/i386/qemu/init.c: New file.
789 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
790
791 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
792
793 2010-06-26 Pavel Roskin <proski@gnu.org>
794
795 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
796 13.
797
798 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
799
800 * docs/grub.texi (Simple configuration): Explain that
801 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
802 set to `true' to disable their respective recovery entries, not
803 merely set.
804
805 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
806
807 Make the `source' command slightly faster.
808
809 * normal/main.c (grub_normal_execute): Don't re-read list files when
810 nested.
811
812 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
813
814 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
815 field position and mask size to red fields from mode_info, not
816 green.
817 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
818 Remove redundant tag->common.framebuffer_type assignment.
819 Reported by: Seth Goldberg.
820
821 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
822
823 Sync up other versions of the Linux loader with Robert Millan's
824 change of 2010-01-09, "Make loader output a bit more user-friendly".
825
826 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
827 grub_dprintf().
828 (grub_cmd_linux): Likewise.
829 (grub_cmd_initrd): Likewise.
830 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
831 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
832
833 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
834
835 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
836 larger than MEMORY_MAP_SIZE.
837
838 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
839
840 Fix parallel build.
841
842 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
843 dependency.
844 * script/parser.y: #include grub_script.tab.h header.
845
846 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
847
848 Support >3GiB and <16MiB RAM in i386-qemu.
849
850 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
851 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
852 (grub_lower_mem): Removed.
853 (grub_upper_mem): Likewise.
854 (mem_size): Made static.
855 (above_4g): New variable.
856 (grub_machine_mmap_init): Detect small mem_size and above_4g.
857 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
858 support.
859
860 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
861
862 Cirrus 5446 and Bochs video cards support.
863
864 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
865 video_bochs.mod
866 (video_cirrus_mod_SOURCES): New variable.
867 (video_cirrus_mod_CFLAGS): Likewise.
868 (video_cirrus_mod_LDFLAGS): Likewise.
869 (video_bochs_mod_SOURCES): Likewise.
870 (video_bochs_mod_CFLAGS): Likewise.
871 (video_bochs_mod_LDFLAGS): Likewise.
872 * include/grub/vga.h: New file.
873 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
874 (grub_video_fb_set_page_t): New type.
875 (grub_video_fb_setup): New prototype.
876 (grub_video_fb_swap_buffers): Likewise.
877 (grub_video_fb_get_info_and_fini): Likewise.
878 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
879 (CRTC_DATA_PORT): Likewise.
880 (CRTC_CURSOR): Likewise.
881 (CRTC_CURSOR_ADDR_HIGH): Likewise.
882 (CRTC_CURSOR_ADDR_LOW): Likewise.
883 (CRTC_CURSOR_DISABLE): Likewise.
884 (update_cursor): Use grub_vga_cr_write.
885 (grub_vga_text_setcursor): Likewise.
886 * video/bochs.c: New file.
887 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
888 (palette): Likewise.
889 (palette_size): Likewise.
890 (framebuffer): New variable.
891 (grub_video_fb_init): Use 'framebuffer'.
892 (grub_video_fb_fini): Likewise.
893 (grub_video_fb_get_info): Likewise.
894 (grub_video_fb_get_palette): Likewise.
895 (grub_video_fb_set_palette): Likewise.
896 (grub_video_fb_set_viewport): Likewise.
897 (grub_video_fb_get_viewport): Likewise.
898 (grub_video_fb_map_color): Likewise.
899 (grub_video_fb_map_rgb): Likewise.
900 (grub_video_fb_map_rgba): Likewise.
901 (grub_video_fb_unmap_color): Likewise.
902 (grub_video_fb_unmap_color_int): Likewise.
903 (grub_video_fb_fill_rect): Likewise.
904 (grub_video_fb_blit_bitmap): Likewise.
905 (grub_video_fb_blit_render_target): Likewise.
906 (grub_video_fb_scroll): Likewise.
907 (grub_video_fb_create_render_target): Likewise.
908 (grub_video_fb_doublebuf_blit_init): Likewise.
909 (grub_video_fb_set_active_render_target): Handle doublebuffering.
910 (doublebuf_pageflipping_update_screen): New function.
911 (doublebuf_pageflipping_init): Likewise.
912 (grub_video_fb_setup): Likewise.
913 (grub_video_fb_swap_buffers): Likewise.
914 (grub_video_fb_get_info_and_fini): Likewise.
915 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
916 All users updated.
917 (doublebuf_pageflipping_commit): Restructured into ...
918 (doublebuf_pageflipping_set_page): ... this.
919 (doublebuf_pageflipping_update_screen): Removed.
920 (doublebuf_pageflipping_init): Likewise.
921 (double_buffering_init): Likewise.
922 (grub_video_vbe_setup): Use grub_video_fb_setup.
923 (grub_video_vbe_swap_buffers): Removed.
924 (grub_video_vbe_set_active_render_target): Likewise.
925 (grub_video_vbe_get_active_render_target): Likewise.
926 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
927 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
928 grub_video_fb_set_active_render_target and
929 grub_video_fb_get_active_render_target.
930 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
931 (SEQUENCER_DATA_PORT): Likewise.
932 (MAP_MASK_REGISTER): Likewise.
933 (CRTC_ADDR_PORT): Likewise.
934 (CRTC_DATA_PORT): Likewise.
935 (START_ADDR_HIGH_REGISTER): Likewise.
936 (START_ADDR_LOW_REGISTER): Likewise.
937 (GRAPHICS_ADDR_PORT): Likewise.
938 (GRAPHICS_DATA_PORT): Likewise.
939 (READ_MAP_REGISTER): Likewise.
940 (INPUT_STATUS1_REGISTER): Likewise.
941 (INPUT_STATUS1_VERTR_BIT): Likewise.
942 (get_map_mask): Use grub_vga_sr_read.
943 (set_map_mask): Use grub_vga_sr_write.
944 (set_read_map): Use grub_vga_gr_write.
945 (set_start_address): Use grub_vga_cr_write.
946 * video/sm712.c (framebuffer): Remove leftover fields.
947
948 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
949
950 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
951 setting GRUB_VIDEO_BACKEND. Make it available as a user override
952 instead. Replace the gfxterm backend check with a check that
953 ${GRUB_PREFIX}/video.lst is non-empty.
954 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
955 again.
956 (load_video): New generated function. Call it before loading
957 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
958 * util/grub.d/10_linux.in (linux_entry): Call load_video.
959 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
960 * docs/grub.texi (Simple configuration): Document
961 GRUB_VIDEO_BACKEND.
962
963 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Use video functions in linux and xnu loaders.
966
967 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
968 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
969 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
970 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
971 loader/i386/pc/linux.c.
972 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
973 (find_line_len): Removed.
974 (find_framebuf): Likewise.
975 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
976 * loader/i386/efi/xnu.c: Removed.
977 * loader/i386/pc/xnu.c: Moved from here...
978 * loader/i386/xnu.c: ...here.
979
980 Enable priorities in video drivers.
981
982 * include/grub/video.h (grub_video_adapter_prio_t): New type.
983 (grub_video_adapter): New field prio.
984 (grub_video_register): Respect prio when inserting.
985 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
986 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
987 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
988 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
989 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
990 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
991 * video/sm712.c (grub_video_sm712_adapter): Likewise.
992
993 Fix SDL driver ID.
994
995 * include/grub/video.h (grub_video_driver_id_t): New value
996 GRUB_VIDEO_DRIVER_SDL.
997 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
998
999 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1000
1001 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
1002 argument to printf.
1003 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1004
1005 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1006
1007 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
1008 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1009
1010 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1011
1012 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
1013 directly, and recommend grub-install instead.
1014 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1015
1016 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1017
1018 Fix i386-pc prefix handling with nested partitions (Debian bug
1019 #585068). Note that the case where the core image is booted using
1020 multiboot and relocated from its original location still requires
1021 more work.
1022
1023 * kern/i386/pc/init.c (make_install_device): If the prefix starts
1024 with "(,", fill the boot drive in between those two characters, but
1025 expect that a full partition specification including partition map
1026 names will follow.
1027 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
1028 specified, write a prefix without the drive name but including a
1029 full partition specification.
1030
1031 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
1032
1033 * util/grub-mkconfig.in: Ignore non-option arguments, for
1034 compatibility with older versions (before 2010-06-12) which did the
1035 same. In particular, this makes it easier to ship an update-grub
1036 wrapper which is compatible with that used with GRUB Legacy (Debian
1037 bug #586056).
1038
1039 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1040
1041 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
1042 for manual page generation.
1043
1044 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1045
1046 * po/POTFILES: Remove leftover commands/handler.c.
1047
1048 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1049
1050 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
1051 left this script non-functional.
1052
1053 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1054
1055 * docs/man/grub-emu.h2m: New file.
1056
1057 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
1058
1059 * docs/grub.texi (Commands): Document reduced command set in rescue
1060 mode.
1061 (cpuid): New section.
1062
1063 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
1064
1065 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
1066 new partition naming style.
1067 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
1068
1069 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
1070
1071 Add "-o grub.iso" like cmdline options support.
1072
1073 * util/grub-install.in: Improve cmdline option parsing.
1074 * util/grub-mkconfig.in: Likewise.
1075 * util/grub-mkrescue.in: Likewise.
1076 * util/grub-reboot.in: Likewise.
1077 * util/grub-set-default.in: Likewise.
1078 * util/i386/efi/grub-install.in: Likewise.
1079 * util/ieee1275/grub-install.in: Likewise.
1080 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1081
1082 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1083
1084 * .bzrignore: Ignore 41_custom.
1085
1086 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1087
1088 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
1089
1090 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1091
1092 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
1093 prototype declarations.
1094
1095 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
1096 generating fs, partmap, and video lists.
1097 * include/grub/fs.h (grub_fs_register): Omit prototype if
1098 GRUB_LST_GENERATOR is defined.
1099 * include/grub/partition.h (grub_partition_map_register): Likewise.
1100 * include/grub/video.h (grub_video_register): Likewise.
1101
1102 2010-06-12 Javier Martín <lordhabbit@gmail.com>
1103
1104 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
1105
1106 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1107
1108 * util/grub-mkrescue.in: Support --xorriso argument.
1109
1110 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
1113 Suggested by: Thomas Schmitt.
1114
1115 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
1118 Suggested by: Thomas Schmitt.
1119
1120 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 custom.cfg support.
1123
1124 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
1125 * util/grub.d/41_custom.in: New file.
1126
1127 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1128
1129 * util/grub-mkrescue.in (make_image): Remove sh module, which has
1130 been merged back into normal.
1131
1132 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1133
1134 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
1135 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
1136
1137 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1138
1139 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
1140 when generating manual pages.
1141 * docs/man/grub-bin2h.h2m: New file.
1142 * docs/man/grub-editenv.h2m: New file.
1143 * docs/man/grub-fstest.h2m: New file.
1144 * docs/man/grub-install.h2m: New file.
1145 * docs/man/grub-macho2img.h2m: New file.
1146 * docs/man/grub-mkconfig.h2m: New file.
1147 * docs/man/grub-mkdevicemap.h2m: New file.
1148 * docs/man/grub-mkfont.h2m: New file.
1149 * docs/man/grub-mkimage.h2m: New file.
1150 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
1151 * docs/man/grub-mkrelpath.h2m: New file.
1152 * docs/man/grub-mkrescue.h2m: New file.
1153 * docs/man/grub-ofpathname.h2m: New file.
1154 * docs/man/grub-pe2elf.h2m: New file.
1155 * docs/man/grub-probe.h2m: New file.
1156 * docs/man/grub-reboot.h2m: New file.
1157 * docs/man/grub-script-check.h2m: New file.
1158 * docs/man/grub-set-default.h2m: New file.
1159 * docs/man/grub-setup.h2m: New file.
1160
1161 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 Use FOR_* macros instead of *_iterate whenever possible.
1164
1165 * commands/handler.c: Removed.
1166 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
1167 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
1168 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1169 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
1170 (grub_probe_SOURCES): Remove kern/parser.c.
1171 (util/grub-script-check.c_DEPENDENCIES): Removed.
1172 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
1173 and grub_script_check_init.c.
1174 (grub_script_check_init.lst): Removed.
1175 (grub_script_check_init.h): Likewise.
1176 (grub_script_check_init.c): Likewise.
1177 (pkglib_MODULES): Remove handler.mod and sh.mod.
1178 (handler_mod_SOURCES): Removed.
1179 (handler_mod_CFLAGS): Likewise.
1180 (handler_mod_LDFLAGS): Likewise.
1181 (normal_mod_SOURCES): Remove normal/handler.c.
1182 Add script/main.c, script/script.c, script/execute.c,
1183 script/function.c, script/lexer.c, grub_script.tab.c
1184 and grub_script.yy.c.
1185 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1186 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1187 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
1188 (grub_setup_SOURCES): Remove kern/parser.c.
1189 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1190 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
1191 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1192 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1193 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1194 (grub_setup_SOURCES): Remove kern/parser.c.
1195 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1196 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
1197 * include/grub/command.h (grub_command_iterate): Removed.
1198 (FOR_COMMANDS): New macro.
1199 * include/grub/dl.h (grub_dl): New member next.
1200 (grub_dl_iterate): Removed.
1201 (grub_dl_head): New variable declaration.
1202 (FOR_DL_MODULES): New macro.
1203 * include/grub/fs.h: Include list.h.
1204 (grub_fs): Make next first element.
1205 (grub_fs_list): New variable declaration.
1206 (grub_fs_register): Make inline.
1207 (grub_fs_unregister): Likewise.
1208 (grub_fs_iterate): Removed.
1209 (FOR_FILESYSTEMS): New macro.
1210 * include/grub/handler.h: Removed.
1211 * include/grub/list.h (grub_list_hook_t): Removed.
1212 (grub_list_test_t): Likewise.
1213 (grub_list_pop): Likewise.
1214 (grub_list_iterate): Likewise.
1215 (grub_list_insert): Likewise.
1216 (FOR_LIST_ELEMENTS): New macro.
1217 * include/grub/parser.h (grub_parser_class): Removed.
1218 (grub_parser_register): Likewise.
1219 (grub_parser_unregister): Likewise.
1220 (grub_parser_get_current): Likewise.
1221 (grub_parser_set_current): Likewise.
1222 (grub_register_rescue_parser): Likewise.
1223 (grub_rescue_parse_line): New function.
1224 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
1225 * include/grub/script_sh.h (grub_script_function_list): New variable
1226 declaration.
1227 (FOR_SCRIPT_FUNCTIONS): New macro.
1228 (grub_script_function_iterate): Removed.
1229 (grub_normal_parse_line): New prototype.
1230 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
1231 (FOR_DISABLED_TERM_INPUTS): Likewise.
1232 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
1233 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
1234 * include/grub/video.h (grub_video_adapter): Move 'next' to first
1235 element.
1236 (grub_video_register): Inline.
1237 (grub_video_unregister): Likewise.
1238 (grub_video_adapter_list): New variable declaration.
1239 (grub_video_iterate): Removed.
1240 (FOR_VIDEO_ADAPTERS): New macro.
1241 * kern/dl.c (grub_dl_list): Removed. All users updated.
1242 (grub_dl_iterate): Removed.
1243 * kern/fs.c (grub_fs_list): Make global.
1244 (grub_fs_register): Removed.
1245 (grub_fs_unregister): Likewise.
1246 (grub_fs_iterate): Likewise.
1247 * kern/handler.c: Removed.
1248 * kern/list.c (grub_list_pop): Removed.
1249 (grub_list_iterate): Likewise.
1250 (grub_list_insert): Likewise.
1251 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
1252 (grub_prio_list_insert): Don't use grub_list_insert.
1253 * kern/main.c (grub_register_rescue_parser): Don't call
1254 grub_register_rescue_parser.
1255 * kern/parser.c (grub_parser_class): Removed.
1256 (grub_parser_execute): Use grub_rescue_parse_line.
1257 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
1258 (grub_rescue_parser): Removed.
1259 (grub_register_rescue_parser): Likewise.
1260 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
1261 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
1262 (grub_auth_check_authentication): Likewise.
1263 * normal/completion.c (iterate_command): Removed.
1264 (grub_normal_do_completion): Use FOR_COMMANDS.
1265 * normal/handler.c: Removed.
1266 * normal/main.c (read_config_file): Remove parser changing.
1267 (grub_normal_execute): Don't call read_handler_list.
1268 (grub_normal_read_line_real): Statically allocate prompt.
1269 (grub_cmdline_run): Use grub_normal_parse_line.
1270 (GRUB_MOD_FINI): Don't call free_handler_list.
1271 * normal/menu_entry.c (run): Likewise.
1272 * script/function.c (grub_script_function_list): Make global.
1273 (grub_script_function_iterate): Removed.
1274 * script/main.c (grub_normal_parse_line): Make global.
1275 (grub_sh_parser): Removed.
1276 (GRUB_MOD_INIT): Likewise.
1277 (GRUB_MOD_FINI): Likewise.
1278 * tests/lib/functional_test.c (grub_functional_test): Use
1279 FOR_LIST_ELEMENTS.
1280 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
1281 (grub_test_run): Use FOR_LIST_ELEMENTS.
1282 * tests/lib/unit_test.c (main): Likewise.
1283 * util/deviceiter.c (grub_util_iterate_devices): Don't use
1284 grub_list_pop.
1285 * util/grub-fstest.c (grub_term_input_class): Removed.
1286 (grub_term_output_class): Likewise.
1287 * util/grub-probe.c: Likewise.
1288 * util/i386/pc/grub-setup.c: Likewise.
1289 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1290 * util/grub-script-check.c (main): Don't call grub_init_all and
1291 grub_fini_all.
1292 * video/video.c (grub_video_adapter_list): Make global.
1293 (grub_video_register): Removed.
1294 (grub_video_unregister): Likewise.
1295 (grub_video_iterate): Likewise.
1296
1297 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
1300 reported by Henrique Ferreiro.
1301
1302 2010-06-09 Robert Millan <rmh@gnu.org>
1303
1304 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
1305 ones, when both are available.
1306
1307 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1308
1309 Make --version uniform and avoid hard-coded program name.
1310
1311 * util/grub-mkimage.c (main): Use `program_name' instead of
1312 hard-coded string.
1313 * util/i386/pc/grub-setup.c (main): Likewise.
1314 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
1315 * util/grub-install.in: Save the basename of $0 in $self, and use the
1316 latter in informational messages. Use the same format for --version
1317 as the binary programs.
1318 * util/grub-mkconfig.in: Likewise.
1319 * util/grub-mkrescue.in: Likewise.
1320 * util/grub-reboot.in: Likewise.
1321 * util/grub-set-default.in: Likewise.
1322 * util/i386/efi/grub-install.in: Likewise.
1323 * util/ieee1275/grub-install.in: Likewise.
1324 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1325
1326 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1327
1328 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
1329 embedding area. Use <= instead of == when checking for non-emptiness.
1330
1331 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1332
1333 * configure.ac: Add `.' to the directories searched for unifont.
1334
1335 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1336
1337 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
1338 grub_script.yy.h.
1339
1340 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1341
1342 * docs/grub.texi (History): Expand to cover GRUB 2.
1343 (Serial terminal): Refer to `terminal_input' and `terminal_output'
1344 commands, not `terminal'.
1345 (serial): Likewise.
1346 (terminal_input): New section.
1347 (terminal_output): New section.
1348 (uppermem): New section (stub).
1349 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
1350
1351 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1352
1353 * docs/grub.texi (Security): Menu entries are unrestricted by
1354 default, not restricted to superusers as I had previously thought.
1355 Reword to account for this.
1356
1357 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1358
1359 * kern/emu/misc.c (device_mapper_null_log): New function.
1360 (grub_device_mapper_supported): New function.
1361 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
1362 prototype.
1363 * kern/emu/hostdisk.c (find_partition_start): Check whether
1364 device-mapper is supported before trying to use it.
1365 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
1366
1367 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1368
1369 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
1370 (File name syntax): Likewise.
1371 (help): --all is no longer supported in GRUB 2. Be more precise
1372 about pattern matching.
1373
1374 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1375
1376 * normal/completion.c (grub_normal_do_completion): When completing
1377 arguments to "set" and the current word contains an equals sign,
1378 skip to after the equals sign before starting completion.
1379
1380 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1381
1382 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
1383
1384 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1385
1386 * docs/grub.texi (Network): New section.
1387 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
1388 `(nd)' as in GRUB Legacy.
1389 (pxe_unload): New section.
1390
1391 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1392
1393 * docs/grub.texi (Troubleshooting): `echo' is not usually available
1394 in the rescue shell, so recommend using `set' instead. Thanks,
1395 Jordan Uggla.
1396
1397 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1398
1399 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
1400 (password): New section.
1401 (password_pbkdf2): New section.
1402 (search): New section.
1403 (Security): New section.
1404 (Troubleshooting): New section, currently very incomplete.
1405 (Invoking grub-mkpasswd-pbkdf2): New section.
1406 (Internals): New section, currently very incomplete.
1407
1408 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1409
1410 * util/grub.d/00_header.in: Add some more quoting (of
1411 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
1412 work again.
1413 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
1414
1415 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1416
1417 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
1418 to `count', fixing variable shadowing that broke the -c option.
1419
1420 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
1421
1422 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
1423 in case they contain spaces.
1424
1425 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1426
1427 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
1428 "part_" to partmap module names, in line with grub-install.
1429 Reported by: Jindřich Makovička (Debian bug #584426).
1430
1431 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1432
1433 * util/grub-mkimage.c: Make target-related error messages slightly
1434 more helpful; -O talks about "format". Explicitly point to the use
1435 of -O if no target is specified.
1436 Reported by: Didier Raboud (Debian bug #584415).
1437
1438 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
1439
1440 * INSTALL: Document several build requirements for optional features
1441 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
1442
1443 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1444
1445 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
1446 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
1447 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
1448
1449 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1450
1451 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
1452 Thanks to Jordan Uggla for spotting this.
1453
1454 2010-06-02 Aleš Nesrsta <starous@volny.cz>
1455
1456 Finally make USB usable.
1457
1458 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
1459 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
1460 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
1461 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
1462 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
1463 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
1464 (GRUB_OHCI_FSMPS): Likewise.
1465 (GRUB_OHCI_PERIODIC_START): Likewise.
1466 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
1467 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
1468 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
1469 (GRUB_OHCI_SET_PORT_RESET): Likewise.
1470 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
1471 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
1472 (grub_ohci_transaction): Likewise.
1473 (grub_ohci_transfer): Improve condition detection algorithms.
1474 Handle toggle property. Program the transactions correctly.
1475 Improve error handling. Various important fixups.
1476 (grub_ohci_portstatus): Put register writes in right order.
1477 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
1478 (grub_uhci_transfer): Don't show "failed" message on success.
1479 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
1480 array.
1481 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
1482 determine its size.
1483 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
1484 before initialization is completed. Use IN direction for empty
1485 transfers. Use last_trans and compute toggle.
1486 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
1487 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
1488 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
1489 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
1490 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
1491 (grub_usb_device): Increase toggle to 256.
1492 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
1493 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
1494 GRUB_USBMS_SUBCLASS_SFF8070.
1495 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
1496 (grub_scsi_inquiry): New member page and alloc_length.
1497 (grub_scsi_request_sense): New structure.
1498 (grub_scsi_request_sense_data): Likewise.
1499 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
1500 control.
1501 * disk/scsi.c (grub_scsi_request_sense): New function.
1502 (grub_scsi_test_unit_ready): Likewise.
1503 (grub_scsi_inquiry): Fill new fields.
1504 (grub_scsi_read_capacity): Likewise.
1505 (grub_scsi_read10): Add request sense at the end.
1506 (grub_scsi_read12): Likewise.
1507 (grub_scsi_write10): Likewise.
1508 (grub_scsi_write12): Likewise.
1509 (grub_scsi_open): Add Test Unit Ready.
1510 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
1511 Support additional subclasses. Con't clear halt yet. Activate the
1512 proper config. Calculate LUNs correctly.
1513 (grub_usbms_transfer): Various important fixups.
1514
1515 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1518 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1519 (grub_ohci_fini_hw): New function.
1520 (grub_ohci_restore_hw): Likewise.
1521 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1522 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1523 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1524
1525 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 Dedicated DMA allocations.
1528
1529 * bus/pci.c (grub_memalign_dma32): New function
1530 (grub_dma_free): Likewise.
1531 (grub_dma_get_virt): Likewise.
1532 (grub_dma_get_phys): Likewise.
1533 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1534 (grub_ohci_pci_iter): Use dma32_alloc.
1535 (grub_ohci_transfer): Likewise.
1536 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1537 (grub_usb_bulk_readwrite): Likewise.
1538 * include/grub/pci.h: Add declarations.
1539
1540 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 CS5536 support.
1543
1544 * bus/cs5536.c: New file.
1545 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1546 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1547 (cs5536_mod_SOURCES): New variable.
1548 (cs5536_mod_CFLAGS): Likewise.
1549 (cs5536_mod_LDFLAGS): Likewise.
1550 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1551 machine/pci.h.
1552 (kernel_img_SOURCES): Add bus/cs5536.c.
1553 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1554 usb_keyboard.mod.
1555 (usb_mod_SOURCES): New variable.
1556 (usb_mod_CFLAGS): New variable.
1557 (usb_mod_LDFLAGS): New variable.
1558 (usbtest_mod_SOURCES): New variable.
1559 (usbtest_mod_CFLAGS): New variable.
1560 (usbtest_mod_LDFLAGS): New variable.
1561 (ohci_mod_SOURCES): New variable.
1562 (ohci_mod_CFLAGS): New variable.
1563 (ohci_mod_LDFLAGS): New variable.
1564 (usbms_mod_SOURCES): New variable.
1565 (usbms_mod_CFLAGS): New variable.
1566 (usbms_mod_LDFLAGS): New variable.
1567 (usb_keyboard_mod_SOURCES): New variable.
1568 (usb_keyboard_mod_CFLAGS): New variable.
1569 (usb_keyboard_mod_LDFLAGS): New variable.
1570 * include/grub/smbus.h: New file.
1571 * include/grub/cs5536.h: New file.
1572
1573 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1574
1575 * util/grub.d/00_header.in: Add safety check to make sure that
1576 ${locale_dir} exists before trying to probe it.
1577
1578 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1579
1580 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1581 per the GNU Coding Standards; this is now too obscure to be worth
1582 documenting.
1583 (QNX): Likewise.
1584 (chainloader): Remove cross-reference to `SCO UnixWare'.
1585
1586 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1587
1588 * docs/grub.texi (Chain-loading): New section.
1589 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1590 adjusted for GRUB 2.
1591 (SCO UnixWare): Likewise.
1592 (QNX): Likewise.
1593 (chainloader): Add reference to `Block list syntax'.
1594 (drivemap): New section.
1595 (parttool): New section.
1596
1597 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1598
1599 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1600 the grub shell'.
1601 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1602 (Installing GRUB using grub-install): Remove reference to the grub
1603 shell; mention `grub-mkimage' and `grub-setup' instead.
1604 (Invoking grub-install): Likewise.
1605 (Interface): Add reference to `Menu entry editor'.
1606 (serial): Remove `--device' option.
1607
1608 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1609
1610 * docs/grub.texi (Configuration): New section, documenting
1611 configuration file generation using grub-mkconfig. I've left a slot
1612 for documenting the full shell scripting format but have not yet
1613 started on writing that up.
1614 (Invoking grub-mkconfig): New section.
1615
1616 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1617
1618 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1619 (GNU GRUB manual): Likewise.
1620 (General commands): Update description of `terminfo' for GRUB 2.
1621
1622 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1623
1624 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1625 (GRUB_MOD_INIT): Fix capitalisation.
1626 * docs/grub.texi (Command-line and menu entry commands): Document
1627 gettext and gptsync commands.
1628
1629 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1630
1631 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1632 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1633
1634 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1635
1636 Add btrfs probing support, currently only in the single-device case.
1637
1638 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1639 function.
1640 (grub_guess_root_device): Call find_root_device_from_mountinfo
1641 before looking in /dev.
1642
1643 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1646 GRUB_DISK_SIZE_UNKNOWN.
1647 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1648
1649 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1650
1651 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1652 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1653 corrupted or not synced properly.
1654
1655 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1658 Reported by: Seth Goldberg.
1659
1660 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1663 addition of dest.
1664 Reported by: Seth Goldberg.
1665
1666 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1669 Reported by: Seth Goldberg.
1670
1671 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1674 64-bit address as signed on MIPS.
1675
1676 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1677
1678 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1679 to the empty string.
1680
1681 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1682
1683 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1684
1685 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1686 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1687 * kern/misc.c (__enable_execute_stack): Disable on
1688 GRUB_MACHINE_EMU.
1689
1690 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1691
1692 Make grub-probe work with symbolic links under /dev/mapper as well
1693 as with real block devices. The Linux world seems to be (at best)
1694 in transition here, and GRUB shouldn't get caught in the middle.
1695
1696 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1697 /dev/mapper.
1698
1699 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1700
1701 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1702 input files (in which case exit zero).
1703
1704 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1705
1706 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1707 return NULL for various reasons even if it has a maximum-length
1708 buffer: for example, there might be a symlink loop, or the path
1709 might exceed PATH_MAX. If this happens, return NULL.
1710
1711 2010-05-27 Robert Millan <rmh@gnu.org>
1712
1713 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1714 partmap module to handle cross-partmap setups.
1715 Reported by Orestes Mas. Gràcies!
1716
1717 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1718
1719 * util/grub-mkrescue.in: Initialise override_dir rather than
1720 assuming that it's unset or empty in the environment.
1721
1722 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1723
1724 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1725 variable index into p_index to suppress a warning with -Wshadow.
1726
1727 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1728
1729 * INSTALL: Added flex >= 2.5.35 requirement.
1730
1731 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1734
1735 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 cmostest support.
1738
1739 * commands/i386/cmostest.c: New file.
1740 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1741 (cmostest_mod_SOURCES): New variable.
1742 (cmostest_mod_CFLAGS): Likewise.
1743 (cmostest_mod_LDFLAGS): Likewise.
1744 * conf/i386-pc.rmk: Likewise.
1745 * docs/grub.texi (Vendor power-on keys): New section.
1746 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1747 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1748 and GRUB_BUTTON_CMOS_ADDRESS.
1749 * util/grub.d/00_header.in: Handle powering-on by separate button.
1750
1751 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1754 Removed drawing_scrollbar argument. All users updated
1755 Fixes #29792.
1756 Reported by Jo Shields
1757
1758 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1761 buffer since gfxterm handles double repaint.
1762
1763 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1764
1765 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1766 * term/gfxterm.c (real_scroll): Likewise.
1767
1768 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1769
1770 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1771 before calling BIOS.
1772
1773 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * include/grub/i18n.h: Always enable grub_gettext.
1776
1777 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1780 partition naming style.
1781
1782 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1783
1784 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1785 not the first option.
1786
1787 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1788
1789 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1790
1791 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1792
1793 * util/misc.c: Move inclusion of <limits.h> to ...
1794 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1795
1796 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1797
1798 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1799 Fix merge error in NetBSD code.
1800 (find_partition_start) [__NetBSD__]: Likewise.
1801
1802 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1803
1804 Fix grub-mkrescue usage unit testing.
1805
1806 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1807
1808 2010-05-18 Christian Franke <franke@computer.org>
1809
1810 * util/grub.d/10_windows.in: Use path names instead of
1811 drive letters to prevent warning from Cygwin 1.7.
1812 Add drivemap command to menuentry if needed.
1813
1814 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1815
1816 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1817 gnumach and gnumach.gz.
1818
1819 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * include/grub/i18n.h (gettext): Inline instead of using #define.
1822 (grub_gettext): Likewise.
1823 (_): Likewise.
1824
1825 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1828 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1829 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1830 (main): Add a slash after pkglibdirroot.
1831
1832 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * util/grub-install.in: Add missing "in" keyword.
1835
1836 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1839 Reported by: Seth Goldberg.
1840
1841 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1844
1845 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1846
1847 * configure.ac: Check for Linux device-mapper support.
1848
1849 * util/hostdisk.c (device_is_mapped): New function.
1850 (find_partition_start): New function, partly broken out from
1851 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1852 device-mapper support added.
1853 (linux_find_partition): Use find_partition_start.
1854 (convert_system_partition_to_system_disk): Add `st' argument.
1855 Support Linux /dev/mapper/* devices if device-mapper support is
1856 available; only DM-RAID devices are understood at present.
1857 (find_system_device): Add `st' argument. Pass it to
1858 convert_system_partition_to_system_disk.
1859 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1860 find_system_device and convert_system_partition_to_system_disk. Use
1861 find_partition_start.
1862
1863 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1864 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1865 * util/deviceiter.c [__linux__]: Define MINOR.
1866 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1867 * util/mkdevicemap.c (grub_putchar): New function.
1868 (grub_getkey): New function.
1869 (grub_refresh): New function.
1870 (main): Set debug=all if -v -v is used.
1871
1872 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1873
1874 Fix build with non-GNU libcs.
1875
1876 * util/misc.c (canonicalize_file_name): Move to ...
1877 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1878 grub_make_system_path_relative_to_its_root.
1879
1880 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1881
1882 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1883 we handle finding grub-mkimage. Default to finding grub-mkimage in
1884 ${bindir} with program_transform_name applied, and provide a
1885 --grub-mkimage option to override this.
1886
1887 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 Remove grub-mkisofs.
1890
1891 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1892 (grub_mkisofs_SOURCES): Removed.
1893 (grub_mkisofs_CFLAGS): Removed.
1894 * util/mkisofs/defaults.h: Removed.
1895 * util/mkisofs/eltorito.c: Likewise.
1896 * util/mkisofs/exclude.h: Likewise.
1897 * util/mkisofs/hash.c: Likewise.
1898 * util/mkisofs/include/: Likewise.
1899 * util/mkisofs/include/fctldefs.h: Likewise.
1900 * util/mkisofs/include/mconfig.h: Likewise.
1901 * util/mkisofs/include/prototyp.h: Likewise.
1902 * util/mkisofs/include/statdefs.h: Likewise.
1903 * util/mkisofs/iso9660.h: Likewise.
1904 * util/mkisofs/joliet.c: Likewise.
1905 * util/mkisofs/match.c: Likewise.
1906 * util/mkisofs/match.h: Likewise.
1907 * util/mkisofs/mkisofs.c: Likewise.
1908 * util/mkisofs/mkisofs.h: Likewise.
1909 * util/mkisofs/msdos_partition.h: Likewise.
1910 * util/mkisofs/multi.c: Likewise.
1911 * util/mkisofs/name.c: Likewise.
1912 * util/mkisofs/rock.c: Likewise.
1913 * util/mkisofs/tree.c: Likewise.
1914 * util/mkisofs/write.c: Likewise.
1915
1916 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 Unify grub-mkimage accross platforms.
1919
1920 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1921 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1922 (grub_mkelfimage_SOURCES): Removed.
1923 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1924 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1925 (bin_UTILITIES): Add grub-mkimage.
1926 (grub_mkimage_SOURCES): New variable.
1927 (kernel_img_HEADERS): Remove machine/kernel.h.
1928 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1929 (pkglib_PROGRAMS): Add kernel.img.
1930 (kernel_img_HEADERS): Add machine/kernel.h.
1931 (kernel_img_FORMAT): Removed.
1932 (bin_UTILITIES): Remove grub-mkimage.
1933 (grub_mkimage_SOURCES): Removed.
1934 (grub_mkimage_CFLAGS): Likewise.
1935 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1936 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1937 (pkglib_PROGRAMS): Add kernel.img.
1938 (bin_UTILITIES): Remove grub-mkimage.
1939 (grub_mkimage_SOURCES): Removed.
1940 (grub_mkimage_CFLAGS): Likewise.
1941 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1942 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1943 (pkglib_PROGRAMS): Add kernel.img.
1944 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1945 (pkglib_PROGRAMS): Add kernel.img.
1946 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1947 (grub_mkimage_SOURCES): Removed.
1948 (grub_mkimage_CFLAGS): Likewise.
1949 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1950 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1951 (pkglib_PROGRAMS): Add kernel.img.
1952 (bin_UTILITIES): Remove grub-mkimage.
1953 (grub_mkimage_SOURCES): Removed.
1954 (grub_mkimage_CFLAGS): Likewise.
1955 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1956 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1957 (grub_mkimage_SOURCES): Removed.
1958 (grub_mkimage_CFLAGS): Likewise.
1959 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1960 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1961 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1962 (grub_pe32_optional_header): ... this.
1963 (grub_pe64_optional_header): ... and this. All users updated.
1964 (GRUB_PE32_PE32_MAGIC): Split into ..
1965 (GRUB_PE32_PE32_MAGIC): .. this.
1966 (GRUB_PE32_PE64_MAGIC): .. and this.
1967 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1968 * include/grub/elf.h (PT_GNU_STACK): New definition.
1969 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1970 * include/grub/i386/efi/kernel.h: Likewise.
1971 * include/grub/i386/kernel.h: Likewise.
1972 * include/grub/i386/pc/kernel.h: Likewise.
1973 * include/grub/i386/qemu/boot.h: Likewise.
1974 * include/grub/mips/kernel.h: Likewise.
1975 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1976 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1977 * include/grub/powerpc/kernel.h: Likewise.
1978 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1979 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1980 * include/grub/sparc64/kernel.h: Likewise.
1981 * include/grub/x86_64/efi/kernel.h: Likewise.
1982 * include/grub/x86_64/kernel.h: Likewise.
1983 * include/grub/offsets.h: New file.
1984 * include/grub/kernel.h (grub_module_info): Split into ...
1985 (grub_module_info32): ... this.
1986 (grub_module_info64): ... and this.
1987 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1988 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1989 (grub_boot_blocklist): Moved from here ...
1990 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1991 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1992 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1993 * include/grub/types.h (grub_target_to_host16): Removed.
1994 (grub_target_to_host32): Likewise.
1995 (grub_target_to_host64): Likewise.
1996 (grub_host_to_target16): Likewise.
1997 (grub_host_to_target32): Likewise.
1998 (grub_host_to_target64): Likewise.
1999 (grub_host_to_target_addr): Likewise.
2000
2001 Support grub-mkrescue for efi, coreboot and qemu.
2002
2003 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
2004 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
2005 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
2006 * util/grub-mkrawimage.c: Moved from here ...
2007 * util/grub-mkimage.c: ... here. All users updated.
2008 (ALIGN_ADDR): Use image_target.
2009 (TARGET_NO_FIELD): New const.
2010 (image_target_desc): New type.
2011 (image_targets): New array.
2012 (grub_target_to_host64): Use image_target.
2013 (grub_target_to_host32): Likewise.
2014 (grub_target_to_host16): Likewise.
2015 (grub_host_to_target64): Likewise.
2016 (grub_host_to_target32): Likewise.
2017 (grub_host_to_target16): Likewise.
2018 (grub_host_to_target_addr): Likewise.
2019 (generate_image): Handle multiimage.
2020 (main): Require -O parameter. All users updated.
2021 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
2022 util/efi/grub-mkimage.c
2023 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
2024 New option --rom-directory.
2025 Use xorriso.
2026 * util/i386/efi/grub-mkimage.c: Removed.
2027 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
2028 (grub_target_to_host32): Likewise.
2029 (grub_target_to_host64): Likewise.
2030 (grub_host_to_target16): Likewise.
2031 (grub_host_to_target32): Likewise.
2032 (grub_host_to_target64): Likewise.
2033 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
2034 (grub_target_to_host32): Likewise.
2035 (grub_target_to_host64): Likewise.
2036 (grub_host_to_target16): Likewise.
2037 (grub_host_to_target32): Likewise.
2038 (grub_host_to_target64): Likewise.
2039
2040 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
2041
2042 Source tree is reorganized for emu build.
2043
2044 * include/grub/util/console.h: Move from here...
2045 * include/grub/emu/console.h: ...to here.
2046 * include/grub/util/getroot.h: Move from here...
2047 * include/grub/emu/getroot.h: ...to here.
2048 * include/grub/util/hostdisk.h: Move from here...
2049 * include/grub/emu/hostdisk.h: ...to here.
2050 * util/console.c: Move from here...
2051 * kern/emu/console.c: ...to here.
2052 * util/getroot.c: Move from here...
2053 * kern/emu/getroot.c: ...to here.
2054 * util/grub-emu.c: Move from here...
2055 * kern/emu/main.c: ...to here.
2056 * util/hostdisk.c: Move from here...
2057 * kern/emu/hostdisk.c: ...to here.
2058 * util/hostfs.c: Move from here...
2059 * kern/emu/hostfs.c: ...to here.
2060 * util/mm.c: Move from here...
2061 * kern/emu/mm.c: ...to here.
2062 * util/pci.c: Move from here...
2063 * bus/emu/pci.c: ...to here.
2064 * util/sdl.c: Move from here...
2065 * video/emu/sdl.c: ...to here.
2066 * util/time.c: Move from here...
2067 * kern/emu/time.c: ...to here.
2068 * util/usb.c: Move from here...
2069 * bus/usb/emu/usb.c: ...to here.
2070
2071 * include/grub/emu/misc.h: New header for grub-emu functions.
2072 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
2073
2074 * conf/any-emu.rmk: Rule updates for above renames.
2075 * conf/common.rmk: Likewise.
2076 * conf/i386-pc.rmk: Likewise.
2077 * conf/i386-qemu.rmk: Likewise.
2078 * conf/mips.rmk: Likewise.
2079 * conf/sparc64-ieee1275.rmk: Likewise.
2080 * conf/x86-efi.rmk: Likewise.
2081
2082 * disk/lvm.h: #include updates for above renames.
2083 * util/grub-mkrelpath.c: Likewise.
2084 * util/grub-probe.c: Likewise.
2085 * util/i386/pc/grub-setup.c: Likewise.
2086 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2087 * kern/emu/console.c: Likewise.
2088 * kern/emu/getroot.c: Likewise.
2089 * kern/emu/hostdisk.c: Likewise.
2090 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
2091
2092 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
2093 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
2094 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
2095 * util/misc.c: Remove grub-emu functions.
2096
2097 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 Fix gfxmenu crash.
2100 Reported by: Thorsten Grützmacher.
2101
2102 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
2103 timeout hook.
2104 (circprog_set_property): Register and unregister timeout hook.
2105 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
2106 (label_destroy): Free template. and unregister hook.
2107 (label_set_state): New function.
2108 (label_set_property): Handle templates and hooks.
2109 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
2110 timeout hook.
2111 (progress_bar_set_property): Register and unregister timeout hook.
2112 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
2113 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
2114 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
2115 (update_timeout_visit): Removed.
2116 (update_timeouts): New function.
2117 (redraw_timeouts): Likewise.
2118 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
2119 (grub_gfxmenu_clear_timeout): Likewise.
2120 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
2121 (grub_gfxmenu_timeout_notify): Likewise.
2122 (grub_gfxmenu_timeout_notifications): New external variable.
2123 (grub_gfxmenu_timeout_register): New function.
2124 (grub_gfxmenu_timeout_unregister): Likewise.
2125
2126 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 Transform (broken) vga terminal into (working) vga video driver.
2129
2130 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
2131 video/i386/pc/vga.c.
2132 * include/grub/video.h (grub_video_driver_id):
2133 Add GRUB_VIDEO_DRIVER_VGA.
2134 * term/i386/pc/vga.c: Renamed to ...
2135 * video/i386/pc/vga.c: ...this
2136 (DEBUG_VGA): Removed.
2137 (CHAR_WIDTH): Likewise.
2138 (CHAR_HEIGHT): Likewise.
2139 (TEXT_WIDTH): Likewise.
2140 (TEXT_HEIGHT): Likewise.
2141 (DEFAULT_FG_COLOR): Likewise.
2142 (DEFAULT_BG_COLOR): Likewise.
2143 (colored_char): Likewise.
2144 (xpos): Likewise.
2145 (ypos): Likewise.
2146 (cursor_state): Likewise.
2147 (fg_color): Likewise.
2148 (bg_color): Likewise.
2149 (text_buf): Likewise.
2150 (page): Likewise.
2151 (font): Likewise.
2152 (framebuffer): New variable.
2153 (set_read_map): Disabled.
2154 (setup): New variable.
2155 (is_target): Likewise.
2156 (grub_vga_mod_init): Likewise.
2157 (grub_vga_mod_fini): Likewise.
2158 (check_vga_mem): Likewise.
2159 (write_char): Likewise.
2160 (write_cursor): Likewise.
2161 (scroll_up): Likewise.
2162 (grub_vga_putchar): Likewise.
2163 (grub_vga_getcharwidth): Likewise.
2164 (grub_vga_getwh): Likewise.
2165 (grub_vga_getxy): Likewise.
2166 (grub_vga_gotoxy): Likewise.
2167 (grub_vga_cls): Likewise.
2168 (grub_vga_setcolorstate): Likewise.
2169 (grub_vga_setcursor): Likewise.
2170 (grub_video_vga_init): New function.
2171 (grub_video_vga_setup): Likewise.
2172 (grub_video_vga_fini): Likewise.
2173 (update_target): Likewise.
2174 (grub_video_vga_blit_bitmap): Likewise.
2175 (grub_video_vga_blit_render_target): Likewise.
2176 (grub_video_vga_set_active_render_target): Likewise.
2177 (grub_video_vga_get_active_render_target): Likewise.
2178 (grub_video_vga_swap_buffers): Likewise.
2179 (grub_video_vga_set_palette): Likewise.
2180 (grub_video_vga_get_info_and_fini): Likewise.
2181 (grub_vga_term): Removed.
2182 (grub_video_vga_adapter): New variable.
2183 (GRUB_MOD_INIT): Register a video driver instead of terminal.
2184 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
2185
2186 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 * video/readers/jpeg.c: Indented.
2189
2190 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 Various jpeg cleanups.
2193
2194 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
2195 (grub_jpeg_decode_quan_table): Use sizeof.
2196 (grub_jpeg_decode_du): Use ARRAY_SIZE.
2197
2198 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
2199
2200 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
2201 tables. Ignore non-last ac bit.
2202 (grub_jpeg_decode_quan_table): Likewise.
2203
2204 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2207 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
2208 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2209 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
2210 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
2211 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
2212
2213 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
2216 error.
2217
2218 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
2221
2222 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
2225 condition.
2226
2227 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
2230 part.
2231
2232 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2233
2234 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
2235 pointers.
2236
2237 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
2240
2241 2010-05-01 Christian Franke <franke@computer.org>
2242
2243 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
2244 Remove broken Cygwin path conversion.
2245 * util/misc.c: [__CYGWIN__] Add include and define.
2246 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
2247 for Cygwin 1.7.
2248 (make_system_path_relative_to_its_root): Simplify loop, replace early
2249 return by break.
2250 [__CYGWIN__] Add conversion to win32 path.
2251 Include "/" case in trailing slash removal.
2252
2253 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 * kern/main.c (grub_load_config): Fix copy-pasted comment.
2256 Reported by: Seth Goldberg
2257
2258 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * commands/help.c (grub_cmd_help): Fix a typo.
2261 Reported by: Seth Goldberg
2262
2263 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
2266 name and add N_.
2267 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
2268 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
2269 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
2270 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
2271 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
2272 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
2273 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2274 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2275 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2276 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2277 * normal/context.c (GRUB_MOD_INIT): Likewise.
2278 * normal/main.c (GRUB_MOD_INIT): Likewise.
2279 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2280 * term/serial.c (GRUB_MOD_INIT): Likewise.
2281 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2282
2283 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
2286 extra == 0.
2287
2288 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * commands/iorw.c: New file.
2291 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
2292 (iorw_mod_SOURCES): New variable.
2293 (iorw_mod_CFLAGS): Likewise.
2294 (iorw_mod_LDFLAGS): Likewise.
2295
2296 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 Hotkey support
2299
2300 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
2301 * normal/main.c (hotkey_aliases): New variable.
2302 (grub_normal_add_menu_entry): Parse "--hotkey".
2303 * normal/menu_text.c (run_menu): Handle hotkeys.
2304
2305 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * kern/i386/coreboot/init.c (grub_machine_init): Call
2308 grub_machine_mmap_init on qemu.
2309
2310 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * boot/i386/qemu/boot.S: Add a missing .code16.
2313
2314 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 Use LBIO on coreboot.
2317
2318 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
2319 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
2320 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
2321 New declaration.
2322 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
2323 grub_machine_mmap_init on coreboot.
2324 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
2325 GRUB_LINUXBIOS_MEMBER_LINK.
2326 (grub_machine_mmap_iterate): Fix declaration.
2327 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
2328
2329 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 Split coreboot and multiboot ports.
2332
2333 * conf/i386-multiboot.rmk: New file.
2334 * configure.ac: Add multiboot port.
2335 * include/grub/i386/multiboot/boot.h: New file.
2336 * include/grub/i386/multiboot/console.h: Likewise.
2337 * include/grub/i386/multiboot/init.h: Likewise.
2338 * include/grub/i386/multiboot/kernel.h: Likewise.
2339 * include/grub/i386/multiboot/loader.h: Likewise.
2340 * include/grub/i386/multiboot/memory.h: Likewise.
2341 * include/grub/i386/multiboot/serial.h: Likewise.
2342 * include/grub/i386/multiboot/time.h: Likewise.
2343 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
2344 * loader/multiboot.c: Likewise.
2345 * loader/multiboot_mbi2.c: Likewise.
2346 * util/grub-mkrescue.in: Generate multiboot rescue.
2347
2348 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * kern/parser.c (grub_parser_execute): Cope with read-only config.
2351
2352 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 Merge handling of input and output terminals. Fix a hang.
2355
2356 * commands/terminal.c (abstract_terminal): New struct.
2357 (handle_command): New function. Based on grub_cmd_terminal_input.
2358 (grub_cmd_terminal_input): Use handle_command.
2359 (grub_cmd_terminal_output): Use handle_command.
2360
2361 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
2362
2363 Fix comment handling.
2364
2365 * tests/grub_script_comments.in: New testcase.
2366 * conf/tests.rmk: Rules for new testcase.
2367 * script/yylex.l: Updated flex rules.
2368
2369 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2370
2371 * docs/grub.texi (play): Document that zero pitches produce rests.
2372 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
2373 if argc is 1.
2374
2375 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
2378 autogen issues.
2379
2380 2010-04-26 Christian Franke <franke@computer.org>
2381
2382 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
2383 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
2384 (grub_get_prefix): Remove function.
2385 * util/grub-emu.c (main): Replace grub_get_prefix () call by
2386 make_system_path_relative_to_its_root ().
2387 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2388
2389 2010-04-24 Christian Franke <franke@computer.org>
2390
2391 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
2392 (kernel_img_LDFLAGS): Remove -static-libgcc.
2393
2394 2010-04-24 Christian Franke <franke@computer.org>
2395
2396 * configure.ac: Do not CHECK_BSS_START_SYMBOL
2397 and CHECK_END_SYMBOL if grub-emu is built.
2398 Unset TARGET_OBJ2ELF if grub-emu is built
2399 without module support.
2400
2401 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
2402
2403 Nilfs2 support.
2404
2405 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
2406 (grub_fstest_SOURCES): Likewise.
2407 (pkglib_MODULES): Add nilfs2.mod.
2408 (nilfs2_mod_SOURCES): New variable.
2409 (nilfs2_mod_CFLAGS): Likewise.
2410 (nilfs2_mod_LDFLAGS): Likewise.
2411 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2412 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2413 * fs/nilfs2.c: New file.
2414
2415 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
2418 is not supported.
2419
2420 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
2421
2422 Add grub-mkconfig support for NetBSD.
2423
2424 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
2425 * util/grub-mkconfig.in: export new NetBSD specific variables.
2426 * po/POTFILES-shell: added 10_netbsd.in.
2427 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
2428
2429 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
2430
2431 Fix emu build with grub-emu-pci and grub-emu-modules.
2432
2433 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
2434 functions.
2435 * include/grub/libpciaccess.h: New file.
2436 * conf/any-emu.rmk: Update kernel headers for emu build.
2437
2438 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
2441
2442 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
2445
2446 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
2449 Retrieve chosen/bootpath if bootpath isn't hardcoded.
2450 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
2451 util/ieee1275/ofpath.c.
2452 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
2453 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
2454 * include/grub/sparc64/ieee1275/boot.h
2455 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
2456 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
2457 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
2458 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
2459 const char *.
2460 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
2461 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
2462 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
2463 install.
2464
2465 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
2466
2467 * util/grub-mkconfig.in: Corrected two == equality tests.
2468 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
2469 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
2470 expect a number appended to it.
2471 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
2472 expects a number appended to it.
2473
2474 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
2477
2478 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2479
2480 * util/hostdisk.c (make_device_name): Change to new partition naming.
2481
2482 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
2485
2486 2010-04-17 Christian Franke <franke@computer.org>
2487
2488 * Makefile.in: Add missing localedir setting.
2489
2490 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
2491
2492 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
2493 mistake in r2156. Noticed by Anthony Fok.
2494
2495 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
2496 @localedir@.
2497 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
2498
2499 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
2500
2501 Fix a spurious, uninitialized variable warning.
2502
2503 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
2504 Initialize variable, shdr.
2505 (grub_freebsd_load_elfmodule): Likewise.
2506 (grub_freebsd_load_elf_meta): Likewise.
2507
2508 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
2509
2510 Fix for escaped dollar in double quoted strings.
2511
2512 * script/yylex.l: Updated flex rules.
2513 * conf/tests.rmk: Rule for new testcase.
2514 * tests/grub_script_dollar.in: New testcase.
2515
2516 2010-04-13 Carles Pina i Estany <carles@pina.cat>
2517 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
2518
2519 Enclose all translated strings in grub.cfg in single quotes, and
2520 escape them appropriately (Ubuntu bug #552921).
2521
2522 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2523 * util/grub.d/10_hurd.in: Use it.
2524 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2525 * util/grub.d/10_linux.in (linux_entry): Likewise.
2526
2527 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 Fix cygwin compilation.
2530
2531 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2532 * include/grub/misc.h (__register_frame_info)
2533 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2534 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2535 * kern/misc.c (__register_frame_info)
2536 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2537 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2538
2539 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2542
2543 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 Unify libgcc processing.
2546
2547 * Makefile.in (kernel_img_LDFLAGS): New variable.
2548 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2549 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2550 overwriting.
2551 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2552 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2553 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2554 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2555 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2556 overwriting. Remove -lgcc and -static-libgcc
2557 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2558 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2559 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2560 (kernel_img_LDFLAGS): Append instead of overwriting.
2561 Remove -lgcc and -static-libgcc
2562 * conf/sparc64-ieee1275.rmk: Likewise.
2563 * include/grub/powerpc/libgcc.h: Move to ...
2564 * include/grub/libgcc.h: .. this.
2565 * include/grub/libgcc.h: Don't export most of the function on x86.
2566 (__bswapsi2): New export.
2567 (__bswapdi2): Likewise.
2568 * include/grub/mips/libgcc.h: Removed.
2569 * include/grub/sparc64/libgcc.h: Likewise.
2570
2571 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2574 disk_info_msg (conflicts with gettexting into languages with cases).
2575
2576 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2577
2578 Add grub-probe support for NetBSD.
2579
2580 * util/getroot.c (find_root_device): Convert block device to
2581 character device on NetBSD.
2582 * util/probe.c (probe): Require character device on NetBSD.
2583 * util/hostdisk.c: NetBSD specific headers.
2584 (configure_device_driver): new function to tune device driver
2585 parameters (currently only for NetBSD floppy driver).
2586 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2587 via disklabel ioctl).
2588 (open_device): call configure_device_driver on NetBSD.
2589 (convert_system_partition_to_system_disk): NetBSD specific code.
2590 (device_is_wholedisk): Likewise.
2591 (grub_util_biosdisk_get_grub_dev): Likewise.
2592 (make_device_name): Fixed a typo in bsd_part_str.
2593 * configure.ac: check for opendisk() and getrawpartition() on
2594 NetBSD and set LIBUTIL.
2595 * Makefile.in: add LIBUTIL to LIBS.
2596
2597 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2598
2599 Documentation fix.
2600
2601 * util/grub-script-check.c: Better help message.
2602
2603 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2604
2605 Fix FreeBSD build.
2606
2607 * configure.ac: Flex version check.
2608 * conf/common.rmk: Add -Wno-error to sh.mod.
2609 * script/yylex.l: Remove all #pragma.
2610
2611 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2614 prototype.
2615 Reported by: Seth Goldberg.
2616
2617 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2620 Rename "module" to "module2".
2621 Reported by: Seth Goldberg.
2622
2623 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2626 EXPORT_FUNC.
2627 Reported by: Seth Goldberg.
2628
2629 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 * lib/posix_wrap/locale.h: Add missing file.
2632 Reported by: Seth Goldberg.
2633
2634 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 grub-emu module load support.
2637
2638 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2639 NO_DYNAMIC_MODULES switched to this.
2640 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2641 (CFLAGS): Likewise.
2642 * conf/any-emu.rmk: Generate symlist.
2643 (kernel_img_HEADERS): Add util/datetime.h.
2644 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2645 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2646 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2647 kern/$(target_cpu)/cache.S.
2648 * configure.ac (grub-emu-modules): New option.
2649 * genmk.rb: Handle multiple source lists.
2650 * include/grub/sdl.h: New file.
2651 * include/grub/libusb.h: Likewise.
2652 * util/grub-emu.c (main): Hanle (host) root.
2653 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2654 GRUB_ERR_UNKNOWN_DEVICE.
2655 * util/misc.c: Move mm functions to ...
2656 * util/mm.c: ... here. All users updated.
2657
2658 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2661 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2662 missing files.
2663 (maintainer-clean): Remove libgcrypt-grub.
2664
2665 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2668
2669 2010-04-09 EFI Coder <eficoder@hotmail.com>
2670
2671 * normal/menu_text.c (print_message): Clean up the message and show
2672 the Fn information when on EFI
2673 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2674
2675 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2678 All users updated.
2679 * normal/crypto.c (read_crypto_list): Likewise.
2680 * normal/dyncmd.c (read_command_list): Likewise.
2681 * normal/term.c (read_terminal_list): Likewise.
2682 * normal/main.c (read_lists): Use explicit prefix.
2683 (read_lists_hook): Use read_lists.
2684 (grub_normal_execute): Likewise.
2685
2686 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2689 Reported by: Thomas Schmitt.
2690 Add -no-emul-boot to grub-mkisofs parameters.
2691
2692 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * font/font.c: Indented.
2695
2696 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2697
2698 Elif support to GRUB script (by Deepak Vankadaru).
2699
2700 * tests/grub_script_if.in: New testcase.
2701 * conf/tests.rmk: Rule for new testcase.
2702 * script/parser.y: Grammar rules for elif.
2703
2704 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2705
2706 While and until loops support to GRUB script.
2707
2708 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2709 (grub_script_create_cmdwhile): New function prototype.
2710 (grub_script_execute_cmdwhile): New function prototype.
2711 * script/execute.c (grub_script_execute_cmdwhile): New function.
2712 * script/parser.y (command): New commands.
2713 (whilecmd): New grammar rule.
2714 (untilcmd): New grammar rule.
2715 * script/script.c (grub_script_create_cmdwhile): New function.
2716 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2717 function.
2718
2719 * tests/grub_script_while1.in: New testcase.
2720 * conf/tests.rmk: Rule for new testcase.
2721
2722 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2725 as *.jpg.
2726
2727 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2728
2729 GRUB_BACKGROUND support.
2730
2731 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2732 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2733
2734 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 Load fonts and modules for gfxmenu in grub-mkconfig.
2737 Idea by: Mario Vazquez
2738
2739 * util/grub.d/00_header.in: Load pf2 and image modules.
2740
2741 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 grub-mkconfig multiple terminal support.
2744
2745 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2746 * util/grub.d/00_header.in: Likewise.
2747
2748 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2749
2750 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2751 we use cd $(srcdir).
2752
2753 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2754
2755 * util/grub.d/10_linux.in: Only use the first word of
2756 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2757 spaces in GRUB_DISTRIBUTOR.
2758 * util/grub.d/10_kfreebsd.in: Likewise.
2759 * util/grub.d/10_hurd.in: Likewise.
2760
2761 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2762
2763 Fix unit testing framework for Qemu 0.12.
2764
2765 * tests/util/grub-shell.in: Remove -serial stdio option.
2766
2767 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 POSIX header file wrappers.
2770
2771 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2772 equivalents.
2773 * lib/posix_wrap/ctype.h: Likewise.
2774 * lib/posix_wrap/errno.h: Likewise.
2775 * lib/posix_wrap/langinfo.h: Likewise.
2776 * lib/posix_wrap/limits.h: Likewise.
2777 * lib/posix_wrap/localcharset.h: Likewise.
2778 * lib/posix_wrap/stdint.h: Likewise.
2779 * lib/posix_wrap/stdio.h: Likewise.
2780 * lib/posix_wrap/stdlib.h: Likewise.
2781 * lib/posix_wrap/string.h: Likewise.
2782 * lib/posix_wrap/sys/types.h: Likewise.
2783 * lib/posix_wrap/unistd.h: Likewise.
2784 * lib/posix_wrap/wchar.h: Likewise.
2785 * lib/posix_wrap/wctype.h: Likewise.
2786 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2787 (grub_script.yy.h): Likewise.
2788 * script/yylex.l: Remove POSIX emulation #defines.
2789 * Makefile.in (POSIX_CFLAGS): New variable.
2790 (GNULIB_UTIL_CFLAGS): Likewise.
2791
2792 Regexp support.
2793
2794 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2795 (regexp_mod_SOURCES): New variable.
2796 (regexp_mod_CFLAGS): Likewise.
2797 (regexp_mod_LDFLAGS): Likewise.
2798 * commands/regexp.c: New file.
2799 * gnulib/regcomp.c: New file. Imported from gnulib.
2800 * gnulib/regex.c: Likewise.
2801 * gnulib/regex_internal.c: Likewise.
2802 * gnulib/regex_internal.h: Likewise.
2803 * gnulib/regexec.c: Likewise.
2804 * gnulib/regex.h: Likewise.
2805
2806 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2809 unsupported video mode types.
2810
2811 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2814
2815 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2818 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2819
2820 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2821
2822 Remove unused grub_vga_get_font.
2823
2824 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2825 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2826
2827 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2828
2829 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2830 * include/grub/misc.h: Likewise.
2831
2832 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2833
2834 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2835 for which failure is fatal.
2836
2837 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2838
2839 * util/grub-install.in: Use mkdir -p to create grub directory.
2840 * util/i386/efi/grub-install.in: Likewise.
2841 * util/ieee1275/grub-install.in: Likewise.
2842
2843 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2844
2845 * Makefile.in (LEX): new variable.
2846
2847 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2848
2849 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2850 `=' and added double quotes on operands of this equality test.
2851
2852 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * Makefile.in (uninstall): Remove a leftover debug echo.
2855 Reported by: Grégoire Sutre
2856
2857 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 MIPS multiboot2 support.
2860
2861 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2862 (multiboot2_mod_SOURCES): New variable.
2863 (multiboot2_mod_CFLAGS): Likewise.
2864 (multiboot2_mod_LDFLAGS): Likewise.
2865 (multiboot2_mod_ASFLAGS): Likewise.
2866 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2867 definition.
2868 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2869 (MULTIBOOT_MBI_REGISTER): Likewise.
2870 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2871 (MULTIBOOT_ELF32_MACHINE): Likewise.
2872 (MULTIBOOT_ELF64_MACHINE): Likewise.
2873 * include/grub/mips/multiboot.h: New file.
2874 * include/grub/video.h (grub_video_driver_id): New type
2875 GRUB_VIDEO_DRIVER_SM712.
2876 (grub_video_get_info_and_fini): Export.
2877 (grub_video_get_palette): Likewise.
2878 (grub_video_get_driver_id): Likewise.
2879 * include/multiboot2.h: Resynced with spec.
2880 * loader/i386/multiboot.c: Moved from here ...
2881 * loader/multiboot.c: ... here. All users updated.
2882 (grub_multiboot_boot): Use platform-specific macros.
2883 * loader/i386/multiboot_elfxx.c: Moved from here ...
2884 * loader/multiboot_elfxx.c: ... here. All users updated.
2885 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2886 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2887 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2888
2889 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 Import gnulib argp module.
2892
2893 * gnulib/argp-ba.c: New file.
2894 * gnulib/argp-eexst.c: Likewise.
2895 * gnulib/argp-fmtstream.c: Likewise.
2896 * gnulib/argp-fmtstream.h: Likewise.
2897 * gnulib/argp-fs-xinl.c: Likewise.
2898 * gnulib/argp-help.c: Likewise.
2899 * gnulib/argp-namefrob.h: Likewise.
2900 * gnulib/argp-parse.c: Likewise.
2901 * gnulib/argp-pin.c: Likewise.
2902 * gnulib/argp-pv.c: Likewise.
2903 * gnulib/argp-pvh.c: Likewise.
2904 * gnulib/argp-version-etc.c: Likewise.
2905 * gnulib/argp-version-etc.h: Likewise.
2906 * gnulib/argp-xinl.c: Likewise.
2907 * gnulib/argp.h: Likewise.
2908
2909 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * kern/device.c (grub_device_iterate): Clear errors after failed
2912 opening device.
2913
2914 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2917 returned by firmware.
2918
2919 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2922 compilation on coreboot and qemu
2923
2924 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * include/multiboot2.h: Resync with spec.
2927
2928 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 Multiboot2 tag support
2931
2932 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2933 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2934 Remove loader/multiboot_loader.c.
2935 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2936 (grub_multiboot2_real_boot): Likewise.
2937 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2938 (grub_get_multiboot_mmap_count): New proto.
2939 (grub_fill_multiboot_mmap): Likewise.
2940 (grub_multiboot_set_video_mode): Likewise.
2941 (grub_multiboot_set_console): Likewise.
2942 (grub_multiboot_load): Likewise.
2943 (grub_multiboot_load_elf): Likewise.
2944 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2945 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2946 * include/multiboot.h: Resynced with specification.
2947 * include/multiboot2.h: Resynced with specification.
2948 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2949 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2950 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2951 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2952 users updated.
2953 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2954 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2955 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2956 Removed.
2957 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2958 Moved from here...
2959 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2960 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2961 Moved from here...
2962 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2963 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2964 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2965 All users updated.
2966 * loader/i386/multiboot_mbi2.c: New file.
2967
2968 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 Resync with gnulib.
2971
2972 * Makefile.in (GNULIB_CFLAGS): New variable.
2973 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2974 (grub_script_check_CFLAGS): New variable.
2975 * gnulib/alloca.h: Resync with gnulib.
2976 * gnulib/error.c: Likewise.
2977 * gnulib/error.h: Likewise.
2978 * gnulib/fnmatch.c: Likewise.
2979 * gnulib/fnmatch_loop.c: Likewise.
2980 * gnulib/getdelim.c: Likewise.
2981 * gnulib/getline.c: Likewise.
2982 * gnulib/getopt.c: Likewise.
2983 * gnulib/getopt1.c: Likewise.
2984 * gnulib/getopt_int.h: Likewise.
2985 * gnulib/gettext.h: Likewise.
2986 * gnulib/progname.c: Likewise.
2987 * gnulib/progname.h: Likewise.
2988
2989 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2990
2991 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2992 which is the case with --disabled-nls.
2993
2994 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2995 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2996 * util/misc.c: Likewise.
2997 * util/mkisofs/mkisofs.c: Likewise.
2998 * util/mkisofs/mkisofs.h: Likewise.
2999
3000 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 Simplify Apple CC support.
3003
3004 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
3005 Add 0 byte at the end not to have a symbol with empty target.
3006 * mmap/i386/pc/mmap_helper.S: Likewise.
3007 * genmk.rb: Ignore errors 2030 and 2050.
3008 * kern/i386/pc/startup.S: Use LOCAL when possible.
3009
3010 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
3011
3012 Testcase and the fix for final semicolon on cmdline.
3013
3014 * tests/grub_script_final_semicolon.in: New testcase.
3015 * conf/tests.rmk: Rules for the new testcase.
3016 * script/parser.y: Grammar fix.
3017
3018 2010-03-26 BVK Chaitanya <bvk@localhost>
3019
3020 Blank lines testcase for GRUB script.
3021
3022 * tests/grub_script_blanklines.in: New testcase.
3023 * conf/tests.rmk: Rules for the new testcase.
3024
3025 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 Don't use __FILE__.
3028
3029 * genmk.rb: Add -DGRUB_FILE to all C targets.
3030 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
3031 * include/grub/list.h: Likewise.
3032 * include/grub/misc.h: Likewise.
3033 * include/grub/mm.h: Likewise.
3034 * include/grub/test.h: Likewise.
3035 * kern/mm.c: Likewise.
3036 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
3037
3038 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 Sunpc partitions support.
3041
3042 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
3043 (grub_fstest_SOURCES): Likewise.
3044 (pkglib_MODULES): Add part_sunpc.mod.
3045 (part_sunpc_mod_SOURCES): New variable.
3046 (part_sunpc_mod_CFLAGS): Likewise.
3047 (part_sunpc_mod_LDFLAGS): Likewise.
3048 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
3049 * partmap/sunpc.c: New file.
3050
3051 2010-03-26 BVK Chaitanya <bvk@localhost>
3052
3053 For loop support to GRUB script.
3054
3055 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
3056 (grub_script_create_cmdfor): New function prototype.
3057 (grub_script_execute_cmdfor): New function prototype.
3058 * script/execute.c (grub_script_execute_cmdfor): New function.
3059 * script/parser.y (command): New for command.
3060 (forcmd): New grammar rule.
3061 * script/script.c (grub_script_create_cmdfor): New function.
3062 * util/grub-script-check.c (grub_script_execute_cmdfor): New
3063 function.
3064 * tests/grub_script_for1.in: New testcase.
3065 * conf/tests.rmk: Rules for new testcase.
3066
3067 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 Nested partitions
3070
3071 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
3072 'partition' is NULL, grub_partition_get_start already does that.
3073 * commands/loadenv.c (check_blocklists): Likewise.
3074 (write_blocklists): Likewise.
3075 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
3076 (grub_fstest_SOURCES): Likewise.
3077 (pkglib_MODULES): Add part_bsd.mod.
3078 (part_bsd_mod_SOURCES): New variable.
3079 (part_bsd_mod_CFLAGS): Likewise.
3080 (part_bsd_mod_LDFLAGS): Likewise.
3081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
3082 (grub_emu_SOURCES): Likewise.
3083 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3084 * include/grub/bsdlabel.h: New file.
3085 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
3086 'get_name'.
3087 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
3088 (grub_partition_map_list): New variable.
3089 (grub_partition_map_register): Inline.
3090 (grub_partition_map_unregister): Likewise.
3091 (FOR_PARTITION_MAPS): New macro.
3092 (grub_partition_map_iterate): Removed.
3093 (grub_partition_get_start): Handle nested partitions.
3094 * include/grub/msdos_partition.h: Remove bsd-related entries.
3095 (grub_pc_partition): Remove.
3096 * kern/disk.c (grub_disk_close): Free partition data.
3097 (grub_disk_adjust_range): Handle nested partitions.
3098 * kern/partition.c (grub_partition_map_probe): New function.
3099 (grub_partition_probe): Parse name to number, handle subpartitions.
3100 (get_partmap): New function.
3101 (grub_partition_iterate): Handle subpartitions.
3102 (grub_partition_get_name): Likewise.
3103 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
3104 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
3105 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
3106 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
3107 Set 'number'.
3108 (acorn_partition_map_probe): Remove.
3109 (acorn_partition_map_get_name): Likewise.
3110 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
3111 Set 'number'.
3112 Set 'index' to 0 since there can be only one partition entry per sector.
3113 (amiga_partition_map_probe): Remove.
3114 (amiga_partition_map_get_name): Likewise.
3115 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
3116 Set 'number'.
3117 Set 'offset' and 'index' to real positions of partitions.
3118 (apple_partition_map_probe): Remove.
3119 (apple_partition_map_get_name): Likewise.
3120 * partmap/bsdlabel.c: New file.
3121 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
3122 Set 'number'.
3123 Allocate 'data' so it can be correctly freed.
3124 Set 'index' to offset inside sector.
3125 (gpt_partition_map_probe): Remove.
3126 (gpt_partition_map_get_name): Likewise.
3127 * partmap/msdos.c (grub_partition_parse): Remove.
3128 (pc_partition_map_iterate): Don't force raw access.
3129 Set 'number'.
3130 Make 'ext_offset' a local variable.
3131 (pc_partition_map_probe): Remove.
3132 (pc_partition_map_get_name): Remove.
3133 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
3134 Set 'number'.
3135 (sun_partition_map_probe): Remove.
3136 (sun_partition_map_get_name): Likewise.
3137 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
3138 (grub_pcpart_type): Likewise.
3139 * util/hostdisk.c (open_device): Handle new numbering scheme.
3140 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
3141 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
3142 * util/grub-probe.c (probe_partmap): Handle nested paritions.
3143 * util/grub-install.in: Insert all subpartition modules.
3144 * util/ieee1275/grub-install.in: Likewise.
3145
3146 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
3147
3148 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
3149 grammar.
3150
3151 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
3152
3153 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
3154
3155 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
3156
3157 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
3158 match where 'make install' puts them.
3159 * util/i386/efi/grub-install.in: Likewise.
3160
3161 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
3162
3163 * .bzrignore: Add gentrigtables, grub-script-check,
3164 grub_script_check_init.c, grub_script_check_init.h, and
3165 trigtables.c.
3166
3167 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * kern/parser.c: Indented.
3170
3171 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
3174
3175 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
3178 alpha_mask_size == 0 case.
3179
3180 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
3181
3182 GRUB shell lexer and parser improvements.
3183
3184 * conf/any-emu.rmk: Build rule updates.
3185 * conf/common.rmk: Likewise.
3186 * conf/i386-coreboot.rmk: Likewise.
3187 * conf/i386-efi.rmk: Likewise.
3188 * conf/i386-ieee1275.rmk: Likewise.
3189 * conf/i386-pc.rmk: Likewise.
3190 * conf/powerpc-ieee1275.rmk: Likewise.
3191 * conf/x86_64-efi.rmk: Likewise.
3192
3193 * configure.ac: Configure check for flex.
3194
3195 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
3196 types.
3197 (grub_lexer_param): Struct member updates.
3198 (grub_parser_param): Likewise.
3199 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
3200 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
3201 (grub_script_lexer_init): Prototype update.
3202 (grub_script_lexer_record_start): Likewise.
3203 (grub_script_lexer_record_stop): Likewise.
3204 (grub_script_lexer_yywrap): New function prototype.
3205 (grub_script_lexer_fini): Likewise.
3206 (grub_script_execute_argument_to_string): Removed by...
3207 (grub_script_execute_argument_to_argv): ...better version.
3208
3209 * script/execute.c (ROUND_UPTO): New macro.
3210 (grub_script_execute_cmdline): Out of memory fixes.
3211 (grub_script_execute_menuentry): Likewise.
3212 (grub_script_execute_argument_to_string): Removed. Update all
3213 users by...
3214 (grub_script_execute_argument_to_argv): ...better version.
3215 * script/function.c (grub_script_function_create): Use
3216 grub_script_execute_argument_to_argv instead of
3217 grub_script_execute_argument_to_string.
3218
3219 * script/lexer.c (check_varstate): Removed.
3220 (check_textstate): Removed.
3221 (grub_script_lexer_record_start): Likewise.
3222 (grub_script_lexer_record_stop): Likewise.
3223 (recordchar): Replaced with...
3224 (grub_script_lexer_record): ...new function.
3225 (nextchar): Removed.
3226 (grub_script_lexer_init): Rewritten.
3227 (grub_script_yylex): Rewritten.
3228 (append_newline): New function.
3229 (grub_script_lexer_yywrap): New function.
3230 (grub_script_lexer_fini): New function.
3231 (grub_script_yyerror): Sets error flag.
3232
3233 * script/yylex.l: New file.
3234 (grub_lexer_yyfree): Wrapper for flex yyffre.
3235 (grub_lexer_yyalloc): Likewise.
3236 (grub_lexer_yyrealloc): Likewise.
3237 * script/parser.y: Refactored.
3238
3239 * script/script.c (grub_script_arg_add): Out of memory fixes.
3240 (grub_script_add_arglist): Likewise.
3241 (grub_script_create_cmdline): Likewise.
3242 (grub_script_create_cmdmenu): Likewise.
3243 (grub_script_add_cmd): Likewise.
3244 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
3245 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
3246 unnecessary code.
3247
3248 * tests/grub_script_echo1.in: New testcase.
3249 * tests/grub_script_vars1.in: New testcase.
3250 * tests/grub_script_echo_keywords.in: New testcase.
3251
3252 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3253
3254 Remove some redundancy in build system.
3255
3256 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
3257 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
3258 (TARGET_LDFLAGS): Add -nostdlib.
3259 (TARGET_IMG_LDFLAGS): Likewise.
3260 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
3261 anything since mmap isn't available.
3262 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
3263 Add util/time.c.
3264 (pkglib_MODULES): Remove reboot.mod.
3265 (reboot_mod_SOURCES): Removed.
3266 (reboot_mod_CFLAGS): Likewise.
3267 (reboot_mod_LDFLAGS): Likewise.
3268 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
3269 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
3270 (DEFSYMFILES): Add kernel_syms.lst.
3271 (kernel_img_HEADERS): Add common headers.
3272 (symlist.c): New target.
3273 (kernel_syms.lst): Likewise.
3274 (pkglib_MODULES): Add memdisk.mod.
3275 (memdisk_mod_SOURCES): New variable.
3276 (memdisk_mod_CFLAGS): Likewise.
3277 (memdisk_mod_LDFLAGS): Likewise.
3278 (pkglib_MODULES): Add reboot.mod.
3279 (reboot_mod_SOURCES): New variable.
3280 (reboot_mod_CFLAGS): Likewise.
3281 (reboot_mod_LDFLAGS): Likewise.
3282 (pkglib_MODULES): Add date.mod.
3283 (date_mod_SOURCES): New variable.
3284 (date_mod_CFLAGS): Likewise.
3285 (date_mod_LDFLAGS): Likewise.
3286 (pkglib_MODULES): Add datehook.mod.
3287 (datehook_mod_SOURCES): New variable.
3288 (datehook_mod_CFLAGS): Likewise.
3289 (datehook_mod_LDFLAGS): Likewise.
3290 (pkglib_MODULES): Add lsmmap.mod.
3291 (lsmmap_mod_SOURCES): New variable.
3292 (lsmmap_mod_CFLAGS): Likewise.
3293 (lsmmap_mod_LDFLAGS): Likewise.
3294 (pkglib_MODULES): Add boot.mod.
3295 (boot_mod_SOURCES): New variable.
3296 (boot_mod_CFLAGS): Likewise.
3297 (boot_mod_LDFLAGS): Likewise.
3298 * conf/i386-coreboot.rmk: Removed redundant parts.
3299 * conf/i386-ieee1275.rmk: Likewise.
3300 * conf/i386-pc.rmk: Likewise.
3301 * conf/mips-yeeloong.rmk: Likewise.
3302 * conf/mips.rmk: Likewise.
3303 * conf/powerpc-ieee1275.rmk: Likewise.
3304 * conf/sparc64-ieee1275.rmk: Likewise.
3305 * conf/x86_64-efi.rmk: Likewise.
3306 * conf/i386-coreboot.rmk: Moved qemu parts ..
3307 * conf/i386-qemu.rmk: ... here
3308 * conf/i386-efi.rmk: Moved common parts to...
3309 * conf/x86-efi.rmk: ... here.
3310 * conf/i386.rmk: Added modules common to all x86 variants.
3311 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
3312 * disk/memdisk.c: Remove grub/machine/kernel.h.
3313 * gensymlist.sh.in: Include symbol.h.
3314 * hook/datehook.c: Correct module name.
3315 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
3316 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
3317 * include/grub/i386/efi/serial.h: New file.
3318 * include/grub/x86_64/efi/serial.h: Likewise.
3319 * util/time.c: Likewise.
3320 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
3321
3322 2010-03-14 Colin King <colin.king@ubuntu.com>
3323 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3324
3325 Shrink the pre-partition-table part of boot.img by eight bytes.
3326
3327 * boot/i386/pc/boot.S (ERR): New macro.
3328 (chs_mode): Use ERR.
3329 (geometry_error): Likewise.
3330 (hd_probe_error): Remove. This is only used once, so we wrwite
3331 it inline instead.
3332 (read_error): Instead of printing read_error_string, just set up
3333 %si and fall through to ...
3334 (error_message): ... this new function, also used by ERR.
3335
3336 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3337
3338 Speed up consecutive hostdisk operations on the same device.
3339
3340 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
3341 (grub_util_biosdisk_open): Initialise disk->data.
3342 (struct linux_partition_cache): New structure.
3343 (linux_find_partition): Cache partition start positions; these are
3344 expensive to compute on every read and write.
3345 (open_device): Cache open file descriptor in disk->data, so that we
3346 don't have to reopen it and flush the buffer cache for consecutive
3347 operations on the same device.
3348 (grub_util_biosdisk_close): New function.
3349 (grub_util_biosdisk_dev): Set `close' member.
3350
3351 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
3352 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
3353 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3354 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3355 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
3356
3357 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 Compile parts of grub-emu as modules.
3360
3361 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
3362 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
3363 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
3364 (all-local): Add $(GRUB_EMU).
3365 (install-local): Install $(GRUB_EMU).
3366 (uninstall): Uninstall $(GRUB_EMU).
3367 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
3368 * kern/dl.c: Likewise.
3369 * commands/sleep.c: Not include machine/time.h.
3370 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
3371 (COMMON_CFLAGS): Likewise.
3372 (sbin_UTILITIES): Remove grub-emu.
3373 (grub_emu_SOURCES): Removed.
3374 (kernel_img_RELOCATABLE): New variable.
3375 (pkglib_PROGRAMS): Add kernel.img.
3376 (kernel_img_SOURCES): New variable
3377 (kernel_img_CFLAGS): Likewise.
3378 (kernel_img_LDFLAGS): Likewise.
3379 (TARGET_NO_STRIP): Likewise.
3380 (TARGET_NO_DYNAMIC_MODULES): Likewise.
3381 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
3382 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
3383 (grub-emu): New target.
3384 (GRUB_EMU): New variable.
3385 * configure.ac: Whitelist -emu as possible x86_64 architecture.
3386 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
3387 * loader/xnu.c: Likewise.
3388 * include/grub/pci.h: Likewise.
3389 * genemuinit.sh: New file.
3390 * genemuinitheader.sh: Likewise.
3391 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
3392 Support TARGET_NO_DYNAMIC_MODULES.
3393 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
3394 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
3395 * disk/loopback.c: Likewise.
3396 * font/font_cmd.c: Likewise.
3397 * partmap/acorn.c: Likewise.
3398 * partmap/amiga.c: Likewise.
3399 * partmap/apple.c: Likewise.
3400 * partmap/gpt.c: Likewise.
3401 * partmap/msdos.c: Likewise.
3402 * partmap/sun.c: Likewise.
3403 * parttool/msdospart.c: Likewise.
3404 * term/gfxterm.c: Likewise.
3405 * video/bitmap.c: Likewise.
3406 * video/readers/jpeg.c: Likewise.
3407 * video/readers/png.c: Likewise.
3408 * video/readers/tga.c: Likewise.
3409 * video/video.c: Likewise.
3410 * util/grub-emu.c (read_command_list): Removed.
3411 (main): Don't call util_init_nls.
3412 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
3413 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
3414
3415 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
3418 date.mod, datehook.mod.
3419 (datetime_mod_SOURCES): New variable.
3420 (datetime_mod_CFLAGS): Likewise.
3421 (datetime_mod_LDFLAGS): Likewise.
3422 (date_mod_SOURCES): Likewise.
3423 (date_mod_CFLAGS): Likewise.
3424 (date_mod_LDFLAGS): Likewise.
3425 (datehook_mod_SOURCES): Likewise.
3426 (datehook_mod_CFLAGS): Likewise.
3427 (datehook_mod_LDFLAGS): Likewise.
3428 * conf/sparc64-ieee1275.rmk: Likewise.
3429 * lib/ieee1275/datetime.c: New file.
3430
3431 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
3434 (ieee1275_fb_mod_SOURCES): New variable.
3435 (ieee1275_fb_mod_CFLAGS): Likewise.
3436 (ieee1275_fb_mod_LDFLAGS): Likewise.
3437 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
3438 New proto.
3439 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
3440 (HEAP_MAX_ADDR): Likewise.
3441 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
3442 type.
3443 Correct stop condition.
3444 (grub_ieee1275_devices_iterate): New function.
3445 * video/ieee1275.c: New file.
3446
3447 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3448
3449 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
3450
3451 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
3452 as scratch.
3453 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
3454 SCRATCH_PAD_DISKBOOT as scratch.
3455 (bootit): Pass Openfirmware pointer in %o4.
3456 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
3457 of 0x200000.
3458 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
3459 with util/grub-mkrawimage.c.
3460 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
3461 * include/grub/aout.h (AOUT_MID_SUN): New definition.
3462 (grub_aout_get_type) [GRUB_UTIL]: Removed.
3463 (grub_aout_load) [GRUB_UTIL]: Likewise.
3464 * include/grub/kernel.h (grub_modules_get_end): New proto.
3465 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
3466 (SCRATCH_PAD_BOOT): New definition.
3467 (SCRATCH_PAD_DISKBOOT): Likewise.
3468 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
3469 * include/grub/sparc64/ieee1275/ieee1275.h
3470 (grub_ieee1275_original_stack): New variable
3471 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
3472 New definition
3473 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
3474 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
3475 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
3476 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
3477 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
3478 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
3479 (grub_platform_image_format_t): New type.
3480 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
3481 * kern/main.c (grub_modules_get_end)
3482 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
3483 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
3484 (codestart): Switch stacks.
3485 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
3486 variable.
3487 (grub_heap_init): Use grub_modules_get_end.
3488 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
3489 stack.
3490 * util/grub-mkrawimage.c (generate_image): Support sparc64.
3491 (main): Likewise.
3492 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
3493
3494 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
3495
3496 * util/grub-mkrescue.in: Base ISO UUID on UTC.
3497
3498 2010-03-08 Matt Kraai <kraai@ftbfs.org>
3499
3500 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
3501 bug #559005).
3502
3503 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * genmoddep.awk: Output all missing symbols and not only first.
3506
3507 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * NEWS: Put the date of 1.98 release.
3510
3511 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
3514 ft2build.h.
3515
3516 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3517
3518 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3519 completition in the middle of string.
3520
3521 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * util/grub-mkrescue.in: Use mktemp with explicit template.
3524
3525 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3526
3527 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3528
3529 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3530
3531 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3532 right pointer.
3533
3534 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 Fix FreeBSD compilation.
3537
3538 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3539 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3540
3541 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3544
3545 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3548
3549 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3552
3553 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3554
3555 Support relative image path in theme file.
3556
3557 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3558 (image_set_property): Handle theme_dir and relative path.
3559
3560 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * configure.ac: Alias amd64 to x86_64.
3563
3564 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3565
3566 * NEWS: mention multiboot on EFI.
3567
3568 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3569
3570 * kern/main.c (grub_load_modules): Handle errors from init functions of
3571 embeded modules.
3572
3573 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * normal/autofs.c (autoload_fs_module): Handle errors.
3576
3577 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 Disable linux.mod on qemu-mips since it's not functional and leads
3580 to compilation failure.
3581
3582 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3583 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3584 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3585 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3586 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3587 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3588 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3589 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3590 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3591 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3592 Reported by: BVK Chaitanya
3593
3594 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3595
3596 * INSTALL: Add gettext as a dependency and add qemu to a new section
3597 "Prerequisites for make-check".
3598
3599 2010-03-04 Christian Franke <franke@computer.org>
3600
3601 * util/grub-pe2elf.c: Add missing include "progname.h".
3602
3603 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * normal/crypto.c (read_crypto_list): Fix a typo.
3606 Reported by: Seth Goldberg.
3607
3608 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3611 Reported by: Seth Goldberg.
3612
3613 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3616 ascii.bitmaps.
3617
3618 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * genmk.rb: Remove terminal*.lst in make clean.
3621 Reported by: Seth Goldberg.
3622
3623 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * util/i386/efi/grub-install.in: Copy gettext files.
3626
3627 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3630
3631 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 Wait for user entry basing on presence of output rather than on errors.
3634
3635 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3636 (grub_install_newline_hook): Likewise.
3637 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3638 * normal/menu.c (show_menu): Check line_counter to determine presence
3639 of output.
3640 * normal/term.c (grub_normal_line_counter): New variable.
3641 (grub_normal_get_line_counter): New function.
3642 (grub_install_newline_hook): Likewise.
3643
3644 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3645
3646 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3647
3648 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3649
3650 * configure.ac: Update version to 1.98.
3651
3652 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * util/grub.d/10_linux.in (linux_entry): Don't default to
3655 gfxpayload=keep if Linux doesn't support video handover.
3656
3657 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 Don't compile video modules on yeeloong since video subsystem is part
3660 of kernel.
3661
3662 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3663 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3664 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3665 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3666 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3667 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3668 * include/grub/bitmap_scale.h: Likewise.
3669 * include/grub/bufio.h: Likewise.
3670 * include/grub/font.h: Likewise.
3671 * include/grub/gfxterm.h: Likewise.
3672 * include/grub/video.h: Likewise.
3673 * include/grub/vbe.h: Don't include video_fb.h.
3674 * video/i386/pc/vbe.c: Include video_fb.h.
3675 * commands/i386/pc/vbetest.c: Include video.h.
3676
3677 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3678
3679 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3680 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3681 default entry if GRUB_SAVEDEFAULT=true. This allows using
3682 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3683 saving a new default on every boot.
3684
3685 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3688 * normal/term.c (read_terminal_list): Likewise.
3689 * normal/main.c (grub_normal_init_page): Likewise.
3690 (grub_normal_read_line_real): Likewise.
3691
3692 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3695 memory leak.
3696 Reported by: Seth Goldberg.
3697
3698 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3699
3700 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3701 duplicate declaration of `start'.
3702
3703 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3706 filename.
3707 Reported by: Georgy Buranov
3708
3709 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3710
3711 * util/grub-mkrawimage.c (usage): Change string formatting to
3712 improve gettext.
3713
3714 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3715
3716 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3717 backspace keys.
3718
3719 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3722 Reported by: Michael Suchanek.
3723
3724 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3725
3726 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3727 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3728
3729 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 Remove any reference to non-free fonts.
3732
3733 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3734 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3735 uses non-free components.
3736 * font/font.c (grub_font_get_name): Remove example name.
3737 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3738 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3739 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3740 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3741
3742 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3743
3744 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3745
3746 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3749 Double divisor.
3750 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3751 features.
3752 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3753
3754 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3757
3758 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3759
3760 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3761 * docs/grub.texi (Command-line and menu entry commands): Document play
3762 command.
3763
3764 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3765
3766 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3767 parse arguments as inline tempo and notes. Move code for playing notes
3768 to...
3769 (play): ... new function.
3770
3771 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3772
3773 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3774 grub_uint16_t instead of short.
3775 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3776 disk from little endian to cpu endianness.
3777
3778 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3779
3780 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3781 GRUB_TICKS_PER_SECOND instead of 120.
3782
3783 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3786 escape sequence after \e.
3787
3788 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3791 non-ASCII characters.
3792
3793 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3796 set root in single quotes to prevent \, from being unescaped.
3797
3798 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3799
3800 Prevent unknown commands from stopping menuentry execution.
3801
3802 * script/execute.c (grub_script_execute_cmdline): Print error after
3803 unknown command.
3804
3805 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3806
3807 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3808 Reported by: Pavel Pisa.
3809
3810 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3813
3814 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 Merge grub_ieee1275_map_physical into grub_map and rename to
3817 grub_ieee1275_map
3818
3819 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3820 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3821 Remove.
3822 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3823 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3824 necessary.
3825 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3826
3827 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3830 opening and not after.
3831
3832 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3835 constants.
3836
3837 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3840 (alloc_phys): Use ALIGN_UP instead of align_addr.
3841
3842 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3845
3846 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3849
3850 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3853 verbose dprintf.
3854
3855 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 Fix over-4GiB seek on sparc64.
3858
3859 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3860 Replace pos_i and pos_lo with pos. All users updated.
3861 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3862 New constant.
3863 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3864 Likewise.
3865 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3866 and pos_lo.
3867
3868 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * util/grub-mkrawimage.c (main): Call set_program_name.
3871
3872 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 Properly align 64-bit targets.
3875
3876 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3877 (generate_image): Use ALIGN_ADDR.
3878
3879 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 Properly create cross-endian images.
3882
3883 * include/grub/types.h (grub_host_to_target_addr): New macro
3884 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3885
3886 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3889
3890 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3893
3894 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3895 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3896 (grub_linux_boot): Divide by 64K when on VESA.
3897
3898 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 Support GRUB_GFXPAYLOAD_LINUX.
3901
3902 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3903 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3904
3905 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3906
3907 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3908 to show messages instead of discarding them.
3909 Process errors after executing command and not before. Keep old method
3910 too as precaution.
3911
3912 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * configure.ac: Check for ft2build.h.
3915
3916 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3919
3920 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * genkernsyms.sh.in: Use TARGET_CC.
3923
3924 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3925
3926 * NEWS: Update.
3927
3928 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * include/grub/multiboot2.h: Remove leftover file.
3931 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3932 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3933
3934 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3935
3936 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3937
3938 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 Fix warnings in grub-emu when compiling with maximum warning options.
3941
3942 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3943 (grub_arch_modules_addr): Return 0 and not NULL.
3944 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3945 (xstrdup): Use newstr instead of dup.
3946 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3947 of disk to dsk to avoid shadowing.
3948 (find_free_slot): Fix prototype.
3949 * util/getroot.c (grub_util_is_dmraid): Make static.
3950 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3951 Add missing prototype.
3952 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3953
3954 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3957 appropriately.
3958
3959 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3962 code out.
3963
3964 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3965
3966 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3967 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3968 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3969 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3970 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3971 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3972
3973 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3974
3975 * include/grub/err.h (grub_err_printf): Don't export.
3976
3977 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3980
3981 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3984 * kern/misc.c (grub_gettext_dummy): Make static.
3985
3986 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3989 by non-valid ones.
3990 * kern/term.c (grub_putchar): Likewise.
3991
3992 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3993
3994 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3995 buggy hook call and memory leak.
3996
3997 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
4000
4001 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4002
4003 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
4004
4005 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
4008 modevar.
4009 Return grub_errno on allocation error.
4010
4011 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
4014
4015 2010-02-06 Yves Blusseau <blusseau@zetam.org>
4016
4017 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
4018 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
4019
4020 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
4023 non-pxe disk.
4024 (grub_pxefs_open): Likewise.
4025
4026 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4027
4028 * util/grub.d/10_hurd.in: Add --class information to menuentries.
4029 * util/grub.d/10_kfreebsd.in: Likewise.
4030 * util/grub.d/10_linux.in: Likewise.
4031
4032 2010-02-06 Colin D Bennett <colin@gibibit.com>
4033
4034 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
4035 (gfxmenu_mod_SOURCES): New variable.
4036 (gfxmenu_mod_CFLAGS): Likewise.
4037 (gfxmenu_mod_LDFLAGS): Likewise.
4038 * include/grub/term.h (grub_term_set_current_output): Declare
4039 argument as const.
4040 * docs/gfxmenu-theme-example.txt: New file.
4041 * gfxmenu/gfxmenu.c: Likewise.
4042 * gfxmenu/gui_box.c: Likewise.
4043 * gfxmenu/gui_canvas.c: Likewise.
4044 * gfxmenu/gui_circular_progress.c: Likewise.
4045 * gfxmenu/gui_image.c: Likewise.
4046 * gfxmenu/gui_label.c: Likewise.
4047 * gfxmenu/gui_list.c: Likewise.
4048 * gfxmenu/gui_progress_bar.c: Likewise.
4049 * gfxmenu/gui_string_util.c: Likewise.
4050 * gfxmenu/gui_util.c: Likewise.
4051 * gfxmenu/icon_manager.c: Likewise.
4052 * gfxmenu/model.c: Likewise.
4053 * gfxmenu/named_colors.c: Likewise.
4054 * gfxmenu/theme_loader.c: Likewise.
4055 * gfxmenu/view.c: Likewise.
4056 * gfxmenu/widget-box.c: Likewise.
4057 * include/grub/gfxmenu_model.h: Likewise.
4058 * include/grub/gfxmenu_view.h: Likewise.
4059 * include/grub/gfxwidgets.h: Likewise.
4060 * include/grub/gui.h: Likewise.
4061 * include/grub/gui_string_util.h: Likewise.
4062 * include/grub/icon_manager.h: Likewise.
4063
4064 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 Agglomerate scrolling in gfxterm.
4067
4068 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
4069 (grub_virtual_screen_setup): Initialise 'total_screen'.
4070 (write_char): Split to ...
4071 (paint_char): ... this ...
4072 (write_char): ... and this.
4073 (paint_char): Handle delayed scrolling.
4074 (draw_cursor): Likewise.
4075 (scroll_up): Split to ...
4076 (real_scroll): ... this ...
4077 (scroll_up): ... and this.
4078 (real_scroll): Handle multi-line scroll and draw below-the-bottom
4079 characters.
4080 (grub_gfxterm_refresh): Call real_scroll.
4081
4082 2010-02-06 Colin D Bennett <colin@gibibit.com>
4083
4084 * include/grub/misc.h (grub_iscntrl): New inline function.
4085 (grub_isalnum): Likewise.
4086 (grub_strtol): Likewise.
4087
4088 2010-02-06 Colin D Bennett <colin@gibibit.com>
4089
4090 * normal/menu_text.c (get_entry_number): Move from here ...
4091 * normal/menu.c (get_entry_number): ... moved here.
4092 * include/grub/menu.h (grub_menu_get_default_entry_index):
4093 New prototype.
4094 * normal/menu.c (grub_menu_get_default_entry_index): New function.
4095 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
4096 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
4097 (grub_menu_viewer_should_return): Likewise.
4098 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
4099 * normal/menu_text.c (run_menu): Enable menu switching.
4100 * normal/menu_viewer.c (should_return): New variable.
4101 (menu_viewer_changed): Likewise.
4102 (grub_menu_viewer_show_menu): Handle menu viewer changes.
4103 (grub_menu_viewer_should_return): New function.
4104 (menuviewer_write_hook): Likewise.
4105 (grub_menu_viewer_init): Likewise.
4106
4107 2010-02-06 Colin D Bennet <colin@gibibit.com>
4108 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 Support for gfxterm in a window.
4111
4112 * include/grub/gfxterm.h: New file.
4113 * include/grub/video.h (struct grub_video_rect): New declaration.
4114 (grub_video_rect_t): Likewise.
4115 * term/gfxterm.c (struct grub_gfxterm_window): New type.
4116 (refcount): New variable.
4117 (render_target): Likewise.
4118 (window): Likewise.
4119 (repaint_callback): Likewise.
4120 (grub_virtual_screen_setup): Use 'render_target'.
4121 (init_window): New function.
4122 (grub_gfxterm_init_window): Likewise.
4123 (grub_gfxterm_init): Check reference counter.
4124 Use init_window.
4125 (destroy_window): New function.
4126 (grub_gfxterm_destroy_window): Likewise.
4127 (grub_gfxterm_fini): Check reference counter.
4128 Use destroy_window.
4129 (redraw_screen_rect): Restore viewport.
4130 Use 'render_target' and 'window'.
4131 Call 'repaint_callback'.
4132 (write_char): Use 'render_target'.
4133 (draw_cursor): Likewise.
4134 (scroll_up): Restore viewport.
4135 Use 'render_target' and 'window'.
4136 Call 'repaint_callback'.
4137 (grub_gfxterm_cls): Likewise.
4138 (grub_gfxterm_refresh): Use 'window'.
4139 (grub_gfxterm_set_repaint_callback): New function.
4140 (grub_gfxterm_background_image_cmd): Use 'window'.
4141 (grub_gfxterm_get_term): New function.
4142 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
4143
4144 2010-02-06 Colin D Bennett <colin@gibibit.com>
4145
4146 Bitmap scaling support.
4147
4148 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
4149 (bitmap_scale_mod_SOURCES): New variable.
4150 (bitmap_scale_mod_CFLAGS): Likewise.
4151 (bitmap_scale_mod_LDFLAGS): Likewise.
4152 * include/grub/bitmap_scale.h: New file.
4153 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
4154 (background_image_cmd_options): New variable.
4155 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
4156 (cmd): Rename and change type to ...
4157 (background_image_cmd_handle): ... this. All users updated.
4158 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
4159 * video/bitmap_scale.c: New file.
4160
4161 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4162
4163 SDL support.
4164
4165 * Makefile.in (LIBSDL): New variable.
4166 (enable_grub_emu_sdl): Likewise.
4167 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
4168 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
4169 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
4170 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
4171 * util/sdl.c: New file.
4172
4173 2010-02-06 Colin D Bennett <colin@gibibit.com>
4174 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 Double buffering support.
4177
4178 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
4179 * include/grub/video.h: Update comment.
4180 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4181 New type.
4182 (grub_video_fb_doublebuf_blit_init): New prototype.
4183 * term/gfxterm.c (scroll_up): Support double buffering.
4184 (grub_gfxterm_refresh): Likewise.
4185 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
4186 (grub_video_fb_doublebuf_blit_init): Likewise.
4187 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
4188 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
4189 'displayed_page', 'render_page' and 'update_screen'.
4190 (grub_video_vbe_fini): Free offscreen buffer.
4191 (doublebuf_pageflipping_commit): New function.
4192 (doublebuf_pageflipping_update_screen): Likewise.
4193 (doublebuf_pageflipping_init): Likewise.
4194 (double_buffering_init): Likewise.
4195 (grub_video_vbe_setup): Enable doublebuffering.
4196 (grub_video_vbe_swap_buffers): Implement.
4197 (grub_video_vbe_set_active_render_target): Handle double buffering.
4198 (grub_video_vbe_get_active_render_target): Likewise.
4199 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
4200 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
4201 (grub_video_vbe_enable_double_buffering): Likewise.
4202 (grub_video_vbe_swap_buffers): Use update_screen.
4203 (grub_video_set_mode): Use double buffering.
4204
4205 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4206
4207 * maintainance/gentrigtables.py: Remove.
4208 * lib/trig.c: Likewise.
4209
4210 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
4211
4212 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
4213 `trigtables.c'.
4214 (trigtables.c): New rule.
4215 (gentrigtables): Likewise.
4216 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
4217
4218 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4219
4220 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
4221 integer constants.
4222
4223 2010-02-06 Colin D Bennet <colin@gibibit.com>
4224
4225 Trigonometry support.
4226
4227 * include/grub/trig.h: New file.
4228 * lib/trig.c: Likewise.
4229 * maintainance/gentrigtables.py: Likewise.
4230 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
4231 (trig_mod_SOURCES): New variable.
4232 (trig_mod_CFLAGS): Likewise.
4233 (trig_mod_LDFLAGS): Likewise.
4234
4235 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
4238 disk devices.
4239
4240 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
4243 error.
4244
4245 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * util/hostdisk.c (open_device): Don't use partition device when reading
4248 before the partition.
4249 (grub_util_biosdisk_read): Don't read from partition and before the
4250 partition in single operation.
4251 (grub_util_biosdisk_write): Don't write to partition and before the
4252 partition in single operation.
4253
4254 2010-02-03 Torsten Landschoff <torsten@debian.org>
4255
4256 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4257 last sectors.
4258
4259 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
4262 CDROM reads.
4263 (grub_biosdisk_write): Refuse to write to CDROM.
4264
4265 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
4268
4269 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4270
4271 * font/font.c (find_glyph): Check that bmp_idx is available before
4272 using it.
4273 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
4274 with (font == NULL).
4275
4276 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
4277
4278 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
4279
4280 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
4281
4282 * include/grub/script_sh.h (sourcecode): Add const qualifier.
4283 * util/grub-script-check.c (getline): Fix empty lines case.
4284
4285 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
4286
4287 * Makefile.in (check): Exit with fail status when one of the tests
4288 fails.
4289 * tests/example_functional_test.c (example_test): Fix reversed assert.
4290 * tests/example_unit_test.c (example_test): Likewise.
4291
4292 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
4293
4294 * util/grub.d/10_linux.in: This script does not use any of the
4295 contents of gettext.sh, only the external command `gettext', so stop
4296 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
4297 the same prefix as GRUB.)
4298 * util/grub.d/10_kfreebsd.in: Likewise.
4299
4300 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
4303 of the line.
4304
4305 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4308 last sectors.
4309
4310 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
4313 having a 4KiB and not 32KiB buffer size.
4314
4315 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4316
4317 * util/hostfs.c: Include `<errno.h>'.
4318 (grub_hostfs_read): Handle errors from fseeko() and fread().
4319
4320 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4321
4322 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
4323 loop when using read hooks on files whose size isn't sector-aligned.
4324
4325 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4326
4327 Remove unused parameter.
4328
4329 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
4330 (grub_iso9660_open): Remove initialization of `data->length'.
4331
4332 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4333
4334 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
4335 memleak conditions.
4336
4337 2010-01-27 Carles Pina i Estany <carles@pina.cat>
4338
4339 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
4340 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
4341
4342 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4343
4344 * util/bin2h.c (usage): Fix warning (space after backslash).
4345
4346 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4347
4348 * font/font.c: Include `grub/fontformat.h.
4349 Remove font file format constants.
4350 (grub_font_load): Use the new macros.
4351 * include/grub/fontformat.h: New file.
4352 * util/grub-mkfont.c: Include `grub/fontformat.c'.
4353 (write_font_pf2): Use the new macros.
4354
4355 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4356
4357 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
4358 does.
4359
4360 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4361
4362 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
4363
4364 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
4365 (_start): Macroify `0x7F'.
4366
4367 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
4368 (make_install_device): Use "(pxe)" as fallback prefix when booting
4369 via PXE.
4370
4371 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * configure.ac: Reset LIBS after check for libgcc symbols.
4374
4375 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
4376
4377 * util/hostdisk.c (open_device): Add trailing newline to debug
4378 message.
4379
4380 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4381
4382 * configure.ac: Check for `limits.h'.
4383 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
4384
4385 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
4386
4387 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
4388 capitalize error strings.
4389
4390 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4391
4392 * util/grub.d/10_hurd.in: Add a recovery mode.
4393
4394 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * configure.ac: Check for libgcc symbols with -nostdlib.
4397
4398 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
4399
4400 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
4401
4402 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
4405 stack since heap may be unavailable at that point.
4406 (grub_ofconsole_gotoxy): Likewise.
4407
4408 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 * configure.ac: Check for _restgpr_14_x.
4411 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
4412 and _savegpr_* prototypes.
4413
4414 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
4415
4416 Use generic grub_reboot() for i386-efi.
4417
4418 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
4419 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
4420 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
4421
4422 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
4425 presence of "prefix" variable as it breaks when normal.mod is
4426 embedded.
4427
4428 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
4431 stack since heap is unavailable at that point.
4432
4433 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
4436 (grub_freebsd_bootinfo): Rewritten.
4437 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
4438
4439 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
4442
4443 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
4444
4445 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
4446 domain now.
4447
4448 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
4449
4450 * util/misc.c (make_system_path_relative_to_its_root): Change the work
4451 around for handling "/" to the correct fix. Fix a memory leak. Use
4452 xstrdup instead of strdup.
4453
4454 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
4457
4458 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 Optimise glyph lookup by Basic Multilingual Plane lookup array.
4461
4462 * font/font.c (struct grub_font): New member 'bmp_idx'.
4463 (font_init): Initialise 'bmp_idx'.
4464 (load_font_index): Fill 'bmp_idx'.
4465 (find_glyph): Make inline. Use bmp_idx for BMP characters.
4466
4467 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
4470 unnecessary calls.
4471
4472 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 Move context handling out of the kernel.
4475
4476 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
4477 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
4478 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
4479 * conf/i386-efi.rmk: Likewise.
4480 * conf/i386-ieee1275.rmk: Likewise.
4481 * conf/i386-pc.rmk: Likewise.
4482 * conf/powerpc-ieee1275.rmk: Likewise.
4483 * conf/sparc64-ieee1275.rmk: Likewise.
4484 * conf/x86_64-efi.rmk: Likewise.
4485 * include/grub/env.h: Include grub/menu.h.
4486 (grub_env_var_type): Removed.
4487 (grub_env_var): Replaced field 'type' with 'global'.
4488 (grub_env_find): New prototype.
4489 (grub_env_context_open): Remove EXPORT_FUNC.
4490 (grub_env_context_close): Likewise.
4491 (grub_env_export): Likewise.
4492 (grub_env_set_data_slot): Removed.
4493 (grub_env_get_data_slot): Likewise.
4494 (grub_env_unset_data_slot): Likewise.
4495 (grub_env_unset_menu): New prototype.
4496 (grub_env_set_menu): Likewise.
4497 (grub_env_get_menu): Likewise.
4498 * include/grub/env_private.h: New file.
4499 * include/grub/normal.h (grub_context_init): New prototype.
4500 (grub_context_fini): Likewise.
4501 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
4502 * normal/context.c (grub_cmd_export): ... to here.
4503 * kern/env.c: Include env_private.h.
4504 (HASHSZ): Moved to include/grub/env_private.h.
4505 (grub_env_context): Likewise.
4506 (grub_env_sorted_var): Likewise.
4507 (current_context): Renamed from this ...
4508 (grub_current_context): ...to this. 'static' removed. All users updated.
4509 (grub_env_find): Removed 'static'.
4510 (grub_env_context_open): Moved to normal/context.c.
4511 (grub_env_context_close): Likewise.
4512 (grub_env_export): Likewise.
4513 (mangle_data_slot_name): Removed.
4514 (grub_env_set_data_slot): Likewise.
4515 (grub_env_get_data_slot): Likewise.
4516 (grub_env_unset_data_slot): Likewise.
4517 * kern/main.c (grub_set_root_dev): Don't export root.
4518 It will be done later.
4519 (grub_main): Don't export prefix.
4520 It will be done later.
4521 * normal/context.c: New file.
4522 * normal/main.c (free_menu): Use grub_env_unset_menu.
4523 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4524 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4525 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4526 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4527
4528 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 setpci support.
4531
4532 * commands/setpci.c: New file.
4533 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4534 (setpci_mod_SOURCES): New variable.
4535 (setpci_mod_CFLAGS): Likewise.
4536 (setpci_mod_LDFLAGS): Likewise.
4537
4538 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 Byte-addressable PCI configuration space.
4541
4542 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4543 dword address.
4544 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4545 GRUB_PCI_REG_CACHELINE.
4546 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4547 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4548 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4549 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4550 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4551 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4552 grub_pci_make_address.
4553 (lock_rom_area): Likewise.
4554 * commands/lspci.c (grub_lspci_iter): Use macroses
4555 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4556 of grub_pci_make_address.
4557 * disk/ata.c (grub_ata_pciinit): Likewise.
4558 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4559 (GRUB_PCI_REG_VENDOR): Likewise.
4560 (GRUB_PCI_REG_DEVICE): Likewise.
4561 (GRUB_PCI_REG_COMMAND): Likewise.
4562 (GRUB_PCI_REG_STATUS): Likewise.
4563 (GRUB_PCI_REG_REVISION): Likewise.
4564 (GRUB_PCI_REG_CLASS): Likewise.
4565 (GRUB_PCI_REG_CACHELINE): Likewise.
4566 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4567 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4568 (GRUB_PCI_REG_BIST): Likewise.
4569 (GRUB_PCI_REG_ADDRESSES): Likewise.
4570 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4571 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4572 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4573 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4574 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4575 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4576 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4577 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4578 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4579 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4580 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4581 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4582 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4583 (GRUB_PCI_REG_MIN_GNT): Likewise.
4584 (GRUB_PCI_REG_MAX_LAT): Likewise.
4585 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4586 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4587 * video/efi_uga.c (find_framebuf): Likewise.
4588 * video/sm712.c (grub_video_sm712_setup): Likewise.
4589 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4590 space.
4591
4592 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4593
4594 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4595 can be reliably determined to be supported.
4596
4597 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4598
4599 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4600 that VESA is supported.
4601 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4602 supported.
4603
4604 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4607
4608 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4609
4610 * util/misc.c (make_system_path_relative_to_its_root): Work around
4611 special-casing of "/", as previous incarnation of this routine did.
4612
4613 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 Fix any-emu compilation.
4616
4617 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4618 * grub_bin2h_SOURCES: New variable.
4619
4620 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4621
4622 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4623
4624 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4625
4626 * util/grub.d/00_header.in: Fix handling of locale_dir.
4627
4628 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4631 as possible unifont location (Gentoo).
4632 Reported by: Alexander Brüning
4633
4634 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 Don't try to generate lists for kernel.img.
4637
4638 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4639 (pkglib_MODULES): Remove kernel.img.
4640 (kernel_img_EXPORTS): Removed.
4641 (kernel_img_RELOCATABLE): New variable.
4642 * conf/x86_64-efi.rmk: Likewise.
4643 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4644
4645 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4648 grub_xasprintf or grub_snprintf.
4649 (grub_vsprintf): Likewise.
4650 (grub_snprintf): New proto.
4651 (grub_vsnprintf): Likewise.
4652 (grub_xasprintf): Likewise.
4653 (grub_xvasprintf): Likewise.
4654 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4655 (grub_sprintf): Removed.
4656 (grub_vsnprintf): New function.
4657 (grub_snprintf): Likewise.
4658 (grub_xvasprintf): Likewise.
4659 (grub_xasprintf): Likewise.
4660 (grub_vsprintf): Renamed to ...
4661 (grub_vsnprintf_real): ...this. New argument max_len.
4662
4663 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4664
4665 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4666 fix grub-script-check warning.
4667
4668 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * include/grub/font.h (grub_font_load): Fix prototype.
4671
4672 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4675
4676 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4677
4678 * include/grub/x86_64/at_keyboard.h: New file.
4679
4680 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 * loader/mips/linux.c: Include missing grub/i18n.h.
4683
4684 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4685
4686 * normal/menu.c (notify_execution_failure): Clarify error message.
4687
4688 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4689
4690 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4691 return value (and revert all return statements). Update users.
4692
4693 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4694
4695 * kern/device.c (grub_device_iterate): Allocate new part_ent
4696 structure based on sizeof (*p) rather than sizeof (p->next), to
4697 account for structure padding.
4698
4699 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4700 disk is NULL, which might happen for LVM physical volumes with no
4701 LVM signature.
4702
4703 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4704
4705 * loader/mips/linux.c (grub_cmd_initrd)
4706 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4707
4708 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4709
4710 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4711 (grub_video_video_init, grub_video_bitmap_init)
4712 (grub_font_manager_init, grub_term_gfxterm_init)
4713 (grub_at_keyboard_init): New extern declarations.
4714 (grub_machine_init): Initialize gfxterm and at_keyboard.
4715
4716 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4717
4718 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4719 `gfxterm.mod' into core image.
4720
4721 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4722 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4723 (kernel_img_FORMAT): Copy to ...
4724
4725 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4726 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4727 (kernel_img_FORMAT): ... here, and ...
4728
4729 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4730 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4731 (kernel_img_FORMAT): ... here.
4732
4733 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4734 and input (at_keyboard) terminals in kernel.
4735 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4736
4737 (pkglib_MODULES): Remove `pci.mod'.
4738 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4739 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4740 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4741 (at_keyboard_mod_LDFLAGS): Remove variables.
4742
4743 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4744
4745 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4746
4747 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4748
4749 * include/grub/mips/libgcc.h: Only export symbols for functions
4750 that libgcc provides.
4751
4752 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 MIPS support.
4755
4756 * bus/bonito.c: New file.
4757 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4758 GRUB_PCI_NUM_DEVICES.
4759 * term/i386/pc/serial.c: Move to ...
4760 * term/serial.c: ... here. All users updated.
4761 * util/i386/pc/grub-mkimage.c: Move to ...
4762 * util/grub-mkrawimage.c: ... here. All users updated.
4763 * term/i386/pc/at_keyboard.c: Move to ...
4764 * term/at_keyboard.c: ... here. All users updated.
4765 * conf/mips-qemu-mips.rmk: New file.
4766 * conf/mips-yeeloong.rmk: Likewise.
4767 * conf/mips.rmk: Likewise.
4768 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4769 mipsel-qemu-mips.
4770 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4771 to port addresses.
4772 (grub_ata_pciinit): Support CS5536.
4773 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4774 * font/font_cmd.c (loadfont_command): Open file before passing it to
4775 grub_font_load.
4776 (pseudo_file_read): New function.
4777 (pseudo_file_close): Likewise.
4778 (pseudo_fs): New structure.
4779 (load_font_module): New function.
4780 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4781 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4782 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4783 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4784 * include/grub/i386/at_keyboard.h: Split into ...
4785 * include/grub/at_keyboard.h: ... this ...
4786 * include/grub/i386/at_keyboard.h: ... and this.
4787 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4788 New prototype.
4789 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4790 updated.
4791 (grub_elf64_size): Likewise.
4792 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4793 filename.
4794 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4795 * include/grub/i386/coreboot/serial.h: Rewritten.
4796 * include/grub/i386/ieee1275/serial.h: Include
4797 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4798 * include/grub/i386/pc/serial.h: Moved from here ...
4799 * include/grub/serial.h: ... to here. All users updated.
4800 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4801 (GRUB_PCI_NUM_BUS): Likewise.
4802 (GRUB_PCI_NUM_DEVICES): Likewise.
4803 (grub_pci_device_map_range): Add missing volatile keyword.
4804 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4805 * include/grub/mips/at_keyboard.h: New file.
4806 * include/grub/mips/cache.h: Likewise.
4807 * include/grub/mips/io.h: Likewise.
4808 * include/grub/mips/kernel.h: Likewise.
4809 * include/grub/mips/libgcc.h: Likewise.
4810 * include/grub/mips/pci.h: Likewise.
4811 * include/grub/mips/qemu-mips/boot.h: Likewise.
4812 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4813 * include/grub/mips/qemu-mips/loader.h: Likewise.
4814 * include/grub/mips/qemu-mips/memory.h: Likewise.
4815 * include/grub/mips/qemu-mips/serial.h: Likewise.
4816 * include/grub/mips/qemu-mips/time.h: Likewise.
4817 * include/grub/mips/relocator.h: Likewise.
4818 * include/grub/mips/time.h: Likewise.
4819 * include/grub/mips/types.h: Likewise.
4820 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4821 * include/grub/mips/yeeloong/boot.h: Likewise.
4822 * include/grub/mips/yeeloong/kernel.h: Likewise.
4823 * include/grub/mips/yeeloong/loader.h: Likewise.
4824 * include/grub/mips/yeeloong/memory.h: Likewise.
4825 * include/grub/mips/yeeloong/pci.h: Likewise.
4826 * include/grub/mips/yeeloong/serial.h: Likewise.
4827 * include/grub/mips/yeeloong/time.h: Likewise.
4828 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4829 * kern/elf.c (grub_elf32_size): New parameter. All users
4830 updated.
4831 (grub_elf64_size): Likewise.
4832 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4833 Load modules before saying "Welcome to GRUB!".
4834 Call grub_refresh after saying "Welcome to GRUB!".
4835 * kern/mips/cache.S: New file.
4836 * kern/mips/cache_flush.S: Likewise.
4837 * kern/mips/dl.c: Likewise.
4838 * kern/mips/init.c: Likewise.
4839 * kern/mips/qemu-mips/init.c: Likewise.
4840 * kern/mips/startup.S: Likewise.
4841 * kern/mips/yeeloong/init.c: Likewise.
4842 * kern/term.c (grub_putcode): Handle NULL terminal.
4843 (grub_getcharwidth): Likewise.
4844 (grub_getkey): Likewise.
4845 (grub_checkkey): Likewise.
4846 (grub_getkeystatus): Likewise.
4847 (grub_getxy): Likewise.
4848 (grub_getwh): Likewise.
4849 (grub_gotoxy): Likewise.
4850 (grub_cls): Likewise.
4851 (grub_setcolorstate): Likewise.
4852 (grub_setcolor): Likewise.
4853 (grub_getcolor): Likewise.
4854 (grub_refresh): Likewise.
4855 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4856 (write_jump): Add hatch nop.
4857 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4858 * lib/mips/setjmp.S: New file.
4859 * loader/mips/linux.c: Likewise.
4860 * term/i386/pc/at_keyboard.c: Move from here ...
4861 * term/at_keyboard.c: ... to here.
4862 * term/i386/pc/serial.c: Moved from here ...
4863 * term/serial.c: ... to here. All users updated.
4864 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4865 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4866 (serial_translate_key_sequence): Avoid deadlock.
4867 (grub_serial_getkey): Handle backspace.
4868 (grub_serial_putchar): Fix newline handling.
4869 * util/i386/pc/grub-mkimage.c: Move from here ...
4870 * util/grub-mkrawimage.c: ... to here. All users updated.
4871 (generate_image): New parameters 'font_path' and 'format'.
4872 Support embedding font.
4873 Use grub_host_to_target* instead of grub_cpu_to_le*.
4874 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4875 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4876 (options): New option "--font".
4877 (usage): Likewise.
4878 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4879 (main): Handle "--font".
4880 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4881 (grub_virtual_screen_setup): Set bg_color_display.
4882 (redraw_screen_rect): Use bg_color_display instead of incorrect
4883 bg_color.
4884 (grub_gfxterm_cls): Likewise.
4885 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4886 Support embedding config file.
4887 (add_segments): Likewise.
4888 (options): New option "--config".
4889 (main): Handle "--config".
4890 * video/sm712.c: New file.
4891
4892 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4893
4894 Fix parallel builds.
4895
4896 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4897 font.c depend on ascii.h).
4898
4899 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4900
4901 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4902
4903 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4904
4905 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4906 By default: disabled.
4907 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4908 parameter.
4909
4910 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4911
4912 * font/font.c: Update copyright years.
4913 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4914
4915 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4916
4917 * font/font.c: Include `ascii.h'.
4918 (ASCII_BITMAP_SIZE): New macro.
4919 (ascii_font_glyph): Define.
4920 (ascii_glyph_lookup): New function.
4921 (grub_font_get_string_width): Change comment. If glyph not found, use
4922 ascii_glyph_lookup.
4923 (grub_font_get_glyph_with_fallback): If glyph not available returns
4924 ascii_glyph_lookup.
4925 * util/grub-mkfont.c (file_formats): New enum.
4926 (options): Add `ascii-bitmaps' new option.
4927 (usage): Add `asii-bitmaps' new option.
4928 (write_font_ascii_bitmap): New function.
4929 (write_font): Rename to ...
4930 (write_font_p2): ... this. Remove print_glyphs call.
4931 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4932 used. Call print_glyphs.
4933 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4934
4935 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4936
4937 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4938 (grub_bin2h_SOURCES): New variable.
4939 * util/bin2h.c: New file.
4940
4941 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * include/multiboot.h: Resynced with spec.
4944 * include/multiboot2.h: Likewise.
4945 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4946 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4947
4948 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4949
4950 * include/grub/term.h (grub_term_register_input,
4951 grub_term_register_output): Check return of terminal init()
4952 routines, and abort if errors are raised.
4953
4954 * commands/terminal.c: Update copyright year.
4955
4956 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4957
4958 * commands/terminal.c (grub_cmd_terminal_input)
4959 (grub_cmd_terminal_output): Check return of terminal init()
4960 routines, and abort if errors are raised.
4961
4962 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * include/grub/i386/bsd.h: Fix include pathes.
4965
4966 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 Add missing *BSD copyright headers.
4969
4970 * include/grub/aout.h: Add BSD licence.
4971 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4972 * include/grub/i386/freebsd_linker.h: ... here,
4973 * include/grub/i386/freebsd_reboot.h: ... here,
4974 * include/grub/i386/netbsd_bootinfo.h: ... here,
4975 * include/grub/i386/netbsd_reboot.h: ... here,
4976 * include/grub/i386/openbsd_bootarg.h: ... here,
4977 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4978 licence to each file.
4979
4980 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4981
4982 * acinclude.m4: Remove `nop' assembly instruction; it's not
4983 implemented by all architectures.
4984
4985 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4986
4987 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4988 ELILO. This is no longer necessary.
4989
4990 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4991
4992 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4993
4994 * util/grub-script-check.c: grub-script-check tool.
4995 * conf/common.rmk: Make rules for grub-script-check.
4996
4997 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4998
4999 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
5000 spotting it back in 2008. Shame on me for forgetting he did.
5001
5002 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
5003
5004 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5005
5006 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
5007 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
5008 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
5009 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
5010 (GRUB_VIDEO_TYPE_EFI): Rename to ...
5011 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
5012
5013 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
5014
5015 * include/grub/test.h: Add license header.
5016 * tests/example_functional_test.c: Likewise.
5017 * tests/example_unit_test.c: Likewise.
5018 * tests/lib/functional_test.c: Likewise.
5019 * tests/lib/test.c: Likewise.
5020 * tests/lib/unit_test.c: Likewise.
5021
5022 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 Use flag-based instead of hook-based video mode selection and "auto"
5025 keyword.
5026
5027 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
5028 (grub_video_set_mode): Changed prototype. All users updated.
5029 (grub_video_check_mode_flag): New inline function.
5030 * video/video.c (parse_modespec): New function.
5031 (grub_video_set_mode): Parse flags and keywords.
5032
5033 2010-01-17 Carles Pina i Estany <carles@pina.cat>
5034
5035 * util/misc.c (grub_util_info): Fix the order of the parameters in a
5036 fprintf call.
5037
5038 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5039
5040 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
5041
5042 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5043
5044 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
5045 string.
5046 * util/grub-emu.c (usage): Likewise.
5047 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
5048 * util/i386/efi/grub-mkimage.c (usage): Likewise.
5049 * util/i386/pc/grub-mkimage.c (usage): Likewise.
5050 * util/i386/pc/grub-setup.c (usage): Likewise.
5051
5052 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5053
5054 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
5055 the message.
5056 (grub_util_info): Likewise.
5057 (grub_util_error): Likewise.
5058 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
5059 and/or new lines in `grub_util_warna', `grub_util_info',
5060 `grub_util_error' calls.
5061 * util/getroot.c: Likewise.
5062 * util/grub-editenv.c: Likewise.
5063 * util/grub-emu.c: Likewise.
5064 * util/grub-fstest.c: Likewise.
5065 * util/grub-mkdevicemap.c: Likewise.
5066 * util/grub-mkfont.c: Likewise.
5067 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5068 * util/grub-mkrelpath.c: Likewise.
5069 * util/grub-pe2elf.c: Likewise.
5070 * util/grub-probe.c: Likewise.
5071 * util/hostdisk.c: Likewise.
5072 * util/i386/efi/grub-mkimage.c: Likewise.
5073 * util/i386/pc/grub-mkimage.c: Likewise.
5074 * util/i386/pc/grub-setup.c: Likewise.
5075 * util/ieee1275/ofpath.c: Likewise.
5076 * util/mkisofs/eltorito.c: Likewise.
5077 * util/mkisofs/rock.c: Likewise.
5078 * util/mkisofs/write.c: Likewise.
5079 * util/raid.c: Likewise.
5080 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
5081 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5082
5083 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 Enable multiboot on non-pc.
5086
5087 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
5088 multiboot.mod and multiboot2.mod to ...
5089 * conf/i386.rmk (pkglib_MODULES): ... here.
5090 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
5091 Moved to ...
5092 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
5093 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
5094 Moved to ...
5095 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
5096 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
5097 Moved to ...
5098 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
5099 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
5100 Moved to ...
5101 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
5102 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
5103 relocator.mod.
5104 (ata_mod_SOURCES): Removed.
5105 (ata_mod_CFLAGS): Likewise.
5106 (ata_mod_LDFLAGS): Likewise.
5107 (relocator_mod_SOURCES): Removed.
5108 (relocator_mod_CFLAGS): Likewise.
5109 (relocator_mod_ASFLAGS): Likewise.
5110 (relocator_mod_LDFLAGS): Likewise.
5111 Include i386.mk.
5112 * include/grub/x86_64/multiboot.h: New file.
5113 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
5114 Terminate EFI.
5115
5116 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 Video multiboot support.
5119
5120 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
5121 New prototype.
5122 * include/multiboot.h: Resynced with multiboot specification.
5123 * include/multiboot2.h: Likewise.
5124 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
5125 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
5126 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
5127 (HAS_VGA_TEXT): Likewise.
5128 (accepts_video): New variable.
5129 (grub_multiboot_set_accepts_video): New function.
5130 (grub_multiboot_get_mbi_size): Account for video structures.
5131 (set_video_mode): New function.
5132 (retrieve_video_parameters): Likewise.
5133 (grub_multiboot_make_mbi): Fill video fields.
5134
5135 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 Video driver ids.
5138
5139 * include/grub/video.h (grub_video_driver_id): New type.
5140 (grub_video_adapter): New member 'id'. All users updated.
5141 (grub_video_get_driver_id): New proto.
5142 * video/video.c (grub_video_get_driver_id): New function.
5143
5144 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5145
5146 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
5147 `var=val'.
5148
5149 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5150
5151 * normal/cmdline.c (print_completion): Gettextizze.
5152
5153 2001-01-14 Carles Pina i Estany <carles@pina.cat>
5154
5155 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
5156
5157 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5158
5159 * gettext/gettext.c (grub_gettext_translate): Push and pop
5160 grub_errno.
5161 (grub_gettext_delete_list): Change comment style.
5162 * kern/err.c (grub_error): Gettextizze.
5163 (grub_fatal): Gettextizze.
5164
5165 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5166
5167 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
5168 (grub_linux16_real_boot): ... this.
5169 * kern/i386/loader.S: Likewise.
5170 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
5171 (grub_linux16_boot): New function. Switches to text mode and calls
5172 grub_linux16_real_boot().
5173
5174 * loader/i386/bsd.c: Include `<grub/video.h>'.
5175 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
5176 text mode before calling grub_unix_real_boot().
5177
5178 * loader/i386/multiboot.c: Include `<grub/video.h>'.
5179 (grub_multiboot_boot): Switch to text mode before calling
5180 grub_relocator32_boot().
5181
5182 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
5183 (grub_chainloader_boot): Switch to text mode before calling
5184 grub_chainloader_real_boot().
5185
5186 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5187 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5188
5189 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
5190 non-empty value.
5191
5192 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5193 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5194
5195 * util/grub.d/00_header.in: Define a "savedefault" function for use
5196 in menu entries.
5197 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
5198
5199 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5200 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5201
5202 * util/grub-mkconfig_lib.in (save_default_entry): Only set
5203 saved_entry if boot_once is unset.
5204 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
5205 previous saved entry (i.e. grub-reboot).
5206
5207 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5208
5209 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
5210
5211 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5212
5213 * util/grub.d/00_header.in: Use `set var=val' rather than plain
5214 `var=val'.
5215 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
5216
5217 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5218
5219 * util/grub-reboot.in: Fix --version output.
5220 * util/grub-set-default.in: Likewise.
5221
5222 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5223
5224 * util/grub.d/00_header.in: Silently ignore zero-sized environment
5225 blocks.
5226
5227 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5228
5229 * util/grub.d/00_header.in: Quote the value assigned to `default',
5230 in case it contains spaces.
5231
5232 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5233
5234 * util/grub.d/30_os-prober.in: Fix merge error that moved a
5235 `save_default_entry' call from the macosx case to the linux case.
5236
5237 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5238 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
5239
5240 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
5241 in `chosen' environment variable.
5242 * normal/menu_text.c (get_entry_number): Check if the variable
5243 matches the title of a menu entry.
5244 (run_menu): Pass menu to get_entry_number.
5245
5246 * util/grub-reboot.in: New file.
5247 * util/grub-set-default.in: New file.
5248 * conf/common.rmk (grub-reboot): New utility.
5249 (grub-set-default): New utility.
5250
5251 * util/grub-mkconfig_lib.in (save_default_entry): New function.
5252 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
5253 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
5254 move it to `saved_entry' for the next boot. Load environment on
5255 initialisation.
5256 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
5257 * util/grub.d/10_hurd.in: Likewise.
5258 * util/grub.d/10_linux.in (linux_entry): Likewise.
5259 * util/grub.d/10_windows.in: Likewise.
5260 * util/grub.d/30_os-prober.in: Likewise.
5261
5262 * util/grub-install.in: Create environment block.
5263 * util/i386/efi/grub-install.in: Likewise.
5264 * util/ieee1275/grub-install.in: Likewise.
5265 * util/sparc64/ieee1275/grub-install.in: Likewise.
5266
5267 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
5268
5269 Unit testing framework for GRUB.
5270
5271 * Makefile.in: Test framework build rules for 'make check'.
5272 * conf/tests.rmk: Build rules for individual tests and framework.
5273
5274 * include/grub/test.h: Header file for whitebox tests.
5275 * tests/lib/functional_test.c: Framework support for whitebox
5276 functional tests.
5277 * tests/lib/test.c: Common whitebox testing code for unit and
5278 functional tests.
5279 * tests/lib/unit_test.c: Framework support for whitebox unit
5280 tests.
5281
5282 * tests/util/grub-shell-tester.in: Support utility for grub-script
5283 tests.
5284 * tests/util/grub-shell.in: Utility to execute grub-script
5285 commands in a Qemu instance.
5286
5287 * tests/example_functional_test.c: Example whitebox functional
5288 test.
5289 * tests/example_grub_script_test.in: Example grub-script test.
5290 * tests/example_scripted_test.in: Example scripted test.
5291 * tests/example_unit_test.c: Example whitebox unit test.
5292
5293 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
5296 Add loader/i386/multiboot_mbi.c.
5297 (multiboot2_mod_SOURCES): Likewise.
5298 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
5299 (multiboot2_mod_SOURCES): Likewise.
5300 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
5301 (grub_multiboot_make_mbi): Likewise.
5302 (grub_multiboot_free_mbi): Likewise.
5303 (grub_multiboot_init_mbi): Likewise.
5304 (grub_multiboot_add_module): Likewise.
5305 (grub_multiboot_set_bootdev): Likewise.
5306 * loader/i386/multiboot.c (mbi): Removed.
5307 (mbi_dest): Likewise.
5308 (alloc_mbi): New variable.
5309 (grub_multiboot_payload_size): Removed. All users updated.
5310 (grub_multiboot_pure_size): New variable.
5311 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
5312 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
5313 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
5314 (grub_fill_multiboot_mmap): Likewise.
5315 (grub_multiboot_get_bootdev): Likewise.
5316 (grub_multiboot): Use multiboot_mbi functions.
5317 * loader/i386/multiboot_mbi.c: New file.
5318
5319 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
5322 it would result in module crash.
5323
5324 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
5327 (grub_ofconsole_getwh): Split to ...
5328 (grub_ofconsole_getwh): ... this.
5329 (grub_ofconsole_dimensions): ...and this.
5330 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
5331
5332 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
5333
5334 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
5335
5336 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5337
5338 * loader/i386/pc/multiboot2.c: Removed stalled file.
5339
5340 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
5343 Reported by: Grégoire Sutre
5344
5345 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
5346
5347 * util/misc.c (canonicalize_file_name): New function.
5348 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
5349 instead of realpath().
5350
5351 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
5352
5353 * util/grub-install.in (usage): Clarify meaning of --root-directory,
5354 and make it clearer that it's optional. Based on confusion
5355 witnessed on IRC.
5356
5357 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
5360 in premature implicit newline.
5361
5362 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5363
5364 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5365 which resulted in garbled command line at the end of screen.
5366
5367 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5368
5369 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
5370 initialization with similar approach as with other Linux loaders.
5371
5372 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5373
5374 Fix i386-ieee1275 build.
5375
5376 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
5377 and grub_term_height() for video_{width,height} initialization.
5378
5379 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5380
5381 Fix grub-emu build.
5382
5383 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
5384
5385 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5386 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5387
5388 Support for multiple terminals.
5389
5390 * Makefile.in (pkglib_DATA): terminal.lst.
5391 (terminal.lst): New target.
5392 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
5393 (GRUB_MOD_INIT(handler)): Likewise.
5394 (GRUB_MOD_FINI(handler)): Likewise.
5395 * commands/help.c (grub_cmd_help): Handle multiple terminals.
5396 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
5397 * commands/sleep.c (do_print): Use grub_term_restore_pos.
5398 (grub_cmd_sleep): Use grub_term_save_pos.
5399 * commands/terminal.c: New file.
5400 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
5401 commands/terminal.c and lib/charset.c.
5402 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
5403 (pkglib_MODULES): Add terminal.mod.
5404 (terminal_mod_SOURCES): New variable.
5405 (terminal_mod_CFLAGS): Likewise.
5406 (terminal_mod_LDFLAGS): Likewise.
5407 * genhandlerlist.sh: Don't handle terminals.
5408 * genmk.rb: Generate terminal-*.lst.
5409 * genterminallist.sh: New file.
5410 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
5411 (grub_is_valid_utf8): Likewise.
5412 (grub_utf8_to_ucs4_alloc): Likewise.
5413 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
5414 (grub_menu_register_viewer): Changed argument.
5415 (grub_menu_try_text): New proto.
5416 (grub_gfxmenu_try_hook): New declaration.
5417 * include/grub/normal.h (grub_normal_exit_level): New declaration.
5418 (grub_menu_init_page): Additional argument term.
5419 (grub_normal_init_page): Likewise.
5420 (grub_cmdline_get): Arguments simplified.
5421 (grub_utf8_to_ucs4_alloc): Removed.
5422 (grub_print_ucs4): Additional argument term.
5423 (grub_getstringwidth): Likewise.
5424 (grub_print_message_indented): Likewise.
5425 (grub_menu_text_register_instances): New proto.
5426 (grub_show_menu): Likewise.
5427 (read_terminal_list): Likewise.
5428 (grub_set_more): Likewise.
5429 * include/grub/parser.h: Include handler.h.
5430 * include/grub/reader.h: Rewritten.
5431 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
5432 (GRUB_TERM_WIDTH): Changed to function.
5433 (GRUB_TERM_HEIGHT): Likewise.
5434 (GRUB_TERM_BORDER_WIDTH): Likewise.
5435 (GRUB_TERM_BORDER_HEIGHT): Likewise.
5436 (GRUB_TERM_NUM_ENTRIES): Likewise.
5437 (GRUB_TERM_ENTRY_WIDTH): Likewise.
5438 (GRUB_TERM_CURSOR_X): Likewise.
5439 (grub_term_input_class): Likewise.
5440 (grub_term_output_class): Likewise.
5441 (grub_term_outputs_disabled): New declaration.
5442 (grub_term_inputs_disabled): Likewise.
5443 (grub_term_outputs): Likewise.
5444 (grub_term_inputs): Likewise.
5445 (grub_term_register_input): Rewritten.
5446 (grub_term_register_output): Likewise.
5447 (grub_term_unregister_input): Likewise.
5448 (grub_term_unregister_output): Likewise.
5449 (FOR_ACTIVE_TERM_INPUTS): New macro.
5450 (FOR_DISABLED_TERM_INPUTS): Likewise.
5451 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5452 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5453 * include/grub/terminfo.h: Add oterm argument to all protypes.
5454 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
5455 Use grub_rescue_run.
5456 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
5457 All users updated.
5458 * kern/reader.c: Removed. All users updated.
5459 * kern/rescue_reader.c (grub_rescue_init): Removed.
5460 (grub_rescue_reader): Likewise.
5461 (grub_register_rescue_reader): Likewise.
5462 (grub_rescue_run): New function based on kern/reader.c.
5463 * kern/term.c: Adapted for multiterm.
5464 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
5465 (grub_is_valid_utf8): Likewise.
5466 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
5467 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
5468 right terminal.
5469 * loader/i386/linux.c (grub_linux_boot): Likewise.
5470 * normal/auth.c (grub_username_get): New function.
5471 (grub_auth_check_authentication): Use grub_username_get.
5472 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
5473 * normal/color.c: Adapt for multiterm.
5474 * normal/main.c (read_config_file): Don't use grub_reader_loop.
5475 (grub_normal_init_page): Additional argument term.
5476 (read_lists): Call read_terminal_lists.
5477 (grub_enter_normal_mode): Call grub_cmdline_run.
5478 Handle grub_normal_exit_level.
5479 (grub_cmd_normal): Make reentrant.
5480 (grub_cmd_normal_exit): New function.
5481 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
5482 * normal/menu.c: Adapt for multiterm.
5483 * normal/menu_entry.c: Likewise.
5484 * normal/menu_text.c: Likewise.
5485 * normal/menu_viewer.c: Removed. All users updated.
5486 * normal/term.c: New file.
5487 * util/console.c: Change order of includes to workaround a bug in
5488 ncurses headers.
5489 * term/terminfo.c: New argument oterm on all exported functions.
5490 All users updated.
5491 * util/grub-editenv.c (grub_term_input_class): Removed.
5492 (grub_term_output_class): Likewise.
5493
5494 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5495
5496 Make loader output a bit more user-friendly.
5497
5498 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
5499 is being loaded. Likewise for the Hurd.
5500
5501 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
5502 that kernel of FreeBSD ${version} is being loaded.
5503
5504 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
5505 grub_dprintf().
5506 (grub_cmd_initrd): Likewise.
5507 * util/grub.d/10_linux.in (linux_entry): Print message indicating
5508 that Linux ${version} is being loaded. Likewise for initrd.
5509
5510 2010-01-09 Carles Pina i Estany <carles@pina.cat>
5511
5512 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
5513
5514 2010-01-08 Carles Pina i Estany <carles@pina.cat>
5515
5516 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5517 (GRUB_MOD_INIT): Gettextizze.
5518 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5519 (GRUB_MOD_INIT): Gettextizze.
5520 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5521 (grub_cmd_linux): Capitalise Linux.
5522 (GRUB_MOD_INIT): Gettextizze.
5523 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5524 (grub_cmd_linux): Capitalise Linux.
5525 (GRUB_MOD_INIT): Gettextizze.
5526 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5527 (grub_cmd_linux): Capitalise Linux.
5528 (GRUB_MOD_INIT): Gettextizze.
5529 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5530 (GRUB_MOD_INIT): Gettextizze.
5531 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5532 (grub_cmd_linux): Capitalise Linux.
5533 (GRUB_MOD_INIT): Gettextizze.
5534 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5535 (grub_cpu_xnu_init): Gettextizze.
5536 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5537 (GRUB_MOD_INIT): Gettextizze.
5538 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5539 (GRUB_MOD_INIT): Gettextizze.
5540 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5541 (grub_linux_load64): Capitalise Linux.
5542 (GRUB_MOD_INIT): Gettextizze.
5543 * loader/xnu.c: Include `<grub/i18n.h>'.
5544 (GRUB_MOD_INIT): Gettextizze.
5545 * po/POTFILES: Add `loader/efi/appleloader.c',
5546 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5547 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5548 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5549 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5550 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5551 and `loader/xnu.c'.
5552
5553 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5554
5555 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5556
5557 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5558
5559 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5560 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5561 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5562
5563 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5564
5565 Reset Multiboot 2 support. New loader implements the draft in
5566 /branches/multiboot2 and shares as much code as possible with the
5567 production Multiboot 1 implementation.
5568
5569 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5570 * loader/multiboot2.c: Likewise.
5571 * loader/i386/multiboot_helper.S: Likewise.
5572 * include/multiboot2.h: Replace with latest version from the draft
5573 in /branches/multiboot2.
5574
5575 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5576 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5577 and `loader/multiboot2.c'.
5578 (pkglib_MODULES): Add `multiboot2.mod'.
5579 (multiboot2_mod_SOURCES): New variable.
5580 (multiboot2_mod_LDFLAGS): Likewise.
5581 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5582
5583 * conf/i386-pc.rmk: Likewise.
5584
5585 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5586 (multiboot_mod_SOURCES): Remove variable.
5587 (multiboot_mod_LDFLAGS): Likewise.
5588 (multiboot_mod_CFLAGS): Likewise.
5589
5590 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5591 `<multiboot2.h>' instead of `<multiboot.h>'.
5592 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5593 (MULTIBOOT_HEADER_MAGIC): New macros.
5594
5595 * loader/multiboot_loader.c (module_version_status): Remove variable.
5596 (find_multi_boot2_header): Remove function.
5597 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5598 logic. Always check for the Multiboot version we're compiling for.
5599 (grub_cmd_module_loader): Likewise.
5600 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5601 command instead of `multiboot'.
5602
5603 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5604
5605 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5606 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5607 all users.
5608
5609 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5610 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 Fix breakage introduced with previous commit.
5613
5614 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5615 commands.
5616 * normal/handler.c (read_handler_list): Revert part of previous commit
5617 affecting this file.
5618 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5619 (grub_normal_execute): ... here.
5620
5621 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5622
5623 Merge prefix-redefinition-fix branch.
5624
5625 * normal/autofs.c (read_fs_list): Make function capable of being
5626 run multiple times, gracefuly replacing the previous data
5627 structures.
5628 * normal/dyncmd.c (read_command_list): Likewise.
5629 * normal/handler.c (read_handler_list): Likewise.
5630 * normal/main.c (read_lists): New function. Calls all the
5631 list reading functions.
5632 (grub_normal_execute): Use read_lists() instead of calling all
5633 list reading functions explicitly. Register read_lists() as a
5634 variable hook attached to ${prefix}.
5635
5636 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 Merge crypto branch.
5639
5640 * Makefile.in (pkglib_DATA): Add crypto.lst.
5641 (crypto.lst): New target.
5642 * commands/hashsum.c: New file.
5643 * commands/password.c (check_password): Use grub_crypto_memcmp.
5644 * commands/password_pbkdf2.c: New file.
5645 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5646 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5647 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5648 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5649 -I$(srcdir)/lib/libgcrypt_wrap.
5650 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5651 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5652 password_pbkdf2.mod.
5653 (crypto_mod_SOURCES): New variable.
5654 (crypto_mod_CFLAGS): Likewise.
5655 (crypto_mod_LDFLAGS): Likewise.
5656 (hashsum_mod_SOURCES): New variable.
5657 (hashsum_mod_CFLAGS): Likewise.
5658 (hashsum_mod_LDFLAGS): Likewise.
5659 (pbkdf2_mod_SOURCES): New variable.
5660 (pbkdf2_mod_CFLAGS): Likewise.
5661 (pbkdf2_mod_LDFLAGS): Likewise.
5662 (password_pbkdf2_mod_SOURCES): New variable.
5663 (password_pbkdf2_mod_CFLAGS): Likewise.
5664 (password_pbkdf2_mod_LDFLAGS): Likewise.
5665 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5666 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5667 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5668 Include conf/gcry.rmk.
5669 * include/grub/auth.h: Rewritten.
5670 * include/grub/crypto.h: New file.
5671 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5672 * include/grub/normal.h (read_crypto_list): New prototype.
5673 * lib/crypto.c: New file.
5674 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5675 * lib/pbkdf2.c: Likewise.
5676 * normal/auth.c (grub_auth_strcmp): Removed.
5677 (grub_iswordseparator): Likewise.
5678 (grub_auth_strword): Likewise.
5679 (is_authenticated): Use grub_strword.
5680 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5681 and grub_strword. Pass entered password to authentication callback.
5682 * normal/crypto.c: New file.
5683 * normal/main.c: Call read_crypto_list.
5684 * util/grub-mkpasswd-pbkdf2.c: New file.
5685 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5686
5687 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 Fix descent and ascent calculation.
5690
5691 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5692 (options): New option "asce".
5693 (usage): Likewise.
5694 (add_char): Ignore invalid glyphs for descent calculation.
5695 Calculate ascent from actual content.
5696 (print_glyphs): Use 'asce'.
5697 (write_font): Likewise. Allow ascent override.
5698 (main): Handle "asce" option.
5699
5700 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5701
5702 * kern/err.c: Include `<grub/i18n.h>'.
5703 (grub_print_error): Add full stop. Gettextizze.
5704 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5705 (grub_bsd_load_elf): Capitalise ELF.
5706 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5707 (grub_cmd_freebsd_module): Likewise.
5708 (grub_cmd_freebsd_module_elf): Likewise.
5709 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5710
5711 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5712
5713 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5714 * commands/search_file.c (HELP_MESSAGE): New macro.
5715 * commands/search_label.c (HELP_MESSAGE): Likewise.
5716 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5717 * po/POTFILES: Add `commands/search_file.c',
5718 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5719 `commands/search.c'.
5720
5721 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5722
5723 * config.rpath: Update from Gnulib.
5724
5725 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5726
5727 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5728
5729 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5730
5731 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5732
5733 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5734
5735 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5736 arguments to fread so that we get a return value in bytes, rather
5737 than something that will normally be rounded down to 0.
5738 Adjust error handling to avoid producing garbage when size_t is not
5739 the same size as long long.
5740
5741 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5742
5743 * util/mkisofs/write.c (padblock_write): Check return value of
5744 fread.
5745
5746 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5747
5748 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5749 floppy images now.
5750
5751 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5752
5753 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5754
5755 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5756 instead of manual alignment.
5757 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5758 verbose). Avoid attempts to read past end of the device
5759 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5760 but GRUB_DISK_CACHE_SIZE may exceed that).
5761
5762 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5763
5764 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5765 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5766 it to upper layer.
5767
5768 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5769
5770 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5771 New constant.
5772 (grub_efi_piwg_device_path): New structure
5773 (grub_efi_piwg_device_path_t): New type.
5774 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5775 (devpath_1): Transform to a structure. All users updated.
5776 (devpath_2): Likewise.
5777 (devpath_3): Likewise.
5778 (devpath_4): Likewise.
5779 (devpath_5): Likewise.
5780
5781 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * loader/efi/appleloader.c: Restored. Update all users.
5784
5785 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5786
5787 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5788
5789 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5790 (struct boot_blocklist): Move from here ...
5791 * include/grub/i386/pc/boot.h [ASM_FILE]
5792 (struct grub_boot_blocklist): ... to here. Update all users.
5793 (setup): Only initialize `start' member of `first_block'
5794 structure. Add assert() calls to verify the other members.
5795
5796 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5797 (generate_image): Fix broken blocklist length initialization.
5798 Add assert() call to verify blocklist `segment' field.
5799
5800 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5801
5802 * loader/efi/appleloader.c: Remove. Update all users.
5803
5804 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5805
5806 * boot/i386/pc/boot.S: Update copyright year.
5807 * boot/i386/pc/cdboot.S: Likewise.
5808 * boot/i386/pc/diskboot.S: Likewise.
5809 * boot/i386/pc/lnxboot.S: Likewise.
5810 * boot/i386/pc/pxeboot.S: Likewise.
5811 * bus/pci.c: Likewise.
5812 * commands/cmp.c: Likewise.
5813 * commands/help.c: Likewise.
5814 * commands/hexdump.c: Likewise.
5815 * commands/i386/pc/halt.c: Likewise.
5816 * commands/i386/pc/play.c: Likewise.
5817 * commands/i386/pc/vbeinfo.c: Likewise.
5818 * commands/ls.c: Likewise.
5819 * commands/test.c: Likewise.
5820 * disk/dmraid_nvidia.c: Likewise.
5821 * disk/i386/pc/biosdisk.c: Likewise.
5822 * disk/ieee1275/nand.c: Likewise.
5823 * disk/ieee1275/ofdisk.c: Likewise.
5824 * disk/lvm.c: Likewise.
5825 * disk/raid.c: Likewise.
5826 * disk/raid6_recover.c: Likewise.
5827 * disk/scsi.c: Likewise.
5828 * fs/affs.c: Likewise.
5829 * fs/cpio.c: Likewise.
5830 * fs/ext2.c: Likewise.
5831 * fs/hfs.c: Likewise.
5832 * fs/iso9660.c: Likewise.
5833 * fs/ntfs.c: Likewise.
5834 * fs/sfs.c: Likewise.
5835 * fs/udf.c: Likewise.
5836 * fs/ufs.c: Likewise.
5837 * fs/xfs.c: Likewise.
5838 * gencmdlist.sh: Likewise.
5839 * genmk.rb: Likewise.
5840 * include/grub/disk.h: Likewise.
5841 * include/grub/efi/api.h: Likewise.
5842 * include/grub/efi/efi.h: Likewise.
5843 * include/grub/efi/pe32.h: Likewise.
5844 * include/grub/elf.h: Likewise.
5845 * include/grub/fs.h: Likewise.
5846 * include/grub/i386/at_keyboard.h: Likewise.
5847 * include/grub/i386/pc/memory.h: Likewise.
5848 * include/grub/i386/pc/vbe.h: Likewise.
5849 * include/grub/i386/pci.h: Likewise.
5850 * include/grub/i386/tsc.h: Likewise.
5851 * include/grub/ieee1275/ieee1275.h: Likewise.
5852 * include/grub/ntfs.h: Likewise.
5853 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5854 * include/grub/sparc64/libgcc.h: Likewise.
5855 * include/grub/symbol.h: Likewise.
5856 * include/grub/types.h: Likewise.
5857 * include/multiboot2.h: Likewise.
5858 * io/gzio.c: Likewise.
5859 * kern/device.c: Likewise.
5860 * kern/disk.c: Likewise.
5861 * kern/efi/efi.c: Likewise.
5862 * kern/efi/mm.c: Likewise.
5863 * kern/elf.c: Likewise.
5864 * kern/file.c: Likewise.
5865 * kern/i386/dl.c: Likewise.
5866 * kern/i386/pc/init.c: Likewise.
5867 * kern/i386/pc/startup.S: Likewise.
5868 * kern/ieee1275/ieee1275.c: Likewise.
5869 * kern/ieee1275/init.c: Likewise.
5870 * kern/main.c: Likewise.
5871 * kern/mm.c: Likewise.
5872 * kern/powerpc/dl.c: Likewise.
5873 * kern/sparc64/dl.c: Likewise.
5874 * kern/x86_64/dl.c: Likewise.
5875 * lib/hexdump.c: Likewise.
5876 * loader/efi/appleloader.c: Likewise.
5877 * loader/i386/ieee1275/linux.c: Likewise.
5878 * loader/i386/pc/chainloader.c: Likewise.
5879 * loader/i386/pc/linux.c: Likewise.
5880 * loader/i386/pc/multiboot2.c: Likewise.
5881 * loader/ieee1275/multiboot2.c: Likewise.
5882 * loader/multiboot2.c: Likewise.
5883 * loader/multiboot_loader.c: Likewise.
5884 * loader/powerpc/ieee1275/linux.c: Likewise.
5885 * normal/completion.c: Likewise.
5886 * normal/menu_entry.c: Likewise.
5887 * partmap/apple.c: Likewise.
5888 * util/grub.d/10_hurd.in: Likewise.
5889 * util/hostfs.c: Likewise.
5890 * video/readers/png.c: Likewise.
5891
5892 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5893
5894 * include/grub/misc.h (GNUC_PREREQ): New macro.
5895 (ATTRIBUTE_ERROR): New macro.
5896 * include/grub/list.h (grub_bad_type_cast_real): Use
5897 ATTRIBUTE_ERROR.
5898
5899 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5900
5901 * normal/menu_text.c (print_message): Change messages.
5902
5903 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5904
5905 * normal/menu_entry.c (store_completion): Gettextizze.
5906
5907 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5908
5909 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5910
5911 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5912
5913 * po/POTFILES: Sort correctly.
5914
5915 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5916
5917 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5918 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5919 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5920 full stop.
5921 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5922 summary. Gettextizze the strings.
5923 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5924 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5925 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5926 full stop.
5927 (GRUB_MOD_INIT): Remove command name from summary.
5928 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5929 summary.
5930 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5931 * term/i386/pc/serial.c (options): Add full stops.
5932 (GRUB_MOD_INIT): Remove command name from the summary.
5933
5934 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5935
5936 * commands/acpi.c: Gettextizze help strings and/or options. Include
5937 `grub/i18n.h' if needed.
5938 * commands/blocklist.c: Likewise.
5939 * commands/boot.c: Likewise.
5940 * commands/cat.c: Likewise.
5941 * commands/cmp.c: Likewise.
5942 * commands/configfile.c: Likewise.
5943 * commands/crc.c: Likewise.
5944 * commands/date.c: Likewise.
5945 * commands/echo.c: Likewise.
5946 * commands/efi/fixvideo.c: Likewise.
5947 * commands/efi/loadbios.c: Likewise.
5948 * commands/gptsync.c: Likewise.
5949 * commands/halt.c: Likewise.
5950 * commands/handler.c: Likewise.
5951 * commands/hdparm.c: Likewise.
5952 * commands/hexdump.c: Likewise.
5953 * commands/i386/cpuid.c: Likewise.
5954 * commands/i386/pc/drivemap.c: Likewise.
5955 * commands/i386/pc/halt.c: Likewise.
5956 * commands/i386/pc/pxecmd.c: Likewise.
5957 * commands/i386/pc/vbeinfo.c: Likewise.
5958 * commands/i386/pc/vbetest.c: Likewise.
5959 * commands/ieee1275/suspend.c: Likewise.
5960 * commands/keystatus.c: Likewise.
5961 * commands/loadenv.c: Likewise.
5962 * commands/ls.c: Likewise.
5963 * commands/lsmmap.c: Likewise.
5964 * commands/lspci.c: Likewise.
5965 * commands/memrw.c: Likewise.
5966 * commands/minicmd.c: Likewise.
5967 * commands/parttool.c: Likewise.
5968 * commands/password.c: Likewise.
5969 * commands/probe.c: Likewise.
5970 * commands/read.c: Likewise.
5971 * commands/reboot.c: Likewise.
5972 * commands/search.c: Likewise.
5973 * commands/sleep.c: Likewise.
5974 * commands/test.c: Likewise.
5975 * commands/true.c: Likewise.
5976 * commands/usbtest.c: Likewise.
5977 * commands/videotest.c: Likewise.
5978 * commands/xnu_uuid.c: Likewise.
5979 * disk/loopback.c: Likewise.
5980 * hello/hello.c: Likewise.
5981 * loader/i386/bsd.c: Likewise.
5982 * term/i386/pc/serial.c: Likewise.
5983 * po/POTFILES: Add new files.
5984
5985 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5986
5987 * term/i386/pc/at_keyboard.c
5988 (keyboard_controller_wait_untill_ready): Rename to ...
5989 (keyboard_controller_wait_until_ready): ... this. Update all users.
5990
5991 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5992
5993 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5994 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5995 string using string width.
5996 * normal/menu_text.c (grub_print_message_indented): Use
5997 grub_print_spaces and not print_spaces.
5998 (print_timeout): Likewise.
5999 (print_spaces): Move to...
6000 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
6001
6002 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
6003
6004 Import from Gnulib.
6005
6006 * gnulib/getdelim.c: New file.
6007 * gnulib/getline.c: Likewise.
6008
6009 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
6010
6011 * include/grub/list.h (grub_assert_fail): Removed.
6012 (grub_bad_type_cast_real): New function.
6013 (grub_bad_type_cast): New macro.
6014 (GRUB_AS_LIST): Use grub_bad_type_cast.
6015 (GRUB_AS_LIST_P): Likewise.
6016 (GRUB_AS_NAMED_LIST): Likewise.
6017 (GRUB_AS_NAMED_LIST_P): Likewise.
6018 (GRUB_AS_PRIO_LIST): Likewise.
6019 (GRUB_AS_PRIO_LIST_P): Likewise.
6020 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
6021
6022 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
6023
6024 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
6025 Fix syntax error.
6026
6027 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
6028
6029 * configure.ac: Check for TARGET_CFLAGS initialization before we
6030 initialize it ourselves (sigh).
6031 Move a few modifications to TARGET_CFLAGS to be unconditional
6032 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
6033 eh_frame)
6034
6035 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
6036 * term/i386/pc/at_keyboard.c
6037 (keyboard_controller_wait_untill_ready): Likewise.
6038 (keyboard_controller_led): Rename `led_status' paramter to avoid
6039 name conflict.
6040
6041 2009-12-28 Carles Pina i Estany <carles@pina.cat>
6042
6043 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
6044 quotes.
6045
6046 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
6049
6050 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * normal/menu_text.c (grub_print_message_indented): Prevent
6053 past-the-end-of-array dereference.
6054
6055 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
6058 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
6059
6060 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6061
6062 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
6063 * normal/main.c (grub_normal_read_line): Remove a space from the
6064 default prompt.
6065
6066 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6067
6068 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
6069 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6070 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6071 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6072 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6073 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6074 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6075
6076 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6077
6078 * video/readers/jpeg.c (cmd): Declare.
6079 (grub_cmd_jpegtest): Use `grub_command_t' type.
6080 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6081 Assign to `cmd'.
6082 (GRUB_MOD_FINI): Use `cmd' to unregister.
6083 * video/readers/png.c (cmd): Declare.
6084 (grub_cmd_pngtest): Use `grub_command_t' type.
6085 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6086 Assign to `cmd'.
6087 (GRUB_MOD_FINI): Use `cmd' to unregister.
6088 * video/readers/tga.c (cmd): Declare.
6089 (grub_cmd_tgatest): Use `grub_command_t' type.
6090 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6091 Assign to `cmd'.
6092 (GRUB_MOD_FINI): Use `cmd' to unregister.
6093
6094 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6095
6096 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
6097 stops.
6098 * kern/corecmd.c (grub_register_core_commands): Likewise.
6099 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
6100 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6101 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
6102 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6103 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6104 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
6105 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6106 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
6107 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6108 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6109 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6110 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6111 * normal/handler.c (insert_handler): Likewise.
6112 * normal/main.c (GRUB_MOD_INIT): Likewise.
6113 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6114
6115 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6116
6117 * commands/help.c (grub_cmd_help): Print the command name before the
6118 summary.
6119 (GRUB_MOD_INIT): Remove command name from the summary.
6120 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
6121 string as summary.
6122 * lib/arg.c (find_long): Print the command name before the summary.
6123 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
6124 summary.
6125 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
6126 * commands/cat.c (GRUB_MOD_INIT): Likewise.
6127 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
6128 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
6129 * commands/crc.c (GRUB_MOD_INIT): Likewise.
6130 * commands/date.c (GRUB_MOD_INIT): Likewise.
6131 * commands/echo.c (GRUB_MOD_INIT): Likewise.
6132 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
6133 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6134 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6135 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
6136 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
6137 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
6138 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
6139 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6140 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
6141 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
6142 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
6143 * commands/ls.c (GRUB_MOD_INIT): Likewise.
6144 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6145 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6146 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6147 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
6148 * commands/password.c (GRUB_MOD_INIT): Likewise.
6149 * commands/probe.c (GRUB_MOD_INIT): Likewise.
6150 * commands/read.c (GRUB_MOD_INIT): Likewise.
6151 * commands/search.c (GRUB_MOD_INIT): Likewise.
6152 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
6153 * commands/test.c (GRUB_MOD_INIT): Likewise.
6154 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
6155 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6156 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6157 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
6158 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6159 * lib/arg.c (GRUB_MOD_INIT): Likewise.
6160 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
6161 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6162 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6163 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6164 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6165 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
6166 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
6167 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
6168
6169 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 Use search command for preliminar UUID search.
6172
6173 * commands/search.c: Split into ...
6174 * commands/search_wrap.c: ...this
6175 * commands/search.c: ...and this.
6176 * commands/search_file.c: New file.
6177 * commands/search_label.c: New file.
6178 * commands/search_uuid.c: New file.
6179 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
6180 Add commands/search_wrap.c, commands/search_file.c,
6181 commands/search_label.c and commands/search_uuid.c.
6182 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
6183 (search_mod_SOURCES): Set to commands/search_wrap.c.
6184 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
6185 search_label.mod.
6186 (search_fs_file_mod_SOURCES): New variable.
6187 (search_fs_file_mod_CFLAGS): Likewise.
6188 (search_fs_file_mod_LDFLAGS): Likewise.
6189 (search_label_mod_SOURCES): Likewise.
6190 (search_label_mod_CFLAGS): Likewise.
6191 (search_label_mod_LDFLAGS): Likewise.
6192 (search_fs_uuid_mod_SOURCES): New variable.
6193 (search_fs_uuid_mod_CFLAGS): Likewise.
6194 (search_fs_uuid_mod_LDFLAGS): Likewise.
6195 (fs_file_mod_SOURCES): Removed.
6196 (fs_file_mod_CFLAGS): Likewise.
6197 (fs_file_mod_LDFLAGS): Likewise.
6198 (fs_uuid_mod_SOURCES): Removed.
6199 (fs_uuid_mod_CFLAGS): Likewise.
6200 (fs_uuid_mod_LDFLAGS): Likewise.
6201 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
6202 Set to util/grub-install.in.
6203 * disk/fs_file.c: Removed.
6204 * disk/fs_uuid.c: Likewise.
6205 * include/grub/search.h: New file.
6206 * util/grub-install.in: Handle sparc64.
6207 Create and use load.cfg.
6208 * util/sparc64/ieee1275/grub-install.in: Removed.
6209
6210 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
6213 Ignore return status if CF is cleared.
6214 (grub_biosdisk_get_diskinfo_standard): Likewise.
6215
6216 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6217
6218 * term/i386/pc/at_keyboard.c
6219 (keyboard_controller_wait_untill_ready): New function.
6220 (grub_keyboard_controller_write, grub_keyboard_controller_read)
6221 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
6222 for keyboard polling, rather than duplicate the same loop. This
6223 saves a few bytes in code size.
6224
6225 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 Support for (pxe[:server[:gateway]]) syntax and
6228 use environment variable for PXE.
6229
6230 * commands/i386/pc/pxecmd.c (options): Removed.
6231 (print_ip): Removed.
6232 (grub_cmd_pxe): Removed
6233 (grub_cmd_pxe_unload): New function.
6234 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
6235 (grub_pxe_your_ip): Made static.
6236 (grub_pxe_default_server_ip): Likewise.
6237 (grub_pxe_default_gateway_ip): Likewise.
6238 (grub_pxe_blksize): Likewise.
6239 (parse_ip): New function.
6240 (grub_pxe_open): Support server and gateway specification.
6241 (grub_pxe_close): Free disk->data.
6242 (grub_pxefs_open): Use disk->data.
6243 (grub_pxefs_read): Likewise.
6244 (grub_env_write_readonly): New function.
6245 (set_mac_env): Likewise.
6246 (set_env_limn_ro): Likewise.
6247 (parse_dhcp_vendor): Likewise.
6248 (grub_pxe_detect): Set the environment variables.
6249 (set_ip_env): New function.
6250 (write_ip_env): Likewise.
6251 (grub_env_write_pxe_default_server): Likewise.
6252 (grub_env_write_pxe_default_gateway): Likewise.
6253 (grub_env_write_pxe_blocksize): Likewise.
6254 (GRUB_MOD_INIT(pxe)): Set environment variables.
6255 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
6256 (grub_pxe_mac_addr_t): ... this. All users updated.
6257 (grub_pxe_your_ip): Removed.
6258 (grub_pxe_server_ip): Likewise.
6259 (grub_pxe_gateway_ip): Likewise.
6260 (grub_pxe_blksize): Likewise.
6261
6262 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6263
6264 * commands/help.c: Include `<grub/i18n.h>'.
6265 (grub_cmd_help): Gettextizze.
6266 (GRUB_MOD_INIT): Likewise.
6267 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
6268 (GRUB_MOD_INIT): Gettextizze.
6269 * commands/search.c: Include `<grub/i18n.h>'.
6270 (options): Gettextizze.
6271 (GRUB_MOD_INIT): Gettextizze.
6272 * lib/arg.c: Include `<grub/i18n.h>'.
6273 (help_options): Gettextizze.
6274 (find_long): Likewise.
6275 (grub_arg_show_help): Likewise.
6276 * normal/dyncmd.c: Include `<grub/i18n.h>'.
6277 (read_command_list): Gettextizze.
6278 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
6279 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
6280
6281 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6282
6283 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
6284 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
6285 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
6286 (led_status): New variable.
6287 (keyboard_controller_led): New function.
6288 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
6289 update led status for caps lock, num lock and scroll lock.
6290
6291 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
6292
6293 * util/hostdisk.c (open_device): Fix a comment.
6294
6295 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6296
6297 * util/grub-install.in (host_os): New variable.
6298 * util/i386/efi/grub-install.in (host_os): Likewise.
6299
6300 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6301
6302 * util/mkisofs/write.c (padblock_write): Abort when given an
6303 excedingly large embed image, instead of silently truncating it.
6304
6305 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6306
6307 * include/multiboot.h: Indentation fixes.
6308
6309 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6310
6311 * include/multiboot.h (struct multiboot_aout_symbol_table)
6312 (struct multiboot_elf_section_header_table): New structure
6313 declarations (stolen from GRUB Legacy).
6314 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
6315 table information.
6316
6317 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
6318 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
6319 type aliases.
6320
6321 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6322
6323 * include/multiboot.h: Make comments src2texi-friendly.
6324
6325 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6326
6327 For consistency with [multiboot]/docs/boot.S.
6328
6329 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
6330 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
6331 (MULTIBOOT_MAGIC2): Rename from this ...
6332 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
6333
6334 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6335
6336 * include/multiboot.h: Remove `<grub/types.h>'.
6337 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
6338 types. Update all users.
6339
6340 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6341
6342 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
6343 `couldn't' and `can not' by `cannot'.
6344 * commands/i386/pc/drivemap.c: Likewise.
6345 * disk/ata.c: Likewise.
6346 * disk/ieee1275/nand.c: Likewise.
6347 * fs/affs.c: Likewise.
6348 * fs/fat.c: Likewise.
6349 * fs/hfs.c: Likewise.
6350 * fs/hfsplus.c: Likewise.
6351 * fs/iso9660.c: Likewise.
6352 * fs/jfs.c: Likewise.
6353 * fs/minix.c: Likewise.
6354 * fs/reiserfs.c: Likewise.
6355 * fs/sfs.c: Likewise.
6356 * fs/udf.c: Likewise.
6357 * fs/ufs.c: Likewise.
6358 * fs/xfs.c: Likewise.
6359 * loader/powerpc/ieee1275/linux.c: Likewise.
6360 * loader/sparc64/ieee1275/linux.c: Likewise.
6361 * util/grub-probe.c: Likewise.
6362 * util/misc.c: Likewise.
6363
6364 2009-12-24 Carles Pina i Estany <carles@pina.cat>
6365
6366 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
6367 grub_errno calls.
6368 * commands/acpi.c: Likewise.
6369 * commands/blocklist.c: Likewise.
6370 * commands/efi/loadbios.c: Likewise.
6371 * commands/i386/pc/drivemap.c: Likewise.
6372 * commands/loadenv.c: Likewise.
6373 * commands/memrw.c: Likewise.
6374 * commands/password.c: Likewise.
6375 * commands/videotest.c: Likewise.
6376 * disk/ata.c: Likewise.
6377 * disk/ata_pthru.c: Likewise.
6378 * disk/dmraid_nvidia.c: Likewise.
6379 * disk/ieee1275/nand.c: Likewise.
6380 * disk/ieee1275/ofdisk.c: Likewise.
6381 * disk/loopback.c: Likewise.
6382 * disk/lvm.c: Likewise.
6383 * disk/mdraid_linux.c: Likewise.
6384 * disk/raid.c: Likewise.
6385 * disk/raid6_recover.c: Likewise.
6386 * disk/scsi.c: Likewise.
6387 * efiemu/main.c: Likewise.
6388 * efiemu/mm.c: Likewise.
6389 * efiemu/pnvram.c: Likewise.
6390 * efiemu/symbols.c: Likewise.
6391 * font/font.c: Likewise.
6392 * fs/cpio.c: Likewise.
6393 * fs/hfsplus.c: Likewise.
6394 * fs/iso9660.c: Likewise.
6395 * fs/jfs.c: Likewise.
6396 * fs/minix.c: Likewise.
6397 * fs/ntfs.c: Likewise.
6398 * fs/ntfscomp.c: Likewise.
6399 * fs/reiserfs.c: Likewise.
6400 * fs/ufs.c: Likewise.
6401 * fs/xfs.c: Likewise.
6402 * gettext/gettext.c: Likewise.
6403 * include/grub/auth.h: Likewise.
6404 * kern/elf.c: Likewise.
6405 * kern/file.c: Likewise.
6406 * kern/ieee1275/init.c: Likewise.
6407 * kern/ieee1275/mmap.c: Likewise.
6408 * kern/ieee1275/openfw.c: Likewise.
6409 * kern/powerpc/dl.c: Likewise.
6410 * kern/sparc64/dl.c: Likewise.
6411 * lib/arg.c: Likewise.
6412 * loader/i386/bsd.c: Likewise.
6413 * loader/i386/bsdXX.c: Likewise.
6414 * loader/i386/efi/linux.c: Likewise.
6415 * loader/i386/efi/xnu.c: Likewise.
6416 * loader/i386/ieee1275/linux.c: Likewise.
6417 * loader/i386/linux.c: Likewise.
6418 * loader/i386/multiboot.c: Likewise.
6419 * loader/i386/pc/linux.c: Likewise.
6420 * loader/i386/pc/multiboot2.c: Likewise.
6421 * loader/i386/xnu.c: Likewise.
6422 * loader/ieee1275/multiboot2.c: Likewise.
6423 * loader/macho.c: Likewise.
6424 * loader/machoXX.c: Likewise.
6425 * loader/multiboot2.c: Likewise.
6426 * loader/multiboot_loader.c: Likewise.
6427 * loader/powerpc/ieee1275/linux.c: Likewise.
6428 * loader/sparc64/ieee1275/linux.c: Likewise.
6429 * loader/xnu.c: Likewise.
6430 * loader/xnu_resume.c: Likewise.
6431 * mmap/i386/pc/mmap.c: Likewise.
6432 * normal/menu_viewer.c: Likewise.
6433 * partmap/acorn.c: Likewise.
6434 * partmap/amiga.c: Likewise.
6435 * partmap/apple.c: Likewise.
6436 * script/lexer.c: Likewise.
6437 * term/gfxterm.c: Likewise.
6438 * term/i386/pc/serial.c: Likewise.
6439 * term/i386/pc/vga.c: Likewise.
6440 * term/ieee1275/ofconsole.c: Likewise.
6441 * term/terminfo.c: Likewise.
6442 * video/bitmap.c: Likewise.
6443 * video/efi_gop.c: Likewise.
6444 * video/efi_uga.c: Likewise.
6445 * video/fb/video_fb.c: Likewise.
6446 * video/i386/pc/vbe.c: Likewise.
6447 * video/readers/tga.c: Likewise.
6448 * video/video.c: Likewise.
6449
6450 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
6451
6452 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
6453 * commands/lspci.c: Likewise.
6454 * commands/probe.c: Likewise.
6455 * commands/xnu_uuid.c: Likewise.
6456 * conf/i386-coreboot.rmk: Likewise.
6457 * conf/i386-efi.rmk: Likewise.
6458 * conf/i386-ieee1275.rmk: Likewise.
6459 * conf/i386-pc.rmk: Likewise.
6460 * conf/powerpc-ieee1275.rmk: Likewise.
6461 * conf/sparc64-ieee1275.rmk: Likewise.
6462 * conf/x86_64-efi.rmk: Likewise.
6463 * fs/i386/pc/pxe.c: Likewise.
6464 * gettext/gettext.c: Likewise.
6465 * include/grub/efi/graphics_output.h: Likewise.
6466 * include/grub/i386/pc/memory.h: Likewise.
6467 * kern/env.c: Likewise.
6468 * kern/i386/qemu/startup.S: Likewise.
6469 * lib/i386/pc/biosnum.c: Likewise.
6470 * lib/i386/relocator.c: Likewise.
6471 * lib/i386/relocator_asm.S: Likewise.
6472 * lib/relocator.c: Likewise.
6473 * loader/i386/bsd.c: Likewise.
6474 * loader/i386/multiboot.c: Likewise.
6475 * loader/i386/pc/chainloader.c: Likewise.
6476 * loader/i386/xnu.c: Likewise.
6477 * loader/xnu.c: Likewise.
6478 * normal/main.c: Likewise.
6479 * normal/menu_text.c: Likewise.
6480 * util/getroot.c: Likewise.
6481 * util/grub-mkconfig_lib.in: Likewise.
6482 * util/grub.d/00_header.in: Likewise.
6483 * util/i386/pc/grub-mkimage.c: Likewise.
6484 * util/mkisofs/eltorito.c: Likewise.
6485 * util/mkisofs/exclude.h: Likewise.
6486 * util/mkisofs/hash.c: Likewise.
6487 * util/mkisofs/iso9660.h: Likewise.
6488 * util/mkisofs/joliet.c: Likewise.
6489 * util/mkisofs/mkisofs.c: Likewise.
6490 * util/mkisofs/mkisofs.h: Likewise.
6491 * util/mkisofs/multi.c: Likewise.
6492 * util/mkisofs/name.c: Likewise.
6493 * util/mkisofs/rock.c: Likewise.
6494 * util/mkisofs/tree.c: Likewise.
6495 * util/mkisofs/write.c: Likewise.
6496 * video/efi_gop.c: Likewise.
6497
6498 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
6501 size counting.
6502
6503 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6504
6505 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
6506 * genmk.rb (class SCRIPT): Modify the target file instead of source.
6507
6508 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
6511 (GRUB_MOD_INIT(memrw)): Update help line.
6512
6513 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6516 Use grub_extcmd_t. All users updated.
6517 (options): New variable.
6518 (grub_cmd_read): Restructure for readability. Support "-v" option.
6519 (grub_cmd_write): Restructure for readability.
6520
6521 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6522
6523 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6524
6525 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6526
6527 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6528 with the actual contents of the correspondending make variable.
6529 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6530 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6531 specifying `*.lst' and `efiemu??.o'
6532
6533 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6534
6535 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6536 after function name.
6537 Noticed by Rene Engelhard <rene@debian.org>.
6538
6539 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6542 (options): New variable.
6543 (iospace): Likewise.
6544 (grub_lspci_iter): List IO spaces if "-i" was given.
6545 (grub_cmd_lspci): Parse options.
6546 (GRUB_MOD_INIT(lspci)): Use extcmd.
6547 (GRUB_MOD_FINI(lspci)): Likewise.
6548
6549 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6550
6551 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6552 `function' keyword.
6553 Patch by Tony Mancill <tmancill@debian.org>.
6554
6555 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6558 (grub_uhci_portstatus): Likewise.
6559 (grub_uhci_portstatus): Add necessary delay.
6560 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
6561
6562 2009-12-21 Carles Pina i Estany <carles@pina.cat>
6563
6564 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6565 (GRUB_MOD_INIT): Likewise.
6566 * commands/boot.c (GRUB_MOD_INIT): Likewise.
6567 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6568 * commands/echo.c (options): Fix capitalizations and/or full stops.
6569 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6570 (enable_rom_area): Likewise.
6571 (GRUB_MOD_INIT): Likewise.
6572 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6573 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6574 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6575 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6576 * commands/hexdump.c (options): Likewise.
6577 * commands/i386/cpuid.c (options): Likewise.
6578 (GRUB_MOD_INIT): Likewise.
6579 * commands/i386/pc/drivemap.c (options): Likewise.
6580 (GRUB_MOD_INIT): Likewise.
6581 * commands/i386/pc/halt (options): Likewise.
6582 (GRUB_MOD_INIT): Likewise.
6583 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6584 * commands/i386/pc/pxecmd.c (options): Likewise.
6585 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6586 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6587 * commands/keystatus.c (options): Likewise.
6588 (GRUB_MOD_INIT): Likewise.
6589 * commands/loadenv.c (options): Likewise.
6590 * commands/ls.c (options): Likewise.
6591 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6592 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6593 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6594 * commands/parttool.c (helpmsg): Likewise.
6595 * commands/probe.c (options): Likewise.
6596 * commands/read.c (GRUB_MOD_INIT): Likewise.
6597 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6598 * commands/search.c (options): Likewise.
6599 * commands/sleep.c (options): Likewise.
6600 * commands/test.c (GRUB_MOD_INIT): Likewise.
6601 * commands/true.c (GRUB_MOD_INIT): Likewise.
6602 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6603 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6604 * lib/arg.c (help_options): Likewise.
6605 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6606 `$(XGETTEXT)'.
6607 * po/POTFILES: Add `commands/loadenv.c'.
6608
6609 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6610
6611 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6612 instead of specifying them explicit.
6613
6614 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6615
6616 * NEWS: Add grub-probe support for GNU/Hurd.
6617
6618 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6619
6620 * NEWS: gettext was added after 1.97.
6621
6622 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6623
6624 * util/mkisofs/msdos_partition.h: New file (based on
6625 include/grub/msdos_partition.h).
6626 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6627 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6628 (ld_options, main): Recognize --protective-msdos-label.
6629 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6630 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6631 (padblock_write): If `use_protective_msdos_label' is set, patch a
6632 protective DOS-style label in the output image.
6633
6634 * util/grub-mkrescue.in: Use --protective-msdos-label.
6635
6636 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6637
6638 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6639 boot.
6640
6641 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6642
6643 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6644 variables.
6645 (ld_options, main): Recognize `--embedded-boot'.
6646 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6647 declarations.
6648 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6649 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6650 (padblock_write): Likewise. Rewrite to support embedded boot image.
6651
6652 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6653 for BIOS-based disk boot instead of only ElTorito.
6654
6655 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6656
6657 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6658 build (not needed for bootstrap).
6659
6660 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6661
6662 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6663 from i386-pc build (not needed for bootstrap).
6664 Rewrite a pair of strings.
6665
6666 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6667
6668 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6669
6670 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6673
6674 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6675
6676 * kern/env.c (grub_env_context_open): Mark exported variable for
6677 reexport.
6678
6679 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6680
6681 * kern/env.c (grub_env_export): Create nonexistent variables before
6682 exporting.
6683
6684 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6685
6686 * include/grub/auth.h: Include `<grub/i18n.h>'.
6687 (GRUB_GET_PASSWORD): Gettextizze string.
6688 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6689 menu_text.c.
6690 (grub_utf8_to_ucs4_alloc): Fix indentation.
6691 (grub_print_ucs4): Likewise.
6692 (grub_getstringwidth): Likewise.
6693 (print_message_indented): New declaration.
6694 * normal/auth.c: Include `<grub/i18n.h>'.
6695 (grub_auth_check_authentication): Gettexttize string.
6696 * normal/cmdline.c: Include `<grub/i18n.h>'.
6697 (grub_cmdline_get): Gettextizze.
6698 * normal/color.c: Include `<grub/i18n.h>'.
6699 (grub_parse_color_name_pair): Gettexttize strings.
6700 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6701 string (use `print_message_indented').
6702 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6703 `include/grub/normal.h'.
6704 (print_message_indented): Renamed to ...
6705 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6706 used in normal/main.c).
6707 (print_message): Use `grub_print_message_indented' instead of
6708 `print_message_indented'.
6709 (print_timeout): Likewise.
6710 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6711 (grub_normal_print_device_info): Gettexttize strings.
6712 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6713
6714 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6717 of arguments. Return number of tokens and not arguments. All users
6718 updated.
6719
6720 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6723 non-MSDOS paritions.
6724
6725 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * include/grub/types.h (UNUSED): Removed since it conflicts with
6728 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6729 Reported by Grégoire Sutre.
6730
6731 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6732
6733 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6734 (grub_print_ucs4_alloc): Likewise.
6735 (grub_getstringwidth): Likewise.
6736 * normal/main.c (grub_normal_init_page): Gettextize version string.
6737 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6738 (getstringwidth): Renamed to ...
6739 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6740 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6741 (grub_print_ucs4): Remove `static' qualifer (now used in
6742 normal/main.c).
6743 * po/POTFILES: Add normal/main.c.
6744
6745 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6746
6747 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6748 (print_message_indented): Add `margin_left' and `margin_right'
6749 parameters.
6750 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6751 strings.
6752 (print_timeout): Use `print_message_indented' to print the message.
6753 Deletes `second_stage' parameter.
6754 (run_menu): Update `print_timeout' calls.
6755
6756 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 Fix console palette on OpenFirmware.
6759
6760 * term/ieee1275/ofconsole.c (MAX): Removed.
6761 (colors): Redone based on VGA palette.
6762 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6763 colors are supported.
6764 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6765
6766 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 Fix potential EfiEmu double prepare.
6769
6770 * efiemu/main.c (prepared): New variable
6771 (grub_efiemu_unload): Set prepare to '0'.
6772 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6773
6774 set_virtual_address_map support.
6775
6776 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6777 prototype.
6778 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6779 prototype.
6780 (grub_efiemu_crc32): Likewise.
6781 (grub_efiemu_crc64): Likewise.
6782 (grub_efiemu_set_virtual_address_map): Likewise.
6783 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6784 New definition.
6785 (grub_autoefi_set_virtual_address_map): Likewise.
6786 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6787 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6788 Restructure flow to accomodate it.
6789 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6790 (grub_efiemu_crc): Recompute CRC32.
6791 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6792 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6793 * efiemu/symbols.c (relocated_handle): New variable.
6794 (grub_efiemu_free_syms): Free relocated_handle.
6795 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6796 (grub_efiemu_write_sym_markers): New function.
6797 (grub_efiemu_set_virtual_address_map): Likewise.
6798
6799 Newer XNU parameters.
6800
6801 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6802 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6803 (grub_xnu_fill_devicetree): New prototype.
6804 (grub_xnu_heap_real_start): New variable.
6805 * loader/xnu.c (get_name_ptr): New function.
6806 (grub_xnu_load_driver): Fill namelen and name.
6807
6808 64-bit xnu support.
6809
6810 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6811 and 'loader/macho64.c'.
6812 * conf/i386-pc.rmk: Likewise.
6813 * conf/x86_64-efi.rmk: Likewise.
6814 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6815 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6816 * include/grub/macho.h (grub_macho_segment64): New structure.
6817 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6818 (grub_macho_size32): ... to this.
6819 (grub_macho32_get_entry_point): Renamed from ...
6820 (grub_macho_get_entry_point32): ... to this.
6821 (grub_macho_contains_macho64): New prototype.
6822 (grub_macho_size64): Likewise.
6823 (grub_macho_get_entry_point64): Likewise.
6824 (grub_macho32_load): Renamed from ...
6825 (grub_macho_load32): ... to this.
6826 (grub_macho32_filesize): Renamed from ...
6827 (grub_macho_filesize32): ... to this.
6828 (grub_macho32_readfile): Renamed from ...
6829 (grub_macho_readfile32): ... to this.
6830 (grub_macho_filesize64): New prototype.
6831 (grub_macho_readfile64): Likewise.
6832 (grub_macho_parse32): Likewise.
6833 (grub_macho_parse64): Likewise.
6834 * loader/macho.c: Split into ...
6835 * loader/machoXX.c: ... and this. Replace 32 with XX.
6836 * loader/macho32.c: New file.
6837 * loader/macho64.c: Likewise.
6838 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6839 (grub_cmd_xnu_kernel): Make 32-bit only.
6840 (grub_cmd_xnu_kernel64): New function.
6841 (grub_xnu_load_driver): Support Mach-O 64.
6842 (grub_cmd_xnu_mkext): Likewise.
6843 * util/grub.d/30_os-prober.in (osx_entry): New function.
6844 Generate entries for 64-bit boot too.
6845
6846 Eliminate ad-hoc tree format in XNU and EfiEmu.
6847
6848 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6849 * efiemu/pnvram.c: Rewritten to use environment variables.
6850 All users updated.
6851
6852 Inline utf16_to_utf8.
6853
6854 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6855 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6856 All users updated.
6857 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6858
6859 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6860 * commands/usbtest.c (grub_usb_get_string): ... move here.
6861 (usb_print_str): Fix error handling.
6862 * include/grub/usb.h (grub_usb_get_string): Remove.
6863
6864 UTF-8 to UTF-16 transformation.
6865
6866 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6867 (charset_mod_SOURCES): New variable.
6868 (charset_mod_CFLAGS): Likewise.
6869 (charset_mod_LDFLAGS): Likewise.
6870 * include/grub/utf.h: New file.
6871 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6872
6873 Support for device properties.
6874
6875 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6876 (grub_xnu_devprop_device_header): Likewise.
6877 (grub_xnu_devprop_device_descriptor): Likewise.
6878 (grub_xnu_devprop_add_device): New prototype.
6879 (grub_xnu_devprop_remove_device): Likewise.
6880 (grub_xnu_devprop_remove_property): Likewise.
6881 (grub_xnu_devprop_add_property_utf8): Likewise.
6882 (grub_xnu_devprop_add_property_utf16): Likewise.
6883 (grub_cpu_xnu_init): Likewise.
6884 (grub_cpu_xnu_fini): Likewise.
6885 (grub_cpu_xnu_unload): Likewise.
6886 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6887 (property_descriptor): Likewise.
6888 (devices): New variable.
6889 (grub_xnu_devprop_remove_property): New function.
6890 (grub_xnu_devprop_add_device): Likewise.
6891 (grub_xnu_devprop_remove_device): Likewise.
6892 (grub_xnu_devprop_add_property): Likewise.
6893 (grub_xnu_devprop_add_property_utf8): Likewise.
6894 (grub_xnu_devprop_add_property_utf16): Likewise.
6895 (hextoval): Likewise.
6896 (grub_cpu_xnu_fill_devprop): Likewise.
6897 (grub_cmd_devprop_load): Likewise.
6898 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6899 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6900 (cmd_devprop_load): New variable.
6901 (grub_cpu_xnu_init): New function.
6902 (grub_cpu_xnu_fini): Likewise.
6903 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6904 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6905 (grub_cmd_xnu_devtree): Likewise.
6906 (hextoval): New function.
6907 (unescape): Likewise.
6908 (grub_xnu_fill_devicetree): Likewise.
6909
6910 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6911 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6912
6913 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 Workaround for broken ATI VBE.
6916
6917 * video/i386/pc/vbe.c (last_set_mode): New variable.
6918 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6919 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6920 (grub_video_vbe_setup): Don't check for reserved flag.
6921
6922 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6923
6924 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6925 the `find' command.
6926
6927 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 UUID support for HFS.
6930
6931 * fs/hfs.c (grub_hfs_uuid): New function.
6932 (grub_hfs_fs): New value .uuid.
6933 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6934
6935 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6936
6937 Fix a segfault with parsing unknown long options.
6938
6939 * util/grub-mkrelpath.c (options): Zero terminate it.
6940
6941 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6942
6943 * include/grub/misc.h (grub_puts): New declaration.
6944 (grub_puts_): Likewise.
6945 * kern/misc.c (grub_puts): New definition.
6946 (grub_puts_): Likewise.
6947
6948 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6949
6950 * util/grub-probe.c (probe): Improve error message.
6951
6952 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6953
6954 * loader/i386/multiboot_elfxx.c
6955 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6956 initialization.
6957
6958 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6959
6960 Relocator framework
6961
6962 * loader/i386/xnu_helper.S: Removed. All users updated.
6963 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6964 (relocator_mod_SOURCES): New variable.
6965 (relocator_mod_CFLAGS): Likewise.
6966 (relocator_mod_LDFLAGS): Likewise.
6967 (relocator_mod_ASFLAGS): Likewise.
6968 * conf/x86_64.rmk: Likewise.
6969 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6970 (grub_multiboot_payload_entry_offset): Likewise.
6971 (grub_multiboot_forward_relocator): Likewise.
6972 (grub_multiboot_forward_relocator_end): Likewise.
6973 (grub_multiboot_backward_relocator): Likewise.
6974 (grub_multiboot_backward_relocator_end): Likewise.
6975 (grub_multiboot_payload_eip): New variable.
6976 (grub_multiboot_payload_orig): Likewise.
6977 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6978 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6979 * include/grub/i386/memory.h
6980 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6981 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6982 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6983 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6984 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6985 * include/grub/i386/relocator.h: New file.
6986 * include/grub/x86_64/relocator.h: Likewise.
6987 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6988 (XNU_RELOCATOR): New macro.
6989 (grub_xnu_launcher_start): Remove.
6990 (grub_xnu_launcher_end): Likewise.
6991 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6992 (grub_xnu_heap_real_start): Remove.
6993 (grub_xnu_heap_start): Change to void *. All users updated.
6994 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6995 * lib/i386/relocator.c: New file.
6996 * lib/i386/relocator_asm.S: Likewise.
6997 * lib/i386/relocator_backward.S: Likewise.
6998 * lib/mips/relocator.c: Likewise.
6999 * lib/mips/relocator_asm.S: Likewise.
7000 * lib/relocator.c: Likewise.
7001 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
7002 (entry): Removed.
7003 (playground): Likewise.
7004 (grub_multiboot_payload_orig): New variable.
7005 (grub_multiboot_payload_dest): Likewise.
7006 (grub_multiboot_payload_size): Likewise.
7007 (grub_multiboot_payload_eip): Likewise.
7008 (grub_multiboot_payload_esp): Likewise.
7009 (grub_multiboot_boot): Use grub_relocator32_boot.
7010 (grub_multiboot_unload): Free relocators.
7011 (grub_multiboot): Setup stack. Use relocators.
7012 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
7013 (grub_multiboot_load_elfXX): Use relocators.
7014 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
7015 (grub_multiboot_payload_size): Likewise.
7016 (grub_multiboot_payload_dest): Likewise.
7017 (grub_multiboot_payload_entry_offset): Likewise.
7018 (grub_multiboot_forward_relocator): Likewise.
7019 (grub_multiboot_backward_relocator): Likewise.
7020 (grub_multiboot_real_boot): Likewise.
7021 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
7022 (grub_xnu_entry_point): Likewise.
7023 (grub_xnu_arg1): Likewise.
7024 (grub_xnu_stack): Likewise.
7025 (grub_xnu_launch): Removed.
7026 (grub_xnu_boot_resume): New function.
7027 (grub_xnu_boot): Use relocators.
7028 * loader/i386/xnu_helper.S: Removed.
7029 * loader/xnu.c (grub_xnu_heap_start): New variable.
7030 (grub_xnu_heap_size): Likewise.
7031 (grub_xnu_heap_malloc): Use relocators.
7032 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
7033
7034 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
7037 anything.
7038
7039 2009-12-13 Carles Pina i Estany <carles@pina.cat>
7040
7041 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
7042 GRUB_ERR_NONE before calling grub_env_set.
7043
7044 2009-12-12 Robert Millan <rmh@aybabtu.com>
7045
7046 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
7047 * genmk.rb (video): New variable.
7048 (CLEANFILES, VIDEOFILES): Add #{video}.
7049 (#{video}): New target rule.
7050 * genvideolist.sh: New file.
7051 * Makefile.in (pkglib_DATA): Add video.lst.
7052 (video.lst): New target rule.
7053 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
7054 `video.lst'.
7055 * util/grub.d/30_os-prober.in: Replace `vbe' with
7056 ${GRUB_VIDEO_BACKEND}.
7057
7058 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
7059
7060 * THANKS: Add David Miller.
7061
7062 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7063
7064 libpciaccess support.
7065
7066 * Makefile.in (LIBPCIACCESS): New variable.
7067 (enable_grub_emu_pci): Likewise.
7068 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
7069 util/pci.c and commands/lspci.c.
7070 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
7071 * configure.ac (grub-emu-pci): New option.
7072 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
7073 (grub_pci_device_unmap_range): Likewise.
7074 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
7075 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
7076 (grub_pci_address_t) [!GRUB_UTIL]: New type.
7077 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
7078 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
7079 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
7080 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
7081 * include/grub/pciutils.h: New file.
7082 * util/pci.c: Likewise.
7083
7084 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
7085
7086 * util/misc.c: Don't include <errno.h> twice.
7087
7088 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
7089
7090 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
7091 name in an error message.
7092 (grub_biosdisk_rw): Likewise.
7093
7094 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 Eliminate NTFS 4Gib barrier.
7097
7098 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
7099 (read_run_data): Likewise.
7100 (grub_ntfs_read_run_list): Likewise.
7101 (grub_ntfs_read_block): Likewise.
7102 (grub_ntfs_iterate_dir): Likewise.
7103 (read_mft): Likewise.
7104 (read_data): Likewise.
7105 Use COM_LOG_LEN.
7106 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
7107 to avoid 64-bit division
7108 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
7109 (grub_ntfs_rlst): Use grub_disk_addr_t.
7110
7111 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 Eliminate grub-fstest 4Gib barrier.
7114
7115 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
7116 (read_file): Fix error reporting.
7117
7118 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7119
7120 Eliminate hexdump 4Gib barrier.
7121
7122 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
7123 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
7124
7125 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7126
7127 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
7128 Fixes amarsh bug.
7129
7130 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
7131
7132 Remove miscellaneous files in distclean target.
7133
7134 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
7135
7136 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
7137
7138 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
7139 if they're already set. This resolves the conflict between my
7140 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
7141 fixing the --grub-probe option again.
7142 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
7143 change on 2009-10-06, so that we now once again source
7144 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7145
7146 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
7147
7148 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
7149 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
7150 `util/devicemap.c'.
7151
7152 2009-12-08 Carles Pina i Estany <carles@pina.cat>
7153
7154 * include/grub/misc.h (grub_printf_): New declaration.
7155 * kern/misc.c (grub_printf_): New definition.
7156 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
7157 instead of `grub_printf' and `_'.
7158 * normal/menu_entry.c (store_completion): Likewise.
7159 (run): Likewise.
7160 (grub_menu_entry_run): Likewise.
7161 * normal/menu_text.c (grub_wait_after_message): Likewise.
7162 (notify_booting): Likewise.
7163 (notify_fallback): Likewise.
7164 (notify_execution_failure): Likewise.
7165
7166 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
7167
7168 * configure.ac: Check for vasprintf.
7169 * util/misc.c (asprintf): Move allocation from here ...
7170 (vasprintf): ... to here. New function.
7171 (xasprintf): New function.
7172 * include/grub/util/misc.h (vasprintf, xasprintf): Add
7173 prototypes.
7174 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7175 * util/grub-mkfont.c (write_font): Likewise.
7176 * util/grub-probe.c (probe): Likewise.
7177 * util/hostdisk.c (make_device_name): Likewise.
7178
7179 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
7180
7181 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
7182 anything even prefixed with 'cdrom' as a cdrom.
7183
7184 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
7185
7186 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
7187 mount points.
7188
7189 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7190
7191 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
7192 grub_gettext_msg_list.
7193 (grub_gettext_gettranslation_from_position): Return const char *
7194 and not char *.
7195 (grub_gettext_translate): Add the translated strings into a list,
7196 returns from the list if existing there.
7197 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
7198 (grub_gettext_delete_list): Delete the list.
7199 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
7200 lang environment variable is changed.
7201 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
7202
7203 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Rename kernel.mod to kernel.img.
7206
7207 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
7208 (kernel_mod_EXPORTS): Rename to ...
7209 (kernel_img_EXPORTS): ... this.
7210 (kernel_mod_SOURCES): Rename to ...
7211 (kernel_img_SOURCES): ... this.
7212 (kernel_mod_HEADERS): Rename to ...
7213 (kernel_img_HEADERS): ... this. All users updated.
7214 (kernel_mod_CFLAGS): Rename to ...
7215 (kernel_img_CFLAGS): ... this.
7216 (kernel_mod_ASFLAGS): Rename to ...
7217 (kernel_img_ASFLAGS): ... this.
7218 (kernel_mod_LDFLAGS): Rename to ...
7219 (kernel_img_LDFLAGS): ... this.
7220 * conf/x86_64-efi.rmk: Likewise.
7221 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
7222 (read_kernel_image): ... this. All users updated.
7223 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
7224
7225 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7226
7227 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
7228 (print_spaces): New function.
7229 (grub_print_ucs4): New function.
7230 (getstringwidth): New function.
7231 (print_message_indented): New function.
7232 (print_message): Gettexttize strings using print_message_indented.
7233 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
7234 width.
7235 (get_entry_number): Gettextize and uses dynamic terminal width.
7236 (notify_booting, notify_fallback, notify_execution_failure):
7237 Gettextize.
7238 * normal/menu_entry.c (store_completion): Cleanup the gettextized
7239 string.
7240 (run): Likewise.
7241 (grub_menu_entry_run): Likewise.
7242 * PO/POTFILES: Add normal/menu_entry.c.
7243
7244 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
7247
7248 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7249
7250 * util/grub-install.in: Install gettext .mo files.
7251 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
7252
7253 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7254
7255 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
7256 grub_dprintf.
7257
7258 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
7259
7260 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
7261 non-firmware-dependant one in realmode.S takes precedence.
7262
7263 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
7264
7265 * commands/halt.c: Replace misc arch-specific headers with
7266 `<grub/misc.h>'.
7267 * commands/reboot.c: Likewise.
7268 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
7269 `<grub/misc.h>'.
7270 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
7271 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
7272 (kernel_img_SOURCES): ... to here.
7273
7274 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
7275 * include/grub/i386/pc/init.h: Likewise.
7276 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7277 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7278
7279 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
7280
7281 * include/grub/i386/halt.h: Remove.
7282 * include/grub/i386/reboot.h: Likewise.
7283
7284 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
7285
7286 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
7287
7288 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
7289 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
7290 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
7291 "progname.h"
7292 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7293 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7294 (usage): Add missing comma in printf.
7295
7296 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
7297
7298 Use the same reboot approach on i386 coreboot and qemu as we do on
7299 BIOS.
7300
7301 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
7302 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
7303 * kern/i386/reboot.c: Remove.
7304 * include/grub/i386/reboot.h (grub_reboot): Export function.
7305 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
7306 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
7307 0xf000:0xfff0 instead of 0xffff:0x0000.
7308 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
7309 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
7310
7311 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
7312
7313 Fix $srcdir != $objdir build.
7314
7315 * Makefile.in (po/%.po): Rewrite as ...
7316 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
7317
7318 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
7319
7320 Fix GNU/Hurd grub-install crash.
7321 * util/grub-probe.c (probe): Try to access `path' only when it is not
7322 NULL.
7323
7324 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 Correct module naming.
7327
7328 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7329 (GRUB_MOD_INIT(efi_uga)): ... to this
7330 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7331 (GRUB_MOD_FINI(efi_uga)): ... to this
7332 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7333 (GRUB_MOD_INIT(efi_gop)): ... to this
7334 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7335 (GRUB_MOD_FINI(efi_gop)): ... to this
7336
7337 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
7338
7339 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
7340 translatable.
7341 (usage): Translate `arg' strings using gettext().
7342 Thanks to Jordi Mallach for the suggestion.
7343
7344 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 GOP support. Based on patch from Bean
7347 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7348
7349 * video/efi_gop.c: New file.
7350 * include/grub/efi/graphics_output.h: Likewise.
7351 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
7352 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7353 variables.
7354 * conf/x86_64-efi.rmk: Likewise.
7355
7356 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 Rename efi_fb to efi_uga.
7359
7360 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7361 'efi_uga.mod'.
7362 (efi_fb_mod_SOURCES): Rename this ...
7363 (efi_uga_mod_SOURCES): ... to this.
7364 (efi_fb_mod_CFLAGS): Rename this ...
7365 (efi_uga_mod_CFLAGS): ... to this.
7366 (efi_fb_mod_LDFLAGS): Rename this ...
7367 (efi_uga_mod_LDFLAGS): ... to this.
7368 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7369 'efi_uga.mod'.
7370 (efi_fb_mod_SOURCES): Rename this ...
7371 (efi_uga_mod_SOURCES): ... to this.
7372 (efi_fb_mod_CFLAGS): Rename this ...
7373 (efi_uga_mod_CFLAGS): ... to this.
7374 (efi_fb_mod_LDFLAGS): Rename this ...
7375 (efi_uga_mod_LDFLAGS): ... to this.
7376 * video/efi_fb.c: Move this ...
7377 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
7378
7379 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7380
7381 * po/README: New file. Explain our PO file workflow.
7382
7383 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7384
7385 * po/ChangeLog: Remove. Move relevant entries back to ...
7386 * ChangeLog: ... here.
7387 * po/ca.po: Remove (now handled by TLP).
7388 * po/id.po: Likewise.
7389 * po/zh_CN.po: Likewise.
7390 * Makefile.in (LINGUAS): Initialize in a way that supports
7391 empty set.
7392
7393 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7394
7395 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
7396 reliing on po/LINGUAS.
7397 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
7398 (po/%.po): ... this.
7399
7400 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7401
7402 * util/i386/efi/grub-mkimage.c: Include "progname.h".
7403 (main): Use `program_name' instead of nonexistent `progname'.
7404
7405 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7406
7407 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7408 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
7409
7410 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7411
7412 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
7413 commit.
7414 * conf/i386-efi.rmk: Likewise.
7415 * conf/i386-ieee1275.rmk: Likewise.
7416 * conf/powerpc-ieee1275.rmk: Likewise.
7417 * conf/sparc64-ieee1275.rmk: Likewise.
7418 * conf/x86_64-efi.rmk: Likewise.
7419
7420 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7421
7422 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
7423
7424 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7425
7426 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
7427
7428 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7429
7430 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
7431 (grub_mkdevicemap_SOURCES): New variable.
7432 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
7433 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
7434 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
7435 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
7436 (grub_mkdevicemap_SOURCES): Remove.
7437 * conf/i386-efi.rmk: Likewise.
7438 * conf/i386-ieee1275.rmk: Likewise.
7439 * conf/i386-pc.rmk: Likewise.
7440 * conf/powerpc-ieee1275.rmk: Likewise.
7441 * conf/sparc64-ieee1275.rmk: Likewise.
7442 * conf/x86_64-efi.rmk: Likewise.
7443 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
7444 (usage): Fix strings to use `program_name'.
7445 (main): Initialize gettext.
7446 * util/grub-editenv.c: Likewise.
7447 * util/grub-emu.c: Likewise.
7448 * util/grub-fstest.c: Likewise.
7449 * util/grub-mkdevicemap.c: Likewise.
7450 * util/grub-mkfont.c: Likewise.
7451 * util/grub-mkrelpath.c: Likewise.
7452 * util/grub-pe2elf.c: Likewise.
7453 * util/grub-probe.c: Likewise.
7454 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7455 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7456 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7457
7458 * util/misc.c: Include `"progname.h"'.
7459 (progname): Remove variable.
7460 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
7461
7462 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7463
7464 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
7465 printf and print a newline after the menuentry header line.
7466 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7467
7468 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7469
7470 autoconf >= 2.60 support $(localedir).
7471
7472 * INSTALL: Note that autoconf 2.60 is required.
7473 * configure.ac (AC_PREREQ): Bump to 2.60.
7474 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
7475 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7476
7477 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
7478
7479 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
7480 aclocal is run.
7481
7482 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7483
7484 * normal/main.c (grub_normal_read_line): Fix off-by-one
7485 buffer overflow.
7486
7487 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7488
7489 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
7490 "parser.grub" in grub_command_execute() call.
7491
7492 2009-11-24 Carles Pina i Estany <carles@pina.cat>
7493
7494 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
7495 * conf/i386-efi.rmk: Likewise.
7496 * conf/i386-ieee1275.rmk: Likewise.
7497 * conf/i386-pc.rmk: Likewise.
7498 * conf/powerpc-ieee1275.rmk: Likewise.
7499 * conf/sparc64-ieee1275.rmk: Likewise.
7500 * conf/x86_64-efi.rmk: Likewise.
7501 * gettext/gettex.c: Include <grub/i18n.h>.
7502 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
7503 here ...
7504 * include/grub/i18n.h: ... to here
7505 * include/grub/i18n.h: ... to here.
7506 * kern/misc.c: Include <grub/i18n.h>
7507 (grub_gettext_dummy): Move above user.
7508
7509 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7510
7511 * util/Makefile.in (install-local): Convert a `for' into a normal
7512 shell expansion.
7513
7514 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7515
7516 * autogen.sh: Add automake call.
7517 * config.guess: Remove.
7518 * config.sub: Likewise.
7519 * install-sh: Likewise.
7520
7521 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7522
7523 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7524
7525 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7526
7527 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7528 function to a normal shell `for'.
7529
7530 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7531
7532 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7533
7534 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7535
7536 * util/grub-mkrelpath.c: New file.
7537 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7538 (grub_mkrelpath_SOURCES): New variable.
7539 * include/grub/util/misc.h: New function prototype.
7540 * util/misc.c (make_system_path_relative_to_its_root): New function.
7541
7542 * util/grub-mkconfig_lib.in (bindir): New variable.
7543 (grub_mkrelpath): Likewise.
7544 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7545
7546 * util/probe.c (probe): Make the file path relative to its root.
7547 Change a info message to use the GRUB path. Enable again the
7548 check if we can read the file with GRUB facilities.
7549
7550 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7551 to its root.
7552
7553 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7554
7555 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7556 platform.
7557
7558 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7559
7560 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7561 strncmp().
7562
7563 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7564
7565 * util/getroot.c (grub_util_is_dmraid): New function.
7566 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7567 devices as normal ones, not as LVM.
7568
7569 2009-11-23 Carles Pina i Estany <carles@pina.cat>
7570
7571 * conf/common.rmk: Add grub-gettext_lib target and updates
7572 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7573 LDFLAGS.
7574 * gettext/gettext.c: New file. (Reads mo files).
7575 * include/grub/file.h (grub_file_pread): New prototype.
7576 * include/grub/i18n.h (_): New prototype.
7577 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7578 prototypes.
7579 * kern/misc.c (grub_gettext_dummy): New function.
7580 * normal/menu_text.c: Include <grub/i18n.h>.
7581 * normal/menu_text.c (print_timeout): Gettexttize string.
7582 * normal/menu_text.c (print_message): Gettexttize string.
7583 * po/POTFILES: Add `normal/menu_text.c'.
7584 * po/ca.po: Add new translations.
7585 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7586 gettext module and defines locale_dir and lang in grub.cfg.
7587 * NEWS: Add gettext support.
7588
7589 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7590
7591 * util/hostdisk.c: Include `<grub/i18n.h>'.
7592 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7593 (make_device_name): Rewrite using asprintf.
7594 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7595 (find_system_device): If a device is not found, generate one just
7596 by reusing the OS path name.
7597 (read_device_map): Make it permissible for device.map not to exist.
7598
7599 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7600
7601 * script/sh/execute.c: Move from here ...
7602 * script/execute.c: ... to here. Update all users.
7603 * script/sh/function.c: Move from here ...
7604 * script/function.c: ... to here. Update all users.
7605 * script/sh/lexer.c: Move from here ...
7606 * script/lexer.c: ... to here. Update all users.
7607 * script/sh/main.c: Move from here ...
7608 * script/main.c: ... to here. Update all users.
7609 * script/sh/parser.y: Move from here ...
7610 * script/parser.y: ... to here. Update all users.
7611 * script/sh/script.c: Move from here ...
7612 * script/script.c: ... to here. Update all users.
7613
7614 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7615
7616 * configure.ac: Detect all `emu' platforms. Define
7617 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7618 --enable-grub-emu logic. Disable include/grub/machine
7619 symlink on `emu' platforms.
7620
7621 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7622 * gensymlist.sh.in: Likewise.
7623
7624 * include/grub/i386/coreboot/machine.h: Remove file.
7625 * include/grub/i386/efi/machine.h: Likewise.
7626 * include/grub/i386/ieee1275/machine.h: Likewise.
7627 * include/grub/i386/pc/machine.h: Likewise.
7628 * include/grub/i386/qemu/machine.h: Likewise.
7629 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7630 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7631 * include/grub/x86_64/efi/machine.h: Likewise.
7632
7633 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7634 * commands/halt.c: Likewise.
7635 * commands/reboot.c: Likewise.
7636 * include/grub/autoefi.h: Likewise.
7637 * include/grub/i386/at_keyboard.h: Likewise.
7638 * include/grub/i386/kernel.h: Likewise.
7639 * include/grub/i386/loader.h: Likewise.
7640 * include/grub/i386/pc/memory.h: Likewise.
7641 * kern/dl.c: Likewise.
7642 * kern/i386/coreboot/init.c: Likewise.
7643 * loader/i386/bsd.c: Likewise.
7644 * loader/i386/linux.c: Likewise.
7645 * loader/multiboot_loader.c: Likewise.
7646 * term/i386/pc/serial.c: Likewise.
7647 * term/usb_keyboard.c: Likewise.
7648
7649 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7650 `<grub/machine/machine.h>'
7651 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7652 * util/misc.c: Remove `<grub/machine/machine.h>' and
7653 `<grub/machine/time.h>'.
7654
7655 * Makefile.in (enable_grub_emu): Remove variable.
7656 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7657
7658 * conf/any-emu.rmk: New file.
7659 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7660 (grub_emu_init.c): Move from here ...
7661 * conf/any-emu.rmk: ... to here.
7662
7663 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7664 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7665 * conf/any-emu.rmk: ... to here.
7666
7667 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7668
7669 * include/grub/parser.h (grub_parser_register): Document need
7670 of `name' parameter.
7671 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7672 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7673 "sh" to "grub".
7674
7675 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7676
7677 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7678 `$(XGETTEXT)'.
7679 * include/grub/i18n.h (N_): New macro.
7680 * util/mkisofs/mkisofs.h: Likewise.
7681 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7682 around N_().
7683 (usage): Use gettext() to translate help strings when printing them.
7684
7685 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7686
7687 Based on patch from Bean
7688 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7689
7690 * video/efi_fb.c: New file.
7691 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7692 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7693 variables.
7694 * conf/x86_64-efi.rmk: Likewise.
7695
7696 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7697
7698 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7699 * util/i386/pc/grub-setup.c: Likewise.
7700
7701 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7702
7703 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7704 <hurd/fs.h>
7705 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7706 file_get_storage_info to implement grub_guess_root_device.
7707
7708 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7709
7710 * Makefile.in (target): Use make's builtin $(shell) function
7711 instead of calling directly $(SHELL) to create the locale directories,
7712 inside the $(foreach) function.
7713
7714 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7715
7716 * util/grub-mkrescue.in: Print an error and usage if output option
7717 has not been given.
7718
7719 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7720
7721 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7722 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7723 root and /boot are on different devices.
7724
7725 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7726
7727 Fix build for srcdir != objdir.
7728
7729 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7730 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7731 $(srcdir).
7732 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7733 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7734 reference for input.
7735
7736 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7737
7738 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7739 or hardlinking it). Remove -J option, Joliet is not compatible with
7740 multiple source directories.
7741
7742 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7743 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7744
7745 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7746 (process_input_dir): New function. Process an arbitrary input
7747 directory.
7748 Misc adjustments to support both "override mode" and system-wide mode.
7749
7750 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7751
7752 * configure.ac (UNIFONT_BDF): Rename to ...
7753 (FONT_SOURCE): ... this. Update all users.
7754
7755 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7756
7757 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7758 to the list of unifont files to look for.
7759
7760 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7761
7762 Patch from Joe Auricchio <jauricchio@gmail.com>
7763 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7764 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7765 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7766
7767 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7768
7769 * Makefile.in (install-local): Add a missing backslash.
7770
7771 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7772
7773 * include/grub/x86_64/io.h: New file.
7774
7775 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7776
7777 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7778 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7779 Include `"progname.h"'.
7780 (main): Initialize gettext.
7781 * util/i386/pc/grub-setup.c: Gettexttize.
7782 * util/i386/pc/grub-mkimage.c: Likewise.
7783
7784 * Makefile.in (po/*.po): Redefine as ...
7785 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7786
7787 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7788
7789 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7790
7791 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7792 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7793 (program_name): Remove.
7794 (main): Initialize gettext support.
7795 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7796 Include `<libintl.h>'.
7797 (_): New macro.
7798
7799 * util/mkisofs/eltorito.c: Gettexttize.
7800 * util/mkisofs/joliet.c: Likewise.
7801 * util/mkisofs/mkisofs.c: Likewise.
7802 * util/mkisofs/multi.c: Likewise.
7803 * util/mkisofs/rock.c: Likewise.
7804 * util/mkisofs/tree.c: Likewise.
7805 * util/mkisofs/write.c: Likewise.
7806
7807 * po/POTFILES: Update with new files.
7808
7809 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7810
7811 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7812 * util/mkisofs/iso9660.h: Likewise.
7813 * util/mkisofs/joliet.c: Likewise.
7814 * util/mkisofs/mkisofs.c: Likewise.
7815 * util/mkisofs/mkisofs.h: Likewise.
7816 * util/mkisofs/rock.c: Likewise.
7817 * util/mkisofs/tree.c: Likewise.
7818 * util/mkisofs/write.c: Likewise.
7819
7820 * util/mkisofs/eltorito.c (rcsid): Remove.
7821 * util/mkisofs/hash.c: Likewise.
7822 * util/mkisofs/joliet.c: Likewise.
7823 * util/mkisofs/name.c: Likewise.
7824 * util/mkisofs/rock.c: Likewise.
7825 * util/mkisofs/tree.c: Likewise.
7826 * util/mkisofs/write.c: Likewise.
7827
7828 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7829
7830 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7831 instead of static allocation.
7832 * util/mkisofs/match.h: Likewise.
7833
7834 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7835
7836 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7837 and `util/grub.d/10_linux.in'.
7838 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7839 translatable Shell files.
7840
7841 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7842
7843 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7844
7845 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7846
7847 * INSTALL: Document Automake is needed for bootstrap.
7848 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7849 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7850 Add gettext initialization.
7851 (kfreebsd_entry): Make menuentry output translatable.
7852
7853 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7854
7855 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7856 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7857 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7858 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7859 (LINGUAS): Auto-generate using `po/LINGUAS'.
7860 * po/LINGUAS: New file.
7861
7862 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7863
7864 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7865 other things).
7866 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7867 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7868 bindtextdomain() calls for gettext initialization.
7869
7870 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7871
7872 * gnulib/progname.c: New file (imported from Gnulib).
7873 * gnulib/progname.h: Likewise.
7874 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7875 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7876 (usage): Replace `progname' with `program_name'.
7877 (main): Use set_program_name() for program name initialization.
7878
7879 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7880
7881 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7882 from here ...
7883 * Makefile.in (CPPFLAGS): ... to here.
7884
7885 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7886
7887 * aclocal.m4: Move from here ...
7888 * acinclude.m4: ... to here.
7889 * autogen.sh: Add call to `aclocal'.
7890 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7891
7892 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7893
7894 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7895 (LINGUAS): New variable.
7896 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7897 (install-local): Install MO files.
7898 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7899 * include/grub/i18n.h: New file.
7900 * po/POTFILES: New file.
7901 * po/ca.po: New file.
7902 * util/grub.d/10_linux.in (bindir): New variable.
7903 Add gettext initialization.
7904 (linux_entry): Make menuentry output translatable.
7905 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7906 (usage): Make --help output translatable.
7907 (main): Initialize gettext.
7908
7909 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7910
7911 * import_gcry.py: New file (written by Vladimir with minor
7912 adjustments).
7913 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7914 ciphers.
7915 * INSTALL: Document that Python is required for bootstrap.
7916
7917 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7918
7919 Import ciphers from libgcrypt 1.4.4.
7920
7921 * lib/libgcrypt/cipher/ChangeLog
7922 * lib/libgcrypt/cipher/ac.c
7923 * lib/libgcrypt/cipher/arcfour.c
7924 * lib/libgcrypt/cipher/bithelp.h
7925 * lib/libgcrypt/cipher/blowfish.c
7926 * lib/libgcrypt/cipher/camellia-glue.c
7927 * lib/libgcrypt/cipher/camellia.c
7928 * lib/libgcrypt/cipher/camellia.h
7929 * lib/libgcrypt/cipher/cast5.c
7930 * lib/libgcrypt/cipher/cipher.c
7931 * lib/libgcrypt/cipher/crc.c
7932 * lib/libgcrypt/cipher/des.c
7933 * lib/libgcrypt/cipher/dsa.c
7934 * lib/libgcrypt/cipher/ecc.c
7935 * lib/libgcrypt/cipher/elgamal.c
7936 * lib/libgcrypt/cipher/hash-common.c
7937 * lib/libgcrypt/cipher/hash-common.h
7938 * lib/libgcrypt/cipher/hmac-tests.c
7939 * lib/libgcrypt/cipher/md.c
7940 * lib/libgcrypt/cipher/md4.c
7941 * lib/libgcrypt/cipher/md5.c
7942 * lib/libgcrypt/cipher/primegen.c
7943 * lib/libgcrypt/cipher/pubkey.c
7944 * lib/libgcrypt/cipher/rfc2268.c
7945 * lib/libgcrypt/cipher/rijndael-tables.h
7946 * lib/libgcrypt/cipher/rijndael.c
7947 * lib/libgcrypt/cipher/rmd.h
7948 * lib/libgcrypt/cipher/rmd160.c
7949 * lib/libgcrypt/cipher/rsa.c
7950 * lib/libgcrypt/cipher/seed.c
7951 * lib/libgcrypt/cipher/serpent.c
7952 * lib/libgcrypt/cipher/sha1.c
7953 * lib/libgcrypt/cipher/sha256.c
7954 * lib/libgcrypt/cipher/sha512.c
7955 * lib/libgcrypt/cipher/tiger.c
7956 * lib/libgcrypt/cipher/twofish.c
7957 * lib/libgcrypt/cipher/whirlpool.c
7958
7959 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7960
7961 Fix build for systems without error().
7962
7963 * gnulib/error.c: New file (imported from Gnulib).
7964 * gnulib/error.h: Likewise.
7965 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7966 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7967 (this variable is now used by error()).
7968
7969 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7970
7971 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7972 instead of relying that char is signed.
7973
7974 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7975
7976 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7977 blocksize different from specified.
7978 (grub_pxefs_read): Likewise.
7979
7980 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7981
7982 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7983
7984 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7985 (grub_ata_readwrite): Likewise. Update 2 format strings.
7986 (grub_atapi_read): Likewise.
7987
7988 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7989 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7990 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7991 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7992 (ata_mod_LDFLAGS): Move from here ...
7993 * conf/i386.rmk: ... to here ...
7994 * conf/x86_64-efi.rmk: ... and here.
7995 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7996 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7997
7998 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7999
8000 Relicense multiboot.h, with RMS' blessing.
8001
8002 * include/multiboot.h: Change to X11 license.
8003
8004 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
8005
8006 Support --version in grub-mkisofs.
8007
8008 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
8009 (OPTION_VERSION): New macro.
8010 (ld_options): Recognize --version.
8011 (usage): Move `program_name' from here ...
8012 (program_name): ... to here. Add `static' qualifier.
8013 (main): Recognize `OPTION_VERSION'.
8014
8015 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
8016
8017 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
8018 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
8019
8020 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
8021
8022 Fix help2man generation for mkisofs.
8023
8024 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
8025 (usage): Send output to stdout (rather than stderr).
8026
8027 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
8028
8029 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
8030 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8031 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
8032 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8033 (bin_SCRIPTS): Add `grub-mkfloppy'.
8034 (grub_mkfloppy_SOURCES): New variable.
8035
8036 * util/grub-mkrescue.in: New file.
8037 * util/i386/pc/grub-mkfloppy.in: New file.
8038
8039 * util/i386/coreboot/grub-mkrescue.in: Remove.
8040 * util/i386/pc/grub-mkrescue.in: Remove.
8041
8042 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8043
8044 * include/grub/multiboot.h (struct grub_multiboot_header): Move
8045 from here ...
8046 * include/multiboot.h (struct multiboot_header): ... to here. Update
8047 all users.
8048 * include/grub/multiboot.h (struct grub_multiboot_info): Move
8049 from here ...
8050 * include/multiboot.h (struct multiboot_info): ... to here. Update
8051 all users.
8052 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
8053 from here ...
8054 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
8055 Update all users.
8056 * include/grub/multiboot.h (struct grub_mod_list): Move
8057 from here ...
8058 * include/multiboot.h (struct multiboot_mod_list): ... to here.
8059 Update all users.
8060
8061 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8062
8063 * include/multiboot2.h (multiboot_word): Rename from this ...
8064 (multiboot2_word): ... to this. Update all users.
8065 (multiboot_header): Rename from this ...
8066 (multiboot2_header): ... to this. Update all users.
8067 (multiboot_tag_header): Rename from this ...
8068 (multiboot2_tag_header): ... to this. Update all users.
8069 (multiboot_tag_start): Rename from this ...
8070 (multiboot2_tag_start): ... to this. Update all users.
8071 (multiboot_tag_name): Rename from this ...
8072 (multiboot2_tag_name): ... to this. Update all users.
8073 (multiboot_tag_module): Rename from this ...
8074 (multiboot2_tag_module): ... to this. Update all users.
8075 (multiboot_tag_memory): Rename from this ...
8076 (multiboot2_tag_memory): ... to this. Update all users.
8077 (multiboot_tag_unused): Rename from this ...
8078 (multiboot2_tag_unused): ... to this. Update all users.
8079 (multiboot_tag_end): Rename from this ...
8080 (multiboot2_tag_end): ... to this. Update all users.
8081
8082 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8083
8084 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
8085 this platform we should support Multiboot1 first.
8086
8087 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
8088 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
8089 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
8090
8091 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8092
8093 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
8094 of write calls (converting them to fwrite() if they aren't already).
8095 (get_torito_desc): Likewise.
8096 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
8097
8098 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8099
8100 * util/i386/pc/grub-install.in: Move from here ...
8101 * util/grub-install.in: ... to here. Update all users.
8102
8103 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
8104
8105 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
8106
8107 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8108
8109 Support for El Torito without floppy emulation.
8110
8111 * util/mkisofs/eltorito.c: Include `<errno.h>'.
8112 (init_boot_catalog): Improve error handling.
8113 (get_torito_desc): Don't use floppy emulation unless requested by
8114 user. Patch boot information table when requested via
8115 `-boot-info-table'.
8116 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
8117 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
8118 (use_boot_info_table): New variables.
8119 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
8120 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
8121 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
8122 `--eltorito-emul-floppy'.
8123 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
8124 and `OPTION_ELTORITO_EMUL_FLOPPY'.
8125 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
8126 (use_boot_info_table, get_731): New prototypes.
8127 * util/mkisofs/write.c (get_731): New function.
8128
8129 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
8130
8131 Fix the generation of the man page.
8132
8133 * util/pc/i386/grub-install.in: Source
8134 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
8135
8136 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8137
8138 Large file support for grub-mkisofs.
8139
8140 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
8141 * util/mkisofs/mkisofs.c (next_extent, last_extent)
8142 (session_start): Upgrade type to `uint64_t'. Update all users.
8143 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
8144 (struct directory_entry): Upgrade type of `starting_block' and
8145 `size' to `uint64_t'. Update all users.
8146 (struct deferred): Remove unused structure.
8147 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
8148 Update all users.
8149 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
8150 file is larger than `UINT32_MAX'.
8151 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
8152 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
8153 return value.
8154 (struct deferred_write): Upgrade type of `extent' and `size' to
8155 `uint64_t'. Update all users.
8156 (last_extent_written): Upgrade type to `uint64_t'. Update all
8157 users.
8158 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
8159 Update all users. Upgrade type of `remain' to `int64_t' and
8160 `use' to `size_t'. Use error() to handle fread() errors.
8161 (write_files): Rely on write_one_file() rather than calling
8162 xfwrite() directly.
8163
8164 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
8165
8166 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
8167
8168 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8169
8170 * util/mkisofs/fnmatch.c: Remove.
8171 * util/mkisofs/getopt1.c: Likewise.
8172 * util/mkisofs/getopt.c: Likewise.
8173 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
8174 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
8175 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
8176 `gnulib/getopt1.c' and `gnulib/getopt.c'.
8177 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
8178
8179 * configure.ac: Detect `mingw32msvc' host_os.
8180 Check for lstat(), getuid() and getgid().
8181
8182 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
8183 instances of `u_char' with `uint8_t'.
8184
8185 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
8186 [!HAVE_GETUID] (getuid): New function (stub).
8187 [!HAVE_GETGID] (getgid): Likewise.
8188 [!HAVE_LSTAT] (lstat): Likewise.
8189 [!S_IROTH] (S_IROTH): New macro (dummy).
8190 [!S_IRGRP] (S_IRGRP): Likewise.
8191
8192 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8193
8194 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
8195 conditional expression).
8196
8197 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8198
8199 Import from Gnulib.
8200
8201 * gnulib/fnmatch.c: New file.
8202 * gnulib/fnmatch.h: Likewise.
8203 * gnulib/fnmatch_loop.c: Likewise.
8204 * gnulib/getopt.c: Likewise.
8205 * gnulib/getopt.h: Likewise.
8206 * gnulib/getopt1.c: Likewise.
8207 * gnulib/getopt_int.h: Likewise.
8208 * gnulib/gettext.h: Likewise.
8209
8210 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8211
8212 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
8213 * normal/handler.c (read_handler_list): Likewise.
8214
8215 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8216
8217 Misc cleanup.
8218
8219 * kern/command.c (grub_register_command_prio): Use
8220 grub_zalloc() instead of explicitly zeroing data.
8221 * kern/list.c: Include `<grub/mm.h>'.
8222 (grub_named_list_find): Replace `0' with `NULL'.
8223 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
8224 (fs_module_list): Change type to `grub_named_list_t'. Update all
8225 users.
8226 * normal/dyncmd.c (read_command_list): Add space between function
8227 call and parenthesis.
8228 * normal/handler.c (read_handler_list): Likewise.
8229
8230 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8231
8232 * normal/auth.c (punishment_delay): Moved from here ...
8233 (grub_auth_strcmp): ... to here (inside function).
8234
8235 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8236
8237 * include/grub/list.h (struct grub_named_list): Remove `const'
8238 qualifier from `name'.
8239 (struct grub_prio_list): Likewise.
8240
8241 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8242
8243 * normal/auth.c: Include `<grub/time.h>'.
8244 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
8245
8246 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8247
8248 * normal/auth.c (punishment_delay): New variable.
8249 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
8250 (grub_auth_check_authentication): Punish failed login attempts with
8251 an incremental (2^N) delay.
8252
8253 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8254
8255 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
8256 path with $(srcdir).
8257
8258 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8259
8260 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
8261
8262 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8263
8264 * util/i386/coreboot/grub-mkrescue.in: New file.
8265 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
8266 variables.
8267
8268 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
8269 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
8270 * configure.ac: Add header and function checks to satisfy grub-mkisofs
8271 requirements.
8272 * util/mkisofs/defaults.h: New file.
8273 * util/mkisofs/eltorito.c: Likewise.
8274 * util/mkisofs/exclude.h: Likewise.
8275 * util/mkisofs/fnmatch.c: Likewise.
8276 * util/mkisofs/getopt.c: Likewise.
8277 * util/mkisofs/getopt1.c: Likewise.
8278 * util/mkisofs/hash.c: Likewise.
8279 * util/mkisofs/include/fctldefs.h: Likewise.
8280 * util/mkisofs/include/mconfig.h: Likewise.
8281 * util/mkisofs/include/prototyp.h: Likewise.
8282 * util/mkisofs/include/statdefs.h: Likewise.
8283 * util/mkisofs/iso9660.h: Likewise.
8284 * util/mkisofs/joliet.c: Likewise.
8285 * util/mkisofs/match.c: Likewise.
8286 * util/mkisofs/match.h: Likewise.
8287 * util/mkisofs/mkisofs.c: Likewise.
8288 * util/mkisofs/mkisofs.h: Likewise.
8289 * util/mkisofs/multi.c: Likewise.
8290 * util/mkisofs/name.c: Likewise.
8291 * util/mkisofs/rock.c: Likewise.
8292 * util/mkisofs/tree.c: Likewise.
8293 * util/mkisofs/write.c: Likewise.
8294
8295 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
8298 being insecure.
8299
8300 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8301
8302 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
8303 `grub-mkimage' (and use $0 when possible).
8304
8305 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8306
8307 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
8308 error message for excessively large memory map.
8309
8310 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8311
8312 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
8313 executable bit.
8314
8315 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8316
8317 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
8318 message for coreboot users.
8319
8320 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
8321
8322 Fix build with GNU gold.
8323
8324 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
8325 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
8326 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
8327 link addresses.
8328 * aclocal.m4: Likewise.
8329
8330 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
8331
8332 * configure.ac (AC_PREREQ): Bump to 2.59d.
8333 * INSTALL: Make it more clear when Autoconf and Ruby are
8334 needed and when to run `./autogen.sh'.
8335
8336 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8337
8338 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
8339 OSes.
8340
8341 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8342
8343 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
8344
8345 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8346
8347 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
8348 giving it to GNU Mach.
8349
8350 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8351
8352 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
8353 GNU partition number to get internal GRUB partition number.
8354
8355 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8356
8357 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
8358 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
8359
8360 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
8361
8362 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
8363 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
8364 case.
8365
8366 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
8367
8368 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
8369
8370 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8371
8372 Fix build problem.
8373
8374 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
8375 `-isystem=$(srcdir)/include'.
8376
8377 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8378
8379 * util/i386/pc/grub-install.in: Remove hint that device.map should be
8380 checked (grub-install doesn't currently rely on it).
8381
8382 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
8383
8384 Revert SVN r2660.
8385
8386 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
8387 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8388 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
8389 * conf/i386-ieee1275.rmk: Likewise.
8390 * conf/i386-pc.rmk: Likewise.
8391 * conf/powerpc-ieee1275.rmk: Likewise.
8392 * conf/sparc64-ieee1275.rmk: Likewise.
8393 * conf/x86_64-efi.rmk: Likewise.
8394
8395 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8396
8397 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
8398
8399 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8400
8401 * include/grub/misc.h: Stop checking for APPLE_CC.
8402
8403 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8404
8405 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
8406 doesn't cause an infinite call loop.
8407
8408 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
8409
8410 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
8411 strings.
8412
8413 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8414
8415 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
8416 variable.
8417 * Makefile.in: Likewise.
8418
8419 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8420
8421 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
8422
8423 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8424
8425 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
8426
8427 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8428
8429 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
8430
8431 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8432
8433 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
8434 from here ...
8435 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
8436
8437 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8438
8439 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
8440 in $(MAKEINFO) invocation. This makes it clear in output that
8441 errors are being ignored.
8442
8443 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8444
8445 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
8446 from here ...
8447 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8448 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
8449 * conf/i386-ieee1275.rmk: Likewise.
8450 * conf/i386-pc.rmk: Likewise.
8451 * conf/powerpc-ieee1275.rmk: Likewise.
8452 * conf/sparc64-ieee1275.rmk: Likewise.
8453 * conf/x86_64-efi.rmk: Likewise.
8454
8455 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8456
8457 * util/grub-editenv.c (main): If only a command is given, use
8458 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
8459 (usage): FILENAME is now optional and has a default.
8460
8461 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8462
8463 Improve grub-mkconfig performance when there are several menu
8464 entries on a single filesystem.
8465
8466 * util/grub.d/10_linux.in (linux_entry): Cache the output of
8467 prepare_grub_to_access_device.
8468 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8469 * util/grub.d/30_os-prober.in: Likewise.
8470
8471 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8472
8473 * util/grub.d/10_freebsd.in: Remove.
8474 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
8475 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
8476
8477 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8478
8479 * docs/grub.cfg: Fix example usage of *BSD loaders.
8480
8481 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8482
8483 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
8484 grub_util_error() call.
8485
8486 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8487
8488 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
8489 `reserved_first_sector' member.
8490 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
8491 `reserved_first_sector' to 1.
8492 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
8493 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
8494 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
8495 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
8496 filesystems which begin at first sector.
8497 (options): New option --skip-fs-probe.
8498 (main): Handle --skip-fs-probe and pass it to setup().
8499
8500 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8501
8502 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
8503 (memset): Fix function prototype.
8504
8505 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8506 2009-10-25 Vasily Averin <vvs@parallels.com>
8507
8508 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
8509 `dirent.direntlen == 0'.
8510
8511 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8512
8513 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
8514 `cpio'.
8515 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8516
8517 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8518
8519 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8520 `__trampoline_setup' and `__ucmpdi2'.
8521 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8522 that libgcc provides.
8523
8524 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8525
8526 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8527 * include/grub/sparc64/libgcc.h (memset): Likewise.
8528 * include/grub/misc.h (memset, memcmp): New function prototypes.
8529
8530 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8531
8532 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8533 `cpio'.
8534 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8535
8536 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8537
8538 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8539 * docs/grub.cfg: Compensate for recent change in multiboot
8540 loader (since 2009-08-14 it won't pass filename to payload).
8541 * util/grub.d/10_hurd.in: Likewise.
8542
8543 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
8544
8545 * config.guess: Update to latest version from config git
8546 repository.
8547 * config.sub: Likewise.
8548
8549 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8550
8551 Fix build on sparc64.
8552
8553 * configure.ac: Perform checks for libgcc symbols before
8554 adding `-nostdlib' to LDFLAGS.
8555
8556 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8557
8558 Let user specify OpenBSD root device.
8559
8560 * loader/i386/bsd.c (openbsd_root): New variable.
8561 (openbsd_opts): New option 'root'.
8562 (OPENBSD_ROOT_ARG): New macro.
8563 (grub_openbsd_boot): Use 'openbsd_root'.
8564 (grub_cmd_openbsd): Fill 'openbsd_root'.
8565
8566 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8567
8568 * NEWS: Misc adjustments.
8569
8570 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8573
8574 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8575
8576 * configure.ac: Bump version to 1.97.
8577
8578 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
8579
8580 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8581 -mno-3dnow on x86 architectures. Some toolchains enable these
8582 features by default, but they rely on registers that aren't enabled
8583 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8584
8585 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8586
8587 Make entry text a bit more readable.
8588
8589 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8590
8591 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8592
8593 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8594
8595 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8596
8597 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8598 operations.
8599
8600 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8601
8602 * configure.ac: Add missing dollar.
8603
8604 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8607
8608 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8609 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8610 exports.
8611 * include/grub/sparc64/libgcc.h: Likewise. Use
8612 preprocessor conditionals.
8613
8614 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8615
8616 * conf/common.rmk (grub-dumpbios): Remove rule.
8617 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8618 * util/grub-dumpbios.in: Remove file.
8619
8620 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8621
8622 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8623 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8624
8625 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8626 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8627 users.
8628
8629 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8630 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8631 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8632 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8633 users.
8634
8635 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8636
8637 * term/tparm.c: Switch to GPLv3.
8638
8639 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8640
8641 * include/grub/i386/cpuid.h: Add header protection.
8642
8643 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8644
8645 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8646
8647 * include/grub/i386/cpuid.h: New file.
8648 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8649 (has_longmode): Rename to ...
8650 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8651 `static' attribute.
8652 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8653 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8654 on a CPU that doesn't implement AMD64 instruction set.
8655
8656 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8657
8658 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8659 that version.texi is rebuilt on version number changes.
8660
8661 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8662
8663 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8664 Fixes bug #27602.
8665
8666 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8667
8668 * util/i386/pc/grub-install.in: Source
8669 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8670 that the --grub-probe option will work.
8671 * util/sparc64/ieee1275/grub-install.in: Likewise.
8672
8673 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8674
8675 * configure.ac: Bump version to 1.97~beta4.
8676
8677 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8678
8679 Resync grub-mkdevicemap in x86_64-efi.
8680
8681 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8682 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8683 `util/devicemap.c'.
8684
8685 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8686
8687 * util/grub-editenv.c (create_envblk_file): Write new block with a
8688 .new suffix and then rename it into place, to ensure atomic
8689 creation.
8690
8691 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8692
8693 Do not automatically install headers.
8694
8695 * Makefile.in (include_DATA): Remove. Update all users.
8696
8697 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8698
8699 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8700 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8701
8702 * util/osdetect.lua: Remove.
8703 * script/lua/lauxlib.c: Likewise.
8704 * script/lua/ldebug.c: Likewise.
8705 * script/lua/grub_main.c: Likewise.
8706 * script/lua/lauxlib.h: Likewise.
8707 * script/lua/ldebug.h: Likewise.
8708 * script/lua/ltablib.c: Likewise.
8709 * script/lua/liolib.c: Likewise.
8710 * script/lua/lstrlib.c: Likewise.
8711 * script/lua/lualib.h: Likewise.
8712 * script/lua/ldo.c: Likewise.
8713 * script/lua/ldump.c: Likewise.
8714 * script/lua/ldo.h: Likewise.
8715 * script/lua/loslib.c: Likewise.
8716 * script/lua/lundump.c: Likewise.
8717 * script/lua/grub_lib.c: Likewise.
8718 * script/lua/ldblib.c: Likewise.
8719 * script/lua/lundump.h: Likewise.
8720 * script/lua/lmem.c: Likewise.
8721 * script/lua/grub_lib.h: Likewise.
8722 * script/lua/lmathlib.c: Likewise.
8723 * script/lua/lstate.c: Likewise.
8724 * script/lua/ltm.c: Likewise.
8725 * script/lua/lvm.c: Likewise.
8726 * script/lua/lmem.h: Likewise.
8727 * script/lua/lstate.h: Likewise.
8728 * script/lua/ltm.h: Likewise.
8729 * script/lua/ltable.c: Likewise.
8730 * script/lua/lvm.h: Likewise.
8731 * script/lua/llex.c: Likewise.
8732 * script/lua/lgc.c: Likewise.
8733 * script/lua/grub_lua.h: Likewise.
8734 * script/lua/loadlib.c: Likewise.
8735 * script/lua/lfunc.c: Likewise.
8736 * script/lua/lopcodes.c: Likewise.
8737 * script/lua/lparser.c: Likewise.
8738 * script/lua/ltable.h: Likewise.
8739 * script/lua/llex.h: Likewise.
8740 * script/lua/lgc.h: Likewise.
8741 * script/lua/lfunc.h: Likewise.
8742 * script/lua/lbaselib.c: Likewise.
8743 * script/lua/lopcodes.h: Likewise.
8744 * script/lua/lparser.h: Likewise.
8745 * script/lua/lzio.c: Likewise.
8746 * script/lua/linit.c: Likewise.
8747 * script/lua/lobject.c: Likewise.
8748 * script/lua/llimits.h: Likewise.
8749 * script/lua/lstring.c: Likewise.
8750 * script/lua/lzio.h: Likewise.
8751 * script/lua/lapi.c: Likewise.
8752 * script/lua/lcode.c: Likewise.
8753 * script/lua/lua.h: Likewise.
8754 * script/lua/lobject.h: Likewise.
8755 * script/lua/lstring.h: Likewise.
8756 * script/lua/lapi.h: Likewise.
8757 * script/lua/lcode.h: Likewise.
8758 * script/lua/luaconf.h: Likewise.
8759
8760 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8761
8762 * docs/grub.texi (Command-line and menu entry commands): Document
8763 date and echo commands.
8764
8765 2009-09-24 Pavel Roskin <proski@gnu.org>
8766
8767 * include/grub/kernel.h (struct grub_module_header): Remove
8768 `grub_module_header_types'. Make `type' unsigned. Make `size'
8769 32-bit on all platforms.
8770 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8771 8-bit field. Use grub_host_to_target32() for `size'.
8772 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8773 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8774 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8775
8776 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8777
8778 Fix "lost keypress" bug in at_keyboard.
8779
8780 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8781 Checks for readyness of input buffer (without flushing it).
8782 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8783 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8784
8785 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8786
8787 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8788 size check within GRUB_MACHINE_PCBIOS section.
8789
8790 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8791
8792 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8793 return value.
8794 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8795 KEYBOARD_ISREADY check.
8796 (grub_at_keyboard_checkkey): Rename to ...
8797 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8798 Remove gratuitous cast.
8799
8800 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8801
8802 * configure.ac: Call AC_PROG_MKDIR_P.
8803 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8804 version.texi in $(builddir) rather than $(srcdir).
8805 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8806 to makeinfo's @include search path.
8807
8808 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8809
8810 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8811
8812 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8813
8814 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8815 for `*.dpkg-new'.
8816
8817 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8818
8819 Build info documentation. Some code borrowed from Automake.
8820
8821 * configure.ac: Check for makeinfo.
8822 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8823 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8824 docs/version.texi.
8825 (MOSTLYCLEANFILES): Add vti.tmp.
8826 (docs/version.texi, docs/stamp-vti): Update automatically.
8827 (docs/grub.info): Build info documentation. Use --force and ignore
8828 errors for now.
8829 (all-local): Add $(INFOS).
8830 (install-local): Install info files.
8831 (uninstall): Uninstall info files.
8832 * docs/version.texi: Remove from revision control. This file is
8833 automatically generated on build now.
8834 * gendistlist.sh: Add `*.info'.
8835
8836 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8837
8838 * kern/term.c: Fix indentation.
8839
8840 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8841
8842 * util/hostdisk.c: Fix a comment.
8843
8844 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8845
8846 Fix regression introduced in r2539.
8847
8848 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8849 to 0xA1.
8850
8851 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8852
8853 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8854 os-prober. Under normal operation, it does not print anything to
8855 stderr; if it does, we need to debug it, and throwing away stderr
8856 makes that excessively difficult.
8857
8858 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8859
8860 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8861
8862 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8863
8864 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8865 AC_LANG_PROGRAM from autoconf.
8866 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8867 prototypes (fixes warning).
8868
8869 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8870 `--disable-werror' was used.
8871
8872 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8873
8874 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8875 uninitialized `lastaddr'.
8876
8877 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8880
8881 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8882
8883 * commands/test.c (get_fileinfo): Return immediately if
8884 grub_fs_probe fails.
8885
8886 2009-09-14 José Martínez <xosemp@gmail.com>
8887
8888 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8889
8890 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8891
8892 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8893 output.
8894
8895 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8896
8897 * configure.ac: Remove --enable-grub-pe2elf. Only build
8898 grub-pe2elf when needed by the build system itself.
8899 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8900
8901 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8902
8903 * configure.ac: Bump version to 1.97~beta3.
8904 * docs/version.texi: Likewise.
8905
8906 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8907
8908 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8909 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8910 from here ...
8911 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8912 (grub_linux_setup_video): ... to here (with some adjustments).
8913
8914 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8915
8916 Fix memory corruption issue (spotted by Colin Watson).
8917
8918 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8919 causing returned size to be stored in an incorrect memory location.
8920 Fix use of uninitialized value when storing the returned size.
8921
8922 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8923
8924 Change clean rules to properly remove files
8925
8926 * genmk.rb: add new clean rules
8927 * Makefile.in (clean): add the new targets
8928 (mostlyclean): likewise
8929
8930 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8931
8932 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8933 to grub_uint64_t.
8934 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8935 non-resident files.
8936
8937 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8938
8939 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8940 part of bug #27349.
8941
8942 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8943
8944 * util/grub-mkconfig.in: Make the created config mode 400 and
8945 print a warning if it fails.
8946
8947 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8948
8949 * util/grub.d/40_custom.in: Ask user to type custom entries below
8950 comment, rather than below 'exec tail' line.
8951
8952 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8953
8954 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8955 visible in grub.cfg.
8956
8957 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8958
8959 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8960 file.
8961
8962 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8963
8964 * docs/grub.cfg: Add an example menu entry for memtest86+.
8965
8966 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8967
8968 * config.guess: Update to latest version from config git.
8969 * config.sub: Likewise.
8970
8971 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8972
8973 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8974 unknown-command case. Fixes bug #27320.
8975
8976 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8977
8978 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8979 `help' if the command exists.
8980
8981 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8982
8983 * INSTALL: Require GCC 4.1.3 or later.
8984
8985 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8986
8987 * Makefile.in (RMKFILES): add i386-qemu.rmk
8988 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8989 $(srcdir)/stamp-h.in
8990
8991 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8992
8993 * util/grub-probe.c (probe): Comment out buggy codepath, which
8994 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8995 should be re-enabled after 1.97.
8996
8997 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8998
8999 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
9000 find searches for.
9001
9002 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
9003
9004 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
9005 unnecessary calls to grub_error.
9006
9007 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
9008
9009 * NEWS: Mention `keystatus' and Unicode fonts.
9010
9011 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
9012
9013 * configure.ac: Bump version to 1.97~beta2.
9014 * docs/version.texi: Likewise.
9015
9016 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
9017
9018 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
9019 containing unwind information in some cases where it previously did
9020 not. Use -fno-dwarf2-cfi-asm if available to restore the old
9021 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
9022 discussion.
9023
9024 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
9025
9026 Embedding loadenv module into grub-emu
9027
9028 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
9029 commands/loadenv.c
9030 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
9031 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
9032 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
9033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
9034 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
9035 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
9036
9037 2009-09-03 Magnus Granberg <zorry@ume.nu>
9038
9039 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
9040 include -fPIE in the default specs.
9041 * configure.ac: Check if pie_possible is yes and add -fno-PIE
9042 to TARGET_CFLAGS.
9043
9044 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
9045
9046 * INSTALL: Note that GNU Bison 2.3 or later is required.
9047
9048 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
9049
9050 * kern/i386/pc/startup.S: Fix typo.
9051
9052 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9053
9054 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
9055 according to GCS.
9056
9057 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9058
9059 * docs/grub.texi (Naming convention): Describe one-based partition
9060 numbering.
9061 (Device syntax): Likewise.
9062 (File name syntax): Likewise.
9063 (Block list syntax): Likewise.
9064 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
9065 menu.lst.
9066 (File name syntax): Likewise.
9067 (Command-line and menu entry commands): Document acpi, blocklist,
9068 crc, export, insmod, keystatus, ls, set, and unset commands.
9069
9070 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9071
9072 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
9073 to avoid implying that only one of --shift, --ctrl, or --alt may be
9074 used.
9075
9076 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9077
9078 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
9079 rather than comparing against S_IFREG, which will almost never work.
9080
9081 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9082
9083 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
9084 (write_blocklists): Likewise.
9085
9086 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
9087
9088 * script/lua/grub_lua.h (fputs): Supply a format string as the first
9089 argument to grub_printf.
9090
9091 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
9092
9093 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
9094 non GNU test.
9095
9096 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 * kern/file.c (grub_file_read): Spelling fix
9099
9100 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
9103 loading of headers in some cases.
9104
9105 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
9106
9107 * configure.ac: Bump version to 1.97~beta1.
9108 * docs/version.texi: Likewise.
9109
9110 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 * include/grub/i386/xnu.h: Add license header.
9113 include grub/err.h explicitly.
9114
9115 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9116
9117 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
9118 to `ufs' in the vfs.root.mountfrom kernel parameter.
9119
9120 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9121
9122 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
9123
9124 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
9125 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
9126
9127 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
9128 `ARRAY_SIZE' macro.
9129
9130 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9131
9132 * kern/file.c (grub_file_read): Check offset.
9133 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
9134 * fs/jfs.c (grub_jfs_read_file): Likewise.
9135 * fs/ntfs.c (grub_ntfs_read): Likewise.
9136 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
9137 * fs/minix.c (grub_minix_read_file): Correct offset check.
9138 * fs/ufs.c (grub_ufs_read_file): Likewise.
9139
9140 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9141
9142 * term/i386/pc/console.c (bios_data_area): Cast
9143 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
9144
9145 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 1-bit optimised blitters.
9148
9149 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
9150 prototype.
9151 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9152 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9153 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9154 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9155 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9156 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9157 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
9158 function.
9159 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9160 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9161 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9162 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9163 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9164 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9165 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
9166 when possible.
9167 * video/video.c (grub_video_get_blit_format): Return
9168 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
9169
9170 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9171
9172 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
9173 the first argument to grub_printf.
9174
9175 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9176 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
9177
9178 Add `getkeystatus' terminal method. Add a new `keystatus' command
9179 to query it.
9180
9181 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
9182 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
9183 modifier key bitmasks.
9184 (struct grub_term_input): Add `getkeystatus' member.
9185 (grub_getkeystatus): Add prototype.
9186 * kern/term.c (grub_getkeystatus): New function.
9187
9188 * include/grub/i386/pc/memory.h
9189 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
9190 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
9191 Data Area layout.
9192 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
9193 (grub_console_term_input): Set `getkeystatus' member.
9194 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
9195 constants.
9196 (grub_usb_keyboard_getreport): Likewise.
9197 (grub_usb_keyboard_checkkey): Likewise.
9198 (grub_usb_keyboard_getkeystatus): New function.
9199 (grub_usb_keyboard_term): Set `getkeystatus' member.
9200
9201 * commands/keystatus.c: New file.
9202 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
9203 (keystatus_mod_SOURCES): New variable.
9204 (keystatus_mod_CFLAGS): Likewise.
9205 (keystatus_mod_LDFLAGS): Likewise.
9206 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
9207 commands/keystatus.c.
9208 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9209 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9210 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9212 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9213 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9214
9215 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 Split befs.mod and afs.mod into *_be.mod and *.mod
9218
9219 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
9220 (grub_fstest_SOURCES): Likewise.
9221 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
9222 (afs_be_mod_SOURCES): New variable.
9223 (afs_be_mod_CFLAGS): Likewise.
9224 (afs_be_mod_LDFLAGS): Likewise.
9225 (befs_be_mod_SOURCES): Likewise.
9226 (befs_be_mod_CFLAGS): Likewise.
9227 (befs_be_mod_LDFLAGS): Likewise.
9228 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
9229 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9230 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9231 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9232 (grub_emu_SOURCES): Likewise.
9233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9234 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9235 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9236 * fs/afs_be.c: New file.
9237 * fs/befs_be.c: New file.
9238 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
9239 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
9240 (U16): Replaced with ...
9241 (grub_afs_to_cpu16): ...this. All users updated.
9242 (U32): Replaced with ...
9243 (grub_afs_to_cpu32): ...this. All users updated.
9244 (U64): Replaced with ...
9245 (grub_afs_to_cpu64): ...this. All users updated.
9246 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
9247 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
9248 (grub_afs_validate_sblock): Check only one endianness.
9249 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9250 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9251 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9252 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9253 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9254 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9255 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9256 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9257
9258 2009-08-26 Bean <bean123ch@gmail.com>
9259
9260 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
9261 64-bit number.
9262 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9263 (grub_xfs_inode_block): Change return type to grub_uint64_t.
9264 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
9265
9266 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 NetBSD memory map support.
9269
9270 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
9271 (grub_netbsd_btinfo_mmap_header): New structure.
9272 (grub_netbsd_btinfo_mmap_entry): Likewise.
9273 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
9274
9275 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 Enable bsd.mod on coreboot.
9278
9279 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
9280 (bsd_mod_SOURCES): New variable.
9281 (bsd_mod_CFLAGS): Likewise.
9282 (bsd_mod_LDFLAGS): Likewise.
9283 (bsd_mod_ASFLAGS): Likewise.
9284 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
9285 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
9286
9287 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9288
9289 Cleanup NetBSD root support.
9290
9291 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
9292 grub_bsd_get_device.
9293 Fix typo.
9294
9295 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
9296
9297 * util/grub.d/00_header.in: Move check for the video backend of
9298 gfxterm from here ...
9299 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
9300 a suitable video backend.
9301
9302 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 Fix breakage in grub-setup.
9305
9306 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
9307 "msdos_partition_map".
9308
9309 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 Fix breakage in normal/auth.c.
9312
9313 * normal/auth.c (grub_iswordseparator): New function.
9314
9315 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 Authentication support.
9318
9319 * commands/password.c: New file.
9320 * conf/common.rmk (pkglib_MODULES): Add password.mod.
9321 (password_mod_SOURCES): New variable.
9322 (password_mod_CFLAGS): Likewise.
9323 (password_mod_LDFLAGS): Likewise.
9324 (normal_mod_SOURCES): Add normal/auth.c.
9325 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
9326 normal/auth.c.
9327 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9328 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9329 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9331 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9332 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9333 * include/grub/auth.h: New file.
9334 * include/grub/err.h (grub_err_t): New enum value
9335 GRUB_ERR_ACCESS_DENIED.
9336 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
9337 'users'.
9338 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
9339 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
9340 users updated.
9341 * normal/auth.c: New file.
9342 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
9343 (grub_cmdline_run): Don't allow to go to command line without
9344 authentication.
9345 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
9346 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
9347 menuentry without superuser rights.
9348 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
9349 user isn't a superuser.
9350
9351 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9352
9353 Save space by inlining misc.c functions.
9354
9355 * kern/misc.c (grub_iswordseparator): Made static.
9356 * kern/misc.c (grub_strcat): Moved from here ...
9357 * include/grub/misc.h (grub_strcat): ... here. Inlined.
9358 * kern/misc.c (grub_strncat): Moved from here ...
9359 * include/grub/misc.h (grub_strncat): ... here. Inlined.
9360 * kern/misc.c (grub_strcasecmp): Moved from here ...
9361 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
9362 * kern/misc.c (grub_strncasecmp): Moved from here ...
9363 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
9364 * kern/misc.c (grub_isalpha): Moved from here ...
9365 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
9366 * kern/misc.c (grub_isdigit): Moved from here ...
9367 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
9368 * kern/misc.c (grub_isgraph): Moved from here ...
9369 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
9370 * kern/misc.c (grub_tolower): Moved from here ...
9371 * include/grub/misc.h (grub_tolower): ... here. Inlined.
9372
9373 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 * script/sh/function.c (grub_script_function_find): Cut error message
9376 not to flood terminal.
9377 * script/sh/lexer.c (grub_script_yylex): Remove command line length
9378 limit.
9379 * script/sh/script.c (grub_script_arg_add): Duplicate string.
9380
9381 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
9382
9383 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
9384 `report' grub_uint8_t *.
9385 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
9386 Use a 50-millisecond timeout rather than just repeating
9387 grub_usb_keyboard_getreport 50 times.
9388 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
9389
9390 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9391
9392 Rename *_partition_map to part_*
9393
9394 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
9395 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
9396 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
9397 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
9398 All users updated.
9399 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
9400 All users updated.
9401 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
9402 * util/grub-probe.c (probe_partmap): Don't transform partition name
9403 to get module name.
9404
9405 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9406
9407 Fix OpenBSD and NetBSD support.
9408
9409 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
9410 memory address conflict.
9411 (OPENBSD_MMAP_ACPI): New definition.
9412 (OPENBSD_MMAP_NVS): Likewise.
9413 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
9414 and OPENBSD_MMAP_NVS.
9415 Add memory map terminator
9416 Explicit cast when calling grub_unix_real_boot.
9417 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
9418
9419 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 Let user specify NetBSD root device.
9422
9423 * loader/i386/bsd.c (netbsd_root): New variable.
9424 (netbsd_opts): New option 'root'.
9425 (NETBSD_ROOT_ARG): New macro.
9426 (grub_netbsd_boot): Use 'netbsd_root'.
9427 (grub_bsd_unload): Free 'netbsd_root'.
9428 (grub_cmd_netbsd): Fill 'netbsd_root'.
9429
9430 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 Support for 64-bit NetBSD.
9433
9434 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
9435 point when booting non-FreeBSD.
9436
9437 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 Support --no-smp and --no-acpi for NetBSD.
9440
9441 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
9442 (NETBSD_AB_NOACPI): Likewise.
9443 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
9444 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
9445
9446 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
9449 errors.
9450 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
9451 errors. Call grub_error when needed.
9452
9453 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * commands/search.c (search_fs): Try searching without autoload first.
9456 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
9457 filesystem module explicitly for faster booting.
9458
9459 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9460
9461 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
9462
9463 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9464
9465 * util/grub.d/30_os-prober.in: Disable os-prober if
9466 `GRUB_DISABLE_OS_PROBER' was set to true.
9467
9468 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
9469
9470 * partmap/pc.c: Rename to ...
9471 * partmap/msdos.c: ... this. Update all users.
9472 (grub_pc_partition_map): Rename to ...
9473 (grub_msdos_partition_map): ... this. Update all users.
9474
9475 * parttool/pcpart.c: Rename to ...
9476 * parttool/msdospart.c: ... this. Update all users.
9477
9478 * include/grub/pc_partition.h: Rename to ...
9479 * include/grub/msdos_partition.h: ... this. Update all users.
9480 (grub_pc_partition_bsd_entry): Rename to ...
9481 (grub_msdos_partition_bsd_entry): ... this. Update all users.
9482 (grub_pc_partition_disk_label): Rename to ...
9483 (grub_msdos_partition_disk_label): ... this. Update all users.
9484 (grub_pc_partition_entry): Rename to ...
9485 (grub_msdos_partition_entry): ... this. Update all users.
9486 (grub_pc_partition_mbr): Rename to ...
9487 (grub_msdos_partition_mbr): ... this. Update all users.
9488 (grub_pc_partition): Rename to ...
9489 (grub_msdos_partition): ... this. Update all users.
9490 (grub_pc_partition_is_empty): Rename to ...
9491 (grub_msdos_partition_is_empty): ... this. Update all users.
9492 (grub_pc_partition_is_extended): Rename to ...
9493 (grub_msdos_partition_is_extended): ... this. Update all users.
9494 (grub_pc_partition_is_bsd): Rename to ...
9495 (grub_msdos_partition_is_bsd): ... this. Update all users.
9496
9497 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
9498 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
9499 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
9500 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
9501 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
9502 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
9503 (gpt_mod_LDFLAGS): Rename to ...
9504 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
9505 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
9506 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
9507 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
9508 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
9509 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
9510 (part_gpt_mod_LDFLAGS): ... this.
9511 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
9512 `pcpart.mod' to `msdospart.mod'.
9513 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
9514 to ...
9515 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9516 (msdospart_mod_LDFLAGS): ... this.
9517
9518 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9519
9520 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9521 (openbsd_opts): Likewise.
9522 (netbsd_opts): Likewise.
9523 (freebsd_flags): Added 0 terminator.
9524 (openbsd_flags): Likewise.
9525 (netbsd_flags): Likewise.
9526 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9527 (grub_cmd_freebsd): Transformed into extended command.
9528 (grub_cmd_openbsd): Likewise.
9529 (grub_cmd_netbsd): Likewise.
9530 (cmd_freebsd): Changed type to grub_extcmd_t.
9531 (cmd_openbsd): Likewise.
9532 (cmd_netbsd): Likewise.
9533 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9534 grub_cmd_openbsd as extended commands.
9535 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9536 cmd_netbsd and cmd_openbsd
9537
9538 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9541
9542 2009-08-21 Pavel Roskin <proski@gnu.org>
9543
9544 * Makefile.in (install-local): When checking if a file is in the
9545 build directory, use "test -e" to detect symlinks.
9546
9547 * Makefile.in (install-local): Remove all files in
9548 $(DESTDIR)$(pkglibdir) before installing new files there.
9549
9550 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9551
9552 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9553 grub-mkelfimage.
9554
9555 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9556
9557 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9558 explicitly specified by the user.
9559
9560 2009-08-18 Pavel Roskin <proski@gnu.org>
9561
9562 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9563 grub_uint8_t pointer for data.
9564 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9565 Likewise.
9566 * video/fb/fbutil.c: Remove unnecessary casts.
9567
9568 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9569
9570 VBE cleanup.
9571
9572 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9573 (grub_vbe_set_video_mode): Save active mode info
9574 only after setting the mode.
9575 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9576 second argument.
9577
9578 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9579
9580 Rename variables for clarity.
9581
9582 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9583 (active_vbe_mode_info): ... this. All users updated.
9584 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9585 All users updated.
9586 (initial_mode): Rename to ...
9587 (initial_vbe_mode): ... this. All users updated.
9588 (mode_in_use): Rename to ..
9589 (vbe_mode_in_use): ... this. All users updated.
9590 (mode_list): Rename to ..
9591 (vbe_mode_list): ... this. All users updated.
9592 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9593 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9594 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9595 'mode_list_size' to 'vbe_mode_list_size'.
9596 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9597 'best_mode_info' to 'best_vbe_mode_info' and
9598 'best_mode' to 'best_vbe_mode'
9599
9600 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9601
9602 Remove duplicate grub_video_fb_get_video_ptr.
9603
9604 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9605 (grub_video_fb_get_video_ptr): ... this.
9606 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9607 * video/fb/fbutil.c: Add comment about addressing.
9608 (get_data_ptr): Rename to ...
9609 (grub_video_fb_get_video_ptr): ... this. All users updated.
9610 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9611
9612 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9613
9614 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9615 grub_dprintf() that was just added.
9616
9617 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9618
9619 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9620 (DEFAULT_VIDEO_MODE): Remove macros.
9621 (grub_linux_boot): Remove assumption that Linux has FB support,
9622 and use "text" as default video mode.
9623
9624 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9627 grub_dprintf.
9628 * fs/fat.c (grub_fat_read_data): Likewise.
9629
9630 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9633 payload.
9634 (grub_module): Likewise.
9635
9636 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9639 mbi->cmdline but free playground.
9640
9641 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9642
9643 Handle group offset on UFS1.
9644
9645 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9646 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9647
9648 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 Split ufs.mod into ufs1.mod and ufs2.mod.
9651
9652 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9653 (grub_fstest_SOURCES): Likewise.
9654 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9655 (ufs_mod_SOURCES): Remove.
9656 (ufs_mod_CFLAGS): Likewise.
9657 (ufs_mod_LDFLAGS): Likewise.
9658 (ufs1_mod_SOURCES): New variable.
9659 (ufs1_mod_CFLAGS): Likewise.
9660 (ufs1_mod_LDFLAGS): Likewise.
9661 (ufs2_mod_SOURCES): New variable.
9662 (ufs2_mod_CFLAGS): Likewise.
9663 (ufs2_mod_LDFLAGS): Likewise.
9664 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9665 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9666 Likewise.
9667 (grub_emu_SOURCES): Likewise.
9668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9669 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9670 (grub_setup_SOURCES): Likewise.
9671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9672 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9673 (grub_setup_SOURCES): Likewise.
9674 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9675 Likewise.
9676 * fs/ufs2.c: New file.
9677 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9678
9679 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9680
9681 Framebuffer split.
9682
9683 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9684 subsystem at the end.
9685 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9686 (video_fb_mod_SOURCES): New variable.
9687 (video_fb_mod_CFLAGS): Likewise.
9688 (video_fb_mod_LDFLAGS): Likewise.
9689 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9690 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9691 * video/i386/pc/vbeblit.c: Moved from here ...
9692 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9693 * video/i386/pc/vbefill.c: Moved from here ...
9694 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9695 * video/i386/pc/vbeutil.c: Moved from here ...
9696 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9697 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9698 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9699 * include/grub/i386/pc/vbefill.h: Moved from here ...
9700 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9701 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9702 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9703 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9704 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9705 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9706 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9707 (grub_video_adapter): Added 'get_info_and_fini'.
9708 (grub_video_get_info_and_fini): New prototype.
9709 (grub_video_set_mode): make modestring const char *.
9710 * loader/i386/linux.c (grub_linux_setup_video): Use
9711 grub_video_get_info_and_fini.
9712 (grub_linux_boot): Move modesetting just before booting.
9713 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9714 grub_video_get_info_and_fini.
9715 * video/i386/pc/vbe.c: Moved framebuffer part ...
9716 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9717 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9718 grub_video_fbstd_colors and grub_video_fb_set_palette.
9719 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9720 grub_video_fb_init.
9721 (grub_video_vbe_fini): Use grub_video_fb_fini.
9722 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9723 render_target and use grub_video_fb_set_active_render_target and
9724 grub_video_fb_set_palette.
9725 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9726 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9727 (grub_video_vbe_adapter): Use framebuffer.
9728 * video/video.c (grub_video_get_info_and_fini): New function.
9729 (grub_video_set_mode): Make modestring const char *.
9730 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9731 values are already initialised.
9732
9733 2009-08-14 Pavel Roskin <proski@gnu.org>
9734
9735 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9736 ABS and APPLE_CC.
9737 * boot/i386/pc/diskboot.S: Likewise.
9738 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9739 sectors allow compilation on MacOSX.
9740 * conf/i386-pc.rmk: Enable unconditional compilation of
9741 lnxboot.img.
9742
9743 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9744
9745 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9746 * util/grub.d/00_header.in: Enter interruptible sleep if
9747 GRUB_HIDDEN_TIMEOUT is set.
9748
9749 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9750
9751 * include/grub/symbol.h: Add the LOCAL macro.
9752 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9753 starting with "L_".
9754
9755 2009-08-13 Pavel Roskin <proski@gnu.org>
9756
9757 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9758 any modern compilers we support.
9759
9760 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9761 Use local labels starting with "L_" so that Apple assembler
9762 knows they are local.
9763
9764 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9765
9766 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9767 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9768 (bsd_kernel_types): ... this enum.
9769
9770 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9771 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9772 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9773
9774 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9775 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9776 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9777 messages.
9778
9779 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9780
9781 * util/grub-dumpdevtree: Moved from here ...
9782 * util/i386/efi/grub-dumpdevtree: ... to here.
9783 (hexify): New function. Converts a string to its hex version.
9784 Generate hex versions of "efi" and "device-properties" by calling
9785 hexify() on the ASCII strings rather than by hardcoding numbers.
9786
9787 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9788
9789 * fs/jfs.c: Update copyright year.
9790
9791 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9792
9793 * util/grub.d/00_header.in: Fix a comment.
9794 * util/grub.d/10_linux.in: Likewise.
9795 * util/grub.d/10_windows.in: Likewise.
9796 * util/grub.d/10_hurd.in: Likewise.
9797
9798 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9799
9800 * util/grub-mkconfig.in: Allow the user to specify the used font
9801 with GRUB_FONT.
9802
9803 2009-08-08 Pavel Roskin <proski@gnu.org>
9804
9805 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9806 available, xfs.mod needs it now.
9807
9808 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9809 the "g" modifier in sed when the intention is to strip something
9810 once. This fixes comparison of kernels with multiple dashes.
9811
9812 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9813 on it. Add missing space before closing bracket. Fix
9814 misleading formatting.
9815
9816 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9817
9818 * docs/grub.texi: Major overhaul. Remove all sections that are
9819 specific to GRUB Legacy, or mostly composed of Legacy-specific
9820 information.
9821
9822 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9823
9824 * docs/version.texi: New file. Provides version information for
9825 grub.texi.
9826
9827 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9828
9829 * docs/grub.texi: Update CVS information to SVN.
9830 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9831
9832 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9833
9834 * util/grub-mkconfig.in: Remove a wrong `fi'.
9835
9836 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9837
9838 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9839 (grub_jfs_uuid): New function.
9840 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9841
9842 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9843
9844 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9845 of it to ...
9846 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9847 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9848
9849 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9850
9851 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9852 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9853 Update all users.
9854
9855 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9856 not just "vmlinu[zx]".
9857 Moved from here ...
9858 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9859 all users.
9860
9861 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9862 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9863 all users.
9864
9865 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9866
9867 * util/grub.d/10_freebsd.in: Use an absolute device path for
9868 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9869
9870 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9871
9872 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9873 handling of multiple abstraction modules.
9874
9875 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9876
9877 Fix a bug resulting in black screen when loading Linux using a
9878 packed video mode.
9879
9880 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9881 function.
9882
9883 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9884 (grub_vbe_bios_getset_dac_palette_width): New function.
9885 (grub_vbe_bios_get_dac_palette_width)
9886 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9887 grub_vbe_bios_getset_dac_palette_width()).
9888
9889 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9890 check for return status.
9891 (grub_vbe_get_video_mode_info): When getting information for a packed
9892 mode (<= 8 bpp), obtain DAC palette width using
9893 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9894 {red,green,blue}_mark_size.
9895
9896 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9897
9898 * commands/search.c (options): Fix help output to match actual code.
9899
9900 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9903 of homegrown code.
9904
9905 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9908 on XFS or ReiserFS.
9909
9910 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 Support Apple partition map with sector size different from 512 bytes.
9913
9914 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9915 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9916 and 'apart.partmap_size'.
9917
9918 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9919 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9920
9921 Fix cpuid command.
9922
9923 * commands/i386/cpuid.c (options): New variable.
9924 (grub_cmd_cpuid): Return real error.
9925 (GRUB_MOD_INIT(cpuid)): Declare options.
9926
9927 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9928
9929 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9930 valid.
9931
9932 2009-07-31 Bean <bean123ch@gmail.com>
9933
9934 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9935 log2_inode.
9936 (grub_fshelp_node): Move inode field to the end.
9937 (grub_xfs_data): Remove inode field.
9938 (grub_xfs_inode_block): Calculate inode size using sblock.
9939 (grub_xfs_inode_offset): Likewise.
9940 (grub_xfs_read_inode): Calculate inode size using sblock.
9941 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9942 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9943 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9944 to match inode size.
9945 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9946 not accessible when data is null.
9947 (grub_xfs_open): Likewise.
9948
9949 2009-07-31 Bean <bean123ch@gmail.com>
9950
9951 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9952 Don't change pv->disk if it's already set.
9953
9954 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9955 (grub_raid_register): ... here.
9956 (grub_raid_rescan): Removed.
9957
9958 * include/grub/raid.h (grub_raid_rescan): Removed.
9959
9960 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9961 (fstest): Replace grub_raid_rescan with module fini function followed
9962 by init function.
9963
9964 * util/grub-probe.c: Add include file <grub/raid.h>.
9965 (probe_raid_level): New function.
9966 (probe): Detect abstraction by walking the disk device, support two
9967 level of abstraction (LVM on RAID) when detecting partition map.
9968
9969 2009-07-31 Pavel Roskin <proski@gnu.org>
9970
9971 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9972 to grub_zalloc(), it was erroneous.
9973 Reported by Bean <bean123ch@gmail.com>
9974
9975 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9976
9977 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9978 embedding zone, not only the first one.
9979
9980 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9981
9982 * term/gfxterm.c (clear_char): New function.
9983 (grub_virtual_screen_setup): Use clear_char.
9984 (scroll_up): Likewise.
9985 (grub_virtual_screen_cls): Likewise.
9986
9987 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9988
9989 * util/deviceiter.c (get_acceleraid_disk_name): New static
9990 function.
9991 (grub_util_iterate_devices): Handle Accelraid devices.
9992 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9993
9994 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9995
9996 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9997 separator for the suggested gfxpayload string (';' collides with the
9998 parser and needs escaping).
9999
10000 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
10001
10002 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
10003 Clear direction flag before jumping to OS.
10004 (grub_multiboot2_real_boot): Likewise.
10005
10006 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
10007
10008 * util/i386/pc/grub-install: Fix parsing of --disk-module
10009 option.
10010
10011 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
10012
10013 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
10014 when embedding.
10015
10016 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
10017
10018 * util/grub-mkconfig.in (package_version): New variable.
10019 Use it do display the version.
10020
10021 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
10022
10023 * kern/file.c (grub_file_open): Revert to previous check with
10024 grub_errno.
10025
10026 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10027
10028 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
10029 from help line. It's out of sync with code.
10030
10031 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
10034 entries on failed boot.
10035
10036 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
10037
10038 * kern/file.c (grub_file_open): Fix an error check.
10039
10040 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
10041
10042 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
10043 partition map couldn't be identified.
10044
10045 2009-07-23 Pavel Roskin <proski@gnu.org>
10046
10047 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
10048 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
10049 case of little endian words becomes just an optimization.
10050 Respect const modifier.
10051 (md5_final): Use code that doesn't depend on endianness.
10052
10053 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
10054 to avoid loss of upper bits if align is unsigned and shorter
10055 than addr.
10056
10057 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 UUID support for UFS
10060
10061 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
10062 (grub_ufs_uuid): New function.
10063 (grub_ufs_fs): add .uuid
10064
10065 2009-07-21 Pavel Roskin <proski@gnu.org>
10066
10067 * kern/dl.c (grub_dl_check_header): Make static.
10068
10069 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
10070
10071 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
10072 add drivemap for Vista. It breaks Windows 7.
10073
10074 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
10077 128 bytes
10078
10079 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10080
10081 Add BFS support
10082
10083 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
10084 (grub_fstest_SOURCES): Likewise.
10085 (pkglib_MODULES): Add befs.mod.
10086 (befs_mod_SOURCES): New variable.
10087 (befs_mod_CFLAGS): Likewise.
10088 (befs_mod_LDFLAGS): Likewise.
10089 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10090 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10091 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10092 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10093 (grub_setup_SOURCES): Likewise.
10094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10095 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10096 (grub_setup_SOURCES): Likewise.
10097 * fs/befs.c: New file.
10098 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
10099 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
10100 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
10101 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
10102 (B_KEY_INDEX_ALIGN): New declaration.
10103 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
10104 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
10105 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
10106 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
10107 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
10108 (grub_afs_mount) [MODE_BFS]: Likewise.
10109 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
10110 (grub_afs_fs): Use GRUB_AFS_FSNAME
10111 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
10112 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
10113 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
10114 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
10115
10116 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
10117
10118 * util/getroot.c (find_root_device): Add support for MacOSX.
10119 * util/hostdisk.c: Likewise.
10120
10121 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * font/font.c (find_glyph): Check whether a font is present to avoid
10124 segmentation fault.
10125
10126 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
10127
10128 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
10129
10130 2009-07-20 Pavel Roskin <proski@gnu.org>
10131
10132 * configure.ac: Trim excessively wordy excuses.
10133
10134 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 Add symlink, mtime and label support to AtheFS.
10137
10138 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
10139 (grub_afs_iterate_dir): Handle symlinks.
10140 (grub_afs_open): Use grub_afs_read_symlink.
10141 (grub_afs_dir): Likewise.
10142 Pass mtime.
10143 (grub_afs_label): New function.
10144 (grub_afs_fs): Add grub_afs_label.
10145 (grub_afs_read_symlink): New function.
10146
10147 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 Fix AtheFS support.
10150
10151 * fs/afs.c: Fix comments style.
10152 (grub_afs_blockrun): Declare as packed.
10153 (grub_afs_datastream): Likewise.
10154 (grub_afs_bnode): Likewise.
10155 (grub_afs_btree): Likewise.
10156 (grub_afs_sblock): Likewise.
10157 Declare `name' as char.
10158 (grub_afs_inode): Declare as packed.
10159 Change void *vnode to grub_uint32_t unused.
10160 (grub_afs_iterate_dir): Check that key_size is positive.
10161 (grub_afs_mount): Don't read superblock twice.
10162 (grub_afs_dir): Don't free node in case of error,
10163 grub_fshelp_find_file already handles this.
10164 (grub_afs_open): Likewise.
10165
10166 2009-07-19 Pavel Roskin <proski@gnu.org>
10167
10168 * Makefile.in: Remove LIBLZO and enable_lzo.
10169 * conf/i386-pc.rmk: Remove lzo support.
10170 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
10171 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
10172 support.
10173 * kern/i386/pc/lzo1x.S: Remove.
10174 * kern/i386/pc/startup.S: Remove lzo support.
10175 * util/i386/pc/grub-mkimage.c: Likewise.
10176
10177 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
10180 * fs/xfs.c (grub_xfs_dir): Likewise.
10181 * fs/afs.c (grub_afs_dir): Likewise.
10182 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10183 (grub_iso9660_open): Likewise.
10184 * fs/jfs.c (grub_jfs_open): Likewise.
10185 * fs/ext2.c (grub_ext2_dir): Likewise.
10186 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
10187 * script/sh/lexer.c (grub_script_yylex): Likewise.
10188
10189 2009-07-16 Pavel Roskin <proski@gnu.org>
10190
10191 * configure.ac: Never add "-c" to CFLAGS.
10192
10193 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
10194
10195 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
10196 grub_cv_cc_efiemu should be used.
10197
10198 * configure.ac: Typo fixes.
10199
10200 * kern/mm.c (grub_zalloc): New function.
10201 (grub_debug_zalloc): Likewise.
10202 * include/grub/mm.h: Declare grub_zalloc() and
10203 grub_debug_zalloc().
10204 * util/misc.c (grub_zalloc): New function.
10205 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
10206 instead of grub_malloc(), remove unneeded initializations.
10207 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
10208 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
10209 * commands/parttool.c (grub_cmd_parttool): Likewise.
10210 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10211 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
10212 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
10213 * disk/usbms.c (grub_usbms_finddevs): Likewise.
10214 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
10215 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
10216 (grub_cmd_efiemu_pnvram): Likewise.
10217 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
10218 * fs/iso9660.c (grub_iso9660_mount): Likewise.
10219 (grub_iso9660_iterate_dir): Likewise.
10220 * fs/jfs.c (grub_jfs_opendir): Likewise.
10221 * fs/ntfs.c (list_file): Likewise.
10222 (grub_ntfs_mount): Likewise.
10223 * kern/disk.c (grub_disk_open): Likewise.
10224 * kern/dl.c (grub_dl_load_core): Likewise.
10225 * kern/elf.c (grub_elf_file): Likewise.
10226 * kern/env.c (grub_env_context_open): Likewise.
10227 (grub_env_set): Likewise.
10228 (grub_env_set_data_slot): Likewise.
10229 * kern/file.c (grub_file_open): Likewise.
10230 * kern/fs.c (grub_fs_blocklist_open): Likewise.
10231 * loader/i386/multiboot.c (grub_module): Likewise.
10232 * loader/xnu.c (grub_xnu_create_key): Likewise.
10233 (grub_xnu_create_value): Likewise.
10234 * normal/main.c (grub_normal_add_menu_entry): Likewise.
10235 (read_config_file): Likewise.
10236 * normal/menu_entry.c (make_screen): Likewise.
10237 * partmap/sun.c (sun_partition_map_iterate): Likewise.
10238 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
10239 * script/sh/script.c (grub_script_parse): Likewise.
10240 * video/bitmap.c (grub_video_bitmap_create): Likewise.
10241 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10242 * video/readers/png.c (grub_png_output_byte): Likewise.
10243 (grub_video_reader_png): Likewise.
10244
10245 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 Enable all targets that can be built by default
10248
10249 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
10250 grub-mkfont and grub-fstest if they can be built
10251
10252 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 Fix hang and segmentation fault in grub-emu-usb
10255
10256 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
10257 * util/usb.c (grub_libusb_devices): likewise
10258 (grub_libusb_init): rename to ...
10259 (GRUB_MOD_INIT (libusb)):...this
10260 (grub_libusb_fini): rename to ..
10261 (GRUB_MOD_FINI (libusb)):...this
10262 * disk/usbms.c (grub_usbms_transfer): fix retry logic
10263 * include/grub/disk.h (grub_raid_init): removed, it's useless
10264 (grub_raid_fini): likewise
10265 (grub_lvm_init): likewise
10266 (grub_lvm_fini): likewise
10267 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
10268 by grub_init_all
10269
10270 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10271
10272 Fix libusb
10273
10274 * Makefile.in (LIBUSB): new macro
10275 * genmk.rb (Utility/print_tail): new method
10276 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
10277 (top level): call util.print_tail at the end.
10278
10279 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10280
10281 Make FreeBSD accept zpool.cache
10282
10283 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
10284 type is /boot/zfs/zpool.cache
10285
10286 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10287
10288 Fix 64-bit efiemu
10289
10290 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
10291 correct wrong typedef
10292 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
10293
10294 2009-07-15 Pavel Roskin <proski@gnu.org>
10295
10296 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
10297 * kern/disk.c (struct grub_disk_cache): Likewise.
10298
10299 * commands/probe.c (options): Typo fix.
10300
10301 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
10302 Increase to 0x5a to accommodate FAT32. Adjust other offsets
10303 accordingly.
10304 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
10305
10306 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
10307 the end of "Error" to make the message more readable.
10308
10309 * boot/i386/pc/boot.S (kernel_segment): Remove.
10310 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
10311 for destination.
10312
10313 * boot/i386/pc/boot.S (boot_version): Remove.
10314 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10315 Remove.
10316
10317 * include/grub/i386/pc/boot.h: Sort all offsets.
10318 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
10319 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
10320 * boot/i386/pc/boot.S: Assert location of every offset listed in
10321 include/grub/i386/pc/boot.h.
10322
10323 2009-07-13 Pavel Roskin <proski@gnu.org>
10324
10325 * include/grub/i386/coreboot/machine.h: Rename
10326 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
10327 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
10328 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
10329
10330 * kern/dl.c: Force native word size to suppress warnings when
10331 compiling grub-emu.
10332
10333 * kern/device.c (grub_device_iterate): Change struct part_ent to
10334 hold the name, not a pointer to it. Use one grub_malloc() per
10335 partition, not two. Free partition_name if grub_malloc() fails.
10336 Set ents to NULL only before grub_partition_iterate() is called.
10337
10338 2009-07-11 Bean <bean123ch@gmail.com>
10339
10340 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
10341 childname.
10342
10343 2009-07-10 Bean <bean123ch@gmail.com>
10344 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
10345
10346 * kern/ieee1275/openfw.c (grub_children_iterate)
10347 (grub_devalias_iterate): Fix size evaluation for property or path
10348 strings, which was broken since r2132.
10349
10350 2009-07-07 Pavel Roskin <proski@gnu.org>
10351
10352 * commands/search.c (search_file): Merge into ...
10353 (search_fs): ... this. Accept search type as argument.
10354 (grub_cmd_search): Pass search type to search_fs().
10355
10356 * include/grub/util/console.h: New file.
10357 * util/console.c: Use it instead of grub/machine/console.h.
10358 * util/grub-emu.c: Likewise.
10359
10360 * lib/arg.c (find_long_option): Remove.
10361 (find_long): Add `len' argument, make `s' const char *.
10362 (grub_arg_parse): Parse long options in place, not in a
10363 temporary buffer.
10364
10365 2009-07-06 Pavel Roskin <proski@gnu.org>
10366
10367 * commands/search.c (search_fs): Fix potential NULL pointer
10368 dereference.
10369
10370 * commands/search.c (search_fs): Replace QUID macro with quid_fn
10371 function pointer.
10372
10373 2009-07-06 Daniel Mierswa <impulze@impulze.org>
10374
10375 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
10376 comparison.
10377
10378 2009-07-05 Pavel Roskin <proski@gnu.org>
10379
10380 * include/grub/i386/linux.h (struct linux_kernel_params):
10381 Restore padding3, it's still needed.
10382
10383 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
10384 FreeBSD.
10385 * util/osdetect.lua: Likewise.
10386
10387 2009-07-05 Bean <bean123ch@gmail.com>
10388
10389 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
10390
10391 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
10392 (grub_lua_getenv): Likewise.
10393 (grub_lua_setenv): Likewise.
10394 (save_errno): New function.
10395 (push_result): Likewise.
10396 (grub_lua_enum_device): Likewise.
10397 (grub_lua_enum_file): Likewise.
10398 (grub_lua_file_open): Likewise.
10399 (grub_lua_file_close): Likewise.
10400 (grub_lua_file_seek): Likewise.
10401 (grub_lua_file_read): Likewise.
10402 (grub_lua_file_getline): Likewise.
10403 (grub_lua_file_getsize): Likewise.
10404 (grub_lua_file_getpos): Likewise.
10405 (grub_lua_file_eof): Likewise.
10406 (grub_lua_file_exist): Likewise.
10407 (grub_lua_add_menu): Likewise.
10408
10409 * script/lua/grub_lua.h (isupper): New inline function.
10410 (islower): Likewise.
10411 (ispunct): Likewise.
10412 (isxdigit): Likewise.
10413 (strcspn): Change to normal function.
10414 (strpbkr): New function declaration.
10415 (memchr): Likewise.
10416
10417 * script/lua/grub_main.c (scan_str): New function.
10418 (strcspn): Likewise.
10419 (strpbrk): Likewise.
10420 (memchr): Likewise.
10421
10422 * script/lua/linit.c (lualibs): Enable the string library.
10423
10424 * util/osdetect.lua: New file.
10425
10426 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
10427
10428 * include/grub/i386/linux.h (struct linux_kernel_params): Add
10429 `capabilities' member.
10430
10431 2009-07-02 Pavel Roskin <proski@gnu.org>
10432
10433 * genparttoollist.sh: Add missing newline at the end.
10434
10435 2009-07-01 Pavel Roskin <proski@gnu.org>
10436
10437 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
10438
10439 * util/hostdisk.c (open_device): Remove `const' from
10440 `sysctl_size', as sysctlbyname() can change it (in this case it
10441 doesn't actually happen).
10442
10443 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
10444 using signed long int constants.
10445
10446 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
10447 constant to avoid a warning on FreeBSD.
10448
10449 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
10450 where it's needed.
10451
10452 * Makefile.in: Install include/grub/machine symlink.
10453
10454 * Makefile.in: When installing symlinks, use "cp -fR", which
10455 works on FreeBSD and MacOSX.
10456 From Yves Blusseau <cl7m42e02@sneakemail.com>
10457
10458 * kern/dl.c (grub_dl_resolve_symbol): Make static.
10459 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
10460
10461 * util/misc.c: Move grub_reboot() and grub_halt() ...
10462 * util/grub-emu.c: ... here. Make main_env static.
10463 * include/grub/util/misc.h: Remove main_env.
10464
10465 * kern/mm.c: Use correct format to print size_t.
10466
10467 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
10468 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
10469 * kern/powerpc/dl.c: Likewise.
10470 * kern/sparc64/dl.c: Likewise.
10471 * kern/x86_64/dl.c: Likewise.
10472
10473 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10474
10475 Fix grub-emu build on sparc64-ieee1275.
10476
10477 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
10478 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
10479
10480 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10481
10482 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
10483 (grub_reboot, grub_halt): New functions.
10484
10485 * util/i386/pc/misc.c: Delete. Update all users.
10486 * util/sparc64/ieee1275/misc.c: Likewise.
10487 * util/powerpc/ieee1275/misc.c: Likewise.
10488
10489 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10490
10491 * conf/i386.rmk (setjmp_mod_SOURCES)
10492 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
10493 * conf/common.rmk (setjmp_mod_SOURCES)
10494 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
10495 to use $(target_cpu).
10496 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
10497 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
10498 * conf/powerpc-ieee1275.rmk: Likewise.
10499 * conf/sparc64-ieee1275.rmk: Likewise.
10500
10501 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
10502 $(target_cpu) for kern/$(target_cpu)/dl.c.
10503 * conf/i386-efi.rmk: Likewise.
10504 * conf/i386-ieee1275.rmk: Likewise.
10505 * conf/x86_64-efi.rmk: Likewise.
10506 * conf/i386-coreboot.rmk: Likewise.
10507 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
10508 $(target_cpu) for kern/$(target_cpu)/dl.c and for
10509 kern/$(target_cpu)/cache.S.
10510 * conf/sparc64-ieee1275.rmk: Likewise.
10511
10512 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10513
10514 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10515 type to `grub_uint8_t', and adjust `padding9' accordingly.
10516
10517 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10518
10519 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10520
10521 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10522 assembly in final jump, using register constraints.
10523
10524 (grub_linux_boot): For text mode, initialize `have_vga' using
10525 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10526
10527 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10528 right before the final jump.
10529
10530 Set `video_mode' to 0x3.
10531
10532 Document initialization of `video_page', `video_mode' and
10533 `video_ega_bx'.
10534
10535 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10536
10537 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10538 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
10539 and set GRUB_LINUX_FLAG_QUIET appropriately.
10540
10541 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10542
10543 Fix build on Debian / sparc.
10544
10545 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10546
10547 2009-06-28 Pavel Roskin <proski@gnu.org>
10548
10549 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10550 fix a warning.
10551
10552 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10553
10554 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10555
10556 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10557 `err'.
10558
10559 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10560
10561 Revert r2338.
10562
10563 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10564 file can't be opened. grub_file_open() is already supposed to set
10565 grub_errno / grub_errmsg appropriately.
10566 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10567
10568 2009-06-27 Pavel Roskin <proski@gnu.org>
10569 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10570
10571 * include/grub/dl.h: Include grub/elf.h.
10572 (struct grub_dl): Add symtab field.
10573 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10574 GRUB_MODULES_MACHINE_READONLY.
10575 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10576 of the header for read-only modules.
10577 (grub_dl_unload): Free mod->symtab for read-only modules.
10578 * kern/i386/dl.c: Use mod->symtab.
10579 * kern/powerpc/dl.c: Likewise.
10580 * kern/sparc64/dl.c: Likewise.
10581 * kern/x86_64/dl.c: Likewise.
10582
10583 * conf/i386-qemu.rmk: New file.
10584 * kern/i386/qemu/startup.S: Likewise.
10585 * kern/i386/qemu/mmap.c: Likewise.
10586 * boot/i386/qemu/boot.S: Likewise.
10587 * include/grub/i386/qemu/time.h: Likewise.
10588 * include/grub/i386/qemu/serial.h: Likewise.
10589 * include/grub/i386/qemu/kernel.h: Likewise.
10590 * include/grub/i386/qemu/console.h: Likewise.
10591 * include/grub/i386/qemu/boot.h: Likewise.
10592 * include/grub/i386/qemu/init.h: Likewise.
10593 * include/grub/i386/qemu/machine.h: Likewise.
10594 * include/grub/i386/qemu/loader.h: Likewise.
10595 * include/grub/i386/qemu/memory.h: Likewise.
10596
10597 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10598 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10599 [qemu] (pkglib_IMAGES): Add `boot.img'.
10600 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10601 [qemu] (boot_img_FORMAT): New variables.
10602 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10603 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10604 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10605 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10606 [qemu] (kernel_img_FORMAT): New variables.
10607
10608 * configure.ac: Recognise `i386-qemu'.
10609
10610 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10611 (for no compression).
10612 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10613 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10614 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10615 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10616 ifdefs).
10617
10618 2009-06-27 Pavel Roskin <proski@gnu.org>
10619
10620 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10621 read.
10622 * efiemu/prepare32.c: Likewise.
10623 * efiemu/prepare64.c: Likewise.
10624
10625 2009-06-26 Pavel Roskin <proski@gnu.org>
10626
10627 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10628 * include/grub/elf.h: Define symbols without "32" or "64" based
10629 on GRUB_TARGET_WORDSIZE.
10630 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10631 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10632 ELF definitions.
10633 * efiemu/loadcore64.c: Likewise.
10634 * loader/i386/bsd32.c: Likewise.
10635 * loader/i386/bsd64.c: Likewise.
10636 * kern/dl.c: Remove own ELF definitions.
10637 * util/i386/efi/grub-mkimage.c: Likewise.
10638
10639 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10640
10641 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10642 segment 0x0 unconditionally, because the reference generated by
10643 GAS is an absolute address.
10644
10645 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10646
10647 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10648 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10649
10650 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10651
10652 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10653 indexes. Check for -f explicitly.
10654 (search_file): Improve error message.
10655 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10656
10657 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10658
10659 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10660 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10661
10662 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10663
10664 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10665 * conf/i386-ieee1275.rmk: Likewise.
10666 * conf/i386-coreboot.rmk: Likewise.
10667
10668 * kern/i386/pc/startup.S (grub_stop): Remove function.
10669 * kern/i386/ieee1275/startup.S: Likewise.
10670 * kern/i386/coreboot/startup.S: Likewise.
10671 * kern/i386/misc.S (grub_stop): New function.
10672
10673 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10674
10675 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10676 * kern/i386/realmode.S (real_to_prot): ... to here.
10677
10678 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10679
10680 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10681 with `kernel.img'.
10682 (kernel_elf_SOURCES): Rename to ...
10683 (kernel_img_SOURCES): ... this.
10684 (kernel_elf_HEADERS): Rename to ...
10685 (kernel_img_HEADERS): ... this. Update all users.
10686 (kernel_elf_ASFLAGS): Rename to ...
10687 (kernel_img_ASFLAGS): ... this.
10688 (kernel_elf_CFLAGS): Rename to ...
10689 (kernel_img_CFLAGS): ... this.
10690 (kernel_elf_LDFLAGS): Rename to ...
10691 (kernel_img_LDFLAGS): ... this.
10692 * conf/i386-coreboot.rmk: Likewise.
10693 * conf/powerpc-ieee1275.rmk: Likewise.
10694
10695 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10696 with "kernel.img".
10697
10698 2009-06-21 Pavel Roskin <proski@gnu.org>
10699
10700 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10701 to match nested functions.
10702 * loader/sparc64/ieee1275/linux.c: Likewise.
10703
10704 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10705
10706 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10707
10708 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10709 all i386 platforms.
10710
10711 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10712
10713 Fix asm file handling on ELF, and remove workarounds.
10714
10715 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10716 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10717 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10718 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10719
10720 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 Load BSD ELF modules
10723
10724 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10725 and loader/i386/bsd64.c
10726 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10727 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10728 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10729 (grub_freebsd_load_elfmodule32): New declaration
10730 (grub_freebsd_load_elfmoduleobj64): Likewise
10731 (grub_freebsd_load_elf_meta32): Likewise
10732 (grub_freebsd_load_elf_meta64): Likewise
10733 (grub_freebsd_add_meta): Likewise
10734 (grub_freebsd_add_meta_module): Likewise
10735 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10736 (grub_freebsd_add_meta_module): Likewise and move module-specific
10737 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10738 (grub_cmd_freebsd): Add elf-kernel specific parts
10739 based on grub_freebsd_add_meta_module
10740 (grub_cmd_freebsd_module): Add type parsing moved from
10741 grub_freebsd_add_meta_module
10742 (grub_cmd_freebsd_module_elf): New function
10743 (cmd_freebsd_module_elf): New variable
10744 (GRUB_MOD_INIT): Register freebsd_module_elf
10745 * loader/i386/bsd32.c: New file
10746 * loader/i386/bsd64.c: Likewise
10747 * loader/i386/bsdXX.c: Likewise
10748 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10749 (grub_elf64_load): Likewise
10750 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10751 All users updated
10752 (grub_elf64_load_hook_t): Likewise
10753
10754 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10755
10756 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10757 variable.
10758 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10759 don't write a menu entry for recovery mode.
10760
10761 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10762
10763 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10764 after it's no longer needed.
10765
10766 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10767
10768 * include/grub/i386/loader.h (grub_linux_prot_size)
10769 (grub_linux_tmp_addr, grub_linux_real_addr)
10770 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10771 GRUB_MACHINE_PCBIOS.
10772 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10773 common grub_util_info() call to ...
10774 (generate_image): ... here.
10775 Fix use of uninitialized memory, comparison of signed with
10776 unsigned integers and memory leak.
10777 Remove bogus module address message.
10778
10779 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10782 grub_raid_register
10783 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10784
10785 2009-06-19 Pavel Roskin <proski@gnu.org>
10786
10787 * configure.ac: Remove stray AC_MSG_CHECKING.
10788
10789 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10792
10793 2009-06-18 Pavel Roskin <proski@gnu.org>
10794
10795 * conf/common.rmk: Add fs_file.mod.
10796 * disk/fs_file.c: New file.
10797 * include/grub/disk.h (enum grub_disk_dev_id): Add
10798 GRUB_DISK_DEVICE_FILE_ID.
10799
10800 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 Fix build with Apple's toolchain. Part 2
10803
10804 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10805 a fake start
10806
10807 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 Fix build with Apple's toolchain. Part 1
10810
10811 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10812 for long calls
10813 * configure.ac: remove a leftover AC_MSG_RESULT
10814 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10815 Apple's toolchain
10816
10817 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 Fix warnings
10820
10821 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10822 (decomp_block): initialize ch
10823 use grub_memcpy instead of memcpy
10824
10825 2009-06-17 Pavel Roskin <proski@gnu.org>
10826
10827 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10828 version, use declarations needed to use vga_text as the startup
10829 console.
10830
10831 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10832 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10833 the kernel.
10834 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10835 and grub_at_keyboard_fini(), it's done on module load and
10836 unload.
10837
10838 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10839
10840 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10841 file can't be found.
10842 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10843
10844 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10845
10846 Fix newline handling
10847
10848 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10849 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10850 (grub_script_yylex): don't segfault on unterminated script
10851 newline terminates command and variable
10852
10853 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10854
10855 avoid double grub_adjust_range call. Bug reported by David Simner
10856
10857 * kern/disk.c (grub_disk_write): change to raw disk access before
10858 calling disk_read
10859
10860 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10861
10862 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10863 spaces, for the benefit of help2man.
10864 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10865
10866 2009-06-16 Pavel Roskin <proski@gnu.org>
10867
10868 * kern/i386/halt.c: Include grub/machine/init.h.
10869 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10870
10871 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10872
10873 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10874 drivemap menuentry.
10875
10876 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10877
10878 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10879 `echo' command.
10880
10881 2009-06-16 Pavel Roskin <proski@gnu.org>
10882
10883 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10884 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10885 save %dx, we only need %dl and we never change it.
10886 * boot/i386/pc/cdboot.S: Don't set the root drive.
10887 * boot/i386/pc/pxeboot.S: Likewise.
10888 * include/grub/i386/pc/boot.h: Remove
10889 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10890 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10891 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10892 * kern/i386/pc/init.c (make_install_device): Remove references
10893 to grub_root_drive.
10894 * kern/i386/pc/startup.S: Likewise.
10895 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10896
10897 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 xnu_uuid command
10900
10901 * commands/xnu_uuid.c: new file
10902 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10903 (xnu_uuid_mod_SOURCES): new variable
10904 (xnu_uuid_mod_CFLAGS): likewise
10905 (xnu_uuid_mod_LDFLAGS): likewise
10906 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10907 * conf/i386-ieee1275.rmk: likewise
10908 * conf/i386-pc.rmk: likewise
10909 * conf/powerpc-ieee1275.rmk: likewise
10910 * conf/sparc64-ieee1275.rmk: likewise
10911 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10912
10913 2009-06-16 Pavel Roskin <proski@gnu.org>
10914
10915 * configure.ac: Avoid '==' in test command, it's not portable.
10916
10917 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 Probe command
10920
10921 * commands/probe.c: new file
10922 * conf/common.rmk (pkglib_MODULES): add probe.mod
10923 (probe_mod_SOURCES): new variable
10924 (probe_mod_CFLAGS): likewise
10925 (probe_mod_LDFLAGS): likewise
10926 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10927 * conf/i386-ieee1275.rmk: likewise
10928 * conf/i386-pc.rmk: likewise
10929 * conf/powerpc-ieee1275.rmk: likewise
10930 * conf/sparc64-ieee1275.rmk: likewise
10931
10932 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 Fix handling of string like \"hello\" and "a
10935 b"
10936
10937 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10938 (grub_script_yylex): fix parsing of quoting, escaping and newline
10939
10940 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10941
10942 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10943 handling
10944
10945 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10946
10947 * util/grub-mkconfig.in: Fix parsing of --output option.
10948
10949 2009-06-12 Pavel Roskin <proski@gnu.org>
10950
10951 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10952 genmk.rb don't need to be generated or installed.
10953
10954 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * commands/i386/pc/drivemap_int13h.S: add more comments
10957
10958 2009-06-11 Pavel Roskin <proski@gnu.org>
10959
10960 * Makefile.in (uninstall): Uninstall manuals.
10961
10962 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10963 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10964 and update-grub_lib in two places.
10965 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10966
10967 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10968 a compiler warning.
10969
10970 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10971 `entry_lo' to fix variable shadowing.
10972
10973 2009-06-11 Christian Franke <franke@computer.org>
10974
10975 * kern/misc.c (__enable_execute_stack): Add missing return type
10976 to prevent gcc warning.
10977
10978 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10979
10980 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10981
10982 2009-06-11 Pavel Roskin <proski@gnu.org>
10983
10984 * Makefile.in: Don't rely on any scripts being executable.
10985 Always use $(SHELL) to run shell scripts.
10986
10987 * configure.ac: Always define ___main if using -nostdlib. This
10988 fixes tests on Cygwin.
10989
10990 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10991
10992 UDF fix
10993
10994 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10995 is in bytes and not in blocks
10996
10997 2009-06-11 Pavel Roskin <proski@gnu.org>
10998
10999 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
11000 warning.
11001
11002 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
11003
11004 * util/grub.d/30_os-prober.in: Fix a comment. Source
11005 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
11006 to set the root device. Place drivemap command in the generated
11007 chain entry.
11008
11009 2009-06-11 Pavel Roskin <proski@gnu.org>
11010
11011 * configure.ac: Remove host_m32. Issues with 64-bit utilities
11012 have long been resolved.
11013
11014 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
11015
11016 * util/grub.d/10_linux.in: Capitalise "Linux".
11017
11018 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
11019
11020 2009-06-11 Pavel Roskin <proski@gnu.org>
11021
11022 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
11023 fix a gcc warning and ensure that the function won't ever exit.
11024
11025 * kern/i386/ieee1275/init.c: Add missing prototype for
11026 grub_stop_floppy().
11027
11028 * loader/ieee1275/multiboot2.c [__i386__]: Include
11029 grub/cpu/multiboot.h.
11030
11031 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
11032 casts to short - they are not portable and cause warnings. Fix
11033 use of uninitialized values in input_buf. Use ARRAY_SIZE.
11034
11035 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
11036
11037 Drivemap fixes
11038
11039 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
11040 new function
11041 (grub_get_root_biosnumber_saved): new variable
11042 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
11043 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
11044 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
11045 %dx after the call if necessary
11046 * conf/common.rmk (pkglib_MODULES): remove boot.mod
11047 (boot_mod_SOURCES): remove
11048 (boot_mod_CFLAGS): remove
11049 (boot_mod_LDFLAGS): remove
11050 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
11051 (boot_mod_SOURCES): new variable
11052 (boot_mod_CFLAGS): likewise
11053 (boot_mod_LDFLAGS): likewise
11054 * conf/i386-efi.rmk: likewise
11055 * conf/i386-ieee1275.rmk: likewise
11056 * conf/i386-pc.rmk: likewise
11057 * conf/powerpc-ieee1275.rmk: likewise
11058 * conf/sparc64-ieee1275.rmk: likewise
11059 * conf/x86_64-efi.rmk: likewise
11060 * include/grub/i386/pc/biosnum.h: new file
11061 * lib/i386/pc/biosnum.c: likewise
11062 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
11063 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
11064 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
11065
11066 2009-06-10 Pavel Roskin <proski@gnu.org>
11067
11068 * io/gzio.c (test_header): Don't reuse one buffer for all data.
11069 Use separate variables. Read only the file size at the end, but
11070 not the checksum that we don't use.
11071
11072 * kern/file.c (grub_file_read): Use void pointer for the buffer.
11073 Adjust all callers.
11074
11075 * kern/ieee1275/openfw.c: Remove libc includes.
11076 * kern/ieee1275/cmain.c: Likewise.
11077 * include/grub/ieee1275/ieee1275.h: Likewise.
11078
11079 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
11080 compiler warnings.
11081
11082 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11083
11084 * Makefile.in: Remove all trailing whitespace.
11085 * conf/i386-pc.rmk: Likewise.
11086 * conf/powerpc-ieee1275.rmk: Likewise.
11087 * conf/sparc64-ieee1275.rmk: Likewise.
11088 * docs/grub.texi: Likewise.
11089 * docs/texinfo.tex: Likewise.
11090 * disk/fs_uuid.c: Likewise.
11091 * disk/lvm.c: Likewise.
11092 * disk/scsi.c: Likewise.
11093 * disk/ata.c: Likewise.
11094 * disk/ieee1275/ofdisk.c: Likewise.
11095 * disk/i386/pc/biosdisk.c: Likewise.
11096 * disk/host.c: Likewise.
11097 * disk/raid.c: Likewise.
11098 * disk/efi/efidisk.c: Likewise.
11099 * disk/usbms.c: Likewise.
11100 * disk/memdisk.c: Likewise.
11101 * disk/loopback.c: Likewise.
11102 * kern/powerpc/dl.c: Likewise.
11103 * kern/device.c: Likewise.
11104 * kern/dl.c: Likewise.
11105 * kern/sparc64/dl.c: Likewise.
11106 * kern/ieee1275/ieee1275.c: Likewise.
11107 * kern/term.c: Likewise.
11108 * kern/fs.c: Likewise.
11109 * kern/i386/dl.c: Likewise.
11110 * kern/i386/pc/startup.S: Likewise.
11111 * kern/i386/pc/init.c: Likewise.
11112 * kern/i386/pc/mmap.c: Likewise.
11113 * kern/i386/pc/lzo1x.S: Likewise.
11114 * kern/i386/ieee1275/init.c: Likewise.
11115 * kern/i386/realmode.S: Likewise.
11116 * kern/i386/tsc.c: Likewise.
11117 * kern/partition.c: Likewise.
11118 * kern/corecmd.c: Likewise.
11119 * kern/file.c: Likewise.
11120 * kern/efi/efi.c: Likewise.
11121 * kern/efi/init.c: Likewise.
11122 * kern/efi/mm.c: Likewise.
11123 * kern/main.c: Likewise.
11124 * kern/err.c: Likewise.
11125 * kern/env.c: Likewise.
11126 * kern/disk.c: Likewise.
11127 * kern/generic/millisleep.c: Likewise.
11128 * kern/generic/rtc_get_time_ms.c: Likewise.
11129 * kern/misc.c: Likewise.
11130 * kern/parser.c: Likewise.
11131 * genmk.rb: Likewise.
11132 * configure.ac: Likewise.
11133 * boot/i386/pc/diskboot.S: Likewise.
11134 * boot/i386/pc/pxeboot.S: Likewise.
11135 * boot/i386/pc/boot.S: Likewise.
11136 * boot/i386/pc/lnxboot.S: Likewise.
11137 * boot/i386/pc/cdboot.S: Likewise.
11138 * parttool/pcpart.c: Likewise.
11139 * video/readers/tga.c: Likewise.
11140 * video/video.c: Likewise.
11141 * video/bitmap.c: Likewise.
11142 * lib/envblk.c: Likewise.
11143 * lib/i386/setjmp.S: Likewise.
11144 * fs/xfs.c: Likewise.
11145 * fs/afs.c: Likewise.
11146 * fs/fat.c: Likewise.
11147 * fs/ntfs.c: Likewise.
11148 * fs/udf.c: Likewise.
11149 * fs/affs.c: Likewise.
11150 * fs/iso9660.c: Likewise.
11151 * fs/hfs.c: Likewise.
11152 * fs/fshelp.c: Likewise.
11153 * fs/ext2.c: Likewise.
11154 * fs/jfs.c: Likewise.
11155 * fs/reiserfs.c: Likewise.
11156 * fs/hfsplus.c: Likewise.
11157 * fs/minix.c: Likewise.
11158 * fs/cpio.c: Likewise.
11159 * fs/sfs.c: Likewise.
11160 * fs/ufs.c: Likewise.
11161 * efiemu/prepare.c: Likewise.
11162 * efiemu/loadcore_common.c: Likewise.
11163 * efiemu/runtime/efiemu.sh: Likewise.
11164 * efiemu/runtime/efiemu.S: Likewise.
11165 * efiemu/runtime/efiemu.c: Likewise.
11166 * efiemu/pnvram.c: Likewise.
11167 * efiemu/main.c: Likewise.
11168 * efiemu/i386/pc/cfgtables.c: Likewise.
11169 * efiemu/i386/loadcore64.c: Likewise.
11170 * efiemu/i386/loadcore32.c: Likewise.
11171 * efiemu/loadcore.c: Likewise.
11172 * efiemu/symbols.c: Likewise.
11173 * efiemu/mm.c: Likewise.
11174 * include/grub/autoefi.h: Likewise.
11175 * include/grub/datetime.h: Likewise.
11176 * include/grub/term.h: Likewise.
11177 * include/grub/hfs.h: Likewise.
11178 * include/grub/lvm.h: Likewise.
11179 * include/grub/i386/tsc.h: Likewise.
11180 * include/grub/i386/linux.h: Likewise.
11181 * include/grub/i386/xnu.h: Likewise.
11182 * include/grub/i386/efiemu.h: Likewise.
11183 * include/grub/i386/pc/biosdisk.h: Likewise.
11184 * include/grub/i386/pc/memory.h: Likewise.
11185 * include/grub/i386/pc/vbe.h: Likewise.
11186 * include/grub/parttool.h: Likewise.
11187 * include/grub/video.h: Likewise.
11188 * include/grub/memory.h: Likewise.
11189 * include/grub/fs.h: Likewise.
11190 * include/grub/partition.h: Likewise.
11191 * include/grub/xnu.h: Likewise.
11192 * include/grub/efi/api.h: Likewise.
11193 * include/grub/efi/pe32.h: Likewise.
11194 * include/grub/efi/memory.h: Likewise.
11195 * include/grub/multiboot.h: Likewise.
11196 * include/grub/usbdesc.h: Likewise.
11197 * include/grub/multiboot2.h: Likewise.
11198 * include/grub/acpi.h: Likewise.
11199 * include/grub/efiemu/efiemu.h: Likewise.
11200 * include/grub/disk.h: Likewise.
11201 * include/grub/ieee1275/ieee1275.h: Likewise.
11202 * include/grub/net.h: Likewise.
11203 * include/grub/machoload.h: Likewise.
11204 * include/grub/macho.h: Likewise.
11205 * include/multiboot.h: Likewise.
11206 * genmoddep.awk: Likewise.
11207 * normal/main.c: Likewise.
11208 * normal/menu_entry.c: Likewise.
11209 * normal/menu_viewer.c: Likewise.
11210 * normal/completion.c: Likewise.
11211 * normal/cmdline.c: Likewise.
11212 * normal/misc.c: Likewise.
11213 * normal/datetime.c: Likewise.
11214 * bus/usb/usbtrans.c: Likewise.
11215 * bus/usb/ohci.c: Likewise.
11216 * bus/usb/uhci.c: Likewise.
11217 * bus/usb/usb.c: Likewise.
11218 * mmap/efi/mmap.c: Likewise.
11219 * mmap/i386/pc/mmap_helper.S: Likewise.
11220 * mmap/i386/pc/mmap.c: Likewise.
11221 * mmap/i386/mmap.c: Likewise.
11222 * mmap/i386/uppermem.c: Likewise.
11223 * mmap/mmap.c: Likewise.
11224 * commands/acpi.c: Likewise.
11225 * commands/echo.c: Likewise.
11226 * commands/blocklist.c: Likewise.
11227 * commands/loadenv.c: Likewise.
11228 * commands/usbtest.c: Likewise.
11229 * commands/boot.c: Likewise.
11230 * commands/parttool.c: Likewise.
11231 * commands/search.c: Likewise.
11232 * commands/cat.c: Likewise.
11233 * commands/i386/pc/play.c: Likewise.
11234 * commands/i386/pc/drivemap.c: Likewise.
11235 * commands/i386/pc/vbeinfo.c: Likewise.
11236 * commands/i386/pc/acpi.c: Likewise.
11237 * commands/i386/pc/vbetest.c: Likewise.
11238 * commands/ls.c: Likewise.
11239 * commands/cmp.c: Likewise.
11240 * commands/test.c: Likewise.
11241 * commands/efi/acpi.c: Likewise.
11242 * commands/gptsync.c: Likewise.
11243 * commands/help.c: Likewise.
11244 * partmap/amiga.c: Likewise.
11245 * partmap/apple.c: Likewise.
11246 * partmap/acorn.c: Likewise.
11247 * partmap/pc.c: Likewise.
11248 * partmap/sun.c: Likewise.
11249 * partmap/gpt.c: Likewise.
11250 * script/sh/lexer.c: Likewise.
11251 * script/sh/function.c: Likewise.
11252 * font/font.c: Likewise.
11253 * font/font_cmd.c: Likewise.
11254 * loader/powerpc/ieee1275/linux.c: Likewise.
11255 * loader/efi/chainloader.c: Likewise.
11256 * loader/multiboot_loader.c: Likewise.
11257 * loader/macho.c: Likewise.
11258 * loader/i386/multiboot.c: Likewise.
11259 * loader/i386/linux.c: Likewise.
11260 * loader/i386/pc/linux.c: Likewise.
11261 * loader/i386/pc/multiboot2.c: Likewise.
11262 * loader/i386/pc/chainloader.c: Likewise.
11263 * loader/i386/pc/xnu.c: Likewise.
11264 * loader/i386/bsd_trampoline.S: Likewise.
11265 * loader/i386/efi/linux.c: Likewise.
11266 * loader/i386/multiboot_elfxx.c: Likewise.
11267 * loader/i386/bsd_helper.S: Likewise.
11268 * loader/i386/bsd.c: Likewise.
11269 * loader/i386/linux_trampoline.S: Likewise.
11270 * loader/i386/xnu_helper.S: Likewise.
11271 * loader/i386/xnu.c: Likewise.
11272 * loader/i386/bsd_pagetable.c: Likewise.
11273 * loader/i386/multiboot_helper.S: Likewise.
11274 * loader/xnu.c: Likewise.
11275 * loader/xnu_resume.c: Likewise.
11276 * io/gzio.c: Likewise.
11277 * term/efi/console.c: Likewise.
11278 * term/terminfo.c: Likewise.
11279 * term/ieee1275/ofconsole.c: Likewise.
11280 * term/i386/pc/serial.c: Likewise.
11281 * term/i386/pc/vesafb.c: Likewise.
11282 * term/i386/pc/vga.c: Likewise.
11283 * term/usb_keyboard.c: Likewise.
11284 * term/gfxterm.c: Likewise.
11285 * aclocal.m4: Likewise.
11286 * util/lvm.c: Likewise.
11287 * util/grub.d/30_os-prober.in: Likewise.
11288 * util/grub.d/10_hurd.in: Likewise.
11289 * util/console.c: Likewise.
11290 * util/grub-macho2img.c: Likewise.
11291 * util/grub-probe.c: Likewise.
11292 * util/hostfs.c: Likewise.
11293 * util/i386/pc/grub-mkimage.c: Likewise.
11294 * util/i386/pc/grub-setup.c: Likewise.
11295 * util/i386/efi/grub-mkimage.c: Likewise.
11296 * util/grub-mkconfig.in: Likewise.
11297 * util/raid.c: Likewise.
11298 * util/resolve.c: Likewise.
11299 * util/grub-mkdevicemap.c: Likewise.
11300 * util/grub-emu.c: Likewise.
11301 * util/getroot.c: Likewise.
11302 * util/hostdisk.c: Likewise.
11303 * util/usb.c: Likewise.
11304 * util/grub-editenv.c: Likewise.
11305 * util/misc.c: Likewise.
11306
11307 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11308
11309 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
11310 `genparttoollist.sh'.
11311 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
11312 Add `*.sh' to the list find searches for and change `mdate.sh'
11313 to `mdate-sh'.
11314
11315 2009-06-10 Pavel Roskin <proski@gnu.org>
11316
11317 * include/grub/multiboot2.h: Provide compatibility defines for
11318 multiboot2.h.
11319 * include/multiboot2.h: Include stdint.h only if needed, using
11320 angle brackets.
11321 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
11322 grub/multiboot2.h.
11323 * loader/ieee1275/multiboot2.c: Likewise.
11324 * loader/multiboot2.c: Likewise.
11325 * loader/multiboot_loader.c: Likewise.
11326
11327 * configure.ac: Use -nostdlib when probing for the target. It
11328 should not be required to have libc for the target.
11329
11330 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
11331 they fail without libc headers for the target.
11332 * include/grub/powerpc/libgcc.h: Use weak attribute for all
11333 exports.
11334 * include/grub/sparc64/libgcc.h: Likewise. Don't use
11335 preprocessor conditionals.
11336
11337 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
11338 build system doesn't need to be aware of the tar.c internals.
11339
11340 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
11341
11342 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
11343
11344 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
11345
11346 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
11347 disk limit to 26 for IDE, Virtio, Xen and SCSI.
11348
11349 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
11350
11351 * util/i386/pc/grub-install.in: Change the error message if UUIDs
11352 aren't available if ata.mod gets used.
11353
11354 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
11355
11356 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
11357 initialising controller.
11358 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11359
11360 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11361
11362 * util/i386/pc/grub-install.in: Add a parameter --disk-module
11363 to choose between ata and biosdisk module on i386-pc.
11364
11365 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
11366
11367 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
11368 Subclass and Programming Interface fields in terms of the 3 byte
11369 Class Code register.
11370 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11371
11372 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
11373 interface is OHCI. Add grub_dprintf for symmetry with
11374 bus/usb/uhci.c.
11375 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
11376 interface is UHCI. Add interf variable for programming
11377 interface. Print interface with class/subclass.
11378
11379 * bus/usb/ohci.c: Set interf with correct field.
11380
11381 * bus/usb/uhci.c: Remove unneeded doubled lines.
11382 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
11383 Remove whitespace inside comment.
11384
11385 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
11386
11387 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
11388 as fallback an equivalent option without depth.
11389
11390 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 Not fail if unable to retrieve C/H/S on LBA disks
11393
11394 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
11395 if unable to retrieve C/H/S on LBA disks
11396
11397 2009-06-08 Pavel Roskin <proski@gnu.org>
11398
11399 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
11400 about aliasing.
11401
11402 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11403
11404 * Makefile.in (uninstall): Remove all $lib_DATA files.
11405
11406 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11407
11408 Bugfix: install on partitionless device
11409
11410 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
11411 is a whole disk
11412
11413 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11414
11415 * Makefile.in (uninstall): Remove all $include_DATA files.
11416
11417 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11418
11419 * commands/true.c: New file. Implement the true and false commands.
11420 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
11421 (true_mod_SOURCES): New variable.
11422 (true_mod_CFLAGS): Likewise.
11423 (true_mod_LDFLAGS): Likewise.
11424
11425 2009-06-05 Colin D Bennett <colin@gibibit.com>
11426
11427 Optimized font character lookup using binary search instead of linear
11428 search. Fonts now are required to have the character index ordered by
11429 code point.
11430
11431 * font/font.c (load_font_index): Verify that fonts have ordered
11432 character indices.
11433 (find_glyph): Use binary search instead of linear search to find a
11434 character in a font.
11435
11436 2009-06-05 Michael Scherer <misc@mandriva.org>
11437
11438 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
11439 uses case sensitive btree.
11440 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
11441 only for case insensitive filesystems.
11442
11443 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
11444
11445 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
11446 * conf/common.rmk (search_mod_CFLAGS): likewise
11447
11448 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11449
11450 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
11451 compensate a compiler bug
11452
11453 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
11456 instead of '\b'
11457
11458 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 Definitions for creating asm symbols with Apple's CC
11461
11462 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
11463 [APPLE_CC] (VARIABLE): likewise
11464
11465 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 Disable lnxboot.img when compiled
11468 with Apple's CC
11469
11470 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
11471 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
11472 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
11473 [! APPLE_CC] (CODE_LENG): skip
11474 [! APPLE_CC] (setup_sects): likewise
11475 [! APPLE_CC]: skip filling
11476
11477 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 Address in trampolines based on 32-bit registers when compiled
11480 with Apple's CC
11481
11482 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
11483 for addresses
11484 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
11485
11486 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11487
11488 Avoid aliases when compiling with Apple's CC for PCBIOS machine
11489
11490 * kern/misc.c [APPLE_CC] (memcpy): new function
11491 [APPLE_CC] (memmove): likewise
11492 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
11493 (memcpy): define alias conditionally on !APPLE_CC
11494 (memset): likewise
11495 (abort): likewise
11496 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
11497 APPLE_CC are defined
11498 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
11499 (grub_assert_fail): make prototype conditional
11500
11501 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11502
11503 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
11504
11505 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
11506 grub-macho2img
11507 (CLEANFILES): add grub-macho2img
11508 (grub_macho2img_SOURCES): new variable
11509 * kern/i386/pc/startup.S (bss_start): new variable
11510 (bss_end): likewise
11511 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
11512 * util/grub-macho2img.c: new file
11513
11514 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11515
11516 Use objconv when compiling with Apple's CC
11517
11518 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11519 (efiemu64.o): likewise
11520 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11521 when compiling with Apple's CC
11522 (efiemu64_s.o): likewise
11523 * configure.ac: check for objconv when compiling with Apple's CC
11524 * genmk.rb: use objconv for modules when compiled with Apple's CC
11525
11526 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 Define segment as well as section when compiling with
11529 Apple's CC
11530
11531 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11532 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11533 (efiemu_convert_pointer): likewise
11534 (efiemu_set_virtual_address_map): likewise
11535 (efiemu_convert_pointer): likewise
11536 (efiemu_getcrc32): likewise
11537 (init_crc32_table): likewise
11538 (reflect): likewise
11539 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11540 (GRUB_MOD_DEP): likewise
11541
11542 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11543
11544 Allow a compilation without -mcmodel=large
11545
11546 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11547 when compiled without -mcmodel=large
11548 (filter_memory_map): remove memory post 4 GiB when compiled
11549 without -mcmodel=large
11550 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
11551 TARGET_CFLAGS when -mcmodel=large isn't supported
11552
11553 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11554
11555 Remove nested functions in efiemu core
11556
11557 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
11558
11559 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11560
11561 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11562
11563 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11564 temporary storage
11565 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11566 using Apple's CC
11567 (grub_cpu_is_tsc_supported): likewise
11568 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
11569
11570 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 Absolute addressing through constant with Apple's cc
11573
11574 * kern/i386/pc/startup.S: Define necessary constants
11575 and address through it when using ABS with Apple's CC
11576 * boot/i386/pc/diskboot.S: likewise
11577 * boot/i386/pc/boot.S: likewise
11578 * boot/i386/pc/lnxboot.S: likewise
11579 * boot/i386/pc/cdboot.S: likewise
11580 * mmap/i386/pc/mmap_helper.S: likewise
11581 * commands/i386/pc/drivemap_int13h.S: likewise
11582
11583 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 Check if compiler is apple cc
11586
11587 * Makefile.in (ASFLAGS): new variable
11588 (TARGET_ASFLAGS): likewise
11589 (TARGET_MODULE_FORMAT): likewise
11590 (TARGET_APPLE_CC): likewise
11591 (OBJCONV): likewise
11592 (TARGET_IMG_CFLAGS): likewise
11593 (TARGET_CPPFLAGS): add includedir
11594 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11595 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11596 Check for linker script only if compiler isn't Apple's CC
11597 (TARGET_MODULE_FORMAT): set
11598 (TARGET_APPLE_CC): likewise
11599 (TARGET_ASFLAGS): likewise
11600 (ASFLAGS): likewise
11601 Check for objcopy only if compiler isn't Apple's CC
11602 Check for BSS symbol only if compiler isn't Apple's CC
11603 * genmk.rb: adapt nm options if we use Apple's utils
11604 * aclocal.m4 (grub_apple_cc): new test
11605 (grub_apple_target_cc): likewise
11606
11607 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11608
11609 Simplify sed expressions and improve awk
11610
11611 * Makefile.in (install-local): simplify sed expression
11612 * gencmdlist.sh: likewise
11613 * genmoddep.awk: avoid adding module as a dependency of itself
11614
11615 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11616
11617 Add missing start symbols
11618
11619 * boot/i386/pc/boot.S: add start
11620 * boot/i386/pc/pxeboot.S: likewise
11621
11622 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11623
11624 Fix wrong assumptions with grub-mkimage on EFI
11625
11626 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11627 (relocate_addresses): consider both r_addend and value at offset
11628 (make_mods_section): zerofill modinfo and header
11629 (convert_elf): write prefix here
11630
11631 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 Use .asciz instead of .string
11634
11635 * i386/pc/diskboot.S: use .asciz instead of .string
11636 * i386/pc/boot.S: likewise
11637 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11638 (GRUB_MOD_NAME): likewise
11639
11640 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11641
11642 gfxpayload support
11643
11644 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11645 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11646 (grub_video_setup): remove
11647 (grub_video_set_mode): new prototype
11648 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11649 (vid_mode): remove
11650 (linux_vesafb_res): compile only on PCBIOS
11651 (grub_linux_boot): support gfxpayload
11652 * loader/i386/pc/xnu.c (video_hook): new function
11653 (grub_xnu_set_video): support gfxpayload
11654 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11655 (DEFAULT_VIDEO_HEIGHT): likewise
11656 (DEFAULT_VIDEO_FLAGS): likewise
11657 (DEFAULT_VIDEO_MODE): new definition
11658 (video_hook): new function
11659 (grub_gfxterm_init): use grub_video_set_mode
11660 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11661 loading xnu
11662 * video/video.c (grub_video_setup): removed
11663 (grub_video_set_mode): new function based on grub_gfxterm_init and
11664 grub_video_setup
11665
11666 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11667
11668 Avoid calling biosdisk in drivemap
11669
11670 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11671 (revparse_biosdisk): likewise
11672 (list_mappings): derive name from id directly
11673 (grub_cmd_drivemap): use tryparse_diskstring
11674
11675 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 Script fixes
11678
11679 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11680 (grub_lexer_param): add tokenonhold
11681 (grub_script_create_cmdline): remove cmdline. All callers updated
11682 (grub_script_function_create): make functionname
11683 grub_script_arg. All callers updated
11684 (grub_script_execute_argument_to_string): new prototype
11685 * kern/parser.c (state_transitions): reorder
11686 (grub_parser_cmdline_state): fix a bug and make more compact
11687 * script/sh/execute.c (grub_script_execute_argument_to_string):
11688 make global
11689 (grub_script_execute_cmdline): use new format
11690 * script/sh/function.c (grub_script_function_create): make functionname
11691 grub_script_arg. All callers updated
11692 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11693 (grub_script_yylex): remove
11694 (grub_script_yylex2): renamed to ...
11695 (grub_script_yylex): ...renamed
11696 parse the expressions like a${b}c
11697 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11698 (GRUB_PARSER_TOKEN_VAR): remove
11699 (GRUB_PARSER_TOKEN_NAME): likewise
11700 ("if"): declare as typeless
11701 ("while"): likewise
11702 ("function"): likewise
11703 ("else"): likewise
11704 ("then"): likewise
11705 ("fi"): likewise
11706 (text): remove
11707 (argument): likewise
11708 (script): accept empty scripts and make exit on error
11709 (arguments): use GRUB_PARSER_TOKEN_ARG
11710 (function): likewise
11711 (command): move error handling to script
11712 (menuentry): move grub_script_lexer_ref before
11713 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11714 argument. All callers updated
11715
11716 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11717
11718 Prevent GRUB from probing floppies during boot.
11719
11720 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11721 * commands/search.c (options): Add --no-floppy.
11722 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11723 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11724 --no-floppy when searching for UUIDs.
11725
11726 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11727
11728 Simplify the code duplication in commands/search.c.
11729
11730 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11731 (search_fs): ... this. Update all users.
11732
11733 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11734
11735 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11736
11737 2009-05-28 Pavel Roskin <proski@gnu.org>
11738
11739 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11740 Remove the original symlink explicitly.
11741
11742 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11743 just one slash. That's how grub_fshelp_find_file() does it.
11744
11745 2009-05-26 Pavel Roskin <proski@gnu.org>
11746
11747 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11748 to `str'.
11749
11750 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11751 possibly unused.
11752
11753 2009-05-25 Christian Franke <franke@computer.org>
11754
11755 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11756 register.
11757 (grub_atapi_identify): Add wait after drive select.
11758 (grub_ata_identify): Do more strict status register check before
11759 calling grub_atapi_identify (). Suppress error message if status
11760 register is 0x00 after command failure. Add status register
11761 check after PIO read to avoid bogus identify due to stuck DRQ.
11762 Thanks to Pavel Roskin for testing.
11763 (grub_device_initialize): Remove unsafe status register check.
11764 Thanks to 'phcoder' for problem report and patch.
11765 Prevent sign extension in debug message.
11766
11767 2009-05-23 Colin D Bennett <colin@gibibit.com>
11768
11769 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11770 definition file, and functions defined in `normal/menu.c' have had
11771 their prototypes moved to `include/grub/menu.h' for consistency.
11772
11773 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11774 from normal.h.
11775 (grub_menu_get_entry): Likewise.
11776 (grub_menu_get_timeout): Likewise.
11777 (grub_menu_set_timeout): Likewise.
11778 (grub_menu_execute_entry): Likewise.
11779 (grub_menu_execute_with_fallback): Likewise.
11780 (grub_menu_entry_run): Likewise.
11781
11782 * include/grub/normal.h: Re-ordered and grouped function
11783 prototypes by file that the function is defined in.
11784 (grub_menu_execute_callback): Removed; moved to menu.h.
11785 (grub_menu_get_entry): Likewise.
11786 (grub_menu_get_timeout): Likewise.
11787 (grub_menu_set_timeout): Likewise.
11788 (grub_menu_execute_entry): Likewise.
11789 (grub_menu_execute_with_fallback): Likewise.
11790 (grub_menu_entry_run): Likewise.
11791 (grub_menu_addentry): Renamed from this ...
11792 (grub_normal_add_menu_entry): ... to this.
11793
11794 * normal/main.c (grub_menu_addentry): Renamed from this ...
11795 (grub_normal_add_menu_entry): ... to this.
11796
11797 * script/sh/execute.c (grub_script_execute_menuentry): Update
11798 reference to renamed grub_menu_addentry function.
11799
11800 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11801
11802 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11803
11804 2009-05-22 Pavel Roskin <proski@gnu.org>
11805
11806 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11807 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11808 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11809 compiling for the i386 targets, but not for the utilities.
11810
11811 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11812 to grub_uint8_t.
11813 (grub_root_drive): Likewise.
11814 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11815 remove alignment.
11816 (grub_root_drive): Change size to byte.
11817 (grub_start_addr): Remove.
11818 (grub_end_addr): Likewise.
11819 (grub_apm_bios_info): Likewise.
11820
11821 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11822
11823 * normal/i386: Remove.
11824 * normal/powerpc: Likewise.
11825 * normal/sparc64: Likewise.
11826 * normal/x86_64: Likewise.
11827
11828 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11829
11830 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11831 * loader/i386/linux_trampoline.S: Fix indentation
11832 * loader/i386/xnu_helper.S: Likewise
11833
11834 2009-05-18 Colin D Bennett <colin@gibibit.com>
11835
11836 Display error messages when parsing a Lua statement fails.
11837 Previously, executing a syntactically invalid statement like
11838 ")foo" or "bar;" would silently fail.
11839
11840 * script/lua/grub_main.c (handle_lua_error): New function.
11841 (grub_lua_parse_line): Improved reporting of Lua parser and
11842 execution errors.
11843
11844 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11845
11846 Remove -Werror which causes build to fail on some systems
11847
11848 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11849 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11850 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11851
11852 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 trampoline for linux on 64-bit platform
11855
11856 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11857 loader/i386/efi/linux_trampoline.S
11858 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11859 declaration
11860 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11861 here
11862 * loader/i386/linux_trampoline.S: moved here
11863 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11864 trampoline
11865 (jumpvector): removed
11866 (grub_linux_trampoline_start): new declaration
11867 (grub_linux_trampoline_end): likewise
11868 (grub_linux_boot): use trampoline when on 64-bit platform
11869 * loader/i386/linux.c: likewise
11870
11871 2009-05-16 Pavel Roskin <proski@gnu.org>
11872
11873 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11874 const to avoid a warning.
11875 (grub_lua_setenv): Likewise.
11876 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11877 lmsg to fix a warning.
11878
11879 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11880
11881 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11882 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11883 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11884 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11885 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11886 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11887 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11888 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11889
11890 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11891
11892 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11893
11894 2009-05-16 Bean <bean123ch@gmail.com>
11895
11896 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11897 (lua_mod_SOURCES): New variable.
11898 (lua_mod_CFLAGS): Likewise.
11899 (lua_mod_LDFLAGS): Likewise.
11900
11901 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11902 (setjmp_mod_SOURCES): New variable.
11903 (setjmp_mod_CFLAGS): Likewise.
11904 (setjmp_LDFLAGS): Likewise.
11905
11906 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11907 (setjmp_mod_SOURCES): New variable.
11908 (setjmp_mod_CFLAGS): Likewise.
11909 (setjmp_LDFLAGS): Likewise.
11910
11911 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11912 (setjmp_mod_SOURCES): New variable.
11913 (setjmp_mod_CFLAGS): Likewise.
11914 (setjmp_LDFLAGS): Likewise.
11915
11916 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11917 (setjmp_mod_SOURCES): New variable.
11918 (setjmp_mod_CFLAGS): Likewise.
11919 (setjmp_LDFLAGS): Likewise.
11920
11921 * normal/i386/setjmp.S: Moved from here ...
11922 * lib/i386/setjmp.S: ... Moved here
11923 * normal/x86_64/setjmp.S: Moved from here ...
11924 * lib/x86_64/setjmp.S: ... Moved here
11925 * normal/powerpc/setjmp.S: Moved from here ...
11926 * lib/powerpc/setjmp.S: ... Moved here
11927 * normal/sparc64/setjmp.S: Moved from here ...
11928 * lib/sparc64/setjmp.S: ... Moved here
11929
11930 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11931 returns_twice in mingw.
11932
11933 * script/lua/grub_lib.c: New file.
11934 * script/lua/grub_lib.h: Likewise.
11935 * script/lua/grub_lua.h: Likewise.
11936 * script/lua/grub_main.c: Likewise.
11937 * script/lua/lapi.c: Likewise.
11938 * script/lua/lapi.h: Likewise.
11939 * script/lua/lauxlib.c: Likewise.
11940 * script/lua/lauxlib.h: Likewise.
11941 * script/lua/lbaselib.c: Likewise.
11942 * script/lua/lcode.c: Likewise.
11943 * script/lua/lcode.h: Likewise.
11944 * script/lua/ldblib.c: Likewise.
11945 * script/lua/ldebug.c: Likewise.
11946 * script/lua/ldebug.h: Likewise.
11947 * script/lua/ldo.c: Likewise.
11948 * script/lua/ldo.h: Likewise.
11949 * script/lua/ldump.c: Likewise.
11950 * script/lua/lfunc.c: Likewise.
11951 * script/lua/lfunc.h: Likewise.
11952 * script/lua/lgc.c: Likewise.
11953 * script/lua/lgc.h: Likewise.
11954 * script/lua/linit.c: Likewise.
11955 * script/lua/liolib.c: Likewise.
11956 * script/lua/llex.c: Likewise.
11957 * script/lua/llex.h: Likewise.
11958 * script/lua/llimits.h: Likewise.
11959 * script/lua/lmathlib.c: Likewise.
11960 * script/lua/lmem.c: Likewise.
11961 * script/lua/lmem.h: Likewise.
11962 * script/lua/loadlib.c: Likewise.
11963 * script/lua/lobject.c: Likewise.
11964 * script/lua/lobject.h: Likewise.
11965 * script/lua/lopcodes.c: Likewise.
11966 * script/lua/lopcodes.h: Likewise.
11967 * script/lua/loslib.c: Likewise.
11968 * script/lua/lparser.c: Likewise.
11969 * script/lua/lparser.h: Likewise.
11970 * script/lua/lstate.c: Likewise.
11971 * script/lua/lstate.h: Likewise.
11972 * script/lua/lstring.c: Likewise.
11973 * script/lua/lstring.h: Likewise.
11974 * script/lua/lstrlib.c: Likewise.
11975 * script/lua/ltable.c: Likewise.
11976 * script/lua/ltable.h: Likewise.
11977 * script/lua/ltablib.c: Likewise.
11978 * script/lua/ltm.c: Likewise.
11979 * script/lua/ltm.h: Likewise.
11980 * script/lua/lua.h: Likewise.
11981 * script/lua/luaconf.h: Likewise.
11982 * script/lua/lualib.h: Likewise.
11983 * script/lua/lundump.c: Likewise.
11984 * script/lua/lundump.h: Likewise.
11985 * script/lua/lvm.c: Likewise.
11986 * script/lua/lvm.h: Likewise.
11987 * script/lua/lzio.c: Likewise.
11988 * script/lua/lzio.h: Likewise.
11989
11990 2009-05-16 Bean <bean123ch@gmail.com>
11991
11992 * include/grub/kernel.h (grub_module_header_types): Add type
11993 OBJ_TYPE_CONFIG.
11994
11995 * kern/main.c (grub_load_config): New function.
11996 (grub_main): Call grub_load_config to read boot config.
11997
11998 * grub-mkimage (generate_image): New parameter config_path.
11999 (options): New option --config.
12000 (main): Parse --config option, and pass it to generate_image.
12001
12002 2009-05-14 Christian Franke <franke@computer.org>
12003
12004 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
12005 This fixes build on Cygwin.
12006
12007 2009-05-14 Pavel Roskin <proski@gnu.org>
12008
12009 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
12010 jump. This saves two bytes, so the typical case of 2 swapped
12011 drives would fit 32 bytes.
12012
12013 2009-05-13 Pavel Roskin <proski@gnu.org>
12014
12015 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
12016 grub_uint32_t to avoid a warning.
12017
12018 * loader/i386/linux.c (allocate_pages): When assigning
12019 real_mode_mem, cast through grub_size_t to fix a warning. The
12020 code already makes sure that the value would fit a pointer.
12021 (grub_linux_setup_video): Cast render_target->data to
12022 grub_size_t to fix a warning.
12023
12024 2009-05-13 Javier Martín <lordhabbit@gmail.com>
12025
12026 * commands/i386/pc/drivemap.c: New file - implement drivemap
12027 command.
12028 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
12029 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
12030
12031 2009-05-13 Pavel Roskin <proski@gnu.org>
12032
12033 * util/i386/pc/grub-setup.c (setup): Remove unused variable
12034 embedding_area_exists.
12035
12036 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
12037
12038 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
12039 it easier to understand / work with.
12040 Improve warning messages for cases where there's no embedding area,
12041 or when it is too small (or core.img too large).
12042
12043 2009-05-13 Pavel Roskin <proski@gnu.org>
12044
12045 * loader/i386/pc/multiboot2.c: Add necessary includes for
12046 grub_multiboot2_real_boot().
12047
12048 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
12049 PX record is always little-endian. We only need the lower 2
12050 bytes of the mode.
12051
12052 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
12053 facilitate code reuse.
12054 (grub_cpio_mount): Use "struct head", not a char buffer. This
12055 fixes a warning reported by gcc 4.4.
12056
12057 * kernel/disk.c (grub_disk_read): Use void pointer for the
12058 buffer.
12059 (grub_disk_write): Use const void pointer for the buffer.
12060 Adjust all callers. Remove unnecessary casts.
12061
12062 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
12063
12064 * util/i386/pc/grub-install.in: Update copyright year.
12065
12066 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12067
12068 gptsync
12069
12070 * commands/gptsync.c: new file
12071 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
12072 (gptsync_mod_SOURCES): new variable
12073 (gptsync_mod_CFLAGS): likewise
12074 (gptsync_mod_LDFLAGS): likewise
12075 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
12076 new definition
12077 (GRUB_PC_PARTITION_TYPE_HFS): likewise
12078 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
12079 * conf/i386-ieee1275.rmk: likewise
12080 * conf/i386-pc.rmk: likewise
12081 * conf/powerpc-ieee1275.rmk: likewise
12082
12083 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 Fixed grub-emu
12086
12087 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
12088 (grub_dl_ref): likewise
12089
12090 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
12091
12092 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
12093 split in two functions (one for msdos and one for gpt).
12094
12095 2009-05-08 Pavel Roskin <proski@gnu.org>
12096
12097 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
12098 not modified.
12099
12100 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
12101 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
12102 Initialize them with -1. Add sanity check for bad1. Eliminate
12103 nerr variable.
12104
12105 2009-05-08 David S. Miller <davem@davemloft.net>
12106
12107 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
12108
12109 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
12110
12111 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
12112 existence.
12113
12114 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
12115
12116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
12117 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
12118
12119 2009-05-05 David S. Miller <davem@davemloft.net>
12120
12121 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
12122
12123 2009-05-05 Pavel Roskin <proski@gnu.org>
12124
12125 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
12126 of grub_dl_ref() and grub_dl_unref().
12127 * commands/parttool.c: Remove preprocessor conditionals around
12128 grub_dl_ref() and grub_dl_unref().
12129 * fs/affs.c: Likewise.
12130 * fs/afs.c: Likewise.
12131 * fs/cpio.c: Likewise.
12132 * fs/ext2.c: Likewise.
12133 * fs/fat.c: Likewise.
12134 * fs/hfs.c: Likewise.
12135 * fs/hfsplus.c: Likewise.
12136 * fs/iso9660.c: Likewise.
12137 * fs/jfs.c: Likewise.
12138 * fs/minix.c: Likewise.
12139 * fs/ntfs.c: Likewise.
12140 * fs/reiserfs.c: Likewise.
12141 * fs/sfs.c: Likewise.
12142 * fs/udf.c: Likewise.
12143 * fs/ufs.c: Likewise.
12144 * fs/xfs.c: Likewise.
12145 * include/grub/dl.h: Likewise.
12146 * loader/xnu.c: Likewise.
12147
12148 2009-05-04 Pavel Roskin <proski@gnu.org>
12149
12150 * commands/acpi.c: Remove unused variable my_mod.
12151 * partmap/amiga.c: Likewise.
12152 * partmap/apple.c: Likewise.
12153 * partmap/gpt.c: Likewise.
12154 * partmap/pc.c: Likewise.
12155 * partmap/sun.c: Likewise.
12156 * term/gfxterm.c: Likewise.
12157 * term/i386/pc/vesafb.c: Likewise.
12158 * term/i386/pc/vga.c: Likewise.
12159
12160 2009-05-04 David S. Miller <davem@davemloft.net>
12161
12162 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
12163 pointer args to grub_ieee1275_get_property().
12164
12165 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
12166
12167 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
12168 devices, and do not traverse down under controller nodes.
12169
12170 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
12171 (grub_ofdisk_open): Use it to un-escape "," characters.
12172 * kern/disk.c (find_part_sep): New.
12173 (grub_disk_open): Use it to find the first non-escaped ','
12174 character in the disk name.
12175 * util/ieee1275/devicemap.c (escape_of_path): New.
12176 (grub_util_emit_devicemap_entry): Use it.
12177 * util/sparc64/ieee1275/grub-install.in: Update script to
12178 strip partition specifiers properly by not triggering on
12179 '\' escaped ',' characters.
12180
12181 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12182
12183 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
12184 to 0x300.
12185 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
12186 resolutions.
12187 (linux_vesafb_modes): Add a lot of additional modes to the list (based
12188 on documentation from Wikipedia).
12189
12190 2009-05-04 Pavel Roskin <proski@gnu.org>
12191
12192 * disk/ata.c: Spelling fixes.
12193 * disk/raid.c: Likewise.
12194 * disk/usbms.c: Likewise.
12195 * disk/dmraid_nvidia.c: Likewise.
12196 * kern/ieee1275/openfw.c: Likewise.
12197 * kern/ieee1275/init.c: Likewise.
12198 * kern/ieee1275/cmain.c: Likewise.
12199 * boot/i386/pc/cdboot.S: Likewise.
12200 * video/readers/png.c: Likewise.
12201 * video/i386/pc/vbe.c: Likewise.
12202 * fs/udf.c: Likewise.
12203 * fs/hfs.c: Likewise.
12204 * fs/reiserfs.c: Likewise.
12205 * efiemu/runtime/efiemu.c: Likewise.
12206 * efiemu/main.c: Likewise.
12207 * efiemu/mm.c: Likewise.
12208 * include/grub/elf.h: Likewise.
12209 * include/grub/xnu.h: Likewise.
12210 * include/grub/usbdesc.h: Likewise.
12211 * include/grub/usb.h: Likewise.
12212 * include/grub/script_sh.h: Likewise.
12213 * include/grub/lib/LzmaEnc.h: Likewise.
12214 * include/grub/efiemu/efiemu.h: Likewise.
12215 * include/grub/command.h: Likewise.
12216 * normal/menu.c: Likewise.
12217 * normal/main.c: Likewise.
12218 * normal/datetime.c: Likewise.
12219 * bus/usb/uhci.c: Likewise.
12220 * mmap/i386/uppermem.c: Likewise.
12221 * mmap/mmap.c: Likewise.
12222 * commands/acpi.c: Likewise.
12223 * commands/test.c: Likewise.
12224 * partmap/apple.c: Likewise.
12225 * font/font.c: Likewise.
12226 * loader/sparc64/ieee1275/linux.c: Likewise.
12227 * loader/macho.c: Likewise.
12228 * loader/i386/bsd_trampoline.S: Likewise.
12229 * loader/i386/bsd.c: Likewise.
12230 * loader/xnu.c: Likewise.
12231 * term/i386/pc/vesafb.c: Likewise.
12232 * term/usb_keyboard.c: Likewise.
12233 * util/resolve.c: Likewise.
12234 * util/getroot.c: Likewise.
12235
12236 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12237
12238 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
12239
12240 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12241
12242 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
12243 build error.
12244
12245 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12246
12247 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
12248 parameter only available on BIOS.
12249
12250 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12251
12252 Removed wrong semicolon in declaration
12253
12254 * grub/misc.h (grub_dprintf): remove semicolon
12255
12256 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12257
12258 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
12259 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
12260 is done by grub_cmd_linux() now).
12261 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
12262 restore video to text mode.
12263 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
12264 indicates lack of "vga=" parameter. "vga=0" is mapped to
12265 `GRUB_LINUX_VID_MODE_NORMAL'.
12266
12267 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12268
12269 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
12270 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
12271 and `normal/script.c'. Add `kern/rescue_reader.c',
12272 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
12273 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
12274 `grub_script.tab.c'.
12275
12276 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12277 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12279 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12280 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12281
12282 * Makefile.in: Remove duplicated 2008 in Copyright line.
12283
12284 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12285
12286 * util/misc.c (grub_util_warn): New function. Emits a warning
12287 unconditionally.
12288 * include/grub/util/misc.h (grub_util_warn): New declaration.
12289
12290 * util/i386/pc/grub-install.in: Understand --force and pass it down
12291 to grub-setup.
12292
12293 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
12294 down to setup().
12295 (setup): Improve error messages and add warnings when requested to
12296 install in odd layouts. Refuse to install using blocklists unless
12297 --force was set.
12298
12299 2009-05-04 martin f. krafft <madduck@madduck.net>
12300
12301 * disk/raid.c (grub_raid_scan_device): Improve debug message.
12302
12303 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12304
12305 Updated copyright year
12306
12307 * fs/hfsplus.c: updated copyright year
12308
12309 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12310
12311 HFS+ UUID
12312
12313 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
12314 in the space previously used by unused3
12315 (grub_hfsplus_uuid): new function
12316 (grub_hfsplus_fs): added uuid field
12317
12318 2009-05-03 Pavel Roskin <proski@gnu.org>
12319
12320 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
12321 suppress warnings. It's no longer needed.
12322 * disk/host.c: Likewise.
12323 * disk/ata_pthru.c: Likewise.
12324 * disk/loopback.c: Likewise.
12325 * hook/datehook.c: Likewise.
12326 * parttool/pcpart.c: Likewise.
12327 * fs/i386/pc/pxe.c: Likewise.
12328 * fs/ntfscomp.c: Likewise.
12329 * efiemu/main.c: Likewise.
12330 * mmap/mmap.c: Likewise.
12331 * commands/crc.c: Likewise.
12332 * commands/hexdump.c: Likewise.
12333 * commands/hdparm.c: Likewise.
12334 * commands/acpi.c: Likewise.
12335 * commands/echo.c: Likewise.
12336 * commands/minicmd.c: Likewise.
12337 * commands/blocklist.c: Likewise.
12338 * commands/memrw.c: Likewise.
12339 * commands/loadenv.c: Likewise.
12340 * commands/usbtest.c: Likewise.
12341 * commands/lsmmap.c: Likewise.
12342 * commands/boot.c: Likewise.
12343 * commands/parttool.c: Likewise.
12344 * commands/configfile.c: Likewise.
12345 * commands/search.c: Likewise.
12346 * commands/ieee1275/suspend.c: Likewise.
12347 * commands/cat.c: Likewise.
12348 * commands/i386/pc/pxecmd.c: Likewise.
12349 * commands/i386/pc/play.c: Likewise.
12350 * commands/i386/pc/halt.c: Likewise.
12351 * commands/i386/pc/vbeinfo.c: Likewise.
12352 * commands/i386/pc/vbetest.c: Likewise.
12353 * commands/lspci.c: Likewise.
12354 * commands/date.c: Likewise.
12355 * commands/handler.c: Likewise.
12356 * commands/ls.c: Likewise.
12357 * commands/test.c: Likewise.
12358 * commands/cmp.c: Likewise.
12359 * commands/efi/loadbios.c: Likewise.
12360 * commands/efi/fixvideo.c: Likewise.
12361 * commands/halt.c: Likewise.
12362 * commands/help.c: Likewise.
12363 * commands/reboot.c: Likewise.
12364 * hello/hello.c: Likewise.
12365 * script/sh/main.c: Likewise.
12366 * loader/xnu.c: Likewise.
12367 * term/terminfo.c: Likewise.
12368 * term/i386/pc/serial.c: Likewise.
12369 * term/usb_keyboard.c: Likewise.
12370
12371 2009-05-03 David S. Miller <davem@davemloft.net>
12372
12373 * normal/menu.c: Include grub/parser.h
12374
12375 2009-05-03 Pavel Roskin <proski@gnu.org>
12376
12377 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
12378 not char*.
12379 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
12380 Suggested by Javier Martín <lordhabbit@gmail.com>
12381
12382 * util/i386/pc/grub-mkrescue.in: Allow for the case when
12383 efiemu??.o doesn't exist.
12384 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
12385 copying.
12386
12387 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
12388
12389 FreeBSD 64-bit support
12390
12391 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
12392 and loader/i386/bsd_trampoline.S
12393 (bsd_mod_ASFLAGS): new variable
12394 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
12395 (FREEBSD_MODTYPE_KERNEL64): likewise
12396 (grub_bsd64_trampoline_start): likewise
12397 (grub_bsd64_trampoline_end): likewise
12398 (grub_bsd64_trampoline_selfjump): likewise
12399 (grub_bsd64_trampoline_gdt): likewise
12400 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
12401 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
12402 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
12403 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
12404 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12405 of "attrib" member
12406 * loader/i386/bsd_pagetable.c: new file
12407 * loader/i386/bsd_trampoline.S: likewise
12408 * loader/i386/bsd.c (ALIGN_QWORD): new macro
12409 (ALIGN_VAR): likewise
12410 (entry_hi): new variable
12411 (kern_end_mdofs): likewise
12412 (is_64bit): likewise
12413 (grub_freebsd_add_meta): use ALIGN_VAR
12414 (grub_e820_mmap): new declaration
12415 (grub_freebsd_add_mmap): new function
12416 (grub_freebsd_add_meta_module): support 64 bit kernels
12417 (grub_freebsd_list_modules): use ALIGN_VAR
12418 (gdt_descriptor): new declaration
12419 (grub_freebsd_boot): support 64 bit kernels
12420 (grub_bsd_elf64_hook): new function
12421 (grub_bsd_load_elf): support elf64
12422
12423 2009-05-03 Bean <bean123ch@gmail.com>
12424
12425 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
12426 after we get the result of if statement.
12427
12428 2009-05-03 Bean <bean123ch@gmail.com>
12429
12430 * Makefile.in (enable_efiemu): New variable.
12431
12432 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
12433 set.
12434 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
12435 path.
12436 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
12437 path, add -mno-red-zone option.
12438 (efiemu64_s.o): Likewise.
12439 (efiemu64.o): Use macro $^ for source file.
12440
12441 * configure.ac (--enable-efiemu): New option.
12442
12443 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12444
12445 xnu support
12446
12447 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
12448 (pkglib_MODULES): add xnu.mod
12449 (xnu_mod_SOURCES): new variable
12450 (xnu_mod_CFLAGS): likewise
12451 (xnu_mod_LDFLAGS): likewise
12452 (xnu_mod_ASFLAGS): likewise
12453 * conf/i386-pc.rmk: likewise
12454 * conf/x86_64-efi.rmk: likewise
12455 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
12456 new declaration
12457 * include/grub/i386/macho.h: new file
12458 * include/grub/i386/xnu.h: likewise
12459 * include/grub/macho.h: likewise
12460 * include/grub/machoload.h: likewise
12461 * include/grub/x86_64/macho.h: likewise
12462 * include/grub/x86_64/xnu.h: likewise
12463 * include/grub/xnu.h: likewise
12464 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
12465 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
12466 * loader/i386/efi/xnu.c: new file
12467 * loader/i386/pc/xnu.c: likewise
12468 * loader/i386/xnu.c: likewise
12469 * loader/i386/xnu_helper.S: likewise
12470 * loader/macho.c: likewise
12471 * loader/xnu.c: likewise
12472 * loader/xnu_resume.c: likewise
12473 * util/grub-dumpdevtree: likewise
12474 * include/grub/i386/pit.h: include grub/err.h
12475 (grub_pit_wait): export
12476 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
12477
12478 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 Efiemu
12481
12482 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
12483 _linux_efi, linux_efi.
12484 new files in grub-emu
12485 new targets efiemu32.o and efiemu64.o
12486 * loader/linux_normal_efiemu.c: likewise
12487 * loader/i386/efi/linux.c: added preliminary efiemu support
12488 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
12489 files to copy
12490 * include/grub/autoefi.h: new file
12491 * include/grub/i386/efiemu.h: likewise
12492 * include/grub/i386/pc/efiemu.h: likewise
12493 * include/grub/efi/api.h: add LL suffix when necessary
12494 new definitions relating to tables
12495 * include/grub/efiemu/efiemu.h: new file
12496 * include/grub/efiemu/runtime.h: likewise
12497 * efiemu/prepare.c: likewise
12498 * efiemu/loadcore_common.c: likewise
12499 * efiemu/loadcore64.c: likewise
12500 * efiemu/runtime/efiemu.sh: likewise
12501 * efiemu/runtime/efiemu.S: likewise
12502 * efiemu/runtime/efiemu.c: likewise
12503 * efiemu/runtime/config.h: likewise
12504 * efiemu/prepare32.c: likewise
12505 * efiemu/main.c: likewise
12506 * efiemu/modules/pnvram.c: likewise
12507 * efiemu/modules/i386: likewise
12508 * efiemu/modules/i386/pc: likewise
12509 * efiemu/modules/acpi.c: likewise
12510 * efiemu/i386/pc/cfgtables.c: likewise
12511 * efiemu/i386/loadcore64.c: likewise
12512 * efiemu/i386/loadcore32.c: likewise
12513 * efiemu/prepare64.c: likewise
12514 * efiemu/loadcore.c: likewise
12515 * efiemu/symbols.c: likewise
12516 * efiemu/mm.c: likewise
12517 * efiemu/loadcore32.c: likewise
12518
12519 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12520
12521 ACPI spoofing
12522
12523 * commands/acpi.c: new file
12524 * commands/i386/pc/acpi.c: likewise
12525 * commands/efi/acpi.c: likewise
12526 * include/grub/acpi.h: likewise
12527 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12528 (acpi_mod_SOURCES): new variable
12529 (acpi_mod_CFLAGS): likewise
12530 (acpi_mod_LDFLAGS): likewise
12531 * conf/i386-efi.rmk: likewise
12532 * conf/x86_64-efi.rmk: likewise
12533
12534 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12535
12536 Missing part from mmap patch
12537
12538 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12539 (grub_mmap_unregister)
12540 (grub_mmap_free_and_unregister): use grub_mmap_register
12541
12542 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12543
12544 Mmap services
12545
12546 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12547 * loader/i386/linux.c (find_mmap_size): likewise
12548 (allocate_pages): likewise
12549 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12550 (grub_fill_multiboot_mmap): likewise
12551 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12552 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12553 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12554 (OPENBSD_MMAP_RESERVED): likewise
12555 * include/grub/i386/pc/memory.h: include grub/memory.h
12556 (grub_lower_mem): removed
12557 (grub_upper_mem): likewise
12558 (GRUB_MACHINE_MEMORY_ACPI): new definition
12559 (GRUB_MACHINE_MEMORY_NVS): likewise
12560 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12561 (GRUB_MACHINE_MEMORY_HOLE): likewise
12562 (grub_machine_mmap_register): likewise
12563 (grub_machine_mmap_unregister): likewise
12564 (grub_machine_get_upper): likewise
12565 (grub_machine_get_lower): likewise
12566 (grub_machine_get_post64): likewise
12567 * include/grub/i386/efi/memory.h: new file
12568 * include/grub/x86_64/efi/memory.h: likewise
12569 * include/grub/efi/memory.h: likewise
12570 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12571 (mmap_mod_SOURCES): new variable
12572 (mmap_mod_LDFLAGS): likewise
12573 (mmap_mod_ASFLAGS): likewise
12574 * conf/i386-coreboot.rmk: likewise
12575 * conf/i386-ieee1275.rmk: likewise
12576 * conf/i386-efi.rmk: likewise
12577 * conf/x86_64-efi.rmk: likewise
12578 * include/grub/types.h (UINT_TO_PTR): new macro
12579 (PTR_TO_UINT32): likewise
12580 (PTR_TO_UINT64): likewise
12581 * include/grub/memory.h: new file
12582 * mmap/i386/pc/mmap.c: likewise
12583 * mmap/i386/pc/mmap_helper.S: likewise
12584 * mmap/i386/uppermem.c: likewise
12585 * mmap/mmap.c: likewise
12586 * mmap/efi/mmap.c: likewise
12587 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12588 grub_upper_mem
12589 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12590 (grub_upper_mem): likewise
12591 (grub_machine_init): don't use grub_upper_mem,
12592 make grub_lower_mem local
12593 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12594 grub_mmap_iterate and grub_mmap_get_upper
12595 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12596
12597 2009-05-02 Bean <bean123ch@gmail.com>
12598
12599 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12600 script/sh/parser.y.
12601 (pkglib_MODULES): Add normal.mod and sh.mod.
12602 (normal_SOURCES): New variable.
12603 (normal_mod_CFLAGS): Likewise.
12604 (normal_mod_LDFLAGS): Likewise.
12605 (sh_mod_SOURCES): Likewise.
12606 (sh_mod_CFLAGS): Likewise.
12607 (sh_mod_LDFLAGS): Likewise.
12608
12609 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12610 script/sh/lexer.c_DEPENDENCIES.
12611 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12612 kern/rescue_reader.c and kern/rescue_parser.c.
12613 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12614 (grub_emu_SOURCES): Change source files.
12615 (pkglib_MODULES): Remove normal.mod.
12616 (normal_SOURCES): Removed.
12617 (normal_mod_CFLAGS): Likewise.
12618 (normal_mod_LDFLAGS): Likewise.
12619 * conf/i386-coreboot.rmk: Likewise.
12620 * conf/i386-efi.rmk: Likewise.
12621 * conf/i386-ieee1276.rmk: Likewise.
12622 * conf/powerpc-ieee1275.rmk: Likewise.
12623 * conf/sparc64-ieee1275.rmk: Likewise.
12624 * conf/x86_64-efi.rmk: Likewise.
12625
12626 * include/grub/command.h (grub_command_execute): New inline function.
12627
12628 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12629
12630 * include/grub/normal.h: Remove <grub/setjmp.h>.
12631 (grub_fs_module_list): Moved to normal/autofs.c.
12632 (grub_exit_env): Removed.
12633 (grub_command_execute): Likewise.
12634 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12635 parameter script.
12636 (read_command_list): New function declaration.
12637 (read_fs_list): Likewise.
12638
12639 * include/parser.h: Include <grub/reader.h>.
12640 (grub_parser_split_cmdline): Change type of getline parameter.
12641 (grub_parser): New structure.
12642 (grub_parser_class): New variable.
12643 (grub_parser_execute): New function declaration.
12644 (grub_register_rescue_parser): Likewise.
12645 (grub_parser_register): New inline function.
12646 (grub_parser_unregister): Likewise.
12647 (grub_parser_get_current): Likewise.
12648 (grub_parser_set_current): Likewise.
12649
12650 * include/grub/reader.h: New file.
12651 * kern/reader.c: Likewise.
12652 * kern/rescue_parser.c: Likewise.
12653 * kern/rescue_reader.c: Likewise.
12654 * normal/autofs.c: Likewise.
12655 * normal/dyncmd.c: Likewise.
12656
12657 * include/grub/rescue.h: Removed.
12658 * normal/command.h: Likewise.
12659
12660 * include/grub/script.h: Moved to ...
12661 * include/grub/script_sh.h: ... Moved here.
12662 * normal/execute.c: Moved to ...
12663 * script/sh/execute.c: ... Moved here.
12664 * normal/function.c: Moved to ...
12665 * script/sh/function.c: ... Moved here.
12666 * normal/lexer.c: Moved to ...
12667 * script/sh/lexer.c: ... Moved here.
12668 * normal/parser.y: Moved to ...
12669 * script/sh/parser.y: ... Moved here.
12670 * normal/script.c: Moved to ...
12671 * script/sh/script.c: ... Moved here.
12672
12673 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12674 <grub/reader.h>.
12675 (grub_exit_env): Removed.
12676 (fs_module_list): Moved to normal/autofs.c.
12677 (grub_file_getline): Don't handle comment here.
12678 (free_menu): Skip removed field entry->commands.
12679 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12680 script parameter.
12681 (read_config_file): Removed nested parameter, change getline function.
12682 (grub_enter_normal_mode): Removed.
12683 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12684 (read_command_list): Likewise.
12685 (autoload_fs_module): Moved to normal/autofs.c.
12686 (read_fs_list): Likewise.
12687 (reader_nested): New variable.
12688 (grub_normal_execute): Run parser.sh to switch to sh parser.
12689 (grub_cmd_rescue): Removed.
12690 (cmd_normal): Removed.
12691 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12692 rescue command.
12693 (grub_cmdline_run): New function.
12694 (grub_normal_reader_init): Likewise.
12695 (grub_normal_read_line): Likewise.
12696 (grub_env_write_pager): Likewise.
12697 (cmdline): New variable.
12698 (grub_normal_reader): Likewise.
12699 (GRUB_MOD_INIT): Register normal reader and set as current, register
12700 pager hook, register normal command with grub_register_command_prio,
12701 so that it won't show up in command.lst.
12702 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12703 grub_fs_autoload_hook.
12704
12705 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12706 (grub_menu_execute_entry): Replace grub_script_execute with
12707 grub_parser_execute, change parameter to grub_command_execute.
12708
12709 * normal/menu_text.c: Remove <grub/script.h>.
12710
12711 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12712 and <grub/parser.h>.
12713 (run): Change editor_getline to use new parser interface. Change
12714 parameter to grub_command_execute.
12715
12716 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12717 <grub/reader.h> and <grub/parser.h>.
12718 (grub_load_normal_mode): Execute normal command.
12719 (grub_main): Call grub_register_core_commands,
12720 grub_register_rescue_parser and grub_register_rescue_reader, use
12721 grub_reader_loop to enter input loop.
12722
12723 * kern/parser.c (grub_parser_split_cmdline): Change type of
12724 getline parameter.
12725 (grub_parser_class): New variable.
12726 (grub_parser_execute): New function.
12727
12728 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12729 * loader/multiboot2.c: Likewise.
12730 * loader/sparc64/ieee1275/linux.c: Likewise.
12731
12732 * util/grub-emu.c (read_command_list): New dummy function.
12733
12734 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12735
12736 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12737 count to 16 for CCISS and IDA.
12738
12739 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12740
12741 * normal/menu_text.c (grub_wait_after_message): Print a newline
12742 after waiting for user input.
12743
12744 * loader/i386/linux.c: Include `<grub/normal.h>'.
12745 (grub_cmd_linux): Improve the error message about `ask' mode, by
12746 waiting for user input so it's not missed (we can do this, since
12747 user requested interaction).
12748
12749 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12750
12751 Added missing lst to grub-mkrescue
12752
12753 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12754 and ${input_dir}/parttool.lst
12755
12756 2009-04-30 David S. Miller <davem@davemloft.net>
12757
12758 * util/hostdisk.c (device_is_wholedisk): New function.
12759 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12760 zero only if device_is_wholedisk() returns true.
12761
12762 * util/hostdisk.c (convert_system_partition_to_system_disk):
12763 Handle virtual disk devices named /dev/vdiskX as found on sparc
12764 and powerpc.
12765
12766 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12767 lettered partition specifier is found, convert to numbered.
12768
12769 2009-04-29 David S. Miller <davem@davemloft.net>
12770
12771 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12772 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12773
12774 * normal/command.c: Add missing newline at end of file.
12775
12776 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12777 warnings.
12778 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12779 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12780 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12781 ihandles have a 32-bit type but need to be stored in a "void *".
12782
12783 2009-04-28 Pavel Roskin <proski@gnu.org>
12784
12785 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12786 not disk. Adjust all dependencies.
12787 (grub_fs_uuid_close): Use grub_device_close(), not
12788 grub_disk_close().
12789
12790 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12791 parent's partition, don't copy it by reference, as it gets freed
12792 on close.
12793
12794 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12795
12796 Preboot hooks support
12797
12798 * commands/boot.c (struct grub_preboot_t): new declaration
12799 (preboots_head): new variable
12800 (preboots_tail): likewise
12801 (grub_loader_register_preboot_hook): new function
12802 (grub_loader_unregister_preboot_hook): likewise
12803 (grub_loader_set): launch preboot hooks
12804 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12805 (grub_loader_register_preboot_hook): new declaration
12806 (grub_loader_unregister_preboot_hook): likewise
12807
12808 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 Warning fix
12811
12812 * disk/scsi.c (grub_scsi_open): added missing cast when
12813 calling grub_dprintf
12814
12815 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12816
12817 Bug and warning fixes
12818
12819 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12820 declaration
12821 * commands/test.c (test_parse): fixed bug with file tests and corrected
12822 declaration of find_file
12823
12824 2009-04-26 Pavel Roskin <proski@gnu.org>
12825
12826 * Makefile.in: Don't install empty manual pages if help2man is
12827 missing. Use help2man option for output, not shell redirection.
12828
12829 2009-04-26 David S. Miller <davem@davemloft.net>
12830
12831 * util/grub-mkdevicemap.c (make_device_map): Add missing
12832 NESTED_FUNC_ATTR to process_device().
12833
12834 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 Test command
12837
12838 * commands/test.c: rewritten to use bash-like test
12839
12840 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 Parttool autoloading and improvements
12843
12844 * Makefile.in (pkglib_DATA): add parttool.lst
12845 (parttool.lst): new target
12846 * genmk.rb: generate parttool-*
12847 (CLEANFILES): add #{parttool}
12848 (PARTTOOLFILES): new variable
12849 * genparttoollist.sh: new file
12850 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12851 (grub_pcpart_type): likewise
12852 * commands/parttool.c (helpmsg): new variable
12853 (grub_cmd_parttool): output help if not enough arguments are supplied
12854 autoload modules
12855 (GRUB_MOD_INIT(parttool)): use helpmsg
12856
12857 2009-04-24 David S. Miller <davem@davemloft.net>
12858
12859 Avoiding opening same device multiple times in device iterator.
12860
12861 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12862 and use it to build a list of partitions in iterate_disk() and
12863 iterate_partition().
12864
12865 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12866 on disk->data.
12867
12868 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12869 grub_devalias_iterate() result instead of unconditional 0.
12870 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12871 Also, capture hook return value, either directly or via
12872 grub_children_iterate(), and propagate to caller.
12873 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12874 grub_children_iterate): Return value is now 'int' instead of
12875 'grub_err_t'.
12876 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12877 like a proper iterator, stopping when hooks return non-zero.
12878 (grub_devalias_iterate): Likewise.
12879
12880 2009-04-23 David S. Miller <davem@davemloft.net>
12881
12882 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12883
12884 2009-04-22 David S. Miller <davem@davemloft.net>
12885
12886 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12887 is larger than address_cells, use that value for address_cells too.
12888
12889 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12890 IEEE1275_MAX_PATH_LEN): Define.
12891 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12892 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12893 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12894 'devtype'. Explicitly NULL terminate devalias expansion.
12895
12896 * util/sparc64/ieee1275/misc.c: New file.
12897 * util/sparc64/ieee1275/grub-setup.c: New file.
12898 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12899 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12900 * util/sparc64/ieee1275/grub-install.in: New file.
12901 * util/ieee1275/ofpath.c: New file.
12902 * util/ieee1275/devicemap.c: New file.
12903 * util/devicemap.c: New file.
12904 * util/deviceiter.c: New file.
12905 * kern/sparc64/ieee1275/init.c: New file.
12906 * include/grub/util/ofpath.h: New file.
12907 * include/grub/util/deviceiter.h: New file.
12908 * util/grub-mkdevicemap.c: Include deviceiter.h.
12909 Implement using grub_util_emit_devicemap_entry and
12910 grub_util_iterate_devices.
12911 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12912 util/devicemap.c into grub-mkdevicemap
12913 * conf/i386-efi.rmk: Likewise.
12914 * conf/i386-ieee1275.rmk: Likewise.
12915 * conf/i386-pc.rmk: Likewise.
12916 * conf/powerpc-ieee1275.rmk: Likewise.
12917 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12918 images and installation utilities. Build kernel as image
12919 instead of as elf binary. Use common rules as much as possible.
12920
12921 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12922
12923 Correct GPT definition
12924
12925 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12926 of "attrib" member
12927
12928 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12929
12930 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12931
12932 2009-04-19 David S. Miller <davem@davemloft.net>
12933
12934 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12935 (grub_rescue_cmd_linux): Rename to...
12936 (grub_cmd_linux): and fix prototype.
12937 (grub_rescue_cmd_initrd): Rename to...
12938 (grub_cmd_initrd): and fix prototype.
12939 (cmd_linux, cmd_initrd): New.
12940 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12941 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12942
12943 2009-04-17 Pavel Roskin <proski@gnu.org>
12944
12945 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12946 format.
12947 (grub_ohci_transfer): Likewise.
12948
12949 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12950
12951 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12952 return without a value. Fix inconsistent indentation.
12953
12954 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12955 match struct grub_fs.
12956
12957 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12958 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12959 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12960 * commands/lspci.c (grub_lspci_iter): Likewise.
12961
12962 2009-04-16 Bean <bean123ch@gmail.com>
12963
12964 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12965 value.
12966
12967 2009-04-15 Pavel Roskin <proski@gnu.org>
12968
12969 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12970 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12971 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12972 definitions.
12973
12974 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12975
12976 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12977 that no multiple data or metadata areas are supported and `Unknown
12978 metadata header'.
12979
12980 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 Move loader out of the kernel
12983
12984 * kern/loader.c: moved to ...
12985 * commands/boot.c: ... moved here
12986 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12987 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12988 * include/grub/kernel.h (grub_machine_fini): export
12989 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12990 (grub_loader_set): likewise
12991 (grub_loader_unset): likewise
12992 (grub_loader_boot): likewise
12993 * conf/common.rmk: new module boot.mod
12994 (pkglib_MODULES): add boot.mod
12995 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12996 (grub_emu_SOURCES): likewise
12997 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12998 (grub_emu_SOURCES): likewise
12999 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
13000 (grub_emu_SOURCES): likewise
13001 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
13002 (grub_emu_SOURCES): likewise
13003 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
13004 (grub_emu_SOURCES): likewise
13005 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
13006 (grub_emu_SOURCES): likewise
13007 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
13008 (grub_emu_SOURCES): likewise
13009
13010 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13011
13012 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
13013
13014 * kern/misc.c (grub_itoa): Removed function
13015 (grub_ltoa): likewise
13016 (grub_vsprintf): use grub_lltoa
13017
13018 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13019
13020 Restore grub-emu
13021
13022 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
13023 * conf/i386-coreboot.rmk: likewise
13024 * conf/i386-ieee1275.rmk: likewise
13025 * conf/powerpc-ieee1275.rmk: likewise
13026
13027 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
13028
13029 * INSTALL: Add that `./autogen.sh' needs to be run before
13030 `./configure.'.
13031
13032 2009-04-14 Bean <bean123ch@gmail.com>
13033
13034 * Makefile.in (pkglib_DATA): Add handler.lst.
13035 (handler.lst): New rule.
13036
13037 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
13038 * conf/i386-coreboot.rmk: Likewise.
13039 * conf/i386-ieee1275.rmk: Likewise.
13040 * conf/i386-efi.rmk: Likewise.
13041 * conf/x86_64-efi.rmk: Likewise.
13042 * conf/powerpc-ieee1275.rmk: Likewise.
13043 * conf/sparc64-ieee1275.rmk: Likewise.
13044
13045 * genhandlerlist.sh: New file.
13046
13047 * genmk.rb: Add rules to generate handler.lst.
13048
13049 * include/grub/normal.h (grub_file_getline): New function definition.
13050 (read_handler_list): Likewise.
13051 (free_handler_list): Likewise.
13052
13053 * include/grub/term.h (grub_term_register_input): Add name parameter
13054 for auto generation of handler.lst.
13055 (grub_term_register_output): Likewise.
13056
13057 * normal/handler.c: New file.
13058
13059 * normal/main.c (get_line): Renamed to grub_file_getline.
13060 (read_config_file): Use the newly renamed grub_file_getline.
13061 (read_command_list): Likewise.
13062 (read_fs_list): Likewise.
13063 (grub_normal_execute): Call read_handler_list to parse handler.lst.
13064 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
13065
13066 * term/efi/console.c (grub_console_init): Add name parameter for auto
13067 generation of handler.lst.
13068 * term/gfxterm.c: Likewise.
13069 * term/i386/pc/at_keyboard.c: Likewise.
13070 * term/i386/pc/console.c: Likewise.
13071 * term/i386/pc/serial.c: Likewise.
13072 * term/i386/pc/vesafb.c: Likewise.
13073 * term/i386/pc/vga.c: Likewise.
13074 * term/i386/pc/vga_text.c: Likewise.
13075 * term/ieee1275/ofconsole.c: Likewise.
13076 * term/usb_keyboard.c: Likewise.
13077
13078 2009-04-14 Bean <bean123ch@gmail.com>
13079
13080 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
13081 properly with null character.
13082
13083 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13084
13085 * configure: Remove.
13086 * config.h.in: Likewise.
13087 * stamp-h.in: Likewise.
13088 * DISTLIST: Likewise.
13089 * conf/common.mk: Likewise.
13090 * conf/i386-coreboot.mk: Likewise.
13091 * conf/i386-efi.mk: Likewise.
13092 * conf/i386-ieee1275.mk: Likewise.
13093 * conf/i386.mk: Likewise.
13094 * conf/i386-pc.mk: Likewise.
13095 * conf/powerpc-ieee1275.mk: Likewise.
13096 * conf/sparc64-ieee1275.mk: Likewise.
13097 * conf/x86_64-efi.mk: Likewise.
13098
13099 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
13100 develop on GRUB.
13101
13102 2009-04-14 John Stanley <jpsinthemix@verizon.net>
13103 David S. Miller <davem@davemloft.net>
13104
13105 * util/hostdisk.c (make_device_name): Fix buffer length
13106 calculations.
13107
13108 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13109
13110 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
13111 <sys/param.h> and <sys/sysctl.h>.
13112 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
13113 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
13114 opening the device and reset them afterwards.
13115
13116 2009-04-13 Pavel Roskin <proski@gnu.org>
13117
13118 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
13119 Reported by John Stanley <jpsinthemix@verizon.net>
13120
13121 2009-04-13 Robert Millan <rmh@aybabtu.com>
13122
13123 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
13124 that name for menuentries when appropriate.
13125
13126 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13127
13128 * util/grub.d/10_freebsd.in: Add a missing `fi'.
13129
13130 2009-04-13 Robert Millan <rmh@aybabtu.com>
13131
13132 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
13133 to Linux, simply abort telling the user it's no longer supported.
13134
13135 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13136
13137 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
13138 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
13139 `freebsd_loadenv' only when devices.hints exist.
13140
13141 2009-04-13 Pavel Roskin <proski@gnu.org>
13142
13143 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
13144
13145 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13146
13147 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
13148 partition number.
13149 (grub_drive): Likewise.
13150
13151 2009-04-13 David S. Miller <davem@davemloft.net>
13152
13153 * kern/sparc64/ieee1275/ieee1275.c: New file.
13154 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
13155 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
13156 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
13157 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
13158 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
13159 grub_ieee1275_alloc_physmem): Declare new exported functions.
13160
13161 * include/grub/sparc64/ieee1275/loader.h: New file.
13162 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13163 * include/grub/sparc64/kernel.h: Likewise.
13164 * loader/sparc64/ieee1275/linux.c: Likewise.
13165
13166 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
13167 (grub_fstest_SOURCES): Likewise.
13168
13169 * util/hostdisk.c (make_device_name): Do not make any assumptions
13170 about the length of drive names.
13171
13172 * kern/dl.c (grub_dl_load_file): Close file immediately when
13173 we are done using it.
13174
13175 2009-04-12 David S. Miller <davem@davemloft.net>
13176
13177 * kern/misc.c (grub_ltoa): Fix cast when handling negative
13178 values. Noticed by Pavel Roskin.
13179
13180 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
13181 target compiler.
13182
13183 * genmk.rb: Add more flexible image type specification, also
13184 pass --strip-unneeded to objcopy.
13185 * conf/i386-pc.rmk: Use *_FORMAT.
13186 * conf/i386-pc.mk: Rebuilt.
13187
13188 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
13189 (OFDISK_HASH_SZ): Define.
13190 (ofdisk_hash): New hash table.
13191 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
13192 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
13193 instead of device phandle which is not unique.
13194
13195 * kern/sparc64/ieee1275/init.c: Delete, replace with...
13196 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
13197 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
13198 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
13199 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
13200 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
13201 GRUB_KERNEL_MACHINE_DATA_END): Define.
13202 (grub_kernel_image_size, grub_total_module_size): Declare.
13203
13204 2009-04-12 Pavel Roskin <proski@gnu.org>
13205
13206 * configure.ac: Change the logic when we check for target tools.
13207 Do it when the target is specified and it's different from the
13208 specified value of the host.
13209
13210 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
13211
13212 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
13213 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
13214 GNU/kFreeBSD. Check if a device is a character device. Use
13215 DIOCGMEDIASIZE to get the size.
13216 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
13217 support for GNU/kFreeBSD.
13218 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
13219 is a character device instead of a block device. Add support for
13220 FreeBSD device names.
13221
13222 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
13223 is a character device instead of a block device.
13224
13225 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
13226 is a character device instead of a block device.
13227
13228 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
13229
13230 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
13231 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
13232 FreeBSD. Check if a device is a character device. Use
13233 DIOCGMEDIASIZE to get the size.
13234 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
13235 support for FreeBSD.
13236 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
13237 is a character device instead of a block device. Add support for
13238 FreeBSD device names.
13239
13240 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
13241 a character device instead of a block device.
13242 (grub_util_check_char_device): New function.
13243
13244 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
13245 a character device instead of a block device.
13246
13247 * include/grub/util/getroot.h (grub_util_check_char_device): New
13248 prototype.
13249
13250 2009-04-11 David S. Miller <davem@davemloft.net>
13251
13252 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
13253 static libgcc.
13254 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
13255 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
13256 function, if present.
13257 (__bswapdi2): Likewise.
13258
13259 * include/grub/sparc64/ieee1275/boot.h: New file.
13260 * boot/sparc64/ieee1275/boot.S: Likewise.
13261 * boot/sparc64/ieee1275/diskboot.S: Likewise.
13262
13263 * kern/misc.c (grub_ltoa): New function.
13264 (grub_vsprintf): Use it to format 'long' integers.
13265
13266 2009-04-10 David S. Miller <davem@davemloft.net>
13267
13268 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
13269 slots are of type grub_ieee1275_cell_t.
13270 (grub_nand_read): Likewise.
13271 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
13272 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
13273 macros are used to compare values in arg/ret block of the call.
13274 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13275 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
13276 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
13277 grub_ieee1275_instance_to_path, grub_ieee1275_write,
13278 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
13279 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
13280 grub_ieee1275_close, grub_ieee1275_set_property,
13281 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
13282 grub_ieee1275_cell_t.
13283 * kern/ieee1275/openfw.c (grub_map): Likewise.
13284 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
13285 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
13286
13287 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
13288 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13289 (grub_devalias_iterate): Likewise.
13290
13291 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13292
13293 UFS improvements
13294
13295 * fs/ufs.c (INODE_NBLOCKS): new definition
13296 (struct grub_ufs_dirent): added fields for non-BSD dirents
13297 (grub_ufs_get_file_block): fixed double indirect handling
13298 (grub_ufs_lookup_symlink): use more robust way to determine whether
13299 symlink is inline
13300 (grub_ufs_find_file): support for non-BSD dirents
13301 (grub_ufs_dir): support for non-BSD dirents
13302
13303 2009-04-10 Bean <bean123ch@gnail.com>
13304
13305 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
13306 attribute, otherwise the size would be wrong for i386 platform.
13307
13308 * include/grub/pci.h (grub_pci_read_word): New inline function.
13309 (grub_pci_read_byte): Likewise.
13310 (grub_pci_write): Likewise.
13311 (grub_pci_write_word): Likewise.
13312 (grub_pci_write_byte): Likewise.
13313
13314 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
13315
13316 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
13317 (find_framebuf): Scan pci to locate the frame buffer address.
13318
13319 * commands/efi/fixvideo.c: New file.
13320
13321 * commands/efi/loadbios.c: Likewise.
13322
13323 * commands/memrw.c: Likewise.
13324
13325 * util/grub-dumpbios.in: Likewise.
13326
13327 * conf/common.rmk (grub-dumpbios): New utility.
13328 (pkglib_MODULES): New module memrw.mod.
13329 (memrw_mod_SOURCE): New macro.
13330 (memrw_mod_CFLAGS): Likewise.
13331 (memrw_mod_LDFLAGS): Likewise.
13332
13333 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
13334 fixvideo.mod.
13335 (loadbios_mod_SOURCE): New macro.
13336 (loadbios_mod_CFLAGS): Likewise.
13337 (loadbios_mod_LDFLAGS): Likewise.
13338 (fixvideo_mod_SOURCE): Likewise.
13339 (fixvideo_mod_CFLAGS): Likewise.
13340 (fixvideo_mod_LDFLAGS): Likewise.
13341
13342 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
13343 fixvideo.mod.
13344 (loadbios_mod_SOURCE): New macro.
13345 (loadbios_mod_CFLAGS): Likewise.
13346 (loadbios_mod_LDFLAGS): Likewise.
13347 (fixvideo_mod_SOURCE): Likewise.
13348 (fixvideo_mod_CFLAGS): Likewise.
13349 (fixvideo_mod_LDFLAGS): Likewise.
13350
13351 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
13352
13353 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
13354
13355 2009-04-07 David S. Miller <davem@davemloft.net>
13356
13357 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
13358 support for R_SPARC_OLO10 relocations. Fix compile warning for
13359 R_SPARC_WDISP30 case.
13360 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
13361
13362 2009-04-06 Pavel Roskin <proski@gnu.org>
13363
13364 * include/grub/misc.h (ARRAY_SIZE): New macro.
13365 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
13366 New macro.
13367 * loader/i386/linux.c (allocate_pages): Use free_pages().
13368 (grub_linux_unload): Don't use free_pages().
13369 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
13370 wrong index. Treat all other modes as text modes.
13371 (grub_cmd_linux): Initialize vid_mode unconditionally to
13372 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
13373
13374 * commands/help.c (print_command_help): Use cmd->prio, not
13375 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
13376
13377 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 Parttool
13380
13381 * parttool/pcpart.c: new file
13382 * commands/parttool.c: likewise
13383 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
13384 (parttool_mod_SOURCES): new variable
13385 (parttool_mod_CFLAGS): likewise
13386 (parttool_mod_LDFLAGS): likewise
13387 (pcpart_mod_SOURCES): likewise
13388 (pcpart_mod_CFLAGS): likewise
13389 (pcpart_mod_LDFLAGS): likewise
13390 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
13391 and parttool/pcpart.c
13392 * conf/i386-efi.rmk: likewise
13393 * conf/i386-ieee1275.rmk: likewise
13394 * conf/i386-pc.rmk: likewise
13395 * conf/powerpc-ieee1275.rmk: likewise
13396 * conf/sparc64-ieee1275.rmk: likewise
13397 * conf/x86_64-ieee1275.rmk: likewise
13398
13399 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 Support for mtime and further expandability of dir command
13402
13403 * include/grub/lib/datetime.h: moved to ...
13404 * include/grub/datetime.h: ... moved here and added
13405 declaration of grub_unixtime2datetime. All users updated
13406 * include/grub/fs.h: new syntax for dir and mtime functions in
13407 struct grub_fs
13408 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
13409 and GRUB_FSHELP_FLAGS_MASK
13410 * commands/ls.c (grub_ls_list_files): Write mtime in long format
13411 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
13412 (grub_ext2_mtime): new function
13413 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
13414 (grub_hfsplus_mtime): new function
13415 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
13416 (GRUB_UFS_ATTR_FILE): likewise
13417 (GRUB_UFS_ATTR_LNK): likewise
13418 (struct grub_ufs_sblock): new fields mtime
13419 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
13420 all users updated
13421 (grub_ufs_dir): mtime support
13422 (grub_ufs_mtime): new function
13423 * fs/affs.c (grub_affs_dir): use new dir syntax
13424 * fs/afs.c (grub_afs_dir): likewise
13425 * fs/cpio.c (grub_cpio_dir): likewise
13426 * fs/fat.c (grub_fat_find_dir): likewise
13427 * fs/hfs.c (grub_hfs_dir): likewise
13428 * fs/iso9660.c (grub_iso9660_dir): likewise
13429 * fs/jfs.c (grub_jfs_dir): likewise
13430 * fs/minix.c (grub_minix_dir): likewise
13431 * fs/ntfs.c (grub_ntfs_dir): likewise
13432 * fs/reiserfs.c (grub_reiserfs_dir): likewise
13433 * fs/sfs.c (grub_sfs_dir): likewise
13434 * fs/xfs.c (grub_xfs_dir): likewise
13435 * util/hostfs.c (grub_hostfs_dir): likewise
13436 * lib/datetime.c: moved to ...
13437 * normal/datetime.c: ... moved here
13438 (grub_unixtime2datetime): new function
13439 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
13440 * normal/completion.c (iterate_dir): use new dir syntax
13441 * normal/misc.c (grub_normal_print_device_info): tell the
13442 last modification time of a volume
13443 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
13444 * conf/common.rmk: added lib/datetime.c to ls.mod
13445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
13446 (normal_mod_SOURCES): likewise
13447 (datetime_mod_SOURCES): Removed lib/datetime.c
13448 * conf/i386-efi.rmk: likewise
13449 * conf/i386-ieee1275.rmk: likewise
13450 * conf/i386-pc.rmk: likewise
13451 * conf/powerpc-ieee1275.rmk: likewise
13452 * conf/sparc64-ieee1275.rmk: likewise
13453 * conf/x86_64-efi.rmk: likewise
13454
13455 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13456
13457 Trim trailing spaces in FAT label and support mtools-like labels
13458
13459 * fs/fat.c (grub_fat_iterate_dir): New function based
13460 on grub_fat_find_dir
13461 (grub_fat_find_dir): use grub_fat_iterate_dir
13462 (grub_fat_label): likewise
13463
13464 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
13467 and command.h
13468 remove extraneous kernel_elf_HEADERS
13469
13470 2009-04-04 Bean <bean123ch@gnail.com>
13471
13472 * include/grub/util/misc.h: Add dummy function fsync for mingw.
13473
13474 * util/misc.c: Likewise.
13475
13476 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
13477
13478 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
13479 instead of grub_printf.
13480
13481 2009-04-03 Robert Millan <rmh@aybabtu.com>
13482
13483 * loader/i386/linux.c (grub_linux_setup_video): Fill
13484 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
13485 values from `mode info' structure instead of hardcoded
13486 values.
13487
13488 2009-04-01 Pavel Roskin <proski@gnu.org>
13489
13490 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
13491 unused now.
13492 * genmk.rb: Likewise.
13493 * configure.ac: Likewise.
13494
13495 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
13496
13497 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
13498 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
13499
13500 2009-04-01 David S. Miller <davem@davemloft.net>
13501
13502 * normal/sparc64/setjmp.S: Fix setjmp implementation.
13503 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
13504 (grub_setjmp): Mark with 'returns_twice' attribute.
13505 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
13506 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
13507 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
13508
13509 2009-04-01 Robert Millan <rmh@aybabtu.com>
13510
13511 Reapply fix from 2008-07-28 which was accidentally reverted; also
13512 perform the same fix to a similar check in same function.
13513
13514 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13515 with the same number are found, just use issue a warning with
13516 grub_dprintf(), as this error has been reported to be non-fatal.
13517
13518 2009-03-31 Pavel Roskin <proski@gnu.org>
13519
13520 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13521 for cross-compilation.
13522
13523 2009-03-30 Robert Millan <rmh@aybabtu.com>
13524
13525 Fix i386-ieee1275 build.
13526
13527 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13528 Remove declaration.
13529
13530 2009-03-30 Pavel Roskin <proski@gnu.org>
13531
13532 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13533 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13534 zero-terminated, rely only on the strlen value. Fix comparison
13535 of strings differing in length.
13536
13537 2009-03-30 Robert Millan <rmh@aybabtu.com>
13538
13539 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13540 checking for abi version. Improve error messages on BIOS to notify
13541 user about `linux16' command.
13542
13543 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13544
13545 Leak fixes
13546
13547 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13548 in case of collision
13549 * disk/scsi.c (grub_scsi_open): free scsi in case of error
13550
13551 2009-03-29 Robert Millan <rmh@aybabtu.com>
13552
13553 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13554 set `vid_mode' accordingly.
13555 (grub_linux_boot): Process `vid_mode' and set video mode.
13556
13557 2009-03-29 Robert Millan <rmh@aybabtu.com>
13558
13559 * util/grub.d/10_linux.in (linux_entry): New function.
13560 Factorize generation of Linux boot entries.
13561
13562 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13563
13564 Make the format of Environment Block plain text. The boot loader
13565 part is not tested well yet.
13566
13567 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13568 (buffer): Removed.
13569 (envblk): Likewise.
13570 (usage): Remove "info" and "clear". Add "unset". Update the
13571 description of "set", as this does not delete variables any
13572 longer.
13573 (create_envblk_file): Complete rewrite.
13574 (open_envblk_file): Likewise.
13575 (cmd_info): Removed.
13576 (cmd_list): Likewise.
13577 (cmd_set): Likewise.
13578 (cmd_clear): Likewise.
13579 (list_variables): New function.
13580 (write_envblk): Likewise.
13581 (set_variables): Likewise.
13582 (unset_variables): Likewise.
13583 (main): Complete rewrite.
13584
13585 * commands/loadenv.c (buffer): Removed.
13586 (envblk): Likewise.
13587 (open_envblk_file): New function.
13588 (read_envblk_file): Complete rewrite.
13589 (grub_cmd_load_env): Likewise.
13590 (grub_cmd_list_env): Likewise.
13591 (struct blocklist): New struct.
13592 (free_blocklists): New function.
13593 (check_blocklists): Likewise.
13594 (write_blocklists): Likewise.
13595 (grub_cmd_save_env): Complete rewrite.
13596
13597 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13598 a plain text signature.
13599 (GRUB_ENVBLK_MAXLEN): Removed.
13600 (struct grub_envblk): Complete rewrite.
13601 (grub_envblk_find): Removed.
13602 (grub_envblk_insert): Likewise.
13603 (grub_envblk_open): New prototype.
13604 (grub_envblk_set): Likewise.
13605 (grub_envblk_delete): Put const to VALUE.
13606 (grub_envblk_iterate): Put const to NAME and VALUE.
13607 (grub_envblk_close): New prototype.
13608 (grub_envblk_buffer): New inline function.
13609 (grub_envblk_size): Likewise.
13610
13611 * lib/envblk.c: Include grub/mm.h.
13612 (grub_env_find): Removed.
13613 (grub_envblk_open): New function.
13614 (grub_envblk_close): Likewise.
13615 (escaped_value_len): Likewise.
13616 (find_next_line): Likewise.
13617 (grub_envblk_insert): Removed.
13618 (grub_envblk_set): New function.
13619 (grub_envblk_delete): Complete rewrite.
13620 (grub_envblk_iterate): Likewise.
13621
13622 2009-03-28 Robert Millan <rmh@aybabtu.com>
13623
13624 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13625 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13626 variables. Use 16-bit loader.
13627 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13628 loader.
13629 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13630 (grub_linux16_boot): ... this. Update all users.
13631 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13632 (grub_linux_boot): ... this. Update all users.
13633
13634 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13635 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13636 commands to `linux16' and `initrd16'.
13637 (GRUB_MOD_FINI(linux)): Rename to ...
13638 (GRUB_MOD_FINI(linux16)): ... this.
13639
13640 2009-03-24 Pavel Roskin <proski@gnu.org>
13641
13642 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13643 not just for compilation.
13644
13645 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13646
13647 Move multiboot helper out of kernel
13648
13649 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13650 `loader/i386/multiboot_helper.S'.
13651 * conf/i386-coreboot.rmk: Likewise
13652 * conf/i386-ieee1275.rmk: Likewise
13653
13654 * kern/i386/loader.S: Move multiboot helpers from here...
13655 * loader/i386/multiboot_helper.S: ...moved here
13656 * include/grub/i386/loader.h: Move declarations of multiboot
13657 helpers from here...
13658 * include/grub/i386/multiboot.h: ...moved here
13659 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13660
13661 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13662
13663 * kern/env.c (grub_env_context_open): Added an argument to specify
13664 whether a new context inherits exported variables from current
13665 one. This is useful when making a sandbox to interpret a config
13666 file.
13667 All callers updated.
13668
13669 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13670
13671 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13672
13673 * kern/env.c (grub_env_context_close): Fix memory leaks.
13674
13675 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13676
13677 * normal/main.c (grub_normal_execute): Added an argument
13678 BATCH to specify if an interactive interface should be provided
13679 after reading a config file.
13680 All callers updated.
13681 (read_command_list): Prevent being executed twice.
13682 (read_fs_list): Likewise.
13683
13684 * include/grub/normal.h (grub_normal_execute): Updated the
13685 prototype.
13686
13687 2009-03-22 Pavel Roskin <proski@gno.org>
13688
13689 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13690 _start.
13691 * kern/i386/pc/startup.S: Likewise.
13692 * kern/i386/efi/startup.S: Likewise.
13693 * kern/i386/ieee1275/startup.S: Likewise.
13694 * kern/i386/coreboot/startup.S: Likewise.
13695 * kern/x86_64/efi/startup.S: Likewise.
13696
13697 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13698 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13699 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13700
13701 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13702
13703 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13704
13705 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13706 limit detection.
13707 Use vaddr of correct segment for entry_point.
13708
13709 2009-03-21 Bean <bean123ch@gmail.com>
13710
13711 * commands/blocklist.c: Add include file <grub/command.h>, remove
13712 <grub/normal.h> and <grub/arg.h>.
13713 (grub_cmd_blocklist): Use the new command interface.
13714 (GRUB_MOD_INIT): Likewise.
13715 (GRUB_MOD_FINI): Likewise.
13716 * commands/boot.c: Likewise.
13717 * commands/cat.c: Likewise.
13718 * commands/cmp.c: Likewise.
13719 * commands/configfile.c: Likewise.
13720 * commands/crc.c: Likewise.
13721 * commands/echo.c: Likewise.
13722 * commands/halt.c: Likewise.
13723 * commands/handler.c: Likewise.
13724 * commands/hdparm.c: Likewise.
13725 * commands/help.c: Likewise.
13726 * commands/hexdump.c: Likewise.
13727 * commands/loadenv.c: Likewise.
13728 * commands/ls.c: Likewise.
13729 * commands/lsmmap.c: Likewise.
13730 * commands/lspci.c: Likewise.
13731 * commands/loadenv.c: Likewise.
13732 * commands/read.c: Likewise.
13733 * commands/reboot.c: Likewise.
13734 * commands/search.c: Likewise.
13735 * commands/sleep.c: Likewise.
13736 * commands/test.c: Likewise.
13737 * commands/usbtest.c: Likewise.
13738 * commands/videotest.c: Likewise.
13739 * commands/i386/cpuid.c: Likewise.
13740 * commands/i386/pc/halt.c: Likewise.
13741 * commands/i386/pc/play.c: Likewise.
13742 * commands/i386/pc/pxecmd.c: Likewise.
13743 * commands/i386/pc/vbeinfo.c: Likewise.
13744 * commands/i386/pc/vbetest.c: Likewise.
13745 * commands/ieee1275/suspend.c: Likewise.
13746 * disk/loopback.c: Likewise.
13747 * font/font_cmd.c: Likewise.
13748 * hello/hello.c: Likewise.
13749 * loader/efi/appleloader.c: Likewise.
13750 * loader/efi/chainloader.c: Likewise.
13751 * loader/i386/bsd.c: Likewise.
13752 * loader/i386/efi/linux.c: Likewise.
13753 * loader/i386/ieee1275/linux.c: Likewise.
13754 * loader/i386/linux.c: Likewise.
13755 * loader/i386/pc/chainloader.c: Likewise.
13756 * loader/i386/pc/linux.c: Likewise.
13757 * loader/powerpc/ieee1275/linux.c: Likewise.
13758 * loader/multiboot_loader.c: Likewise.
13759 * term/gfxterm.c: Likewise.
13760 * term/i386/pc/serial.c: Likewise.
13761 * term/terminfo.c: Likewise.
13762
13763 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13764 * term/i386/pc/vga.c: Likewise.
13765 * video/readers/jpeg.c: Likewise.
13766 * video/readers/png.c: Likewise.
13767 * video/readers/tga.c: Likewise.
13768
13769 * util/grub-fstest (cmd_loopback): Removed.
13770 (cmd_blocklist): Likewise.
13771 (cmd_ls): Likewise.
13772 (grub_register_command): Likewise.
13773 (grub_unregister_command): Likewise.
13774 (execute_command): Use grub_command_find to locate command and execute
13775 it.
13776
13777 * include/grub/efi/chainloader.h: Removed.
13778 * loader/efi/chainloader_normal.c: Likewise.
13779 * loader/i386/bsd_normal.c: Likewise.
13780 * loader/i386/pc/chainloader_normal.c: Likewise.
13781 * loader/i386/pc/multiboot_normal.c: Likewise.
13782 * loader/linux_normal.c: Likewise.
13783 * loader/multiboot_loader_normal.c: Likewise.
13784 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13785
13786 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13787 and grub_register_command_p1.
13788
13789 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13790 kern/command.c, lib/arg.c and commands/extcmd.c.
13791 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13792 (minicmd_mod_SOURCES): New variable.
13793 (minicmd_mod_CFLAGS): Likewise.
13794 (minicmd_mod_LDFLAGS): Likewise.
13795 (extcmd_mod_SOURCES): Likewise.
13796 (extcmd_mod_CFLAGS): Likewise.
13797 (extcmd_mod_LDFLAGS): Likewise.
13798 (boot_mod_SOURCES): Removed.
13799 (boot_mod_CFLAGS): Likewise.
13800 (boot_mod_LDFLAGS): Likewise.
13801
13802 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13803 kern/corecmd.c.
13804 (kernel_img_HEADERS): Add command.h.
13805 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13806 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13807 and lib/arg.c.
13808 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13809 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13810 remove the corresponding normal mode command.
13811 (normal_mod_SOURCES): Remove normal/arg.c.
13812 * conf/i386-coreboot.rmk: Likewise.
13813 * conf/i386-efi.rmk: Likewise.
13814 * conf/i386-ieee1275.rmk: Likewise.
13815 * conf/powerpc-ieee1275.rmk: Likewise.
13816 * conf/x86_64-efi.rmk: Likewise.
13817
13818 * include/grub/arg.h: Move from here ...
13819 * include/grub/lib/arg.h: ... to here.
13820
13821 * normal/arg.c: Move from here ...
13822 * lib/arg.c: ... to here.
13823
13824 * commands/extcmd.c: New file.
13825 * commands/minicmd.c: Likewise.
13826 * include/grub/command.h: Likewise.
13827 * include/grub/extcmd.h: Likewise.
13828 * kern/command.c: Likewise.
13829 * kern/corecmd.c: Likewise.
13830
13831 * kern/list.c (grub_list_iterate): Return int instead of void.
13832 (grub_list_insert): New function.
13833 (grub_prio_list_insert): Likewise.
13834
13835 * kern/rescue.c (grub_rescue_command): Removed.
13836 (grub_rescue_command_list): Likewise.
13837 (grub_rescue_register_command): Likewise.
13838 (grub_rescue_unregister_command): Likewise.
13839 (grub_rescue_cmd_boot): Move to minicmd.c
13840 (grub_rescue_cmd_help): Likewise.
13841 (grub_rescue_cmd_info): Likewise.
13842 (grub_rescue_cmd_boot): Likewise.
13843 (grub_rescue_cmd_testload): Likewise.
13844 (grub_rescue_cmd_dump): Likewise.
13845 (grub_rescue_cmd_rmmod): Likewise.
13846 (grub_rescue_cmd_lsmod): Likewise.
13847 (grub_rescue_cmd_exit): Likewise.
13848 (grub_rescue_print_devices): Moved to corecmd.c.
13849 (grub_rescue_print_files): Likewise.
13850 (grub_rescue_cmd_ls): Likewise.
13851 (grub_rescue_cmd_insmod): Likewise.
13852 (grub_rescue_cmd_set): Likewise.
13853 (grub_rescue_cmd_unset): Likewise.
13854 (attempt_normal_mode): Use grub_command_find to get normal module.
13855 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13856 commands, remove grub_rescue_register_command calls.
13857
13858 * normal/command.c (grub_register_command): Removed.
13859 (grub_unregister_command): Likewise.
13860 (grub_command_find): Likewise.
13861 (grub_iterate_commands): Likewise.
13862 (rescue_command): Likewise.
13863 (export_command): Moved to corecmd.c.
13864 (set_command): Removed.
13865 (unset_command): Likewise.
13866 (insmod_command): Likewise.
13867 (rmmod_command): Likewise.
13868 (lsmod_command): Likewise.
13869 (grub_command_init): Likewise.
13870
13871 * normal/completion.c (iterate_command): Use cmd->prio to check for
13872 active command.
13873 (complete_arguments): Use grub_extcmd_t structure to find options.
13874 (grub_normal_do_completion): Change function grub_iterate_commands to
13875 grub_command_iterate.
13876
13877 * normal/execute.c (grub_script_execute_cmd): No need to parse
13878 argument here.
13879
13880 * normal/main.c (grub_dyncmd_dispatcher): New function.
13881 (read_command_list): Register unload commands as dyncmd.
13882 (grub_cmd_normal): Use new command interface, register rescue,
13883 unregister normal at entry, register normal, unregister rescue at exit.
13884
13885 * include/grub/list.h (grub_list_test_t): New type.
13886 (grub_list_iterate): Return int instead of void.
13887 (grub_list_insert): New function.
13888 (GRUB_AS_NAMED_LIST_P): New macro.
13889 (GRUB_AS_PRIO_LIST): Likewise.
13890 (GRUB_AS_PRIO_LIST_P): Likewise.
13891 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13892 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13893 (grub_prio_list): New structure.
13894 (grub_prio_list_insert): New function.
13895 (grub_prio_list_remove): New inline function.
13896
13897 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13898 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13899 (GRUB_COMMAND_FLAG_MENU): Likewise.
13900 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13901 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13902 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13903 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13904 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13905 (grub_command): Likewise.
13906 (grub_register_command): Likewise.
13907 (grub_command_find): Likewise.
13908 (grub_iterate_commands): Likewise.
13909 (grub_command_init): Likewise.
13910 (grub_arg_parse): Likewise.
13911 (grub_arg_show_help): Likewise.
13912
13913 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13914 (grub_rescue_unregister_command): Likewise.
13915
13916 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13917 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13918 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13919
13920 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13921 grub_rescue_cmd_initrd.
13922 * include/grub/i386/loader.h: Likewise.
13923 * include/grub/x86_64/loader.h: Likewise.
13924
13925 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13926
13927 2009-03-21 Bean <bean123ch@gmail.com>
13928
13929 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13930 instead of stat in mingw environment.
13931
13932 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13933
13934 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13935
13936 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13937 AC_CONFIG_LINKS.
13938
13939 2009-03-21 Bean <bean123ch@gmail.com>
13940
13941 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13942 out of range error.
13943
13944 2009-03-18 Michel Dänzer <michel@daenzer.net>
13945
13946 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13947 checking inode flags for EXT4_EXTENTS_FLAG.
13948
13949 2009-03-18 Robert Millan <rmh@aybabtu.com>
13950
13951 * loader/i386/linux.c: Include `<grub/video.h>' and
13952 `<grub/i386/pc/vbe.h>'..
13953 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13954 (grub_linux32_boot): Attempt to configure video settings with
13955 grub_linux_setup_video().
13956 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13957 to avoid grub_console_fini() which would step out of graphical mode
13958 unconditionally.
13959
13960 2009-03-14 Robert Millan <rmh@aybabtu.com>
13961
13962 Fix build on powerpc.
13963 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13964
13965 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13966
13967 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13968 background image command.
13969
13970 2009-03-12 Colin D Bennett <colin@gibibit.com>
13971
13972 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13973 (grub_gfxterm_putchar): Extract pairs of identical calls to
13974 draw_cursor out of conditional blocks.
13975
13976 2009-03-11 Pavel Roskin <proski@gnu.org>
13977
13978 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13979 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13980
13981 2009-03-11 Robert Millan <rmh@aybabtu.com>
13982
13983 * loader/i386/multiboot_elfxx.c
13984 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13985
13986 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13987
13988 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13989 `kern/handler.c'.
13990
13991 2009-03-11 Robert Millan <rmh@aybabtu.com>
13992
13993 * loader/i386/multiboot.c (code_size): New variable.
13994 (grub_multiboot): Define offsets by adding to `code_size' rather
13995 than subtracting from `grub_multiboot_payload_size'. Provide
13996 4-byte alignment to MBI and others by increasing
13997 `boot_loader_name_length' appropriately.
13998
13999 * loader/i386/multiboot_elfxx.c
14000 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
14001
14002 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
14003
14004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
14005 `fs/ext2.c'.
14006
14007 2009-03-08 Robert Millan <rmh@aybabtu.com>
14008
14009 Make loader/i386/linux.c usable on i386-pc again.
14010
14011 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
14012 memory to heap.
14013 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
14014 `#error' stanza.
14015
14016 2009-03-07 Bean <bean123ch@gmail.com>
14017
14018 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
14019 allocation.
14020
14021 2009-03-06 Robert Millan <rmh@aybabtu.com>
14022
14023 Fix display issue on terminals with screen size other than 80x25
14024 (e.g. gfxterm with resolution higher than 640x480).
14025
14026 * normal/main.c (grub_normal_init_page): Display title text in a
14027 position relative to the center of the terminal instead of relying
14028 on a hardcoded offset.
14029
14030 2009-03-04 Robert Millan <rmh@aybabtu.com>
14031
14032 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
14033 installed.
14034
14035 * Makefile.in (host_kernel): New variable.
14036 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
14037 scripts instead of just the windows one.
14038 * configure.ac: Initialize and AC_SUBST `host_kernel'.
14039
14040 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14041
14042 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
14043 `kern/handler.c'.
14044 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14045 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14046 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14048 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14049 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14050
14051 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14052
14053 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
14054 or if there's no space for the disk label and print the partition number on a
14055 invalid magic.
14056
14057 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14058
14059 * util/misc.c: Include <time.h>.
14060 (grub_millisleep): New function.
14061
14062 2009-03-04 Bean <bean123ch@gmail.com>
14063
14064 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
14065 another option -mno-red-zone.
14066
14067 * commands/handler.c: Change module description.
14068
14069 * kern/handler.c: Add missing space at the end of description line.
14070
14071 * kern/list.c: Likewise.
14072
14073 2009-03-03 Robert Millan <rmh@aybabtu.com>
14074
14075 Move more components to the relocation area, and fix mbi pointer
14076 handling to use the destination rather than the origin (thanks to
14077 Vladimir Serbinenko for spotting).
14078
14079 * loader/i386/multiboot.c (mbi_dest): New variable.
14080 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
14081 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
14082 relocation area.
14083
14084 2009-03-01 Bean <bean123ch@gmail.com>
14085
14086 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
14087 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
14088 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
14089 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
14090
14091 * loader/i386/efi/linux.c (acpi_guid): New variable.
14092 (acpi_guid): Likewise.
14093 (EBDA_SEG_ADDR): New constant.
14094 (LOW_MEM_ADDR): Likewise.
14095 (FAKE_EBDA_SEG): Likewise.
14096 (fake_bios_data): New function.
14097 (grub_linux_boot): Call fake_bios_data.
14098
14099 2009-03-01 Bean <bean123ch@gmail.com>
14100
14101 * commands/terminal.c: Removed.
14102
14103 * commands/handler.c: New file.
14104
14105 * include/grub/list.h: Likewise.
14106
14107 * include/grub/handler.h: Likewise.
14108
14109 * kern/list.c: Likewise.
14110
14111 * kern/handler.c: Likewise.
14112
14113 * kern/term.h: Include header file <grub/handler.h>.
14114 (grub_term_input): Move next field to the beginning.
14115 (grub_term_output): Likewise.
14116 (grub_term_input_class): New variable.
14117 (grub_term_output_class): Likewise.
14118 (grub_term_register_input): Changed to inline function.
14119 (grub_term_register_output): Likewise.
14120 (grub_term_unregister_input): Likewise.
14121 (grub_term_unregister_output): Likewise.
14122 (grub_term_set_current_input): Likewise.
14123 (grub_term_set_current_output): Likewise.
14124 (grub_term_get_current_input): Likewise.
14125 (grub_term_get_current_output): Likewise.
14126 (grub_term_iterate_input): Removed.
14127 (grub_term_iterate_output): Likewise.
14128
14129 * kern/term.c (grub_term_list_input): Removed.
14130 (grub_term_list_output): Likewise.
14131 (grub_term_input_class): New variable.
14132 (grub_term_output_class): Likewise.
14133 (grub_cur_term_input): Change variable as macro.
14134 (grub_cur_term_output): Likewise.
14135 (grub_term_register_input): Removed.
14136 (grub_term_register_output): Likewise.
14137 (grub_term_unregister_input): Likewise.
14138 (grub_term_unregister_output): Likewise.
14139 (grub_term_set_current_input): Likewise.
14140 (grub_term_set_current_output): Likewise.
14141 (grub_term_iterate_input): Likewise.
14142 (grub_term_iterate_output): Likewise.
14143 (grub_term_get_current_input): Likewise.
14144 (grub_term_get_current_output): Likewise.
14145
14146 * util/grub-editenv.c: Include header file <grub/handler.h>.
14147 (grub_term_get_current_input): Removed.
14148 (grub_term_get_current_output): Likewise.
14149 (grub_term_input_class): New variable.
14150 (grub_term_output_class): Likewise.
14151
14152 * util/grub-fstest.c (grub_term_get_current_input): Removed.
14153 (grub_term_get_current_output): Likewise.
14154 (grub_term_input_class): New variable.
14155 (grub_term_output_class): Likewise.
14156
14157 * util/grub-probe.c (grub_term_get_current_input): Removed.
14158 (grub_term_get_current_output): Likewise.
14159 (grub_term_input_class): New variable.
14160 (grub_term_output_class): Likewise.
14161
14162 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
14163 (grub_term_get_current_output): Likewise.
14164 (grub_term_input_class): New variable.
14165 (grub_term_output_class): Likewise.
14166
14167 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
14168 (terminal_mod_SOURCES): Likewise.
14169 (terminal_mod_CFLAGS): Likewise.
14170 (terminal_mod_LDFLAGS): Likewise.
14171
14172 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
14173 handler.c.
14174 (kernel_img_SOURCES): Add list.c and handler.c.
14175 (kernel_img_HEADERS): Add list.h and handler.h.
14176
14177 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14178 handler.c.
14179 (kernel_mod_SOURCES): Add list.c and handler.c.
14180 (kernel_mod_HEADERS): Add list.h and handler.h.
14181
14182 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
14183 handler.c.
14184 (kernel_elf_SOURCES): Add list.c and handler.c.
14185 (kernel_elf_HEADERS): Add list.h and handler.h.
14186
14187 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14188 handler.c.
14189 (kernel_elf_SOURCES): Add list.c and handler.c.
14190 (kernel_elf_HEADERS): Add list.h and handler.h.
14191
14192 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14193 handler.c.
14194 (kernel_mod_SOURCES): Add list.c and handler.c.
14195 (kernel_mod_HEADERS): Add list.h and handler.h.
14196
14197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14198 handler.c.
14199 (kernel_elf_SOURCES): Add list.c and handler.c.
14200 (kernel_elf_HEADERS): Add list.h and handler.h.
14201
14202 2009-02-27 Robert Millan <rmh@aybabtu.com>
14203
14204 Factorize elf32 / elf64 code in Multiboot loader. This will
14205 prevent it from getting out of sync again.
14206
14207 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
14208 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
14209 grub_multiboot_load_elf64): Move from here ...
14210 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
14211 grub_multiboot_load_elf): ... to here (new file).
14212
14213 2009-02-27 Robert Millan <rmh@aybabtu.com>
14214
14215 * util/grub.d/10_linux.in: Rename "single-user mode" to
14216 "recovery mode".
14217
14218 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
14219
14220 Don't leak in SCSI code.
14221 * disk/scsi.c (grub_scsi_close): free `scsi'.
14222
14223 2009-02-27 Robert Millan <rmh@aybabtu.com>
14224
14225 * loader/i386/pc/multiboot.c: Move from here ...
14226 * loader/i386/multiboot.c: ... to here. Update all users.
14227
14228 2009-02-27 Robert Millan <rmh@aybabtu.com>
14229
14230 Patch from Alexandre Bique <bique.alexandre@gmail.com>
14231 * util/i386/pc/grub-setup.c (setup): Fix directory path.
14232
14233 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
14234
14235 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
14236 b-tree.
14237
14238 2009-02-27 Robert Millan <rmh@aybabtu.com>
14239
14240 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
14241 `0x' qualifier as 0 when base is specified as parameter).
14242
14243 2009-02-24 Bean <bean123ch@gmail.com>
14244
14245 * configure.ac: Check for -mcmodel=large in x86_64 target.
14246
14247 * include/grub/efi/api.h (efi_call_10): New macro.
14248 (efi_wrap_10): New function.
14249
14250 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
14251 (GRUB_PE32_REL_BASED_HIGH): Likewise.
14252 (GRUB_PE32_REL_BASED_LOW): Likewise.
14253 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
14254 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
14255 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
14256 (GRUB_PE32_REL_BASED_SECTION): Likewise.
14257 (GRUB_PE32_REL_BASED_REL): Likewise.
14258 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
14259 (GRUB_PE32_REL_BASED_DIR64): Likewise.
14260 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
14261
14262 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
14263 issue.
14264
14265 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
14266 (efi_wrap_10): New function.
14267
14268 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
14269
14270 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
14271 MB/MBP model (NV chipset).
14272 (devdata_devs): Add devpath_5 to the list.
14273
14274 * load/i386/efi/linux.c (video_base): Remove variable.
14275 (RGB_MASK): New macro.
14276 (RGB_MAGIC): Likewise.
14277 (LINE_MIN): Likewise.
14278 (LINE_MAX): Likewise.
14279 (FBTEST_STEP): Likewise.
14280 (FBTEST_COUNT): Likewise.
14281 (fb_list): New variable.
14282 (grub_find_video_card): Remove function.
14283 (find_framebuf): New function.
14284 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
14285 line length.
14286
14287 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
14288 problem for x86_64.
14289
14290 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
14291
14292 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
14293
14294 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
14295 coding tool name.
14296
14297 2009-02-22 Robert Millan <rmh@aybabtu.com>
14298
14299 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
14300 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
14301 in our relocation, instead of using it directly from heap. Also
14302 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
14303
14304 2009-02-21 Robert Millan <rmh@aybabtu.com>
14305
14306 Implement USB keyboard support (based on patch by Marco Gerards)
14307
14308 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
14309 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
14310 (usb_keyboard_mod_LDFLAGS): New variables.
14311
14312 * term/usb_keyboard.c: New file.
14313
14314 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14315
14316 Corrected wrong declaration
14317
14318 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
14319
14320 2009-02-14 Christian Franke <franke@computer.org>
14321
14322 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
14323 (grub_lspci_iter): Print class code and programming interface byte.
14324
14325 2009-02-14 Christian Franke <franke@computer.org>
14326
14327 * gendistlist.sh: Ignore `.svn' directories.
14328
14329 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
14330
14331 * fs/fat.c: Add 2009 to Copyright line.
14332
14333 2009-02-14 Christian Franke <franke@computer.org>
14334
14335 * commands/hdparm.c: New file. Provides `hdparm' command
14336 which sends ATA commands via grub_disk_ata_pass_through ().
14337
14338 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
14339
14340 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
14341 and <grub/cpu/io.h> to include/grub/ata.h.
14342 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
14343 (GRUB_CDROM_SECTOR_SIZE): Remove.
14344 (GRUB_ATA_*): Move to include/grub/ata.h.
14345 (GRUB_ATAPI_*): Likewise.
14346 (enum grub_ata_commands): Likewise.
14347 (enum grub_ata_timeout_milliseconds): Likewise.
14348 (struct grub_ata_device): Likewise.
14349 (grub_ata_regset): Likewise.
14350 (grub_ata_regget): Likewise.
14351 (grub_ata_regset2): Likewise.
14352 (grub_ata_regget2): Likewise.
14353 (grub_ata_check_ready): Likewise.
14354 (grub_ata_wait_not_busy): Remove static, exported in
14355 include/grub/ata.h.
14356 (grub_ata_wait_drq): Likewise.
14357 (grub_ata_pio_read): Likewise.
14358
14359 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
14360 function for hdparm.mod.
14361
14362 * include/grub/ata.h: New file, contains declarations from
14363 disk/ata.c.
14364 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
14365
14366 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
14367 (grub_disk_ata_pass_through): New exported variable.
14368
14369 * kern/disk.c (grub_disk_ata_pass_through): New variable.
14370
14371 2009-02-13 Colin D Bennett <colin@gibibit.com>
14372
14373 Support multiple fallback entries, and provide an API to support
14374 executing default+fallback menu entries. Renamed the `terminal' menu
14375 viewer to `text'.
14376
14377 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
14378 variable declaration.
14379 (grub_menu_execute_callback): New structure declaration.
14380 (grub_menu_execute_callback_t): New typedef.
14381 (grub_menu_execute_with_fallback): New function declaration.
14382 (grub_menu_get_entry): Likewise.
14383 (grub_menu_get_timeout): Likewise.
14384 (grub_menu_set_timeout): Likewise.
14385
14386 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
14387
14388 * normal/menu.c (grub_wait_after_message): Moved to
14389 `normal/menu_text.c'.
14390 (draw_border): Likewise.
14391 (print_message): Likewise.
14392 (print_entry): Likewise.
14393 (print_entries): Likewise.
14394 (grub_menu_init_page): Likewise.
14395 (get_entry_number): Likewise.
14396 (print_timeout): Likewise.
14397 (run_menu): Likewise.
14398 (grub_menu_execute_entry): Likewise.
14399 (show_text_menu): Likewise.
14400 (get_and_remove_first_entry_number): New function.
14401 (grub_menu_execute_with_fallback): Likewise.
14402 (get_entry): Renamed to ...
14403 (grub_menu_get_entry): .. this and made it global.
14404 (get_timeout): Renamed to ...
14405 (grub_menu_get_timeout): ... this and made it global.
14406 (set_timeout): Renamed to ...
14407 (grub_menu_set_timeout): ... this and made it global.
14408 (grub_normal_terminal_menu_viewer): Renamed to ...
14409 (grub_normal_text_menu_viewer): ... this.
14410
14411 * normal/menu_text.c: New file. Extracted text-menu-specific code
14412 from normal/menu.c.
14413
14414 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
14415 (normal_mod_SOURCES): Likewise.
14416
14417 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14418 (normal_mod_SOURCES): Likewise.
14419
14420 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14421 (normal_mod_SOURCES): Likewise.
14422
14423 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
14424 (normal_mod_SOURCES): Likewise.
14425
14426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14427 (normal_mod_SOURCES): Likewise.
14428
14429 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14430 (normal_mod_SOURCES): Likewise.
14431
14432 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14433 (normal_mod_SOURCES): Likewise.
14434
14435 2009-02-11 Robert Millan <rmh@aybabtu.com>
14436
14437 * util/grub.d/00_header.in: Update old reference to `font' command.
14438
14439 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
14440
14441 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
14442
14443 Based on patch from Javier Martín.
14444
14445 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14446
14447 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
14448 to avoid false positives with FAT.
14449 (grub_fstest_SOURCES): Likewise.
14450 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14451 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14454 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14455 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14456
14457 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14458
14459 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
14460 bpb.version_specific.fat12_or_fat16.fstype and
14461 bpb.version_specific.fat32.fstype.
14462
14463 2009-02-08 Robert Millan <rmh@aybabtu.com>
14464
14465 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
14466
14467 2009-02-08 Robert Millan <rmh@aybabtu.com>
14468
14469 * Makefile.in (host_os, host_cpu): New variables.
14470 (target_os): Remove. Update all users.
14471
14472 2009-02-08 Marco Gerards <marco@gnu.org>
14473
14474 * Makefile.in (enable_grub_emu_usb): New variable.
14475 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
14476 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
14477 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
14478 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
14479 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
14480 `usbtest.mod' and `usbms.mod'.
14481 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
14482 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
14483 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
14484 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
14485 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
14486 variables.
14487
14488 * disk/usbms.c: New file.
14489
14490 * include/grub/usb.h: Likewise.
14491
14492 * include/grub/usbtrans.h: Likewise.
14493
14494 * include/grub/usbdesc.h: Likewise.
14495
14496 * bus/usb/usbtrans.c: Likewise.
14497
14498 * bus/usb/ohci.c: Likewise.
14499
14500 * bus/usb/uhci.c: Likewise.
14501
14502 * bus/usb/usbhub.c: Likewise.
14503
14504 * bus/usb/usb.c: Likewise.
14505
14506 * commands/usbtest.c: Likewise.
14507
14508 * util/usb.c: Likewise.
14509
14510 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
14511
14512 * configure.ac: Test for libusb presence.
14513
14514 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14515
14516 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14517
14518 * kern/mm.c: Add more comments.
14519
14520 2009-02-08 Robert Millan <rmh@aybabtu.com>
14521
14522 Patch from Javier Martín.
14523 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14524 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14525
14526 2009-02-08 Robert Millan <rmh@aybabtu.com>
14527
14528 * fs/cpio.c: Split tar functionality to ...
14529 * fs/tar.c: ... here (new file). Update all users.
14530
14531 2009-02-07 Robert Millan <rmh@aybabtu.com>
14532
14533 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14534 backward-incompatible features.
14535
14536 Based on patch from Javier Martín, with some adjustments.
14537
14538 2009-02-07 Michael Scherer <misc@mandriva.org>
14539
14540 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14541
14542 2009-02-07 Robert Millan <rmh@aybabtu.com>
14543
14544 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14545 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14546 after the RAID stuff.
14547
14548 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14549
14550 Fixes problem when running vbetest command as reported by
14551 Vladimir Serbinenko <phcoder@gmail.com>.
14552
14553 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14554
14555 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
14556
14557 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14558 /dev/md/NpN style mdraid devices.
14559
14560 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14561
14562 * util/unifont2pff.rb: Remove.
14563
14564 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14565
14566 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14567 `#'.
14568
14569 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14570
14571 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14572 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14573 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14574 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14577 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14578
14579 2009-02-02 Christian Franke <franke@computer.org>
14580
14581 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14582
14583 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
14584
14585 * INSTALL: Note that we now require at least autoconf 2.59 and
14586 that LZO is optional.
14587
14588 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14589
14590 Base on patch on bug #24154 created by Tomas Tintera
14591 <trosos@seznam.cz>.
14592
14593 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14594
14595 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14596
14597 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14598 <bero@arklinux.org>.
14599
14600 * normal/parser.y (script_init): Add missing semicolon.
14601
14602 2009-01-31 Colin D Bennett <colin@gibibit.com>
14603
14604 * normal/main.c: Add include to grub/menu_viewer.h.
14605 (free_menu_entry_classes): Added.
14606 (grub_normal_menu_addentry): Added class property handling.
14607 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14608 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14609
14610 * normal/menu_viewer.c: New file.
14611
14612 * normal/menu.c (run_menu_entry): Renamed to ...
14613 (grub_menu_execute_entry): ... this and made it as global.
14614 (grub_menu_run): Renamed to ...
14615 (show_text_menu): ... this and made it local.
14616 (show_text_menu): Adapt to new function names.
14617 (grub_normal_terminal_menu_viewer): New global variable.
14618
14619 * include/grub/menu.h: New file.
14620
14621 * include/grub/menu_viewer.h: New file.
14622
14623 * include/grub/normal.h: Added include to grub/menu.h.
14624 (grub_menu_entry): Moved to include/grub/menu.h.
14625 (grub_menu_entry_t): Likewise.
14626 (grub_menu): Likewise.
14627 (grub_menu_t): Likewise.
14628 (grub_normal_terminal_menu_viewer): Added.
14629 (grub_menu_execute_entry): Likewise.
14630 (grub_menu_run): Removed.
14631
14632 * DISTLIST: Added include/grub/menu.h.
14633 Added include/grub/menu_viewer.h.
14634 Added normal/menu_viewer.c.
14635
14636 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14637
14638 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14639 arglist for menutitle arguments.
14640
14641 * normal/main.c (grub_normal_menu_addentry): Likewise.
14642
14643 * normal/parser.y (menuentry): Likewise.
14644
14645 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14646
14647 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14648 (grub_script_create_cmdmenu): Likewise.
14649
14650 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14651
14652 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14653 changes.
14654
14655 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14656
14657 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14658
14659 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14660
14661 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14662
14663 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14664
14665 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14666
14667 2009-01-30 Christian Franke <franke@computer.org>
14668
14669 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14670 in option help text.
14671
14672 2009-01-27 Pavel Roskin <proski@gnu.org>
14673
14674 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14675
14676 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14677
14678 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14679
14680 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14681
14682 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14683 unregister function.
14684
14685 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14686
14687 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14688
14689 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14690
14691 * util/grub-mkfont.c (usage): Fix typo.
14692
14693 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14694
14695 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14696
14697 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14698
14699 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14700
14701 * kern/misc.c (grub_strcasecmp): New function.
14702 (grub_strcasecmp): Use grub_size_t instead of int for length.
14703 Fix return value.
14704 * include/grub/misc.h: Update function prototypes.
14705
14706 2009-01-26 Robert Millan <rmh@aybabtu.com>
14707
14708 * configure.ac: Fix cross-compilation check.
14709
14710 2009-01-22 Christian Franke <franke@computer.org>
14711
14712 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14713 (precision) digit string. Allow `.format2' without `format1' (width).
14714 Limit input chars for `%s' output to `format2' if specified. This is
14715 compatible with standard printf ().
14716
14717 2009-01-22 Christian Franke <franke@computer.org>
14718
14719 * disk/ata.c (grub_ata_wait_status): Replace by ...
14720 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14721 other status bits may be invalid while BSY is asserted.
14722 (grub_ata_check_ready): New function.
14723 (grub_ata_cmd): Removed.
14724 (grub_ata_wait_drq): New function.
14725 (grub_ata_strncpy): Remove inline.
14726 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14727 and error check now done by grub_ata_wait_drq ().
14728 (grub_ata_pio_write): Likewise.
14729 (grub_atapi_identify): Set DEV before check for !BSY. Use
14730 grub_ata_wait_drq () to wait for data.
14731 (grub_ata_device_initialize): Add status register check to
14732 detect missing SATA slave devices. Add debug messages.
14733 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14734 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14735 transfer loop by grub_ata_pio_write ().
14736 (grub_ata_identify): Set DEV before check for !BSY. Use
14737 grub_ata_wait_drq () to wait for data.
14738 (grub_ata_setaddress): Set DEV before check for !BSY.
14739 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14740 read/write in one loop. Fix invalid command on write. Fix incomplete
14741 command on (size % batch) == 0. Add missing error check after write of
14742 last block. Add debug messages.
14743 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14744
14745 2009-01-19 Christian Franke <franke@computer.org>
14746
14747 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14748 (GRUB_ATAPI_IREASON_*): Likewise.
14749 (grub_ata_pio_write): Fix timeout error return.
14750 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14751 (grub_atapi_wait_drq): New function.
14752 (grub_atapi_packet): New parameter `size'.
14753 Use grub_atapi_wait_drq () and direct write instead of
14754 grub_ata_pio_write ().
14755 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14756 reads the number of bytes requested by the device for each DRQ
14757 assertion.
14758 (grub_atapi_write): Remove old implementation, return not
14759 implemented instead.
14760
14761 2009-01-19 Christian Franke <franke@computer.org>
14762
14763 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14764 of 512 to calculate data size.
14765 (grub_scsi_read12): Likewise.
14766 (grub_scsi_write10): Likewise.
14767 (grub_scsi_write12): Likewise.
14768 (grub_scsi_read): Adjust size according to blocksize.
14769 Add checks for invalid blocksize and unaligned transfer.
14770
14771 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14772
14773 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14774
14775 * term/gfxterm.c (write_char): Fix background rendering for wide
14776 width glyphs.
14777
14778 2009-01-19 Robert Millan <rmh@aybabtu.com>
14779
14780 * config.guess: Update to latest version from config git.
14781 * config.sub: Likewise.
14782
14783 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14784
14785 * Makefile.in: Change font compilation to use new grub-mkfont instead
14786 of java version.
14787
14788 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14789 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14790 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14791 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14792 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14793 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14794 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14795 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14796 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14797
14798 2009-01-16 Christian Franke <franke@computer.org>
14799
14800 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14801 (enum grub_ata_timeout_milliseconds): New enum.
14802 (grub_ata_wait_status): Add parameter milliseconds.
14803 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14804 recovery from timed-out commands.
14805 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14806 return grub_errno instead of REG_ERROR.
14807 (grub_ata_pio_write): Add parameter milliseconds.
14808 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14809 Pass milliseconds to grub_ata_wait_status () and
14810 grub_ata_pio_read ().
14811 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14812 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14813 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14814 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14815 It is not suitable for device detection, because DEV bit is ignored,
14816 the command may run too long, and not all devices set the signature
14817 properly.
14818 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14819 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14820 Fix device selection, DEV bit must be set first to address the registers
14821 of the correct device.
14822 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14823 grub_ata_pio_read/write ().
14824 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14825 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14826
14827 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14828
14829 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14830
14831 2009-01-13 Bean <bean123ch@gmail.com>
14832
14833 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14834
14835 2009-01-13 Bean <bean123ch@gmail.com>
14836
14837 * Makefile.in: (enable_grub_mkfont): New variable.
14838 (freetype_cflags): Likewise.
14839 (freetype_libs): Likewise.
14840
14841 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14842 (grub_mkfont_SOURCES): New variable.
14843 (grub_mkfont_CFLAGS): Likewise.
14844 (grub_mkfont_LDFLAGS): Likewise.
14845
14846 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14847 library if `--enable-grub-mkfont' is requested.
14848 (enable_grub_mkfont): New variable.
14849 (freetype_cflags): Likewise.
14850 (freetype_libs): Likewise.
14851
14852 * util/grub-mkfont.c: New file.
14853
14854 2009-01-12 Christian Franke <franke@computer.org>
14855
14856 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14857 mode check. Fix setting of compat_use[].
14858
14859 2009-01-10 Robert Millan <rmh@aybabtu.com>
14860
14861 Update a few copyright years which we forgot to do in 2008 (only for
14862 files whose changes made in 2008 were copyright-significant)
14863
14864 * Makefile.in: Add 2008 to Copyright line.
14865 * disk/ieee1275/ofdisk.c: Likewise.
14866 * disk/efi/efidisk.c: Likewise.
14867 * kern/dl.c: Likewise.
14868 * kern/sparc64/ieee1275/init.c: Likewise.
14869 * kern/mm.c: Likewise.
14870 * kern/efi/mm.c: Likewise.
14871 * boot/i386/pc/boot.S: Likewise.
14872 * genfslist.sh: Likewise.
14873 * fs/iso9660.c: Likewise.
14874 * fs/hfs.c: Likewise.
14875 * fs/jfs.c: Likewise.
14876 * fs/minix.c: Likewise.
14877 * fs/ufs.c: Likewise.
14878 * gensymlist.sh.in: Likewise.
14879 * genkernsyms.sh.in: Likewise.
14880 * include/grub/misc.h: Likewise.
14881 * include/grub/types.h: Likewise.
14882 * include/grub/symbol.h: Likewise.
14883 * include/grub/elf.h: Likewise.
14884 * include/grub/kernel.h: Likewise.
14885 * include/grub/disk.h: Likewise.
14886 * include/grub/dl.h: Likewise.
14887 * include/grub/i386/linux.h: Likewise.
14888 * include/grub/i386/pc/biosdisk.h: Likewise.
14889 * include/grub/efi/api.h: Likewise.
14890 * include/grub/efi/pe32.h: Likewise.
14891 * include/grub/util/misc.h: Likewise.
14892 * normal/execute.c: Likewise.
14893 * normal/arg.c: Likewise.
14894 * normal/completion.c: Likewise.
14895 * normal/lexer.c: Likewise.
14896 * normal/parser.y: Likewise.
14897 * normal/misc.c: Likewise.
14898 * commands/i386/pc/vbeinfo.c: Likewise.
14899 * commands/hexdump.c: Likewise.
14900 * commands/terminal.c: Likewise.
14901 * commands/ls.c: Likewise.
14902 * commands/help.c: Likewise.
14903 * partmap/pc.c: Likewise.
14904 * loader/efi/chainloader.c: Likewise.
14905 * loader/multiboot_loader.c: Likewise.
14906 * loader/i386/pc/multiboot2.c: Likewise.
14907 * term/efi/console.c: Likewise.
14908 * term/i386/pc/serial.c: Likewise.
14909 * util/lvm.c: Likewise.
14910 * util/console.c: Likewise.
14911 * util/i386/efi/grub-mkimage.c: Likewise.
14912 * util/raid.c: Likewise.
14913
14914 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14915
14916 * commands/videotest.c: Removed include to grub/machine/memory.h.
14917
14918 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14919 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14920 (video_mod_SOURCES): Removed.
14921 (video_mod_CFLAGS): Likewise.
14922 (video_mod_LDFLAGS): Likewise.
14923 (gfxterm_mod_SOURCES): Likewise.
14924 (gfxterm_mod_CFLAGS): Likewise.
14925 (gfxterm_mod_LDFLAGS): Likewise.
14926 (videotest_mod_SOURCES): Likewise.
14927 (videotest_mod_CFLAGS): Likewise.
14928 (videotest_mod_LDFLAGS): Likewise.
14929 (bitmap_mod_SOURCES): Likewise.
14930 (bitmap_mod_CFLAGS): Likewise.
14931 (bitmap_mod_LDFLAGS): Likewise.
14932 (tga_mod_SOURCES): Likewise.
14933 (tga_mod_CFLAGS): Likewise.
14934 (tga_mod_LDFLAGS): Likewise.
14935 (jpeg_mod_SOURCES): Likewise.
14936 (jpeg_mod_CFLAGS): Likewise.
14937 (jpeg_mod_LDFLAGS): Likewise.
14938 (png_mod_SOURCES): Likewise.
14939 (png_mod_CFLAGS): Likewise.
14940 (png_mod_LDFLAGS): Likewise.
14941
14942 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14943 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14944 (video_mod_SOURCES): Added.
14945 (video_mod_CFLAGS): Likewise.
14946 (video_mod_LDFLAGS): Likewise.
14947 (videotest_mod_SOURCES): Likewise.
14948 (videotest_mod_CFLAGS): Likewise.
14949 (videotest_mod_LDFLAGS): Likewise.
14950 (bitmap_mod_SOURCES): Likewise.
14951 (bitmap_mod_CFLAGS): Likewise.
14952 (bitmap_mod_LDFLAGS): Likewise.
14953 (tga_mod_SOURCES): Likewise.
14954 (tga_mod_CFLAGS): Likewise.
14955 (tga_mod_LDFLAGS): Likewise.
14956 (jpeg_mod_SOURCES): Likewise.
14957 (jpeg_mod_CFLAGS): Likewise.
14958 (jpeg_mod_LDFLAGS): Likewise.
14959 (png_mod_SOURCES): Likewise.
14960 (png_mod_CFLAGS): Likewise.
14961 (png_mod_LDFLAGS): Likewise.
14962 (gfxterm_mod_SOURCES): Likewise.
14963 (gfxterm_mod_CFLAGS): Likewise.
14964 (gfxterm_mod_LDFLAGS): Likewise.
14965
14966 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14967 grub/machine/console.h.
14968
14969 2009-01-04 Jerone Young <jerone@gmail.com>
14970
14971 Make on screen instructions clearer
14972
14973 Based on patch created by Jidanni <jidanni@jidanni.org>
14974
14975 * normal/menu.c: print clearer instructions on the screen
14976
14977 2009-01-02 Colin D Bennett <colin@gibibit.com>
14978
14979 New font engine.
14980
14981 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14982 build system and fixed gfxterm.c to work with different sized fonts.
14983
14984 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14985
14986 * configure: Re-generated.
14987
14988 * DISTLIST: Removed font/manager.c.
14989 Added font/font.c.
14990 Added font/font_cmd.c.
14991
14992 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14993 compilation.
14994
14995 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14996
14997 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14998
14999 * kern/term.c: Changed users of grub_utf8_to_ucs4.
15000
15001 * normal/menu.c: Likewise.
15002
15003 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
15004 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
15005
15006 * include/grub/font.h: Replaced with new file.
15007
15008 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
15009 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
15010 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
15011 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
15012 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
15013 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
15014 fg_red, fg_green, fg_blue, fg_alpha.
15015 (grub_video_adapter): Removed blit_glyph.
15016 (grub_video_blit_glyph): Removed.
15017
15018 * font/manager.c: Removed file.
15019
15020 * font/font.c: New file.
15021
15022 * font/font_cmd.c: Likewise.
15023
15024 * video/video.c (grub_video_blit_glyph): Removed.
15025
15026 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
15027 (grub_video_vbe_map_rgba): Likewise.
15028 (grub_video_vbe_unmap_color_int): Likewise.
15029 (grub_video_vbe_blit_glyph): Removed.
15030 (grub_video_vbe_adapter): Removed blit_glyph.
15031
15032 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
15033 (get_pixel): Likewise.
15034 (set_pixel): Likewise.
15035
15036 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
15037
15038 * term/gfxterm.c: Adapted to new font engine.
15039
15040 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
15041
15042 * term/i386/pc/vga.c: Likewise.
15043
15044 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
15045
15046 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
15047
15048 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15049
15050 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15051
15052 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
15053
15054 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
15055
15056 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
15057
15058 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
15059
15060 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
15061
15062 * util/grub.d/00_header.in: Changed to use new loadfont command.
15063
15064 * util/grub-mkconfig_lib.in: Changed font extension.
15065
15066 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
15067
15068 * util/getroot.c (grub_util_get_grub_dev): Add support for
15069 /dev/md/dNNpNN style partitionable mdraid devices.
15070
15071 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
15072
15073 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
15074 at a time limit of the PXE TFTP API correctly.
15075 (grub_pxefs_close): Likewise.
15076
15077 2008-11-29 Robert Millan <rmh@aybabtu.com>
15078
15079 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
15080 grub_ata_device_initialize() calls.
15081
15082 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
15083
15084 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
15085 iteration failed.
15086 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
15087
15088 2008-11-28 Robert Millan <rmh@aybabtu.com>
15089
15090 Fix build on powerpc-ieee1275. Based on patch created by
15091 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
15092 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15093 `kern/ieee1275/mmap.c'.
15094 * include/grub/powerpc/ieee1275/memory.h: New file.
15095
15096 Provide grub-install on coreboot.
15097 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
15098 (grub_install_SOURCES): New variable.
15099 * util/i386/pc/grub-install.in: Add a few condition checks to make it
15100 usable on coreboot.
15101
15102 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
15103
15104 * util/grub-fstest.c (grub_term_get_current_input): Change return type
15105 to `grub_term_input_t'.
15106 (grub_term_get_current_output): Change return type to
15107 `grub_term_output_t'.
15108
15109 2008-11-22 Robert Millan <rmh@aybabtu.com>
15110
15111 Fix breakage on coreboot due to declaration mismatch.
15112 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
15113 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
15114 grub_vga_text_cls().
15115
15116 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
15117 comments. Avoid copying one more byte than necessary (just in case).
15118
15119 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
15120 to 0x200000 (avoids trouble with some OFW implementations, and matches
15121 with the one in Yaboot).
15122 Reported by Manoel Abranches
15123
15124 2008-11-20 Robert Millan <rmh@aybabtu.com>
15125
15126 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
15127 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
15128
15129 * util/grub-mkconfig_lib.in (grub_warn): New function.
15130 (convert_system_path_to_grub_path): Use grub_warn() when issuing
15131 warnings, to obtain consistent formatting.
15132 * util/grub.d/00_header.in: Likewise.
15133 * util/update-grub_lib.in: Likewise.
15134
15135 * loader/i386/linux.c (allocate_pages): Fix a warning.
15136 Move comment text to `#error' stanza.
15137
15138 Harmonize ieee1275's grub_available_iterate() with the generic
15139 grub_machine_mmap_iterate() interface (fixes a recently-introduced
15140 build problem on i386-ieee1275):
15141 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
15142 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
15143 parameter `type'. Update all users of this function.
15144 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
15145 `kern/ieee1275/mmap.c'.
15146 * kern/ieee1275/init.c
15147 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
15148 with ...
15149 (grub_machine_mmap_iterate): ... this.
15150 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
15151 return type to `grub_err_t'. Update all implementations of this
15152 function prototype.
15153 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
15154 Likewise.
15155
15156 Add `lsmmap' command (lists firmware-provided memory map):
15157 * commands/lsmmap.c: New file.
15158 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
15159 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
15160 variables.
15161 * conf/powerpc-ieee1275.rmk: Likewise.
15162 * conf/i386-coreboot.rmk: Likewise.
15163 * conf/i386-ieee1275.rmk: Likewise.
15164
15165 2008-11-19 Robert Millan <rmh@aybabtu.com>
15166
15167 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
15168 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
15169 constraints to initrd allocation (based on code from
15170 loader/i386/pc/linux.c). Without them, initrd was allocated too high
15171 for Linux to find it.
15172
15173 2008-11-14 Robert Millan <rmh@aybabtu.com>
15174
15175 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
15176 order to cope with duplicate slashes.
15177
15178 2008-11-14 Robert Millan <rmh@aybabtu.com>
15179
15180 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
15181 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
15182 don't want to mess with lower memory, because it is used in the Linux
15183 loader.
15184
15185 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
15186 an appropriate place in lower memory, between 0x10000 and 0x90000,
15187 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
15188 is in our heap (probably as a result of it being corrupted during
15189 decompression). Add #error instance with comment to explain why this
15190 loader isn't currently usable on PC/BIOS.
15191
15192 2008-11-14 Robert Millan <rmh@aybabtu.com>
15193
15194 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
15195 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
15196
15197 2008-11-12 Robert Millan <rmh@aybabtu.com>
15198
15199 Make loader/i386/linux.c buildable on i386-pc (although disabled).
15200
15201 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
15202 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
15203 from here ...
15204 * include/grub/i386/pc/memory.h: ... to here.
15205
15206 2008-11-12 Robert Millan <rmh@aybabtu.com>
15207
15208 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
15209 split).
15210
15211 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
15212 (grub_console_cur_color, grub_console_real_putchar)
15213 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15214 (grub_console_setcolorstate, grub_console_setcolor)
15215 (grub_console_getcolor): Move from here ...
15216 * include/grub/i386/vga_common.h: ... to here (new file).
15217
15218 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
15219 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
15220 `<grub/i386/io.h>'.
15221 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
15222 `<grub/i386/vga_common.h>'.
15223
15224 2008-11-12 Robert Millan <rmh@aybabtu.com>
15225
15226 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
15227 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
15228 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
15229 variables.
15230 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15231 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
15232
15233 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
15234 grub_console_init() with call to grub_vga_text_init().
15235 (grub_machine_fini): Replace call to
15236 grub_console_fini() with call to grub_vga_text_fini() and
15237 grub_at_keyboard_fini().
15238
15239 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
15240 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15241 (grub_console_setcolorstate, grub_console_setcolor)
15242 (grub_console_getcolor): New function prototypes.
15243
15244 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
15245 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
15246 (grub_vga_text_setcursor): Static-ize.
15247 (grub_vga_text_term): New structure.
15248 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
15249
15250 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
15251 (grub_console_cur_color, grub_console_standard_color)
15252 (grub_console_normal_color, grub_console_highlight_color)
15253 (map_char, grub_console_putchar, grub_console_getcharwidth)
15254 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
15255 (grub_console_getcolor): Move from here ...
15256 * term/i386/vga_common.c: ... to here (same function names).
15257
15258 2008-11-12 Robert Millan <rmh@aybabtu.com>
15259
15260 Use newly-added Multiboot support in coreboot.
15261
15262 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15263 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
15264
15265 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
15266 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
15267 (codestart): Store the MBI in `startup_multiboot_info' when we're
15268 being loaded using Multiboot.
15269
15270 * kern/i386/coreboot/init.c (grub_machine_init): Move
15271 grub_at_keyboard_init() call to beginning of function (useful for
15272 debugging). Call grub_machine_mmap_init() before attempting to use
15273 grub_machine_mmap_iterate().
15274 (grub_lower_mem, grub_upper_mem): Move from here ...
15275 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
15276 here (new file).
15277
15278 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
15279 function prototype.
15280
15281 2008-11-12 Robert Millan <rmh@aybabtu.com>
15282
15283 Fix a regression introduced by the at_keyboard.mod split. Because
15284 some terminals are default on some platforms and non-default on
15285 others, the first terminal being registered determines which is
15286 going to be default.
15287
15288 * kern/term.c (grub_term_register_input): If this is the first
15289 terminal being registered, set it as the current one.
15290 (grub_term_register_output): Likewise.
15291
15292 * term/efi/console.c (grub_console_init): Do not call
15293 grub_term_set_current_output() or grub_term_set_current_input().
15294 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
15295 * term/i386/pc/console.c (grub_console_init): Likewise.
15296 (grub_console_fini): Do not call grub_term_set_current_input()
15297 (but leave grub_term_set_current_output() to restore text mode).
15298
15299 2008-11-10 Robert Millan <rmh@aybabtu.com>
15300
15301 * util/grub.d/00_header.in: Add backward compatibility check for
15302 versions of terminal.mod that don't understand `terminal_input' or
15303 `terminal_output'.
15304
15305 2008-11-09 Robert Millan <rmh@aybabtu.com>
15306
15307 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
15308 `terminal_input' / `terminal_output', not `terminal'.
15309
15310 2008-11-08 Robert Millan <rmh@aybabtu.com>
15311
15312 * Makefile.in (include_DATA): Fix srcdir=. assumption.
15313 (DISTCLEANFILES): Add `build_env.mk'.
15314
15315 2008-11-08 Robert Millan <rmh@aybabtu.com>
15316
15317 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
15318 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15319 members. Update all users.
15320 * util/console.c (grub_ncurses_term): Split in ...
15321 (grub_ncurses_term_input): ... this, and ...
15322 (grub_ncurses_term_output): ... this. Update all users.
15323 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
15324
15325 2008-11-08 Robert Millan <rmh@aybabtu.com>
15326
15327 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
15328 (PKGDATA): Add $(pkgdata_SRCDIR).
15329 (pkglib_BUILDDIR): New variable.
15330 (pkgdata_SRCDIR): New variable.
15331 (build_env.mk): New target.
15332 (include_DATA): New variable.
15333 (install-local): Install $(include_DATA) files in $(includedir).
15334
15335 2008-11-07 Pavel Roskin <proski@gnu.org>
15336
15337 * gendistlist.sh: Use C locale for sorting to ensure consistent
15338 output on all systems.
15339
15340 * util/grub.d/00_header.in: Remove incorrect space before
15341 "serial".
15342
15343 2008-11-07 Robert Millan <rmh@aybabtu.com>
15344
15345 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
15346 per specification.
15347 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
15348 * loader/multiboot_loader.c (find_multi_boot2_header): New function
15349 (based on find_multi_boot1_header).
15350 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
15351 using find_multi_boot2_header(), and abort if neither Multiboot or
15352 Multiboot headers were found.
15353
15354 2008-11-07 Robert Millan <rmh@aybabtu.com>
15355
15356 Modularize at_keyboard.mod:
15357
15358 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
15359 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
15360 (at_keyboard_mod_LDFLAGS): New variables.
15361
15362 Actual terminal split:
15363
15364 * include/grub/term.h (struct grub_term): Split in ...
15365 (struct grub_term_input): ... this, and ...
15366 (struct grub_term_output): ... this. Update all users.
15367 (grub_term_set_current): Split in ...
15368 (grub_term_set_current_input): ... this, and ...
15369 (grub_term_set_current_output): ... this.
15370 (grub_term_get_current): Split in ...
15371 (grub_term_get_current_input): ... this, and ...
15372 (grub_term_get_current_output): ... this.
15373 (grub_term_register): Split in ...
15374 (grub_term_register_input): ... this, and ...
15375 (grub_term_register_output): ... this.
15376 (grub_term_unregister): Split in ...
15377 (grub_term_unregister_input): ... this, and ...
15378 (grub_term_unregister_output): ... this.
15379 (grub_term_iterate): Split in ...
15380 (grub_term_iterate_input): ... this, and ...
15381 (grub_term_iterate_output): ... this.
15382
15383 * kern/term.c (grub_term_list): Split in ...
15384 (grub_term_list_input): ... this, and ...
15385 (grub_term_list_output): ... this. Update all users.
15386 (grub_cur_term): Split in ...
15387 (grub_cur_term_input): ... this, and ...
15388 (grub_cur_term_output): ... this. Update all users.
15389 (grub_term_set_current): Split in ...
15390 (grub_term_set_current_input): ... this, and ...
15391 (grub_term_set_current_output): ... this.
15392 (grub_term_get_current): Split in ...
15393 (grub_term_get_current_input): ... this, and ...
15394 (grub_term_get_current_output): ... this.
15395 (grub_term_register): Split in ...
15396 (grub_term_register_input): ... this, and ...
15397 (grub_term_register_output): ... this.
15398 (grub_term_unregister): Split in ...
15399 (grub_term_unregister_input): ... this, and ...
15400 (grub_term_unregister_output): ... this.
15401 (grub_term_iterate): Split in ...
15402 (grub_term_iterate_input): ... this, and ...
15403 (grub_term_iterate_output): ... this.
15404
15405 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
15406 a check for input and one for output (and only attempt to get keys
15407 from user when input works).
15408
15409 * util/grub-probe.c (grub_term_get_current): Split in ...
15410 (grub_term_get_current_input): ... this, and ...
15411 (grub_term_get_current_output): ... this.
15412 * util/grub-fstest.c: Likewise.
15413 * util/i386/pc/grub-setup.c: Likewise.
15414 * util/grub-editenv.c: Likewise.
15415
15416 Portability adjustments:
15417
15418 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
15419 `term/i386/pc/at_keyboard.c'.
15420 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
15421 grub_keyboard_controller_init() (now handled by terminal .init).
15422 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
15423 grub_at_keyboard_init().
15424 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
15425 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
15426 at_keyboard.mod via input terminal interface).
15427 * include/grub/i386/coreboot/console.h: Convert into a stub for
15428 `<grub/i386/pc/console.h>'.
15429
15430 Migrate full terminals to new API:
15431
15432 * term/efi/console.c (grub_console_term): Split into ...
15433 (grub_console_term_input): ... this, and ...
15434 (grub_console_term_output): ... this. Update all users.
15435 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
15436 (grub_ofconsole_init): Split into ...
15437 (grub_ofconsole_init_input): ... this, and ...
15438 (grub_ofconsole_init_output): ... this.
15439 (grub_ofconsole_term): Split into ...
15440 (grub_ofconsole_term_input): ... this, and ...
15441 (grub_ofconsole_term_output): ... this. Update all users.
15442 * term/i386/pc/serial.c (grub_serial_term): Split into ...
15443 (grub_serial_term_input): ... this, and ...
15444 (grub_serial_term_output): ... this. Update all users.
15445 * term/i386/pc/console.c (grub_console_term): Split into ...
15446 (grub_console_term_input): ... this, and ...
15447 (grub_console_term_output): ... this. Update all users.
15448 (grub_console_term_input): Only enable it on PC/BIOS platform.
15449 (grub_console_init): Remove grub_keyboard_controller_init() call.
15450
15451 Migrate input terminals to new API:
15452
15453 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
15454 `i386' and `i386/pc' to enable build on x86_64 (this driver is
15455 i386-specific anyway).
15456 (grub_console_checkkey): Rename to ...
15457 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
15458 users.
15459 (grub_keyboard_controller_orig): New variable.
15460 (grub_console_getkey): Rename to ...
15461 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
15462 users.
15463 (grub_keyboard_controller_init): Static-ize. Save original
15464 controller value so that it can be restored ...
15465 (grub_keyboard_controller_fini): ... here (new function).
15466 (grub_at_keyboard_term): New structure.
15467 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
15468 functions.
15469
15470 Migrate output terminals to new API:
15471
15472 * term/i386/pc/vga.c (grub_vga_term): Change type to
15473 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15474 members. Update all users.
15475 * term/gfxterm.c (grub_video_term): Change type to
15476 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15477 members. Update all users.
15478 * include/grub/i386/pc/console.h (grub_console_checkkey)
15479 (grub_console_getkey): Do not export (no longer needed by gfxterm,
15480 etc).
15481
15482 Migrate `terminal' command and userland tools to new API:
15483
15484 * commands/terminal.c (grub_cmd_terminal): Split into ...
15485 (grub_cmd_terminal_input): ... this, and ...
15486 (grub_cmd_terminal_output): ... this.
15487 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
15488 `terminal_input' and `terminal_output'.
15489 * util/grub.d/00_header.in: Adjust `terminal' calls to new
15490 `terminal_input' / `terminal_output' API.
15491 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
15492 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
15493 provided ${GRUB_TERMINAL}, convert it).
15494
15495 2008-11-04 Robert Millan <rmh@aybabtu.com>
15496
15497 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
15498 for FreeBSD.
15499 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
15500
15501 2008-11-03 Bean <bean123ch@gmail.com>
15502
15503 * kern/elf.c (grub_elf32_load): Revert to previous code.
15504 (grub_elf64_load): Likewise.
15505
15506 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
15507
15508 2008-11-01 Robert Millan <rmh@aybabtu.com>
15509
15510 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
15511 (TARGET_CPPFLAGS): Likewise.
15512 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
15513
15514 2008-11-01 Carles Pina i Estany <carles@pina.cat>
15515
15516 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15517
15518 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15519
15520 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15521 addition of objects until the code is not going to be able to fail.
15522
15523 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15524
15525 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15526 (add a missing NULL check, and correct them by moving the pointer
15527 operations after the actual check).
15528
15529 2008-10-29 Robert Millan <rmh@aybabtu.com>
15530
15531 * util/i386/pc/grub-install.in: Handle empty string as output from
15532 make_system_path_relative_to_its_root().
15533
15534 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15535
15536 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15537 circular metadata worst case scenario. If the metadata is circular
15538 then copy the wrap in place.
15539 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15540 project lib/format_text/layout.h
15541 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15542
15543 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15544
15545 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
15546
15547 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15548
15549 * util/update-grub_lib.in: Mention filename in warning message.
15550
15551 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15552
15553 * NEWS: Update for rename of update-grub to grub-mkconfig.
15554
15555 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15556
15557 * util/update-grub_lib.in: Copy to ...
15558 * util/grub-mkconfig_lib.in: ... this. Update all users.
15559 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
15560 * util/update-grub.in: Rename to ...
15561 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15562 option. Add `--output' option to allow users to specify the generated
15563 configuration file. Default to stdout.
15564 (update_grub_dir): Rename to ...
15565 (grub_mkconfig_dir): ... this.
15566 (grub_cfg): Default to an empty string.
15567 * conf/common.rmk (update-grub): Rename to ...
15568 (grub-mkconfig): ... this.
15569 (update-grub_lib): Copy to ...
15570 (grub-mkconfig_lib): ... this.
15571 (update-grub_SCRIPTS): Copy to ...
15572 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15573 (update-grub_DATA): Rename to ...
15574 (grub-mkconfig_DATA): ... this.
15575
15576 2008-09-28 Robert Millan <rmh@aybabtu.com>
15577
15578 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15579 to `modified'. Add the real `created' field.
15580 (grub_iso9660_uuid): Use `modified' rather than `created' for
15581 constructing the UUID.
15582
15583 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
15584
15585 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15586 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15587
15588 2008-09-28 Bean <bean123ch@gmail.com>
15589
15590 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15591 Thanks to Christian Franke for finding this bug.
15592
15593 2008-09-25 Robert Millan <rmh@aybabtu.com>
15594
15595 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15596 instances of grub_util_get_disk_name() (see previous commit).
15597
15598 2008-09-25 Robert Millan <rmh@aybabtu.com>
15599
15600 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15601 `util/i386/get_disk_name.c'.
15602 * conf/i386-efi.rmk: Likewise.
15603 * conf/x86_64-efi.rmk: Likewise.
15604 * conf/i386-coreboot.rmk: Likewise.
15605 * conf/i386-ieee1275.rmk: Likewise.
15606 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15607 `util/ieee1275/get_disk_name.c'.
15608 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15609 * util/ieee1275/get_disk_name.c: Remove file.
15610 * util/i386/get_disk_name.c: Remove file.
15611 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15612 "hd%d" for device.map entries, rather than using
15613 grub_util_get_disk_name().
15614
15615 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15616
15617 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15618 warning.
15619 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15620
15621 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15622
15623 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15624 Changed to 0x5100.
15625 (GRUB_TERM_PPAGE): Changed to 0x4900.
15626
15627 2008-09-24 Robert Millan <rmh@aybabtu.com>
15628
15629 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15630 macros (they were i386-pc specific).
15631 * include/grub/sparc64/ieee1275/console.h: Likewise.
15632 * include/grub/efi/console.h: Likewise.
15633
15634 2008-09-22 Bean <bean123ch@gmail.com>
15635
15636 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15637 resident and in attribute list.
15638
15639 * include/grub/ntfs.h (BMP_LEN): Removed.
15640
15641 2008-09-22 Bean <bean123ch@gmail.com>
15642
15643 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15644 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15645
15646 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15647 error occurs, as grub_disk_open will call grub_disk_close, which will
15648 call p->close (scsi).
15649
15650 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15651
15652 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15653 (AC_PREREQ): Bumped to 2.59.
15654 (AC_TRY_COMPILE): Replace obsolete macro with ...
15655 (AC_COMPILE_IFELSE): ... this.
15656 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15657 (AC_LINK_IFELSE): ... this.
15658
15659 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15660
15661 * autogen.sh: Add a call to `gendistlist.sh'.
15662
15663 2008-09-19 Christian Franke <franke@computer.org>
15664
15665 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15666 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15667 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15668 Export __enable_execute_stack() to modules.
15669 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15670 New function.
15671
15672 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15673
15674 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15675 Sort the list.
15676
15677 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15678
15679 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15680 #include <grub/util/hostdisk.h>.
15681
15682 2008-09-08 Robert Millan <rmh@aybabtu.com>
15683
15684 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15685 segments when their filesz is zero (grub_file_read() interprets
15686 zero-size as "read until EOF", which results in memory corruption).
15687 Use `lowest_segment' rather than 0 for calculating the current
15688 segment load address.
15689
15690 2008-09-08 Robert Millan <rmh@aybabtu.com>
15691
15692 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15693 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15694 clobbered useful information.
15695
15696 2008-09-08 Robert Millan <rmh@aybabtu.com>
15697
15698 * include/grub/util/biosdisk.h: Move to ...
15699 * include/grub/util/hostdisk.h: ... here. Update all users.
15700 * util/biosdisk.c: Move to ...
15701 * util/hostdisk.c: ... here. Update all users.
15702
15703 2008-09-07 Robert Millan <rmh@aybabtu.com>
15704
15705 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15706 variables.
15707 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15708 and length can be stored directly in the `mbi->mmap_addr' and
15709 `mbi->mmap_length' struct fields.
15710
15711 2008-09-07 Robert Millan <rmh@aybabtu.com>
15712
15713 * conf/i386.rmk: New file. Provides declaration for building
15714 `cpuid.mod'.
15715 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15716 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15717 variables.
15718 Include `conf/i386.mk'.
15719 * conf/i386-efi.rmk: Likewise.
15720 * conf/x86_64-efi.rmk: Likewise.
15721 * conf/i386-coreboot.rmk: Likewise.
15722 * conf/i386-ieee1275.rmk: Likewise.
15723
15724 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15725
15726 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15727 Adds optimization support for BGR based modes.
15728
15729 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15730 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15731 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15732 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15733 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15734 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15735 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15736 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15737 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15738 (grub_video_i386_vbeblit_index_index): Likewise.
15739 (grub_video_i386_vbeblit_replace_directN): Added.
15740 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15741 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15742 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15743 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15744 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15745 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15746 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15747 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15748 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15749 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15750 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15751 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15752 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15753
15754 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15755 (grub_video_i386_vbefill_R8G8B8): Likewise.
15756 (grub_video_i386_vbefill_index): Likewise.
15757 (grub_video_i386_vbefill_direct32): Added.
15758 (grub_video_i386_vbefill_direct24): Likewise.
15759 (grub_video_i386_vbefill_direct16): Likewise.
15760 (grub_video_i386_vbefill_direct8): Likewise.
15761
15762 * include/grub/video.h (grub_video_blit_format): Removed
15763 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15764 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15765 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15766 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15767 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15768
15769 * video/video.c (grub_video_get_blit_format): Updated to use new
15770 blit formats. Added handling for 16 bit color modes.
15771
15772 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15773 fillers.
15774 (common_blitter): Updated to use new blitters.
15775
15776 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15777 Removed.
15778 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15779 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15780 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15781 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15782 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15783 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15784 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15785 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15786 (grub_video_i386_vbeblit_index_index): Likewise.
15787 (grub_video_i386_vbeblit_replace_directN): Added.
15788 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15789 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15790 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15791 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15792 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15793 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15794 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15795 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15796 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15797 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15798 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15799 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15800 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15801
15802 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15803 (grub_video_i386_vbefill_R8G8B8): Likewise.
15804 (grub_video_i386_vbefill_index): Likewise.
15805 (grub_video_i386_vbefill_direct32): Added.
15806 (grub_video_i386_vbefill_direct24): Likewise.
15807 (grub_video_i386_vbefill_direct16): Likewise.
15808 (grub_video_i386_vbefill_direct8): Likewise.
15809
15810 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15811 types.
15812
15813 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15814 types.
15815
15816 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15817 blitter types.
15818
15819 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15820 types.
15821
15822 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15823
15824 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15825 RAID level 1.
15826
15827 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15828
15829 * fs/iso9660.c (grub_iso9660_date): New structure.
15830 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15831 (grub_iso9660_uuid): New function.
15832
15833 2008-09-05 Bean <bean123ch@gmail.com>
15834
15835 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15836
15837 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15838 insensitive bit for names in Win32 and Win32 & DOS namespace.
15839
15840 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15841
15842 * include/grub/types.h (LONG_MAX): Likewise.
15843
15844 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15845
15846 * util/getroot.c: Include <config.h>.
15847 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15848 add support for /dev/md/N devices and handle LVM double dash escaping.
15849
15850 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15851
15852 * config.guess: Update to latest version from config git.
15853 * config.sub: Likewise.
15854
15855 2008-09-03 Robert Millan <rmh@aybabtu.com>
15856
15857 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15858 `disk->total_sectors'.
15859
15860 2008-09-01 Colin D Bennett <colin@gibibit.com>
15861
15862 * include/grub/normal.h: Fixed incorrect comment for
15863 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15864
15865 2008-09-01 Colin D Bennett <colin@gibibit.com>
15866
15867 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15868 values with defines.
15869
15870 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15871 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15872 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15873 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15874 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15875 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15876 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15877 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15878 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15879 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15880 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15881 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15882 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15883 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15884 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15885 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15886 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15887 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15888 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15889
15890 2008-08-31 Robert Millan <rmh@aybabtu.com>
15891
15892 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15893 declaration.
15894 (grub_multiboot): Fix a few warnings.
15895
15896 2008-08-31 Robert Millan <rmh@aybabtu.com>
15897
15898 * loader/i386/pc/multiboot.c: Update comment not to say that
15899 boot_device support is unimplemented.
15900
15901 2008-08-31 Robert Millan <rmh@aybabtu.com>
15902
15903 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15904 or memory map support are unimplemented.
15905
15906 2008-08-31 Colin D Bennett <colin@gibibit.com>
15907
15908 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15909
15910 2008-08-31 Colin D Bennett <colin@gibibit.com>
15911
15912 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15913 total video memory in 'vbeinfo' output; show color format details for
15914 each video mode.
15915
15916 2008-08-30 Pavel Roskin <proski@gnu.org>
15917
15918 * util/genmoddep.c: Remove for real this time.
15919 * DISTLIST: Remove util/genmoddep.c.
15920
15921 2008-08-30 Robert Millan <rmh@aybabtu.com>
15922
15923 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15924 as required by Multiboot spec (it was already 4-byte aligned, but
15925 only by chance).
15926
15927 2008-08-29 Pavel Roskin <proski@gnu.org>
15928
15929 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15930 * kern/powerpc/ieee1275/startup.S: ... this.
15931 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15932 * DISTLIST: Likewise.
15933
15934 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15935 grub/cpu/kernel.h. Add start label for consistency with other
15936 platforms. Add grub_prefix immediately after start. Add jump
15937 to the code after grub_prefix.
15938 * include/grub/powerpc/kernel.h: Provide valid values for
15939 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15940
15941 2008-08-29 Bean <bean123ch@gmail.com>
15942
15943 * configure.ac: Change host_os to cygwin for mingw.
15944 (asprintf): New check for function.
15945
15946 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15947 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15948
15949 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15950 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15951 sync, sleep and grub_util_get_disk_size for mingw.
15952
15953 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15954 to get size in mingw.
15955 (open_device): Use flag O_BINARY if it's defined.
15956 (find_root_device): Add dummy code for mingw.
15957
15958 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15959 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15960 (get_scsi_disk_name): Return 0 for mingw.
15961
15962 * util/hostfs.c: #include <grub/util/misc.h>.
15963 (grub_hostfs_open): Use "rb" flag to open file, use
15964 grub_util_get_disk_size to get disk size for mingw.
15965
15966 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15967 (asprintf): New function if HAVE_ASPRINTF is not set.
15968 (sync): New function for mingw.
15969 (sleep): Likewise.
15970 (grub_util_get_disk_size): Likewise.
15971
15972 2008-08-28 Pavel Roskin <proski@gnu.org>
15973
15974 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15975 kern/time.c.
15976
15977 2008-08-28 Robert Millan <rmh@aybabtu.com>
15978
15979 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15980
15981 2008-08-28 Robert Millan <rmh@aybabtu.com>
15982
15983 Change find_grub_drive() syntax so it doesn't prevent it from
15984 detecting NULL names as errors.
15985
15986 * util/biosdisk.c (find_grub_drive): Move free slot search code
15987 from here ...
15988 (find_free_slot): ... to here.
15989 (read_device_map): Use find_free_slot() to search for free slots.
15990
15991 2008-08-27 Marco Gerards <marco@gnu.org>
15992
15993 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15994 (scsi_mod_SOURCES): New variable.
15995 (scsi_mod_CFLAGS): Likewise
15996 (scsi_mod_LDFLAGS): Likewise.
15997
15998 * disk/scsi.c: New file.
15999
16000 * include/grub/scsi.h: Likewise.
16001
16002 * include/grub/scsicmd.h: Likewise.
16003
16004 * disk/ata.c: Include <grub/scsi.h>.
16005 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
16006 instead.
16007 (grub_ata_iterate): Skip ATAPI devices.
16008 (grub_ata_open): Only handle ATAPI devices.
16009 (struct grub_atapi_read): Removed.
16010 (grub_atapi_readsector): Likewise.
16011 (grub_ata_read): No longer handle ATAPI devices.
16012 (grub_ata_write): Likewise.
16013 (grub_atapi_iterate): New function.
16014 (grub_atapi_read): Likewise.
16015 (grub_atapi_write): Likewise.
16016 (grub_atapi_open): Likewise.
16017 (grub_atapi_close): Likewise.
16018 (grub_atapi_dev): New variable.
16019 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
16020 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
16021
16022 * include/grub/disk.h (enum grub_disk_dev_id): Add
16023 `GRUB_DISK_DEVICE_SCSI_ID'.
16024
16025 2008-08-26 Robert Millan <rmh@aybabtu.com>
16026
16027 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
16028 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
16029 descriptive.
16030
16031 2008-08-23 Bean <bean123ch@gmail.com>
16032
16033 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
16034 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16035 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
16036 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
16037 dm_nv.mod.
16038 (raid5rec_mod_SOURCES): New macro.
16039 (raid5rec_mod_CFLAGS): Likewise.
16040 (raid5rec_mod_LDFLAGS): Likewise.
16041 (raid6rec_mod_SOURCES): Likewise.
16042 (raid6rec_mod_CFLAGS): Likewise.
16043 (raid6rec_mod_LDFLAGS): Likewise.
16044 (mdraid_mod_SOURCES): Likewise.
16045 (mdraid_mod_CFLAGS): Likewise.
16046 (mdraid_mod_LDFLAGS): Likewise.
16047 (dm_nv_mod_SOURCES): Likewise.
16048 (dm_nv_mod_CFLAGS): Likewise.
16049 (dm_nv_mod_LDFLAGS): Likewise.
16050
16051 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
16052 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16053 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16054
16055 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
16056 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16057
16058 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16059
16060 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16061
16062 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16063
16064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16065
16066 * disk/raid5_recover.c: New file.
16067
16068 * disk/raid6_recover.c: Likewise.
16069
16070 * disk/mdraid_linux.c: Likewise.
16071
16072 * disk/dmraid_nvidia.c: Likewise.
16073
16074 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
16075 ULONG_MAX.
16076
16077 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
16078 calculate the size of raid device.
16079 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
16080 different layout of raid5.
16081 (grub_raid_scan_device): Remove code specific to mdraid.
16082 (grub_raid_list): New variable.
16083 (free_array): New function.
16084 (grub_raid_register): Likewise.
16085 (grub_raid_unregister): Likewise.
16086 (grub_raid_rescan): Likewise.
16087 (GRUB_MOD_INIT): Don't iterate device here.
16088 (GRUB_MOD_FINI): Use free_array to release resource.
16089
16090 * include/grub/raid.h: Remove macro and structure specific to mdraid.
16091 (grub_raid5_recover_func_t): New function variable type.
16092 (grub_raid6_recover_func_t): Likewise.
16093 (grub_raid5_recover_func): New variable.
16094 (grub_raid6_recover_func): Likewise.
16095 (grub_raid_register): New function.
16096 (grub_raid_unregister): Likewise.
16097 (grub_raid_rescan): Likewise.
16098 (grub_raid_block_xor): Likewise.
16099
16100 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
16101 (CMD_CRC): New macro.
16102 (part): Removed.
16103 (read_file): Handle device as well as file.
16104 (cmd_crc): New function.
16105 (fstest): Handle multiple disks.
16106 (options): Remove part, raw and long, add root and diskcount.
16107 (usage): Add crc, remove -p, -r, -l, add -r and -c.
16108 (main): Find the first non option entry and ignore subsequent options,
16109 add handling for the new options, support multiple disks.
16110
16111 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
16112
16113 2008-08-23 Bean <bean123ch@gmail.com>
16114
16115 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
16116
16117 * genfslist.sh: Ignore kernel.mod.
16118
16119 * genpartmaplist.sh: Likewise.
16120
16121 2008-08-23 Robert Millan <rmh@aybabtu.com>
16122
16123 * util/getroot.c (find_root_device): Skip anything that starts with
16124 a dot, not just directories. This avoids things like /dev/.tmp.md0.
16125
16126 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
16127
16128 * util/update-grub.in (GRUB_GFXMODE): Export variable.
16129 * util/grub.d/00_header.in: Allow the administrator to change default
16130 gfxmode via ${GRUB_GFXMODE}.
16131
16132 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
16133
16134 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
16135
16136 2008-08-21 Robert Millan <rmh@aybabtu.com>
16137
16138 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
16139 loader.
16140 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
16141 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
16142
16143 2008-08-20 Carles Pina i Estany <carles@pina.cat>
16144
16145 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
16146 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
16147
16148 2008-08-19 Robert Millan <rmh@aybabtu.com>
16149
16150 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
16151 (struct grub_virtual_screen): Remove `cursor_color'.
16152 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
16153 initialization.
16154 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
16155
16156 2008-08-18 Robert Millan <rmh@aybabtu.com>
16157
16158 Unify (identical) linux_normal.c files.
16159 * loader/i386/efi/linux_normal.c: Move from here ...
16160 * loader/linux_normal.c: ... to here. Update all users.
16161 * loader/i386/pc/linux_normal.c: Delete. Update all users.
16162 * loader/i386/ieee1275/linux_normal.c: Likewise.
16163
16164 2008-08-18 Robert Millan <rmh@aybabtu.com>
16165
16166 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
16167 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
16168 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
16169 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
16170 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
16171 New macros.
16172 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
16173 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
16174 (GRUB_LINUX_CL_END_OFFSET): ... to here.
16175 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
16176 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
16177 (GRUB_EFI_CL_END_OFFSET): Rename to ...
16178 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
16179 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
16180 Initialize `params->video_cursor_x' and `params->video_cursor_y'
16181 portably using grub_getxy().
16182 Replace `-EFI' with `-bzImage' in boot message.
16183
16184 2008-08-17 Robert Millan <rmh@aybabtu.com>
16185
16186 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
16187
16188 2008-08-17 Robert Millan <rmh@aybabtu.com>
16189
16190 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
16191
16192 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
16193 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
16194 (grub_machine_mmap_iterate): New function declaration.
16195 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
16196 structure.
16197 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
16198 macros.
16199
16200 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
16201 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
16202 Move e820 parsing from here ...
16203 * kern/i386/pc/mmap.c: New file.
16204 (grub_machine_mmap_iterate): ... to here.
16205
16206 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
16207 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
16208 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
16209 (grub_available_iterate): Redeclare to return `void', and redeclare
16210 its hook to use grub_uint64_t as addr and size parameters, and rename
16211 to ...
16212 (grub_machine_mmap_iterate): ... this. Update all users.
16213
16214 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
16215 to make it more readable. Rename to ...
16216 (grub_machine_mmap_iterate): ... this.
16217
16218 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
16219 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
16220 (grub_multiboot): Allocate an extra region after the payload, and fill
16221 it with a Multiboot memory map. Adjust a.out loader to calculate size
16222 with the extra space.
16223 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
16224 with the extra space.
16225
16226 2008-08-17 Carles Pina i Estany <carles@pina.cat>
16227
16228 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
16229
16230 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
16231
16232 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
16233 mdate-sh to the list `find' searches for.
16234 * DISTLIST: Regenerated.
16235
16236 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
16237
16238 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
16239 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
16240 genmoddep.awk, gensymlist.sh.in.
16241 (DISTDIRS): Add bus, docs, hook, lib.
16242 * DISTLIST: Regenerated.
16243 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
16244
16245 2008-08-16 Robert Millan <rmh@aybabtu.com>
16246
16247 * disk/raid.c (grub_raid_init): Handle/report errors set by
16248 grub_device_iterate().
16249 * disk/lvm.c (grub_lvm_init): Likewise.
16250
16251 2008-08-15 Bean <bean123ch@gmail.com>
16252
16253 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16254 and datehook.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.
16264
16265 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16266 and datehook.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.
16276
16277 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16278 and datehook.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.
16288
16289 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16290 and datehook.mod.
16291 (datetime_mod_SOURCES): New macro.
16292 (datetime_mod_CFLAGS): Likewise.
16293 (datetime_mod_LDFLAGS): Likewise.
16294 (date_mod_SOURCES): Likewise.
16295 (date_mod_CFLAGS): Likewise.
16296 (date_mod_LDFLAGS): Likewise.
16297 (datehook_mod_SOURCES): Likewise.
16298 (datehook_mod_CFLAGS): Likewise.
16299 (datehook_mod_LDFLAGS): Likewise.
16300
16301 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16302 and datehook.mod.
16303 (datetime_mod_SOURCES): New macro.
16304 (datetime_mod_CFLAGS): Likewise.
16305 (datetime_mod_LDFLAGS): Likewise.
16306 (date_mod_SOURCES): Likewise.
16307 (date_mod_CFLAGS): Likewise.
16308 (date_mod_LDFLAGS): Likewise.
16309 (datehook_mod_SOURCES): Likewise.
16310 (datehook_mod_CFLAGS): Likewise.
16311 (datehook_mod_LDFLAGS): Likewise.
16312
16313 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
16314
16315 * commands/date.c: New file.
16316
16317 * hook/datehook.c: Likewise.
16318
16319 * include/grub/lib/datetime.h: Likewise.
16320
16321 * include/grub/i386/cmos.h: Likewise.
16322
16323 * lib/datetime.c: Likewise.
16324
16325 * lib/i386/datetime.c: Likewise.
16326
16327 * lib/efi/datetime.c: Likewise.
16328
16329 2008-08-14 Robert Millan <rmh@aybabtu.com>
16330
16331 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
16332 (grub_mkelfimage_SOURCES): New variable.
16333 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
16334
16335 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
16336 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
16337 * conf/powerpc-ieee1275.rmk: Likewise.
16338 * conf/i386-ieee1275.rmk: Likewise.
16339
16340 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
16341 * kern/i386/coreboot/init.c: Likewise.
16342
16343 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
16344 with `<grub/cpu/kernel.h>'.
16345 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
16346 to ...
16347 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
16348 * kern/i386/coreboot/startup.S: Likewise.
16349
16350 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
16351 (GRUB_MOD_GAP): Remove.
16352 * include/grub/powerpc/kernel.h: New file.
16353 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
16354 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16355 * include/grub/i386/kernel.h: New file.
16356 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
16357 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
16358 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16359
16360 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
16361 `grub-mkelfimage'.
16362 Use --directory when invoking grub_mkimage.
16363
16364 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
16365 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
16366 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
16367 and GRUB_KERNEL_CPU_PREFIX.
16368
16369 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
16370
16371 * include/grub/err.h (grub_err_printf): New function prototype.
16372 * util/misc.c (grub_err_printf): New function.
16373 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
16374 grub_printf.
16375 * kern/err.c (grub_print_error): Use grub_err_printf.
16376
16377 2008-08-13 Robert Millan <rmh@aybabtu.com>
16378
16379 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
16380
16381 2008-08-13 Robert Millan <rmh@aybabtu.com>
16382
16383 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
16384 boot entry.
16385
16386 2008-08-12 Robert Millan <rmh@aybabtu.com>
16387
16388 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
16389 of the relocation code from here ...
16390 (grub_multiboot): ... to here.
16391 (forward_relocator, backward_relocator): Move from here ...
16392 * kern/i386/loader.S (grub_multiboot_forward_relocator)
16393 (grub_multiboot_backward_relocator): ... to here.
16394 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
16395 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
16396 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
16397 (grub_multiboot_forward_relocator_end)
16398 (grub_multiboot_backward_relocator)
16399 (grub_multiboot_backward_relocator_end): New variables.
16400
16401 2008-08-12 Bean <bean123ch@gmail.com>
16402
16403 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
16404
16405 2008-08-11 Robert Millan <rmh@aybabtu.com>
16406
16407 * kern/i386/linuxbios/startup.S: Move from here ...
16408 * kern/i386/coreboot/startup.S: ... to here.
16409
16410 * kern/i386/linuxbios/init.c: Move from here ...
16411 * kern/i386/coreboot/init.c: ... to here.
16412
16413 * kern/i386/linuxbios/table.c: Move from here ...
16414 * kern/i386/coreboot/mmap.c: ... to here.
16415
16416 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
16417
16418 2008-08-11 Robert Millan <rmh@aybabtu.com>
16419
16420 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
16421 errors. Leave it to the upper layer to handle them.
16422
16423 2008-08-09 Christian Franke <franke@computer.org>
16424
16425 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
16426 * conf/common.rmk: Install `grub-pe2elf' only if requested.
16427 Install `grub.d/10_windows' only on Cygwin.
16428 * configure.ac: Add subst of `target_os'.
16429 Check `target_os' also before setting TARGET_OBJ2ELF.
16430 Add `--enable-grub-pe2elf'.
16431
16432 2008-08-08 Robert Millan <rmh@aybabtu.com>
16433
16434 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16435 (grub_last_time): Change type to grub_uint64_t.
16436 (grub_disk_open): Migrate code from to using grub_get_time_ms().
16437 (grub_disk_close): Likewise.
16438
16439 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16440 (run_menu): Migrate code from to using grub_get_time_ms().
16441
16442 * util/misc.c (grub_get_time_ms): New function.
16443
16444 2008-08-08 Marco Gerards <marco@gnu.org>
16445
16446 * disk/ata.c (grub_ata_regget): Change return type to
16447 `grub_uint8_t'.
16448 (grub_ata_regget2): Likewise.
16449 (grub_ata_wait_status): New function.
16450 (grub_ata_wait_busy): Removed function, updated all users to use
16451 `grub_ata_wait_status'.
16452 (grub_ata_wait_drq): Likewise.
16453 (grub_ata_cmd): New function.
16454 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
16455 error handling.
16456 (grub_ata_pio_write): Add error handling.
16457 (grub_atapi_identify): Likewise.
16458 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
16459 handling.
16460 (grub_ata_identify): Use `grub_ata_cmd' and improve error
16461 handling. Actually use the detected registers. Reorder the
16462 detection logic such that it is easier to read.
16463 (grub_ata_pciinit): Do not assign the same ID to each controller.
16464 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
16465 handling.
16466 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
16467
16468 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
16469
16470 2008-08-08 Marco Gerards <marco@gnu.org>
16471
16472 * NEWS: Update.
16473
16474 2008-08-07 Bean <bean123ch@gmail.com>
16475
16476 * include/grub/x86_64/pci.h: New file.
16477
16478 2008-08-07 Christian Franke <franke@computer.org>
16479
16480 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
16481 (TIMER2_GATE): Likewise.
16482 (grub_pit_wait): Add enable/disable of the timer2 gate
16483 bit of port 0x61. This fixes a possible infinite loop.
16484
16485 2008-08-07 Bean <bean123ch@gmail.com>
16486
16487 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
16488 kern/i386/tsc.c and kern/i386/pit.c.
16489
16490 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
16491 x86_64 platform.
16492
16493 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
16494 <grub/i386/tsc.h>.
16495
16496 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
16497
16498 2008-08-07 Bean <bean123ch@gmail.com>
16499
16500 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
16501
16502 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
16503
16504 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
16505 multiple inclusion. Add #include <grub/types.h>.
16506
16507 2008-08-06 Christian Franke <franke@computer.org>
16508
16509 * conf/common.rmk: Build and install `10_windows'.
16510 * util/grub.d/10_windows.in: New script.
16511
16512 2008-08-06 Pavel Roskin <proski@gnu.org>
16513
16514 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16515
16516 2008-08-06 Robert Millan <rmh@aybabtu.com>
16517
16518 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16519 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16520
16521 2008-08-06 Bean <bean123ch@gmail.com>
16522
16523 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16524 (grub_pxefs_fs_int): Remove dummy definition.
16525 (grub_pxefs_open): Use data->block_size to store the current block
16526 size setting.
16527 (grub_pxefs_read): Use block size stored in data->block_size. As the
16528 value of grub_pxe_blksize can be changed after the file is opened.
16529
16530 2008-08-06 Bean <bean123ch@gmail.com>
16531
16532 * fs/i386/pc/pxe.c (curr_file): new variable.
16533 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16534 require the dummy internal file system anymore.
16535 (grub_pxefs_read): Removed.
16536 (grub_pxefs_close): Likewise.
16537 (grub_pxefs_fs_int): Likewise.
16538 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16539 connection when we switch file.
16540 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16541
16542 2008-08-06 Robert Millan <rmh@aybabtu.com>
16543
16544 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16545 `halt.mod'.
16546 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16547 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16548
16549 * kern/i386/halt.c: New file.
16550 * kern/i386/reboot.c: Likewise.
16551 * include/grub/i386/reboot.h: Likewise.
16552 * include/grub/i386/halt.h: Likewise.
16553
16554 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16555 Include `<grub/cpu/halt.h>'.
16556 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16557 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16558
16559 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16560 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16561 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16562 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16563 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16564 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16565 from here ...
16566 * include/grub/i386/at_keyboard.h: ... to here.
16567
16568 2008-08-05 Robert Millan <rmh@aybabtu.com>
16569
16570 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16571 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16572 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16573 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16574 `kern/generic/millisleep.c'.
16575
16576 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16577 instead of grub_get_rtc().
16578 (grub_tsc_init): Initialize `tsc_boot_time'.
16579
16580 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16581 (grub_machine_init): Use grub_tsc_init() rather than
16582 installing an RTC-based handler via grub_install_get_time_ms().
16583
16584 * kern/i386/pit.c: New file.
16585 * include/grub/i386/pit.h: Likewise.
16586
16587 2008-08-05 Bean <bean123ch@gmail.com>
16588
16589 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16590
16591 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16592 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16593 (pxe_mod_SOURCES): New macro.
16594 (pxe_mod_CFLAGS): Likewise.
16595 (pxe_mod_LDFLAGS): Likewise.
16596 (pxecmd_mod_SOURCES): Likewise.
16597 (pxecmd_mod_CFLAGS): Likewise.
16598 (pxecmd_mod_LDFLAGS): Likewise.
16599
16600 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16601 (grub_pxe_call): Likewise.
16602
16603 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16604
16605 * commands/i386/pc/pxecmd.c: New file.
16606
16607 * fs/i386/pc/pxe.c: Likewise.
16608
16609 * include/grub/i386/pc/pxe.h: Likewise.
16610
16611 2008-08-05 Bean <bean123ch@gmail.com>
16612
16613 * util/console.c (grub_console_cur_color): New variable.
16614 (grub_console_standard_color): Likewise.
16615 (grub_console_normal_color): Likewise.
16616 (grub_console_highlight_color): Likewise.
16617 (color_map): Likewise.
16618 (use_color): Likewise.
16619 (NUM_COLORS): New macro.
16620 (grub_ncurses_setcolorstate): Handle color properly.
16621 (grub_ncurses_setcolor): Don't change color here, just remember the
16622 settings, color will be set in grub_ncurses_setcolorstate.
16623 (grub_ncurses_getcolor): New function.
16624 (grub_ncurses_init): Initialize color pairs.
16625 (grub_ncurses_term): New member grub_ncurses_getcolor.
16626
16627 2008-08-05 Colin D Bennett <colin@gibibit.com>
16628
16629 High resolution timer support. Implemented for x86 CPUs using TSC.
16630 Extracted generic grub_millisleep() so it's linked in only as needed.
16631 This requires a Pentium compatible CPU; if the RDTSC instruction is
16632 not supported, then it falls back on the generic grub_get_time_ms()
16633 implementation that uses the machine's RTC.
16634
16635 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16636 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16637 `kern/generic/millisleep.c'.
16638
16639 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16640 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16641
16642 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16643 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16644
16645 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16646
16647 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16648 `kern/generic/millisleep.c'.
16649
16650 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16651
16652 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16653
16654 * kern/generic/rtc_get_time_ms.c: New file.
16655
16656 * kern/generic/millisleep.c: New file.
16657
16658 * kern/misc.c: Don't include
16659 <kern/time.h> anymore.
16660 (grub_millisleep_generic): Removed.
16661
16662 * commands/sleep.c (grub_interruptible_millisleep): Uses
16663 grub_get_time_ms() instead of grub_get_rtc().
16664
16665 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16666 function.
16667 (grub_cpu_is_cpuid_supported): New inline function.
16668 (grub_cpu_is_tsc_supported): New inline function.
16669 (grub_tsc_init): New function prototype.
16670 (grub_tsc_get_time_ms): New function prototype.
16671
16672 * kern/i386/tsc.c (grub_get_time_ms): New file.
16673
16674 * include/grub/time.h: Include <grub/types.h.
16675 (grub_millisleep_generic): Removed.
16676 (grub_get_time_ms): New prototype.
16677 (grub_install_get_time_ms): New prototype.
16678 (grub_rtc_get_time_ms): New prototype.
16679
16680 * kern/time.c (grub_get_time_ms): New function.
16681 (grub_install_get_time_ms): New function.
16682
16683 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16684 <grub/time.h> anymore.
16685 (grub_millisleep): Removed.
16686 (grub_machine_init): Call grub_tsc_init.
16687
16688 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16689 get_time_ms() implementation.
16690
16691 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16692 (ieee1275_get_time_ms): New function.
16693 (grub_machine_init): Install get_time_ms() implementation.
16694
16695 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16696 (grub_machine_init): Call grub_tsc_init().
16697 (grub_millisleep): Removed.
16698
16699 * kern/ieee1275/init.c (grub_millisleep): Removed.
16700 (grub_machine_init): Install ieee1275_get_time_ms()
16701 implementation.
16702 (ieee1275_get_time_ms): New function.
16703 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16704 real work.
16705
16706 2008-08-05 Marco Gerards <marco@gnu.org>
16707
16708 * disk/ata.c: Include <grub/pci.h>.
16709 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16710 (grub_ata_initialize): Rewritten.
16711 (grub_ata_device_initialize): New function.
16712
16713 2008-08-04 Pavel Roskin <proski@gnu.org>
16714
16715 * kern/main.c: Include grub/mm.h.
16716
16717 2008-08-04 Robert Millan <rmh@aybabtu.com>
16718
16719 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16720 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16721 corruption problem).
16722
16723 2008-08-04 Robert Millan <rmh@aybabtu.com>
16724
16725 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16726 warnings introduced in my last commit.
16727
16728 2008-08-03 Robert Millan <rmh@aybabtu.com>
16729
16730 Make PCI available on all i386 architectures.
16731
16732 * include/grub/i386/pc/pci.h: Move from here ...
16733 * include/grub/i386/pci.h: ... to here.
16734
16735 * include/grub/i386/pc/pci.h: Remove.
16736 * include/grub/i386/efi/pci.h: Remove.
16737 * include/grub/x86_64/efi/pci.h: Remove.
16738
16739 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16740 `<grub/cpu/pci.h>'.
16741
16742 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16743 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16744 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16745
16746 * conf/i386-ieee1275.rmk: Likewise.
16747
16748 2008-08-03 Robert Millan <rmh@aybabtu.com>
16749
16750 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16751 (grub_console_setcursor): Make it possible to set cursor off.
16752
16753 2008-08-03 Robert Millan <rmh@aybabtu.com>
16754
16755 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16756 of modules instead of assuming which platform provides what.
16757 * util/update-grub.in: Likewise.
16758
16759 2008-08-03 Robert Millan <rmh@aybabtu.com>
16760
16761 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16762 instead of `grub_install_dos_part' to determine whether a drive needs
16763 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16764 because it can be overridden when loading GRUB via Multiboot).
16765
16766 2008-08-02 Robert Millan <rmh@aybabtu.com>
16767
16768 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16769
16770 2008-08-02 Robert Millan <rmh@aybabtu.com>
16771
16772 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16773 of informational grub_dprintf() calls.
16774
16775 2008-08-02 Robert Millan <rmh@aybabtu.com>
16776
16777 * disk/memdisk.c (memdisk_size): Don't initialize.
16778 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16779
16780 * include/grub/i386/pc/kernel.h
16781 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16782 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16783 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16784 (grub_arch_memdisk_size): Remove.
16785
16786 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16787 field (was only used to transfer a constant). Add `type' field to
16788 support multiple module types.
16789 (grub_module_iterate): New function.
16790
16791 * kern/device.c (grub_device_open): Do not hide error messages
16792 when grub_disk_open() fails. Use grub_print_error() instead.
16793
16794 * kern/i386/pc/init.c (grub_arch_modules_addr)
16795 (grub_arch_memdisk_size): Remove functions.
16796 (grub_arch_modules_addr): Return the module address in high memory
16797 (now that it isn't copied anymore).
16798
16799 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16800 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16801 decompression routine (grub_total_module_size already includes that
16802 now). Don't copy modules back to low memory.
16803
16804 * kern/main.c: Include `<grub/mm.h>'.
16805 (grub_load_modules): Split out (and use) ...
16806 (grub_module_iterate): ... this function, which iterates through
16807 module objects and runs a hook.
16808 Comment out grub_mm_init_region() call, as it would cause non-ELF
16809 modules to be overwritten.
16810
16811 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16812 the memdisk image in its own region, make it part of the module list.
16813 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16814 (main): Parse --memdisk|-m option, and pass user-provided path as
16815 parameter to generate_image().
16816 (add_segments): Pass `memdisk_path' down to load_modules().
16817 (load_modules): Embed memdisk image in module section when requested.
16818 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16819 `header.type' instead of `header.offset'.
16820
16821 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16822 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16823 (memdisk_mod_LDFLAGS): New variables.
16824 * conf/i386-coreboot.rmk: Likewise.
16825 * conf/i386-ieee1275.rmk: Likewise.
16826
16827 2008-08-02 Robert Millan <rmh@aybabtu.com>
16828
16829 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16830 (backward_relocator): New variables. Used to allocate and relocate
16831 the payload, respectively.
16832 (grub_multiboot_load_elf32): Load into heap instead of requested
16833 address, install the appropriate relocator code in each bound of
16834 the payload, and set the entry point such that
16835 grub_multiboot_real_boot() will jump to one of them.
16836
16837 * kern/i386/loader.S (grub_multiboot_payload_size)
16838 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16839 (grub_multiboot_payload_entry_offset): New variables.
16840 (grub_multiboot_real_boot): Set cpu context to what the relocator
16841 expects, and jump to the relocator instead of the payload.
16842
16843 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16844 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16845 (grub_multiboot_payload_entry_offset): Export.
16846
16847 2008-08-01 Bean <bean123ch@gmail.com>
16848
16849 * normal/menu_entry.c (editor_getline): Don't return the original
16850 string as result, as it will be released by lexer once it has done
16851 using it.
16852
16853 2008-08-01 Robert Millan <rmh@aybabtu.com>
16854
16855 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16856 within menuentries, not before them.
16857 util/grub.d/10_hurd.in: Likewise.
16858
16859 2008-08-01 Bean <bean123ch@gmail.com>
16860
16861 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16862 (bufio_mod_SOURCES): New macro.
16863 (bufio_mod_CFLAGS): Likewise.
16864 (bufio_mod_LDFLAGS): Likewise.
16865
16866 * include/grub/bufio.h: New file.
16867
16868 * io/bufio.c: Likewise.
16869
16870 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16871 (grub_video_reader_png): Use grub_buffile_open to open file.
16872
16873 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16874 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16875
16876 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16877 (grub_video_reader_tga): Use grub_buffile_open to open file.
16878
16879 * font/manager.c: Include <grub/bufio.h>.
16880 (add_font): Use grub_buffile_open to open file.
16881
16882 2008-07-31 Robert Millan <rmh@aybabtu.com>
16883
16884 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16885 ELF segments, use a macro for arbitrarily accessing any of them instead
16886 of preparing a pointer that allows access to one at a time.
16887 (grub_multiboot_load_elf64): Likewise.
16888
16889 2008-07-31 Bean <bean123ch@gmail.com>
16890
16891 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16892 GRUB_KERNEL_MACHINE_DATA_END.
16893
16894 2008-07-30 Robert Millan <rmh@aybabtu.com>
16895
16896 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16897 Increase from 0x50 to 0x60.
16898 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16899 use UUIDs to identify the root drive for them. If that's not
16900 possible, abort.
16901 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16902 check, for cross-disk installs.
16903
16904 2008-07-30 Robert Millan <rmh@aybabtu.com>
16905
16906 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16907 is non-empty, use it to set the `prefix' environment variable instead
16908 of the usual approach.
16909 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16910 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16911 environment variable instead of dummy make_install_device().
16912
16913 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16914 (start): Insert a data section, with `grub_prefix' variable.
16915 * kern/i386/linuxbios/startup.S: Likewise.
16916
16917 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16918 New variable reference.
16919 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16920 New macro. Defines offset of `grub_prefix' within startup.S (relative
16921 to `start').
16922 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16923 section within startup.S (relative to `start').
16924 * include/grub/i386/coreboot/kernel.h: Likewise.
16925
16926 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16927 Overwrite grub_prefix with its contents, at the beginning of the
16928 first segment.
16929 (main): Understand -p|--prefix.
16930
16931 2008-07-30 Robert Millan <rmh@aybabtu.com>
16932
16933 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16934
16935 2008-07-30 Robert Millan <rmh@aybabtu.com>
16936
16937 * term/i386/pc/vga_text.c (grub_console_cls): Use
16938 grub_console_gotoxy() to go back to beginning of the screen.
16939 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16940
16941 2008-07-29 Christian Franke <franke@computer.org>
16942
16943 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16944 Add conversion of emulated mount points on Cygwin.
16945
16946 2008-07-29 Christian Franke <franke@computer.org>
16947
16948 * util/update-grub.in: Add a check for admin
16949 group on Cygwin.
16950 Remove old `grub.cfg.new' before creation.
16951 Add `-f' to `mv' to handle the different filesystem
16952 semantics of Windows.
16953
16954 2008-07-29 Bean <bean123ch@gmail.com>
16955
16956 * normal/main.c (get_line): Fix buffer overflow bug.
16957
16958 2008-07-28 Robert Millan <rmh@aybabtu.com>
16959
16960 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16961 (struct grub_apple_header): New struct. Describes the layout of
16962 the partmap header.
16963 (apple_partition_map_iterate): Check the header magic as well as the
16964 partition magic (which was already being checked).
16965
16966 2008-07-28 Pavel Roskin <proski@gnu.org>
16967
16968 * genmk.rb: Add a warning to the beginning of the output that
16969 it's a generated file and should not be edited.
16970
16971 2008-07-28 Robert Millan <rmh@aybabtu.com>
16972
16973 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16974 with the same number are found, just use issue a warning with
16975 grub_dprintf(), as this error has been reported to be non-fatal.
16976
16977 2008-07-27 Robert Millan <rmh@aybabtu.com>
16978
16979 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16980 information.
16981
16982 2008-07-27 Bean <bean123ch@gmail.com>
16983
16984 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16985 (grub_fat_find_dir): Ignore case when comparing filename.
16986
16987 2008-07-27 Bean <bean123ch@gmail.com>
16988
16989 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16990 smallino, as it's more descriptive, and i8count can be confused with
16991 the other field count.
16992 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16993 inode type.
16994
16995 2008-07-27 Bean <bean123ch@gmail.com>
16996
16997 * commands/crc.c: New file.
16998
16999 * lib/crc.c: Likewise.
17000
17001 * include/grub/lib/crc.h: Likewise.
17002
17003 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
17004
17005 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
17006 (hexdump): Move this function to ...
17007
17008 * lib/hexdump.c: ... here.
17009
17010 * include/grub/hexdump.h: Renamed to ...
17011
17012 * include/grub/lib/hexdump.h: ... this.
17013
17014 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
17015
17016 * util/grub-editenv.c: Likewise.
17017
17018 * include/envblk.h: Renamed to ...
17019
17020 * include/lib/envblk.h: ... this.
17021
17022 * util/envblk.c: Renamed to ...
17023
17024 * lib/envblk.c: ... this.
17025
17026 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
17027 lib/hexdump.c.
17028 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
17029 (pkglib_MODULES): Add crc.mod.
17030 (hexdump_mod_SOURCES): Add lib/hexdump.c.
17031 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
17032 (crc_mod_SOURCES): New macro.
17033 (crc_mod_CFLAGS): Likewise.
17034 (crc_mod_LDFLAGS): Likewise.
17035
17036 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
17037
17038 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17039
17040 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17041
17042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17043
17044 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17045
17046 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
17047
17048 * commands/help.c: Include <grub/term.h>.
17049 (TERM_WIDTH): Removed. Updated all users.
17050
17051 2008-07-27 Pavel Roskin <proski@gnu.org>
17052
17053 * util/getroot.c (find_root_device): Rephrase a comment to avoid
17054 spurious warnings about a comment within a comment.
17055
17056 2008-07-25 Robert Millan <rmh@aybabtu.com>
17057
17058 * util/getroot.c (find_root_device): Skip devices that match
17059 /dev/dm-[0-9]. This lets the real device be found for any type of
17060 abstraction (LVM, EVMS, RAID..).
17061 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
17062 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
17063 device is found first, find_root_device() will now skip it.
17064
17065 2008-07-24 Pavel Roskin <proski@gnu.org>
17066
17067 * include/grub/types.h: Use __builtin_bswap32() and
17068 __builtin_bswap64() with gcc 4.3 and newer.
17069
17070 2008-07-24 Christian Franke <franke@computer.org>
17071
17072 * util/i386/pc/grub-install.in: If `--debug' is specified,
17073 pass `--verbose' to grub-setup.
17074 Abort script if make_system_path_relative_to_its_root() fails.
17075
17076 2008-07-24 Bean <bean123ch@gmail.com>
17077
17078 * configure.ac: Fixed a bug caused by the previous cygwin patch,
17079 variable `target_platform' should be `platform'.
17080
17081 2008-07-24 Bean <bean123ch@gmail.com>
17082
17083 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
17084 (grub_png_init_fixed_block): New function.
17085 (grub_png_decode_image_data): Handle fixed huffman code compression.
17086
17087 2008-07-24 Bean <bean123ch@gmail.com>
17088
17089 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
17090 (grub_pe2elf_SOURCES): New macro.
17091 (CLEANFILES): Add grub-pe2elf.
17092
17093 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
17094 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
17095 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
17096 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
17097 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
17098 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
17099 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
17100 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
17101 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
17102 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
17103 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
17104 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
17105 (GRUB_PE32_DT_FUNCTION): Likewise.
17106 (GRUB_PE32_REL_I386_DIR32): Likewise.
17107 (GRUB_PE32_REL_I386_REL32): Likewise.
17108 (grub_pe32_symbol): New structure.
17109 (grub_pe32_reloc): Likewise.
17110
17111 * util/grub-pe2elf.c: New file.
17112
17113 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
17114 start symbol in non pc platform.
17115
17116 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
17117
17118 The following patches are from Christian Franke.
17119
17120 * include/grub/dl.h: Remove .previous, gas supports this only
17121 for ELF format.
17122
17123 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
17124 Remove .type, gas supports this only for ELF format.
17125
17126 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
17127 nullbytes in symbol table. This fixes an infinite loop if table is
17128 zero filled.
17129
17130 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
17131 TARGET_IMG_LDFLAGS and EXEEXT.
17132
17133 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
17134 TARGET_IMG_LDFLAGS_AC.
17135 (grub_CHECK_STACK_ARG_PROBE): New function.
17136
17137 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
17138
17139 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
17140
17141 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
17142 to set TARGET_IMG_LD* accordingly.
17143 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
17144 Add call to grub_CHECK_STACK_ARG_PROBE.
17145 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
17146
17147 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
17148
17149 * genmk.rb: Add EXEEXT to CLEANFILES.
17150
17151 2008-07-23 Robert Millan <rmh@aybabtu.com>
17152
17153 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
17154 define the codes for arrows and lines used for the menu).
17155 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
17156 as well.
17157
17158 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
17159 fonts, because the latter are too slow.
17160
17161 2008-07-21 Bean <bean123ch@gmail.com>
17162
17163 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
17164 a20. Run keyboard test last, as it will cause macbook to halt.
17165
17166 2008-07-18 Pavel Roskin <proski@gnu.org>
17167
17168 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
17169 load foreign architecture modules correctly anyway. Keep
17170 support for loading host architecture modules, whether we
17171 compile them or not.
17172
17173 2008-07-17 Pavel Roskin <proski@gnu.org>
17174
17175 * configure.ac: Use -m32 or -m64 regardless of whether we had to
17176 change target_cpu. The compiler default can mismatch target_cpu
17177 in any case.
17178
17179 * disk/efi/efidisk.c: Fix format warnings on x86_64.
17180 * kern/efi/efi.c: Likewise.
17181
17182 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
17183 target compiler is functional.
17184 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
17185 are set up.
17186
17187 * configure.ac: Default to efi platform for x86_64-apple. Allow
17188 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
17189 adjustments from the rest, only do them if target is not
17190 explicitly given. Merge other adjustments with the final sanity
17191 check. Remove an extraneous check for supported CPU. Be
17192 specific which CPU and which platform is not supported.
17193
17194 * configure.ac: Default to pc platform for x86_64.
17195
17196 2008-07-17 Robert Millan <rmh@aybabtu.com>
17197
17198 Partial LinuxBIOS -> Coreboot rename.
17199
17200 * conf/i386-linuxbios.rmk: Renamed to ...
17201 * conf/i386-coreboot.rmk: ... this.
17202 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
17203 * configure.ac: Accept "coreboot" as input platform (but maintain
17204 compatibility with "linuxbios").
17205 * include/grub/i386/linuxbios: Renamed to ...
17206 * include/grub/i386/coreboot: ... this.
17207
17208 2008-07-17 Bean <bean123ch@gmail.com>
17209
17210 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
17211 (appleldr_mod_SOURCE): New variable.
17212 (appleldr_mod_CFLAGS): Likewise.
17213 (appleldr_mod_LDFLAGS): Likewise.
17214 (pci_mod_SOURCES): Likewise.
17215 (pci_mod_CFLAGS): Likewise.
17216 (pci_mod_LDFLAGS): Likewise.
17217 (lspci_mod_SOURCES): Likewise.
17218 (lspci_mod_CFLAGS): Likewise.
17219 (lspci_mod_LDFLAGS): Likewise.
17220
17221 * conf/x86_64-efi.rmk: New file.
17222
17223 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
17224 macro.
17225 (grub_efidisk_write): Likewise.
17226
17227 * include/efi/api.h (efi_call_0): New macro.
17228 (efi_call_1): Likewise.
17229 (efi_call_2): Likewise.
17230 (efi_call_3): Likewise.
17231 (efi_call_4): Likewise.
17232 (efi_call_5): Likewise.
17233 (efi_call_6): Likewise.
17234
17235 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
17236 grub_rescue_cmd_chainloader.
17237
17238 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
17239 (grub_pe32_optional_header): Change some fields based on i386 or
17240 x86_64 platform.
17241 (GRUB_PE32_PE32_MAGIC): Likewise.
17242
17243 * include/grub/efi/uga_draw.h: New file.
17244
17245 * include/grub/elf.h (STN_ABS): New constant.
17246 (R_X86_64_NONE): Relocation constant for x86_64.
17247 (R_X86_64_64): Likewise.
17248 (R_X86_64_PC32): Likewise.
17249 (R_X86_64_GOT32): Likewise.
17250 (R_X86_64_PLT32): Likewise.
17251 (R_X86_64_COPY): Likewise.
17252 (R_X86_64_GLOB_DAT): Likewise.
17253 (R_X86_64_JUMP_SLOT): Likewise.
17254 (R_X86_64_RELATIVE): Likewise.
17255 (R_X86_64_GOTPCREL): Likewise.
17256 (R_X86_64_32): Likewise.
17257 (R_X86_64_32S): Likewise.
17258 (R_X86_64_16): Likewise.
17259 (R_X86_64_PC16): Likewise.
17260 (R_X86_64_8): Likewise.
17261 (R_X86_64_PC8): Likewise.
17262
17263 * include/grub/i386/efi/pci.h: New file.
17264
17265 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
17266 Change it value based on platform.
17267 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
17268 (GRUB_E820_RAM): Likewise.
17269 (GRUB_E820_RESERVED): Likewise.
17270 (GRUB_E820_ACPI): Likewise.
17271 (GRUB_E820_NVS): Likewise.
17272 (GRUB_E820_EXEC_CODE): Likewise.
17273 (GRUB_E820_MAX_ENTRY): Likewise.
17274 (grub_e820_mmap): New structure.
17275 (linux_kernel_header): Change the efi field according to different
17276 kernel version, also field from linux_kernel_header.
17277
17278 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
17279
17280 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
17281 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
17282 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
17283 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
17284 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
17285 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
17286 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
17287 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
17288 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
17289 (GRUB_PCI_ADDR_IO_MASK): Likewise.
17290
17291 * include/grub/x86_64/efi/kernel.h: New file.
17292
17293 * include/grub/x86_64/efi/loader.h: Likewise.
17294
17295 * include/grub/x86_64/efi/machine.h: Likewise.
17296
17297 * include/grub/x86_64/efi/pci.h: Likewise.
17298
17299 * include/grub/x86_64/efi/time.h: Likewise.
17300
17301 * include/grub/x86_64/linux.h: Likewise.
17302
17303 * include/grub/x86_64/setjmp.h: Likewise.
17304
17305 * include/grub/x86_64/time.h: Likewise.
17306
17307 * include/grub/x86_64/types.h: Likewise.
17308
17309 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
17310 GRUB_TARGET_SIZEOF_VOID_P.
17311
17312 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
17313 (grub_efi_locate_handle): Likewise.
17314 (grub_efi_open_protocol): Likewise.
17315 (grub_efi_set_text_mode): Likewise.
17316 (grub_efi_stall): Likewise.
17317 (grub_exit): Likewise.
17318 (grub_reboot): Likewise.
17319 (grub_halt): Likewise.
17320 (grub_efi_exit_boot_services): Likewise.
17321 (grub_get_rtc): Likewise.
17322
17323 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
17324 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
17325 (grub_efi_allocate_pages): Wrap efi calls.
17326 (grub_efi_free_pages): Wrap efi calls.
17327 (grub_efi_get_memory_map): Wrap efi calls.
17328
17329 * kern/x86_64/dl.c: New file.
17330
17331 * kern/x86_64/efi/callwrap.S: Likewise.
17332
17333 * kern/x86_64/efi/startup.S: Likewise.
17334
17335 * loader/efi/appleloader.c: Likewise.
17336
17337 * loader/efi/chainloader.c (cmdline): New variable.
17338 (grub_chainloader_unload): Wrap efi calls.
17339 (grub_chainloader_boot): Likewise.
17340 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
17341 command line.
17342
17343 * loader/efi/chainloader_normal.c (chainloader_command):
17344 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
17345 command line.
17346
17347 * loader/i386/efi/linux.c (allocate_pages): Change allocation
17348 method.
17349 (grub_e820_add_region): New function.
17350 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
17351 booting.
17352 (grub_find_video_card): New function.
17353 (grub_linux_setup_video): New function.
17354 (grub_rescue_cmd_linux): Probe for video information.
17355
17356 * normal/x86_64/setjmp.S: New file.
17357
17358 * term/efi/console.c (map_char): New function.
17359 (grub_console_putchar): Map unicode char.
17360 (grub_console_checkkey): Wrap efi calls.
17361 (grub_console_getkey): Likewise.
17362 (grub_console_getwh): Likewise.
17363 (grub_console_gotoxy): Likewise.
17364 (grub_console_cls): Likewise.
17365 (grub_console_setcolorstate): Likewise.
17366 (grub_console_setcursor): Likewise.
17367
17368 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
17369
17370 2008-07-16 Pavel Roskin <proski@gnu.org>
17371
17372 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
17373 format strings.
17374
17375 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
17376 pointer, not an integer. This fixes a warning and prevents
17377 precision loss on 64-bit systems.
17378 (relocate_addresses): Remove unneeded cast.
17379
17380 2008-07-15 Pavel Roskin <proski@gnu.org>
17381
17382 * kern/i386/ieee1275/init.c: Include grub/cache.h.
17383
17384 * term/ieee1275/ofconsole.c: Disable code unused on i386.
17385
17386 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
17387 Fix comparison between signed and unsigned.
17388
17389 * include/grub/i386/ieee1275/console.h: Declare
17390 grub_console_init() and grub_console_fini().
17391
17392 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
17393 It's empty and unused.
17394
17395 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
17396 beginning to avoid warnings with some compilers.
17397
17398 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
17399 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
17400
17401 2008-07-14 Pavel Roskin <proski@gnu.org>
17402
17403 * kern/env.c (grub_register_variable_hook): Don't copy empty
17404 string, it leaks memory. Pass "" to grub_env_set(), it should
17405 handle constant strings.
17406
17407 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
17408 * commands/cmp.c (grub_cmd_cmp): Likewise.
17409 * kern/dl.c (grub_dl_flush_cache): Likewise.
17410 (grub_dl_load_core): Likewise.
17411 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
17412 (grub_elf64_load_phdrs): Likewise.
17413
17414 2008-07-13 Pavel Roskin <proski@gnu.org>
17415
17416 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
17417 between signed and unsigned.
17418 (LzmaEnc_Finish): Fix warning about an unused parameter.
17419
17420 2008-07-13 Bean <bean123ch@gmail.com>
17421
17422 * Makefile.in (enable_lzo): New rule.
17423
17424 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
17425
17426 * configure.ac (ENABLE_LZO): New option --enable-lzo.
17427
17428 * boot/i386/pc/lnxboot.S: #include <config.h>.
17429
17430 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
17431 its value according to the compression algorithm used, lzo or lzma.
17432
17433 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
17434 compression algorithm according to configure macro.
17435
17436 * kern/i386/pc/startup.S (codestart): Likewise.
17437
17438 * kern/i386/pc/lzma_decode.S: New file.
17439
17440 * include/grub/lib/LzFind.h: Likewise.
17441
17442 * include/grub/lib/LzHash.h: Likewise.
17443
17444 * include/grub/lib/LzmaDec.h: Likewise.
17445
17446 * include/grub/lib/LzmaEnc.h: Likewise.
17447
17448 * include/grub/lib/LzmaTypes.h: Likewise.
17449
17450 * lib/LzFind.c: Likewise.
17451
17452 * lib/LzmaDec.c: Likewise.
17453
17454 * lib/LzmaEnc.c: Likewise.
17455
17456 2008-07-13 Bean <bean123ch@gmail.com>
17457
17458 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
17459 (grub_ext4_extent_header): New structure.
17460 (grub_ext4_extent): Likewise.
17461 (grub_ext4_extent_idx): Likewise.
17462 (grub_ext4_find_leaf): New function.
17463 (grub_ext2_read_block): Handle extents.
17464
17465 2008-07-12 Robert Millan <rmh@aybabtu.com>
17466
17467 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
17468
17469 2008-07-11 Robert Millan <rmh@aybabtu.com>
17470
17471 * util/grub.d/40_custom.in: New file. Example on how to add custom
17472 entries to /etc/grub.d.
17473 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
17474 40_custom (implicitly, by merging all the grub.d rules).
17475
17476 2008-07-11 Pavel Roskin <proski@gnu.org>
17477
17478 * commands/read.c (grub_getline): Fix invalid memory access.
17479 Don't add newline to the variable value.
17480
17481 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
17482 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
17483 (serial_hw_get_port): Check validity of the port number.
17484 (grub_cmd_serial): Check return value of serial_hw_get_port().
17485
17486 2008-07-07 Pavel Roskin <proski@gnu.org>
17487
17488 * boot/i386/pc/diskboot.S (notification_string): Replace
17489 "Loading kernel" with just "loading". This is shorter, less
17490 confusing and saves a few bytes for possible future changes.
17491
17492 2008-07-05 Pavel Roskin <proski@gnu.org>
17493
17494 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
17495 size for ATAPI devices, they are undefined. Output sector
17496 number in decimal form.
17497
17498 * disk/ata.c: Use named constants for status bits.
17499
17500 2008-07-04 Pavel Roskin <proski@gnu.org>
17501
17502 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
17503 grub_addr_t before casting it to the void pointer to fix a
17504 warning. Non-addressable regions are discarded earlier.
17505 (grub_arch_modules_addr): Cast _end to grub_addr_t.
17506 * kern/i386/linuxbios/table.c: Include grub/misc.h.
17507 (check_signature): Don't shadow table_header.
17508 (grub_linuxbios_table_iterate): Cast numeric constants to
17509 grub_linuxbios_table_header_t.
17510 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
17511 grub_stop().
17512
17513 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
17514 prevent warnings.
17515
17516 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17517 pointer, which can cause warnings. Support 64-bit addresses.
17518
17519 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17520 of sizeof(long). This fixes PowerPC image generation on x86_64.
17521
17522 2008-07-04 Robert Millan <rmh@aybabtu.com>
17523
17524 This fixes a performance issue when pc & gpt partmap iterators
17525 didn't abort iteration even after our hook found what it was
17526 looking for (often causing expensive probes of non-existent drives).
17527
17528 Some callers relied on previous buggy behaviour, since they would
17529 raise an error when their own hooks caused early abortion of its
17530 iteration.
17531
17532 * kern/device.c (grub_device_open): Improve error message.
17533 * disk/lvm.c (grub_lvm_open): Likewise.
17534 * disk/raid.c (grub_raid_open): Likewise.
17535
17536 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17537 when hook requests it, independently of grub_errno.
17538 (pc_partition_map_probe): Do not fail when find_func() caused
17539 early abortion of pc_partition_map_iterate().
17540
17541 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17542 when hook requests it, independently of grub_errno.
17543 (gpt_partition_map_probe): Do not fail when find_func() caused
17544 early abortion of gpt_partition_map_iterate().
17545
17546 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17547 when hook requests it, independently of grub_errno. Do not fail when
17548 part_map_iterate_hook() caused early abortion of p->iterate().
17549
17550 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17551 when grub_partition_iterate() returned with non-zero.
17552
17553 2008-07-03 Pavel Roskin <proski@gnu.org>
17554
17555 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17556 like we do in grub_ata_pio_read().
17557 (grub_ata_readwrite): Always write individual sectors. Fix the
17558 sector count for the remainder.
17559 (grub_ata_write): Enable writing to ATA devices. Correctly
17560 report error for ATAPI devices.
17561
17562 2008-07-02 Pavel Roskin <proski@gnu.org>
17563
17564 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17565 warning.
17566
17567 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17568 for every read sector, we already increment it for the whole
17569 batch. This fixes reading more than 256 sectors at once.
17570
17571 * util/grub-editenv.c (cmd_info): Cast argument to long
17572 explicitly. ptrdiff_t reduces to int on i386.
17573
17574 * util/grub-editenv.c (main): Be specific which parameter is
17575 missing.
17576
17577 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17578 (memdisk): Make memdisk_orig_addr a pointer.
17579
17580 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17581 for file offsets, use grub_off_t instead. Fix printf format
17582 warnings.
17583
17584 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17585 there. Real unexpected warnings should not drown in the noise
17586 about known problems.
17587
17588 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17589 grub_disk_addr_t for memory addresses.
17590
17591 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17592 explicitly to fix a warning.
17593
17594 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17595
17596 * Makefile.in (MODULE_LDFLAGS): New variable.
17597 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17598 the linker accepts --build-id=none.
17599 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17600 MODULE_LDFLAGS.
17601 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17602
17603 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17604 those in Linux XFS code. Provide a way to access 64-bit parent
17605 inode.
17606 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17607 the end of struct grub_xfs_dir_header.
17608
17609 2008-07-02 Bean <bean123ch@gmail.com>
17610
17611 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17612 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17613 and GRUB_IEEE1275_FLAG_NO_ANSI.
17614
17615 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17616 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17617 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17618
17619 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17620 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17621
17622 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17623 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17624
17625 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17626 esc sequence on non ANSI terminal.
17627 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17628
17629 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17630 beginning of file.
17631
17632 2008-07-02 Bean <bean123ch@gmail.com>
17633
17634 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17635 (grub_editenv_SOURCES): New variable.
17636 (pkglib_MODULES): Add loadenv.mod.
17637 (loadenv_mod_SOURCES): New variable.
17638 (loadenv_mod_CFLAGS): Likewise.
17639 (loadenv_mod_LDFLAGS): Likewise.
17640
17641 * include/grub/envblk.h: New file.
17642
17643 * util/envblk.c: New file.
17644
17645 * util/grub-editenv.c: New file.
17646
17647 * commands/loadenv.c: New file.
17648
17649 2008-07-01 Pavel Roskin <proski@gnu.org>
17650
17651 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17652 not unsigned char. This fixes warnings and is consistent with
17653 other tags.
17654
17655 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17656
17657 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17658
17659 * term/tparm.c (analyze): Always set *popcount.
17660
17661 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17662 cast to fix a warning.
17663
17664 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17665 cast to suppress a warning.
17666
17667 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17668 grub_fshelp_read_file() expects.
17669
17670 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17671 write uuid as a 32-bit value in CPU byte order, so declare and
17672 use it as such.
17673
17674 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17675 long if the format specifier expects it.
17676 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17677 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17678 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17679 long to fix a warning.
17680 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17681 grub_dprintf() arguments to fix warnings.
17682
17683 2008-06-30 Pavel Roskin <proski@gnu.org>
17684
17685 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17686 install_bsd_part immediately before core.img is embedded or
17687 modified on disk. This fixes core.img verification if core.img
17688 cannot be embedded.
17689
17690 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17691 core_path to calculate the blocklist.
17692 Patch from Javier Martín <lordhabbit@gmail.com>
17693
17694 2008-06-29 Robert Millan <rmh@aybabtu.com>
17695
17696 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17697 block to disk block.
17698 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17699 Patch from Niels Böhm <bitbucket@arcor.de>
17700
17701 2008-06-29 Robert Millan <rmh@aybabtu.com>
17702
17703 * util/update-grub_lib.in (font_path): Search for fonts in
17704 /boot/grub first, which is more likely to be readable (we aren't
17705 deciding where fonts live, just looking for them).
17706
17707 2008-06-26 Pavel Roskin <proski@gnu.org>
17708
17709 * util/biosdisk.c (read_device_map): Don't leave dead map
17710 entries for devices failing stat() check.
17711
17712 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17713 core_path_dev for the core.img path on the target device.
17714
17715 2008-06-26 Robert Millan <rmh@aybabtu.com>
17716
17717 * disk/fs_uuid.c: New file.
17718 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17719 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17720 (fs_uuid_mod_LDFLAGS): New variables.
17721 * include/grub/disk.h (grub_disk_dev_id): Add
17722 `GRUB_DISK_DEVICE_UUID_ID'.
17723 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17724 implement iterate().
17725
17726 2008-06-26 Robert Millan <rmh@aybabtu.com>
17727
17728 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17729 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17730 Linux image includes no initrd.
17731
17732 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17733
17734 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17735 call to resolve the core image location that effectively appended the
17736 name twice.
17737
17738 2008-06-21 Robert Millan <rmh@aybabtu.com>
17739
17740 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17741 call from here ...
17742
17743 * util/grub.d/10_hurd.in: ... to here ...
17744 * util/grub.d/10_linux.in: ... and here.
17745
17746 2008-06-19 Robert Millan <rmh@aybabtu.com>
17747
17748 * kern/main.c (grub_main): Export `prefix' variable immediately
17749 after it has been set by grub_machine_set_prefix().
17750
17751 2008-06-19 Robert Millan <rmh@aybabtu.com>
17752
17753 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17754 search result when not saving to variable, not the other way around.
17755 When saving to variable, abort iteration as soon as a match is found.
17756
17757 2008-06-19 Robert Millan <rmh@aybabtu.com>
17758
17759 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17760 check for partition that provides /boot/grub. Its logic is flawed,
17761 as it prevents prepare_grub_to_access_device() from being called
17762 multiple times.
17763
17764 2008-06-19 Robert Millan <rmh@aybabtu.com>
17765
17766 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17767 "insmod" command directly when abstraction modules are needed,
17768 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17769 since it had already been processed).
17770
17771 2008-06-19 Pavel Roskin <proski@gnu.org>
17772
17773 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17774 changed. This is needed in case GRUB_LIBDIR changes.
17775 * conf/i386-ieee1275.rmk: Likewise.
17776 * conf/i386-linuxbios.rmk: Likewise.
17777 * conf/i386-pc.rmk: Likewise.
17778 * conf/powerpc-ieee1275.rmk: Likewise.
17779
17780 2008-06-18 Pavel Roskin <proski@gnu.org>
17781
17782 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17783 kernel_elf_symlist.c to symlist.c for consistency with other
17784 architectures. Update all users.
17785 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17786
17787 2008-06-18 Robert Millan <rmh@aybabtu.com>
17788
17789 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17790 it in prefix.
17791
17792 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17793 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17794 a RAID device, run setup() for all members independently on whether
17795 LVM abstraction is being used.
17796 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17797 If grub-mkimage has set `*install_dos_part == -2', don't override this
17798 value.
17799 Perform *install_dos_part adjustments independently on whether
17800 we're embedding or not.
17801 Clarify error message when image is too big for embedding.
17802 Remove duplicate *install_dos_part stanza.
17803
17804 2008-06-17 Robert Millan <rmh@aybabtu.com>
17805
17806 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17807 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17808 variables.
17809 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17810 values in grub_ofconsole_normal_color and
17811 grub_ofconsole_highlight_color (they're not directly related to
17812 background and foreground).
17813 (grub_ofconsole_setcolorstate): Extract background and foreground
17814 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17815
17816 2008-06-17 Robert Millan <rmh@aybabtu.com>
17817
17818 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17819 /boot/grub for the check in last commit, not /boot (they could be
17820 different partitions).
17821
17822 2008-06-16 Robert Millan <rmh@aybabtu.com>
17823
17824 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17825 asked to setup access for the same partition that provides /boot,
17826 don't bother using UUIDs since our root already has the value we
17827 want.
17828
17829 2008-06-16 Robert Millan <rmh@aybabtu.com>
17830
17831 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17832 I2O devices.
17833 Patch from Sven Mueller <sven@debian.org>.
17834
17835 2008-06-16 Robert Millan <rmh@aybabtu.com>
17836
17837 * util/update-grub.in: Check for $EUID instead of $UID.
17838 Reported by Vincent Zweije.
17839
17840 2008-06-16 Bean <bean123ch@gmail.com>
17841
17842 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17843 (grub_ext2_read_block): Likewise.
17844 (grub_ext2_read_inode): Likewise.
17845 (grub_ext2_mount): Likewise.
17846 (grub_ext2_close): Likewise.
17847 (grub_ext3_get_journal): Removed.
17848
17849 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17850 (grub_reiserfs_read_symlink): Likewise.
17851 (grub_reiserfs_mount): Likewise.
17852 (grub_reiserfs_open): Likewise.
17853 (grub_reiserfs_read): Likewise.
17854 (grub_reiserfs_close): Likewise.
17855 (grub_reiserfs_get_journal): Removed.
17856
17857 * fs/fshelp.c (grub_fshelp_read): Removed.
17858 (grub_fshelp_map_block): Likewise.
17859
17860 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17861 (grub_fshelp_journal): Likewise.
17862 (grub_fshelp_read): Likewise.
17863 (grub_fshelp_map_block): Likewise.
17864
17865 2008-06-16 Pavel Roskin <proski@gnu.org>
17866
17867 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17868 floating point anymore.
17869 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17870
17871 2008-06-15 Pavel Roskin <proski@gnu.org>
17872
17873 * commands/ls.c (grub_ls_list_files): Use integer calculations
17874 for human readable format, avoid floating point use.
17875 * kern/misc.c (grub_ftoa): Remove.
17876 (grub_vsprintf): Remove floating point support.
17877
17878 2008-06-15 Robert Millan <rmh@aybabtu.com>
17879
17880 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17881 devices.
17882 Reported by Max Vozeler.
17883
17884 2008-06-15 Robert Millan <rmh@aybabtu.com>
17885
17886 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17887 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17888 skipped later.
17889 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17890 the beginning of the prefix.
17891
17892 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17893 It is assumed that if we have a memdisk, grub-mkimage has set
17894 grub_prefix to include the "(memdisk)" drive in it.
17895
17896 2008-06-15 Robert Millan <rmh@aybabtu.com>
17897
17898 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17899 Initialize keyboard controller after registering the terminal, so that
17900 grub_printf() can be called from grub_keyboard_controller_init().
17901
17902 2008-06-15 Robert Millan <rmh@aybabtu.com>
17903
17904 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17905 extent-btree which is written as big endian on disk.
17906 Reported by Alain Greppin <al@chilibi.org>.
17907
17908 2008-06-14 Robert Millan <rmh@aybabtu.com>
17909
17910 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17911 * util/i386/pc/grub-install.in (modules): Likewise.
17912
17913 2008-06-13 Pavel Roskin <proski@gnu.org>
17914
17915 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17916
17917 2008-06-13 Bean <bean123ch@gmail.com>
17918
17919 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17920
17921 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17922
17923 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17924 to indicate sparse block.
17925
17926 2008-06-12 Pavel Roskin <proski@gnu.org>
17927
17928 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17929 number, grub_fshelp_read() does it for us.
17930
17931 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17932 linear disk read with journal translation.
17933 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17934 * include/grub/fshelp.h: Declare grub_fshelp_read().
17935
17936 2008-06-09 Pavel Roskin <proski@gnu.org>
17937
17938 * fs/minix.c (grub_minix_mount): Handle error reading
17939 superblock.
17940
17941 2008-06-08 Robert Millan <rmh@aybabtu.com>
17942
17943 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17944 don't append the RAID prefix afterwards.
17945 Reported by Clint Adams.
17946
17947 2008-06-08 Robert Millan <rmh@aybabtu.com>
17948
17949 Based on description from Pavel:
17950 * kern/disk.c (grub_disk_check_range): Rename to ...
17951 (grub_disk_adjust_range): ... this. Add a comment explaining the
17952 tasks performed by this function.
17953
17954 2008-06-08 Robert Millan <rmh@aybabtu.com>
17955
17956 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17957 `num_serial' (for consistency with other variables).
17958 (struct grub_ntfs_data): Add `uuid' member.
17959 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17960 (grub_ntfs_uuid): New function.
17961 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17962
17963 2008-06-07 Pavel Roskin <proski@gnu.org>
17964
17965 * util/biosdisk.c (open_device): Revert last change to the
17966 function, it broke installation. The sector needs to be
17967 different dependent on which device is opened.
17968
17969 2008-06-06 Robert Millan <rmh@aybabtu.com>
17970
17971 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17972 rest of GRUB, and breakage doesn't happen if its value were modified.
17973
17974 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17975 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17976 a constant (same value).
17977 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17978 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17979
17980 2008-06-06 Robert Millan <rmh@aybabtu.com>
17981
17982 * util/biosdisk.c (open_device): Do not modify sector offset when
17983 accessing a partition. kern/disk.c already handles this for us.
17984
17985 2008-06-06 Robert Millan <rmh@aybabtu.com>
17986
17987 * util/grub-emu.c (grub_machine_init): Move code in this function from
17988 here ...
17989 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17990 segfault in case grub_printf() is called).
17991
17992 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17993 grub_probe. Update all users not to explicitly add it again.
17994 (grub_device): New variable; contains corresponding device for grubdir.
17995 (fs_module, partmap_module, devabstraction_module): Pass
17996 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17997 every time.
17998
17999 2008-06-05 Robert Millan <rmh@aybabtu.com>
18000
18001 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
18002 is found, print it (same layout as with labels).
18003
18004 2008-06-04 Robert Millan <rmh@aybabtu.com>
18005
18006 * util/biosdisk.c (get_drive): Rename to ...
18007 (find_grub_drive): ... this. Update all users.
18008
18009 (get_os_disk): Rename to ...
18010 (convert_system_partition_to_system_disk): ... this. Update all users.
18011
18012 (find_drive): Rename to ...
18013 (find_system_device): ... this. Update all users.
18014
18015 2008-06-04 Robert Millan <rmh@aybabtu.com>
18016
18017 * util/biosdisk.c (get_os_disk): Handle IDA devices.
18018 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18019 (make_device_map): Likewise.
18020
18021 2008-06-01 Robert Millan <rmh@aybabtu.com>
18022
18023 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
18024 before dereferencing it.
18025
18026 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
18027 union with fat12/fat16-specific ones. Add some new fields, including
18028 `num_serial' for both versions.
18029 (struct grub_fat_data): Add `uuid' member.
18030 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
18031 names. Initialize `data->uuid' using `num_serial'.
18032 (grub_fat_uuid): New function.
18033 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
18034
18035 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
18036 (grub_reiserfs_uuid): New function.
18037 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
18038 member.
18039
18040 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
18041 (grub_xfs_uuid): New function.
18042 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
18043
18044 2008-06-01 Robert Millan <rmh@aybabtu.com>
18045
18046 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
18047 code that is backward compatible with pre-uuid search command.
18048
18049 2008-05-31 Robert Millan <rmh@aybabtu.com>
18050
18051 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
18052 floppies after everything else, to ensure floppy drive isn't accessed
18053 unnecessarily (patch from Bean).
18054
18055 2008-05-31 Robert Millan <rmh@aybabtu.com>
18056
18057 * commands/search.c (search_label, search_fs_uuid, search_file): Do
18058 not print device names when we were asked to set a variable.
18059
18060 2008-05-31 Robert Millan <rmh@aybabtu.com>
18061
18062 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
18063 using "cursor-on" and "cursor-off" commands (understood at least by
18064 the Open Firmware flavour on OLPC).
18065
18066 2008-05-31 Michael Gorven <michael@gorven.za.net>
18067
18068 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
18069 on and off sequences.
18070
18071 2008-05-31 Robert Millan <rmh@aybabtu.com>
18072
18073 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
18074 * util/update-grub.in: Likewise.
18075
18076 2008-05-30 Pavel Roskin <proski@gnu.org>
18077
18078 * util/biosdisk.c (linux_find_partition): Simplify logic and
18079 make the code more universal. Keep special processing for
18080 devfs, but use a simple rule for all other devices. If the
18081 device ends with a number, append 'p' and the partition number.
18082 Otherwise, append only the partition number.
18083
18084 2008-05-30 Robert Millan <rmh@aybabtu.com>
18085
18086 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
18087 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
18088 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
18089 the `root' parameter to Linux.
18090
18091 2008-05-30 Robert Millan <rmh@aybabtu.com>
18092
18093 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
18094 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
18095 --fs_uuid with --fs-uuid.
18096 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
18097 all filesystems support them).
18098
18099 2008-05-30 Robert Millan <rmh@aybabtu.com>
18100
18101 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
18102 grub_printf() flags, since we're printing in units of 2 bytes.
18103
18104 2008-05-30 Robert Millan <rmh@aybabtu.com>
18105
18106 * util/grub.d/00_header.in: Remove obsolete comment referencing
18107 convert_system_path_to_grub_path().
18108 * util/update-grub.in: Likewise.
18109 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
18110 (convert_system_path_to_grub_path): Add a warning message explaining
18111 that this function is deprecated. Rely on is_path_readable_by_grub()
18112 for the readability checks.
18113 (font_path): Use is_path_readable_by_grub() for the readability
18114 check rather than convert_system_path_to_grub_path().
18115
18116 2008-05-30 Robert Millan <rmh@aybabtu.com>
18117
18118 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
18119 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
18120 converting it first.
18121 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
18122 grub.cfg for access to font file, and afterwards call it again to set
18123 the root device.
18124
18125 2008-05-30 Robert Millan <rmh@aybabtu.com>
18126
18127 * commands/search.c (options): Add --fs_uuid option.
18128 (search_fs_uuid): New function.
18129 (grub_cmd_search): Fix --set argument passing.
18130 Use search_fs_uuid() when requested via --fs_uuid.
18131 (grub_search_init): Update help message.
18132 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
18133 and redeclare it as an array of 16-bit words.
18134 (grub_ext2_uuid): New function.
18135 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
18136 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
18137 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
18138 (GRUB_DEVICE_BOOT_UUID): New variables.
18139 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
18140 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
18141 whenever possible.
18142 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
18143 just assume `root' variable has the right value.
18144 * util/grub.d/10_linux.in: Likewise.
18145 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
18146 via PRINT_FS_UUID.
18147 (main): Recognise `-t fs_uuid' argument.
18148
18149 2008-05-30 Robert Millan <rmh@aybabtu.com>
18150
18151 * util/biosdisk.c (map): Redefine structure to hold information
18152 about GRUB drive name.
18153 (get_drive): Reimplement without assuming (and verifying) BIOS-like
18154 drive names.
18155 (call_hook): Remove.
18156 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
18157 member. Assume drive has partitions.
18158 (grub_util_biosdisk_open): Access device names via `.device' struct
18159 member.
18160 (open_device): Likewise.
18161 (find_drive): Likewise.
18162 (read_device_map): Adjust map[] usage to match the new struct
18163 definition. Don't check for duplicates (still possible, but not cheap
18164 anymore).
18165 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
18166 (make_device_name): Remove assumption of BIOS-like drive names.
18167
18168 2008-05-30 Pavel Roskin <proski@gnu.org>
18169
18170 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
18171 compiling execute.c doesn't need grub_script.tab.h anymore.
18172 (normal/command.c_DEPENDENCIES): Likewise.
18173 (normal/function.c_DEPENDENCIES): Likewise.
18174 * conf/i386-ieee1275.rmk: Likewise.
18175 * conf/i386-linuxbios.rmk: Likewise.
18176 * conf/i386-pc.rmk: Likewise.
18177 * conf/powerpc-ieee1275.rmk: Likewise.
18178 * conf/sparc64-ieee1275.rmk: Likewise.
18179
18180 2008-05-29 Pavel Roskin <proski@gnu.org>
18181
18182 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
18183 when scanning metadata for volume group name.
18184
18185 * include/grub/script.h: Don't include grub_script.tab.h. It's
18186 a generated file, which may only be included from the files with
18187 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
18188 use union YYSTYPE, as the later allows forward declaration.
18189 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
18190
18191 2008-05-29 Robert Millan <rmh@aybabtu.com>
18192
18193 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
18194 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
18195 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
18196 (grub_console_checkkey): Add grub_dprintf() call to report unknown
18197 scan codes.
18198
18199 2008-05-29 Robert Millan <rmh@aybabtu.com>
18200
18201 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
18202 control key combinations.
18203
18204 2008-05-29 Robert Millan <rmh@aybabtu.com>
18205
18206 * util/powerpc/ieee1275/grub-install.in: Move from here ...
18207 * util/ieee1275/grub-install.in: ... to here.
18208 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
18209 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
18210 (grub_install_SOURCES): Likewise.
18211
18212 2008-05-29 Robert Millan <rmh@aybabtu.com>
18213
18214 * fs/affs.c: Update copyright year.
18215 * fs/ext2.c: Likewise.
18216 * fs/fshelp.c: Likewise.
18217 * fs/hfsplus.c: Likewise.
18218 * fs/ntfs.c: Likewise.
18219 * fs/xfs.c: Likewise.
18220 * include/grub/fshelp.h: Likewise.
18221 * util/grub-mkdevicemap.c: Likewise.
18222
18223 2008-05-28 Robert Millan <rmh@aybabtu.com>
18224
18225 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
18226 might need to be fatfs to support some firmware implementations
18227 (e.g. OFW or EFI).
18228
18229 2008-05-28 Robert Millan <rmh@aybabtu.com>
18230
18231 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
18232 devices.
18233 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18234 (make_device_map): Likewise.
18235
18236 2008-05-20 Bean <bean123ch@gmail.com>
18237
18238 * fs/fshelp.c (grub_fshelp_map_block): New function.
18239 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
18240 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
18241
18242 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
18243 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
18244 (grub_fshelp_journal): New structure.
18245 (grub_fshelp_map_block): New function prototype.
18246 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
18247 (grub_fshelp_map_block): Likewise.
18248
18249 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
18250 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
18251 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
18252 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
18253 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
18254 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
18255 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
18256 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
18257 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
18258 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
18259 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
18260 (grub_ext2_sblock): New members for journal support.
18261 (grub_ext3_journal_header): New structure.
18262 (grub_ext3_journal_revoke_header): Likewise.
18263 (grub_ext3_journal_block_tag): Likewise.
18264 (grub_ext3_journal_sblock): Likewise.
18265 (grub_fshelp_node): New members logfile and journal.
18266 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
18267 grub_fshelp_map_block to get real block number.
18268 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
18269 number.
18270 (grub_ext2_read_inode): Likewise.
18271 (grub_ext3_get_journal): New function.
18272 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
18273 (grub_ext2_close): Release memory used by journal.
18274
18275 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
18276 (REISERFS_MAGIC_DESC_BLOCK): New macro.
18277 (grub_reiserfs_transaction_header): Renamed to
18278 grub_reiserfs_description_block, replace field data with real_blocks.
18279 (grub_reiserfs_commit_block): New structure.
18280 (grub_reiserfs_data): New member journal.
18281 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
18282 number.
18283 (grub_reiserfs_read_symlink): Likewise.
18284 (grub_reiserfs_iterate_dir): Likewise.
18285 (grub_reiserfs_open): Likewise.
18286 (grub_reiserfs_read): Likewise.
18287 (grub_reiserfs_get_journal): New function.
18288 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
18289 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
18290 using grub_reiserfs_get_journal.
18291 (grub_reiserfs_close): Release memory used by journal.
18292
18293 * fs/affs.c (grub_affs_read_block): Change block type to
18294 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
18295
18296 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
18297
18298 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
18299
18300 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
18301
18302 * fs/udf.c (grub_udf_read_block): Change block type to
18303 grub_disk_addr_t. Use type cast to avoid warning.
18304
18305 * fs/xfs.c (grub_xfs_read_block): Likewise.
18306
18307 2008-05-16 Christian Franke <franke@computer.org>
18308
18309 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
18310 to ensure that break with ESC will always work.
18311 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
18312 Remove ESC from keyboard queue.
18313
18314 2008-05-16 Christian Franke <franke@computer.org>
18315
18316 * util/biosdisk.c: [__CYGWIN__] Add includes.
18317 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
18318 (get_os_disk): Move variable declarations to OS specific
18319 parts to avoid warning.
18320 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
18321 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
18322 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
18323 Cygwin.
18324 * util/getroot.c: [__CYGWIN__] Add includes.
18325 (strip_extra_slashes): Fix "/" case.
18326 [__CYGWIN__] (get_win32_path): New function.
18327 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
18328 [__CYGWIN__] (find_root_device): Disable.
18329 [__CYGWIN__] (get_bootsec_serial): New function.
18330 [__CYGWIN__] (find_cygwin_root_device): Likewise.
18331 [__linux__] (grub_guess_root_device): Add early returns to simplify
18332 structure.
18333 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
18334 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
18335 check for Linux only.
18336
18337 2008-05-15 Bean <bean123ch@gmail.com>
18338
18339 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
18340 keyboard hang problem in apple's intel mac.
18341
18342 2008-05-09 Robert Millan <rmh@aybabtu.com>
18343
18344 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
18345 devices.
18346 * util/grub-mkdevicemap.c (get_virtio_disk_name)
18347 (make_device_map): Likewise.
18348 Reported by Aurelien Jarno <aurel32@debian.org>
18349
18350 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
18351
18352 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
18353 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
18354 (make_device_map): Output entries for xvd type disks.
18355
18356 2008-05-07 Robert Millan <rmh@aybabtu.com>
18357
18358 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
18359 devices.
18360 * util/grub-mkdevicemap.c (get_cciss_disk_name)
18361 (make_device_map): Likewise.
18362 Reported by Roland Dreier <rdreier@cisco.com>
18363
18364 2008-05-07 Robert Millan <rmh@aybabtu.com>
18365
18366 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
18367 grub_strstr() call. Correct a few mistakes in failure path handling.
18368
18369 2008-05-06 Robert Millan <rmh@aybabtu.com>
18370
18371 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
18372 Do not print a trailing slash (therefore, the root directory is an
18373 empty string).
18374 (convert_system_path_to_grub_path): Do not remove trailing slash
18375 from make_system_path_relative_to_its_root() output.
18376
18377 * util/i386/pc/grub-install.in: Add trailing slash to output from
18378 make_system_path_relative_to_its_root().
18379
18380 2008-05-06 Robert Millan <rmh@aybabtu.com>
18381
18382 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
18383 ensures that output lines aren't intermangled with those sent to
18384 stderr (via grub_util_info()).
18385 * util/grub-probe.c (grub_refresh): Likewise.
18386 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
18387
18388 2008-05-05 Christian Franke <franke@computer.org>
18389
18390 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
18391 Add Cygwin device names.
18392 (get_ide_disk_name) [__CYGWIN__]: Likewise.
18393 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
18394 (check_device): Return error instead of success on empty name.
18395 (make_device_map): Move label inside linux specific code to
18396 prevent compiler warning.
18397
18398 2008-04-30 Robert Millan <rmh@aybabtu.com>
18399
18400 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
18401 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
18402 first boot option.
18403 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
18404
18405 2008-04-29 Robert Millan <rmh@aybabtu.com>
18406
18407 * docs/grub.cfg: New file (example GRUB configuration).
18408
18409 2008-04-26 Robert Millan <rmh@aybabtu.com>
18410
18411 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
18412 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
18413 and `disk/ieee1275/nand.c'.
18414
18415 2008-04-25 Bean <bean123ch@gmail.com>
18416
18417 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
18418 i386-linuxbios.
18419
18420 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
18421 change the buffer size to 4096 for cdrom device.
18422
18423 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
18424 and nand.mod.
18425 (_linux_mod_SOURCES): New variable.
18426 (_linux_mod_CFLAGS): Likewise.
18427 (_linux_mod_LDFLAGS): Likewise.
18428 (linux_mod_SOURCES): Likewise.
18429 (linux_mod_CFLAGS): Likewise.
18430 (linux_mod_LDFLAGS): Likewise.
18431 (nand_mod_SOURCES): Likewise.
18432 (nand_mod_CFLAGS): Likewise.
18433 (nand_mod_LDFLAGS): Likewise.
18434
18435 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
18436 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
18437 type property. (nand device in olpc don't have this property)
18438
18439 * include/grub/disk.h (grub_disk_dev_id): New macro
18440 GRUB_DISK_DEVICE_NAND_ID.
18441
18442 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
18443 function prototype.
18444 (grub_rescue_cmd_initrd): Likewise.
18445
18446 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
18447 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
18448 ofw_cif_handler and ofw_idt, adjust padding number.
18449
18450 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
18451 GRUB_MACHINE_IEEE1275 is defined.
18452
18453 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
18454 Use NESTED_FUNC_ATTR attribute on the hook parameter.
18455
18456 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
18457 on nested function heap_init.
18458 (grub_upper_mem): New variable for i386-ieee1275.
18459 (grub_get_extended_memory): New function for i386-ieee1275.
18460 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
18461
18462 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
18463 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
18464 property.
18465
18466 * loader/i386/ieee1275/linux.c: New file.
18467
18468 * loader/i386/ieee1275/linux_normal.c: New file.
18469
18470 * disk/ieee1275/nand.c: New file.
18471
18472 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
18473
18474 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
18475 value.
18476 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
18477
18478 2008-04-18 Robert Millan <rmh@aybabtu.com>
18479
18480 Restructures early code path on ieee1275 to unify grub_main() as
18481 the first C function that is executed in every platform.
18482
18483 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
18484 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
18485 cmain().
18486 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
18487 * kern/ieee1275/cmain.c (cmain): Rename to ...
18488 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
18489 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
18490 at the beginning.
18491
18492 2008-04-18 Robert Millan <rmh@aybabtu.com>
18493
18494 * util/update-grub.in: Fix syntax error when setting
18495 `GRUB_PRELOAD_MODULES'.
18496 Reported by Stephane Chazelas <stephane@artesyncp.com>
18497
18498 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
18499
18500 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
18501 section into account, newer toolchains generate unique build ids
18502 * configure.ac: remove the test for --build-id=none acceptance,
18503 we want build ids to be preserved
18504 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
18505 far from other sections don't cause the raw binary images grow
18506 size
18507
18508 2008-04-15 Robert Millan <rmh@aybabtu.com>
18509
18510 * disk/lvm.c: Update copyright year.
18511 * kern/misc.c: Likewise.
18512
18513 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18514
18515 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
18516 there is no memory left for physical volume name.
18517
18518 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18519
18520 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18521 volume name mapping to support bigger than 9 character names properly.
18522
18523 2008-04-13 Robert Millan <rmh@aybabtu.com>
18524
18525 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18526 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18527
18528 2008-04-13 Christian Franke <franke@computer.org>
18529
18530 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18531 to create a floppy emulation boot CD when non emulation mode
18532 does not work.
18533 Enable Joliet CD filesystem extension.
18534
18535 2008-04-13 Robert Millan <rmh@aybabtu.com>
18536
18537 * kern/misc.c (grub_strncat): Fix off-by-one error.
18538 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18539
18540 * kern/env.c (grub_env_context_close): Clear current context, not
18541 previous one.
18542 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18543
18544 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18545
18546 2008-04-13 Robert Millan <rmh@aybabtu.com>
18547
18548 Improve robustness when handling LVM.
18549
18550 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
18551 (and leave `*p' unmodified).
18552 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18553 through it.
18554 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18555 iterating through it.
18556 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18557 through it.
18558 (grub_lvm_scan_device): Check the return value (and fail gracefully
18559 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18560 Don't assume `vg->pvs != NULL' when iterating through it.
18561
18562 2008-04-13 Robert Millan <rmh@aybabtu.com>
18563
18564 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18565 * genmk.rb (partmap): New variable.
18566 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18567 (#{partmap}): New target rule.
18568 * genpartmaplist.sh: New file.
18569 * Makefile.in (pkglib_DATA): Add partmap.lst.
18570 (partmap.lst): New target rule.
18571 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18572 modules (including all partition maps), instead of preloading them.
18573
18574 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18575
18576 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18577 `linux-boot-prober' (if installed) to detect other operating
18578 systems which are installed on the computer and add them to
18579 the boot menu.
18580 * conf/common.rmk: Build and install 30_os-prober.
18581
18582 2008-04-12 Robert Millan <rmh@aybabtu.com>
18583
18584 * kern/powerpc/ieee1275/init.c: Move from here ...
18585 * kern/ieee1275/init.c: ... to here. Update all users.
18586
18587 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18588 * kern/ieee1275/cmain.c: ... to here. Update all users.
18589
18590 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18591 * kern/ieee1275/openfw.c: ... to here. Update all users.
18592
18593 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18594 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18595
18596 2008-04-10 Pavel Roskin <proski@gnu.org>
18597
18598 * configure.ac: Always use "_cv_" in cache variables for
18599 compatibility with Autoconf 2.62.
18600
18601 2008-04-07 Robert Millan <rmh@aybabtu.com>
18602
18603 Revert grub/machine/init.h addition by Pavel (since it breaks on
18604 i386-ieee1275 and others):
18605 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18606 * util/powerpc/ieee1275/misc.c: Likewise.
18607
18608 2008-04-07 Robert Millan <rmh@aybabtu.com>
18609
18610 * util/grub-probe.c (probe): Improve error message.
18611
18612 2008-04-07 Robert Millan <rmh@aybabtu.com>
18613
18614 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18615 (this prevents the presence of a bogus entry from ruining the whole
18616 thing).
18617
18618 2008-04-06 Pavel Roskin <proski@gnu.org>
18619
18620 * util/biosdisk.c: Include grub/util/biosdisk.h.
18621 * util/grub-fstest.c (execute_command): Make static.
18622 * util/grub-mkdevicemap.c (check_device): Likewise.
18623 * util/i386/pc/misc.c: Include grub/machine/init.h.
18624 * util/powerpc/ieee1275/misc.c: Likewise.
18625 * util/lvm.c: Include grub/util/lvm.h.
18626 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18627 grub/cache.h.
18628 * util/raid.c: Include grub/util/raid.h.
18629 (grub_util_getdiskname): Make static.
18630
18631 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18632 grub_hostfs_fini(), as they are called from grub_init_all() and
18633 grub_fini_all() respectively. This fixes an infinite loop in
18634 grub-fstest due to double registration of hostfs.
18635 Reported by Christian Franke <Christian.Franke@t-online.de>
18636
18637 2008-04-05 Pavel Roskin <proski@gnu.org>
18638
18639 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18640 all 8 functions. Otherwise, probe function 0 only.
18641
18642 2008-04-04 Pavel Roskin <proski@gnu.org>
18643
18644 * commands/lspci.c (grub_lspci_iter): Print the bus number
18645 correctly.
18646
18647 * commands/lspci.c (grub_pci_classes): Fix typos.
18648 (grub_lspci_iter): Don't print func twice. Print vendor ID
18649 before device ID, as it's normally done.
18650
18651 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18652 Fix signedness warnings.
18653 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18654 Likewise.
18655 * util/ieee1275/get_disk_name.c: Include config.h so that
18656 _GNU_SOURCE is defined and getline() is declared. Mark an
18657 unused argument as such. Fix a signedness warning.
18658
18659 2008-04-02 Pavel Roskin <proski@gnu.org>
18660
18661 * genkernsyms.sh.in: Use more robust assignments for CC and
18662 srcdir. Quote srcdir.
18663 * gensymlist.sh.in: Likewise. Assert at the compile time that
18664 the symbol table is not empty.
18665
18666 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18667 * fs/cpio.c (grub_cpio_read): Likewise.
18668
18669 2008-04-01 Pavel Roskin <proski@gnu.org>
18670
18671 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18672 * disk/host.c (grub_host_open): Likewise.
18673 * disk/loopback.c (grub_loopback_open): Likewise.
18674 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18675 disk->id as in disk/host.c, not a multi-character constant.
18676
18677 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18678 later is obsolete, potentially dangerous and sets a bad example.
18679 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18680 * util/misc.c (grub_util_get_image_size): Likewise.
18681
18682 * disk/loopback.c (options): Improve help for "--partitions".
18683
18684 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18685 options to align them with the short options, e.g. "echo -e".
18686
18687 2008-03-31 Bean <bean123ch@gmail.com>
18688
18689 * video/reader/png.c (grub_png_data): New member is_16bit and
18690 image_data.
18691 (grub_png_decode_image_header): Detect 16 bit png image.
18692 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18693 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18694 (grub_video_reader_png): Release memory occupied by image_data.
18695
18696 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18697 4096 bytes.
18698 (grub_nfs_mount): Skip the test for sector per cluster.
18699
18700 * include/grub/ntfs.h (MAX_SPC): Removed.
18701
18702 2008-03-31 Bean <bean123ch@gmail.com>
18703
18704 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18705 (grub_probe_SOURCES): Add fs/afs.c.
18706 (grub_fstest_SOURCES): Likewise.
18707 (afs_mod_SOURCES): New variable.
18708 (afs_mod_CFLAGS): Likewise.
18709 (afs_mod_LDFLAGS): Likewise.
18710
18711 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18712 (grub_emu_SOURCES): Likewise.
18713
18714 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18715
18716 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18717
18718 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18719
18720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18721
18722 * fs/afs.c: New file.
18723
18724 2008-03-30 Pavel Roskin <proski@gnu.org>
18725
18726 * disk/host.c: Include grub/misc.h to fix a warning.
18727 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18728 warnings about implicit declarations.
18729
18730 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18731 variable.
18732 * include/grub/i386/loader.h: Change declaration of
18733 grub_linux_boot() to match what grub_loader_set() expects.
18734 * util/getroot.c (grub_guess_root_device): Return const char* to
18735 fix a warning.
18736 * util/grub-probe.c (probe): Fix a warning about uninitialized
18737 abstraction_name variable.
18738 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18739 second argument as unused to fix a warning.
18740
18741 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18742 missing grub_error() call.
18743
18744 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18745 2.60 and newer uses it to define datadir.
18746
18747 * commands/sleep.c: Fix warning about implicit declaration.
18748 * disk/memdisk.c: Likewise.
18749 * loader/aout.c: Likewise.
18750 * loader/i386/bsd_normal.c: Likewise.
18751 * util/grub-probe.c: Likewise.
18752
18753 * commands/i386/cpuid.c (has_longmode): Make static.
18754 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18755 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18756
18757 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18758 GDT. This is more robust, as %ds can change.
18759 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18760 calling real_to_prot().
18761 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18762
18763 2008-03-28 Pavel Roskin <proski@gnu.org>
18764
18765 * kern/i386/pc/startup.S: Assert that uncompressed functions
18766 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18767 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18768 code, as they push parts of the code (error handlers) beyond
18769 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18770 code as correctness and size.
18771
18772 2008-03-28 Pavel Roskin <proski@gnu.org>
18773
18774 * kern/i386/pc/startup.S
18775 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18776 data block address to the real mode, keep offset minimal. This
18777 works around a bug in AWARD BIOS on old Athlon systems, which
18778 makes CD detection hang.
18779
18780 2008-03-26 Pavel Roskin <proski@gnu.org>
18781
18782 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18783 const.
18784 * include/grub/normal.h: Add grub_parse_color_name_pair()
18785 declaration.
18786
18787 2008-03-24 Bean <bean123ch@gmail.com>
18788
18789 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18790 (cd_count): Removed.
18791 (cd_drive): New variable.
18792 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18793 (grub_biosdisk_call_hook): Likewise.
18794 (grub_biosdisk_iterate): Change cdrom detection method.
18795 (grub_biosdisk_open): Replace cd_start with cd_drive.
18796 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18797 detect cdrom device.
18798
18799 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18800 Removed.
18801 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18802 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18803 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18804 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18805 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18806 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18807 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18808 (grub_biosdisk_cdrp): New structure.
18809 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18810
18811 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18812
18813 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18814 device.
18815
18816 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18817 New function.
18818
18819 2008-03-20 Robert Millan <rmh@aybabtu.com>
18820
18821 Remove 2 TiB limit in ata.mod.
18822 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18823 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18824 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18825 grub_uint64_t instead of grub_uint32_t.
18826
18827 2008-03-05 Bean <bean123ch@gmail.com>
18828
18829 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18830 (grub_multiboot): Set boot device.
18831
18832 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18833
18834 2008-03-02 Bean <bean123ch@gmail.com>
18835
18836 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18837 symlink_buffer.
18838
18839 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18840
18841 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18842 texinfo.tex.
18843
18844 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18845 modified.
18846
18847 * docs/fdl.texi: New file.
18848
18849 * docs/mdate-sh: New file. Copied from gnulib.
18850 * docs/texinfo.tex: Likewise.
18851
18852 * config.guess: Updated from gnulib.
18853 * install-sh: Likewise.
18854
18855 2008-02-28 Robert Millan <rmh@aybabtu.com>
18856
18857 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18858 (aout_mod_SOURCES): New variable.
18859 (aout_mod_CFLAGS): Likewise.
18860 (aout_mod_LDFLAGS): Likewise.
18861
18862 * conf/i386-ieee1275.rmk: Likewise.
18863
18864 2008-02-28 Robert Millan <rmh@aybabtu.com>
18865
18866 * util/update-grub.in: Reorganise terminal validity check. Accept
18867 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18868 Based on suggestion by Franklin PIAT.
18869
18870 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18871
18872 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18873 function.
18874 * util/getroot.c (grub_util_check_block_device): New function that
18875 returns the given argument if it is a block device and returns NULL else.
18876 * util/grub-probe.c (argument_is_device): New variable.
18877 (probe): Promote device_name from a variable to an argument. Receive
18878 device_name from grub_util_check_block_device() if path is NULL and from
18879 grub_guess_root_device() else. Do not free() device_name anymore.
18880 (options): Introduce new parameter '-d, --device'.
18881 (main): Add description of the new parameter to the help screen.
18882 Rename path variable to argument. Set argument_is_device if the '-d'
18883 option is given. Pass argument to probe() depending on
18884 argument_is_device.
18885
18886 2008-02-24 Bean <bean123ch@gmail.com>
18887
18888 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18889 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18890 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18891 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18892 (GRUB_ISO9660_VOLDESC_END): Likewise.
18893 (grub_iso9660_primary_voldesc): New member escape.
18894 (grub_iso9660_data): New member joliet.
18895 (grub_iso9660_convert_string): New function.
18896 (grub_iso9660_mount): Detect joliet extension.
18897 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18898 (grub_iso9660_iso9660_label): Likewise.
18899
18900 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18901 (grub_setup_SOURCES): Add fs/udf.c.
18902 (grub_fstest_SOURCES): Likewise.
18903 (udf_mod_SOURCES): New variable.
18904 (udf_mod_CFLAGS): Likewise.
18905 (udf_mod_LDFLAGS): Likewise.
18906
18907 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18908 (grub_emu_SOURCES): Likewise.
18909
18910 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18911
18912 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18913
18914 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18915
18916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18917
18918 * fs/udf.c: New file.
18919
18920 2008-02-24 Robert Millan <rmh@aybabtu.com>
18921
18922 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18923 (normal/lexer.c_DEPENDENCIES): New variables.
18924 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18925 (normal/lexer.c_DEPENDENCIES): Likewise.
18926 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18927 (normal/lexer.c_DEPENDENCIES): Likewise.
18928 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18929 (normal/lexer.c_DEPENDENCIES): Likewise.
18930 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18931 (normal/lexer.c_DEPENDENCIES): Likewise.
18932 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18933 (normal/lexer.c_DEPENDENCIES): Likewise.
18934
18935 2008-02-23 Robert Millan <rmh@aybabtu.com>
18936
18937 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18938 since they were intended to be in hex. This didn't break previously
18939 because of a bug in gpt_partition_map_iterate() (see below).
18940
18941 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18942 when checking the validity of GPT header.
18943 Remove `partno', since it always provides the same information as `i'.
18944
18945 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18946
18947 * include/grub/efi/time.h: Fix a wrong comment.
18948
18949 2008-02-19 Pavel Roskin <proski@gnu.org>
18950
18951 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18952 message.
18953
18954 2008-02-19 Bean <bean123ch@gmail.com>
18955
18956 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18957 (aout_mod_SOURCES): New variable.
18958 (aout_mod_CFLAGS): Likewise.
18959 (aout_mod_LDFLAGS): Likewise.
18960 (_bsd_mod_SOURCES): New variable.
18961 (_bsd_mod_CFLAGS): Likewise.
18962 (_bsd_mod_LDFLAGS): Likewise.
18963 (bsd_mod_SOURCES): New variable.
18964 (bsd_mod_CFLAGS): Likewise.
18965 (bsd_mod_LDFLAGS): Likewise.
18966
18967 * include/grub/aout.h: New file.
18968
18969 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18970
18971 * include/grub/i386/bsd.h: New file.
18972
18973 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18974 to make it public.
18975
18976 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18977 function is called, so that it's possible to change it inside the hook.
18978 (grub_elf64_load): Likewise.
18979 (grub_elf_file): Don't close the file if elf header is not found.
18980 (grub_elf_close): Close the file if grub_elf_file fails (The new
18981 grub_elf_file won't close it).
18982 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18983 (grub_elf64_size): Likewise.
18984
18985 * kern/i386/loader.S (grub_unix_real_boot): New function.
18986
18987 * loader/aout.c: New file.
18988
18989 * loader/i386/bsd.c: New file.
18990
18991 * loader/i386/bsd_normal.c: New file.
18992
18993 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18994
18995 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18996 can test other formats.
18997
18998 2008-02-19 Robert Millan <rmh@aybabtu.com>
18999
19000 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
19001 (grub_gpt_partition_type_empty): Redefine with macro from
19002 `<grub/gpt_partition.h>'.
19003 (gpt_partition_map_iterate): Adjust partition type comparison.
19004
19005 Export `entry' as partmap-specific `part.data' struct.
19006 (grub_gpt_header, grub_gpt_partentry): Move from here ...
19007
19008 * include/grub/gpt_partition.h (grub_gpt_header)
19009 (grub_gpt_partentry): ... to here (new file).
19010
19011 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
19012
19013 (grub_gpt_partition_type_bios_boot): New const variable, defined
19014 with macro from `<grub/gpt_partition.h>'.
19015
19016 (setup): Replace `first_start' with `embed_region', which keeps
19017 track of the embed region (and is partmap-agnostic).
19018
19019 Replace find_first_partition_start() with find_usable_region(),
19020 which finds a usable region for embedding using partmap-specific
19021 knowledge (supports PC/MSDOS and GPT).
19022
19023 Fix all assumptions that the embed region start at sector 1, using
19024 `embed_region.start' from now on. Similarly, use `embed_region.end'
19025 rather than `first_start' to calculate available size.
19026
19027 In grub_util_info() message, replace "into after the MBR" with an
19028 indication of the specific sector our embed region starts at.
19029
19030 2008-02-19 Robert Millan <rmh@aybabtu.com>
19031
19032 * DISTLIST: Replace `commands/ieee1275/halt.c' and
19033 `commands/ieee1275/reboot.c' with `commands/halt.c' and
19034 `commands/reboot.c'.
19035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19036 (halt_mod_SOURCES): Likewise.
19037 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19038 (halt_mod_SOURCES): Likewise.
19039
19040 2008-02-17 Christian Franke <franke@computer.org>
19041
19042 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
19043
19044 2008-02-17 Robert Millan <rmh@aybabtu.com>
19045
19046 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19047 set `first_start' to 0 for non-PC/MSDOS partition maps.
19048
19049 2008-02-16 Robert Millan <rmh@aybabtu.com>
19050
19051 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19052 do not assume partition map is PC/MSDOS before performing checks that
19053 are specific to that layout.
19054
19055 2008-02-13 Robert Millan <rmh@aybabtu.com>
19056
19057 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
19058 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
19059 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
19060
19061 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
19062
19063 * configure.ac: Only a cosmetic change on the handling of
19064 -fno-stack-protector.
19065
19066 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
19067
19068 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
19069 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
19070 reboot.c.
19071 (grub_install_SOURCES): Add halt.mod and reboot.mod.
19072 (halt_mod_SOURCES): New variable.
19073 (halt_mod_CFLAGS): Likewise.
19074 (halt_mod_LDFLAGS): Likewise.
19075 (reboot_mod_SOURCES): Likewise.
19076 (reboot_mod_CFLAGS): Likewise.
19077 (reboot_mod_LDFLAGS): Likewise.
19078
19079 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
19080 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
19081 reboot.c.
19082 (halt_mod_SOURCES): Likewise.
19083 (reboot_mod_SOURCES): Likewise.
19084
19085 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
19086 commands/i386/pc/reboot.c by commands/reboot.c.
19087 (reboot_mod_SOURCES): Likewise.
19088
19089 * commands/i386/pc/reboot.c: merge this file ...
19090
19091 * commands/ieee1275/reboot.c: ... and this file ...
19092
19093 * commands/reboot.c: ... to this file.
19094 Add some precompiler directive to include the correct header for
19095 each machine.
19096
19097 * commands/ieee1275/halt.c: move this file ...
19098
19099 * commands/halt.c: ... to here.
19100 Add some precompiler directive to include the correct header for
19101 each machine.
19102
19103 * include/grub/efi/efi.h (grub_reboot): New function declaration.
19104 (grub_halt): Likewise.
19105
19106 * kern/efi/efi.c (grub_reboot): New function.
19107 (grub_halt): Likewise.
19108
19109 2008-02-12 Robert Millan <rmh@aybabtu.com>
19110
19111 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
19112 /dev (like it is done for /dev/mapper). This doesn't provide support
19113 for EVMS, but at least it is now easy to identify the problem when it
19114 arises.
19115
19116 2008-02-11 Robert Millan <rmh@aybabtu.com>
19117
19118 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
19119 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
19120 comparing it with -1, not 0.
19121
19122 2008-02-10 Robert Millan <rmh@aybabtu.com>
19123
19124 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
19125 `disk/lvm.c'.
19126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19127 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19128
19129 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
19130 `disk/lvm.c' to the end of the list.
19131 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19132 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19133
19134 2008-02-10 Robert Millan <rmh@aybabtu.com>
19135
19136 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
19137 grub_print_error() instead. This will let user know why we're entering
19138 rescue mode.
19139 Based on suggestions from Sam Morris.
19140
19141 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
19142
19143 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
19144 on remaining N args, instead of "--" arg N times.
19145
19146 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
19147
19148 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
19149 (fill_with_default_glyph): Changed to use unknown_glyph for fill
19150 pattern for unknown glyphs.
19151
19152 2008-02-09 Robert Millan <rmh@aybabtu.com>
19153
19154 * configure.ac: Probe for `help2man'.
19155 * Makefile.in (builddir): New variable.
19156 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
19157 or otherwise add a few flags/options to it.
19158 (install-local): For every executable utility or script that is
19159 installed, invoke $(HELP2MAN) to install a manpage based on --help
19160 output.
19161
19162 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
19163 that it doesn't prevent --help from working in build tree.
19164
19165 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
19166 with `bug-grub@gnu.org'.
19167 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
19168 * util/update-grub.in (usage): New function.
19169 Implement proper argument check, with support for --help and --version
19170 (as well as existing -y).
19171
19172 2008-02-09 Christian Franke <franke@computer.org>
19173
19174 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
19175 avoid overwriting previous output.
19176 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
19177
19178 2008-02-09 Robert Millan <rmh@aybabtu.com>
19179
19180 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
19181 drawing the menu.
19182
19183 2008-02-09 Robert Millan <rmh@aybabtu.com>
19184
19185 * commands/sleep.c: New file.
19186 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
19187 (sleep_mod_SOURCES): New variable.
19188 (sleep_mod_CFLAGS): Likewise.
19189 (sleep_mod_LDFLAGS): Likewise.
19190
19191 2008-02-09 Robert Millan <rmh@aybabtu.com>
19192
19193 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
19194 situations in which we can deduce the RAID size and the superblock
19195 doesn't match it.
19196
19197 2008-02-09 Robert Millan <rmh@aybabtu.com>
19198
19199 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
19200 and return a grub_diskmemberlist_t composed of LVM physical volumes.
19201 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
19202
19203 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
19204 and return a grub_diskmemberlist_t composed of physical array members.
19205 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
19206
19207 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
19208 prototype.
19209 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
19210 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
19211 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
19212
19213 * util/grub-probe.c (probe): Move partmap probing code from here ...
19214 (probe_partmap): ... to here.
19215 (probe): Use probe_partmap() once for the disk we're probing, and
19216 additionally, when such disk contains a memberlist() struct member,
19217 once for each disk that is contained in the structure returned by
19218 memberlist().
19219
19220 2008-02-09 Robert Millan <rmh@aybabtu.com>
19221
19222 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
19223 environment variable to 'all' in order to obtain debug output from
19224 non-util/ code.
19225 * util/i386/pc/grub-setup.c (main): Likewise.
19226
19227 2008-02-08 Robert Millan <rmh@aybabtu.com>
19228
19229 * disk/raid.c (grub_raid_scan_device): Check for
19230 `array->device[sb.this_disk.number]' rather than for
19231 `array->device[sb.this_disk.number]->name', since the latter is not
19232 guaranteed to be accessible.
19233
19234 2008-02-08 Robert Millan <rmh@aybabtu.com>
19235
19236 * disk/raid.c: Update copyright.
19237 * fs/cpio.c: Likewise.
19238 * include/grub/raid.h: Likewise.
19239 * loader/i386/pc/multiboot.c: Likewise.
19240 * util/hostfs.c: Likewise.
19241
19242 2008-02-08 Robert Millan <rmh@aybabtu.com>
19243
19244 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
19245 to a grub_disk_t array.
19246 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
19247 `device[x]'.
19248 (grub_raid_scan_device): Replace `device[x].name' accesses with
19249 `device[x]->name'. Simplify initialization of `array->device[x]'.
19250
19251 2008-02-08 Robert Millan <rmh@aybabtu.com>
19252
19253 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
19254 grub_dprintf() calls.
19255 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
19256 error message.
19257
19258 2008-02-07 Christian Franke <franke@computer.org>
19259
19260 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
19261 instead of fseek and ftell to support large files.
19262 (grub_hostfs_read): Likewise.
19263
19264 2008-02-07 Robert Millan <rmh@aybabtu.com>
19265
19266 Patch from Jeroen Dekkers.
19267 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
19268 failure, since successfully reading all array members might not be
19269 required.
19270
19271 2008-02-06 Robert Millan <rmh@aybabtu.com>
19272
19273 * util/grub-probe.c (probe): Simplify partmap probing (with the
19274 assumption that the first word up to the underscore equals to
19275 the module name).
19276
19277 2008-02-06 Christian Franke <franke@computer.org>
19278
19279 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
19280 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
19281 last block of a cpio or tar stream.
19282 Check for "TRAILER!!!" instead of any empty data
19283 block to detect last block of a cpio stream.
19284 (grub_cpio_dir): Fix constness of variable np.
19285 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
19286 cpio or tar trailer is detected. This fixes a crash
19287 on open of a non existing file.
19288
19289 2008-02-05 Bean <bean123ch@gmail.com>
19290
19291 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
19292 address of entry.
19293 (grub_multiboot_load_elf64): Likewise.
19294 (grub_multiboot): Initialize mbi structure.
19295
19296 * util/grub-fstest.c: Don't include unused header file script.h.
19297
19298 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
19299 of file.
19300 (grub_fstest_SOURCES): Likewise.
19301
19302 2008-02-05 Robert Millan <rmh@aybabtu.com>
19303
19304 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
19305 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
19306 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
19307 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
19308
19309 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
19310 (translation_table): Replace hardcoded values with macros
19311 provided by `<grub/term.h>'.
19312
19313 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
19314 (keyboard_map): Correct/add a few values, with macros provided
19315 by `<grub/term.h>'.
19316 (keyboard_map_shift): Zero values that don't differ from their
19317 `keyboard_map' equivalents.
19318 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
19319 Discard the second scan code that is always sent by Caps lock.
19320 Only use `keyboard_map_shift' when it provides a non-zero value,
19321 otherwise fallback to `keyboard_map'.
19322
19323 2008-02-04 Bean <bean123ch@gmail.com>
19324
19325 * Makefile.in (enable_grub_fstest): New variable.
19326
19327 * conf/common.rmk (grub_fstest_init.lst): New rule.
19328 (grub_fstest_init.h): Likewise.
19329 (grub_fstest_init.c): Likewise.
19330 (util/grub-fstest.c_DEPENDENCIES): New variable.
19331 (grub_fstest_SOURCES): Likewise.
19332
19333 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
19334
19335 * util/grub-fstest.c: New file.
19336
19337 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19338
19339 Make grub-setup handle a separate root device.
19340
19341 * util/i386/pc/grub-setup.c (setup): Always open the root device,
19342 so that the root device can be compared with the destination
19343 device.
19344 When embedding the core image, if the root and destination devices
19345 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
19346 0xFF.
19347 When not embedding, set ROOT_DRIVE to 0xFF.
19348
19349 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19350
19351 Add support for having a grub directory in a different drive. This
19352 is still only the data handling part.
19353
19354 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
19355 (codestart): Save %dh in GRUB_ROOT_DRIVE.
19356 (grub_root_drive): New variable.
19357
19358 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
19359 instead of GRUB_BOOT_DRIVE to construct a device name. Set
19360 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
19361 as it was.
19362
19363 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
19364
19365 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
19366 macro.
19367 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
19368
19369 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
19370 is bogus, because PXE booting does not specify any drive
19371 correctly.
19372
19373 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
19374 am not sure if this is really correct.
19375
19376 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
19377 is always identical to the boot drive when booting from a CD.
19378
19379 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
19380 longer.
19381 (root_drive): New variable.
19382 (real_start): Unconditionally set %dh to ROOT_DRIVE.
19383 (setup_sectors): Push %dx right after popping it, because %dh will
19384 be modified later.
19385 (copy_buffer): Restore %dx.
19386
19387 2008-02-03 Robert Millan <rmh@aybabtu.com>
19388
19389 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
19390 use `cdboot.img' for cdrom images.
19391
19392 2008-02-03 Robert Millan <rmh@aybabtu.com>
19393
19394 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
19395 only setup gfxterm when `font' command has succeeded.
19396
19397 2008-02-03 Robert Millan <rmh@aybabtu.com>
19398
19399 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
19400 (grub_rescue_cmd_multiboot_loader)
19401 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
19402
19403 2008-02-03 Pavel Roskin <proski@gnu.org>
19404
19405 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
19406 %edx and %esi from stack only after grub_gate_a20() is called.
19407 grub_gate_a20() clobbers %edx.
19408
19409 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19410
19411 * configure.ac (AC_INIT): Bumped to 1.96.
19412
19413 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
19414 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
19415 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
19416 video/readers/png.c.
19417
19418 2008-02-03 Bean <bean123ch@gmail.com>
19419
19420 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
19421 (cdboot_img_SOURCES): New variable.
19422 (cdboot_img_ASFLAGS): New variable.
19423 (cdboot_img_LDFLAGS): New variable.
19424
19425 * boot/i386/pc/cdboot.S: New file.
19426
19427 * disk/i386/pc/biosdisk.c (cd_start): New variable.
19428 (cd_count): Likewise.
19429 (grub_biosdisk_get_drive): Add support for cd device.
19430 (grub_biosdisk_call_hook): Likewise.
19431 (grub_biosdisk_iterate): Likewise.
19432 (grub_biosdisk_open): Likewise.
19433 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
19434 (grub_biosdisk_rw): Support reading from cd device.
19435 (GRUB_MOD_INIT): Iterate cd devices.
19436
19437 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
19438 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
19439 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
19440
19441 * kern/i386/pc/init.c (make_install_device): Check for cd device.
19442
19443 2008-02-02 Robert Millan <rmh@aybabtu.com>
19444
19445 * commands/read.c: New file.
19446 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
19447 (read_mod_SOURCES): New variable.
19448 (read_mod_CFLAGS): Likewise.
19449 (read_mod_LDFLAGS): Likewise.
19450
19451 2008-02-02 Robert Millan <rmh@aybabtu.com>
19452
19453 * normal/main.c (grub_normal_execute): Check for `menu->size' when
19454 determining whether menu has to be displayed.
19455
19456 2008-02-02 Marco Gerards <marco@gnu.org>
19457
19458 * bus/pci.c: New file.
19459
19460 * include/grub/pci.h: Likewise.
19461
19462 * include/grub/i386/pc/pci.h: Likewise.
19463
19464 * commands/lspci.c: Likewise.
19465
19466 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
19467 `lspci.mod'.
19468 (pci_mod_SOURCES): New variable.
19469 (pci_mod_CFLAGS): Likewise.
19470 (pci_mod_LDFLAGS): Likewise.
19471 (lspci_mod_SOURCES): Likewise.
19472 (lspci_mod_CFLAGS): Likewise.
19473 (lspci_mod_LDFLAGS): Likewise.
19474
19475 2008-02-02 Bean <bean123ch@gmail.com>
19476
19477 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
19478 (grub_ufs_get_file_block): Fix indirect block calculation problem.
19479
19480 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
19481 (grub_xfs_btree_node): New structure.
19482 (grub_xfs_btree_root): New structure.
19483 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
19484 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
19485 (GRUB_XFS_EXTENT_BLOCK): Likewise.
19486 (GRUB_XFS_EXTENT_SIZE): Likewise.
19487 (grub_xfs_read_block): Support btree format type.
19488 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
19489 Use directory block as basic unit.
19490
19491 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
19492
19493 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
19494 __attribute__ ((__regparm__ (1))).
19495
19496 2008-02-01 Robert Millan <rmh@aybabtu.com>
19497
19498 Correct a mistake in previous commit.
19499
19500 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
19501 top.
19502 (normal/command.c_DEPENDENCIES): New variable.
19503
19504 2008-02-01 Robert Millan <rmh@aybabtu.com>
19505
19506 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
19507 top.
19508 (normal/command.c_DEPENDENCIES): New variable.
19509 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
19510 * conf/i386-ieee1275.rmk: Likewise.
19511 * conf/i386-linuxbios.rmk: Likewise.
19512 * conf/i386-pc.rmk: Likewise.
19513 * conf/sparc64-ieee1275.rmk: Likewise.
19514 * conf/powerpc-ieee1275.rmk: Likewise.
19515 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19516
19517 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19518
19519 2008-02-01 Robert Millan <rmh@aybabtu.com>
19520
19521 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19522 call at beginning of function.
19523
19524 2008-01-31 Pavel Roskin <proski@gnu.org>
19525
19526 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
19527 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19528 (grub_mkrescue_SOURCES): Likewise.
19529 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19530
19531 2008-01-30 Robert Millan <rmh@aybabtu.com>
19532
19533 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19534 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19535 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19536 (grub_probe_SOURCES): ... to here.
19537
19538 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19539 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19540 * conf/i386-ieee1275.rmk: Likewise.
19541 * conf/i386-linuxbios.rmk: Likewise.
19542 * conf/powerpc-ieee1275.rmk: Likewise.
19543
19544 2008-01-30 Tristan Gingold <gingold@free.fr>
19545
19546 * kern/rescue.c: Silently accept empty lines.
19547
19548 2008-01-29 Bean <bean123ch@gmail.com>
19549
19550 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19551 (real_code_2): Code cleanup and change comment style.
19552 (move_memory): Avoid using 32-bit address mode.
19553
19554 2008-01-29 Bean <bean123ch@gmail.com>
19555
19556 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19557 (png_mod_SOURCES): New variable.
19558 (png_mod_CFLAGS): Likewise.
19559 (png_mod_LDFLAGS): Likewise.
19560
19561 * video/readers/png.c: New file.
19562
19563 2008-01-28 Robert Millan <rmh@aybabtu.com>
19564
19565 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19566 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19567 `ifndef GRUB_MOD_GAP' hack.
19568 * util/elf/grub-mkimage.c (add_segments): Likewise.
19569
19570 2008-01-27 Robert Millan <rmh@aybabtu.com>
19571
19572 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19573 `GRUB_MOD_GAP' for platforms in which it's not defined.
19574 * util/elf/grub-mkimage.c (add_segments): Likewise.
19575
19576 2008-01-27 Robert Millan <rmh@aybabtu.com>
19577
19578 Get grub-emu to build again (including parallel builds).
19579
19580 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19581 Split into ...
19582 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19583 (normal/execute.c_DEPENDENCIES): ... this, ...
19584 (grub-emu_DEPENDENCIES): ... and this.
19585
19586 * conf/i386-efi.rmk: Likewise.
19587 * conf/i386-linuxbios.rmk: Likewise.
19588 * conf/i386-ieee1275.rmk: Likewise.
19589 * conf/powerpc-ieee1275.rmk: Likewise.
19590 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19591
19592 2008-01-27 Robert Millan <rmh@aybabtu.com>
19593
19594 * NEWS: Add a few items.
19595
19596 2008-01-27 Robert Millan <rmh@aybabtu.com>
19597
19598 Fix parallel builds with grub-emu. Based on earlier commit for
19599 grub-probe and grub-setup.
19600
19601 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19602 (util/grub-emu.c_DEPENDENCIES): ... this.
19603 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19604 (util/grub-emu.c_DEPENDENCIES): ... this.
19605 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19606 (util/grub-emu.c_DEPENDENCIES): ... this.
19607 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19608 (util/grub-emu.c_DEPENDENCIES): ... this.
19609 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19610 (util/grub-emu.c_DEPENDENCIES): ... this.
19611
19612 2008-01-27 Pavel Roskin <proski@gnu.org>
19613
19614 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19615 to create a gap between _end and the modules added to the image
19616 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19617 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19618 * util/elf/grub-mkimage.c (add_segments): Likewise.
19619
19620 2008-01-26 Pavel Roskin <proski@gnu.org>
19621
19622 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19623 just return an error.
19624
19625 2008-01-26 Bean <bean123ch@gmail.com>
19626
19627 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19628 (grub_reiserfs_get_item): Save offset of the next item.
19629 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19630
19631 2008-01-25 Robert Millan <rmh@aybabtu.com>
19632
19633 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19634 make all filesystem sources appear together (possibly fixing omissions
19635 while at it).
19636 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19637 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19638 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19640
19641 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19642 add `kern/file.c'.
19643 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19644 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19645 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19646 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19647
19648 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19649 (probe): Add a sanity check to make sure of our ability to read
19650 requested files when probing for filesystem type.
19651
19652 * genmk.rb: Update copyright year (2007).
19653
19654 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19655 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19656 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19657 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19658 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19659 : Remove function prototypes.
19660
19661 2008-01-25 Robert Millan <rmh@aybabtu.com>
19662
19663 Revert my previous commits (based on wrong assumption of how grub_errno
19664 works).
19665
19666 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19667 * kern/file.c (grub_file_open): Likewise.
19668
19669 2008-01-24 Pavel Roskin <proski@gnu.org>
19670
19671 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19672 that hang if GRUB tries to setup colors.
19673 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19674 colors for firmwares that don't support it.
19675 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19676 Recognize Open Hack'Ware, set flags to work around its
19677 limitations.
19678
19679 2008-01-24 Robert Millan <rmh@aybabtu.com>
19680
19681 * kern/file.c (grub_file_open): Do not account previous failures of
19682 unrelated functions when grub_errno is checked for.
19683 Reported by Oleg Strikov.
19684
19685 2008-01-24 Bean <bean123ch@gmail.com>
19686
19687 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19688 (grub_ufs_sblock): New member volume name.
19689 (grub_ufs_find_file): Fix string copy bug.
19690 (grub_ufs_label): Implement this function properly.
19691
19692 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19693 (grub_hfs_iterate_records): Use the correct file number for extents
19694 and catalog file. Fix problem in next index calculation.
19695 (grub_hfs_find_node): Replace recursive function call with loop.
19696 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19697
19698 2008-01-23 Robert Millan <rmh@aybabtu.com>
19699
19700 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19701 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19702 (grub_multiboot2_real_boot): New function prototype.
19703
19704 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19705 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19706
19707 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19708 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19709
19710 2008-01-23 Robert Millan <rmh@aybabtu.com>
19711
19712 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19713 #ifdef'ed out grub_printf().
19714
19715 2008-01-23 Robert Millan <rmh@aybabtu.com>
19716
19717 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19718 grub_dprintf calls, since they make "debug=all" mode unusable.
19719 (grub_console_checkkey): Likewise.
19720
19721 2008-01-23 Robert Millan <rmh@aybabtu.com>
19722
19723 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19724 `term/i386/pc/at_keyboard.c'.
19725 (pkglib_MODULES): Add `serial.mod'.
19726 (serial_mod_SOURCES): New variable.
19727 (serial_mod_CFLAGS): Likewise.
19728 (serial_mod_LDFLAGS): Likewise.
19729
19730 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19731 `<grub/powerpc/ieee1275/console.h>'.
19732 (grub_keyboard_controller_init): New function prototype.
19733 (grub_console_checkkey): Likewise.
19734 (grub_console_getkey): Likewise.
19735
19736 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19737 keyboard on i386.
19738
19739 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19740 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19741
19742 2008-01-23 Robert Millan <rmh@aybabtu.com>
19743
19744 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19745 present, "(memdisk)/boot/grub" becomes the default prefix.
19746
19747 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19748 a memdisk tarball with all the modules. Add --overlay=DIR option that
19749 allows users to overlay additional files into the image.
19750
19751 2008-01-23 Robert Millan <rmh@aybabtu.com>
19752
19753 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19754 and `machine/memory.h'.
19755 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19756 (_multiboot_mod_SOURCES): New variable.
19757 (_multiboot_mod_CFLAGS): Likewise.
19758 (_multiboot_mod_LDFLAGS): Likewise.
19759 (multiboot_mod_SOURCES): Likewise.
19760 (multiboot_mod_CFLAGS): Likewise.
19761 (multiboot_mod_LDFLAGS): Likewise.
19762
19763 * include/grub/i386/ieee1275/loader.h: New file.
19764
19765 * include/grub/i386/ieee1275/machine.h: Likewise.
19766
19767 * include/grub/i386/ieee1275/memory.h: Likewise.
19768
19769 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19770 variable declaration.
19771 (grub_os_area_size): Likewise.
19772
19773 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19774 (grub_lower_mem, grub_upper_mem): New variables.
19775 (grub_stop_floppy): New function (just to make
19776 grub_multiboot2_real_boot() happy).
19777
19778 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19779 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19780 (grub_stop): New function.
19781 Include `"../realmode.S"' and `"../loader.S"'.
19782
19783 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19784 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19785
19786 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19787 rely on grub_multiboot2_real_boot() for final boot.
19788
19789 2008-01-22 Robert Millan <rmh@aybabtu.com>
19790
19791 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19792 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19793 device that doesn't look like an SD card.
19794 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19795 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19796 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19797 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19798 found.
19799
19800 2008-01-22 Robert Millan <rmh@aybabtu.com>
19801
19802 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19803 avoid claiming over our own code.
19804
19805 2008-01-22 Bean <bean123ch@gmail.com>
19806
19807 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19808 (jpeg_mod_SOURCES): New variable.
19809 (jpeg_mod_CFLAGS): Likewise.
19810 (jpeg_mod_LDFLAGS): Likewise.
19811
19812 * video/readers/jpeg.c : New file.
19813
19814 2008-01-22 Bean <bean123ch@gmail.com>
19815
19816 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19817 there are no more items.
19818
19819 2008-01-21 Robert Millan <rmh@aybabtu.com>
19820
19821 * kern/mm.c (grub_mm_init_region): Improve debug message.
19822
19823 2008-01-21 Robert Millan <rmh@aybabtu.com>
19824
19825 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19826 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19827 address.
19828 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19829 a C macro.
19830 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19831 Indicates start of upper memory.
19832 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19833 (generate_image): Abort when image size is big enough to corrupt
19834 upper memory.
19835
19836 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19837 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19838 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19839 instead of hardcoding 0xA0000.
19840 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19841 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19842 instead of hardcoding 0xA0000.
19843
19844 2008-01-21 Robert Millan <rmh@aybabtu.com>
19845
19846 * disk/memdisk.c (memdisk_size): New variable.
19847 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19848 `memdisk_size'.
19849 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19850 image to dynamic memory.
19851 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19852 `memdisk_size'. Free memdisk block.
19853
19854 2008-01-21 Robert Millan <rmh@aybabtu.com>
19855
19856 Fix detection of very small filesystems (like tar).
19857
19858 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19859 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19860 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19861 a problem with this disk).
19862
19863 2008-01-21 Robert Millan <rmh@aybabtu.com>
19864
19865 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19866 on grub_biosdisk_rw_standard() error.
19867
19868 2008-01-21 Robert Millan <rmh@aybabtu.com>
19869
19870 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19871 recent changes.
19872 * kern/elf.c: Likewise.
19873 * kern/ieee1275/ieee1275.c: Likewise.
19874 * kern/powerpc/ieee1275/openfw.c: Likewise.
19875 * term/ieee1275/ofconsole.c: Likewise.
19876
19877 2008-01-21 Robert Millan <rmh@aybabtu.com>
19878
19879 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19880
19881 * include/grub/kernel.h (grub_arch_memdisk_addr)
19882 (grub_arch_memdisk_size): Moved from here ...
19883
19884 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19885 (grub_arch_memdisk_size): ... to here.
19886
19887 2008-01-21 Robert Millan <rmh@aybabtu.com>
19888
19889 Mostly based on bugfix from Bean.
19890
19891 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19892 attribute with hook() parameter.
19893 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19894 declaration.
19895 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19896 attribute with hook() parameter.
19897 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19898 declaration.
19899
19900 2008-01-21 Robert Millan <rmh@aybabtu.com>
19901
19902 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19903 (pkglib_MODULES): Add `memdisk.mod'.
19904 (memdisk_mod_SOURCES): New variable.
19905 (memdisk_mod_CFLAGS): Likewise.
19906 (memdisk_mod_LDFLAGS): Likewise.
19907
19908 * disk/memdisk.c: New file.
19909
19910 * include/grub/disk.h (grub_disk_dev_id): Add
19911 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19912
19913 * include/grub/i386/pc/kernel.h
19914 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19915 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19916 (grub_kernel_image_size): New variable declaration.
19917 (grub_total_module_size): Likewise.
19918 (grub_memdisk_image_size): Likewise.
19919
19920 * include/grub/i386/pc/memory.h
19921 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19922
19923 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19924 (grub_arch_memdisk_addr): New variable declaration.
19925 (grub_arch_memdisk_size): Likewise.
19926
19927 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19928 (grub_arch_memdisk_size): Likewise.
19929
19930 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19931 (codestart): Replace hardcoded `0x100000' with
19932 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19933
19934 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19935 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19936 not NULL, append the contents of the file it refers to, at the end of
19937 the compressed kernel image. Initialize `grub_memdisk_image_size'
19938 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19939 (options): Add "memdisk"|'m' option.
19940 (main): Parse --memdisk|-m option, and pass user-provided path as
19941 parameter to generate_image().
19942
19943 2008-01-20 Robert Millan <rmh@aybabtu.com>
19944
19945 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19946 grub_dprintf() calls from here ...
19947 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19948
19949 2008-01-20 Robert Millan <rmh@aybabtu.com>
19950
19951 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19952
19953 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19954 declaration.
19955 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19956 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19957 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19958 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19959 property).
19960 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19961 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19962
19963 2008-01-19 Robert Millan <rmh@aybabtu.com>
19964
19965 Get rid of confusing function (superseded by
19966 `grub_ieee1275_get_integer_property')
19967 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19968 prototype.
19969 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19970 function.
19971 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19972 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19973 in native endianness from grub_ieee1275_get_integer_property().
19974
19975 2008-01-19 Robert Millan <rmh@aybabtu.com>
19976
19977 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19978 command after "shut-down", since implementations differ on which
19979 the command for halt is.
19980
19981 2008-01-19 Robert Millan <rmh@aybabtu.com>
19982
19983 * include/grub/i386/linuxbios/console.h: Add header protection.
19984 (grub_keyboard_controller_init): New function prototype.
19985 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19986 (KEYBOARD_COMMAND_READ): Likewise.
19987 (KEYBOARD_COMMAND_WRITE): Likewise.
19988 (KEYBOARD_SCANCODE_SET1): Likewise.
19989 (grub_keyboard_controller_write): New function.
19990 (grub_keyboard_controller_read): Likewise.
19991 (grub_keyboard_controller_init): Likewise.
19992
19993 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19994 (grub_console_init): On coreboot/LinuxBIOS, call
19995 grub_keyboard_controller_init().
19996
19997 2008-01-19 Robert Millan <rmh@aybabtu.com>
19998
19999 PowerPC changes provided by Pavel Roskin.
20000
20001 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
20002 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
20003 don't rely on cmain() doing it.
20004 * kern/i386/ieee1275/startup.S (_start): Store %eax in
20005 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
20006
20007 2008-01-16 Robert Millan <rmh@aybabtu.com>
20008
20009 * include/grub/i386/linuxbios/memory.h
20010 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
20011 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
20012 receive `table_header' as argument. Instead, probe for it in the
20013 known memory ranges where it can be present.
20014 (grub_available_iterate): Do not pass a fixed `table_header' address
20015 to grub_linuxbios_table_iterate().
20016
20017 2008-01-15 Robert Millan <rmh@aybabtu.com>
20018
20019 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
20020 * conf/i386-ieee1275.rmk: New file.
20021 * include/grub/i386/ieee1275/console.h: Likewise.
20022 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
20023 * include/grub/i386/ieee1275/kernel.h: Likewise.
20024 * include/grub/i386/ieee1275/time.h: Likewise.
20025 * kern/i386/ieee1275/init.c: Likewise.
20026 * kern/i386/ieee1275/startup.S: Likewise.
20027
20028 2008-01-15 Robert Millan <rmh@aybabtu.com>
20029
20030 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
20031 when pointers are 32-bit (but still do set it to one when they are
20032 64-bit).
20033
20034 2008-01-15 Robert Millan <rmh@aybabtu.com>
20035
20036 * include/grub/ieee1275/ieee1275.h
20037 (grub_ieee1275_get_integer_property): New function prototype.
20038
20039 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
20040 (grub_ieee1275_get_integer_property): New function. Wraps around
20041 grub_ieee1275_get_property() to handle endianness.
20042
20043 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
20044 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
20045 where appropriate.
20046 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
20047 (grub_map): Likewise.
20048 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
20049
20050 2008-01-15 Bean <bean123ch@gmail.com>
20051
20052 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
20053 (grub_script_execute_cmdline): Reset grub_errno.
20054
20055 * normal/main.c (read_config_file): Reset grub_errno.
20056
20057 * normal/parse.y (script_init): New.
20058 (script): Move function and menuentry here.
20059 (delimiter): New.
20060 (command): Add delimiter at the end of command.
20061 (commands): Adjust to match the new command.
20062 (commandblock): Remove grub_script_lexer_record_start.
20063 (menuentry): Add grub_script_lexer_record_start, use the new commands.
20064 (if): Use the new commands.
20065
20066 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
20067
20068 2008-01-15 Robert Millan <rmh@aybabtu.com>
20069
20070 * normal/menu.c (run_menu): Move timeout message from here ...
20071 (print_timeout): ... to here.
20072 (run_menu): Use print_timeout() once during initial draw to print
20073 the whole message, and again in every clock tick to update only
20074 the number of seconds.
20075
20076 2008-01-15 Robert Millan <rmh@aybabtu.com>
20077
20078 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
20079 actual size of `available' from grub_ieee1275_get_property(), and
20080 restrict parsing to that bound.
20081
20082 2008-01-15 Christian Franke <franke@computer.org>
20083
20084 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
20085 (argp_program_version): Remove variable.
20086 (argp_program_bug_address): Likewise.
20087 (options): Convert from struct argp_option to struct option.
20088 (struct arguments): Remove.
20089 (parse_opt): Remove.
20090 (usage): New function.
20091 (main): Replace struct args members by simple variables.
20092 Replace argp_parse() by getopt_long().
20093 Add switch to evaluate options.
20094 Add missing "(...)" around root_dev in prefix string.
20095
20096 2008-01-14 Robert Millan <rmh@aybabtu.com>
20097
20098 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
20099 for grub_ieee1275_exit(), in order to improve portability.
20100
20101 2008-01-14 Robert Millan <rmh@aybabtu.com>
20102
20103 * util/grub.d/10_linux.in (prefix): Define.
20104 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
20105
20106 2008-01-13 Pavel Roskin <proski@gnu.org>
20107
20108 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
20109 grub_errno if no errors have been detected.
20110
20111 2008-01-12 Robert Millan <rmh@aybabtu.com>
20112
20113 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
20114 (grub_util_get_dev_abstraction): New function prototype.
20115
20116 * util/getroot.c: Include `<grub/util/getroot.h>'
20117 (grub_util_get_grub_dev): Move detection of abstraction type to ...
20118 (grub_util_get_dev_abstraction): ... here (new function).
20119
20120 * util/grub-probe.c: Convert PRINT_* to an enum. Add
20121 `PRINT_ABSTRACTION'.
20122 (probe): Probe for abstraction type when requested.
20123 (main): Understand `--target=abstraction'.
20124
20125 * util/i386/efi/grub-install.in: Add abstraction module to core
20126 image when it is found to be necessary.
20127 * util/i386/pc/grub-install.in: Likewise.
20128 * util/powerpc/ieee1275/grub-install.in: Likewise.
20129
20130 * util/update-grub_lib.in (font_path): Return system path without
20131 converting to GRUB path.
20132 * util/update-grub.in: Convert system path returned by font_path()
20133 to a GRUB path. Use `grub-probe -t abstraction' to determine what
20134 abstraction module is needed for loading fonts (if any). Export
20135 that as `GRUB_PRELOAD_MODULES'.
20136 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
20137 insmod commands).
20138
20139 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
20140
20141 Remove some unused code from reiserfs.
20142
20143 * fs/reiserfs.c (struct grub_reiserfs_key)
20144 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
20145 (struct grub_reiserfs_node_body): Removed.
20146 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20147 Likewise.
20148 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20149 Likewise.
20150 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20151 Likewise.
20152 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20153 Likewise.
20154 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20155 Likewise.
20156 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
20157 Likewise.
20158 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20159 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20160 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20161
20162 2008-01-10 Robert Millan <rmh@aybabtu.com>
20163
20164 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
20165 Determines if a file is garbage left by packaging systems, etc.
20166 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
20167 for processing /etc/grub.d scripts.
20168 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
20169 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
20170 as a condition for processing Linux images.
20171
20172 2008-01-10 Pavel Roskin <proski@gnu.org>
20173
20174 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
20175 to compile reiserfs.c on PowerPC.
20176
20177 2008-01-10 Robert Millan <rmh@aybabtu.com>
20178
20179 * kern/device.c (grub_device_iterate): Do not abort device iteration
20180 when one of the devices cannot be opened.
20181 * kern/disk.c (grub_disk_open): Do not account previous failures of
20182 unrelated functions when grub_errno is checked for.
20183
20184 2008-01-08 Robert Millan <rmh@aybabtu.com>
20185
20186 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
20187 `! grub_linux_is_bzimage', change order of address comparison to make
20188 it more intuitive, and improve "too big zImage" error message.
20189
20190 2008-01-08 Robert Millan <rmh@aybabtu.com>
20191
20192 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
20193 `$(update-grub_DATA)'.
20194 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
20195 targets.
20196
20197 2008-01-07 Robert Millan <rmh@aybabtu.com>
20198
20199 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
20200 which instruction is modified by grub-setup during installation
20201 (since it wasn't obvious by only looking at this file).
20202
20203 2008-01-07 Robert Millan <rmh@aybabtu.com>
20204
20205 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
20206 listing actual TODO items.
20207
20208 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20209
20210 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
20211 correctly.
20212 (grub_reiserfs_get_key_offset): Likewise.
20213 (grub_reiserfs_set_key_offset): Likewise.
20214 (grub_reiserfs_set_key_type): Likewise.
20215 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
20216
20217 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
20218 better to remove the bitfield version completely.
20219
20220 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20221
20222 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
20223 allocated from the heap, due to the fshelp implementation.
20224 (grub_reiserfs_dir): Free NODE, due to the same reason.
20225
20226 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20227
20228 Mostly from Vincent Pelletier:
20229
20230 * fs/reiserfs.c: New file.
20231
20232 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
20233 (reiserfs_mod_SOURCES): New variable.
20234 (reiserfs_mod_CFLAGS): Likewise.
20235 (reiserfs_mod_LDFLAGS): Likewise.
20236
20237 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
20238 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
20239 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
20240 normal/color.c.
20241
20242 2008-01-06 Robert Millan <rmh@aybabtu.com>
20243
20244 * normal/color.c: Remove `<grub/env.h>'.
20245
20246 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
20247
20248 * include/grub/normal.h: Include <grub/env.h>.
20249
20250 2008-01-05 Robert Millan <rmh@aybabtu.com>
20251
20252 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
20253 usage example with `(hd0,1)'.
20254 Reported by Samuel Thibault.
20255
20256 2008-01-05 Robert Millan <rmh@aybabtu.com>
20257
20258 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
20259 (grub_linux_boot_zimage): Rename to ...
20260 (grub_linux_boot): ... this.
20261 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
20262 (grub_linux_boot_zimage): Conditionalize zImage copy.
20263
20264 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
20265 (grub_linux_boot_bzimage): Remove prototype.
20266 (grub_linux_boot_zimage): Rename to ...
20267 (grub_linux_boot): ... this.
20268
20269 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
20270 (grub_linux_boot): Remove function.
20271
20272 2008-01-05 Robert Millan <rmh@aybabtu.com>
20273
20274 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
20275 (grub_env_write_color_highlight): Likewise.
20276 (grub_wait_after_message): Likewise.
20277
20278 * normal/color.c: New file.
20279
20280 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20281 (normal_mod_DEPENDENCIES): Likewise.
20282
20283 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20284 (normal_mod_DEPENDENCIES): Likewise.
20285
20286 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20287 (normal_mod_DEPENDENCIES): Likewise.
20288
20289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20290 (normal_mod_DEPENDENCIES): Likewise.
20291
20292 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
20293 for waiting after a message is printed.
20294 * normal/main.c (read_config_file): Likewise.
20295 (grub_normal_init): Register grub_env_write_color_normal() and
20296 grub_env_write_color_highlight() hooks. Mark `color_normal' and
20297 `color_highlight' variables as global.
20298
20299 * normal/menu.c (grub_wait_after_message): New function.
20300 (grub_color_menu_normal): New variable. Replaces ...
20301 (GRUB_COLOR_MENU_NORMAL): ... this macro.
20302 (grub_color_menu_highlight): New variable. Replaces ...
20303 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
20304 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
20305 `GRUB_TERM_COLOR_STANDARD'.
20306 (print_message): Use `grub_setcolorstate' to reload colors. Rename
20307 `normal_code' and `highlight_code' to `old_color_normal' and
20308 `old_color_highlight', respectively.
20309 (grub_menu_init_page): Update colors when drawing the menu, based on
20310 `menu_color_normal' and `menu_color_highlight' variables.
20311 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
20312 a message is printed.
20313
20314 2008-01-05 Robert Millan <rmh@aybabtu.com>
20315
20316 * kern/env.c (grub_env_context_open): Propagate hooks for global
20317 variables to new context.
20318
20319 * kern/main.c (grub_set_root_dev): Export `root' variable.
20320
20321 2008-01-05 Robert Millan <rmh@aybabtu.com>
20322
20323 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
20324 discs unconditionally, since udev and others have options to provide
20325 them.
20326
20327 2008-01-05 Robert Millan <rmh@aybabtu.com>
20328
20329 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
20330
20331 2008-01-04 Christian Franke <franke@computer.org>
20332
20333 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
20334 of eisa_mmap.
20335
20336 2008-01-03 Pavel Roskin <proski@gnu.org>
20337
20338 * kern/i386/linuxbios/init.c: Put "void" to all function
20339 declarations with no arguments.
20340 * kern/powerpc/ieee1275/init.c: Likewise.
20341 * term/i386/pc/at_keyboard.c: Likewise.
20342 * term/i386/pc/vga_text.c: Likewise.
20343 * util/grub-mkdevicemap.c: Likewise.
20344
20345 2008-01-02 Robert Millan <rmh@aybabtu.com>
20346
20347 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
20348 message when loaded image is out of bounds.
20349 (grub_multiboot_load_elf64): Likewise.
20350
20351 2008-01-02 Pavel Roskin <proski@gnu.org>
20352
20353 * util/grub.d/10_linux.in: Try version without ".old" when
20354 looking for initrd. It's better to use initrd from the newer
20355 kernel of the same version than no initrd at all.
20356
20357 2008-01-01 Robert Millan <rmh@aybabtu.com>
20358
20359 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
20360
20361 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
20362
20363 * include/grub/video.h: Added grub_video_unmap_color and
20364 grub_video_get_active_render_target.
20365 (grub_video_adapter): Added unmap_color and get_active_render_target.
20366
20367 * video/video.c: Added grub_video_unmap_color and
20368 grub_video_get_active_render_target.
20369 (grub_video_get_info): Changed method to accept NULL pointer as an
20370 argument to allow detection of active video adapter.
20371
20372 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
20373 grub_video_vbe_unmap_color_int.
20374 Added grub_video_vbe_unmap_color and
20375 grub_video_vbe_get_active_render_target.
20376 (grub_video_vbe_adapter): Added unmap_color and
20377 get_active_render_target.
20378
20379 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
20380 with grub_video_vbe_unmap_color_int.
20381
20382 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
20383 (DEFAULT_NORMAL_COLOR): Likewise.
20384 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
20385 (DEFAULT_FG_COLOR): Removed.
20386 (DEFAULT_BG_COLOR): Likewise.
20387 (DEFAULT_CURSOR_COLOR): Changed value.
20388 (grub_virtual_screen): Added standard_color_setting,
20389 normal_color_setting, highlight_color_setting and term_color.
20390 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
20391 (bitmap_width): Added.
20392 (bitmap_height): Likewise.
20393 (bitmap): Likewise.
20394 (set_term_color): Likewise.
20395 (grub_virtual_screen_setup): Changed to use new terminal coloring
20396 settings.
20397 (grub_gfxterm_init): Added init for bitmap.
20398 (grub_gfxterm_fini): Added destroy for bitmap.
20399 (redraw_screen_rect): Updated to use background bitmap and new
20400 terminal coloring.
20401 (scroll_up): Added optimization for case when there is no bitmap.
20402 (grub_gfxterm_cls): Fixed to use correct background color.
20403 (grub_virtual_screen_setcolorstate): Changed to use new terminal
20404 coloring.
20405 (grub_virtual_screen_setcolor): Likewise.
20406 (grub_virtual_screen_getcolor): Added.
20407 (grub_gfxterm_background_image_cmd): Likewise.
20408 (grub_video_term): Added setcolor and getcolor.
20409 (MOD_INIT): Added registration of background_image command.
20410 (MOD_TERM): Added unregistration for background_image command.
20411
20412 2007-12-30 Pavel Roskin <proski@gnu.org>
20413
20414 * loader/multiboot_loader.c: Fix multiboot command
20415 unregistration. Fix all typos in the word "multiboot".
20416
20417 2007-12-29 Pavel Roskin <proski@gnu.org>
20418
20419 * util/grub.d/10_linux.in: Refactor search for initrd. Add
20420 support for initrd names used in Fedora.
20421
20422 2007-12-26 Bean <bean123ch@gmail.com>
20423
20424 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
20425 (cpio_mod_SOURCES): New variable.
20426 (cpio_mod_CFLAGS): Likewise.
20427 (cpio_mod_LDFLAGS): Likewise.
20428
20429 * fs/cpio.c: New file.
20430
20431 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
20432
20433 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20434
20435 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20436
20437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20438
20439 2007-12-25 Robert Millan <rmh@aybabtu.com>
20440
20441 * include/grub/term.h (struct grub_term): Add `getcolor' function.
20442 (grub_getcolor): New function.
20443
20444 * kern/term.c (grub_getcolor): New function.
20445 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
20446 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
20447 (print_entry): Set normal and highlight colors to
20448 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
20449 respectively, before printing and restore them to old
20450 values afterwards.
20451 (grub_menu_init_page): Likewise. Fill an additional colored space
20452 that would otherwise be left blank.
20453
20454 * term/efi/console.c (grub_console_getcolor): New function.
20455 (struct grub_console_term.getcolor): New variable.
20456 * term/i386/pc/console.c (grub_console_getcolor): New function.
20457 (struct grub_console_term.getcolor): New variable.
20458 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
20459 (struct grub_console_term.getcolor): New variable.
20460
20461 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
20462 (struct grub_console_term.setcolor): Remove variable.
20463 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
20464 (struct grub_console_term.setcolor): Remove variable.
20465 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
20466 (struct grub_console_term.setcolor): Remove variable.
20467 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
20468 (struct grub_console_term.setcolor): Remove variable.
20469
20470 2007-12-25 Robert Millan <rmh@aybabtu.com>
20471
20472 * configure.ac: Search for possible unifont.hex locations, and
20473 define UNIFONT_HEX if found.
20474
20475 * Makefile.in (UNIFONT_HEX): Define variable.
20476 (DATA): Rename to ...
20477 (PKGLIB): ... this. Update all users.
20478 (PKGDATA): New variable.
20479 (pkgdata_IMAGES): Rename to ...
20480 (pkglib_IMAGES): ... this. Update all users.
20481 (pkgdata_MODULES): Rename to ...
20482 (pkglib_MODULES): ... this. Update all users.
20483 (pkgdata_PROGRAMS): Rename to ...
20484 (pkglib_PROGRAMS): ... this. Update all users.
20485 (pkgdata_DATA): Rename to ...
20486 (pkglib_DATA): ... this. Update all users.
20487 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
20488 (unicode.pff, ascii.pff): New rules.
20489 (all-local): Add `$(PKGDATA)' dependency.
20490 (install-local): Process `$(PKGDATA)'.
20491
20492 * util/update-grub_lib.in (font_path): Search for *.pff files in
20493 a few more locations, including `${pkgdata}'.
20494
20495 2007-12-23 Robert Millan <rmh@aybabtu.com>
20496
20497 Patch from Bean <bean123ch@gmail.com>:
20498 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
20499 `size'.
20500
20501 2007-12-21 Bean <bean123ch@gmail.com>
20502
20503 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
20504 (ntfscomp_mod_SOURCES): New variable.
20505 (ntfscomp_mod_CFLAGS): Likewise.
20506 (ntfscomp_mod_LDFLAGS): Likewise.
20507
20508 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
20509 (grub_probe_SOURCES): Likewise.
20510 (grub_emu_SOURCES): Likewise.
20511
20512 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20513 (grub_emu_SOURCES): Likewise.
20514
20515 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20516 (grub_emu_SOURCES): Likewise.
20517
20518 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20519 (grub_emu_SOURCES): Likewise.
20520
20521 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20522 (read_run_list): Renamed to grub_ntfs_read_run_list.
20523 (decomp_nextvcn): Moved to ntfscomp.c.
20524 (decomp_getch): Likewise.
20525 (decomp_get16): Likewise.
20526 (decomp_block): Likewise.
20527 (read_block): Likewise.
20528 (read_data): Partially moved to ntfscomp.c.
20529 (fixup): Change unsigned to grub_uint16_t.
20530 (read_mft): Change unsigned long to grub_uint32_t.
20531 (read_attr): Likewise.
20532 (read_data): Likewise.
20533 (read_run_data): Likewise.
20534 (read_run_list): Likewise.
20535 (read_mft): Likewise.
20536
20537 * fs/ntfscomp.c: New file.
20538
20539 * include/grub/ntfs.h: New file.
20540
20541 2007-12-16 Robert Millan <rmh@aybabtu.com>
20542
20543 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20544 IDE disk check, since Linux is known to support 20 IDE disks.
20545 Reported by Colin Watson.
20546
20547 2007-12-15 Bean <bean123ch@gmail.com>
20548
20549 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20550 (lnxboot_img_SOURCES): New variable.
20551 (lnxboot_img_ASFLAGS): Likewise.
20552 (lnxboot_img_LDFLAGS): Likewise.
20553
20554 * boot/i386/pc/lnxboot.S: New file.
20555
20556 2007-11-24 Pavel Roskin <proski@gnu.org>
20557
20558 * configure.ac: Test if '--build-id=none' is supported by the
20559 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20560 objcopy to generate incorrect binary files (binutils
20561 2.17.50.0.18-1 as shipped by Fedora 8).
20562 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20563 linking, so that build ID doesn't break the test.
20564
20565 2007-11-24 Pavel Roskin <proski@gnu.org>
20566
20567 * include/grub/i386/time.h: use "void" in the argument list
20568 of grub_cpu_idle().
20569 * include/grub/powerpc/time.h: Likewise.
20570 * include/grub/sparc64/time.h: Likewise.
20571
20572 2007-11-18 Christian Franke <franke@computer.org>
20573
20574 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20575 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20576 This fixes the problem that function keys did not work in grub-emu.
20577
20578 2007-11-18 Christian Franke <franke@computer.org>
20579
20580 * disk/host.c (grub_host_open): Remove attribute unused from
20581 name parameter. Add check for "host". This fixes the problem
20582 that grub-emu does not find partitions.
20583
20584 2007-11-18 Christian Franke <franke@computer.org>
20585
20586 * util/hostfs.c (is_dir): New function.
20587 (grub_hostfs_dir): Handle missing dirent.d_type case.
20588 (grub_hostfs_read): Add missing fseek().
20589 (grub_hostfs_label): Clear label pointer. This fixes a crash
20590 of grub-emu on "ls (host)".
20591
20592 2007-11-18 Christian Franke <franke@computer.org>
20593
20594 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20595 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20596 to 64 bit boundary by default.
20597
20598 2007-11-18 Bean <bean123ch@gmail.com>
20599
20600 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20601 (hexdump_mod_SOURCES): New variable.
20602 (hexdump_mod_CFLAGS): Likewise.
20603 (hexdump_mod_LDFLAGS): Likewise.
20604
20605 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20606
20607 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20608
20609 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20610
20611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20612
20613 * include/grub/hexdump.h: New file.
20614
20615 * commands/hexdump.c: New file.
20616
20617 2007-11-10 Robert Millan <rmh@aybabtu.com>
20618
20619 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20620 in grub_outb() calls.
20621 (beep_on): Likewise.
20622
20623 2007-11-10 Christian Franke <franke@computer.org>
20624
20625 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20626 (grub_menu_run): Likewise.
20627
20628 2007-11-10 Robert Millan <rmh@aybabtu.com>
20629
20630 * include/grub/i386/efi/machine.h: New file.
20631 * include/grub/i386/linuxbios/machine.h: Likewise.
20632 * include/grub/i386/pc/machine.h: Likewise.
20633 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20634 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20635
20636 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20637 (serial_hw_io_addr): New variable.
20638 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20639 instead of `(unsigned short *) 0x400'.
20640
20641 2007-11-10 Bean <bean123ch@gmail.com>
20642
20643 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20644
20645 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20646
20647 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20648 (vga_mod_SOURCES): Added.
20649 (vga_mod_CFLAGS): Likewise.
20650 (vga_mod_LDFLAGS): Likewise.
20651
20652 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20653 grub_outb() calls.
20654 (set_map_mask): Likewise.
20655 (set_read_map): Likewise.
20656 (set_read_address): Likewise.
20657 (vga_font): Removed variable.
20658 (get_vga_glyph): Removed function.
20659 (invalidate_char): Likewise.
20660 (write_char): Changed to use grub_font_get_glyph() for font
20661 information.
20662 (grub_vga_putchar): Likewise.
20663 (grub_vga_getcharwidth): Likewise.
20664
20665 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20666
20667 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20668 flags.
20669 (pxeboot_img_LDFLAGS): Likewise.
20670 (diskboot_img_LDFLAGS): Likewise.
20671 (kernel_img_LDFLAGS): Likewise.
20672
20673 2007-11-06 Robert Millan <rmh@aybabtu.com>
20674
20675 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20676 in grub_outb() calls.
20677 (serial_hw_init): Likewise.
20678
20679 2007-11-05 Robert Millan <rmh@aybabtu.com>
20680
20681 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20682 spaces. Skip non-regular files.
20683
20684 2007-11-05 Robert Millan <rmh@aybabtu.com>
20685
20686 * kern/disk.c (grub_disk_firmware_fini)
20687 (grub_disk_firmware_is_tainted): New variables.
20688
20689 * include/grub/disk.h (grub_disk_firmware_fini)
20690 (grub_disk_firmware_is_tainted): Likewise.
20691
20692 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20693 (grub_disk_biosdisk_fini): ... to here.
20694 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20695 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20696 is set. Register grub_disk_biosdisk_fini() in
20697 `grub_disk_firmware_fini'.
20698
20699 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20700 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20701 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20702 to finish existing firmware disk interface.
20703
20704 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20705 (ata_mod_SOURCES): New variable.
20706 (ata_mod_CFLAGS): Likewise.
20707 (ata_mod_LDFLAGS): Likewise.
20708
20709 2007-11-05 Robert Millan <rmh@aybabtu.com>
20710
20711 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20712 (grub_ata_wait): Reimplement using grub_millisleep().
20713
20714 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20715 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20716
20717 2007-11-03 Marco Gerards <marco@gnu.org>
20718
20719 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20720 (CRTC_ADDR_PORT): New macro.
20721 (CRTC_DATA_PORT): Likewise.
20722 (CRTC_CURSOR): Likewise.
20723 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20724 (CRTC_CURSOR_ADDR_LOW): Likewise.
20725 (update_cursor): New function.
20726 (grub_console_real_putchar): Call `update_cursor'.
20727 (grub_console_gotoxy): Likewise.
20728 (grub_console_cls): Set the default color when clearing the
20729 screen.
20730 (grub_console_setcursor): Implemented.
20731
20732 2007-11-03 Marco Gerards <marco@gnu.org>
20733
20734 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20735 become activate.
20736 (grub_ata_pio_write): Likewise.
20737
20738 (grub_atapi_identify): Wait after issuing an ATA command.
20739 (grub_atapi_packet): Likewise.
20740 (grub_ata_identify): Likewise.
20741 (grub_ata_readwrite): Likewise.
20742
20743 2007-11-03 Marco Gerards <marco@gnu.org>
20744
20745 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20746 (grub_ata_pio_write): Likewise.
20747 (grub_ata_readwrite): Use `grub_error', instead of
20748 returning `grub_errno'.
20749
20750 2007-11-03 Marco Gerards <marco@gnu.org>
20751
20752 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20753 grub_ata_pio_write once for every single sector, instead of for
20754 multiple sectors.
20755
20756 2007-10-31 Robert Millan <rmh@aybabtu.com>
20757
20758 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20759
20760 * conf/i386-linuxbios.rmk: New file.
20761
20762 * kern/i386/pc/hardware.c: Likewise.
20763 * term/i386/pc/at_keyboard.c: Likewise.
20764 * term/i386/pc/vga_text.c: Likewise.
20765
20766 * include/grub/i386/linuxbios/boot.h: Likewise.
20767 * include/grub/i386/linuxbios/console.h: Likewise.
20768 * include/grub/i386/linuxbios/init.h: Likewise.
20769 * include/grub/i386/linuxbios/kernel.h: Likewise.
20770 * include/grub/i386/linuxbios/loader.h: Likewise.
20771 * include/grub/i386/linuxbios/memory.h: Likewise.
20772 * include/grub/i386/linuxbios/serial.h: Likewise.
20773 * include/grub/i386/linuxbios/time.h: Likewise.
20774
20775 * kern/i386/linuxbios/init.c: Likewise.
20776 * kern/i386/linuxbios/startup.S: Likewise.
20777 * kern/i386/linuxbios/table.c: Likewise.
20778
20779 2007-10-31 Marco Gerards <marco@gnu.org>
20780
20781 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20782 (ata_mod_SOURCES): New variable.
20783 (ata_mod_CFLAGS): Likewise.
20784 (ata_mod_LDFLAGS): Likewise.
20785
20786 * disk/ata.c: New file.
20787
20788 * include/grub/disk.h (grub_disk_dev_id): Add
20789 `GRUB_DISK_DEV_ATA_ID'.
20790
20791 2007-10-31 Robert Millan <rmh@aybabtu.com>
20792
20793 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20794 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20795
20796 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20797 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20798
20799 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20800 `<grub/types.h>'.
20801
20802 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20803
20804 2007-10-27 Robert Millan <rmh@aybabtu.com>
20805
20806 * include/grub/types.h (ULONG_MAX): Define macro.
20807
20808 2007-10-22 Robert Millan <rmh@aybabtu.com>
20809
20810 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20811 `"../realmode.S"'.
20812 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20813
20814 2007-10-22 Robert Millan <rmh@aybabtu.com>
20815
20816 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20817 (pkgdata_MODULES): Add `biosdisk.mod'.
20818 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20819 variables.
20820
20821 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20822 (grub_biosdisk_init): Replace with ...
20823 (GRUB_MOD_INIT(biosdisk)): ... this.
20824 (grub_biosdisk_fini): Replace with ...
20825 (GRUB_MOD_FINI(biosdisk)): ... this.
20826
20827 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20828 (grub_machine_init): Remove call to grub_biosdisk_init().
20829 (grub_machine_fini): Remove call to grub_machine_fini().
20830
20831 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20832
20833 2007-10-22 Robert Millan <rmh@aybabtu.com>
20834
20835 * include/grub/time.h: New file.
20836 * include/grub/i386/time.h: Likewise.
20837 * include/grub/powerpc/time.h: Likewise.
20838 * include/grub/sparc64/time.h: Likewise.
20839
20840 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20841 instances to ...
20842 (KERNEL_MACHINE_TIME_HEADER): ... this.
20843 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20844 instances to ...
20845 (KERNEL_MACHINE_TIME_HEADER): ... this.
20846 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20847 instances to ...
20848 (KERNEL_MACHINE_TIME_HEADER): ... this.
20849
20850 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20851 (grub_millisleep): New function.
20852 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20853 (grub_millisleep): New function.
20854 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20855 Remove `grub/machine/time.h' include.
20856 (grub_millisleep): New function.
20857 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20858 Remove `grub/machine/time.h' include.
20859 (grub_millisleep): New function.
20860
20861 * include/grub/misc.h (grub_div_roundup): New function.
20862
20863 * kern/misc.c: Include `<grub/time.h>'.
20864 (grub_millisleep_generic): New function.
20865
20866 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20867 Add `time.h'.
20868 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20869 Add `time.h'.
20870 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20871 `machine/time.h'. Add `time.h'.
20872 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20873
20874 2007-10-21 Robert Millan <rmh@aybabtu.com>
20875
20876 * include/grub/misc.h (grub_max): New function.
20877
20878 2007-10-21 Robert Millan <rmh@aybabtu.com>
20879
20880 * util/misc.c (grub_util_info): Call fflush() before returning.
20881
20882 2007-10-20 Robert Millan <rmh@aybabtu.com>
20883
20884 * genmk.rb (Image): Copy `extra_flags' from here ...
20885 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20886
20887 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20888 to `argc' and `args' arguments.
20889
20890 2007-10-17 Robert Millan <rmh@aybabtu.com>
20891
20892 * kern/i386/loader.S: New file.
20893
20894 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20895 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20896 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20897 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20898 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20899 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20900 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20901 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20902 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20903 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20904 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20905 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20906 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20907 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20908
20909 * kern/i386/realmode.S: New file.
20910
20911 * kern/i386/pc/startup.S (protstack): Moved from here ...
20912 * kern/i386/realmode.S (protstack)... to here.
20913 * kern/i386/pc/startup.S (gdt): Moved from here ...
20914 * kern/i386/realmode.S (gdt)... to here.
20915 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20916 * kern/i386/realmode.S (prot_to_real)... to here.
20917
20918 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20919 `kern/i386/realmode.S'.
20920
20921 2007-10-17 Robert Millan <rmh@aybabtu.com>
20922
20923 * include/grub/i386/loader.h: New file.
20924
20925 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20926 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20927 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20928 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20929 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20930 * include/grub/i386/loader.h (grub_linux_prot_size)
20931 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20932 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20933 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20934 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20935
20936 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20937
20938 2007-10-15 Robert Millan <rmh@aybabtu.com>
20939
20940 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20941 filesystem when dev->disk is unset.
20942 Do probe for filesystem even when dev->disk->has_partitions is set.
20943 In case a filesystem is found, always report it.
20944 In case it isn't, if dev->disk->has_partitions is set, report that
20945 a partition table was found instead of reporting that no filesystem
20946 could be identified.
20947
20948 2007-10-12 Robert Millan <rmh@aybabtu.com>
20949
20950 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20951 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20952
20953 * include/grub/types.h (grub_host_to_target16): New macro.
20954 (grub_host_to_target32): Likewise.
20955 (grub_host_to_target64): Likewise.
20956 (grub_target_to_host16): Likewise.
20957 (grub_target_to_host32): Likewise.
20958 (grub_target_to_host64): Likewise.
20959
20960 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20961 Renamed from to ...
20962 (GRUB_MOD_ALIGN): ...this. Update all users.
20963
20964 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20965 grub_host_to_target32.
20966 Replace grub_be_to_cpu32 with grub_target_to_host32.
20967 (load_modules): Likewise.
20968 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20969 Replace grub_be_to_cpu32 with grub_target_to_host32.
20970 Replace grub_cpu_to_be16 with grub_host_to_target16.
20971 Replace grub_cpu_to_be32 grub_host_to_target32.
20972
20973 2007-10-12 Robert Millan <rmh@aybabtu.com>
20974
20975 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20976 * util/elf/grub-mkimage.c: ... here.
20977
20978 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20979 `util/powerpc/ieee1275/grub-mkimage.c'.
20980
20981 2007-10-07 Robert Millan <rmh@aybabtu.com>
20982
20983 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20984 and make it easier to figure out.
20985 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20986 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20987 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20988 leave us with less than HEAP_MIN_SIZE total heap.
20989 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20990
20991 2007-10-03 Robert Millan <rmh@aybabtu.com>
20992
20993 * include/grub/i386/io.h: New file.
20994 * commands/i386/pc/play.c (inb): Removed.
20995 (outb): Removed.
20996 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20997 with grub_outb().
20998 * term/i386/pc/serial.c (inb): Removed.
20999 (outb): Removed.
21000 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21001 with grub_outb().
21002 * term/i386/pc/vga.c (inb): Removed.
21003 (outb): Removed.
21004 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21005 with grub_outb().
21006
21007 2007-10-02 Robert Millan <rmh@aybabtu.com>
21008
21009 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
21010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21011 Reported by Marcin Kurek.
21012
21013 2007-09-07 Robert Millan <rmh@aybabtu.com>
21014
21015 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
21016 SmartFirmware version updates (as released by Sven Luther), and avoid
21017 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
21018 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
21019 known broken.
21020
21021 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21022
21023 From Hitoshi Ozeki:
21024 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
21025 when merging two regions.
21026
21027 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21028
21029 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
21030 * normal/completion.c (grub_normal_do_completion): Likewise.
21031 Reported by Hitoshi Ozeki.
21032
21033 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21034
21035 Do not use devices at boot in chainloading.
21036
21037 * loader/i386/pc/chainloader.c (boot_drive): New variable.
21038 (boot_part_addr): Likewise.
21039 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
21040 with BOOT_DRIVE and BOOT_PART_ADDR.
21041 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
21042 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
21043
21044 2007-08-29 Robert Millan <rmh@aybabtu.com>
21045
21046 Patch from Simon Peter <dn.tlp@gmx.net>:
21047 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
21048 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
21049 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
21050 util/i386/pc/grub-setup.c_DEPENDENCIES.
21051 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
21052 util/grub-probe.c_DEPENDENCIES.
21053 * conf/powerpc-ieee1275.rmk: Likewise.
21054
21055 2007-08-28 Robert Millan <rmh@aybabtu.com>
21056
21057 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
21058 to tell grub-mkdevicemap how to name devices.
21059 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
21060 feature).
21061
21062 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
21063 util/i386/get_disk_name.c.
21064 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
21065 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
21066 util/ieee1275/get_disk_name.c.
21067
21068 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
21069
21070 * DISTLIST: Add util/i386/get_disk_name.c and
21071 util/ieee1275/get_disk_name.c.
21072
21073 * util/grub-mkdevicemap.c: Replace device naming logic with
21074 grub_util_get_disk_name() calls.
21075
21076 2007-08-20 Robert Millan <rmh@aybabtu.com>
21077
21078 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
21079 (so that it works for both plural and singular quantities).
21080
21081 2007-08-05 Robert Millan <rmh@aybabtu.com>
21082
21083 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
21084 so that [xz] isn't taken into account when determining order.
21085
21086 2007-08-02 Marco Gerards <marco@gnu.org>
21087
21088 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
21089 `include/multiboot2.h', `include/grub/elfload.h',
21090 `include/multiboot.h', `include/grub/multiboot.h',
21091 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
21092 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
21093 `kern/elf.c', `loader/multiboot_loader.c',
21094 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
21095 `loader/i386/pc/multiboot2.c',
21096 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
21097 `util/i386/pc/grub-mkrescue.in'. Remove
21098 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
21099 `include/grub/i386/pc/util/biosdisk.h' and
21100 `include/grub/powerpc/ieee1275/multiboot.h'.
21101
21102 2007-08-02 Bean <bean123ch@gmail.com>
21103
21104 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
21105 (ntfs_mod_SOURCES): New variable.
21106 (ntfs_mod_CFLAGS): Likewise.
21107 (ntfs_mod_LDFLAGS): Likewise.
21108
21109 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
21110 (grub_probe_SOURCES): Likewise.
21111 (grub_emu_SOURCES): Likewise.
21112
21113 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21114 (grub_emu_SOURCES): Likewise.
21115
21116 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21117 (grub_emu_SOURCES): Likewise.
21118
21119 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
21120
21121 * fs/ntfs.c: New file.
21122
21123 2007-08-02 Bean <bean123ch@gmail.com>
21124
21125 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
21126
21127 * file.h (grub_file): Likewise.
21128
21129 * fshelp.h (grub_fshelp_read_file): Likewise.
21130
21131 * util/i386/pc/grub-setup.c (setup): Likewise.
21132 (save_first_sector): Likewise.
21133 (save_blocklists): Likewise.
21134
21135 * fs/affs.c (grub_affs_read_file): Likewise.
21136
21137 * fs/ext2.c (grub_ext2_read_file): Likewise.
21138
21139 * fs/fat.c (grub_fat_read_data): Likewise.
21140
21141 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
21142
21143 * fs/hfs.c (grub_hfs_read_file): Likewise.
21144
21145 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21146
21147 * fs/jfs.c (grub_jfs_read_file): Likewise.
21148
21149 * fs/minix.c (grub_minix_read_file): Likewise.
21150
21151 * fs/sfs.c (grub_sfs_read_file): Likewise.
21152
21153 * fs/ufs.c (grub_ufs_read_file): Likewise.
21154
21155 * fs/xfs.c (grub_xfs_read_file): Likewise.
21156
21157 * command/blocklist.c (read_blocklist): Likewise.
21158 (print_blocklist): Likewise.
21159
21160 2007-08-02 Marco Gerards <marco@gnu.org>
21161
21162 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
21163 `util/hostfs.c'.
21164
21165 * disk/host.c: New file.
21166
21167 * util/hostfs.c: Likewise.
21168
21169 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
21170 return `GRUB_ERR_BAD_FS'.
21171 * fs/sfs.c (grub_sfs_mount): Likewise.
21172 * fs/xfs.c (grub_xfs_mount): Likewise.
21173
21174 * include/grub/disk.h (enum grub_disk_dev_id): Add
21175 `GRUB_DISK_DEVICE_HOST_ID'.
21176
21177 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
21178
21179 2007-07-24 Jerone Young <jerone@gmail.com>
21180
21181 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
21182 modules for compilation.
21183 * conf/powerpc-ieee1275.rmk: Likewise.
21184
21185 * include/multiboot.h: Move multiboot definitions to one file. Rename
21186 many definitions to not get grub specific.
21187 * include/multiboot2.h: Create header with multiboot 2 definitions.
21188 * include/grub/multiboot.h: Header for grub specific function
21189 prototypes and definitions.
21190 * include/grub/multiboot2.h: Likewise.
21191 * include/grub/multiboot_loader.h: Likewise.
21192 * include/grub/i386/pc/multiboot.h: Removed.
21193 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
21194
21195 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
21196 and 2 to allow for one multiboot and module commands.
21197 * loader/multiboot2.c: Add multiboot2 functionality.
21198 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
21199 and definition names.
21200 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
21201 2 functions.
21202 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
21203 ieee1275 specific multiboot2 code.
21204
21205 * kern/i386/pc/startup.S: Change headers and definition names for
21206 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
21207
21208 2007-07-22 Robert Millan <rmh@aybabtu.com>
21209
21210 * geninitheader.sh: Process file specified in first parameter rather
21211 than hardcoding grub_modules_init.lst.
21212 * geninit.sh: Likewise. Also, construct header name dynamically rather
21213 than hardcoding grub_modules_init.h.
21214
21215 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
21216 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
21217 grub_probe_init.[ch] and grub_setup_init.[ch].
21218
21219 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
21220 grub_modules_init.h with grub_emu_init.h.
21221 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
21222 grub_probe_init.[ch] files.
21223 * conf/i386-efi.rmk: Likewise.
21224 * conf/i386-pc.rmk: Likewise.
21225 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
21226 grub_setup_init.[ch] files.
21227
21228 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
21229 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
21230 to initialize modules rather than a list of hardcoded functions.
21231 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
21232 grub_init_all() to initialize modules rather than a list of hardcoded
21233 functions.
21234
21235 2007-07-22 Robert Millan <rmh@aybabtu.com>
21236
21237 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21238 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
21239
21240 2007-07-22 Robert Millan <rmh@aybabtu.com>
21241
21242 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
21243 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
21244 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
21245 flag when running on SmartFirmware.
21246 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
21247 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
21248 was set.
21249
21250 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21251 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
21252 rather than decreasing it.
21253
21254 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
21255 there's not enough space to do it, fail in the same way as when it
21256 can't be done because there are no partitions.
21257
21258 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
21259 when nvsetenv failed.
21260
21261 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21262
21263 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
21264 because this rule is automatically generated.
21265 (grub-mkrescue): Removed for the same reason as above.
21266
21267 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21268
21269 Migrate to GNU General Public License Version 3.
21270
21271 * COPYING: Replaced with the plain text version of GPLv3.
21272
21273 * config.guess: Updated from gnulib.
21274 * config.sub: Likewise.
21275
21276 * geninit.sh: Output a GPLv3 copyright notice.
21277 * geninitheader.sh: Likewise.
21278 * genmodsrc.sh: Likewise.
21279 * gensymlist.sh.in: Likewise.
21280
21281 * boot/i386/pc/boot.S: Upgraded to GPLv3.
21282 * boot/i386/pc/diskboot.S: Likewise.
21283 * boot/i386/pc/pxeboot.S: Likewise.
21284 * commands/blocklist.c: Likewise.
21285 * commands/boot.c: Likewise.
21286 * commands/cat.c: Likewise.
21287 * commands/cmp.c: Likewise.
21288 * commands/configfile.c: Likewise.
21289 * commands/echo.c: Likewise.
21290 * commands/help.c: Likewise.
21291 * commands/ls.c: Likewise.
21292 * commands/search.c: Likewise.
21293 * commands/terminal.c: Likewise.
21294 * commands/test.c: Likewise.
21295 * commands/videotest.c: Likewise.
21296 * commands/i386/cpuid.c: Likewise.
21297 * commands/i386/pc/halt.c: Likewise.
21298 * commands/i386/pc/play.c: Likewise.
21299 * commands/i386/pc/reboot.c: Likewise.
21300 * commands/i386/pc/vbeinfo.c: Likewise.
21301 * commands/i386/pc/vbetest.c: Likewise.
21302 * commands/ieee1275/halt.c: Likewise.
21303 * commands/ieee1275/reboot.c: Likewise.
21304 * commands/ieee1275/suspend.c: Likewise.
21305 * disk/loopback.c: Likewise.
21306 * disk/lvm.c: Likewise.
21307 * disk/raid.c: Likewise.
21308 * disk/efi/efidisk.c: Likewise.
21309 * disk/i386/pc/biosdisk.c: Likewise.
21310 * disk/ieee1275/ofdisk.c: Likewise.
21311 * font/manager.c: Likewise.
21312 * fs/affs.c: Likewise.
21313 * fs/ext2.c: Likewise.
21314 * fs/fat.c: Likewise.
21315 * fs/fshelp.c: Likewise.
21316 * fs/hfs.c: Likewise.
21317 * fs/hfsplus.c: Likewise.
21318 * fs/iso9660.c: Likewise.
21319 * fs/jfs.c: Likewise.
21320 * fs/minix.c: Likewise.
21321 * fs/sfs.c: Likewise.
21322 * fs/ufs.c: Likewise.
21323 * fs/xfs.c: Likewise.
21324 * hello/hello.c: Likewise.
21325 * include/grub/acorn_filecore.h: Likewise.
21326 * include/grub/arg.h: Likewise.
21327 * include/grub/bitmap.h: Likewise.
21328 * include/grub/boot.h: Likewise.
21329 * include/grub/cache.h: Likewise.
21330 * include/grub/device.h: Likewise.
21331 * include/grub/disk.h: Likewise.
21332 * include/grub/dl.h: Likewise.
21333 * include/grub/elfload.h: Likewise.
21334 * include/grub/env.h: Likewise.
21335 * include/grub/err.h: Likewise.
21336 * include/grub/file.h: Likewise.
21337 * include/grub/font.h: Likewise.
21338 * include/grub/fs.h: Likewise.
21339 * include/grub/fshelp.h: Likewise.
21340 * include/grub/gzio.h: Likewise.
21341 * include/grub/hfs.h: Likewise.
21342 * include/grub/kernel.h: Likewise.
21343 * include/grub/loader.h: Likewise.
21344 * include/grub/lvm.h: Likewise.
21345 * include/grub/misc.h: Likewise.
21346 * include/grub/mm.h: Likewise.
21347 * include/grub/net.h: Likewise.
21348 * include/grub/normal.h: Likewise.
21349 * include/grub/parser.h: Likewise.
21350 * include/grub/partition.h: Likewise.
21351 * include/grub/pc_partition.h: Likewise.
21352 * include/grub/raid.h: Likewise.
21353 * include/grub/rescue.h: Likewise.
21354 * include/grub/script.h: Likewise.
21355 * include/grub/setjmp.h: Likewise.
21356 * include/grub/symbol.h: Likewise.
21357 * include/grub/term.h: Likewise.
21358 * include/grub/terminfo.h: Likewise.
21359 * include/grub/tparm.h: Likewise.
21360 * include/grub/types.h: Likewise.
21361 * include/grub/video.h: Likewise.
21362 * include/grub/efi/api.h: Likewise.
21363 * include/grub/efi/chainloader.h: Likewise.
21364 * include/grub/efi/console.h: Likewise.
21365 * include/grub/efi/console_control.h: Likewise.
21366 * include/grub/efi/disk.h: Likewise.
21367 * include/grub/efi/efi.h: Likewise.
21368 * include/grub/efi/pe32.h: Likewise.
21369 * include/grub/efi/time.h: Likewise.
21370 * include/grub/i386/linux.h: Likewise.
21371 * include/grub/i386/setjmp.h: Likewise.
21372 * include/grub/i386/types.h: Likewise.
21373 * include/grub/i386/efi/kernel.h: Likewise.
21374 * include/grub/i386/efi/loader.h: Likewise.
21375 * include/grub/i386/efi/time.h: Likewise.
21376 * include/grub/i386/pc/biosdisk.h: Likewise.
21377 * include/grub/i386/pc/boot.h: Likewise.
21378 * include/grub/i386/pc/chainloader.h: Likewise.
21379 * include/grub/i386/pc/console.h: Likewise.
21380 * include/grub/i386/pc/init.h: Likewise.
21381 * include/grub/i386/pc/kernel.h: Likewise.
21382 * include/grub/i386/pc/loader.h: Likewise.
21383 * include/grub/i386/pc/memory.h: Likewise.
21384 * include/grub/i386/pc/multiboot.h: Likewise.
21385 * include/grub/i386/pc/serial.h: Likewise.
21386 * include/grub/i386/pc/time.h: Likewise.
21387 * include/grub/i386/pc/vbe.h: Likewise.
21388 * include/grub/i386/pc/vbeblit.h: Likewise.
21389 * include/grub/i386/pc/vbefill.h: Likewise.
21390 * include/grub/i386/pc/vbeutil.h: Likewise.
21391 * include/grub/i386/pc/vga.h: Likewise.
21392 * include/grub/ieee1275/ieee1275.h: Likewise.
21393 * include/grub/ieee1275/ofdisk.h: Likewise.
21394 * include/grub/powerpc/libgcc.h: Likewise.
21395 * include/grub/powerpc/setjmp.h: Likewise.
21396 * include/grub/powerpc/types.h: Likewise.
21397 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
21398 * include/grub/powerpc/ieee1275/console.h: Likewise.
21399 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
21400 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21401 * include/grub/powerpc/ieee1275/loader.h: Likewise.
21402 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
21403 * include/grub/powerpc/ieee1275/time.h: Likewise.
21404 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
21405 * include/grub/sparc64/libgcc.h: Likewise.
21406 * include/grub/sparc64/setjmp.h: Likewise.
21407 * include/grub/sparc64/types.h: Likewise.
21408 * include/grub/sparc64/ieee1275/console.h: Likewise.
21409 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21410 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21411 * include/grub/sparc64/ieee1275/time.h: Likewise.
21412 * include/grub/util/biosdisk.h: Likewise.
21413 * include/grub/util/getroot.h: Likewise.
21414 * include/grub/util/lvm.h: Likewise.
21415 * include/grub/util/misc.h: Likewise.
21416 * include/grub/util/raid.h: Likewise.
21417 * include/grub/util/resolve.h: Likewise.
21418 * io/gzio.c: Likewise.
21419 * kern/device.c: Likewise.
21420 * kern/disk.c: Likewise.
21421 * kern/dl.c: Likewise.
21422 * kern/elf.c: Likewise.
21423 * kern/env.c: Likewise.
21424 * kern/err.c: Likewise.
21425 * kern/file.c: Likewise.
21426 * kern/fs.c: Likewise.
21427 * kern/loader.c: Likewise.
21428 * kern/main.c: Likewise.
21429 * kern/misc.c: Likewise.
21430 * kern/mm.c: Likewise.
21431 * kern/parser.c: Likewise.
21432 * kern/partition.c: Likewise.
21433 * kern/rescue.c: Likewise.
21434 * kern/term.c: Likewise.
21435 * kern/efi/efi.c: Likewise.
21436 * kern/efi/init.c: Likewise.
21437 * kern/efi/mm.c: Likewise.
21438 * kern/i386/dl.c: Likewise.
21439 * kern/i386/efi/init.c: Likewise.
21440 * kern/i386/efi/startup.S: Likewise.
21441 * kern/i386/pc/init.c: Likewise.
21442 * kern/i386/pc/lzo1x.S: Likewise.
21443 * kern/i386/pc/startup.S: Likewise.
21444 * kern/ieee1275/ieee1275.c: Likewise.
21445 * kern/powerpc/cache.S: Likewise.
21446 * kern/powerpc/dl.c: Likewise.
21447 * kern/powerpc/ieee1275/cmain.c: Likewise.
21448 * kern/powerpc/ieee1275/crt0.S: Likewise.
21449 * kern/powerpc/ieee1275/init.c: Likewise.
21450 * kern/powerpc/ieee1275/openfw.c: Likewise.
21451 * kern/sparc64/cache.S: Likewise.
21452 * kern/sparc64/dl.c: Likewise.
21453 * kern/sparc64/ieee1275/init.c: Likewise.
21454 * kern/sparc64/ieee1275/openfw.c: Likewise.
21455 * loader/efi/chainloader.c: Likewise.
21456 * loader/efi/chainloader_normal.c: Likewise.
21457 * loader/i386/efi/linux.c: Likewise.
21458 * loader/i386/efi/linux_normal.c: Likewise.
21459 * loader/i386/pc/chainloader.c: Likewise.
21460 * loader/i386/pc/chainloader_normal.c: Likewise.
21461 * loader/i386/pc/linux.c: Likewise.
21462 * loader/i386/pc/linux_normal.c: Likewise.
21463 * loader/i386/pc/multiboot.c: Likewise.
21464 * loader/i386/pc/multiboot_normal.c: Likewise.
21465 * loader/powerpc/ieee1275/linux.c: Likewise.
21466 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21467 * normal/arg.c: Likewise.
21468 * normal/cmdline.c: Likewise.
21469 * normal/command.c: Likewise.
21470 * normal/completion.c: Likewise.
21471 * normal/execute.c: Likewise.
21472 * normal/function.c: Likewise.
21473 * normal/lexer.c: Likewise.
21474 * normal/main.c: Likewise.
21475 * normal/menu.c: Likewise.
21476 * normal/menu_entry.c: Likewise.
21477 * normal/misc.c: Likewise.
21478 * normal/parser.y: Likewise.
21479 * normal/script.c: Likewise.
21480 * normal/i386/setjmp.S: Likewise.
21481 * normal/powerpc/setjmp.S: Likewise.
21482 * normal/sparc64/setjmp.S: Likewise.
21483 * partmap/acorn.c: Likewise.
21484 * partmap/amiga.c: Likewise.
21485 * partmap/apple.c: Likewise.
21486 * partmap/gpt.c: Likewise.
21487 * partmap/pc.c: Likewise.
21488 * partmap/sun.c: Likewise.
21489 * term/gfxterm.c: Likewise.
21490 * term/terminfo.c: Likewise.
21491 * term/efi/console.c: Likewise.
21492 * term/i386/pc/console.c: Likewise.
21493 * term/i386/pc/serial.c: Likewise.
21494 * term/i386/pc/vesafb.c: Likewise.
21495 * term/i386/pc/vga.c: Likewise.
21496 * term/ieee1275/ofconsole.c: Likewise.
21497 * util/biosdisk.c: Likewise.
21498 * util/console.c: Likewise.
21499 * util/genmoddep.c: Likewise.
21500 * util/getroot.c: Likewise.
21501 * util/grub-emu.c: Likewise.
21502 * util/grub-mkdevicemap.c: Likewise.
21503 * util/grub-probe.c: Likewise.
21504 * util/lvm.c: Likewise.
21505 * util/misc.c: Likewise.
21506 * util/raid.c: Likewise.
21507 * util/resolve.c: Likewise.
21508 * util/update-grub.in: Likewise.
21509 * util/update-grub_lib.in: Likewise.
21510 * util/grub.d/00_header.in: Likewise.
21511 * util/grub.d/10_hurd.in: Likewise.
21512 * util/grub.d/10_linux.in: Likewise.
21513 * util/i386/efi/grub-install.in: Likewise.
21514 * util/i386/efi/grub-mkimage.c: Likewise.
21515 * util/i386/pc/grub-install.in: Likewise.
21516 * util/i386/pc/grub-mkimage.c: Likewise.
21517 * util/i386/pc/grub-mkrescue.in: Likewise.
21518 * util/i386/pc/grub-setup.c: Likewise.
21519 * util/i386/pc/misc.c: Likewise.
21520 * util/powerpc/ieee1275/grub-install.in: Likewise.
21521 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21522 * util/powerpc/ieee1275/misc.c: Likewise.
21523 * video/bitmap.c: Likewise.
21524 * video/video.c: Likewise.
21525 * video/i386/pc/vbe.c: Likewise.
21526 * video/i386/pc/vbeblit.c: Likewise.
21527 * video/i386/pc/vbefill.c: Likewise.
21528 * video/i386/pc/vbeutil.c: Likewise.
21529 * video/readers/tga.c: Likewise.
21530
21531 2007-07-02 Robert Millan <rmh@aybabtu.com>
21532
21533 * conf/i386-efi.rmk: Replace obsolete reference to
21534 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21535 with util/getroot.c.
21536 * conf/powerpc-ieee1275.rmk: Likewise.
21537 * conf/sparc64-ieee1275.rmk: Likewise.
21538
21539 * util/grub-emu.c (main): Fix unchecked pointer handling.
21540
21541 2007-07-02 Robert Millan <rmh@aybabtu.com>
21542
21543 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21544 invocation to fail, in order to support partition-less media.
21545
21546 * util/i386/pc/grub-install.in: Likewise.
21547
21548 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21549 which fs or partmap modules are needed (akin to its sister scripts).
21550
21551 Also use grub-probe to get rid of unportable /proc/mounts check.
21552
21553 Print the same informational message that the other scripts do, before
21554 exiting.
21555
21556 2007-06-23 Robert Millan <rmh@aybabtu.com>
21557
21558 * util/update-grub_lib.in (font_path): New function. Determine whether
21559 a font file can be found and, if so, echo the GRUB path to it.
21560
21561 * util/update-grub.in: Handle multiple terminals depending on user
21562 input, platform availability and font file presence. Propagate
21563 variables of our findings to /etc/grub.d/ children.
21564
21565 * util/grub.d/00_header.in: Handle multiple terminals, based on
21566 environment setup by update-grub.
21567
21568 2007-06-23 Robert Millan <rmh@aybabtu.com>
21569
21570 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
21571
21572 2007-06-21 Robert Millan <rmh@aybabtu.com>
21573
21574 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21575 indicate end of data section in kernel image.
21576 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21577 GRUB_KERNEL_MACHINE_DATA_END.
21578
21579 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21580 space for it.
21581 * kern/i386/efi/startup.S: Likewise.
21582
21583 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21584 during image generation. Implement --prefix option to override this
21585 patch.
21586 * util/i386/efi/grub-mkimage.c: Likewise.
21587
21588 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21589 code to make path relative to its root into a separate function.
21590
21591 * util/i386/pc/grub-install.in: Use newly provided
21592 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21593 pass the result to grub-install --prefix.
21594
21595 2007-06-13 Robert Millan <rmh@aybabtu.com>
21596
21597 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21598 DEFAULT_DEVICE_MAP.
21599 * util/grub-emu.c: Use above definitions from misc.h instead of
21600 defining them.
21601 * util/grub-mkdevicemap.c: Likewise.
21602 * util/i386/pc/grub-setup.c: Likewise.
21603 * util/grub-probe.c: Likewise.
21604 (probe): Abort with grub_util_error() when either
21605 grub_guess_root_device or grub_util_get_grub_dev fails.
21606
21607 2007-06-12 Robert Millan <rmh@aybabtu.com>
21608
21609 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21610 "pager" assignment.
21611 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21612 "pcdata".
21613 * util/grub-probe.c (probe): Likewise for "drive_name".
21614
21615 2007-06-11 Robert Millan <rmh@aybabtu.com>
21616
21617 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21618 not just the cdrom one.
21619
21620 2007-06-11 Robert Millan <rmh@aybabtu.com>
21621
21622 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21623 Add --pkglibdir=DIR option to override pkglibdir.
21624 Mention --image-type=TYPE in help output.
21625 Fix --grub-mkimage (it was a no-op).
21626 Abort gracefully when no parameter is given.
21627
21628 2007-06-11 Robert Millan <rmh@aybabtu.com>
21629
21630 * util/i386/pc/grub-mkrescue.in: New file.
21631 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21632 * Makefile.in: Handle bin_SCRIPTS.
21633
21634 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21635
21636 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21637 list of video modes.
21638
21639 2007-06-06 Robert Millan <rmh@aybabtu.com>
21640
21641 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21642 file doesn't exist, or if it is in a filesystem grub can't read.
21643
21644 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21645 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21646 header comment to fit in 80 columns when the variables are resolved.
21647
21648 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21649 could be identified by update-grub. Remove redundant check for
21650 unifont.pff existence (since convert_system_path_to_grub_path now
21651 handles that).
21652
21653 2007-06-04 Robert Millan <rmh@aybabtu.com>
21654
21655 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21656
21657 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21658
21659 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21660
21661 2007-06-04 Robert Millan <rmh@aybabtu.com>
21662
21663 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21664
21665 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21666 grub_apple_partition_map_fini.
21667
21668 * util/biosdisk.c
21669 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21670 to access >2 TiB disks).
21671
21672 Print disk->total_sectors with %llu instead of %lu, since this
21673 variable is always 64-bit (prevents wrong disk size from being displayed
21674 on either >2 TiB disk or big-endian CPU).
21675
21676 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21677 into a generic case that supports all (sane) partition maps.
21678
21679 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21680 breaks big-endian.
21681
21682 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21683 and grub_apple_partition_map_fini() after that.
21684
21685 2007-06-01 Robert Millan <rmh@aybabtu.com>
21686
21687 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21688
21689 * util/grub.d/00_header.in: Only enable gfxterm when
21690 convert_system_path_to_grub_path() succeeds.
21691
21692 2007-05-20 Robert Millan <rmh@aybabtu.com>
21693
21694 * util/update-grub_lib.in: New file.
21695 * DISTLIST: Add update-grub_lib.in.
21696 * conf/common.rmk: Generate update-grub_lib and install it in
21697 $(lib_DATA).
21698 * Makefile.in: Add install routine for $(lib_DATA).
21699
21700 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21701 function provided by update-grub_lib to support arbitrary paths of
21702 unifont.pff.
21703 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21704 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21705
21706 2007-05-19 Robert Millan <rmh@aybabtu.com>
21707
21708 * commands/i386/cpuid.c: New module.
21709 * DISTLIST: Add it.
21710 * conf/i386-efi.rmk: Enable cpuid.mod.
21711 * conf/i386-pc.rmk: Likewise.
21712
21713 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21714
21715 * kern/disk.c (grub_disk_read): Check return value of
21716 grub_realloc().
21717
21718 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21719
21720 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21721 arrays.
21722 * disk/raid.c (grub_raid_open): Likewise.
21723
21724 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21725
21726 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21727 stack instead of on the heap.
21728
21729 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21730 before doing a read on it.
21731
21732 * configure.ac: Only use -fno-stack-protector for the target
21733 environment.
21734
21735 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21736
21737 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21738 __attribute_ ((unused)) to mode_type argument.
21739
21740 * util/getroot.c (grub_guess_root_device): Fix #endif.
21741
21742 * kern/misc.c (memcmp): Fix prototype.
21743
21744 * include/grub/partition.h [GRUB_UTIL]
21745 (grub_gpt_partition_map_init): Add prototype.
21746 (grub_gpt_partition_map_fini): Likewise.
21747
21748 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21749 at the right place.
21750
21751 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21752 (grub_fat_read_data): Likewise.
21753 (grub_fat_find_dir): Likewise.
21754
21755 * font/manager.c (find_glyph): Make table a const.
21756 (grub_font_get_glyph): Remove bitmap from if statement.
21757
21758 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21759
21760 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21761 code, first search for device in /dev/mapper, then in /dev.
21762 (grub_util_get_grub_dev): New function.
21763 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21764 prototype.
21765 * util/grub-probe.c (probe): Remove check for RAID, call
21766 grub_util_get_grub_dev() instead of
21767 grub_util_biosdisk_get_grub_dev().
21768 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21769 grub_util_biosdisk_get_grub_dev().
21770 * util/i386/pc/grub-setup.c (main): Likewise.
21771
21772 2007-05-16 Robert Millan <rmh@aybabtu.com>
21773
21774 * DISTLIST: Update for the latest changes.
21775 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21776 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21777 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21778 grub/util/biosdisk.h.
21779 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21780 grub/util/biosdisk.h.
21781
21782 2007-05-16 Robert Millan <rmh@aybabtu.com>
21783
21784 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21785
21786 2007-05-16 Robert Millan <rmh@aybabtu.com>
21787
21788 * util/i386/efi/grub-install.in: New.
21789 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21790 newly added grub-install.
21791 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21792 include.
21793 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21794 grub/util/biosdisk.h.
21795 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21796 grub/util/biosdisk.h.
21797
21798 2007-05-16 Robert Millan <rmh@aybabtu.com>
21799
21800 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21801 * include/grub/util/biosdisk.h: ... here.
21802 * util/i386/pc/biosdisk.c: Moved to ...
21803 * util/biosdisk.c: ... here.
21804 * util/i386/pc/getroot.c: Moved to ...
21805 * util/getroot.c: ... here.
21806 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21807 * util/grub-mkdevicemap.c: ... here.
21808 * util/i386/pc/grub-probe.c: Moved to ...
21809 * util/grub-probe.c: ... here.
21810
21811 2007-05-15 Robert Millan <rmh@aybabtu.com>
21812
21813 * util/update-grub.in: Remove duplicated line in grub.cfg header
21814 message.
21815
21816 2007-05-13 Robert Millan <rmh@aybabtu.com>
21817
21818 * util/update-grub.in: Fix a few assumptions about the devices holding
21819 /, /boot and /boot/grub being the same.
21820 * util/grub.d/00_header.in: Likewise.
21821 * util/grub.d/10_hurd.in: Likewise.
21822 * util/grub.d/10_linux.in: Likewise.
21823
21824 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21825 patterns. Use that to define the `.old' suffix as older than `'.
21826
21827 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21828
21829 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21830 the grub.cfg header message.
21831
21832 2007-05-11 Robert Millan <rmh@aybabtu.com>
21833
21834 * util/update-grub.in: Create device.map if it doesn't already exist,
21835 before attempting to run grub-probe.
21836 Check for grub-probe and grub-mkdevicemap with the same code
21837 grub-install is using.
21838 Remove test mode.
21839
21840 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21841
21842 * Makefile.in: Add the datarootdir autoconf variable.
21843
21844 2007-05-09 Robert Millan <rmh@aybabtu.com>
21845
21846 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21847 fail gracefully if dev->disk->partition == NULL.
21848
21849 2007-05-07 Robert Millan <rmh@aybabtu.com>
21850
21851 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21852 determine partition map module.
21853 * util/i386/pc/grub-install.in: Use this feature to decide which
21854 partition module to load, instead of hardcoding pc and gpt.
21855
21856 2007-05-07 Robert Millan <rmh@aybabtu.com>
21857
21858 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21859 source directory differs from build directory.
21860
21861 2007-05-05 Robert Millan <rmh@aybabtu.com>
21862
21863 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21864 initialisation.
21865
21866 2007-05-05 Robert Millan <rmh@aybabtu.com>
21867
21868 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21869
21870 2007-05-05 Robert Millan <rmh@aybabtu.com>
21871
21872 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21873 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21874
21875 2007-05-05 Robert Millan <rmh@aybabtu.com>
21876
21877 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21878 (grub_probe_SOURCES): Likewise.
21879 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21880 GPT and initialize dos_part and bsd_part accordingly.
21881 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21882 install_bsd_part.
21883 (main): Activate gpt module for use during partition identification,
21884 and deactivate it afterwards.
21885 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21886 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21887 partition identification, and deactivate it afterwards.
21888
21889 2007-05-05 Robert Millan <rmh@aybabtu.com>
21890
21891 * term/i386/pc/console.c (grub_console_fini): Call
21892 grub_term_set_current() before grub_term_unregister().
21893
21894 2007-05-04 Robert Millan <rmh@aybabtu.com>
21895
21896 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21897 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21898 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21899 and update-grub_DATA.
21900 * conf/common.rmk: Build and install update-grub components.
21901 * conf/common.mk: Regenerate.
21902 * util/update-grub.in: New. Core of update-grub.
21903 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21904 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21905 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21906 * util/grub.d/README: New. Document grub.d directory layout.
21907
21908 2007-05-01 Robert Millan <rmh@aybabtu.com>
21909
21910 * util/grub-emu.c: Move initialization functions
21911 grub_util_biosdisk_init() and grub_init_all() before
21912 grub_util_biosdisk_get_grub_dev(), which relies on them.
21913
21914 2007-04-19 Robert Millan <rmh@aybabtu.com>
21915
21916 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21917 it is used later.
21918
21919 2007-04-18 Jerone Young <jerone@gmail.com>
21920
21921 * kernel/elf.c: Add missing parenthesis for conditional statement
21922 stanza.
21923
21924 2007-04-10 Jerone Young <jerone@gmail.com>
21925
21926 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21927 continue on and look for device node with real device name.
21928
21929 2007-04-10 Jerone Young <jerone@gmail.com>
21930
21931 * configure.ac: Add argument for autoconf to use transformation
21932 ability.
21933 * Makefile.in: Add autoconf package transformation code.
21934 * util/i386/pc/grub-install.in: Likewise.
21935 * util/powerpc/ieee1275/grub-install.in: Likewise.
21936
21937 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21938
21939 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21940 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21941 (EXT2_REVISION): Likewise.
21942 (EXT2_INODE_SIZE): Likewise.
21943 (struct grub_ext2_block_group): Added a missing member
21944 "used_dirs".
21945 (grub_ext2_read_inode): Divide by the inode size in a superblock
21946 instead of 128 to obtain INODES_PER_BLOCK.
21947 Use the macro EXT2_INODE_SIZE instead of directly using
21948 SBLOCK->INODE_SIZE.
21949
21950 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21951
21952 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21953 superblock instead of the structure size to compute an
21954 offset. This fixes the problem that GRUB could not read a
21955 filesystem when inode size is different from 128-byte.
21956
21957 2007-03-05 Marco Gerards <marco@gnu.org>
21958
21959 * normal/main.c (read_config_file): When "menu" is not set, create
21960 an initial context.
21961
21962 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21963
21964 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21965 (HEAP_LIMIT): New macro.
21966 (grub_claim_heap): Claim memory up to `heaplimit'.
21967
21968 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21969
21970 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21971 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21972 (_start): Likewise.
21973 (grub_arch_modules_addr): Return address after `_end'.
21974 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21975 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21976 (add_segments): Calculate `_end' from phdr size and location.
21977 (ALIGN_UP): Moved to ...
21978 * include/grub/misc.h: here.
21979 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21980 New macro.
21981 (GRUB_IEEE1275_MODULE_BASE): Removed.
21982
21983 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21984
21985 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21986 loop boundary.
21987
21988 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21989
21990 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21991 All users updated.
21992 (grub_elf64_load_hook_t): Likewise.
21993 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21994 debug output.
21995
21996 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21997
21998 * kern/mm.c: Update copyright.
21999 (grub_mm_debug): Correct syntax error.
22000 (grub_mm_dump_free): New function.
22001 (grub_debug_free): Call `grub_free'.
22002 * include/grub/mm.h: Update copyright.
22003 (grub_mm_dump_free): Add declaration.
22004
22005 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
22006
22007 * include/grub/ieee1275/ieee1275.h: Update copyright.
22008 * kern/powerpc/ieee1275/init.c: Likewise.
22009 * kern/powerpc/ieee1275/openfw.c: Likewise.
22010
22011 * loader/powerpc/ieee1275/linux.c: Likewise.
22012 * include/grub/elfload.h: Likewise.
22013 * kern/elf.c: Likewise.
22014 (grub_elf32_load): Pass `base' and `size' parameters. Update all
22015 callers.
22016 (grub_elf64_load): Likewise.
22017 (grub_elf32_load_segment): Move to a nested function.
22018 (grub_elf64_load_segment): Likewise.
22019
22020 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
22021
22022 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
22023 prototype.
22024 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
22025 (grub_heap_len): Likewise.
22026 (HEAP_SIZE): New macro.
22027 (grub_claim_heap): New function.
22028 (grub_machine_init): Don't claim heap directly. Call
22029 `grub_claim_heap'.
22030 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
22031 (grub_available_iterate): New function.
22032
22033 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
22034
22035 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
22036 * configure.ac: Use it for testing the HOST and TARGET compilers.
22037
22038 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
22039
22040 * Makefile.in (enable_grub_emu): New variable.
22041 * configure.ac (--enable-grub-emu): New option.
22042 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
22043 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
22044 * conf/i386-pc.rmk: Likewise.
22045 * conf/powerpc-ieee1275.rmk: Likewise.
22046 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
22047
22048 2006-12-12 Marco Gerards <marco@gnu.org>
22049
22050 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
22051
22052 * kern/env.c (grub_env_unset): Don't free the member `value' when
22053 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
22054 pointer.
22055
22056 * normal/main.c (current_menu): Removed.
22057 (free_menu): Unset the `menu' environment variable.
22058 (grub_normal_menu_addentry): Make use of the environment variable
22059 `menu', instead of using the global `current_menu'. Allocate
22060 memory for the sourcecode of this entry.
22061 (read_config_file): New argument `nested', changed all callers.
22062 Only in the case of a new context, initialize a new menu. Set the
22063 `menu' environment variable.
22064 (grub_normal_execute): Don't set and unset the environment
22065 variable `menu' here anymore. Only free the menu when leaving the
22066 context.
22067
22068 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
22069 leak.
22070
22071 2006-12-11 Marco Gerards <marco@gnu.org>
22072
22073 * normal/menu_entry.c (run): Fix off by one bug so the last line
22074 is executed. Move the loader check to outside the loop.
22075
22076 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
22077
22078 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
22079
22080 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
22081
22082 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
22083 the number of sectors. Reported by Andrey Shuvikov
22084 <mr_hyro@yahoo.com>.
22085
22086 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
22087
22088 * kern/disk.c (grub_disk_read): When there is a read error, always
22089 try to read only the necessary data.
22090
22091 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
22092 disk/raid.c.
22093 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
22094 prototype.
22095 [GRUB_UTIL] (grub_raid_fini): Likewise.
22096 [GRUB_UTIL] (grub_lvm_init): Likewise.
22097 [GRUB_UTIL] (grub_lvm_fini): Likewise.
22098 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
22099 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
22100 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
22101 and grub_raid_fini().
22102
22103 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
22104
22105 * include/grub/types.h (__unused): Rename to UNUSED.
22106 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
22107 (grub_elf64_size): Likewise.
22108
22109 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22110
22111 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
22112 grub_error_push and grub_error_pop in the error-handling path.
22113 (grub_elf32_load_segment): Only call grub_file_read with non-zero
22114 length.
22115
22116 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22117
22118 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
22119 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22121 (kernel_elf_SOURCES): Likewise.
22122 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
22123 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
22124 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22125 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22126 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
22127 (elf_mod_SOURCES): New variable.
22128 (elf_mod_CFLAGS): Likewise.
22129 (elf_mod_LDFLAGS): Likewise.
22130 * include/grub/types.h (__unused): New macro.
22131 * include/grub/elfload.h: New file.
22132 * kern/elf.c: Likewise.
22133 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
22134 (ELF32_LOADMASK): New macro.
22135 (ELF64_LOADMASK): Likewise.
22136 (vmlinux): Removed.
22137 (grub_linux_load32): New function.
22138 (grub_linux_load64): Likewise.
22139 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
22140 Use grub_elf_t instead of grub_file_t.
22141
22142 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
22143
22144 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
22145 `catch_result' to struct set_color_args.
22146
22147 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
22148
22149 * normal/menu.c: Include grub/script.h.
22150 * normal/menu_entry.c: Likewise.
22151 * include/grub/normal.h: Do not include grub/script.h.
22152
22153 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22154
22155 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
22156
22157 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22158
22159 * kern/disk.c (grub_disk_open): Print debug messages when opening a
22160 disk.
22161 (grub_disk_close): Print debug messages when closing a disk.
22162 (grub_disk_read): Print debug messages when disk read fails.
22163 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
22164 filesystem type.
22165 * kern/partition.c: Include misc.h.
22166 (grub_partition_iterate): Print debug messages when detecting
22167 partition type.
22168
22169 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22170
22171 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
22172 is negative.
22173 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
22174
22175 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
22176
22177 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22178 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
22179
22180 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
22181
22182 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
22183 instead of sizeof(lv). Patch by Michael Guntsche.
22184
22185 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
22186
22187 * disk/lvm.c: Rename VGS to VG_LIST.
22188 (grub_lvm_iterate): Change VGS->LV to VG-LV.
22189 (grub_lvm_open): Likewise.
22190 Thanks to Michael Guntsche for finding this bug.
22191
22192 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
22193
22194 * configure.ac (AC_INIT): Bumped to 1.95.
22195
22196 2006-10-14 Robert Millan <rmh@aybabtu.com>
22197
22198 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
22199 with "/dev/.static/dev/md".
22200
22201 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22202
22203 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
22204 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
22205 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
22206 DRIVE_NAME are always freed.
22207
22208 * util/i386/pc/biosdisk.c (make_device_name): Add one into
22209 DOS_PART, as a DOS partition is counted from one instead of zero
22210 now. Reported by Robert Millan.
22211
22212 2006-10-14 Robert Millan <rmh@aybabtu.com>
22213
22214 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
22215 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
22216 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
22217 string returned by grub_guess_root_device.
22218 * util/i386/pc/grub-setup.c: Likewise.
22219 * util/i386/pc/grub-probefs.c: Likewise.
22220
22221 * util/i386/pc/grub-probefs.c: Rename to ...
22222 * util/i386/pc/grub-probe.c: ... this.
22223 * DISTLIST: Remove grub-probefs, add grub-probe.
22224 * conf/i386-efi.rmk: Likewise.
22225 * conf/i386-pc.rmk: Likewise.
22226 * util/i386/pc/grub-install.in: Likewise.
22227
22228 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
22229 choose which information we want to print.
22230
22231 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22232
22233 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
22234 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
22235 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
22236 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
22237 video/readers/tga.c and video/i386/pc/vbeutil.c.
22238
22239 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
22240
22241 Added support for RAID and LVM.
22242
22243 * disk/lvm.c: New file.
22244 * disk/raid.c: Likewise.
22245 * include/grub/lvm.h: Likewise.
22246 * include/grub/raid.h: Likewise.
22247 * include/grub/util/lvm.h: Likewise.
22248 * include/grub/util/raid.h: Likewise.
22249 * util/lvm.c: Likewise.
22250 * util/raid.c: Likewise.
22251
22252 * include/grub/disk.h (grub_disk_dev_id): Add
22253 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
22254 (grub_disk_get_size): New prototype.
22255 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
22256 returns a partition.
22257 (grub_disk_get_size): New function.
22258
22259 * kern/i386/pc/init.c (make_install_device): Copy the prefix
22260 verbatim if grub_install_dos_part is -2.
22261
22262 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
22263 and LVM devices.
22264
22265 * util/i386/pc/grub-setup.c (setup): New argument
22266 MUST_EMBED. Force embedding of GRUB when the argument is
22267 true. Close FILE before returning.
22268 (main): Add support for RAID and LVM.
22269
22270 * conf/common.rmk: Add RAID and LVM modules.
22271 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
22272 util/lvm.c.
22273 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
22274
22275 * kern/misc.c (grub_strstr): New function.
22276 * include/grub/misc.h (grub_strstr): New prototype.
22277
22278 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
22279
22280 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
22281
22282 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
22283
22284 * kern/misc.c (grub_strtoull): Guess the base only if not
22285 specified.
22286
22287 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22288
22289 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
22290 PowerMac support.
22291
22292 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22293
22294 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
22295
22296 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
22297 Remove `flags' argument. All callers changed.
22298 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
22299 (IEEE1275_IHANDLE_INVALID): New variable.
22300 (IEEE1275_CELL_INVALID): New variable.
22301 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22302 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
22303 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
22304 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
22305 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
22306 codes from Open Firmware. All callers updated.
22307 (grub_ieee1275_next_property): Directly return Open Firmware return
22308 code.
22309 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22310 Standardize error checking from `grub_ieee1275_get_property'.
22311 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
22312 `devalias' to `aliases'. Correct comments. Consolidate error paths.
22313
22314 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22315
22316 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
22317 `instance_to_package_args' to `instance_to_path_args'.
22318
22319 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
22320 `grub_ieee1275_chosen'.
22321
22322 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
22323 `grub_ieee1275_interpret'.
22324
22325 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22326
22327 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
22328
22329 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22330
22331 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
22332 (__cmpdi): Likewise.
22333
22334 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
22335 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
22336 `grub_ssize_t'.
22337
22338 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
22339
22340 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
22341 to type `grub_ssize_t'.
22342 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
22343
22344 2006-09-22 Marco Gerards <marco@gnu.org>
22345
22346 * normal/script.c (grub_script_create_cmdmenu): Skip leading
22347 newlines.
22348
22349 2006-09-22 Marco Gerards <marco@gnu.org>
22350
22351 * commands/echo.c: New file.
22352
22353 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
22354
22355 * conf/common.rmk (echo_mod_SOURCES): New variable.
22356 (echo_mod_CFLAGS): Likewise.
22357 (echo_mod_LDFLAGS): Likewise.
22358
22359 2006-09-22 Marco Gerards <marco@gnu.org>
22360
22361 * normal/main.c (get_line): Malloc memory instead of using
22362 preallocated memory. Removed the arguments `cmdline' and
22363 `max_len'. Updated all callers.
22364
22365 2006-09-22 Marco Gerards <marco@gnu.org>
22366
22367 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
22368 (normal_mod_DEPENDENCIES): Likewise.
22369
22370 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
22371 (normal_mod_DEPENDENCIES): Likewise.
22372
22373 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
22374
22375 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
22376
22377 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
22378 programs.
22379 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
22380 (normal_mod_DEPENDENCIES): Likewise.
22381 * conf/i386-pc.mk: Regenerate.
22382 * conf/i386-efi.mk: Likewise
22383 * conf/common.mk: Likewise.
22384 * conf/powerpc-ieee1275.mk: Likewise.
22385 * conf/sparc64-ieee1275.mk: Likewise.
22386
22387 2006-09-22 Robert Millan <rmh@aybabtu.com>
22388
22389 Sync with i386 version.
22390 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
22391 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
22392
22393 2006-09-21 Robert Millan <rmh@aybabtu.com>
22394
22395 Import from GRUB Legacy (lib/device.c):
22396 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
22397 (init_device_map) [__linux__]: Add support for I2O devices.
22398
22399 2006-09-14 Marco Gerards <marco@gnu.org>
22400
22401 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
22402 `-melf_i386'.
22403
22404 2006-09-14 Robert Millan <rmh@aybabtu.com>
22405
22406 * util/i386/pc/grub-install.in: Skip menu.lst when removing
22407 /boot/grub/*.lst.
22408
22409 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
22410
22411 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
22412 before adding it to device.map.
22413
22414 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
22415
22416 * genmk.rb: Let GCC generate dependencies the first time it
22417 compiles a file; using the -MD option.
22418 * conf/common.mk: Regenerate.
22419 * conf/i386-pc.mk: Likewise.
22420 * conf/i386-efi.mk: Likewise.
22421 * conf/powerpc-ieee1275.mk: Likewise.
22422 * conf/sparc64-ieee1275.mk: Likewise.
22423
22424 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
22425
22426 Move the prototypes of grub_setjmp and grub_longjmp to
22427 cpu/setjmp.h, so that each architecture may specify different
22428 attributes.
22429
22430 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
22431 (grub_longjmp): Likewise.
22432 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
22433 (grub_longjmp): Likewise.
22434 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
22435 (grub_longjmp): Likewise.
22436
22437 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
22438 [!GRUB_UTIL] (grub_longjmp): Removed.
22439
22440 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
22441
22442 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
22443 "color!" method does not return any value.
22444
22445 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22446
22447 * include/grub/bitmap.h: New file.
22448
22449 * include/grub/i386/pc/vbeutil.h: Likewise.
22450
22451 * video/bitmap.c: Likewise.
22452
22453 * video/readers/tga.c: Likewise.
22454
22455 * video/i386/pc/vbeutil.c: Likewise.
22456
22457 * commands/videotest.c: Code cleanup and updated to reflect to new
22458 video API.
22459
22460 * term/gfxterm.c: Likewise.
22461
22462 * video/video.c: Likewise.
22463
22464 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
22465 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
22466 (bitmap_mod_SOURCES): New entry.
22467 (bitmap_mod_CFLAGS): Likewise.
22468 (bitmap_mod_LDFLAGS): Likewise.
22469 (tga_mod_SOURCES): Likewise.
22470 (tga_mod_CFLAGS): Likewise.
22471 (tga_mod_LDFLAGS): Likewise.
22472
22473 * include/grub/video.h (grub_video_blit_operators): New enum type.
22474 (grub_video_render_target): Changed as forward declaration and moved
22475 actual definition to be video driver specific.
22476 (grub_video_adapter.blit_bitmap): Added blitting operator.
22477 (grub_video_adapter.blit_render_target): Likewise.
22478 (grub_video_blit_bitmap): Likewise.
22479 (grub_video_blit_render_target): Likewise.
22480
22481 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
22482 driver specific render target definition.
22483 (grub_video_vbe_map_rgba): Added driver internal helper.
22484 (grub_video_vbe_unmap_color): Updated to use
22485 grub_video_i386_vbeblit_info.
22486 (grub_video_vbe_get_video_ptr): Likewise.
22487
22488 * include/grub/i386/pc/vbeblit.h
22489 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
22490 grub_video_i386_vbeblit_info.
22491 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
22492 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
22493 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
22494 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
22495 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
22496 (grub_video_i386_vbeblit_index_index): Likewise.
22497 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
22498 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
22499 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
22500 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
22501 operator.
22502 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
22503 operator.
22504
22505 * video/i386/pc/vbeblit.c: Updated to reflect changes on
22506 include/grub/i386/pc/vbeblit.h.
22507
22508 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
22509 Updated to use grub_video_i386_vbeblit_info.
22510 (grub_video_i386_vbefill_R8G8B8): Likewise.
22511 (grub_video_i386_vbefill_index): Likewise.
22512 (grub_video_i386_vbefill): Added generic filler.
22513
22514 * video/i386/pc/vbefill.c: Updated to reflect changes on
22515 include/grub/i386/pc/vbefill.h.
22516
22517 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22518 grub_video_i386_vbeblit_info.
22519 (grub_video_vbe_unmap_color): Likewise.
22520 (grub_video_vbe_blit_glyph): Likewise.
22521 (grub_video_vbe_scroll): Likewise.
22522 (grub_video_vbe_draw_pixel): Removed function.
22523 (grub_video_vbe_get_pixel): Likewise.
22524 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22525 updated code to use it.
22526 (common_blitter): Added common blitter for render target and bitmap.
22527 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22528 (grub_video_vbe_blit_render_target): Likewise.
22529
22530 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
22531
22532 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22533 is in text mode if there is no console control protocol instance
22534 available.
22535
22536 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22537
22538 * include/grub/video.h: Code cleanup.
22539
22540 * include/grub/i386/pc/vbe.h: Likewise.
22541
22542 * video/i386/pc/vbe.c: Likewise.
22543
22544 * video/i386/pc/vbeblit.c: Likewise.
22545
22546 * video/i386/pc/vbefill.c: Likewise.
22547
22548 * video/video.c: Likewise. Also added more comments.
22549
22550 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22551
22552 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22553 (struct grub_biosdisk_dap): Likewise.
22554
22555 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22556 linkage settings for all functions.
22557
22558 2006-07-12 Marco Gerards <marco@gnu.org>
22559
22560 * configure.ac (--enable-mm-debug): Fix typo.
22561
22562 * genkernsyms.sh.in: Use proper quoting for `CC'.
22563
22564 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22565
22566 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22567 (normal_mod_ASFLAGS): Remove "-m32".
22568
22569 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22570
22571 * util/misc.c: Include config.h.
22572 [!HAVE_MEMALIGN]: Do not include malloc.h.
22573 (grub_memalign): Use posix_memalign, if present. Then, use
22574 memalign, if present. Otherwise, emit an error.
22575
22576 * util/grub-emu.c: Do not include malloc.h.
22577
22578 * include/grub/util/misc.h: Include unistd.h. This is required for
22579 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22580 D. Eades III <hde@foobar-qux.org>.
22581
22582 * configure.ac (AC_GNU_SOURCE): Added.
22583 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22584 type.
22585
22586 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22587
22588 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22589 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22590
22591 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22592
22593 * include/grub/types.h (grub_host_addr_t): Rename to
22594 grub_target_addr_t.
22595 (grub_host_off_t): Rename to grub_target_off_t.
22596 (grub_host_size_t): Rename to grub_target_size_t.
22597 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22598 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22599
22600 * include/grub/kernel.h (struct grub_module_header): Change type
22601 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22602 (grub_module_info): Likewise.
22603
22604 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22605
22606 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22607 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22608 Velazquez <jesus.velazquez@gmail.com>.
22609
22610 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22611
22612 Count partitions from 1 instead of 0 in the string representation
22613 of partitions. Still use 0-based internally.
22614
22615 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22616 (sun_partition_map_iterate): Use grub_partition_t instead of
22617 struct grub_partition *. Cast DESC->START_CYLINDER to
22618 grub_uint64_t after converting the endian.
22619 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22620 (sun_partition_map_get_name): Add 1 to P->INDEX.
22621
22622 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22623 PCDATA->DOS_PART.
22624 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22625
22626 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22627 zero instead of one.
22628 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22629 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22630
22631 * partmap/apple.c (apple_partition_map_iterate): Change the type
22632 of POS to unsigned.
22633 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22634 (apple_partition_map_get_name): Add 1 into P->INDEX.
22635
22636 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22637 of POS to unsigned.
22638 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22639 calculate the offset of a partition.
22640 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22641 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22642
22643 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22644 SECTOR to grub_disk_addr_t.
22645 (acorn_partition_map_iterate): Likewise.
22646 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22647 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22648 top.
22649 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22650
22651 * kern/i386/pc/init.c (make_install_device): Add 1 into
22652 GRUB_INSTALL_DOS_PART.
22653
22654 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22655 conditional.
22656
22657 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22658
22659 Clean up the code to support 64-bit addressing in disks and
22660 files. This change is not enough for filesystems yet.
22661
22662 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22663 type of "start" to grub_uint64_t.
22664 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22665 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22666 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22667 convert addresses.
22668
22669 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22670 to grub_disk_addr_t.
22671
22672 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22673 string.
22674
22675 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22676
22677 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22678 to char *.
22679
22680 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22681
22682 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22683
22684 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22685
22686 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22687 to grub_off_t, to detect an error from grub_file_seek.
22688 (grub_multiboot_load_elf32): Likewise.
22689
22690 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22691 maximum unsigned long value when an overflow is detected.
22692 (grub_strtoull): New function.
22693 (grub_divmod64): Likewise.
22694 (grub_lltoa): use grub_divmod64.
22695
22696 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22697 grub_disk_addr_t.
22698 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22699 the pointer to next character. Use grub_strtoull instead of
22700 grub_strtoul.
22701 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22702 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22703 respectively.
22704
22705 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22706 return value is signed.
22707 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22708 test if OFFSET is less than zero, as OFFSET is unsigned now.
22709
22710 * kern/disk.c (struct grub_disk_cache): Change the type of
22711 "sector" to grub_disk_addr_t.
22712 (grub_disk_cache_get_index): Change the type of SECTOR to
22713 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22714 unsigned after shifting.
22715 (grub_disk_cache_invalidate): Change the type of SECTOR to
22716 grub_disk_addr_t.
22717 (grub_disk_cache_unlock): Likewise.
22718 (grub_disk_cache_store): Likewise.
22719 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22720 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22721 grub_disk_addr_t and grub_uint64_t, respectively.
22722 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22723 body, as the value of OFFSET is tweaked by
22724 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22725 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22726 respectively.
22727 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22728 body, as the value of OFFSET is tweaked by
22729 grub_disk_check_range. Change the types of LEN and N to
22730 grub_size_t.
22731
22732 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22733 and "saved_offset" to grub_off_t.
22734 (test_header): Cast BUF to char *.
22735 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22736 to char *.
22737 (grub_gzio_read): Change the types of OFFSET and SIZE to
22738 grub_off_t and grub_size_t, respectively.
22739
22740 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22741 Removed.
22742 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22743 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22744 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22745 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22746 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22747
22748 * include/grub/types.h (grub_off_t): Unconditionally set to
22749 grub_uint64_t.
22750 (grub_disk_addr_t): Changed to grub_uint64_t.
22751
22752 * include/grub/partition.h (struct grub_partition): Change the
22753 types of "start", "len" and "offset" to grub_disk_addr_t,
22754 grub_uint64_t and grub_disk_addr_t, respectively.
22755 (grub_partition_get_start): Return grub_disk_addr_t.
22756 (grub_partition_get_len): Return grub_uint64_t.
22757
22758 * include/grub/misc.h (grub_strtoull): New prototype.
22759 (grub_divmod64): Likewise.
22760
22761 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22762 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22763 grub_off_t, respectively.
22764 All callers and references changed.
22765
22766 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22767 grub_size_t in "read".
22768 All callers and references changed.
22769
22770 * include/grub/file.h (struct grub_file): Change the types of
22771 "offset" and "size" to grub_off_t and grub_off_t,
22772 respectively. Change the type of SECTOR to grub_disk_addr_t in
22773 "read_hook".
22774 (grub_file_read): Change the type of LEN to grub_size_t.
22775 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22776 grub_off_t.
22777 (grub_file_size): Return grub_off_t.
22778 (grub_file_tell): Likewise.
22779 All callers and references changed.
22780
22781 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22782 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22783 "write".
22784 (struct grub_disk): Change the type of "total_sectors" to
22785 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22786 "read_hook".
22787 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22788 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22789 (grub_disk_write): Likewise.
22790 All callers and references changed.
22791
22792 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22793 char * for grub_strncmp to silence gcc.
22794 (grub_iso9660_mount): Likewise.
22795 (grub_iso9660_mount): Likewise.
22796 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22797 return statement.
22798 (grub_iso9660_iterate_dir): Likewise.
22799 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22800
22801 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22802 LEN to grub_disk_addr_t and grub_size_t, respectively.
22803
22804 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22805
22806 * fs/jfs.c (grub_jfs_read_file): Likewise.
22807
22808 * fs/minix.c (grub_jfs_read_file): Likewise.
22809
22810 * fs/sfs.c (grub_jfs_read_file): Likewise.
22811
22812 * fs/ufs.c (grub_jfs_read_file): Likewise.
22813
22814 * fs/xfs.c (grub_jfs_read_file): Likewise.
22815
22816 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22817 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22818 respectively.
22819
22820 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22821 BLKNR to -1 instead of returning GRUB_ERRNO.
22822 (grub_ext2_read_file): Change the types of SECTOR and
22823 LEN to grub_disk_addr_t and grub_size_t, respectively.
22824
22825 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22826 LEN to grub_disk_addr_t and grub_size_t, respectively.
22827
22828 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22829 grub_file_read.
22830
22831 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22832 string. Do not cast SECTOR explicitly.
22833
22834 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22835 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22836 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22837 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22838 over 2TB and LBA mode is not supported, raise an error.
22839 (get_safe_sectors): New function.
22840 (grub_biosdisk_read): Use get_safe_sectors.
22841 (grub_biosdisk_write): Likewise.
22842
22843 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22844 (grub_efidisk_write): Likewise.
22845
22846 * disk/loopback.c (delete_loopback): Cosmetic changes.
22847 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22848 correctly.
22849 (grub_loopback_open): Likewise.
22850 (grub_loopback_read): Likewise. Also, change the type of POS to
22851 grub_off_t, and fix the usage of grub_memset.
22852
22853 * commands/i386/pc/play.c: Include grub/machine/time.h.
22854
22855 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22856 print FILE->SIZE.
22857
22858 * commands/configfile.c: Include grub/env.h.
22859
22860 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22861 GRUB_ERRNO directly instead. Change the type of POS to
22862 grub_off_t. Follow the coding standard.
22863
22864 * commands/blocklist.c: Include grub/partition.h.
22865 (grub_cmd_blocklist): Return an error if the underlying device is
22866 not a disk. Take the starting sector of a partition into account,
22867 if a partition is used.
22868
22869 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22870 a length field.
22871 (lba_mode): Support 64-bit addresses.
22872 (chs_mode): Likewise.
22873 (copy_buffer): Adapted to the new offsets of a length field and a
22874 segment field.
22875 (blocklist_default_start): Allocate 64-bit space.
22876
22877 * boot/i386/pc/boot.S (force_lba): Removed.
22878 (boot_drive): Moved to under KERNEL_SECTOR.
22879 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22880 space.
22881 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22882 is useless.
22883 (lba_mode): Refactored to support a 64-bit address. More size
22884 optimization.
22885 (setup_sectors): Likewise.
22886
22887 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22888
22889 * DISTLIST: Added include/grub/i386/linux.h. Removed
22890 include/grub/i386/pc/linux.h
22891
22892 * configure.ac (AC_INIT): Bumped to 1.94.
22893
22894 * config.guess: Updated from gnulib.
22895 * config.sub: Likewise.
22896 * install-sh: Likewise.
22897 * mkinstalldirs: Likewise.
22898
22899 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22900
22901 * conf/common.rmk (grub_modules_init.lst): Depended on
22902 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22903 MODSRCFILES.
22904
22905 * genmk.rb (PModule::rule): Reverted the previous change.
22906
22907 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22908
22909 * conf/common.rmk (grub_modules_init.lst): Depends on
22910 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22911 that the target does not exist before producing.
22912 (grub_modules_init.h): Remove the target before generating.
22913 (grub_emu_init.c): Likewise.
22914
22915 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22916
22917 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22918
22919 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22920 for the target-specific tests. Make sure that we also have the
22921 up-to-date target variables for those tests.
22922
22923 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22924
22925 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22926 (PModule::rule): Likewise.
22927
22928 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22929
22930 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22931 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22932 target-specific flags should be prefixed.
22933 (PModule::rule): Likewise.
22934
22935 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22936
22937 * configure.ac (CMP): Check if cmp is available explicitly.
22938
22939 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22940
22941 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22942 (target_cpu): New variable.
22943 (pkglibdir): Use target_cpu instead of host_cpu.
22944
22945 * util/i386/pc/grub-install.in (host_cpu): Removed.
22946 (target_cpu): New variable.
22947 (pkglibdir): Use target_cpu instead of host_cpu.
22948
22949 * util/genmoddep.c: Removed.
22950
22951 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22952 instead of GRUB_HOST_SIZEOF_VOID_P.
22953 * kern/dl.c: Likewise.
22954
22955 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22956 ...
22957 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22958 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22959 (GRUB_TARGET_SIZEOF_LONG): ... this.
22960 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22961 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22962 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22963 to ...
22964 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22965 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22966 (GRUB_TARGET_SIZEOF_LONG): ... this.
22967 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22968 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22969 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22970 to ...
22971 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22972 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22973 (GRUB_TARGET_SIZEOF_LONG): ... this.
22974 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22975 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22976
22977 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22978 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22979 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22980 instead of GRUB_HOST_SIZEOF_LONG.
22981 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22982 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22983 GRUB_CPU_WORDS_BIGENDIAN.
22984 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22985 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22986 grub_host_ssize_t.
22987
22988 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22989 (genmoddep_SOURCES): Likewise.
22990 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22991 (genmoddep_SOURCES): Likewise.
22992 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22993 (genmoddep_SOURCES): Likewise.
22994 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22995 Likewise.
22996 (genmoddep_SOURCES): Likewise.
22997
22998 * genmoddep.awk: New file.
22999
23000 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
23001 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
23002 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
23003 (PModule::rule): Likewise.
23004 (Program::rule): Likewise.
23005 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
23006 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
23007 respectively.
23008
23009 * configure.ac: Rewritten intensively to use host and target
23010 instead of build and host, respectively.
23011
23012 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
23013 (host_cpu): Removed.
23014 (target_cpu): New variable.
23015 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
23016 (BUILD_CC): Removed.
23017 (BUILD_CFLAGS): Likewise.
23018 (BUILD_CPPFLAGS): Likewise.
23019 (TARGET_CC): New variable.
23020 (TARGET_CFLAGS): Likewise.
23021 (TARGET_CPPFLAGS): Likewise.
23022 (TARGET_LDFLAGS): Likewise.
23023 (AWK): Likewise.
23024 (include): Use target_cpu instead of host_cpu.
23025 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
23026
23027 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
23028
23029 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
23030
23031 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
23032 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
23033 field 'false' to 'exec_on_false'.
23034 (grub_script_create_cmdif): Renamed argument names to reflect above
23035 changes.
23036
23037 * normal/execute.c (grub_script_execute_cmdif): Likewise.
23038
23039 * normal/script.c (grub_script_create_cmdif): Likewise.
23040
23041 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
23042
23043 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
23044 top.
23045 (grub_hfsplus_btree_recptr): Likewise.
23046 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
23047 FILEBLOCK both to pass a block number and store next block
23048 number.
23049 (grub_hfsplus_read_block): Rewritten heavily to support an extent
23050 overflow file correctly. Specify errors appropriately, because
23051 fshelp expects that GRUB_ERRNO is set when fails. Reuse
23052 grub_hfsplus_btree_recptr to get the pointer to a found key.
23053 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
23054 is found.
23055
23056 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
23057 linux.mod.
23058 (_linux_mod_SOURCES): New variable.
23059 (_linux_mod_CFLAGS): Likewise.
23060 (_linux_mod_LDFLAGS): Likewise.
23061 (linux_mod_SOURCES): Likewise.
23062 (linux_mod_CFLAGS): Likewise.
23063 (linux_mod_LDFLAGS): Likewise.
23064
23065 * DISTLIST: Added loader/i386/efi/linux.c,
23066 loader/i386/efi/linux_normal.c and
23067 include/grub/i386/efi/loader.h.
23068
23069 * loader/i386/efi/linux.c: New file.
23070 * loader/i386/efi/linux_normal.c: Likewise.
23071 * include/grub/i386/efi/loader.h: Likewise.
23072
23073 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
23074
23075 * commands/blocklist.c: New file.
23076
23077 * DISTLIST: Added commands/blocklist.c.
23078
23079 * term/efi/console.c (grub_console_highlight_color): Use a lighter
23080 color for the background, and a darker color for the foreground.
23081 (grub_console_checkkey): Return READ_KEY.
23082 (grub_console_cls): Set the background to
23083 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
23084
23085 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
23086
23087 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
23088 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
23089
23090 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
23091 prototype.
23092
23093 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
23094 BG. The spec is wrong again.
23095
23096 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
23097 prototype.
23098 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
23099
23100 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23101 commands/blocklist.c.
23102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23103
23104 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
23105 (blocklist_mod_SOURCES): New variable.
23106 (blocklist_mod_CFLAGS): Likewise.
23107 (blocklist_mod_LDFLAGS): Likewise.
23108
23109 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
23110
23111 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
23112 duplication.
23113 (lba_mode): Use %eax more intensively to reduce the code size.
23114
23115 2006-05-20 Marco Gerards <marco@gnu.org>
23116
23117 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
23118
23119 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
23120 for `menuentry'.
23121 (script): Accept leading newlines.
23122 (newlines): New rule to describe 0 or more newlines.
23123 (commands): Accept `command' with trailing newline. Fixed the
23124 order in which arguments were passed to `grub_script_add_cmd'.
23125 Accept commands separated by newlines.
23126 (function): Changed to accept newlines.
23127 (menuentry) Rewritten.
23128
23129 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
23130 front of the list, instead of to the end.
23131
23132 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
23133
23134 * util/i386/pc/grub-install.in (bindir): New variable.
23135 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
23136 Shaver <lbgwjl@gmail.com>.
23137
23138 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
23139
23140 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
23141 grub/machine/linux.h
23142 * loader/i386/pc/linux.c: Likewise.
23143
23144 * include/grub/i386/pc/linux.h: Moved to ...
23145 * include/grub/i386/linux.h: ... here.
23146
23147 * include/grub/i386/linux.h (struct linux_kernel_params): New
23148 struct.
23149
23150 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
23151
23152 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
23153 checking.
23154 (grub_video_vbe_blit_glyph): Likewise.
23155 (grub_video_vbe_blit_bitmap): Likewise.
23156 (grub_video_vbe_blit_render_target): Likewise.
23157
23158 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
23159
23160 * configure.ac (--with-platform): Properly quote the square
23161 brackets.
23162
23163 2006-05-08 Marco Gerards <marco@gnu.org>
23164
23165 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
23166 this...
23167 (kernel_elf_HEADERS): ...to this. Updated all users.
23168 (grubof_symlist.c): Renamed from this...
23169 (kernel_elf_symlist.c): ...to this. Updated all users.
23170 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23171 (grubof_SOURCES): Renamed from this...
23172 (kernel_elf_SOURCES): ...to this.
23173 (grubof_HEADERS): Renamed from this...
23174 (kernel_elf_HEADERS): ...to this.
23175 (grubof_CFLAGS): Renamed from this...
23176 (kernel_elf_CFLAGS): ...to this.
23177 (grubof_ASFLAGS): Renamed from this...
23178 (kernel_elf_ASFLAGS): ...to this.
23179 (grubof_LDFLAGS): Renamed from this...
23180 (kernel_elf_LDFLAGS): ...to this.
23181
23182 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
23183 this...
23184 (kernel_elf_HEADERS): ...to this. Updated all users.
23185 (grubof_symlist.c): Renamed from this...
23186 (kernel_elf_symlist.c): ...to this. Updated all users.
23187 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23188 (grubof_SOURCES): Renamed from this...
23189 (kernel_elf_SOURCES): ...to this.
23190 (grubof_HEADERS): Renamed from this...
23191 (kernel_elf_HEADERS): ...to this.
23192 (grubof_CFLAGS): Renamed from this...
23193 (kernel_elf_CFLAGS): ...to this.
23194 (grubof_ASFLAGS): Renamed from this...
23195 (kernel_elf_ASFLAGS): ...to this.
23196 (grubof_LDFLAGS): Renamed from this...
23197 (kernel_elf_LDFLAGS): ...to this.
23198
23199 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
23200 `kernel.elf' instead of `grubof'.
23201
23202 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
23203
23204 Add --with-platform to configure. Use pkglibdir instead of
23205 pkgdatadir. This is reported by Roger Leigh.
23206
23207 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
23208 (host_vendor): Likewise.
23209 (host_os): Likewise.
23210 (pkgdatadir): Likewise.
23211 (platform): New variable.
23212 (pkglibdir): Likewise.
23213 Use PKGLIBDIR instead of PKGDATADIR.
23214
23215 * util/i386/pc/grub-install.in (datadir): Removed.
23216 (host_vendor): Likewise.
23217 (host_os): Likewise.
23218 (pkgdatadir): Likewise.
23219 (platform): New variable.
23220 (pkglibdir): Likewise.
23221 Use PKGLIBDIR instead of PKGDATADIR.
23222
23223 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
23224 instead of GRUB_DATADIR.
23225 (main): Likewise.
23226 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23227 (main): Likewise.
23228 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23229 (main): Likewise.
23230
23231 * configure.ac (--with-platform): New option.
23232 Use PLATFORM instead of HOST_VENDOR to specify a platform.
23233
23234 * Makefile.in: Include a makefile based on PLATFORM instead of
23235 HOST_VENDOR.
23236 (pkgdatadir): Not appended by the machine type.
23237 (pkglibdir): Appended by the machine type.
23238 (host_vendor): Removed.
23239 (platform): New variable.
23240 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
23241 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
23242 (uninstall): Likewise.
23243
23244 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
23245
23246 Use the environment context in the menu. Remove the commands
23247 "default" and "timeout", and use variables instead.
23248
23249 * normal/menu.c: Include grub/env.h.
23250 (print_entry): Cast TITLE to silence gcc.
23251 (get_timeout): New function.
23252 (set_timeout): Likewise.
23253 (get_entry_number): Likewise.
23254 (run_menu): Use a default entry, a fallback entry and a timeout
23255 in the environment variables "default", "fallback" and
23256 "timeout". Also, tweak the default entry if it is not within the
23257 current menu entries.
23258 (grub_menu_run): Use a fallback entry in the environment variable
23259 "fallback".
23260
23261 * normal/main.c (read_config_file): Do not initialize
23262 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
23263 NEWMENU->TIMEOUT.
23264 (grub_normal_execute): Use a data slot to store the menu.
23265
23266 * include/grub/normal.h (struct grub_menu): Removed default_entry,
23267 fallback_entry and timeout.
23268 (struct grub_menu_list): Removed.
23269 (grub_menu_list_t): Likewise.
23270 (struct grub_context): Likewise.
23271 (grub_context_t): Likewise.
23272 (grub_context_get): Likewise.
23273 (grub_context_get_current_menu): Likewise.
23274 (grub_context_push_menu): Likewise.
23275 (grub_context_pop_menu): Likewise.
23276 (grub_default_init): Likewise.
23277 (grub_default_fini): Likewise.
23278 (grub_timeout_init): Likewise.
23279 (grub_timeout_fini): Likewise.
23280
23281 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
23282 and timeout.mod.
23283 (normal_mod_SOURCES): Removed normal/context.c.
23284
23285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
23286 commands/default.c, commands/timeout.c and normal/context.c.
23287 (normal_mod_SOURCES): Removed normal/context.c.
23288
23289 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
23290 commands/timeout.c and normal/context.c.
23291 (normal_mod_SOURCES): Removed normal/context.c.
23292
23293 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
23294 commands/default.c, commands/timeout.c and normal/context.c.
23295 (normal_mod_SOURCES): Removed normal/context.c.
23296
23297 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
23298 timeout.mod.
23299 (default_mod_SOURCES): Removed.
23300 (default_mod_CFLAGS): Likewise.
23301 (default_mod_LDFLAGS): Likewise.
23302 (timeout_mod_SOURCES): Removed.
23303 (timeout_mod_CFLAGS): Likewise.
23304 (timeout_mod_LDFLAGS): Likewise.
23305
23306 * DISTLIST: Removed commands/default.c, commands/timeout.c and
23307 normal/context.c.
23308
23309 * commands/default.c: Removed.
23310 * commands/timeout.c: Likewise.
23311 * normal/context.c: Likewise.
23312
23313 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
23314
23315 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
23316
23317 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
23318
23319 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
23320 "next" to "prev" for readability.
23321 (struct grub_env_sorted_var): New struct.
23322 (grub_env_context): Renamed to ...
23323 (initial_context): ... this.
23324 (grub_env_var_context): Renamed to ...
23325 (current_context): ... this.
23326 (grub_env_find): Look only at CURRENT_CONTEXT.
23327 (grub_env_context_open): Rewritten to copy exported variables from
23328 previous context.
23329 (grub_env_context_close): Rewritten according to the new
23330 scheme. Also, add an assertion to prevent the initial context from
23331 removed.
23332 (grub_env_insert): Removed the code for the sorted list.
23333 (grub_env_remove): Likewise.
23334 (grub_env_export): Simply mark the variable with
23335 GRUB_ENV_VAR_GLOBAL.
23336 (grub_env_set): A cosmetic change for naming consistency.
23337 (grub_env_get): Likewise.
23338 (grub_env_unset): Likewise.
23339 (grub_env_iterate): Rewritten to sort variables within this
23340 function.
23341 (grub_register_variable_hook): Fixed for naming consistency. Call
23342 grub_env_find again, only if NAME is not found at the first time.
23343 (mangle_data_slot_name): New function.
23344 (grub_env_set_data_slot): Likewise.
23345 (grub_env_get_data_slot): Likewise.
23346 (grub_env_unset_data_slot): Likewise.
23347
23348 * include/grub/env.h (grub_env_var_type): New enum.
23349 (GRUB_ENV_VAR_LOCAL): New constant.
23350 (GRUB_ENV_VAR_GLOBAL): Likewise.
23351 (GRUB_ENV_VAR_DATA): Likewise.
23352 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
23353 "type".
23354 (grub_env_set): Replace VAR with NAME for consistency.
23355 (grub_register_variable_hook): Likewise.
23356 (grub_env_export): Specify the name of the argument.
23357 (grub_env_set_data_slot): New prototype.
23358 (grub_env_get_data_slot): Likewise.
23359 (grub_env_unset_data_slot): Likewise.
23360
23361 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23362
23363 Extend the loader so that GRUB can accept a loader which comes
23364 back to GRUB when a loaded image exits. Also, this change adds
23365 support for a chainloader on EFI.
23366
23367 * term/efi/console.c: Include grub/misc.h.
23368 (grub_console_checkkey): Display a scan code on the top for
23369 debugging. This will be removed once the EFI port gets stable.
23370 Correct the scan code mapping.
23371
23372 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
23373 allocate memory from larger regions, in order to reduce the number
23374 of allocated regions. Otherwise, the MacOSX loader panics.
23375 (filter_memory_map): Avoid less than 1MB for compatibility with
23376 other loaders.
23377 (add_memory_regions): Allocate from the tail of a region, if
23378 possible, to avoid allocating a region near to 1MB, for the MacOSX
23379 loader.
23380
23381 * kern/efi/init.c (grub_efi_set_prefix): Specify
23382 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
23383
23384 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
23385 argument IMAGE_HANDLE and specify it to get a loaded image.
23386 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
23387 grub_efi_get_loaded_image.
23388 (grub_efi_get_filename): Divide the length by the size of
23389 grub_efi_char16_t.
23390 (grub_efi_get_device_path): New function.
23391 (grub_efi_print_device_path): Print End Device Path nodes. Divide
23392 the length by the size of grub_efi_char16_t for a file path device
23393 path node.
23394
23395 * kern/loader.c (grub_loader_noreturn): New variable.
23396 (grub_loader_set): Accept a new argument NORETURN. Set
23397 GRUB_LOADER_NORETURN to NORETURN.
23398 All callers changed.
23399 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
23400 grub_machine_fini.
23401
23402 * include/grub/efi/efi.h (grub_efi_get_device_path): New
23403 prototype.
23404 (grub_efi_get_loaded_image): Take an argument to specify an image
23405 handle.
23406
23407 * include/grub/loader.h (grub_loader_set): Added one more argument
23408 NORETURN.
23409
23410 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
23411 instead of grub_efi_open_protocol.
23412 (grub_efidisk_get_device_name): Likewise.
23413 (grub_efidisk_close): Print a newline.
23414 (grub_efidisk_get_device_handle): Fixed to use
23415 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
23416 GRUB_EFI_DEVICE_PATH_TYPE.
23417
23418 * disk/efi/efidisk.c (device_path_guid): Moved to ...
23419 * kern/efi/efi.c (device_path_guid): ... here.
23420
23421 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
23422 chain.mod.
23423 (kernel_mod_HEADERS): Added efi/disk.h.
23424 (_chain_mod_SOURCES): New variable.
23425 (_chain_mod_CFLAGS): Likewise.
23426 (_chain_mod_LDFLAGS): Likewise.
23427 (chain_mod_SOURCES): Likewise.
23428 (chain_mod_CFLAGS): Likewise.
23429 (chain_mod_LDFLAGS): Likewise.
23430
23431 * DISTLIST: Added include/grub/efi/chainloader.h,
23432 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
23433
23434 * include/grub/efi/chainloader.h: New file.
23435 * loader/efi/chainloader.c: Likewise.
23436 * loader/efi/chainloader_normal.c: Likewise.
23437
23438 2006-04-30 Marco Gerards <marco@gnu.org>
23439
23440 * commands/configfile.c (grub_cmd_source): New function.
23441 (GRUB_MOD_INIT): Register the commands `source' and `.'.
23442 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
23443
23444 2006-04-30 Marco Gerards <marco@gnu.org>
23445
23446 * normal/execute.c (grub_script_execute_cmd): Change the return
23447 type to `grub_err_t'. Correctly return the error.
23448 (grub_script_execute_cmdline): In case a command line is not a
23449 command or a function, try to interpret it as an assignment.
23450
23451 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23452
23453 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
23454 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
23455 skip a node whose name is obviously invalid as UTF-16,
23456 i.e. contains a NUL character. Stop the iteration when the last
23457 directory entry is found. Instead of using the return value of
23458 grub_hfsplus_btree_iterate_node, store the value in RET and use
23459 it, because the iterator can be stopped by the last directory
23460 entry.
23461
23462 2006-04-30 Marco Gerards <marco@gnu.org>
23463
23464 * include/grub/env.h (grub_env_export): New prototype. Reported
23465 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
23466
23467 2006-04-30 Marco Gerards <marco@gnu.org>
23468
23469 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
23470 size of the extents in a catalog file record.
23471
23472 2006-04-29 Marco Gerards <marco@gnu.org>
23473
23474 * commands/configfile.c (grub_cmd_configfile): Execute the
23475 configfile within its own context.
23476
23477 * include/grub/env.h (grub_env_context_open): New prototype.
23478 (grub_env_context_close): Likewise.
23479
23480 * kern/env.c (grub_env): Removed.
23481 (grub_env_sorted): Likewise.
23482 (grub_env_context): New variable.
23483 (grub_env_var_context): Likewise.
23484 (grub_env_find): Search both the active context and the global
23485 context.
23486 (grub_env_context_open): New function.
23487 (grub_env_context_close): Likewise.
23488 (grub_env_insert): Likewise.
23489 (grub_env_remove): Likewise.
23490 (grub_env_export): Likewise.
23491 (grub_env_set): Changed to use helper functions to avoid code
23492 duplication.
23493 (grub_env_iterate): Rewritten so both the current context and the
23494 global context are being used.
23495
23496 * normal/command.c (export_command): New function.
23497 (grub_command_init): Register the `export' function.
23498
23499 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
23500
23501 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
23502 explicitly to suppress gcc's warnings.
23503 * fs/fat.c (grub_fat_find_dir): Likewise.
23504 (grub_fat_label): Likewise.
23505 * fs/xfs.c (grub_xfs_read_inode): Likewise.
23506 (grub_xfs_mount): Likewise.
23507 (grub_xfs_label): Likewise.
23508 * fs/affs.c (grub_affs_mount): Likewise.
23509 (grub_affs_label): Likewise.
23510 (grub_affs_iterate_dir): Likewise.
23511 * fs/sfs.c (grub_sfs_mount): Likewise.
23512 (grub_sfs_iterate_dir): Likewise.
23513 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
23514 * fs/hfs.c (grub_hfs_mount): Likewise.
23515 (grub_hfs_cmp_catkeys): Likewise.
23516 (grub_hfs_find_dir): Likewise.
23517 (grub_hfs_dir): Likewise.
23518 (grub_hfs_label): Likewise.
23519 * fs/jfs.c (grub_jfs_mount): Likewise.
23520 (grub_jfs_opendir): Likewise.
23521 (grub_jfs_getent): Likewise.
23522 (grub_jfs_lookup_symlink): Likewise.
23523 (grub_jfs_label): Likewise.
23524 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23525 (grub_hfsplus_iterate_dir): Likewise.
23526 (grub_hfsplus_btree_iterate_node): Made static.
23527
23528 * util/grub-emu.c (prefix): New variable.
23529 (grub_machine_set_prefix): New function.
23530 (main): Do not set the environment variable "prefix" here. Only
23531 set PREFIX, which is used later by grub_machine_set_prefix.
23532
23533 * include/grub/video.h: Do not include grub/symbol.h.
23534 (grub_video_register): Not exported. This symbol is not defined in
23535 the kernel.
23536 (grub_video_unregister): Likewise.
23537 (grub_video_iterate): Likewise.
23538 (grub_video_setup): Likewise.
23539 (grub_video_restore): Likewise.
23540 (grub_video_get_info): Likewise.
23541 (grub_video_get_blit_format): Likewise.
23542 (grub_video_set_palette): Likewise.
23543 (grub_video_get_palette): Likewise.
23544 (grub_video_set_viewport): Likewise.
23545 (grub_video_get_viewport): Likewise.
23546 (grub_video_map_color): Likewise.
23547 (grub_video_map_rgb): Likewise.
23548 (grub_video_map_rgba): Likewise.
23549 (grub_video_fill_rect): Likewise.
23550 (grub_video_blit_glyph): Likewise.
23551 (grub_video_blit_bitmap): Likewise.
23552 (grub_video_blit_render_target): Likewise.
23553 (grub_video_scroll): Likewise.
23554 (grub_video_swap_buffers): Likewise.
23555 (grub_video_create_render_target): Likewise.
23556 (grub_video_delete_render_target): Likewise.
23557 (grub_video_set_active_render_target): Likewise.
23558
23559 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23560 Undefined.
23561 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23562
23563 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23564 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23565 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23566 instead of $(srcdir)/genkernsyms.sh.
23567
23568 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23569 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23570 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23571 instead of $(srcdir)/genkernsyms.sh.
23572
23573 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23574 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23575 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23576 instead of $(srcdir)/genkernsyms.sh.
23577
23578 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23579 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23580 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23581 instead of $(srcdir)/genkernsyms.sh.
23582
23583 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23584 genkernsyms.sh.
23585
23586 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23587 genkernsyms.sh.
23588 (gensymlist.sh): New target.
23589 (genkernsyms.sh): Likewise.
23590
23591 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23592 genkernsyms.sh.in and gensymlist.sh.in.
23593
23594 * genkernsyms.sh: Removed.
23595 * gensymlist.sh: Likewise.
23596
23597 * genkernsyms.sh.in: New file.
23598 * gensymlist.sh.in: Likewise.
23599
23600 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23601
23602 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23603 clobber "prefix", since we may have already set it manually.
23604
23605 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23606
23607 * kern/misc.c (abort): New alias for grub_abort.
23608
23609 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23610
23611 A new machine-specific function "grub_machine_set_prefix" is
23612 defined. This is called after loading modules, so that a prefix
23613 initialization can use modules. Also, this change adds an
23614 intensive debugging feature for the memory manager via the
23615 configure option "--enable-mm-debug".
23616
23617 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23618 PART.LEN.
23619
23620 * kern/sparc64/ieee1275/init.c (abort): Removed.
23621 (grub_stop): Likewise.
23622 (grub_exit): New function.
23623 (grub_set_prefix): Renamed to ...
23624 (grub_machine_set_prefix): ... this.
23625 (grub_machine_init): Do not call grub_set_prefix.
23626
23627 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23628 (grub_machine_set_prefix): ... this.
23629 (grub_machine_init): Do not call grub_set_prefix.
23630
23631 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23632 (grub_machine_init): Do not set the prefix here.
23633
23634 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23635
23636 * kern/efi/init.c: Include grub/mm.h.
23637 (grub_efi_set_prefix): New function.
23638
23639 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23640 (grub_efi_get_filename): New function.
23641 (grub_print_device_path): Renamed to ...
23642 (grub_efi_print_device_path): ... this.
23643
23644 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23645 [MM_DEBUG] (grub_realloc): Likewise.
23646 [MM_DEBUG] (grub_free): Likewise.
23647 [MM_DEBUG] (grub_memalign): Likewise.
23648 [MM_DEBUG] (grub_mm_debug): New variable.
23649 [MM_DEBUG] (grub_debug_malloc): New function.
23650 [MM_DEBUG] (grub_debug_free): New function.
23651 [MM_DEBUG] (grub_debug_realloc): New function.
23652 [MM_DEBUG] (grub_debug_memalign): New function.
23653
23654 * kern/misc.c (grub_abort): Print a newline to distinguish
23655 the message.
23656
23657 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23658 grub_set_root_dev after loading modules. This is necessary when
23659 setting a prefix depends on modules.
23660
23661 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23662 (grub_efi_print_device_path): ... this.
23663 (grub_efi_get_filename): New prototype.
23664 (grub_efi_set_prefix): Likewise.
23665
23666 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23667 and grub/disk.h.
23668 (grub_efidisk_get_device_handle): New prototype.
23669 (grub_efidisk_get_device_name): Likewise.
23670
23671 * include/grub/mm.h: Include config.h.
23672 (MM_DEBUG): Removed.
23673 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23674 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23675 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23676 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23677 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23678 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23679 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23680 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23681 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23682
23683 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23684
23685 * disk/efi/efidisk.c: Include grub/partition.h.
23686 (iterate_child_devices): New function.
23687 (add_device): First, compare only last device path nodes, so that
23688 devices are sorted by the types.
23689 (grub_efidisk_get_device_handle): New function.
23690 (grub_efidisk_get_device_name): Likewise.
23691
23692 * configure.ac (--enable-mm-debug): New option to enable the
23693 memory manager debugging feature. This makes the binary much
23694 bigger, so is disabled by default.
23695
23696 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23697
23698 Use grub_abort instead of grub_stop, and grub_exit must be
23699 define in each architecture now. Also, this change adds support
23700 for EFI disks.
23701
23702 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23703 (grub_getkey): New function.
23704 (grub_term_get_current): Likewise.
23705
23706 * util/i386/pc/grub-setup.c: Include grub/term.h.
23707 (grub_getkey): New function.
23708 (grub_term_get_current): Likewise.
23709
23710 * util/misc.c (grub_stop): Renamed to ...
23711 (grub_exit): ... this.
23712
23713 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23714 (grub_exit): ... this.
23715 (grub_machine_init): Use grub_abort instead of abort.
23716 (grub_stop): Removed.
23717
23718 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23719 abort.
23720
23721 * kern/i386/pc/startup.S (grub_exit): New function.
23722 (cold_reboot): New label.
23723
23724 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23725 (grub_efi_init): Call grub_efidisk_init.
23726 (grub_efi_fini): Call grub_efidisk_fini.
23727
23728 * kern/efi/efi.c: Include grub/mm.h.
23729 (grub_efi_console_control_guid): Renamed to ...
23730 (console_control_guid): ... this.
23731 (grub_efi_loaded_image_guid): Renamed to ...
23732 (loaded_image_guid): ... this.
23733 (grub_efi_locate_handle): New function.
23734 (grub_efi_open_protocol): Likewise.
23735 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23736 GRUB_EFI_CONSOLE_CONTROL_GUID.
23737 (grub_efi_exit): Removed.
23738 (grub_stop): Likewise.
23739 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23740 (grub_exit): New function.
23741 (grub_print_device_path): Likewise.
23742
23743 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23744 (grub_enter_rescue_mode): Register "exit".
23745
23746 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23747 (grub_abort): New function.
23748
23749 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23750
23751 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23752
23753 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23754
23755 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23756 (grub_print_device_path): New prototype.
23757 (grub_efi_locate_handle): Likewise.
23758 (grub_efi_open_protocol): Likewise.
23759
23760 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23761 * disk/efi/efidisk.c: Likewise.
23762
23763 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23764
23765 * include/grub/efi/console_control.h
23766 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23767
23768 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23769 last 8 bytes as an array.
23770 (GRUB_EFI_DISK_IO_GUID): New macro.
23771 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23772 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23773 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23774 grub_uint8_t.
23775 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23776 (struct grub_efi_device_path): Rename the member "sub_type" to
23777 "subtype".
23778 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23779 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23780 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23781 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23782 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23783 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23784 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23785 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23786 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23787 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23788 (struct grub_efi_pci_device_path): New structure.
23789 (grub_efi_pci_device_path_t): New type.
23790 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23791 (struct grub_efi_pccard_device_path): New structure.
23792 (grub_efi_pccard_device_path_t): New type.
23793 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23794 (struct grub_efi_memory_mapped_device_path): New structure.
23795 (grub_efi_memory_mapped_device_path_t): New type.
23796 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23797 (struct grub_efi_vendor_device_path): New structure.
23798 (grub_efi_vendor_device_path_t): New type.
23799 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23800 (struct grub_efi_controller_device_path): New structure.
23801 (grub_efi_controller_device_path_t): New type.
23802 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23803 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23804 (struct grub_efi_acpi_device_path): New structure.
23805 (grub_efi_acpi_device_path_t): New type.
23806 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23807 (struct grub_efi_expanded_acpi_device_path): New structure.
23808 (grub_efi_expanded_acpi_device_path_t): New type.
23809 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23810 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23811 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23812 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23813 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23814 (struct grub_efi_atapi_device_path): New structure.
23815 (grub_efi_atapi_device_path_t): New type.
23816 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23817 (struct grub_efi_fibre_channel_device_path): New structure.
23818 (grub_efi_fibre_channel_device_path_t): New type.
23819 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23820 (struct grub_efi_1394_device_path): New structure.
23821 (grub_efi_1394_device_path_t): New type.
23822 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23823 (struct grub_efi_usb_device_path): New structure.
23824 (grub_efi_usb_device_path_t): New type.
23825 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23826 (struct grub_efi_usb_class_device_path): New structure.
23827 (grub_efi_usb_class_device_path_t): New type.
23828 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23829 (struct grub_efi_i2o_device_path): New structure.
23830 (grub_efi_i2o_device_path_t): New type.
23831 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23832 (struct grub_efi_mac_address_device_path): New structure.
23833 (grub_efi_mac_address_device_path_t): New type.
23834 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23835 (struct grub_efi_ipv4_device_path): New structure.
23836 (grub_efi_ipv4_device_path_t): New type.
23837 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23838 (struct grub_efi_ipv6_device_path): New structure.
23839 (grub_efi_ipv6_device_path_t): New type.
23840 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23841 (struct grub_efi_infiniband_device_path): New structure.
23842 (grub_efi_infiniband_device_path_t): New type.
23843 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23844 (struct grub_efi_uart_device_path): New structure.
23845 (grub_efi_uart_device_path_t): New type.
23846 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23847 (struct grub_efi_vendor_messaging_device_path): New structure.
23848 (grub_efi_vendor_messaging_device_path_t): New type.
23849 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23850 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23851 (struct grub_efi_hard_drive_device_path): New structure.
23852 (grub_efi_hard_drive_device_path_t): New type.
23853 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23854 (struct grub_efi_cdrom_device_path): New structure.
23855 (grub_efi_cdrom_device_path_t): New type.
23856 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23857 (struct grub_efi_vendor_media_device_path): New structure.
23858 (grub_efi_vendor_media_device_path_t): New type.
23859 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23860 (struct grub_efi_file_path_device_path): New structure.
23861 (grub_efi_file_path_device_path_t): New type.
23862 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23863 (struct grub_efi_protocol_device_path): New structure.
23864 (grub_efi_protocol_device_path_t): New type.
23865 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23866 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23867 (struct grub_efi_bios_device_path): New structure.
23868 (grub_efi_bios_device_path_t): New type.
23869 (struct grub_efi_disk_io): New structure.
23870 (grub_efi_disk_io_t): New type.
23871 (struct grub_efi_block_io_media): New structure.
23872 (grub_efi_block_io_media_t): New type.
23873 (struct grub_efi_block_io): New structure.
23874 (grub_efi_block_io_t): New type.
23875
23876 * include/grub/misc.h (grub_stop): Removed.
23877 (grub_exit): New prototype.
23878 (grub_abort): Likewise.
23879
23880 * include/grub/disk.h (enum grub_disk_dev_id): Added
23881 GRUB_DISK_DEVICE_EFIDISK_ID.
23882
23883 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23884 disk/efi/efidisk.c.
23885 (kernel_syms.lst): Remove the target if an error occurs.
23886
23887 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23888
23889 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23890 as it was simply too buggy.
23891
23892 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23893
23894 * kern/misc.c (grub_lltoa): New function.
23895 (grub_vsprintf): Added support for the long long suffix,
23896 i.e. "ll".
23897
23898 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23899
23900 * Makefile.in (LDFLAGS): Add variable.
23901 (LD): Remove variable.
23902 * configure.ac: Add -m32 to LDFLAGS.
23903 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23904 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23905 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23906 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23907 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23908 variables.
23909 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23910 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23911 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23912
23913 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23914
23915 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23916 length for unknown glyph.
23917
23918 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23919
23920 Add support for pre-loaded modules into the EFI port.
23921
23922 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23923 completely. Accept one more argument DIR. The caller has changed.
23924
23925 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23926
23927 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23928 (grub_efi_loaded_image_guid): New variable.
23929 (grub_efi_get_loaded_image): New function.
23930 (grub_arch_modules_addr): Likewise.
23931
23932 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23933 prototype.
23934
23935 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23936 (struct grub_efi_loaded_image): New structure.
23937 (grub_efi_loaded_image_t): New type.
23938
23939 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23940
23941 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23942 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23943 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23944
23945 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23946
23947 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23948
23949 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23950
23951 * DISTLIST: Added include/grub/efi/console.h,
23952 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23953 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23954
23955 * include/grub/efi/console.h: New file.
23956 * include/grub/efi/time.h: Likewise.
23957 * include/grub/i386/efi/kernel.h: Likewise.
23958 * kern/efi/init.c: Likewise.
23959 * kern/efi/mm.c: Likewise.
23960 * term/efi/console.c: Likewise.
23961
23962 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23963 (grub_stop): Removed.
23964 (grub_get_rtc): Likewise.
23965 (grub_machine_init): Simply call grub_efi_init.
23966 (grub_machine_fini): Call grub_efi_fini.
23967
23968 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23969 (grub_efi_output_string): Removed.
23970 (grub_efi_stall): New function.
23971 (grub_stop): Likewise.
23972 (grub_get_rtc): Likewise.
23973
23974 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23975 (grub_efi_stall): New prototype.
23976 (grub_efi_allocate_pages): Likewise.
23977 (grub_efi_free_pages): Likewise.
23978 (grub_efi_get_memory_map): Likewise.
23979 (grub_efi_mm_init): Likewise.
23980 (grub_efi_mm_fini): Likewise.
23981 (grub_efi_init): Likewise.
23982 (grub_efi_fini): Likewise.
23983
23984 * include/grub/i386/efi/time.h: Do not include
23985 grub/symbol.h. Include grub/efi/time.h.
23986 (GRUB_TICKS_PER_SECOND): Removed.
23987 (grub_get_rtc): Likewise.
23988
23989 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23990 Added padding. The EFI spec is buggy.
23991 (GRUB_EFI_BLACK): New macro.
23992 (GRUB_EFI_BLUE): Likewise.
23993 (GRUB_EFI_GREEN): Likewise.
23994 (GRUB_EFI_CYAN): Likewise.
23995 (GRUB_EFI_RED): Likewise.
23996 (GRUB_EFI_MAGENTA): Likewise.
23997 (GRUB_EFI_BROWN): Likewise.
23998 (GRUB_EFI_LIGHTGRAY): Likewise.
23999 (GRUB_EFI_BRIGHT): Likewise.
24000 (GRUB_EFI_DARKGRAY): Likewise.
24001 (GRUB_EFI_LIGHTBLUE): Likewise.
24002 (GRUB_EFI_LIGHTGREEN): Likewise.
24003 (GRUB_EFI_LIGHTCYAN): Likewise.
24004 (GRUB_EFI_LIGHTRED): Likewise.
24005 (GRUB_EFI_LIGHTMAGENTA): Likewise.
24006 (GRUB_EFI_YELLOW): Likewise.
24007 (GRUB_EFI_WHITE): Likewise.
24008 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
24009 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
24010 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
24011 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
24012 (GRUB_EFI_BACKGROUND_RED): Likewise.
24013 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
24014 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
24015 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
24016 (GRUB_EFI_TEXT_ATTR): Likewise.
24017
24018 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
24019 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
24020 (kernel_mod_HEADERS): Added efi/time.h.
24021
24022 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
24023
24024 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
24025 include/grub/efi/api.h, include/grub/efi/console_control.h,
24026 include/grub/efi/efi.h, include/grub/efi/pe32.h,
24027 include/grub/i386/efi/time.h, kern/efi/efi.c,
24028 kern/i386/efi/init.c, kern/i386/efi/startup.S,
24029 and util/i386/efi/grub-mkimage.c.
24030
24031 * Makefile.in (RMKFILES): Added i386-efi.rmk.
24032
24033 * genmk.rb (PModule#rule): Do not export symbols if
24034 #{prefix}_EXPORTS is set to "no".
24035
24036 * conf/i386-efi.mk: New file.
24037 * conf/i386-efi.rmk: Likewise.
24038 * include/grub/efi/api.h: Likewise.
24039 * include/grub/efi/console_control.h: Likewise.
24040 * include/grub/efi/efi.h: Likewise.
24041 * include/grub/efi/pe32.h: Likewise.
24042 * include/grub/i386/efi/time.h: Likewise.
24043 * kern/efi/efi.c: Likewise.
24044 * kern/i386/efi/init.c: Likewise.
24045 * kern/i386/efi/startup.S: Likewise.
24046 * util/i386/efi/grub-mkimage.c: Likewise.
24047
24048 2006-04-17 Marco Gerards <marco@gnu.org>
24049
24050 * include/grub/script.h: Include <grub/parser.h> and
24051 "grub_script.tab.h".
24052 (struct grub_lexer_param): New struct.
24053 (struct grub_parser_param): Likewise.
24054 (grub_script_create_arglist): Pass the state in an argument.
24055 (grub_script_add_arglist): Likewise.
24056 (grub_script_create_cmdline): Likewise.
24057 (grub_script_create_cmdblock): Likewise.
24058 (grub_script_create_cmdif): Likewise.
24059 (grub_script_create_cmdmenu): Likewise.
24060 (grub_script_add_cmd): Likewise.
24061 (grub_script_arg_add): Likewise.
24062 (grub_script_lexer_ref): Likewise.
24063 (grub_script_lexer_deref): Likewise.
24064 (grub_script_lexer_record_start): Likewise.
24065 (grub_script_lexer_record_stop): Likewise.
24066 (grub_script_mem_record): Likewise.
24067 (grub_script_mem_record_stop): Likewise.
24068 (grub_script_malloc): Likewise.
24069 (grub_script_yylex): Likewise.
24070 (grub_script_yyparse): Likewise.
24071 (grub_script_yyerror): Likewise.
24072 (grub_script_yylex): Likewise.
24073 (grub_script_lexer_init): Return the state.
24074
24075 * normal/lexer.c (grub_script_lexer_state): Removed variable.
24076 (grub_script_lexer_done): Likewise.
24077 (grub_script_lexer_getline): Likewise.
24078 (grub_script_lexer_refs): Likewise.
24079 (script): Likewise.
24080 (newscript): Likewise.
24081 (record): Likewise.
24082 (recording): Likewise.
24083 (recordpos): Likewise.
24084 (recordlen): Likewise.
24085 (grub_script_lexer_init): Return the state instead of setting
24086 global variables.
24087 (grub_script_lexer_ref): Use the newly added argument for state
24088 instead of globals.
24089 (grub_script_lexer_deref): Likewise.
24090 (grub_script_lexer_record_start): Likewise.
24091 (grub_script_lexer_record_stop): Likewise.
24092 (recordchar): Likewise.
24093 (nextchar): Likewise.
24094 (grub_script_yylex2): Likewise.
24095 (grub_script_yylex): Likewise.
24096 (grub_script_yyerror): Likewise.
24097
24098 * normal/parser.y (func_mem): Removed variable.
24099 (menu_entry): Likewise.
24100 (err): Likewise.
24101 (%lex-param): New parser option.
24102 (%parse-param): Likewise.
24103 (script): Always return the AST.
24104 (argument): Pass the state around.
24105 (arguments): Likewise.
24106 (grubcmd): Likewise.
24107 (commands): Likewise.
24108 (function): Likewise.
24109 (menuentry): Likewise.
24110 (if_statement): Likewise.
24111 (if): Likewise.
24112
24113 * normal/script.c (grub_script_memused): Removed variable.
24114 (grub_script_parsed): Likewise.
24115 (grub_script_malloc): Added a state argument. Use that instead of
24116 global variables.
24117 (grub_script_mem_record): Likewise.
24118 (grub_script_mem_record_stop): Likewise.
24119 (grub_script_arg_add): Likewise.
24120 (grub_script_add_arglist): Likewise.
24121 (grub_script_create_cmdline): Likewise.
24122 (grub_script_create_cmdif): Likewise.
24123 (grub_script_create_cmdmenu): Likewise.
24124 (grub_script_add_cmd): Likewise.
24125 (grub_script_parse): Setup the state before calling the parser.
24126
24127 2006-04-16 Marco Gerards <marco@gnu.org>
24128
24129 * normal/command.c (grub_command_init): Remove the title command.
24130
24131 * normal/lexer.c (grub_script_yylex): Renamed from this...
24132 (grub_script_yylex2): ... to this.
24133 (grub_script_yylex): New function. Temporary
24134 introduced to filter some tokens.
24135 (grub_script_yyerror): Print a newline.
24136
24137 * normal/main.c (read_config_file): Output information about the
24138 lines that contain errors. Wait for a key after all lines have
24139 been processed. Don't return an empty menu.
24140
24141 * normal/parser.y (func_mem): Don't initialize.
24142 (menu_entry): Likewise.
24143 (err): New variable.
24144 (script): Don't return anything when an error was encountered.
24145 (ws, returns): Removed rules.
24146 (argument): Disabled concatenated variable support.
24147 (arguments): Remove explicit separators.
24148 (grubcmd): Likewise.
24149 (function): Likewise.
24150 (menuentry): Likewise.
24151 (if): Likewise.
24152 (commands): Likewise. Add error handling.
24153
24154 * normal/script.c (grub_script_create_cmdline): If
24155 `grub_script_parsed' is 0, assume the parser encountered an error.
24156
24157 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
24158
24159 * configure.ac: Add support for EFI. Fix the typo
24160 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
24161
24162 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24163
24164 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
24165 foreign multibyte characters should be shown correctly.
24166
24167 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24168
24169 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
24170 calculation.
24171 (read_config_file): Made it to close file before returning.
24172
24173 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
24174
24175 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
24176 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
24177 video/i386/pc/vbefill.c.
24178
24179 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
24180 video/i386/pc/vbefill.c.
24181
24182 * include/grub/video.h (grub_video_blit_format): New enum.
24183 (grub_video_mode_info): Added new member blit_format.
24184 (grub_video_get_blit_format): New function prototype.
24185
24186 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
24187 function prototype.
24188 (grub_video_vbe_map_rgb): Likewise.
24189 (grub_video_vbe_unmap_color): Likewise.
24190
24191 * include/grub/i386/pc/vbeblit.h: New file.
24192
24193 * include/grub/i386/pc/vbefill.h: New file.
24194
24195 * video/video.c (grub_video_get_blit_format): New function.
24196 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
24197 (grub_video_vbe_map_rgb): Likewise.
24198 (grub_video_vbe_unmap_color): Likewise.
24199
24200 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
24201 optimized fills.
24202 (grub_video_vbe_blit_render_target): Changed to use more optimized
24203 blits.
24204 (grub_video_vbe_setup): Added detection for optimized settings.
24205 (grub_video_vbe_create_render_target): Likewise.
24206
24207 * video/i386/pc/vbeblit.c: New file.
24208
24209 * video/i386/pc/vbefill.c: New file.
24210
24211 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
24212
24213 * font/manager.c (grub_font_get_glyph): Removed font fixup from
24214 here...
24215
24216 * util/unifont2pff.rb: ... and moved it to here. Improved argument
24217 parsing to support both hex and dec ranges. If filename was missing
24218 show usage information.
24219
24220 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
24221
24222 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
24223 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
24224
24225 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
24226 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
24227 (video_mod_SOURCES): Added.
24228 (video_mod_CFLAGS): Likewise.
24229 (video_mod_LDFLAGS): Likewise.
24230 (gfxterm_mod_SOURCES): Likewise.
24231 (gfxterm_mod_CFLAGS): Likewise.
24232 (gfxterm_mod_LDFLAGS): Likewise.
24233 (videotest_mod_SOURCES): Likewise.
24234 (videotest_mod_CFLAGS): Likewise.
24235 (videotest_mod_LDFLAGS): Likewise.
24236 (vesafb_mod_SOURCES): Removed.
24237 (vesafb_mod_CFLAGS): Likewise.
24238 (vesafb_mod_LDFLAGS): Likewise.
24239 (vga_mod_SOURCES): Likewise.
24240 (vga_mod_CFLAGS): Likewise.
24241 (vga_mod_LDFLAGS): Likewise.
24242
24243 * commands/videotest.c: New file.
24244
24245 * font/manager.c (fill_with_default_glyph): Modified to use
24246 grub_font_glyph.
24247 (grub_font_get_glyph): Likewise.
24248 (fontmanager): Renamed from this...
24249 (font_manager): ... to this.
24250
24251 * include/grub/font.h (grub_font_glyph): Added new structure.
24252 (grub_font_get_glyph): Modified to use grub_font_glyph.
24253
24254 * include/grub/misc.h (grub_abs): Added as inline function.
24255
24256 * include/grub/video.h: New file.
24257
24258 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
24259 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
24260 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
24261 (grub_vbe_get_controller_info): Renamed from this...
24262 (grub_vbe_bios_get_controller_info): ... to this.
24263 (grub_vbe_get_mode_info): Renamed from this...
24264 (grub_vbe_bios_get_mode_info): ... to this.
24265 (grub_vbe_set_mode): Renamed from this...
24266 (grub_vbe_bios_set_mode): ... to this.
24267 (grub_vbe_get_mode): Renamed from this...
24268 (grub_vbe_bios_get_mode): ... to this.
24269 (grub_vbe_set_memory_window): Renamed from this...
24270 (grub_vbe_bios_set_memory_window): ... to this.
24271 (grub_vbe_get_memory_window): Renamed from this...
24272 (grub_vbe_bios_get_memory_window): ... to this.
24273 (grub_vbe_set_scanline_length): Renamed from this...
24274 (grub_vbe_set_scanline_length): ... to this.
24275 (grub_vbe_get_scanline_length): Renamed from this...
24276 (grub_vbe_bios_get_scanline_length): ... to this.
24277 (grub_vbe_set_display_start): Renamed from this...
24278 (grub_vbe_bios_set_display_start): ... to this.
24279 (grub_vbe_get_display_start): Renamed from this...
24280 (grub_vbe_bios_get_display_start): ... to this.
24281 (grub_vbe_set_palette_data): Renamed from this...
24282 (grub_vbe_bios_set_palette_data): ... to this.
24283 (grub_vbe_set_pixel_rgb): Removed.
24284 (grub_vbe_set_pixel_index): Likewise.
24285
24286 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
24287 from this...
24288 (grub_vbe_bios_get_controller_info): ... to this.
24289 (grub_vbe_get_mode_info): Renamed from this...
24290 (grub_vbe_bios_get_mode_info): ... to this.
24291 (grub_vbe_set_mode): Renamed from this...
24292 (grub_vbe_bios_set_mode): ... to this.
24293 (grub_vbe_get_mode): Renamed from this...
24294 (grub_vbe_bios_get_mode): ... to this.
24295 (grub_vbe_set_memory_window): Renamed from this...
24296 (grub_vbe_bios_set_memory_window): ... to this.
24297 (grub_vbe_get_memory_window): Renamed from this...
24298 (grub_vbe_bios_get_memory_window): ... to this.
24299 (grub_vbe_set_scanline_length): Renamed from this...
24300 (grub_vbe_set_scanline_length): ... to this.
24301 (grub_vbe_get_scanline_length): Renamed from this...
24302 (grub_vbe_bios_get_scanline_length): ... to this.
24303 (grub_vbe_set_display_start): Renamed from this...
24304 (grub_vbe_bios_set_display_start): ... to this.
24305 (grub_vbe_get_display_start): Renamed from this...
24306 (grub_vbe_bios_get_display_start): ... to this.
24307 (grub_vbe_set_palette_data): Renamed from this...
24308 (grub_vbe_bios_set_palette_data): ... to this.
24309 (grub_vbe_bios_get_controller_info): Fixed problem with registers
24310 getting corrupted after calling it. Added more pushes and pops.
24311 (grub_vbe_bios_set_mode): Likewise.
24312 (grub_vbe_bios_get_mode): Likewise.
24313 (grub_vbe_bios_get_memory_window): Likewise.
24314 (grub_vbe_bios_set_scanline_length): Likewise.
24315 (grub_vbe_bios_get_scanline_length): Likewise.
24316 (grub_vbe_bios_get_display_start): Likewise.
24317 (grub_vbe_bios_set_palette_data): Likewise.
24318
24319 * normal/cmdline.c (cl_set_pos): Refresh the screen.
24320 (cl_insert): Likewise.
24321 (cl_delete): Likewise.
24322
24323 * term/gfxterm.c: New file.
24324
24325 * term/i386/pc/vesafb.c: Removed file.
24326
24327 * video/video.c: New file.
24328
24329 * video/i386/pc/vbe.c (real2pm): Added new function.
24330 (grub_video_vbe_draw_pixel): Likewise.
24331 (grub_video_vbe_get_video_ptr): Likewise.
24332 (grub_video_vbe_get_pixel): Likewise
24333 (grub_video_vbe_init): Likewise.
24334 (grub_video_vbe_fini): Likewise.
24335 (grub_video_vbe_setup): Likewise.
24336 (grub_video_vbe_get_info): Likewise.
24337 (grub_video_vbe_set_palette): Likewise.
24338 (grub_video_vbe_get_palette): Likewise.
24339 (grub_video_vbe_set_viewport): Likewise.
24340 (grub_video_vbe_get_viewport): Likewise.
24341 (grub_video_vbe_map_color): Likewise.
24342 (grub_video_vbe_map_rgb): Likewise.
24343 (grub_video_vbe_map_rgba): Likewise.
24344 (grub_video_vbe_unmap_color): Likewise.
24345 (grub_video_vbe_fill_rect): Likewise.
24346 (grub_video_vbe_blit_glyph): Likewise.
24347 (grub_video_vbe_blit_bitmap): Likewise.
24348 (grub_video_vbe_blit_render_target): Likewise.
24349 (grub_video_vbe_scroll): Likewise.
24350 (grub_video_vbe_swap_buffers): Likewise.
24351 (grub_video_vbe_create_render_target): Likewise.
24352 (grub_video_vbe_delete_render_target): Likewise.
24353 (grub_video_vbe_set_active_render_target): Likewise.
24354 (grub_vbe_set_pixel_rgb): Remove function.
24355 (grub_vbe_set_pixel_index): Likewise.
24356 (index_color_mode): Remove static variable.
24357 (active_mode): Likewise.
24358 (framebuffer): Likewise.
24359 (bytes_per_scan_line): Likewise.
24360 (grub_video_vbe_adapter): Added new static variable.
24361 (framebuffer): Likewise.
24362 (render_target): Likewise.
24363 (initial_mode): Likewise.
24364 (mode_in_use): Likewise.
24365 (mode_list): Likewise.
24366
24367 2006-03-10 Marco Gerards <marco@gnu.org>
24368
24369 * configure.ac (AC_INIT): Bumped to 1.93.
24370
24371 * DISTLIST: Added `include/grub/hfs.h'.
24372
24373 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
24374
24375 * boot/i386/pc/boot.S (general_error): Before looping, try INT
24376 18H, which might help the BIOS falling back to next boot media.
24377
24378 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
24379
24380 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
24381 Poe Chen <poe.poechen@gmail.com>.
24382
24383 2006-01-17 Marco Gerards <marco@gnu.org>
24384
24385 * include/grub/normal.h: Include <grub/script.h>.
24386 (grub_command_list): Removed struct.
24387 (grub_command_list_t): Removed type.
24388 (grub_menu_entry): Remove members `num' and `command_list'. Add
24389 members `commands' and `sourcecode'.
24390 * include/grub/script.h: Add inclusion guards.
24391 (grub_script_cmd_menuentry): New struct.
24392 (grub_script_execute_menuentry): New prototype.
24393 (grub_script_lexer_record_start): Likewise.
24394 (grub_script_lexer_record_stop): Likewise.
24395 * normal/execute.c (grub_script_execute_menuentry): New function.
24396 * normal/lexer.c (record, recording, recordpos, recordlen): New
24397 variables.
24398 (grub_script_lexer_record_start): New function.
24399 (grub_script_lexer_record_stop): Likewise.
24400 (recordchar): Likewise.
24401 (nextchar): Likewise.
24402 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
24403 2048 as the buffer size. Add the tokens `menuentry' and `@'.
24404 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
24405 (current_menu): New variable.
24406 (free_menu): Mainly rewritten.
24407 (grub_normal_menu_addentry): New function.
24408 (read_config_file): Rewritten.
24409 * normal/menu.c (run_menu_entry): Mainly rewritten.
24410 * normal/menu_entry.c (make_screen): Rewritten the code to insert
24411 the menu entry.
24412 (run): Mainly rewritten.
24413 * normal/parser.y (menu_entry): New variable.
24414 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
24415 (menuentry): New rule.
24416 (command): Add `menuentry'.
24417 (if_statement): Allow additional returns before `fi'.
24418 * normal/script.c (grub_script_create_cmdmenu): New function.
24419
24420 2006-01-03 Marco Gerards <marco@gnu.org>
24421
24422 * INSTALL: GNU Bison is required.
24423 * configure.ac: Rewritten the test to detect Bison.
24424 * Makefile.in (YACC): New variable. Reported by Xun Sun
24425 <xun.sun.cn@gmail.com>.
24426
24427 2006-01-03 Marco Gerards <marco@gnu.org>
24428
24429 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
24430 the HFS+ filesystem to filesystem blocks.
24431 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
24432 GCC warning is silenced.
24433
24434 2006-01-03 Marco Gerards <marco@gnu.org>
24435
24436 * partmap/apple.c (apple_partition_map_iterate): Convert the data
24437 read from disk from big endian to host byte order.
24438
24439 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
24440
24441 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
24442 documentation.
24443 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
24444 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
24445 embedded HFS+ filesystem.
24446 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
24447 (grub_hfs_sblock): Move from here...
24448 * include/grub/hfs.h: To here... New file.
24449 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
24450 documentation.
24451 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
24452 New macros.
24453 (grub_hfsplus_volheader): Change type of member `magic' to
24454 `grub_uint16_t'.
24455 (grub_hfsplus_data): Add new member `embedded_offset'.
24456 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
24457 returned block.
24458 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
24459 Calculate the offset.
24460
24461 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24462
24463 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
24464 Removed.
24465 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
24466
24467 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24468
24469 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
24470 ENV->NAME is NULL after allocating ENV->VALUE.
24471
24472 2005-12-25 Marco Gerards <marco@gnu.org>
24473
24474 * kern/env.c (grub_env_set): Rewritten the error handling code.
24475
24476 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24477
24478 * geninit.sh: Made more robust, and more portable.
24479
24480 2005-12-25 Marco Gerards <marco@gnu.org>
24481
24482 Add support for Apple HFS+ filesystems.
24483
24484 * fs/hfsplus.c: New file.
24485
24486 * DISTLIST: Added `fs/hfsplus.c'.
24487
24488 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
24489 (hfsplus_mod_SOURCES): New variable.
24490 (hfsplus_mod_CFLAGS): Likewise.
24491 (hfsplus_mod_LDFLAGS): Likewise.
24492 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
24493 (grub_setup_SOURCES): Likewise.
24494 (grub_mkdevicemap_SOURCES): Likewise.
24495 (grub_emu_SOURCES): Likewise.
24496 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24497
24498 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
24499
24500 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
24501
24502 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24503
24504 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
24505 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
24506 include/grub/parser.h, include/grub/script.h, kern/parser.c,
24507 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
24508 normal/lexer.c, normal/parser.y, normal/script.c, and
24509 partmap/gpt.c.
24510 Removed kern/sparc64/cache.c.
24511
24512 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
24513 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
24514 grub_emu_init.c.
24515
24516 * configure.ac (AC_INIT): Bumped to 1.92.
24517
24518 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24519
24520 * kern/err.c (grub_error_push): Added new function to support error
24521 stacks.
24522 (grub_error_pop): Likewise.
24523 (grub_error_stack_items): New local variable to support error stacks.
24524 (grub_error_stack_pos): Likewise.
24525 (grub_error_stack_assert): Likewise.
24526 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24527 stack depth.
24528 (grub_print_error): Added support to print errors from error stack.
24529
24530 * include/grub/err.h (grub_error_push): Added function prototype.
24531 (grub_error_pop): Likewise.
24532
24533 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24534
24535 * configure.ac: Accept `powerpc64' as host_cpu.
24536 (amd64): Rename to `biarch32'.
24537
24538 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24539 non-cacheline-aligned addresses.
24540
24541 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24542 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24543 if `size' is non-zero.
24544
24545 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
24546
24547 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24548 and `cd' to make sure the filename is not prefixed with a
24549 directory name.
24550 (pkgdata_MODULES): Add `gpt.mod'.
24551 (gpt_mod_SOURCES): New variable.
24552 (gpt_mod_CFLAGS): Likewise.
24553 (gpt_mod_LDFLAGS): Likewise.
24554
24555 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24556
24557 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24558 New macro.
24559
24560 * partmap/gpt.c: New file.
24561
24562 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24563 GPT partition map is detected.
24564
24565 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24566
24567 * commands/i386/pc/play.c: New file.
24568 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24569 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24570 macros.
24571
24572 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
24573
24574 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24575 ((unused))' to silence gcc warning.
24576
24577 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24578
24579 * configure.ac: Correct `AC_PROG_YACC' test.
24580
24581 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24582
24583 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24584 check before installing files.
24585
24586 2005-11-22 Mike Small <smallm@panix.com>
24587
24588 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24589 number regex so multidigit numbers are recognized correctly.
24590
24591 2005-11-22 Mike Small <smallm@panix.com>
24592
24593 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24594 debugging message before attempting to claim memory.
24595 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24596 multiple addresses in case of failure.
24597
24598 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24599
24600 * term/tparm.c (get_space): Remove empty `if' statement.
24601
24602 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24603
24604 * kern/parser.c (check_varstate): Rename `state' to 's'.
24605
24606 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24607
24608 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24609 variable definitions to the beginning of each function. Sort stack
24610 variables by size.
24611 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24612 `buf' argument to `char *'.
24613
24614 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24615
24616 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24617 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24618 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24619 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24620 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24621 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24622 configfile.mod, search.mod, gzio.mod and test.mod.
24623 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24624 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24625 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24626 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24627 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24628 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24629 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24630 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24631 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24632 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24633 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24634 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24635 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24636 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24637 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24638 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24639 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24640 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24641 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24642 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24643 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24644 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24645 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24646
24647 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24648 `grep --include'.
24649 (pkgdata_MODULES): Add test.mod.
24650
24651 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24652
24653 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24654 appending to variables with "+=".
24655 (PModule): Use full pathname to generate *.lst filenames.
24656
24657 * Makefile.in: Fixed list rules moved from genmk.rb.
24658 (.DELETE_ON_ERROR): New special target.
24659 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24660
24661 * conf/i386-pc.rmk: Include conf/common.mk.
24662 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24663 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24664 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24665 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24666 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24667 configfile.mod, search.mod, gzio.mod and test.mod.
24668 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24669 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24670 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24671 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24672 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24673 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24674 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24675 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24676 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24677 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24678 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24679 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24680 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24681 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24682 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24683 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24684 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24685 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24686 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24687 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24688 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24689 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24690 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24691 here...
24692 * conf/common.rmk: ... to here. New file.
24693
24694 * conf/common.mk: New file.
24695
24696 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24697
24698 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24699 (grub_script.tab.c): ... here.
24700
24701 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24702 (grub_script.tab.c): ... here.
24703
24704 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24705 (grub_script.tab.c): ... here.
24706
24707 * normal/command.c (grub_command_find): Fixed a memory leak of
24708 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24709
24710 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24711
24712 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24713 "@" which marks the start of a comment on ARM.
24714 (VARIABLE): Likewise.
24715
24716 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24717
24718 Add support for Linux/ADFS partition tables.
24719
24720 * partmap/acorn.c: New file.
24721
24722 * include/grub/acorn_filecore.h: Likewise.
24723
24724 * DISTLIST: Added `partmap/acorn.c' and
24725 `include/grub/acorn_filecore.h'.
24726
24727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24728 `partmap/acorn.c'.
24729 (pkgdata_MODULES): Add `acorn.mod'.
24730 (acorn_mod_SOURCES): New variable.
24731 (acorn_mod_CFLAGS): Likewise.
24732
24733 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24734 `partmap/acorn.c'.
24735 (pkgdata_MODULES): Add `acorn.mod'.
24736 (acorn_mod_SOURCES): New variable.
24737 (acorn_mod_CFLAGS): Likewise.
24738
24739 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24740 (pkgdata_MODULES): Add `acorn.mod'.
24741 (acorn_mod_SOURCES): New variable.
24742 (acorn_mod_CFLAGS): Likewise.
24743 (acorn_mod_LDFLAGS): Likewise.
24744
24745 * include/types.h (grub_disk_addr_t): New typedef.
24746
24747 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24748
24749 * geninit.sh: New file.
24750
24751 * geninitheader.sh: Likewise.
24752
24753 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24754 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24755 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24756 * commands/configfile.c (grub_configfile_init)
24757 (grub_configfile_fini): Likewise.
24758 * commands/default.c (grub_default_init, grub_default_fini):
24759 Likewise.
24760 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24761 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24762 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24763 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24764 Likewise.
24765 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24766 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24767 Likewise.
24768 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24769 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24770 Likewise.
24771 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24772 Likewise.
24773 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24774 Likewise.
24775 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24776 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24777 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24778 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24779 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24780 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24781 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24782 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24783 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24784 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24785 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24786 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24787 * partmap/amiga.c (grub_amiga_partition_map_init)
24788 (grub_amiga_partition_map_fini): Likewise.
24789 * partmap/apple.c (grub_apple_partition_map_init)
24790 (grub_apple_partition_map_fini): Likewise.
24791 * partmap/pc.c (grub_pc_partition_map_init)
24792 (grub_pc_partition_map_fini): Likewise.
24793 * partmap/sun.c (grub_sun_partition_map_init,
24794 grub_sun_partition_map_fini): Likewise.
24795 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24796 Likewise.
24797
24798 * util/grub-emu.c: Include <grub_modules_init.h>.
24799 (main): Don't initialize and de-initialize any modules directly,
24800 use `grub_init_all' and `grub_fini_all' instead.
24801
24802 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24803 `grub_vesafb_mod_init'.
24804 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24805 all users.
24806 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24807 `grub_vga_mod_init'. Updated all users.
24808 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24809
24810 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24811 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24812 rules.
24813
24814 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24815 Generate a function to initialize the module in utilities.
24816 Updated all callers.
24817 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24818 initialize the module in utilities. Updated all callers.
24819
24820 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24821
24822 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24823 escape sequence and a literal ^L to clear the screen.
24824
24825 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24826 when returning from Open Firmware.
24827
24828 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24829
24830 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24831 (grub_ofconsole_height): Likewise.
24832 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24833 manually insert a '\n'.
24834 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24835 `grub_ofconsole_height'. Return early if these are already set.
24836
24837 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24838
24839 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24840 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24841 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24842 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24843 and `normal/script.c'.
24844 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24845 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24846 (test_mod_SOURCES): New variable.
24847 (test_mod_CFLAGS): Likewise.
24848 (test_mod_LDFLAGS): Likewise.
24849 (pkgdata_MODULES): Add `test.mod'.
24850 (grub_script.tab.c): New rule.
24851 (grub_script.tab.h): Likewise.
24852
24853 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24854
24855 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24856 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24857 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24858 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24859 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24860 (test_mod_SOURCES): New variable.
24861 (test_mod_CFLAGS): Likewise.
24862 (pkgdata_MODULES): Add `test.mod'.
24863 (grub_script.tab.c): New rule.
24864 (grub_script.tab.h): Likewise.
24865
24866 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24867
24868 Add initial scripting support.
24869
24870 * commands/test.c: New file.
24871 * include/grub/script.h: Likewise.
24872 * normal/execute.c: Likewise.
24873 * normal/function.c: Likewise.
24874 * normal/lexer.c: Likewise.
24875 * normal/parser.y: Likewise.
24876 * normal/script.c: Likewise.
24877
24878 * configure.ac: Add `AC_PROG_YACC' test.
24879
24880 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24881 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24882 `normal/function.c' and `normal/script.c'.
24883 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24884 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24885 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24886 variables.
24887 (pkgdata_MODULES): Add `test.mod'.
24888 (grub_script.tab.c): New rule.
24889 (grub_script.tab.h): Likewise.
24890
24891 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24892
24893 * include/grub/normal.h (grub_test_init): New prototype.
24894 (grub_test_fini): Likewise.
24895
24896 * normal/command.c: Include <grub/script.h>.
24897 (grub_command_execute): Rewritten.
24898
24899 * util/grub-emu.c (main): Call `grub_test_init' and
24900 `grub_test_fini'.
24901
24902 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24903
24904 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24905 to 0.
24906 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24907 there are no pending characters.
24908
24909 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24910
24911 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24912 `grub_strndup' to drop device arguments. Replace unnecessary
24913 `grub_strndup' with `grub_strdup'.
24914
24915 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24916
24917 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24918 `debug' environment variable has been set.
24919
24920 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24921
24922 * Makefile.in (install-local): Use $(DATA).
24923 (uninstall): Likewise.
24924 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24925 (sbin_UTILITIES): ... to here.
24926 (sbin_SCRIPTS): New variable.
24927 (grub_install_SOURCES): New variable.
24928 * util/powerpc/ieee1275/grub-install.in: New file.
24929 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24930 variable.
24931 (add_segments): Call `grub_util_get_path'.
24932
24933 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24934
24935 From Timothy Baldwin:
24936 * commands/ls.c (grub_ls_list_files): Close FILE with
24937 grub_file_close.
24938 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24939
24940 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24941
24942 * include/grub/parser.h: New file.
24943
24944 * kern/parser.c: Likewise.
24945
24946 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24947 (grub_setup_SOURCES): Likewise.
24948 (grub_probefs_SOURCES): Likewise.
24949 (grub_emu_SOURCES): Likewise.
24950 (kernel_img_HEADERS): Add `parser.h'.
24951
24952 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24953 (grub_emu_SOURCES): Add `kern/parser.c'.
24954 (grubof_SOURCES): Likewise.
24955
24956 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24957 (grubof_SOURCES): Add `kern/parser.c'.
24958
24959 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24960
24961 * kern/misc.c (grub_split_cmdline): Removed function.
24962
24963 * kern/rescue.c: Include <grub/parser.h>.
24964 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24965 of `grub_split_cmdline'.
24966
24967 * normal/command.c: Include <grub/parser.h>.
24968 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24969 of `grub_split_cmdline'.
24970
24971 * normal/completion.c: Include <grub/parser.h>.
24972 (cmdline_state): New variable.
24973 (iterate_dir): End the filename with a quote depending on the
24974 command line state.
24975 (get_state): new function.
24976 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24977 split the arguments and determine the current argument. When the
24978 argument string is not quoted, escape all spaces.
24979
24980 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24981
24982 * normal/sparc64/setjmp.S: New file.
24983
24984 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24985
24986 * include/grub/sparc64/libgcc.h: New file.
24987 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24988 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24989 normal/sparc64/setjmp.c.
24990
24991 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24992
24993 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24994 * kern/sparc64/cache.S: New file.
24995 * kern/sparc64/cache.c: Removed.
24996 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24997 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24998 -mtune=ultrasparc.
24999 (COMMON_LDFLAGS): Add -melf64_sparc.
25000 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
25001 (grubof_SOURCES): Use cache.S instead of cache.c.
25002 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
25003 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
25004 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
25005 commented though.
25006 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
25007 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
25008 (linux_mod_CFLAGS): Commented out.
25009 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
25010 out because module isn't built.
25011 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
25012 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
25013 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
25014 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
25015 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
25016 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25017 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25018 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
25019 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
25020 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
25021 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
25022 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
25023 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
25024 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
25025
25026 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
25027
25028 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
25029 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
25030 longer, because HFS should not be used on PC.
25031
25032 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25033
25034 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
25035 consistently within the loop.
25036
25037 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
25038
25039 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
25040 directory can not be read.
25041
25042 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25043
25044 * configure.ac (AC_INIT): Increase the version number to 1.91.
25045
25046 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
25047 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
25048 term/i386/pc/serial.c.
25049
25050 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25051
25052 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
25053 file size must be permitted.
25054
25055 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
25056 between %ah and %al.
25057
25058 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25059
25060 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
25061 grub_uint64_t.
25062 Call the hook with a NUL-terminated filename.
25063 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
25064 grub_cpu_to_be32.
25065
25066 * kern/term.c (cursor_state): New variable.
25067 (grub_term_set_current): Reset the cursor state on a new
25068 terminal.
25069 (grub_setcursor): Rewritten to use CURSOR_STATE.
25070 (grub_getcursor): New function.
25071
25072 * include/grub/term.h (grub_getcursor): New prototype.
25073
25074 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
25075 integers on ARM. Reported by Timothy Baldwin
25076 <T.E.Baldwin99@members.leeds.ac.uk>.
25077
25078 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
25079
25080 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
25081 allocated.
25082 (grub_sfs_dir): Likewise.
25083
25084 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
25085
25086 Add support for the SFS filesystem.
25087
25088 * fs/sfs.c: New file.
25089
25090 * DISTLIST: Added `fs/sfs.c'.
25091
25092 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
25093 (grub_probefs_SOURCES): Likewise.
25094 (grub_emu_SOURCES): Likewise.
25095 (pkgdata_MODULES): Add `sfs.mod'.
25096 (sfs_mod_SOURCES): New variable.
25097 (sfs_mod_CFLAGS): Likewise.
25098 (sfs_mod_LDFLAGS): Likewise.
25099
25100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
25101 (pkgdata_MODULES): Add `sfs.mod'.
25102 (sfs_mod_SOURCES): New variable.
25103 (sfs_mod_CFLAGS): Likewise.
25104
25105 * util/grub-emu.c (main): Call `grub_sfs_init' and
25106 `grub_sfs_fini'.
25107
25108 * include/grub/fs.h (grub_sfs_init): New prototype.
25109 (grub_sfs_fini): Likewise.
25110
25111 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
25112
25113 Add support for the AFFS filesystem.
25114
25115 * fs/affs.c: New file.
25116
25117 * DISTLIST: Added `fs/affs.c'.
25118
25119 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
25120 (grub_probefs_SOURCES): Likewise.
25121 (grub_emu_SOURCES): Likewise.
25122 (pkgdata_MODULES): Add `affs.mod'.
25123 (affs_mod_SOURCES): New variable.
25124 (affs_mod_CFLAGS): Likewise.
25125 (affs_mod_LDFLAGS): Likewise.
25126
25127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
25128 (pkgdata_MODULES): Add `affs.mod'.
25129 (affs_mod_SOURCES): New variable.
25130 (affs_mod_CFLAGS): Likewise.
25131
25132 * util/grub-emu.c (main): Call `grub_affs_init' and
25133 `grub_affs_fini'.
25134
25135 * include/grub/fs.h (grub_affs_init): New prototype.
25136 (grub_affs_fini): Likewise.
25137
25138 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25139
25140 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
25141
25142 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25143
25144 * configure.ac: Accept `x86_64' as host_cpu. In that case add
25145 `-m32' to CFLAGS.
25146
25147 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
25148 linking.
25149
25150 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
25151 (COMMON_LDFLAGS): New variable.
25152 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
25153 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
25154 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
25155 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
25156 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
25157 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
25158 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
25159 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
25160 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
25161 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
25162 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25163 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25164 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
25165 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
25166 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
25167 variables.
25168 (normal_mod_ASFLAGS): Add `-m32'.
25169
25170 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
25171 (grub_host_size_t, grub_host_ssize_t): New types.
25172 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
25173 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
25174 `GRUB_HOST_SIZEOF_VOID_P'.
25175
25176 * include/grub/kernel.h (struct grub_module_header): Type of
25177 member offset changed to `grub_host_off_t'. Type of member size
25178 changed to `grub_host_size_t'.
25179 (struct grub_module_info): Type of member offset changed to
25180 `grub_host_off_t'. Type of member size changed to
25181 `grub_host_size_t'.
25182
25183 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
25184
25185 Make GRUB's kernel compliant to Multiboot Specification.
25186
25187 * kern/i386/pc/startup.S (multiboot_header): New label.
25188 (multiboot_entry): Likewise.
25189 (multiboot_trampoline): Likewise.
25190
25191 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25192 Increased to 0x4A0.
25193
25194 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
25195 put parentheses after a question mark.
25196 [!GRUB_UTIL] (my_mod): New variable.
25197
25198 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
25199
25200 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
25201
25202 Adds support for the XFS filesystem. Btrees are not supported
25203 yet.
25204
25205 * fs/xfs.c: New file.
25206
25207 * DISTLIST: Added `fs/xfs.c'.
25208
25209 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
25210 (grub_probefs_SOURCES): Likewise.
25211 (grub_emu_SOURCES): Likewise.
25212 (pkgdata_MODULES): Add `xfs.mod'.
25213 (xfs_mod_SOURCES): New variable.
25214 (xfs_mod_CFLAGS): Likewise.
25215
25216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
25217 (pkgdata_MODULES): Add `xfs.mod'.
25218 (xfs_mod_SOURCES): New variable.
25219 (xfs_mod_CFLAGS): Likewise.
25220
25221 * util/grub-emu.c (main): Call `grub_xfs_init' and
25222 `grub_xfs_fini'.
25223
25224 * include/grub/fs.h (grub_xfs_init): New prototype.
25225 (grub_xfs_fini): Likewise.
25226
25227
25228 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
25229
25230 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
25231 color modes, allow greater than 16 colors to be configured as
25232 a default palette.
25233
25234 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25235
25236 * normal/completion.c (complete_arguments): Add the qualifier
25237 const into OPTIONS.
25238
25239 From Omniflux <omniflux+lists@omniflux.com>:
25240 * include/grub/terminfo.h: New file.
25241 * include/grub/tparm.h: Likewise.
25242 * include/grub/i386/pc/serial.h: Likewise.
25243 * term/terminfo.c: Likewise.
25244 * term/tparm.c: Likewise.
25245 * term/i386/pc/serial.c: Likewise.
25246 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
25247 serial.mod.
25248 (terminfo_mod_SOURCES): New variable.
25249 (terminfo_mod_CFLAGS): Likewise.
25250 (serial_mod_SOURCES): Likewise.
25251 (serial_mod_CFLAGS): Likewise.
25252
25253 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
25254
25255 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
25256 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
25257 and kern/powerpc/ieee1275/cmain.c, respectively.
25258
25259 * boot/powerpc/ieee1275/crt0.S: Moved to ...
25260 * kern/powerpc/ieee1275/crt0.S: ... here.
25261
25262 * boot/powerpc/ieee1275/cmain.c: Moved to ...
25263 * kern/powerpc/ieee1275/cmain.c: ... here.
25264
25265 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
25266 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
25267 instead of boot/powerpc/ieee1275/crt0.S and
25268 boot/powerpc/ieee1275/cmain.c, respectively.
25269
25270 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
25271 sectors. It was not used anyway.
25272
25273 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25274
25275 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
25276 `unused parameter' warning.
25277
25278 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25279
25280 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
25281 function.
25282 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
25283 getcharwidth.
25284
25285 2005-08-28 Marco Gerards <metgerards@student.han.nl>
25286
25287 * include/grub/normal.h (enum grub_completion_type): Added
25288 `GRUB_COMPLETION_TYPE_ARGUMENT'.
25289
25290 * normal/cmdline.c (print_completion): Handle
25291 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
25292 * normal/menu_entry.c (store_completion): Likewise.
25293
25294 * normal/completion.c (complete_arguments): New function.
25295 (grub_normal_do_completion): Call `complete_arguments' when the
25296 current words start with a dash.
25297
25298 2005-08-27 Marco Gerards <metgerards@student.han.nl>
25299
25300 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
25301 `gzio.mod' instead of `io.mod').
25302
25303 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
25304
25305 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
25306 (DISTDIRS): Added io and video.
25307 Rewrite the search routine to make an output consistently.
25308
25309 * DISTLIST: Added conf/sparc64-ieee1275.mk,
25310 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
25311 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
25312 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
25313 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
25314 util/powerpc/ieee1275/misc.c.
25315
25316 * include/grub/gzio.h: New file.
25317 * io/gzio.c: Likewise.
25318
25319 * kern/file.c (grub_file_close): Call grub_device_close only if
25320 FILE->DEVICE is not NULL.
25321
25322 * include/grub/mm.h [!NULL] (NULL): New macro.
25323
25324 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
25325
25326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
25327 (pkgdata_MODULES): Added gzio.mod.
25328 (gzio_mod_SOURCES): New variable.
25329 (gzio_mod_CFLAGS): Likewise.
25330
25331 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
25332 (pkgdata_MODULES): Added gzio.mod.
25333 (gzio_mod_SOURCES): New variable.
25334 (gzio_mod_CFLAGS): Likewise.
25335
25336 * commands/cat.c: Include grub/gzio.h.
25337 (grub_cmd_cat): Use grub_gzfile_open instead of
25338 grub_file_open.
25339
25340 * commands/cmp.c: Include grub/gzio.h.
25341 (grub_cmd_cmp): Use grub_gzfile_open instead of
25342 grub_file_open.
25343
25344 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
25345 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
25346 grub_file_open.
25347 (grub_rescue_cmd_module): Likewise.
25348
25349 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25350
25351 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
25352 kern/sparc64/ieee1275/init.c because it contains _start.
25353 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
25354
25355 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25356
25357 * configure.ac: Add support for sparc64 host with ieee1275
25358 firmware.
25359 * configure: Generated from configure.ac.
25360 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
25361 instead of int.
25362 (grub_ofdisk_read): Likewise.
25363 (grub_ofdisk_open): Use %p to print pointer values, and cast the
25364 pointers as (void *) to remove a warning.
25365 (grub_ofdisk_close): Likewise.
25366 (grub_ofdisk_read): Likewise.
25367 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
25368 returns, so make it return void to remove a warning.
25369 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
25370 Corresponding prototype change.
25371 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
25372 values, and cast the pointers as (void *) to remove a warning.
25373 (grub_mm_dump): Likewise.
25374 * conf/sparc64-ieee1275.mk: New file.
25375 * conf/sparc64-ieee1275.rmk: Likewise.
25376 * include/grub/sparc64/setjmp.h: Likewise.
25377 * include/grub/sparc64/types.h: Likewise.
25378 * include/grub/sparc64/ieee1275/console.h: Likewise.
25379 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25380 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25381 * include/grub/sparc64/ieee1275/time.h: Likewise.
25382 * kern/sparc64/cache.c: Likewise.
25383 * kern/sparc64/dl.c: Likewise.
25384 * kern/sparc64/ieee1275/init.c: Likewise.
25385 * kern/sparc64/ieee1275/openfw.c: Likewise.
25386
25387 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25388
25389 * util/console.c (grub_ncurses_putchar): If C is greater than
25390 0x7f, set C to a question mark.
25391 (grub_ncurses_getcharwidth): New function.
25392 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
25393 getcharwidth.
25394
25395 * normal/menu.c (print_entry): Made aware of Unicode. First,
25396 convert TITLE to UCS-4, and predict the cursor position by
25397 grub_getcharwidth.
25398
25399 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
25400 const to SRC.
25401 * kern/misc.c (grub_utf16_to_utf8): Likewise.
25402
25403 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25404
25405 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
25406 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25407 grub_strcat.
25408
25409 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
25410 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25411 grub_strcpy and grub_strlen. Take it into account that a space
25412 character is inserted as a delimiter.
25413
25414 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25415
25416 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
25417 invalid magic in the error.
25418
25419 * commands/search.c: New file.
25420
25421 * util/grub-emu.c (main): Call grub_search_init and
25422 grub_search_fini.
25423
25424 * kern/rescue.c (grub_rescue_print_disks): Removed.
25425 (grub_rescue_print_devices): New function.
25426 (grub_rescue_cmd_ls): Use grub_device_iterate with
25427 grub_rescue_print_devices instead of grub_disk_dev_iterate with
25428 grub_rescue_print_disks.
25429
25430 * kern/partition.c (grub_partition_iterate): Return the result of
25431 PARTMAP->ITERATE instead of GRUB_ERRNO.
25432
25433 * kern/device.c: Include grub/partition.h.
25434 (grub_device_iterate): New function.
25435
25436 * include/grub/partition.h (grub_partition_iterate): Return int
25437 instead of grub_err_t.
25438
25439 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
25440 prototype.
25441 [GRUB_UTIL] (grub_search_fini): Likewise.
25442
25443 * include/grub/device.h (grub_device_iterate): New prototype.
25444
25445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25446 commands/search.c.
25447 (pkgdata_MODULES): Added search.mod.
25448 (search_mod_SOURCES): New variable.
25449 (search_mod_CFLAGS): Likewise.
25450
25451 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
25452 (pkgdata_MODULES): Added search.mod.
25453 (search_mod_SOURCES): New variable.
25454 (search_mod_CFLAGS): Likewise.
25455
25456 * commands/ls.c (grub_ls_list_disks): Renamed to ...
25457 (grub_ls_list_devices): ... this, and use grub_device_iterate.
25458 All callers changed.
25459
25460 * DISTLIST: Added commands/search.c.
25461
25462 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25463
25464 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
25465 conversion.
25466 (grub_getcharwidth): New function.
25467
25468 * kern/misc.c (grub_utf8_to_ucs4): New function.
25469
25470 * include/grub/term.h (struct grub_term): Added a new member
25471 "getcharwidth".
25472 (grub_getcharwidth): New prototype.
25473
25474 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
25475
25476 * term/i386/pc/console.c (map_char): New function. Segregated from
25477 grub_console_putchar.
25478 (grub_console_putchar): Use map_char.
25479 (grub_console_getcharwidth): New function.
25480 (grub_console_term): Specified grub_console_getcharwidth as
25481 getcharwidth.
25482
25483 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
25484 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
25485
25486 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
25487 GRUB_ERRNO.
25488 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
25489 on grub_strtoul completely.
25490 (write_char): Declare local variables in the beginning of the
25491 function.
25492 (grub_vesafb_getcharwidth): New function.
25493 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
25494 getcharwidth.
25495
25496 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
25497
25498 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
25499 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
25500 commands/i386/pc/vbetest.c.
25501
25502 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
25503 call grub_vbe_get_controller_info again, because the returned
25504 information is volatile.
25505 (grub_vbe_set_video_mode): Mostly rewritten.
25506 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
25507 grub_vbe_status_t correctly.
25508 (grub_vbe_get_video_mode_info): Likewise.
25509 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
25510 several if statements.
25511
25512 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
25513 * commands/i386/pc/vbeinfo.c: ... this.
25514
25515 * commands/i386/pc/vbe_test.c: Renamed to ...
25516 * commands/i386/pc/vbetest.c: ... this.
25517
25518 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25519 ...
25520 (grub_cmd_vbeinfo): ... this. Save video modes before
25521 iterating. Skip a video mode, if it is not available, not enough
25522 information is given or it is monochrome. Show the memory
25523 model. Leave the interpretation of MODEVAR to grub_strtoul
25524 completely.
25525 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25526 (GRUB_MOD_FINI): Likewise.
25527
25528 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25529 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25530 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25531 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25532 grub_strtoul completely.
25533 (real2pm): Removed.
25534 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25535 (GRUB_MOD_FINI): Likewise.
25536
25537 * normal/misc.c: Include grub/mm.h.
25538
25539 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25540 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25541 (vbe_list_modes_mod_SOURCES): Removed.
25542 (vbe_list_modes_mod_CFLAGS): Likewise.
25543 (vbe_test_mod_SOURCES): Likewise.
25544 (vbe_test_mod_CFLAGS): Likewise.
25545 (vbeinfo_mod_SOURCES): New variable.
25546 (vbeinfo_mod_CFLAGS): Likewise.
25547 (vbetest_mod_SOURCES): Likewise.
25548 (vbetest_mod_CFLAGS): Likewise.
25549
25550 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25551
25552 * normal/misc.c: New file.
25553
25554 * DISTLIST: Added normal/misc.c.
25555
25556 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25557 DISK to HOOK. Call HOOK with DISK.
25558 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25559 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25560 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25561
25562 * normal/menu_entry.c (struct screen): Added a new member
25563 "completion_shown".
25564 (completion_buffer): New global variable.
25565 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25566 (store_completion): New function.
25567 (complete): Likewise.
25568 (clear_completions): Likewise.
25569 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25570 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25571 a tab, call complete.
25572
25573 * normal/completion.c (disk_dev): Removed.
25574 (print_simple_completion): Likewise.
25575 (print_partition_completion): Likewise.
25576 (print_func): New global variable.
25577 (add_completion): Do not take the arguments WHAT or PRINT any
25578 longer. Added a new argument TYPE. Instead of printing directly,
25579 call PRINT_FUNC if not NULL.
25580 All callers changed.
25581 (complete_device): Use a local variable DEV instead of
25582 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25583 (grub_normal_do_completion): Take a new argument HOOK. Do not
25584 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25585 empty string, return NULL instead.
25586 All callers changed.
25587
25588 * normal/cmdline.c (print_completion): New function.
25589
25590 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25591 to HOOK.
25592 All callers changed.
25593
25594 * kern/disk.c (grub_print_partinfo): Removed.
25595
25596 * include/grub/partition.h (struct grub_partition_map): Add a new
25597 argument DISK into HOOK of ITERATE.
25598 (grub_partition_iterate): Add a new argument DISK to HOOK.
25599
25600 * include/grub/normal.h (enum grub_completion_type): New enum.
25601 (grub_completion_type_t): New type.
25602 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25603 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25604 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25605 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25606 (grub_normal_do_completion): Added a new argument HOOK.
25607 (grub_normal_print_device_info): New prototype.
25608
25609 * include/grub/disk.h (grub_print_partinfo): Removed.
25610
25611 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25612 (normal_mod_SOURCES): Likewise.
25613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25614 (normal_mod_SOURCES): Likewise.
25615
25616 * commands/ls.c (grub_ls_list_disks): Use
25617 grub_normal_print_device_info instead of grub_print_partinfo. Free
25618 PNAME.
25619 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25620 duplicating the code.
25621
25622 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25623
25624 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25625 follow GCS more precisely.
25626 * commands/i386/pc/vbe_test.c: Likewise.
25627 * include/grub/i386/pc/vbe.h: Likewise.
25628 * term/i386/pc/vesafb.c: Likewise.
25629 * video/i386/pc/vbe.c: Likewise.
25630
25631 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25632
25633 * DISTLIST: Added term/i386/pc/vesafb.c
25634 DISTLIST: Added video/i386/pc/vbe.c
25635 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25636 DISTLIST: Added commands/i386/pc/vbe_test.c.
25637 * commands/i386/pc/vbe_list_modes.c: New file.
25638 * commands/i386/pc/vbe_test.c: Likewise.
25639 * term/i386/pc/vesafb.c: Likewise.
25640 * video/i386/pc/vbe.c: Likewise.
25641 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25642 (grub_vbe_probe) Added prototype.
25643 (grub_vbe_set_video_mode) Likewise.
25644 (grub_vbe_get_video_mode) Likewise.
25645 (grub_vbe_get_video_mode_info) Likewise.
25646 (grub_vbe_set_pixel_rgb) Likewise.
25647 (grub_vbe_set_pixel_index) Likewise.
25648 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25649 (pkgdata_MODULES): Added vesafb.mod.
25650 (pkgdata_MODULES): Added vbe_list_modes.mod.
25651 (pkgdata_MODULES): Added vbe_test.mod.
25652 (vbe_mod_SOURCES): Added.
25653 (vbe_mod_CFLAGS): Likewise.
25654 (vesafb_mod_SOURCES): Likewise.
25655 (vesafb_mod_CFLAGS): Likewise.
25656 (vbe_list_modes_mod_SOURCES): Likewise.
25657 (vbe_list_modes_mod_CFLAGS): Likewise.
25658 (vbe_test_mod_SOURCES): Likewise.
25659 (vbe_test_mod_CFLAGS): Likewise.
25660
25661 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25662
25663 * normal/command.c (grub_command_execute): If INTERACTIVE is
25664 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25665 CMDLINE. Disable the pager if INTERACTIVE is true.
25666 All callers are changed.
25667
25668 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25669 before reading a config file.
25670 * normal/main.c (read_config_file): Even if a command is not
25671 found, register it if it is within an entry.
25672
25673 * util/grub-emu.c: Include sys/types.h and unistd.h.
25674 (options): Added --hold.
25675 (struct arguments): Added a new member "hold".
25676 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25677 missing.
25678 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25679 cleared by a debugger, if it is not zero.
25680
25681 * include/grub/normal.h (grub_command_execute): Add an argument
25682 INTERACTIVE.
25683
25684 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25685
25686 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25687
25688 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25689
25690 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25691 program with another one, because the old one didn't detect a bug
25692 in gcc-3.4. Always use regparm 2, because the new test is still
25693 not enough for gcc-4.0. Someone must investigate a simple test
25694 case which detects a bug in gcc-4.0.
25695
25696 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25697
25698 * DISTLIST: Added normal/completion.c.
25699
25700 * normal/completion.c: New file.
25701
25702 * term/i386/pc/console.c (grub_console_getwh): New function.
25703 (grub_console_term): Assign grub_console_getwh to getwh.
25704
25705 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25706 function is defined in normal/completion.c as
25707 grub_normal_do_completion.
25708 (grub_cmdline_get): Use grub_normal_do_completion instead of
25709 grub_tab_complete.
25710
25711 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25712 returns non-zero, otherwise return 0.
25713 (grub_partition_iterate): First, probe the partition map. Then,
25714 call ITERATE only for this partition map.
25715
25716 * kern/misc.c (grub_strncmp): Rewritten.
25717
25718 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25719 returns non-zero. Otherwise return 0.
25720
25721 * include/grub/partition.h (grub_partition_map_iterate): Return
25722 int instead of void.
25723
25724 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25725
25726 * include/grub/misc.h (grub_strncmp): Change the type of N to
25727 grub_size_t.
25728
25729 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25730 of void.
25731
25732 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25733 unsigned explicitly before comparing it with I.
25734
25735 * kern/main.c (grub_env_write_root): Add the attribute unused into
25736 VAR.
25737
25738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25739 normal/completion.c.
25740 (normal_mod_SOURCES): Likewise.
25741 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25742 (normal_mod_SOURCES): Likewise.
25743
25744 * normal/command.c (grub_iterate_commands): If ITERATE returns
25745 non-zero, return one immediately.
25746
25747 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25748
25749 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25750 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25751 descriptions.
25752 (grub_vbe_get_controller_info): New function.
25753 (grub_vbe_get_mode_info): Likewise.
25754 (grub_vbe_set_mode): Likewise.
25755 (grub_vbe_get_mode): Likewise.
25756 (grub_vbe_set_memory_window): Likewise.
25757 (grub_vbe_get_memory_window): Likewise.
25758 (grub_vbe_set_scanline_length): Likewise.
25759 (grub_vbe_get_scanline_length): Likewise.
25760 (grub_vbe_set_display_start): Likewise.
25761 (grub_vbe_get_display_start): Likewise.
25762 (grub_vbe_set_palette_data): Likewise.
25763 * include/grub/i386/pc/vbe.h: New file.
25764
25765 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25766
25767 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25768 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25769 * DISTLIST: Likewise.
25770 * kern/ieee1275/of.c: Moved to ...
25771 * kern/ieee1275/ieee1275.c: ... here.
25772
25773 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25774
25775 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25776 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25777 Pass 0 as `end' parameter to grub_strtoul().
25778
25779 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25780
25781 * include/grub/powerpc/ieee1275/console.h: Do not include
25782 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25783 ifdef.
25784 (grub_console_cur_color): Remove i386-specific prototype.
25785 (grub_console_real_putchar): Likewise.
25786 (grub_console_checkkey): Likewise.
25787 (grub_console_getkey): Likewise.
25788 (grub_console_getxy): Likewise.
25789 (grub_console_gotoxy): Likewise.
25790 (grub_console_cls): Likewise.
25791 (grub_console_setcursor): Likewise.
25792 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25793 Include <grub/machine/console.h>.
25794 * term/ieee1275/ofconsole.c: Likewise.
25795
25796 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25797
25798 * Makefile.in (LIBLZO): New variable.
25799
25800 * configure.ac: Check for LZO version 2.
25801
25802 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25803 lzo/lzo1x.h instead of lzo1x.h.
25804
25805 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25806 of -llzo.
25807
25808 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25809 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25810
25811 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25812 copying the data from PARTITION to P.
25813
25814 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25815
25816 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25817 negative, unload the module.
25818
25819 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25820 map is "pc_partition_map" but not "pc".
25821 (usage): Fix the description. The options are --boot-image and
25822 --core-image but not --boot-file or --core-file.
25823 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25824 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25825 DEFAULT_DIRECTORY.
25826
25827 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25828 --core-file. Specify INSTALL_DEVICE as an argument.
25829
25830 * util/console.c: Include config.h.
25831 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25832 [HAVE_NCURSES_H]: Include ncurses.h.
25833 [HAVE_CURSES_H]: Include curses.h.
25834 [!A_NORMAL] (A_NORMAL): Defined as zero.
25835 [!A_STANDOUT] (A_STANDOUT): Likewise.
25836
25837 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25838 -lncurses.
25839 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25840
25841 * configure.ac: Check for curses libraries and headers.
25842
25843 * Makefile.in (LIBCURSES): New variable.
25844
25845 * genmk.rb (Script::rule): Set the executable bits.
25846
25847 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25848 name of the PC partition map is "pc_partition_map" but not "pc".
25849
25850 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25851
25852 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25853 (modules): Likewise.
25854 (usage): Added descriptions for --modules and --grub-probefs.
25855 Handle --modules and --grub-probefs. Save the arguments in MODULES
25856 and GRUB_PROBEFS, respectively.
25857 Auto-detect a filesystem module against GRUBDIR. If the result is
25858 empty and modules are not specified explicitly, abort the
25859 installation. Add the result to MODULES.
25860
25861 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25862 disk/powerpc/ieee1275/ofdisk.c,
25863 include/grub/powerpc/ieee1275/init.h and
25864 term/powerpc/ieee1275/ofconsole.c.
25865 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25866 term/ieee1275/ofconsole.c.
25867
25868 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25869
25870 * COPYING: Upgraded to the latest version. Only the address of the
25871 FSF office has changed.
25872
25873 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25874
25875 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25876 kern/ieee1275.c with kern/ieee1275/of.c.
25877
25878 * kern/ieee1275.c: Moved to ...
25879 * kern/ieee1275/of.c: ... here.
25880
25881 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25882
25883 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25884 readability.
25885
25886 * config.guess: Updated to the latest version from gnulib.
25887 * config.sub: Likewise.
25888 * install.sh: Likewise.
25889 * mkinstalldirs: Likewise.
25890
25891 * include/grub/console.h: Removed. This file is arch-specific. Do
25892 not put this in include/grub.
25893
25894 * include/grub/i386/pc/console.h: Resurrected.
25895
25896 * util/console.c: Include grub/machine/console.h instead of
25897 grub/console.h.
25898 * util/grub-emu.c: Likewise.
25899
25900 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25901
25902 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25903 hardcoded value.
25904
25905 From Vincent Pelletier <subdino2004@yahoo.fr>
25906 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25907 Redefined to use grub_getwh.
25908 (grub_term): New member named getwh.
25909 (grub_getwh): New prototype.
25910 * kern/term.c (grub_getwh): New function.
25911 * term/i386/pc/console.c (grub_console_getwh): New function.
25912 (grub_console_term): New member `getwh'.
25913 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25914 (grub_vga_term): New member `getwh'.
25915 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25916 grub_ssize_t.
25917 (grub_ofconsole_getw): New function.
25918 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25919 (grub_ofconsole_term): New field named getwh and new initial
25920 value.
25921
25922 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25923
25924 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25925 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25926 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25927 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25928 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25929 of <grub/machine/ieee1275.h>.
25930 * commands/ieee1275/reboot.c: Likewise.
25931 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25932 * kern/ieee1275.c: ... to here. All users updated. Change all
25933 parameter structs to use new type `grub_ieee1275_cell_t'.
25934 * term/powerpc/ieee1275/ofconsole.c: Move ...
25935 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25936 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25937 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25938 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25939 to return int.
25940 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25941 Remove unused prototypes. All users updated.
25942 * include/grub/powerpc/ieee1275/console.h: Removed.
25943 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25944 `grub_ieee1275_cell_t'.
25945 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25946 Cast comparisons with -1 to the correct type.
25947 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25948 type to match `grub_ieee1275_entry_fn'.
25949
25950 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25951
25952 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25953
25954 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25955 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25956 partmap/sun.c.
25957 (grub_probefs_SOURCES): New variable.
25958
25959 * util/i386/pc/grub-probefs.c: New file.
25960
25961 * util/i386/pc/grub-setup.c (main): Call
25962 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25963 grub_hfs_init and grub_jfs_init to initialize the system. Call
25964 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25965 grub_pc_partition_map_fini to finish the system.
25966
25967 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25968
25969 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25970 function.
25971 (grub_multiboot_load_elf32): Likewise.
25972 (grub_multiboot_is_elf64): Likewise.
25973 (grub_multiboot_load_elf64): Likewise.
25974 (grub_multiboot_load_elf): Likewise.
25975 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25976 an ELF32 or ELF64 file.
25977 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25978
25979 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25980 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25981 NULL before calling FS->LABEL.
25982 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25983 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25984 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25985 before calling FS->LABEL.
25986
25987 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25988
25989 * util/i386/pc/grub-install.in (datadir): New variable.
25990 (libdir): Removed.
25991 (pkgdatadir): New variable.
25992 (pkglibdir): Removed.
25993
25994 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25995
25996 * DISTLIST: Added util/i386/pc/grub-install.in.
25997
25998 * util/i386/pc/grub-install.in: New file.
25999
26000 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
26001 (grub_install_SOURCES): Likewise.
26002
26003 * genmk.rb: Added support for scripts.
26004 (Script): New class.
26005 (scripts): New variable.
26006
26007 * Makefile.in (install-local): Install sbin_SCRIPTS by
26008 INSTALL_SCRIPT.
26009 (uninstall): Remove sbin_SCRIPTS.
26010
26011 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
26012 device, try to get a GRUB device by
26013 grub_util_biosdisk_get_grub_dev.
26014 Free DEST_DEV.
26015
26016 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
26017 description for --device-map.
26018
26019 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26020
26021 Change the semantics of variable hooks. They now return strings
26022 instead of error values.
26023
26024 * util/i386/pc/grub-setup.c: Include grub/env.h.
26025 (setup): Use grub_device_set_root instead of grub_env_set.
26026
26027 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
26028 grub_env_get instead of grub_device_set_root and
26029 grub_device_get_root, respectively.
26030
26031 * kern/main.c (grub_env_write_root): New function.
26032 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
26033 grub_env_set instead of grub_device_set_root.
26034
26035 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
26036 many variables.
26037 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
26038 rather than calling ENV->WRITE_HOOK afterwards.
26039 (grub_env_get): Return the result of ENV->READ_HOOK rather than
26040 passing a pointer of a pointer.
26041 (grub_register_variable_hook): Change the types of "read_hook" and
26042 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
26043 respectively.
26044 Allocate the default empty string on the heap, because this string
26045 may be freed later.
26046
26047 * kern/device.c: Include grub/env.h.
26048 (grub_device_set_root): Removed.
26049 (grub_device_get_root): Likewise.
26050 (grub_device_open): Use grub_env_get instead of
26051 grub_device_get_root.
26052
26053 * include/grub/env.h (grub_env_read_hook_t): New type.
26054 (grub_env_write_hook_t): Likewise.
26055 (grub_env_var): Change the types of "read_hook" and "write_hook"
26056 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
26057 (grub_register_variable_hook): Likewise.
26058
26059 * include/grub/device.h (grub_device_set_root): Removed.
26060 (grub_device_set_root): Likewise.
26061
26062 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
26063 make sure that DIRNAME terminates with '/', so that
26064 grub_fat_find_dir will fail if PATH is not a directory.
26065
26066 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
26067 from DIRNAME.
26068 Use the qualifier auto for print_files and print_files_long.
26069 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
26070 as a regular file.
26071 Put a newline only if there is no error.
26072 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
26073 used.
26074
26075 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26076
26077 * kern/partition.c (grub_partition_probe): Initialize PART to
26078 NULL. Otherwise, when no partition map is registered, this returns
26079 a garbage.
26080
26081 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
26082
26083 * partmap/apple.c (apple_partition_map_iterate): Check if POS
26084 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
26085 valid.
26086
26087 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
26088
26089 * commands/ls.c (grub_ls_list_disks): Print the filesystem
26090 information on each device, if it does not have partitions. Print
26091 "Device" instead of "Disk", because this function is not specific
26092 to disk devices.
26093
26094 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
26095 static to ensure that it is put on the memory rather than a
26096 register.
26097
26098 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26099
26100 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
26101 (grub_cat_init): Likewise.
26102 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
26103 (options): Likewise.
26104 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26105 (grub_configfile_init): Likewise.
26106 * font/manager.c (GRUB_MOD_INIT): Likewise.
26107 * commands/help.c (GRUB_MOD_INIT): Likewise.
26108 (grub_help_init): Likewise.
26109 * normal/command.c (grub_command_init): Likewise.
26110 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
26111 * disk/loopback.c (grub_loop_init): Likewise.
26112 (GRUB_MOD_INIT): Likewise.
26113 * commands/ls.c (grub_ls_init): Likewise.
26114 (GRUB_MOD_INIT): Likewise.
26115 (options): Likewise.
26116 * commands/boot.c (grub_boot_init): Likewise.
26117 (GRUB_MOD_INIT): Likewise.
26118 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
26119 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
26120 (GRUB_MOD_INIT): Likewise.
26121 * commands/cmp.c (grub_cmp_init): Likewise.
26122 (GRUB_MOD_INIT): Likewise.
26123
26124 * normal/arg.c: Use <> instead of "" to include header files.
26125 (SHORT_ARG_HELP): New macro.
26126 (SHORT_ARG_USAGE): Likewise.
26127 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
26128 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
26129 descriptions.
26130 (find_short): Check if C is 'h' or 'u' explicitly.
26131 (grub_arg_show_help): Use space characters instead of tabs. Treat
26132 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
26133 are shown with --help and --usage only if they are not used for
26134 the command itself.
26135 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
26136 'h' and 'u'.
26137
26138 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
26139 const into "longarg". Change the type of "shortarg" to int.
26140
26141 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26142
26143 * boot/i386/pc/boot.S (boot_drive_check): New label.
26144
26145 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
26146 macro.
26147
26148 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
26149 which do not pass a boot drive correctly. Copied from GRUB Legacy.
26150
26151 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26152
26153 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
26154 When turning off Gate A20, skip the check and return immediately,
26155 because this is not fatal usually.
26156
26157 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26158
26159 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
26160 be 0x7C00 instead of 0x8000.
26161
26162 * boot/i386/pc/pxeboot.S: Rewritten.
26163
26164 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
26165 EXT_C.
26166 (gate_a20_check_state): Read a byte from 0x108000. Invert the
26167 result.
26168
26169 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
26170
26171 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
26172 robustness. This routine now supports a BIOS call and System
26173 Control Port A to modify the gate A20.
26174
26175 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26176 Increased to 0x440.
26177
26178 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
26179
26180 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
26181 device path and resulting ihandle.
26182 (grub_ofdisk_close): dprintf the ihandle being closed.
26183 (grub_ofdisk_read): dprintf function parameters.
26184 * kern/mm.c (grub_mm_init_region): Likewise.
26185 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
26186 (grub_linux_boot): dprintf the Linux entry point, initrd address and
26187 size, and boot arguments.
26188 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
26189 before loading into memory.
26190 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
26191 before loading into memory.
26192
26193 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
26194
26195 * kern/mm.c: Added much documentation.
26196 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
26197 8, set to 5 instead of 8.
26198
26199 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26200
26201 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
26202
26203 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
26204 (grub_mkdevicemap_SOURCES): New variable.
26205
26206 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
26207 lib/device.c of GRUB Legacy.
26208
26209 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26210
26211 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
26212 instead of PATH is NULL.
26213
26214 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
26215
26216 * commands/cmp.c (BUFFER_SIZE): New macro.
26217 (grub_cmd_cmp): Close the right file at the right time. Compare
26218 only data just read. Don't report files of different size as
26219 identical. Dynamically allocate buffers. Move variable
26220 declarations at the beginning of function.
26221
26222 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
26223
26224 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
26225 reverse.
26226
26227 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
26228
26229 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
26230 when backspace is pressed at beginning of line.
26231
26232 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
26233
26234 * DISTLIST: Added genfslist.sh.
26235
26236 * normal/main.c (fs_module_list): New variable.
26237 (autoload_fs_module): New function.
26238 (read_fs_list): Likewise.
26239 (grub_normal_execute): Call read_fs_list.
26240
26241 * kern/fs.c (grub_fs_autoload_hook): New variable.
26242 (grub_fs_probe): Added support for auto-loading.
26243
26244 * include/grub/normal.h (struct grub_fs_module_list): New struct.
26245 (grub_fs_module_list_t): New type.
26246
26247 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
26248 (grub_fs_autoload_hook): New prototype.
26249
26250 * genfslist.sh: New file.
26251
26252 * genmk.rb: Added a rule to generate a filesystem list.
26253
26254 2005-06-30 Marco Gerards <metgerards@student.han.nl>
26255
26256 * configure.ac: Fix the test for cross-compiling.
26257
26258 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
26259 define GRUB_UTIL anymore.
26260
26261 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
26262 so this function works on other systems than just big endian.
26263 (load_modules): Likewise.
26264 (add_segments): Likewise.
26265
26266 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
26267
26268 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
26269 contains `l' modifier, get a long from va_arg().
26270
26271 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
26272
26273 * kern/mm.c (grub_free): If the next free block which is being
26274 merged is the first free block, set the first block to the block
26275 being freed.
26276 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
26277
26278 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26279
26280 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
26281 `grub_ieee1275_chosen'.
26282
26283 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26284
26285 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
26286 (grub_ieee1275_chosen): New variable.
26287 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
26288 `chosen'.
26289 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
26290 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26291 Rename first argument to `phandle' for consistency.
26292 (grub_ieee1275_get_property_length): Likewise.
26293 (grub_ieee1275_next_property): Likewise. Change type of first argument
26294 to grub_ieee1275_phandle_t.
26295 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
26296 Move export next to declaration.
26297 (grub_ieee1275_chosen): New variable.
26298 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
26299 Correct cosmetic typo.
26300 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
26301 `grub_ieee1275_chosen'.
26302 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
26303 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
26304 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
26305 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
26306 `grub_ieee1275_chosen'.
26307
26308 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
26309
26310 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
26311 /chosen/bootargs.
26312 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
26313 /chosen/bootargs as "variable=value" pairs.
26314
26315 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
26316
26317 * include/grub/misc.h (grub_dprintf): New macro.
26318 (grub_real_dprintf): New prototype.
26319 (grub_strword): Likewise.
26320 (grub_iswordseparator): Likewise.
26321 * kern/misc.c (grub_real_dprintf): New function.
26322 (grub_strword): Likewise.
26323 (grub_iswordseparator): Likewise.
26324
26325 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
26326
26327 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
26328 (roundup): Remove macro.
26329 (grub_ieee1275_flags): Make static.
26330 (grub_ieee1275_realmode): Remove.
26331 (grub_ieee1275_test_flag): New function.
26332 (grub_ieee1275_set_flag): Likewise.
26333 (find_options): Rename to `grub_ieee1275_find_options'; update
26334 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
26335 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
26336 (cmain): New prototype.
26337 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
26338 `grub_ieee1275_flags' directly.
26339 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
26340 machine/biosdisk.h.
26341 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
26342 Don't include grub/machine/init.h.
26343 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
26344 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26345 Remove prototype.
26346 (grub_ieee1275_realmode): Likewise.
26347 (grub_ieee1275_flag): New enum.
26348 (grub_ieee1275_test_flag): New prototype.
26349 (grub_ieee1275_set_flag): New prototype.
26350 * include/grub/powerpc/ieee1275/init.h: Remove file.
26351 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
26352 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
26353 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
26354 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
26355 comment.
26356 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
26357 `grub_ieee1275_test_flag'.
26358 (grub_ieee1275_encode_devname): Likewise.
26359
26360 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
26361
26362 * include/grub/powerpc/ieee1275/ieee1275.h
26363 (grub_ieee1275_encode_devname): New prototype.
26364 (grub_ieee1275_get_filename): Likewise.
26365 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
26366 function.
26367 (grub_set_prefix): Likewise.
26368 (grub_machine_init): Call grub_set_prefix.
26369 * kern/powerpc/ieee1275/openfw.c: Fix typos.
26370 (grub_parse_type): New enum.
26371 (grub_ieee1275_get_devargs): New function.
26372 (grub_ieee1275_get_devname): Likewise.
26373 (grub_ieee1275_parse_args): Likewise.
26374 (grub_ieee1275_get_filename): Likewise.
26375 (grub_ieee1275_encode_devname): Likewise.
26376
26377 2005-03-30 Marco Gerards <metgerards@student.han.nl>
26378
26379 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
26380 `grub_loader_unset'.
26381
26382 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
26383
26384 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
26385 instead of grub_ieee1275_interpret.
26386 (grub_halt_init): New function.
26387 (grub_halt_fini): Likewise.
26388 (GRUB_MOD_INIT): Correct message grammar.
26389 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
26390 instead of grub_ieee1275_interpret.
26391 (grub_reboot_init): New function.
26392 (grub_reboot_fini): Likewise.
26393 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
26394 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
26395 util/i386/pc/misc.c with commands/ieee1275/halt.c,
26396 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
26397 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
26398 function.
26399 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
26400 Add prototype.
26401 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
26402 prototype.
26403 (grub_halt): Likewise.
26404 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
26405 (cmain): Remove __attribute__((unused)).
26406 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
26407 (grub_heap_len): Likewise.
26408 (grub_machine_fini): New function.
26409 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
26410 (grub_halt): Likewise.
26411 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
26412 function.
26413 * util/powerpc/ieee1275/misc.c: New file.
26414
26415 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26416
26417 * DISTLIST: New file.
26418 * gendistlist.sh: Likewise.
26419
26420 * Makefile.in (COMMON_DISTFILES): Removed.
26421 (BOOT_DISTFILES): Likewise.
26422 (CONF_DISTFILES): Likewise.
26423 (DISK_DISTFILES): Likewise.
26424 (FS_DISTFILES): Likewise.
26425 (INCLUDE_DISTFILES): Likewise.
26426 (KERN_DISTFILES): Likewise.
26427 (LOADER_DISTFILES): Likewise.
26428 (TERM_DISTFILES): Likewise.
26429 (UTIL_DISTFILES): Likewise.
26430 (DISTFILES): Likewise.
26431 (uninstall): Uninstall files in $(pkgdata_DATA).
26432 (DISTLIST): New target.
26433 (distdir): Use the contents of the file DISTLIST to get a list of
26434 distributed files.
26435
26436 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26437
26438 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
26439 descriptor. This is ported from GRUB Legacy.
26440
26441 * gencmdlist.sh: Added an extra semicolon to make it work with
26442 old sed versions. Reported by Robert Bihlmeyer
26443 <robbe@orcus.priv.at>.
26444
26445 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
26446
26447 Automatic loading of commands is supported.
26448
26449 * normal/main.c (read_command_list): New function.
26450 (grub_normal_execute): Call read_command_list.
26451
26452 * normal/command.c (grub_register_command): Return zero or CMD.
26453 Allocate CMD->NAME from the heap.
26454 Initialize CMD->MODULE_NAME to zero.
26455 Find the same name as well. If the same command is found and it is
26456 a dummy command, overwrite members. If it is not a dummy command,
26457 return zero.
26458 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
26459 (grub_command_find): If a dummy command is found, load a module
26460 and retry to find a command only once.
26461
26462 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
26463 make sure that each command is loaded.
26464
26465 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
26466 macro.
26467 (struct grub_command): Remove const from the member `name'.
26468 Add a new member `module_name'.
26469 (grub_register_command): Return grub_command_t.
26470
26471 * commands/help.c (grub_cmd_help): Call grub_command_find to make
26472 sure that each command is loaded.
26473
26474 * genmk.rb (PModule::rule): Specify a module name without the
26475 suffix ".mod" to gencmdlist.sh.
26476
26477 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26478
26479 * gencmdlist.sh: New file.
26480
26481 * genmk.rb (PModule::rule): Generate a rule for a command list.
26482 Clean command.lst.
26483 Generate command.lst from $(COMMANDFILES).
26484
26485 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
26486 (DATA): Added $(pkgdata_DATA).
26487 (install-local): Install files in $(pkgdata_DATA).
26488
26489 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26490
26491 * term/i386/pc/vga.c (debug_command): Removed.
26492 (GRUB_MOD_INIT): Do not register the command "debug".
26493
26494 From Hollis Blanchard:
26495 * commands/configfile.c: New file.
26496 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26497 commands/configfile.c.
26498 (pkgdata_MODULES): Added configfile.mod.
26499 (configfile_mod_SOURCES): New variable.
26500 (configfile_mod_CFLAGS): Likewise.
26501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26502 commands/configfile.c.
26503 (pkgdata_MODULES): Added configfile.mod.
26504 (configfile_mod_SOURCES): New variable.
26505 (configfile_mod_CFLAGS): Likewise.
26506 * util/grub-emu.c (main): Call grub_configfile_init and
26507 grub_configfile_fini.
26508 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
26509 prototype.
26510 [GRUB_UTIL] (grub_configfile_fini): Likewise.
26511
26512 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26513
26514 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26515 address.
26516
26517 * commands/help.c (grub_cmd_help): Do not print newlines after
26518 the last command in print_command_help.
26519
26520 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26521
26522 * commands/default.h: New file.
26523 * commands/timeout.h: Likewise.
26524 * normal/context.c: Likewise.
26525
26526 * util/misc.c: Do not include sys/times.h.
26527 Include sys/time.h and grub/machine/time.h.
26528 (grub_get_rtc): Rewritten with gettimeofday.
26529
26530 * util/grub-emu.c (main): Call grub_default_init and
26531 grub_timeout_init before grub_normal_init, and call
26532 grub_timeout_fini and grub_default_fini after grub_main.
26533
26534 * util/console.c (grub_ncurses_checkkey): Return the read
26535 character or -1.
26536
26537 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26538 timeouts.
26539
26540 * normal/main.c (read_config_file): Push MENU. If this fails,
26541 print an error and wait for a user input.
26542 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26543 If a menu is empty or an error occurs, pop MENU.
26544 (grub_normal_execute): Pop and free MENU after grub_menu_run
26545 returns.
26546
26547 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26548
26549 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26550 include time.h.
26551 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26552 without GRUB_UTIL.
26553 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26554 time.h.
26555 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26556 without GRUB_UTIL.
26557
26558 * include/grub/normal.h (struct grub_menu_list): New struct.
26559 (grub_menu_list_t): New type.
26560 (struct grub_context): New struct.
26561 (grub_context_t): New type.
26562 (grub_register_command): Got rid of EXPORT_FUNC.
26563 (grub_unregister_command): Likewise.
26564 (grub_context_get): New prototype.
26565 (grub_context_get_current_menu): Likewise.
26566 (grub_context_push_menu): Likewise.
26567 (grub_context_pop_menu): Likewise.
26568 [GRUB_UTIL] (grub_default_init): Likewise.
26569 [GRUB_UTIL] (grub_default_fini): Likewise.
26570 [GRUB_UTIL] (grub_timeout_init): Likewise.
26571 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26572
26573 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26574 commands/timeout.c and normal/context.c.
26575 (pkgdata_MODULES): Added default.mod and timeout.mod.
26576 (normal_mod_SOURCES): Added normal/context.c.
26577 (default_mod_SOURCES): New variable.
26578 (default_mod_CFLAGS): Likewise.
26579 (timeout_mod_SOURCES): Likewise.
26580 (timeout_mod_CFLAGS): Likewise.
26581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26582 conf/i386-pc.rmk.
26583 (pkgdata_MODULES): Added default.mod and timeout.mod.
26584 (normal_mod_SOURCES): Added normal/context.c.
26585 (default_mod_SOURCES): New variable.
26586 (default_mod_CFLAGS): Likewise.
26587 (timeout_mod_SOURCES): Likewise.
26588 (timeout_mod_CFLAGS): Likewise.
26589
26590 * Makefile.in (all-local): Added $(MKFILES).
26591
26592 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26593
26594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26595 (grub_emu_SOURCES): Likewise.
26596 (pkgdata_MODULES): Add `sun.mod'.
26597 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26599 `partmap/sun.c'.
26600 (pkgdata_MODULES): Add `sun.mod'.
26601 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26602 * include/grub/partition.h (grub_sun_partition_map_init): New
26603 prototype.
26604 (grub_sun_partition_map_fini): Likewise.
26605 * partmap/sun.c: New file.
26606 * util/grub-emu.c (main): Initialize and de-initialize the sun
26607 partitionmap support.
26608
26609 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26610
26611 This implements an Emacs-like menu entry editor.
26612
26613 * normal/menu_entry.c: New file.
26614
26615 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26616 characters to ASCII.
26617 (saved_char): New variable.
26618 (grub_ncurses_checkkey): Rewritten completely.
26619 (grub_ncurses_getkey): Likewise.
26620 (grub_ncurses_init): Call raw instead of cbreak.
26621
26622 * normal/menu.c (print_entry): Do not put a space.
26623 (init_page): Renamed to ...
26624 (grub_menu_init_page): ... this. All callers changed.
26625 (edit_menu_entry): Removed.
26626 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26627
26628 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26629
26630 * kern/misc.c (grub_vprintf): Call grub_refresh.
26631
26632 * normal/menu.c (DISP_LEFT): Renamed to ...
26633 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26634 * normal/menu.c (DISP_UP): Renamed to ...
26635 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26636 * normal/menu.c (DISP_RIGHT): Renamed to ...
26637 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26638 * normal/menu.c (DISP_DOWN): Renamed to ...
26639 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26640 * normal/menu.c (DISP_HLINE): Renamed to ...
26641 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26642 * normal/menu.c (DISP_VLINE): Renamed to ...
26643 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26644 * normal/menu.c (DISP_UL): Renamed to ...
26645 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26646 * normal/menu.c (DISP_UR): Renamed to ...
26647 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26648 * normal/menu.c (DISP_LL): Renamed to ...
26649 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26650 * normal/menu.c (DISP_LR): Renamed to ...
26651 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26652 * normal/menu.c (TERM_WIDTH): Renamed to ...
26653 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26654 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26655 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26656 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26657 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26658 * normal/menu.c (TERM_MARGIN): Renamed to ...
26659 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26660 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26661 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26662 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26663 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26664 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26665 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26666 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26667 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26668 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26669 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26670 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26671 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26672 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26673 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26674 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26675 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26676 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26677 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26678 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26679 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26680 All callers changed.
26681
26682 * include/grub/normal.h: New prototype.
26683
26684 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26685 normal/menu_entry.c.
26686 (normal_mod_SOURCES): Likewise.
26687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26688 (normal_mod_SOURCES): Likewise.
26689
26690 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26691
26692 * include/grub/normal.h (grub_halt_init): New prototype.
26693 (grub_halt_fini): Likewise.
26694 (grub_reboot_init): Likewise.
26695 (grub_reboot_fini): Likewise.
26696
26697 * util/grub-emu.c: Include signal.h.
26698 (main_env): New global variable.
26699 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26700 catch C-c.
26701 (grub_machine_fini): New function.
26702 (main): Call grub_halt_init and grub_reboot_init before
26703 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26704 Call setjmp with MAIN_ENV to go back afterwards.
26705 Call grub_machine_fini right before return.
26706
26707 * include/grub/util/misc.h: Include setjmp.h.
26708 (main_env): New prototype.
26709
26710 * include/grub/kernel.h (grub_machine_fini): New prototype.
26711 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26712 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26713
26714 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26715 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26716 * term/i386/pc/console.c (grub_console_fini): Likewise.
26717
26718 * util/i386/pc/misc.c: New file.
26719
26720 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26721 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26722 commands/i386/pc/reboot.c.
26723
26724 2005-02-14 Guillem Jover <guillem@hadrons.org>
26725
26726 * include/grub/dl.h (grub_dl_check_header): New prototype.
26727 (grub_arch_dl_check_header): Change return type to grub_err_t,
26728 remove size parameter and export function. Update all callers.
26729 * kern/dl.c (grub_dl_check_header): New function.
26730 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26731 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26732 are inside the core.
26733 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26734 independent ELF header checks.
26735 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26736 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26737 `grub_dl_check_header' instead of explicit checks. Check for the
26738 ELF type.
26739 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26740 `grub_dl_check_header' instead of explicit checks. Remove arch
26741 specific ELF header checks.
26742
26743 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26744 argument SIZE.
26745
26746 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26747
26748 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26749 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26750
26751 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26752
26753 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26754 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26755 (part_map_iterate): Clear `grub_errno' and return 0 if
26756 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26757 * partmap/amiga.c (amiga_partition_map_iterate): Return
26758 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26759 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26760
26761 2005-02-01 Guillem Jover <guillem@hadrons.org>
26762
26763 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26764 help info.
26765
26766 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26767
26768 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26769 Removed prototype.
26770 (grub_rescue_cmd_linux): New prototype.
26771 (grub_rescue_cmd_initrd): Likewise.
26772 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26773 `bi_rec'.
26774 (grub_linux_release_mem): Release the memory for the initrd.
26775 (grub_load_linux): Renamed from this...
26776 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26777 Changed `entry' not to be static. Loop over memory regions to
26778 find another one when the default fails.
26779 (grub_rescue_cmd_initrd): New function.
26780 (grub_linux_init): Remove function.
26781 (grub_linux_fini): Likewise.
26782 (GRUB_MOD_INIT): Register `initrd'.
26783 (GRUB_MOD_FINI): Unregister `initrd'.
26784 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26785 Function removed.
26786 (grub_linux_normal_fini): Likewise.
26787 (GRUB_MOD_INIT): Register `initrd'.
26788 (GRUB_MOD_FINI): Unregister `initrd'.
26789
26790 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26791
26792 * commands/help.c: New file.
26793 * normal/arg.c (show_help): Renamed to...
26794 (grub_arg_show_help): ... this.
26795 * commands/i386/pc/halt.c: New file.
26796 * commands/i386/pc/reboot.c: Likewise.
26797 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26798 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26799 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26800 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26801 variables.
26802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26803 `commands/help.c'.
26804 (pkgdata_MODULES): Add `help.mod'.
26805 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26806 * grub/i386/pc/init.h (grub_reboot): New prototype.
26807 (grub_halt): Likewise.
26808 * include/grub/normal.h (grub_arg_show_help): New prototype.
26809 (grub_help_init): Likewise.
26810 (grub_help_fini): Likewise.
26811 * util/grub-emu.c (main): Initialize and deinitialize the help
26812 command.
26813
26814 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26815
26816 * normal/command.c (grub_command_init): Fixed the description of
26817 the `set' and `unset' commands.
26818
26819 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26820
26821 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26822 function.
26823 * commands/ieee1275/halt.c: New file.
26824 * commands/ieee1275/reboot.c: Likewise.
26825 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26826 `__attribute__ ((unused))'. Some GCS related fixed.
26827 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26828 (grub_suspend_fini): Likewise.
26829 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26830 and `halt.mod'.
26831 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26832 (halt_mod_CFLAGS): New variables.
26833 * include/grub/powerpc/ieee1275/ieee1275.h
26834 (grub_ieee1275_interpret): New prototype.
26835
26836 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26837
26838 * include/grub/misc.h (memmove): New prototype.
26839 (memcpy): Likewise.
26840
26841 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26842
26843 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26844 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26845
26846 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26847
26848 * kern/misc.c (grub_strndup): Function rewritten.
26849
26850 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26851
26852 * normal/menu.c (TERM_WIDTH): Macro redefined.
26853 (TERM_TOP_BORDER_Y): Likewise.
26854 (draw_border): Replaced while-loop by a for-loop. Make the number
26855 of lines consistent with the number of lines displayed in
26856 print_entries. Added a margin below the rectangle.
26857 (print_entry): Make the entry fit in the rectangle.
26858 (print_entries): Display the scroll arrows next to the right
26859 border.
26860
26861 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26862
26863 * fs/minix.c (grub_minix_find_file): Reserve more space for
26864 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26865 `grub_strncpy' to copy `path' into it.
26866
26867 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26868
26869 Add the loopback device, a device via which files can be accessed
26870 as devices.
26871
26872 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26873 (pkgdata_MODULES): Add loopback.mod.
26874 (loopback_mod_SOURCES): New variable.
26875 (loopback_mod_CFLAGS): Likewise.
26876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26877 `disk/loopback.c'.
26878 (pkgdata_MODULES): Add loopback.mod.
26879 (loopback_mod_SOURCES): New variable.
26880 (loopback_mod_CFLAGS): Likewise.
26881 * disk/loopback.c: new file.
26882 * include/grub/normal.h (grub_loop_init): New prototype.
26883 (grub_loop_fini): New prototype.
26884 * util/grub-emu.c (main): Initialize and de-initialize loopback
26885 support.
26886 * include/grub/disk.h (grub_disk_dev_id): Add
26887 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26888
26889 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26890
26891 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26892 function.
26893 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26894 (suspend_mod_SOURCES): New variable.
26895 (suspend_mod_CFLAGS): Likewise.
26896 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26897 New prototype.
26898 * commands/ieee1275/suspend.c: New file.
26899
26900 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26901
26902 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26903 ((unused))' to `__attribute__ ((used))'.
26904 (GRUB_MOD_FINI): Likewise.
26905 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26906 * genmk.rb (PModule): Assign space to common symbols when linking
26907 modules.
26908
26909 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26910
26911 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26912 `unsigned' arguments to `grub_size_t'.
26913 (grub_malloc): Likewise.
26914 (grub_realloc): Likewise.
26915 (grub_memalign): Likewise.
26916 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26917 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26918 * util/misc.c (grub_malloc): Likewise.
26919 (grub_realloc): Likewise.
26920 * kern/mm.c (get_header_from_pointer): Change the casts to
26921 `unsigned' into a cast to `grub_size_t'.
26922
26923 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26924 point to `currnode' when `currnode' is changed.
26925
26926 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26927 Schottelius <nico-linux@schottelius.org>.
26928
26929 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26930
26931 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26932 (note_path): Remove variable.
26933 (GRUB_IEEE1275_NOTE_NAME): New macro.
26934 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26935 (grub_ieee1275_note_hdr): New structure.
26936 (grub_ieee1275_note_desc): Likewise.
26937 (grub_ieee1275_note): Likewise.
26938 (load_note): Remove `dir' argument. All callers updated. Remove
26939 `note_img' and `path'. Do not load a file from `note_path'.
26940 Initialize a struct grub_ieee1275_note and write that to `out'.
26941 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26942
26943 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26944
26945 * util/misc.c (grub_util_read_image): Revert last change. It
26946 called `grub_util_read_at', which seeks from the beginning of the
26947 file.
26948
26949 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26950
26951 * TODO: Add note about endianness in grub-mkimage.
26952 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26953 section.
26954 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26955 (grub_mkimage_SOURCES): New target.
26956 * include/grub/kernel.h (grub_start_addr): Remove variable.
26957 (grub_end_addr): Likewise.
26958 (grub_total_module_size): Likewise.
26959 (grub_kernel_image_size): Likewise.
26960 (GRUB_MODULE_MAGIC): New constant.
26961 (grub_module_info): New structure.
26962 (grub_arch_modules_addr): New prototype.
26963 (grub_get_end_addr): Remove prototype.
26964 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26965 * include/grub/powerpc/ieee1275/kernel.h: New file.
26966 * include/grub/util/misc.h (grub_util_get_fp_size): New
26967 prototype.
26968 (grub_util_read_at): Likewise.
26969 (grub_util_write_image_at): Likewise.
26970 * kern/main.c (grub_get_end_addr): Remove function.
26971 (grub_load_modules): Call grub_arch_modules_addr instead of using
26972 grub_end_addr. Look for a grub_module_info struct in memory. Use
26973 the grub_module_info fields instead of calling grub_get_end_addr
26974 as loop conditions. Move grub_add_unused_region code here.
26975 (grub_add_unused_region): Remove function.
26976 * kern/i386/pc/init.c: Include grub/cache.h.
26977 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26978 one call to add_mem_region.
26979 (grub_arch_modules_addr): New function.
26980 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26981 (grub_total_module_size): Likewise.
26982 Include grub/machine/kernel.h.
26983 (grub_arch_modules_addr): New function.
26984 * util/grub-emu.c (grub_end_addr): Remove variable.
26985 (grub_total_module_size): Likewise.
26986 (grub_arch_modules_addr): New function.
26987 * util/misc.c: Include unistd.h.
26988 (grub_util_get_fp_size): New function.
26989 (grub_util_read_at): Likewise.
26990 (grub_util_write_image_at): Likewise.
26991 (grub_util_read_image): Call grub_util_read_at.
26992 (grub_util_write_image): Call grub_util_write_image_at.
26993 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26994 additional memory in kernel_img for a struct grub_module_info.
26995 Fill in that grub_module_info.
26996 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26997
26998 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26999
27000 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
27001 New function.
27002 * include/grub/powerpc/ieee1275/ieee1275.h
27003 (grub_ieee1275_milliseconds): New prototype.
27004 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
27005 Change to 1000.
27006 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
27007 grub_ieee1275_milliseconds.
27008
27009 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
27010
27011 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
27012 variable.
27013 (find_options): New function.
27014 (cmain): Call find_options.
27015 * include/grub/powerpc/ieee1275/ieee1275.h
27016 (grub_ieee1275_realmode): New extern variable.
27017 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
27018 grub_map if grub_ieee1275_realmode is false.
27019
27020 2004-12-29 Marco Gerards <metgerards@student.han.nl>
27021
27022 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
27023 lines are inserted and make it work like readline. Reported by
27024 Vincent Pelletier <subdino2004@yahoo.fr>.
27025
27026 2004-12-28 Marco Gerards <metgerards@student.han.nl>
27027
27028 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
27029
27030 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
27031 `kern/powerpc/cache.S'.
27032
27033 2004-12-27 Marco Gerards <metgerards@student.han.nl>
27034
27035 * genmk.rb: Handle the `Program' class in the main loop. Written
27036 by Johan Rydberg <jrydberg@gnu.org>.
27037 (Program): New class.
27038 (programs): New variable.
27039 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
27040 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
27041 instead of "grub/kernel.h". Include <grub/machine/init.h>.
27042 (help_arch): Function removed.
27043 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
27044 `powerpc/libgcc.h' and `loader.h'.
27045 (pkgdata_PROGRAMS): New variable.
27046 (sbin_UTILITIES): Variable removed.
27047 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
27048 (grubof_SOURCES): Variable re-defined so it only includes the
27049 core functionality.
27050 (grubof_CFLAGS): Remove `-DGRUBOF'.
27051 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
27052 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
27053 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
27054 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
27055 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
27056 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
27057 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
27058 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
27059 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
27060 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
27061 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27062 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
27063 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
27064 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
27065 (pc_mod_CFLAGS): New variables.
27066 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
27067 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
27068 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
27069 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
27070 Moved from here...
27071 * include/grub/i386/pc/init.h (grub_os_area_addr)
27072 (rub_os_area_size): ... to here.
27073 * include/grub/powerpc/ieee1275/ieee1275.h
27074 (grub_ieee1275_entry_fn): Export symbol.
27075 * include/grub/powerpc/ieee1275/init.h: New file.
27076 * include/grub/powerpc/libgcc.h: Likewise.
27077 * include/grub/cache.h: Likewise.
27078 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
27079 <hollis@penguinppc.org>.
27080 * kern/dl.c: Include <grub/cache.h>.
27081 (grub_dl_flush_cache): New function.
27082 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
27083 for this module.
27084 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
27085 (grub_console_init): Removed prototypes.
27086 (grub_machine_init): Don't initialize the modules anymore.
27087 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
27088 static.
27089 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
27090 Macro undef removed.
27091 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
27092 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
27093 relocation `R_PPC_REL32'. Return an error when the relocation is
27094 unknown.
27095 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
27096 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
27097 * util/misc.c (grub_arch_sync_caches): Likewise.
27098
27099 2004-12-19 Marco Gerards <metgerards@student.han.nl>
27100
27101 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
27102 `symlist.c', add `grubof_symlist.c'.
27103 (symlist.c): Variable removed.
27104 (grubof_HEADERS): Variable added.
27105 (grubof_symlist.c): New target.
27106 (kernel_syms.lst): Use `grubof_HEADERS' instead of
27107 `kernel_img_HEADERS'.
27108 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
27109 * kern/powerpc/dl.c: New file.
27110 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
27111 Function removed.
27112 (grub_arch_dl_relocate_symbols): Likewise.
27113 (grub_register_exported_symbols): Likewise.
27114
27115 2004-12-13 Marco Gerards <metgerards@student.han.nl>
27116
27117 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
27118 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
27119 to fail instead. Reported by Vincent Pelletier
27120 <subdino2004@yahoo.fr>.
27121
27122 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
27123 it is not allocated. Reported by Vincent Pelletier
27124 <subdino2004@yahoo.fr>.
27125
27126 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
27127 output so the output looks better.
27128
27129 2004-12-04 Marco Gerards <metgerards@student.han.nl>
27130
27131 Modulize the partition map support and add support for the amiga
27132 partition map.
27133
27134 * commands/ls.c: Include <grub/partition.h> instead of
27135 <grub/machine/partition.h>.
27136 * kern/disk.c: Likewise.
27137 * kern/rescue.c: Likewise.
27138 * loader/i386/pc/chainloader.c: Likewise.
27139 * normal/cmdline.c: Likewise.
27140 * kern/powerpc/ieee1275/init.c: Likewise.
27141 (grub_machine_init): Call `grub_pc_partition_map_init',
27142 `grub_amiga_partition_map_init' and
27143 `grub_apple_partition_map_init'.
27144 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
27145 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
27146 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
27147 `partition.h' and `pc_partition.h'.
27148 (grub_setup_SOURCES): Remove
27149 `disk/i386/pc/partition.c'. Add `kern/partition.c',
27150 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27151 (grub_emu_SOURCES): Likewise.
27152 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
27153 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
27154 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
27155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27156 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
27157 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27158 (grubof_SOURCES): Likewise.
27159 * disk/i386/pc/partition.c: File removed.
27160 * disk/powerpc/ieee1275/partition.c: Likewise.
27161 * include/grub/powerpc/ieee1275/partition.h: Likewise.
27162 * include/grub/i386/pc/partition.h: Likewise.
27163 * kern/partition.c: New file.
27164 * partmap/amiga.c: Likewise.
27165 * partmap/apple.c: Likewise.
27166 * partmap/pc.c: Likewise.
27167 * include/grub/partition.h: Likewise..
27168 * include/grub/pc_partition.h: Likewise.
27169 * util/grub-emu.c: Include <grub/partition.h> instead of
27170 <grub/machine/partition.h>.
27171 (main): Call `grub_pc_partition_map_init',
27172 `grub_amiga_partition_map_init' and
27173 `grub_apple_partition_map_init' and deinitialize afterwards.
27174 * util/i386/pc/biosdisk.c: Include `#include
27175 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27176 `<grub/machine/partition.h>'.
27177 * util/i386/pc/grub-setup.c: Likewise.
27178 * util/i386/pc/biosdisk.c: Likewise.
27179 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
27180 partition information in case of a PC partition.
27181 * util/i386/pc/grub-setup.c: Include `#include
27182 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27183 `<grub/machine/partition.h>'.
27184 (setup): Only access the PC specific partition information in case
27185 of a PC partition.
27186
27187 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
27188
27189 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
27190 (grub_longjmp): Likewise.
27191 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
27192 20.
27193 * normal/powerpc/setjmp.S: New file.
27194 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27195 `normal/powerpc/setjmp.S'.
27196 (grubof_CFLAGS): Add `-DGRUBOF'.
27197 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
27198 [GRUB_UTIL && !GRUBOF].
27199
27200 2004-11-16 Marco Gerards <metgerards@student.han.nl>
27201
27202 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
27203 property named `name'. Correctly handle the error returned by
27204 `grub_ieee1275_finddevice' if a device can not be opened.
27205
27206 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
27207
27208 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
27209 `actual' for negativity.
27210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27211 kern/fshelp.c.
27212
27213 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27214
27215 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
27216 (PAGE_OFFSET): New macro.
27217 (CRTC_ADDR_PORT): Likewise.
27218 (CRTC_DATA_PORT): Likewise.
27219 (START_ADDR_HIGH_REGISTER): Likewise.
27220 (START_ADDR_LOW_REGISTER): Likewise.
27221 (GRAPHICS_ADDR_PORT): Likewise.
27222 (GRAPHICS_DATA_PORT): Likewise.
27223 (READ_MAP_REGISTER): Likewise.
27224 (INPUT_STATUS1_REGISTER): Likewise.
27225 (INPUT_STATUS1_VERTR_BIT): Likewise.
27226 (page): New variable.
27227 (wait_vretrace): New function.
27228 (set_read_map): Likewise.
27229 (set_start_address): Likewise.
27230 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
27231 the right page.
27232 (check_vga_mem): Take the page into account.
27233 (write_char): Likewise.
27234 (write_cursor): Likewise.
27235 (scroll_up): Likewise. Copy the page to the page that is not
27236 shown and switch between both pages.
27237 (grub_vga_putchar): Fix off by one error.
27238 (grub_vga_cls): Wait for the vertical retrace. Take the page into
27239 account.
27240
27241 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27242
27243 Add support for iso9660 (including rockridge).
27244
27245 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27246 (iso9660_mod_SOURCES): New variable.
27247 (iso9660_mod_CFLAGS): Likewise.
27248 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27249 * include/grub/fs.h (grub_iso9660_init): New prototype.
27250 * util/grub-emu.c (main): Call `grub_iso9660_init'.
27251 * fs/iso9660.c: New file.
27252
27253 * include/grub/misc.h (grub_strncat): New prototype.
27254 * kern/misc.c (grub_strncat): New function.
27255
27256 * fs/hfs.c (grub_hfs_mount): Translate the error
27257 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
27258 * fs/jfs.c (grub_jfs_mount): Likewise.
27259 * fs/ufs.c (grub_ufs_mount): Likewise.
27260
27261 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
27262
27263 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
27264 which initialized BAT registers.
27265 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
27266 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27267 Move from here...
27268 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
27269 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27270 ... to here.
27271 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
27272 (grub_mapclaim): Likewise.
27273 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
27274 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
27275 hand.
27276
27277 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
27278
27279 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
27280 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
27281 -ffreestanding and -msoft-float.
27282
27283 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
27284
27285 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
27286 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
27287 set in grub_ieee1275_flags.
27288
27289 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
27290
27291 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
27292 prototype.
27293 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
27294 grub_console_init first.
27295 Change the memory range used for grub_ieee1275_claim and
27296 grub_mm_init_region.
27297 Print an error message if the claim fails.
27298 Include <grub/misc.h>.
27299
27300 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
27301
27302 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
27303 Call grub_children_iterate for device nodes of type `scsi',
27304 `ide', or `ata'.
27305 (grub_ofdisk_open): Remove manual device alias resolution.
27306 Fix memory leak when device cannot be opened.
27307 * include/grub/powerpc/ieee1275/ieee1275.h
27308 (grub_children_iterate): New prototype.
27309 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
27310 New function.
27311 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27312 Return -1 if args.size was -1.
27313
27314 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27315
27316 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
27317 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
27318 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
27319 Open Firmware's memory for it; claim memory from _start to _end.
27320 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
27321 (_end): New extern.
27322 (_start): Zero BSS from __bss_start to _end.
27323 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
27324 New extern.
27325 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
27326
27327 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27328
27329 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
27330 -1 if args.base was -1.
27331
27332 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
27333
27334 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
27335 escape sequence instead of a literal ^L. Also call
27336 grub_ofconsole_gotoxy.
27337
27338 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
27339
27340 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
27341 void * arguments to grub_addr_t. All callers updated. Also make
27342 the `result' argument optional.
27343 (grub_ieee1275_release): change void * arguments to grub_addr_t.
27344 All callers updated.
27345
27346 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
27347
27348 * commands/ls.c (grub_ls_list_files): Use the string following the
27349 initial ')', if present, as the filesystem path.
27350 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
27351
27352 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
27353
27354 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
27355
27356 Make the source code of the menu interface more readable.
27357
27358 * normal/menu.c: Include grub/mm.h.
27359 (TERM_WIDTH): New macro.
27360 (TERM_HEIGHT): Likewise.
27361 (TERM_INFO_HEIGHT): Likewise.
27362 (TERM_MARGIN): Likewise.
27363 (TERM_SCROLL_WIDTH): Likewise.
27364 (TERM_TOP_BORDER_Y): Likewise.
27365 (TERM_LEFT_BORDER_X): Likewise.
27366 (TERM_BORDER_WIDTH): Likewise.
27367 (TERM_MESSAGE_HEIGHT): Likewise.
27368 (TERM_BORDER_HEIGHT): Likewise.
27369 (TERM_NUM_ENTRIES): Likewise.
27370 (TERM_FIRST_ENTRY_Y): Likewise.
27371 (TERM_ENTRY_WIDTH): Likewise.
27372 (TERM_CURSOR_X): Likewise.
27373 (draw_border): Use macros instead of magic numbers.
27374 (print_entry): Likewise.
27375 (print_entries): Likewise.
27376 (run_menu): Likewise. Also, handle the key 'e'.
27377 (run_menu_entry): Ignore empty command lines.
27378 (print_message): Added a new argument EDIT. If EDIT is true,
27379 print a different message.
27380 (init_page): Likewise.
27381 (edit_menu_entry): New function. Not implemented yet.
27382
27383 2004-09-17 Marco Gerards <metgerards@student.han.nl>
27384
27385 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
27386 can be loaded from normal mode.
27387
27388 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
27389 `multiboot.mod'.
27390 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
27391 (multiboot_mod_CFLAGS): New variables.
27392 * loader/i386/pc/linux_normal.c: New file.
27393 * loader/i386/pc/multiboot_normal.c: Likewise.
27394
27395 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
27396 attribute `unused'.
27397
27398 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
27399 `fdiro' to read the mode information from instead of `diro'.
27400
27401 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
27402 looking up a symlink.
27403
27404 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
27405 macro.
27406 * normal/command.c (grub_command_execute): Don't parse the
27407 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
27408 flags of the command.
27409
27410 * normal/menu.c (grub_menu_run): Fix typo.
27411
27412 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
27413
27414 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
27415
27416 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
27417 `y + 1' instead of `y - 1'.
27418
27419 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
27420
27421 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
27422
27423 From Hollis Blanchard <hollis@penguinppc.org>:
27424 * kern/misc.c (memmove): New alias for grub_memmove.
27425 (memcmp): New alias for grub_memcmp.
27426 (memset): New alias for grub_memset.
27427 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27428 Change "int handle" to "grub_ieee1275_phandle_t handle".
27429 * include/grub/powerpc/ieee1275/ieee1275.h
27430 (grub_ieee1275_get_property): Likewise.
27431
27432 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
27433
27434 Added normal mode command `chainloader' as module chain.mod, which
27435 depends on normal.mod and _chain.mod.
27436
27437 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
27438 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
27439 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
27440 Deleted prototype.
27441 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
27442 but arguments parsing moved to ...
27443 (grub_chainloader_cmd): ... here. New function.
27444 * include/grub/i386/pc/chainloader.h: New file.
27445 * loader/i386/pc/chainloader_normal.c: Likewise.
27446
27447 2004-09-11 Marco Gerards <metgerards@student.han.nl>
27448
27449 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
27450 (grub_mkimage_LDFLAGS): Likewise.
27451 (grub_emu_SOURCES): Likewise.
27452 (kernel_img_HEADERS): Added fshelp.h.
27453 * fs/ext2.c: Include <grub/fshelp.h>.
27454 (FILETYPE_REG): New macro.
27455 (FILETYPE_INO_REG): Likewise.
27456 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
27457 Changed all users.
27458 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
27459 all users.
27460 (grub_fshelp_node): New struct.
27461 (grub_ext2_data): Added member `diropen'. Changed member `inode'
27462 to a pointer.
27463 (grub_ext2_get_file_block): Removed function.
27464 (grub_ext2_read_block): New function.
27465 (grub_ext2_read_file): Replaced parameter `data' by `node'.
27466 This function was written.
27467 (grub_ext2_mount): Read the root inode. Create a diropen struct.
27468 (grub_ext2_find_file): Removed function.
27469 (grub_ext2_read_symlink): New function.
27470 (grub_ext2_iterate_dir): Likewise.
27471 (grub_ext2_open): Rewritten.
27472 (grub_ext2_dir): Rewritten.
27473 * include/grub/fshelp.h: New file.
27474 * fs/fshelp.c: Likewise.
27475
27476 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
27477
27478 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
27479 (print_message): Add a missing newline.
27480 (run_menu): Added timeout support.
27481 (run_menu_entry): New local function.
27482 (grub_menu_run): Added support for booting.
27483
27484 * kern/loader.c (grub_loader_is_loaded): New function.
27485
27486 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
27487 (grub_get_rtc): Exported.
27488
27489 * include/grub/i386/pc/time.h: Include grub/symbol.h.
27490 (grub_get_rtc): Exported.
27491
27492 * include/grub/normal.h (struct grub_command_list): Remove
27493 constant from the member `command'.
27494
27495 * include/grub/loader.h (grub_loader_is_loaded): Declared.
27496
27497 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
27498
27499 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
27500
27501 2004-08-28 Marco Gerards <metgerards@student.han.nl>
27502
27503 Add support for the JFS filesystem.
27504
27505 * fs/jfs.c: New file.
27506 * include/grub/fs.h (grub_jfs_init): New prototype.
27507 (grub_jfs_fini): New prototype.
27508 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
27509 (grub_emu_SOURCES): Likewise.
27510 (pkgdata_MODULES): Add jfs.mod.
27511 (jfs_mod_SOURCES): New variable.
27512 (jfs_mod_CFLAGS): Likewise.
27513 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
27514 (grubof_SOURCES): Likewise.
27515 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27516
27517 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27518 endian to the host endian.
27519 (grub_fat_utf16_to_utf8): Move function from there...
27520 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
27521 the endianness of the source string anymore.
27522 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27523
27524 2004-08-24 Marco Gerards <metgerards@student.han.nl>
27525
27526 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27527 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27528 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27529 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
27530
27531 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27532 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27533 for `node_found' and `it_dir'.
27534 (grub_hfs_dir): Add prototype for `dir_hook'.
27535
27536 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27537 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27538 and `indir32' to silence a gcc warning.
27539
27540 * include/grub/fs.h (grub_hfs_init): New prototype.
27541 (grub_hfs_fini): Likewise.
27542
27543
27544 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27545
27546 Each disk device has its own id now. This is useful to make use
27547 of multiple disk devices.
27548
27549 * include/grub/disk.h (grub_disk_dev_id): New enum.
27550 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27551 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27552
27553 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27554 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27555
27556 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27557 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27558
27559 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27560 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27561
27562 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27563 "id" which is used by the cache manager.
27564
27565 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27566 of just "GRUB".
27567
27568 2004-08-18 Marco Gerards <metgerards@student.han.nl>
27569
27570 * fs/hfs.c: New file.
27571 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27572 (grub_emu_SOURCES): Likewise.
27573 (pkgdata_MODULES): Add hfs.mod.
27574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27575 (grubof_SOURCES): Likewise.
27576 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27577
27578 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27579 * kern/misc.c (grub_strncasecmp): Add function.
27580
27581 2004-08-14 Marco Gerards <metgerards@student.han.nl>
27582
27583 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27584 with parentheses.
27585
27586 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27587 (grub_ext2_dir): In case the directory entry type is unknown, read
27588 it from the inode.
27589
27590 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27591
27592 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27593 grub_load_linux instead of grub_rescue_cmd_linux as second
27594 argument of grub_rescue_register_command.
27595
27596 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27597
27598 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27599
27600 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27601 function.
27602 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27603 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27604 `loader/powerpc/ieee1275/linux.c',
27605 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27606 * include/grub/powerpc/ieee1275/ieee1275.h
27607 (grub_ieee1275_release): New prototype.
27608 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27609 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27610 normal, boot, linux and linux_normal.
27611 * loader/powerpc/ieee1275/linux.c: New file.
27612 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27613
27614 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27615
27616 * normal/arg.c (grub_arg_parse): Correct error handling after
27617 reallocating the argumentlist (check if `argl' is not null instead
27618 of checking if `args' is not null).
27619 * kern/mm.c (grub_realloc): Return the same pointer when using the
27620 same region, instead of returning the header address.
27621
27622 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27623
27624 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27625 one block instead of two when looking for the initial partition.
27626 (grub_partition_probe): Initialize the local variable `p' with 0.
27627 Use base 10 for the grub_strtoul call.
27628 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27629 need for one local variable.
27630 (grub_strtoul): Don't add the new value to `num', instead of that
27631 just assign it.
27632
27633 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27634
27635 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27636 (pxeboot_img_SOURCES): New variable.
27637 (pxeboot_img_ASFLAGS): Likewise.
27638 (pxeboot_img_LDFLAGS): Likewise.
27639 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27640 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27641 <lode_leroy@hotmail.com>.
27642
27643 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27644
27645 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27646 there was no input.
27647
27648 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27649
27650 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27651 the history buffer logic.
27652
27653 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27654
27655 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27656 (FILETYPE_INO_SYMLINK): New macros.
27657 (grub_ext2_find_file): Check if the node is a directory using the
27658 inode stat information instead of using the filetype in the
27659 dirent. Exclude the first character of an absolute symlink.
27660 (grub_ext2_dir): Mask out the filetype part of the mode member of
27661 the inode.
27662
27663 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27664
27665 Add support for UFS version 1 and 2. Add support for the minix
27666 filesystem version 1 and 2, both the variants with 14 and 30 long
27667 filenames.
27668
27669 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27670 fs/minix.c.
27671 (grub_emu_SOURCES): Likewise.
27672 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27673 (ufs_mod_SOURCES): New variable.
27674 (ufs_mod_CFLAGS): Likewise.
27675 (minix_mod_SOURCES): Likewise.
27676 (minix_mod_CFLAGS): Likewise.
27677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27678 fs/minix.c.
27679 (grubof_SOURCES): Likewise.
27680 * fs/ufs.c: New file.
27681 * fs/minix.c: New file.
27682 * include/grub/fs.h (grub_ufs_init): New prototype.
27683 (grub_ufs_fini): Likewise.
27684 (grub_minix_init): Likewise.
27685 (grub_minix_fini): Likewise.
27686 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27687 minix fs.
27688
27689 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27690
27691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27692 commands/ls.c, commands/terminal.c, commands/boot.c,
27693 commands/cmp.c and commands/cat.c.
27694 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27695
27696 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27697 "env.h"
27698
27699 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27700
27701 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27702 and grub_, respectively. Because the conversion is trivial and
27703 mechanical, I omit the details here. Please refer to the CVS
27704 if you need more information.
27705
27706 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27707
27708 * include/pupa: Renamed to ...
27709 * include/grub: ... this.
27710 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27711 * util/i386/pc/grub-mkimage.c: ... this.
27712 * util/i386/pc/pupa-setup.c: Renamed to ...
27713 * util/i386/pc/grub-setup.c: ... this.
27714 * util/pupa-emu.c: Renamed to ...
27715 * util/grub-emu.c: ... this.
27716
27717 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27718
27719 Add support for the newworld apple macintosh (PPC). This has been
27720 tested on the powerbook 2000 only. It only adds support for
27721 generic ieee1275 functions, console and disk support. This should
27722 be easy to port to other architectures with support for Open
27723 Firmware.
27724
27725 * configure.ac: Accept the powerpc as host_cpu. In the case of
27726 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27727 specific tests are only executed while building for the i386.
27728 Inverse test for crosscompile.
27729 * genmk.rb (Utility): Allow assembler files.
27730 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27731 * conf/powerpc-ieee1275.rmk: New file.
27732 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27733 * disk/powerpc/ieee1275/partition.c: Likewise.
27734 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27735 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27736 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27737 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27738 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27739 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27740 * include/pupa/powerpc/ieee1275/loader.h
27741 * include/pupa/powerpc/setjmp.h: Likewise.
27742 * include/pupa/powerpc/types.h: Likewise.
27743 * kern/powerpc/ieee1275/init.c: Likewise.
27744 * kern/powerpc/ieee1275/openfw.c: Likewise.
27745 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27746
27747 These files were written by Johan Rydberg
27748 (jrydberg@night.trouble.net) and I only modified them slightly.
27749
27750 * boot/powerpc/ieee1275/cmain.c: New file.
27751 * boot/powerpc/ieee1275/crt0.S: Likewise.
27752 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27753 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27754
27755 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27756
27757 * Makefile.in: Update copyright.
27758 * genmodsrc.sh: Likewise.
27759 * gensymlist.sh: Likewise.
27760 * term/i386/pc/vga.c: Indent correctly.
27761
27762 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27763 bugreporting address.
27764 * util/i386/pc/pupa-setup.c (usage): Likewise,
27765 (main): Call pupa_ext2_init and pupa_ext2_fini.
27766
27767 * fs/fat.c (log2): Renamed to ...
27768 (fat_log2): ... this.
27769 All callers changed.
27770 * kern/misc.c (memcpy): Alias to pupa_memmove.
27771 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27772 lvalue cast.
27773 * util/console.c (pupa_ncurses_fini): Return 0.
27774
27775 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27776 Move fail label here.
27777 [__GNU__]: Don't warn when using stat.
27778 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27779 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27780 long int. Use strtol instead of strtoul.
27781
27782 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27783
27784 * commands/boot.c: New file.
27785 * commands/cat.c: Likewise.
27786 * commands/cmp.c: Likewise.
27787 * commands/ls.c: Likewise.
27788 * commands/terminal.c: Likewise.
27789 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27790 (pupa_register_command): Changed interface to match the new
27791 argument parser.
27792 (pupa_command_execute): Changed (almost rewritten) so it uses
27793 pupa_split_command. Added support for setting variables using the
27794 syntax `foo=bar'.
27795 (rescue_command): Changed to work with the new argument parser.
27796 (terminal_command): Moved from here to commands/terminal.c.
27797 (set_command): New function.
27798 (unset_command): New function.
27799 (insmod_command): New function.
27800 (rmmod_command): New function.
27801 (lsmod_command): New function.
27802 (pupa_command_init): Don't initialize the command terminal
27803 anymore. Initialize the commands set, unset, insmod, rmmod and
27804 lsmod.
27805 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27806 (kernel_img_HEADERS): Add arg.h and env.h.
27807 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27808 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27809 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27810 normal/arg.c.
27811 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27812 terminal.mod.
27813 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27814 (boot_mod_SOURCES): New variable.
27815 (terminal_mod_SOURCES): Likewise.
27816 (ls_mod_SOURCES): Likewise.
27817 (cmp_mod_SOURCES): Likewise.
27818 (cat_mod_SOURCES): Likewise.
27819
27820 * normal/arg.c: New file.
27821 * kern/env.c: Likewise.
27822 * include/pupa/arg.h: Likewise.
27823 * include/pupa/env.h: Likewise.
27824 * font/manager.c (font_command): Changed to match argument parsing
27825 interface changes.
27826 (PUPA_MOD_INIT): Likewise.
27827 * hello/hello.c (pupa_cmd_hello): Likewise.
27828 (PUPA_MOD_INIT): Likewise.
27829 * include/pupa/disk.h: Include <pupa/device.h>.
27830 (pupa_print_partinfo): New prototype.
27831 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27832 (pupa_dl_get_prefix): Likewise.
27833 * include/pupa/misc.h: Include <pupa/err.h>.
27834 (pupa_isgraph): New prototype.
27835 (pupa_isdigit): Likewise.
27836 (pupa_split_cmdline): Likewise.
27837 * include/pupa/normal.h: Include <pupa/arg.h>.
27838 (pupa_command): Changed the prototype of the member `func' to
27839 match the argument parsing interface. Added member `options'.
27840 (pupa_register_command): Updated to match function.
27841 (pupa_arg_parse): New prototype.
27842 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27843 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27844 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27845 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27846 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27847 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27848 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27849 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27850 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27851 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27852 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27853 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27854 * kern/disk.c: Include <pupa/file.h>.
27855 (pupa_print_partinfo): New function.
27856 * kern/dl.c: Include <pupa/env.h>.
27857 (pupa_dl_dir): Variable removed.
27858 (pupa_dl_load): Use the environment variable `prefix' instead of
27859 the variable pupa_dl_dir.
27860 (pupa_dl_set_prefix): Function removed.
27861 (pupa_dl_get_prefix): Likewise.
27862 * kern/i386/pc/init.c: Include <pupa/env.h>.
27863 (pupa_machine_init): Use the environment variable `prefix' instead of
27864 using pupa_dl_set_prefix to set the prefix.
27865 * kern/main.c: Include <pupa/env.h>.
27866 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27867 using pupa_dl_get_prefix to get the prefix.
27868 * kern/misc.c: Include <pupa/env.h>.
27869 (pupa_isdigit): New function.
27870 (pupa_isgraph): Likewise.
27871 (pupa_ftoa): Likewise.
27872 (pupa_vsprintf): Added support for printing values of the type
27873 `double'. Make it possible to format variable output when using
27874 formatting like `%1.2%f'.
27875 (pupa_split_cmdline): New function.
27876 * kern/rescue.c: Include <pupa/env.h>.
27877 (next_word): Removed function.
27878 (pupa_rescue_cmd_prefix): Likewise.
27879 (pupa_rescue_cmd_set): New function.
27880 (pupa_rescue_cmd_unset): New function.
27881 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27882 split the command line instead of splitting it here. Added
27883 support for setting variables using the syntax `foo=bar'. Don't
27884 initialize the prefix command anymore. Initialized the set and
27885 unset commands.
27886 * normal/cmdline.c: Include <pupa/env.h>.
27887 (pupa_tab_complete): Added prototypes for print_simple_completion,
27888 print_partition_completion, add_completion, iterate_commands,
27889 iterate_dev, iterate_part and iterate_dir. Moved code to print
27890 partition information from here to kern/disk.c.
27891 (pupa_cmdline_run): Don't check if the function exists anymore.
27892 * normal/main.c: Include <pupa/env.h>.
27893 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27894 instead of using pupa_dl_get_prefix to get the prefix.
27895 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27896 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27897 warning.
27898 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27899 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27900 ((unused))' to silence a gcc warning.
27901 (pupa_vga_setcolor): Likewise.
27902 (debug_command): Changed to match argument parsing
27903 interface changes.
27904 * util/pupa-emu.c: Include <pupa/env.h>.
27905 (options): Added 0's for unused fields to silence a gcc warning.
27906 (argp): Likewise.
27907 (main): Use the environment variable `prefix' instead of using
27908 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27909 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27910 and terminal.
27911
27912 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27913 * util/misc.c: Include <malloc.h>.
27914 (pupa_malloc): Rewritten so errors are correctly reported.
27915 (pupa_realloc): Likewise.
27916 (pupa_memalign): Likewise.
27917 (pupa_mm_init_region): Declare unused variables with
27918 `__attribute__ ((unused))' to silence a gcc warning.
27919 * normal/i386/setjmp.S: Remove tab at the end of the file to
27920 silence a gcc warning.
27921 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27922 variables with `__attribute__ ((unused))' to silence a gcc
27923 warning.
27924 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27925 local variable i unsigned to silence a gcc warning.
27926
27927 * kern/term.c: Include <pupa/misc.h>.
27928 (pupa_more_lines): New variable.
27929 (pupa_more): Likewise.
27930 (pupa_putcode): When the pager is active pause at the end of every
27931 screen.
27932 (pupa_set_more): New function.
27933 * include/pupa/term.h (pupa_set_more): New prototype.
27934
27935
27936 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27937
27938 Now this project is GRUB 2 rather than PUPA. The location of
27939 the CVS repository was moved to GRUB's.
27940
27941 * configure.ac: Use bug-grub as the reporting address.
27942 Use GRUB instead of PUPA.
27943 Change the version number to 1.90.
27944
27945 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27946
27947 * genkernsyms.sh: Updated copyright information.
27948 * genmk.rb: Likewise.
27949 * genmodsrc.sh: Likewise.
27950 * gensymlist.sh: Likewise.
27951 * boot/i386/pc/boot.S: Likewise.
27952 * boot/i386/pc/diskboot.S: Likewise.
27953 * disk/i386/pc/biosdisk.c: Likewise.
27954 * disk/i386/pc/partition.c: Likewise.
27955 * font/manager.c: Likewise.
27956 * fs/ext2.c: Likewise.
27957 * fs/fat.c: Likewise.
27958 * include/pupa/boot.h: Likewise.
27959 * include/pupa/device.h: Likewise.
27960 * include/pupa/disk.h: Likewise.
27961 * include/pupa/dl.h: Likewise.
27962 * include/pupa/elf.h: Likewise.
27963 * include/pupa/err.h: Likewise.
27964 * include/pupa/file.h: Likewise.
27965 * include/pupa/font.h: Likewise.
27966 * include/pupa/fs.h: Likewise.
27967 * include/pupa/kernel.h: Likewise.
27968 * include/pupa/loader.h: Likewise.
27969 * include/pupa/misc.h: Likewise.
27970 * include/pupa/mm.h: Likewise.
27971 * include/pupa/net.h: Likewise.
27972 * include/pupa/normal.h: Likewise.
27973 * include/pupa/rescue.h: Likewise.
27974 * include/pupa/setjmp.h: Likewise.
27975 * include/pupa/symbol.h: Likewise.
27976 * include/pupa/term.h: Likewise.
27977 * include/pupa/types.h: Likewise.
27978 * include/pupa/i386/setjmp.h: Likewise.
27979 * include/pupa/i386/types.h: Likewise.
27980 * include/pupa/i386/pc/biosdisk.h: Likewise.
27981 * include/pupa/i386/pc/boot.h: Likewise.
27982 * include/pupa/i386/pc/console.h: Likewise.
27983 * include/pupa/i386/pc/init.h: Likewise.
27984 * include/pupa/i386/pc/kernel.h: Likewise.
27985 * include/pupa/i386/pc/linux.h: Likewise.
27986 * include/pupa/i386/pc/loader.h: Likewise.
27987 * include/pupa/i386/pc/memory.h: Likewise.
27988 * include/pupa/i386/pc/multiboot.h: Likewise.
27989 * include/pupa/i386/pc/partition.h: Likewise.
27990 * include/pupa/i386/pc/time.h: Likewise.
27991 * include/pupa/i386/pc/vga.h: Likewise.
27992 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27993 * include/pupa/util/getroot.h: Likewise.
27994 * include/pupa/util/misc.h: Likewise.
27995 * include/pupa/util/resolve.h: Likewise.
27996 * kern/device.c: Likewise.
27997 * kern/disk.c: Likewise.
27998 * kern/dl.c: Likewise.
27999 * kern/err.c: Likewise.
28000 * kern/file.c: Likewise.
28001 * kern/fs.c: Likewise.
28002 * kern/loader.c: Likewise.
28003 * kern/main.c: Likewise.
28004 * kern/misc.c: Likewise.
28005 * kern/mm.c: Likewise.
28006 * kern/rescue.c: Likewise.
28007 * kern/term.c: Likewise.
28008 * kern/i386/dl.c: Likewise.
28009 * kern/i386/pc/init.c: Likewise.
28010 * kern/i386/pc/lzo1x.S: Likewise.
28011 * kern/i386/pc/startup.S: Likewise.
28012 * loader/i386/pc/chainloader.c: Likewise.
28013 * loader/i386/pc/linux.c: Likewise.
28014 * loader/i386/pc/multiboot.c: Likewise.
28015 * normal/cmdline.c: Likewise.
28016 * normal/command.c: Likewise.
28017 * normal/main.c: Likewise.
28018 * normal/menu.c: Likewise.
28019 * normal/i386/setjmp.S: Likewise.
28020 * term/i386/pc/console.c: Likewise.
28021 * term/i386/pc/vga.c: Likewise.
28022 * util/console.c: Likewise.
28023 * util/genmoddep.c: Likewise.
28024 * util/misc.c: Likewise.
28025 * util/pupa-emu.c: Likewise.
28026 * util/resolve.c: Likewise.
28027 * util/unifont2pff.rb: Likewise.
28028 * util/i386/pc/biosdisk.c: Likewise.
28029 * util/i386/pc/getroot.c: Likewise.
28030 * util/i386/pc/pupa-mkimage.c: Likewise.
28031 * util/i386/pc/pupa-setup.c: Likewise.
28032
28033 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
28034
28035 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
28036 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
28037 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
28038 reading and reset it after reading.
28039 (pupa_ext2_close): Return PUPA_ERR_NONE.
28040
28041 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
28042 Correct value.
28043 (struct linux_kernel_header): Add kernel_version and
28044 initrd_addr_max.
28045 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
28046 pupa_file_read succeeds.
28047 (pupa_rescue_cmd_initrd): Implement.
28048
28049 2003-12-03 Marco Gerards <metgerards@student.han.nl>
28050
28051 * fs/ext2.c (pupa_ext2_label): New function.
28052 (pupa_ext2_fs): Added label.
28053 * fs/fat.c (pupa_fat_label): New function.
28054 (pupa_fat_fs): Added label.
28055 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
28056
28057 * kern/misc.c (pupa_strndup): New function.
28058 * include/pupa/misc.h (pupa_strndup): New prototype.
28059
28060 * include/pupa/normal.h: Include <pupa/err.h>.
28061 (pupa_set_history): New prototype.
28062 (pupa_iterate_commands): New prototype.
28063 * normal/cmdline.c: Include <pupa/machine/partition.h>,
28064 <pupa/disk.h>, <pupa/file.h>.
28065 (hist_size): New variable.
28066 (hist_lines): Likewise.
28067 (hist_end): Likewise.
28068 (hist_used): Likewise.
28069 (pupa_set_history): New function.
28070 (pupa_history_get): Likewise.
28071 (pupa_history_add): Likewise.
28072 (pupa_history_replace): Likewise.
28073 (pupa_tab_complete): Likewise.
28074 (pupa_cmdline_run): Added tab completion and history buffer. Tab
28075 completion shows partitionnames while completing partitions, this
28076 feature was suggested by Jeff Bailey.
28077 * normal/command.c (pupa_iterate_commands): New function.
28078 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
28079 (pupa_normal_init): Initialize history buffer.
28080 (PUPA_MOD_INIT): Likewise.
28081 (pupa_normal_fini): Free the history buffer.
28082 (PUPA_MOD_FINI): Likewise.
28083
28084 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
28085 key.
28086
28087 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
28088 * configure.ac [i386]: Check for regparam bug.
28089 (NESTED_FUNC_ATTR) [! i386]: Defined.
28090
28091 2003-11-17 Marco Gerards <metgerards@student.han.nl>
28092
28093 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
28094 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
28095 (pupa_emu_SOURCES): New variable.
28096 (pupa_emu_LDFLAGS): Likewise.
28097 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
28098 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
28099 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
28100 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28101 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
28102 (pupa_jmp_buf): New typedef.
28103 (pupa_setjmp) [PUPA_UTIL]: New macro.
28104 (pupa_longjmp) [PUPA_UTIL]: Likewise.
28105 * include/pupa/term.h (struct pupa_term): New member `refresh'.
28106 (pupa_refresh): New prototype.
28107 * include/pupa/util/getroot.h: New file.
28108 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
28109 it.
28110 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
28111 (pupa_rescue_cmd_cat): Likewise.
28112 (pupa_rescue_cmd_ls): Likewise.
28113 (pupa_rescue_cmd_testload): Likewise.
28114 (pupa_rescue_cmd_lsmod): Likewise.
28115 * normal/cmdline.c (pupa_cmdline_get): Likewise.
28116 * normal/menu.c (run_menu): Likewise.
28117 * kern/term.c (pupa_cls): Likewise.
28118 (pupa_refresh): New function.
28119 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
28120 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28121 * util/console.c: New file.
28122
28123 * util/i386/pc/getroot.c: New file.
28124 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
28125 (pupa_putchar): New function.
28126 (pupa_refresh): Likewise.
28127 (xgetcwd): Function moved to ...
28128 (strip_extra_slashes): Likewise.
28129 (get_prefix): Likewise.
28130 * util/i386/pc/getroot.c: ... here.
28131 (find_root_device): Function moved and renamed to...
28132 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
28133 Changed all callers.
28134 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
28135 and renamed to...
28136 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
28137 Changed all callers.
28138 * util/misc.c (pupa_memalign): New function.
28139 (pupa_mm_init_region): Likewise.
28140 (pupa_register_exported_symbols): Likewise.
28141 (pupa_putchar): Function removed.
28142 * util/pupa-emu.c: New file.
28143
28144 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
28145
28146 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
28147 (_multiboot_mod_SOURCES): New variable.
28148 (_multiboot_mod_CFLAGS): Likewise.
28149 * loader/i386/pc/multiboot.c: New file.
28150 * include/pupa/i386/pc/multiboot.h: Likewise.
28151 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
28152 (pupa_multiboot_real_boot): New function.
28153 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
28154 (pupa_multiboot_real_boot): New prototype.
28155 (pupa_rescue_cmd_multiboot): Likewise
28156 (pupa_rescue_cmd_module): Likewise.
28157
28158 * kern/loader.c (pupa_loader_set): Continue when
28159 pupa_loader_unload_func() fails.
28160 (pupa_loader_unset): New function.
28161 * include/pupa/loader.h (pupa_loader_unset): New prototype.
28162
28163 * kern/misc.c (pupa_stpcpy): New function.
28164 * include/pupa/misc.h (pupa_stpcpy): New prototype.
28165
28166 2003-11-12 Marco Gerards <metgerards@student.han.nl>
28167
28168 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
28169 for available extensions.
28170
28171 * include/pupa/i386/pc/time.h: New file.
28172 * kern/disk.c: Include <pupa/machine/time.h>.
28173 (PUPA_CACHE_TIMEOUT): New macro.
28174 (pupa_last_time): New variable.
28175 (pupa_disk_open): Flush the cache when there was a timeout.
28176 (pupa_disk_close): Reset the timer.
28177 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
28178 pupa_currticks.
28179 * util/misc.c: Include <sys/times.h>
28180 (pupa_get_rtc): New function.
28181
28182 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28183
28184 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
28185 as blocks.
28186 (pupa_ext2_get_file_block): Use blocks member.
28187
28188 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
28189 first block. Return -1 instead of pupa_errno on error.
28190
28191 2003-10-27 Marco Gerards <metgerards@student.han.nl>
28192
28193 * README: In the pupa-mkimage example use _chain instead of chain
28194 and ext2 instead of fat.
28195 * TODO: Replace ext2fs with jfs as an example. Add an item for
28196 adding journal playback for ext2fs.
28197 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
28198 (pkgdata_MODULES): Added ext2.mod.
28199 (ext2_mod_SOURCES): New variable.
28200 (ext2_mod_CFLAGS): Likewise.
28201 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
28202 * include/pupa/misc.h (pupa_strncpy): New prototype.
28203 (pupa_strcat): Likewise.
28204 (pupa_strncmp): Likewise.
28205 * kern/misc.c (pupa_strcat): Enable function.
28206 (pupa_strncpy): New function.
28207 (pupa_strncmp): Likewise.
28208 * fs/ext2.c: New file.
28209
28210 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
28211 when the read failed before retrying.
28212 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
28213 (_FILE_OFFSET_BITS): Likewise.
28214 * configure.ac: Added AC_SYS_LARGEFILE.
28215
28216 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28217
28218 * genmk.rb (PModule#rule): Make sure to get only symbol names
28219 from the output of nm.
28220 Reported by Robert Millan <rmh.grub@aybabtu.com>.
28221
28222 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28223
28224 I forgot to check in these changes for a long time. This adds
28225 incomplete support for VGA console, and this is still very
28226 buggy. Also, a lot of consideration is required for I18N,
28227 UNICODE, and VGA font issues. Therefore, assume that this is
28228 such that "better than nothing".
28229
28230 * font/manager.c: New file.
28231 * include/pupa/font.h: Likewise.
28232 * include/pupa/i386/pc/vga.h: Likewise.
28233 * term/i386/pc/vga.c: Likewise.
28234 * util/unifont2pff.rb: Likewise.
28235
28236 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
28237 (pkgdata_MODULES): Added vga.mod and font.mod.
28238 (vga_mod_SOURCES): New variables.
28239 (vga_mod_CFLAGS): Likewise.
28240 (font_mod_SOURCES): Likewise.
28241 (font_mod_CFLAGS): Likewise.
28242
28243 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
28244
28245 * include/pupa/term.h: Include pupa/err.h.
28246 (struct pupa_term): Added init and fini.
28247 Changed the argument of putchar to pupa_uint32_t.
28248
28249 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
28250 (pupa_console_real_putchar): New prototype.
28251 (pupa_console_putchar): Removed.
28252 (pupa_console_checkkey): Exported.
28253 (pupa_console_getkey): Likewise.
28254
28255 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
28256 characters.
28257
28258 * kern/term.c (pupa_term_set_current): Rewritten.
28259 (pupa_putchar): Likewise.
28260 (pupa_putcode): New function.
28261
28262 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
28263 (pupa_console_real_putchar): ... this.
28264 (pupa_vga_set_mode): New function.
28265 (pupa_vga_get_font): Likewise.
28266
28267 * normal/command.c: Include pupa/term.h.
28268 (terminal_command): New function.
28269 (pupa_command_init): Register the command "terminal".
28270
28271 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
28272 (DISP_UP): Likewise.
28273 (DISP_RIGHT): Likewise.
28274 (DISP_DOWN): Likewise.
28275 (DISP_HLINE): Likewise.
28276 (DISP_VLINE): Likewise.
28277 (DISP_UL): Likewise.
28278 (DISP_UR): Likewise.
28279 (DISP_LL): Likewise.
28280 (DISP_LR): Likewise.
28281
28282 * term/i386/pc/console.c (pupa_console_putchar): New function.
28283
28284 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
28285
28286 * util/resolve.c (pupa_util_resolve_dependencies): BUG
28287 FIX. Reverse the path_list.
28288
28289 * include/pupa/normal.h: Export pupa_register_command and
28290 pupa_unregister_command.
28291
28292 * hello/hello.c (pupa_cmd_hello): New module.
28293 * conf/i386-pc.rmk: Added hello.mod.
28294
28295 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
28296
28297 * kern/i386/pc/lzo1x.S: New file.
28298
28299 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
28300 (compress_kernel): New variable.
28301 (generate_image): Heavily modified to support compressing a
28302 large part of the core image.
28303
28304 * util/misc.c (pupa_util_read_image): Fix a file descriptor
28305 leak.
28306 (pupa_util_load_image): New function.
28307
28308 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
28309 (pupa_compressed_size): New variable.
28310 (codestart): Enable Gate A20 here.
28311 Decompress the compressed part of the core image.
28312 Rearrange the code to put functions and variables which are
28313 required for initialization in the non-compressed part.
28314 Include lzo1x.S.
28315
28316 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
28317 here.
28318
28319 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
28320
28321 * include/pupa/i386/pc/kernel.h
28322 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
28323 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
28324 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28325 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28326 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
28327
28328 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
28329
28330 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
28331 (Utility#rule): Likewise.
28332
28333 * configure.ac: Check if LZO is available.
28334
28335 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
28336
28337 * include/pupa/normal.h: New file.
28338 * include/pupa/setjmp.h: Likewise.
28339 * include/pupa/i386/setjmp.h: Likewise.
28340 * normal/cmdline.c: Likewise.
28341 * normal/command.c: Likewise.
28342 * normal/main.c: Likewise.
28343 * normal/menu.c: Likewise.
28344 * normal/i386/setjmp.S: Likewise.
28345
28346 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
28347 (pupa_rescue_cmd_initrd): Likewise.
28348
28349 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
28350 Likewise.
28351
28352 * kern/i386/pc/startup.S (translation_table): New variable.
28353 (translate_keycode): New function.
28354 (pupa_console_getkey): Call translate_keycode.
28355
28356 * kern/rescue.c (attempt_normal_mode): New function.
28357 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
28358 it failed, print a message.
28359
28360 * kern/mm.c (pupa_real_malloc): Print more information when a
28361 free magic is broken.
28362 (pupa_free): If the first free header is not free actually, set
28363 it to P.
28364
28365 * kern/main.c (pupa_load_normal_mode): Just load the module
28366 "normal".
28367 (pupa_main): Don't print the message
28368 "Entering into rescue mode..." here.
28369
28370 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
28371 Declared.
28372 (pupa_rescue_cmd_initrd): Likewise.
28373 (pupa_rescue_cmd_initrd): Likewise.
28374
28375 * include/pupa/symbol.h (FUNCTION): Specify the type.
28376 (VARIABLE): Likewise.
28377
28378 * include/pupa/err.h (pupa_err_t): Added
28379 PUPA_ERR_UNKNOWN_COMMAND.
28380
28381 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
28382 (pupa_dl_get_prefix): Likewise.
28383
28384 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
28385 Added _chain.mod and _linux.mod instead of chain.mod and
28386 linux.mod.
28387 (chain_mod_SOURCES): Renamed to ...
28388 (_chain_mod_SOURCES): ... this.
28389 (chain_mod_CFLAGS): Renamed to ...
28390 (_chain_mod_CFLAGS): ... this.
28391 (linux_mod_SOURCES): Renamed to ...
28392 (_linux_mod_SOURCES): ... this.
28393 (linux_mod_CFLAGS): Renamed to ...
28394 (_linux_mod_CFLAGS): ... this.
28395 (normal_mod_SOURCES): New variable.
28396 (normal_mod_CFLAGS): Likewise.
28397 (normal_mod_ASFLAGS): Likewise.
28398
28399 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
28400
28401 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
28402 possible.
28403
28404 * kern/dl.c (pupa_dl_ref): Refer depending modules
28405 recursively.
28406 (pupa_dl_unref): Unrefer depending modules recursively.
28407 Don't call pupa_dl_unload implicitly, because PUPA can crash if
28408 a module is unloaded before one depending on that module is
28409 unloaded.
28410 (pupa_dl_unload): Unload depending modules explicitly,
28411 if possible.
28412
28413 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
28414
28415 * include/pupa/i386/pc/linux.h: New file.
28416 * loader/i386/pc/linux.c: Likewise.
28417
28418 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
28419 Removed.
28420 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
28421 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
28422 of PUPA_CHAINLOADER_BOOT_SECTOR.
28423
28424 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
28425 (pupa_linux_prot_size): New variable.
28426 (pupa_linux_tmp_addr): Likewise.
28427 (pupa_linux_real_addr): Likewise.
28428 (pupa_linux_boot_zimage): New function.
28429 (pupa_linux_boot_bzimage): Likewise.
28430
28431 * kern/i386/pc/init.c (struct mem_region): New structure.
28432 (MAX_REGIONS): New macro.
28433 (mem_regions): New variable.
28434 (num_regions): Likewise.
28435 (pupa_os_area_addr): Likewise.
28436 (pupa_os_area_size): Likewise.
28437 (pupa_lower_mem): Likewise.
28438 (pupa_upper_mem): Likewise.
28439 (add_mem_region): New function.
28440 (compact_mem_regions): Likewise.
28441 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
28442 the size of the conventional memory and that of so-called upper
28443 memory (before the first memory hole).
28444 Instead of adding each found region to free memory, use
28445 add_mem_region and add them after removing overlaps.
28446 Also, add only 1/4 of the upper memory to free memory. The rest
28447 is used for loading OS images. Maybe this is ad hoc, but this
28448 makes it much easier to relocate OS images when booting.
28449
28450 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
28451 (pupa_enter_rescue_mode): Don't register initrd and module.
28452
28453 * kern/mm.c: Include pupa/dl.h.
28454
28455 * kern/main.c: Include pupa/file.h and pupa/device.h.
28456
28457 * kern/loader.c (pupa_loader_load_module_func): Removed.
28458 (pupa_loader_load_module): Likewise.
28459
28460 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
28461 ``.o''.
28462
28463 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
28464 (pupa_linux_tmp_addr): Likewise.
28465 (pupa_linux_real_addr): Likewise.
28466 (pupa_linux_boot_zimage): Likewise.
28467 (pupa_linux_boot_bzimage): Likewise.
28468
28469 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
28470 (pupa_upper_mem): Likewise.
28471 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
28472 module is too dangerous.
28473
28474 * include/pupa/loader.h (pupa_os_area_addr): Declared.
28475 (pupa_os_area_size): Likewise.
28476 (pupa_loader_set): Remove the first argument. Loader doesn't
28477 manage modules or initrd any longer.
28478 (pupa_loader_load_module): Removed.
28479
28480 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
28481 (linux_mod_SOURCES): New variable.
28482 (linux_mod_CFLAGS): Likewise.
28483
28484 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
28485
28486 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
28487 the length of a blocklist correctly.
28488
28489 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
28490 Use ioctl only if the OS file is a block device.
28491 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
28492 not very useful for normal files.
28493
28494 * kern/main.c (pupa_set_root_dev): New function.
28495 (pupa_load_normal_mode): Likewise.
28496 (pupa_main): Call those above.
28497
28498 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
28499 pupa_uint16_t.
28500
28501 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
28502
28503 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28504
28505 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
28506 (setup): Configure the installed partition information and the
28507 dl prefix.
28508
28509 * loader/i386/pc/chainloader.c (my_mod): New variable.
28510 (pupa_chainloader_unload): New function.
28511 (pupa_rescue_cmd_chainloader): Refer itself.
28512 (PUPA_MOD_INIT): Save its own module in MY_MOD.
28513
28514 * kern/i386/pc/startup.S (install_partition): Removed.
28515 (version_string): Likewise.
28516 (config_file): Likewise.
28517 (pupa_install_dos_part): New variable.
28518 (pupa_install_bsd_part): Likewise.
28519 (pupa_prefix): Likewise.
28520 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28521
28522 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28523 and pupa/misc.h.
28524 (make_install_device): New function.
28525 (pupa_machine_init): Set the dl prefix.
28526
28527 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28528 (buf): Renamed to ...
28529 (linebuf): ... this.
28530 (pupa_rescue_cmd_prefix): New function.
28531 (pupa_rescue_cmd_insmod): Likewise.
28532 (pupa_rescue_cmd_rmmod): Likewise.
28533 (pupa_rescue_cmd_lsmod): Likewise.
28534 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28535 rmmod and lsmod.
28536
28537 * kern/mm.c (pupa_memalign): If failed even after invalidating
28538 disk caches, unload unneeded modules and retry.
28539
28540 * kern/misc.c (pupa_memmove): New function.
28541 (pupa_memcpy): Removed.
28542 (pupa_strcpy): New function.
28543 (pupa_itoa): Made static.
28544
28545 * kern/dl.c (pupa_dl_iterate): New function.
28546 (pupa_dl_ref): Likewise.
28547 (pupa_dl_unref): Likewise.
28548 (pupa_dl_unload): Return if succeeded or not.
28549 (pupa_dl_unload_unneeded): New function.
28550 (pupa_dl_unload_all): Likewise.
28551 (pupa_dl_init): Renamed to ...
28552 (pupa_dl_set_prefix): ... this.
28553 (pupa_dl_get_prefix): New function.
28554
28555 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28556 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28557 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28558 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28559 (pupa_install_dos_part): Declared.
28560 (pupa_install_bsd_part): Likewise.
28561 (pupa_prefix): Likewise.
28562 (pupa_boot_drive): Likewise.
28563
28564 * include/pupa/types.h: Fix a typo.
28565
28566 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28567 pupa_memmove.
28568 (pupa_memmove): Declared.
28569 (pupa_strcpy): Likewise.
28570
28571 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28572 pupa_mod_init takes one argument, its own module.
28573 (pupa_dl_unload_unneeded): Declared.
28574 (pupa_dl_unload_all): Likewise.
28575 (pupa_dl_ref): Likewise.
28576 (pupa_dl_unref): Likewise.
28577 (pupa_dl_iterate): Likewise.
28578 (pupa_dl_init): Renamed to ...
28579 (pupa_dl_set_prefix): ... this.
28580 (pupa_dl_get_prefix): Declared.
28581
28582 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
28583 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
28584 unloaded.
28585 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28586 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28587
28588 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28589 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28590
28591 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28592
28593 * util/i386/pc/pupa-setup.c (setup): Define the internal
28594 function find_first_partition_start at the top level, because GCC
28595 3.0.x cannot compile internal functions in deeper scopes
28596 correctly.
28597 (find_root_device): Use lstat instead of stat.
28598 Don't follow symbolic links.
28599 Fix the path-constructing code.
28600
28601 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28602 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28603 by a BLKGETSIZE ioctl first, because block devices don't fill
28604 the member st_mode of the structure stat on Linux.
28605 [__linux__] (linux_find_partition): Use a temporary buffer
28606 REAL_DEV for the working space. Copy it to DEV before returning.
28607 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28608 buffer cache consistent.
28609 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28610 strncmp. The previous value was merely wrong.
28611 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28612
28613 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28614 FAT size is 12. The previous value was merely wrong.
28615
28616 * kern/main.c (pupa_main): Don't split the starting message from
28617 newlines.
28618
28619 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28620 LF, because BIOS goes crazy about character attributes in this
28621 case.
28622
28623 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28624
28625 * include/i386/pc/util/biosdisk.h: New file.
28626 * util/i386/pc/biosdisk.c: Likewise.
28627 * util/i386/pc/pupa-setup.c: Likewise.
28628
28629 * Makefile.in (INCLUDE_DISTFILES): Added
28630 include/pupa/i386/pc/util/biosdisk.h.
28631 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28632 directory util/i386/pc.
28633 (install-local): Added a rule for sbin_UTILITIES.
28634 (uninstall): Likewise.
28635
28636 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28637
28638 * util/misc.c (xrealloc): New function.
28639 (pupa_malloc): Likewise.
28640 (pupa_free): Likewise.
28641 (pupa_realloc): Likewise.
28642 (pupa_stop): Likewise.
28643 (pupa_putchar): Likewise.
28644
28645 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28646
28647 * include/pupa/util/misc.h (xrealloc): Declared.
28648
28649 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28650 macro.
28651 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28652 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28653
28654 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28655 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28656
28657 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28658 way should be implemented.
28659 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28660
28661 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28662 the size of NAME for safety.
28663 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28664 0x88.
28665
28666 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28667 (pupa_setup_SOURCES): Likewise.
28668
28669 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28670
28671 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28672
28673 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28674 bunch of pushl's from pusha, because this destroys the return
28675 value.
28676
28677 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28678
28679 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28680 This means that any missing prototypes could be fatal. Also, you
28681 must take care when writing assembly code. See the comments at
28682 the beginning of startup.S, for more details.
28683
28684 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28685 compilation mechanism.
28686 (pupa_chainloader_real_boot): Likewise.
28687 (pupa_biosdisk_rw_int13_extensions): Likewise.
28688 (pupa_biosdisk_rw_standard): Likewise.
28689 (pupa_biosdisk_check_int13_extensions): Likewise.
28690 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28691 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28692 (pupa_get_memsize): Likewise.
28693 (pupa_get_mmap_entry): Likewise.
28694 (pupa_console_putchar): Likewise.
28695 (pupa_console_setcursor): Likewise.
28696 (pupa_getrtsecs): Use pushl instead of push.
28697
28698 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28699 memory instead of the stack for a mmap entry, because some
28700 BIOSes may ignore the maximum size and overflow.
28701
28702 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28703
28704 * genmk.rb (PModule#rule): Compile automatically generated
28705 sources with module-specific CFLAGS as well as other sources.
28706
28707 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28708
28709 * configure.ac: Check ld.
28710 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28711 respectively, before checking endianness and sizes.
28712
28713 * Makefile.in (LD): New variable.
28714
28715 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28716
28717 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28718
28719 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28720
28721 * Changelog: New file.
28722