]> git.proxmox.com Git - grub2.git/blame - ChangeLog
fix typo in reporter name
[grub2.git] / ChangeLog
CommitLineData
e3f90044
CW
12010-07-05 Colin Watson <cjwatson@ubuntu.com>
2
3 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
4 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
5
38d8f4f3
CW
62010-07-05 Colin Watson <cjwatson@ubuntu.com>
7
8 * util/i386/pc/grub-setup.c (setup): Rename prefix to
9 install_prefix, in line with install_dos_part and install_bsd_part.
10 Add new prefix variable, which is copied to install_prefix after
11 comparing core.img in memory with the one read from disk in the
12 no-embedding case, and use that rather than overwriting
13 install_prefix immediately when installing to a partition.
14 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
15 Bicakci.
16
57ebd41e
GS
172010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18
19 * configure.ac: Avoid == in test command, it's not portable.
20 * util/grub.d/30_os-prober.in: Likewise.
21
cb7f64b2
CW
222010-07-04 Colin Watson <cjwatson@ubuntu.com>
23
24 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
25
6b654bb0
GS
262010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
27
28 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
29 multiple (top-level) partmaps.
30
72a2026d
VS
312010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 34 Reported by: Tino Keitel.
72a2026d 35
df3eb88f
VS
362010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
37
38 Bidi and diacritics support.
39
40 * Makefile.in (widthspec.bin): New target.
41 (widthspec.h): Likewise.
42 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
43 * autogen.sh: Generate unidata.c.
44 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
45 * commands/ls.c (grub_ls_list_devices): Likewise.
46 (grub_ls_list_files): Likewise.
47 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
48 (grub_mini_cmd_lsmod): Likewise.
49 * commands/read.c: Likewise.
50 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
51 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
52 * lib/arg.c (grub_arg_show_help): Likewise.
53 * lib/crypto.c (grub_password_get): Likewise.
54 * normal/auth.c (grub_username_get): Likewise.
55 * normal/misc.c (grub_normal_print_device_info): Likewise.
56 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
57 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
58 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
59 (normal/charset.c_DEPENDENCIES): New variable.
60 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
61 (pkglib_MODULES): Remove charset.mod.
62 (charset_mod_SOURCES): Removed.
63 (charset_mod_CFLAGS): Likewise.
64 (charset_mod_LDFLAGS): Likewise.
65 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
66 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
67 and term/tparm.c.
68 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
69 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
70 (kernel_img_HEADERS): Add terminfo.h.
71 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
72 Fill ->font. Reverse ascii bitmaps.
73 (grub_font_get_xheight): New function.
74 * font/font.c (grub_font_get_string_width): Moved from here ...
75 * gfxmenu/font.c (grub_font_get_string_width): ... here.
76 * font/font.c (grub_font_draw_string): Moved from here ...
77 * gfxmenu/font.c (grub_font_draw_string): ... here.
78 * font/font.c (grub_font_dup_glyph): New function.
79 (grub_font_blit_glyph): Likewise.
80 (grub_font_blit_glyph_mirror): Likewise.
81 (blit_comb): Likewise.
82 (grub_font_construct_dry_run): Likewise.
83 (grub_font_get_constructed_device_width): Likewise.
84 (grub_font_construct_glyph): Likewise.
85 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
86 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
87 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
88 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
89 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
90 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
91 (grub_font_get_xheight): New proto.
92 (grub_font_get_constructed_device_width): Likewise.
93 (grub_font_construct_glyph): Likewise.
94 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
95 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
96 * include/grub/font.h (grub_font_draw_string): Moved from here ...
97 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
98 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
99 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
100 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
101 (grub_console_getcharwidth): Likewise.
102 * include/grub/misc.h (grub_xputs): New proto.
103 (grub_puts): Inlined.
104 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
105 (grub_normal_get_line_counter): Removed.
106 (grub_install_newline_hook): Likewise.
107 (grub_normal_get_char_counter): New proto.
108 (grub_normal_reset_more): Likewise.
109 (grub_xputs_normal): Likewise.
110 * include/grub/powerpc/ieee1275/console.h: Removed.
111 * include/grub/sparc64/ieee1275/console.h: Likewise.
112 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
113 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
114 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
115 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
116 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
117 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
118 (grub_term_input): Pass reference to self. All users updated.
119 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
120 Pass reference to self. New fields normal_color, highlight_color and
121 data. All users updated.
122 (grub_putchar): Removed.
123 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
124 (grub_unicode_estimate_width): New function.
125 (grub_term_getcharwidth): Add defaults.
126 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
127 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
128 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
129 (grub_cls): Remove EXPORT_FUNC.
130 (grub_setcolorstate): Inline.
131 (grub_newline_hook): Removed.
132 * include/grub/terminfo.h: Rewritten. All users updated.
133 * include/grub/unicode.h: New file.
134 * include/grub/video.h (grub_video_signed_rect): New type.
135 * kern/emu/console.c (grub_console_highlight_color): Removed.
136 (grub_console_normal_color): Likewise.
137 (grub_console_standard_color): Made static.
138 (grub_ncurses_putchar): Remove mapping.
139 (grub_ncurses_getcharwidth): Removed.
140 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
141 (grub_ncurses_setcolor): Removed.
142 (grub_ncurses_getcolor): Likewise.
143 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
144 (grub_console_putchar): ... this.
145 (grub_console_putchar): Handle argument difference.
146 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
147 console_init_early and console_init_lately.
148 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
149 * kern/misc.c (grub_puts): Removed.
150 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
151 (grub_vsnprintf_real): Remove str = NULL support.
152 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
153 * normal/charset.c (grub_utf8_to_ucs4): ... here.
154 * kern/term.c (grub_putcode): Renamed to ...
155 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
156 (grub_putchar): Removed.
157 (grub_xputs_dumb): New function.
158 (grub_xputs): New variable.
159 * lib/charset.c: Move from here ...
160 * normal/charset.c: ... to here.
161 (grub_ucs4_to_utf8): New function.
162 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
163 (join_types): New variable.
164 (unpack_join): New function.
165 (bidi_types): New variable.
166 (unpack_bidi): New function.
167 (get_bidi_type): Likewise.
168 (get_join_type): Likewise.
169 (is_mirrored): Likewise.
170 (grub_unicode_get_comb_type): Likewise.
171 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
172 (is_type_after): Likewise.
173 (grub_unicode_aglomerate_comb): Likewise.
174 (bidi_line_wrap): Likewise.
175 (grub_bidi_line_logical_to_visual): Likewise.
176 (grub_bidi_logical_to_visual): Likewise.
177 (grub_unicode_mirror_code): Likewise.
178 (grub_unicode_shape_code): Likewise.
179 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
180 Don't use grub_putchar.
181 * normal/main.c (grub_normal_init_page): Use grub_putcode.
182 (grub_normal_reader_init): Likewise.
183 (grub_xputs_saved): New variable.
184 (GRUB_MOD_INIT): Set grub_xputs.
185 (GRUB_MOD_FINI): Restore grub_xputs.
186 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
187 (menu_init): Avoid printing gfxmenu error.
188 (show_menu): Use grub_normal_get_char_counter.
189 * normal/menu_entry.c (update_screen): Fix out-of-array.
190 (complete): Avoid NULL dereferencing.
191 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
192 * normal/menu_text.c (print_spaces): Removed.
193 (grub_print_ucs4): Likewise.
194 (grub_print_message_indented): Use grub_print_ucs4.
195 (print_message): Use grub_putcode.
196 (print_entry): Hanlde diacritics.
197 * normal/term.c (term_state): New type.
198 (grub_more_lines): Removed.
199 (term_states): New variable.
200 (grub_normal_line_counter): Renamed to ..
201 (grub_normal_char_counter): ...this. All users updated.
202 (grub_normal_get_line_counter): Renamed to ...
203 (grub_normal_get_char_counter): ... this.
204 (grub_normal_reset_more): New function.
205 (process_newline): Removed.
206 (print_more): New function.
207 (grub_install_newline_hook): Removed.
208 (map_code): New function.
209 (grub_puts_terminal): Use grub_print_ucs4.
210 (putglyph): New function.
211 (putcode_real): Likewise.
212 (grub_putcode): Use putcode_real.
213 (get_maxwidth): New function.
214 (get_startwidth): Likewise.
215 (print_ucs4_terminal): Likewise.
216 (find_term_state): Likewise.
217 (put_glyphs_terminal): Likewise.
218 (print_backlog): Likewise.
219 (print_ucs4_real): Likewise.
220 (grub_print_ucs4): Likewise.
221 (grub_xputs_normal): Likewise.
222 * term/efi/console.c (grub_console_putchar): Output diacritics.
223 (grub_console_getcharwidth): Removed.
224 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
225 * term/gfxterm.c (clear_char): Free chars.
226 (scroll_up): Avoid leaking memory.
227 (grub_gfxterm_putchar): Support diacritics.
228 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
229 * term/i386/pc/console.c (grub_console_term_output): Declare as
230 GRUB_TERM_CODE_TYPE_VGA.
231 * term/i386/pc/vga.c (grub_vga_term): Declare as
232 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
233 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
234 GRUB_TERM_CODE_TYPE_VGA.
235 * term/i386/vga_common.c (map_char): Removed.
236 (grub_console_putchar): Likewise.
237 (grub_console_getcharwidth): Likewise.
238 * term/ieee1275/ofconsole.c: Simplify using terminfo.
239 (colors): Reordered to match terminfo.
240 (grub_ofconsole_normal_color): Removed.
241 (grub_ofconsole_writeesc): Likewise.
242 (grub_ofconsole_highlight_color): Likewise.
243 (grub_ofconsole_getcharwidth): Likewise.
244 (grub_ofconsole_setcolorstate): Likewise.
245 (grub_ofconsole_setcolor): Likewise.
246 (grub_ofconsole_getcolor): Likewise.
247 (grub_ofconsole_readkey): Renamed to ...
248 (readkey): ... this. Remove escape sequence handling. Return -1 on no
249 key.
250 (grub_ofconsole_checkkey): Removed.
251 (grub_ofconsole_getkey): Likewise.
252 (grub_ofconsole_getxy): Likewise.
253 (grub_ofconsole_gotoxy): Likewise.
254 (grub_ofconsole_cls): Likewise.
255 (grub_ofconsole_refresh): Likewise.
256 (grub_ofconsole_terminfo_input): New struct.
257 (grub_ofconsole_terminfo_output): Likewise.
258 (grub_ofconsole_term_input): Use terminfo.
259 (grub_ofconsole_term_output): Likewise.
260 (grub_console_init): Split into ...
261 (grub_console_init_early): ...this and ...
262 (grub_console_init_lately): ...this. Use terminfo.
263 (grub_ofconsole_putchar): Renamed to ...
264 (put): ... this. Remove mapping.
265 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
266 * term/serial.c: Simplify using terminfo.
267 (xpos): Removed.
268 (ypos): Likewise.
269 (keep_track): Likewise.
270 (registered): Likewise.
271 (input_buf): Likewise.
272 (npending): Likewise.
273 (serial_translate_key_sequence): Likewise.
274 (fill_input_buf): Likewise.
275 (grub_serial_checkkey): Likewise.
276 (grub_serial_getkey): Likewise.
277 (grub_serial_getxy): Likewise.
278 (grub_serial_gotoxy): Likewise.
279 (grub_serial_putchar): Likewise.
280 (grub_serial_cls): Likewise.
281 (grub_serial_setcolorstate): Likewise.
282 (grub_serial_setcursor): Likewise.
283 (serial_hw_init): Use serial_hw_fetch.
284 (grub_serial_terminfo_input): New variable.
285 (grub_serial_terminfo_output): Likewise.
286 (grub_serial_term_input): Use terminfo.
287 (grub_serial_term_output): Likewise.
288 * term/terminfo.c (putstr): Use put.
289 (grub_terminfo_all_free): New function
290 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
291 (grub_terminfo_output_register): New function.
292 (grub_terminfo_output_unregister): Likewise.
293 (grub_terminfo_getxy): Likewise.
294 (grub_terminfo_readkey): Likewise.
295 (grub_terminfo_checkkey): Likewise.
296 (grub_terminfo_getkey): Likewise.
297 (grub_terminfo_input_init): Likewise.
298 (print_terminfo): Likewise.
299 (grub_cmd_terminfo): Handle encoding.
300 (grub_terminfo_gotoxy): Track position.
301 (grub_terminfo_cls): Likewise.
302 (grub_terminfo_putchar): Likewise.
303 (grub_terminfo_setcolorstate): Handle colors
304 (grub_terminfo_cursor_on): This ...
305 (grub_terminfo_cursor_off): ... and this merged into ...
306 (grub_terminfo_setcursor): ... this.
307 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
308 * unicode/ArabicShaping.txt: New file (imported from Unicode).
309 * unicode/BidiMirroring.txt: Likewise.
310 * unicode/UnicodeData.txt: Likewise.
311 * unicode/COPYING: Likewise.
312 * util/grub-editenv.c (grub_putchar): Removed.
313 (grub_xputs_real): New function.
314 (grub_xputs): New variable.
315 * util/grub-fstest.c (grub_putchar): Removed.
316 (grub_xputs_real): New function.
317 (grub_xputs): New variable.
318 * util/grub-mkdevicemap.c (grub_putchar): Removed.
319 (grub_xputs_real): New function.
320 (grub_xputs): New variable.
321 * util/grub-probe.c (grub_putchar): Removed.
322 (grub_xputs_real): New function.
323 (grub_xputs): New variable.
324 * util/grub-script-check.c (grub_putchar): Removed.
325 (grub_xputs_real): New function.
326 (grub_xputs): New variable.
327 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
328 (grub_xputs_real): New function.
329 (grub_xputs): New variable.
330 * util/import_unicode.py: New file.
331 * util/grub-mkfont.c (ft_errmsgs): New array.
332 (grub_glyph_info): Make bitmap a pointer.
333 (file_formats): New type WIDTH_SPEC.
334 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
335 (options): Add width-spec.
336 (help): Likewise.
337 (add_char): Renamed to ...
338 (add_glyph): ... this.
339 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
340 (glyph_replace): New type.
341 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
342 (add_char): New function.
343 (add_subst): Likewise.
344 (process_cursive): Likewise.
345 (add_font): Handle GSUB.
346 (write_font_width_spec): New function.
347 (main): Sort glyphs.
348 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
349 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
350 * kern/term.c (grub_cls): Moved from here...
351 * normal/term.c (grub_cls): ... here.
352
50f0bcda
CW
3532010-07-02 Colin Watson <cjwatson@ubuntu.com>
354
355 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
356 suitable for using within the format argument of printf when
357 converting grub_size_t.
358 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
359 "x" to convert grub_size_t arguments.
360
40372103
VS
3612010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
364 too long captions.
365 (list_get_minimal_size): Take selection box into account.
366
942a10c7
VS
3672010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
370 NULL font.
371
2bdb2892
CW
3722010-07-02 Colin Watson <cjwatson@ubuntu.com>
373
374 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
375 devices when iterating over /dev/disk/by-id; they will be handled
376 later if appropriate, which they aren't always (e.g. LVM).
377
e03ed6c1
CW
3782010-07-02 Colin Watson <cjwatson@ubuntu.com>
379
380 * include/grub/misc.h (grub_reboot): Declare as noreturn.
381 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
382 fails.
383 (grub_halt): Likewise.
384 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
385 reset-all fails.
386 (grub_halt): Don't return, even if all of shut-down, power-off, and
387 poweroff fail.
388
47695765
CW
3892010-07-02 Colin Watson <cjwatson@ubuntu.com>
390
391 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
392 arguments, not three.
393
507736c8
CW
3942010-07-02 Colin Watson <cjwatson@ubuntu.com>
395
396 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
397 * util/grub.d/10_linux.in: Use it to check for LVM, so that
398 LVM-on-RAID is handled correctly.
399
e3c8cd37
CW
4002010-07-02 Colin Watson <cjwatson@ubuntu.com>
401
402 * docs/grub.texi (Changes from GRUB Legacy): New section.
403 (Future): Fix typo.
404
8d4a2fec
CW
4052010-07-02 Colin Watson <cjwatson@ubuntu.com>
406
407 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
408 grub.d/README accidentally ends up executable for one reason or
409 another. Ignore it.
410
1c4827be
VS
4112010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
414 (gpt_partition_map_iterate): Support non-512B sectors.
415
d9a0c941
VS
4162010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
417
418 * kern/efi/init.c (grub_efi_init): Disable watchdog.
419 Tested by: Seth Goldberg.
420
48f27e87
VS
4212010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
424 Properly align mbi.
425 Reported by: Seth Goldberg.
426
b0c4f956
VS
4272010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * util/grub-mkrescue.in: Avoid module duplication.
430
105a2e8c
SF
4312010-07-01 Sean Finney <seanius@seanius.net>
432
433 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
434
5944958c
SF
4352010-07-01 Sean Finney <seanius@seanius.net>
436
437 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
438
4392010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
440
441 * disk/lvm.c (grub_lvm_checkvalue): New function.
442 (grub_lvm_check_flag): Likewise.
443
b79889ba
RM
4442010-07-01 Robert Millan <rmh@gnu.org>
445
446 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
447 Support 'p' as partition separator on kernel of FreeBSD (used
448 with GPT labels).
449 (grub_util_biosdisk_get_grub_dev): Likewise.
450
ec1d04f1
VS
4512010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
452
453 Yeeloong firmware port.
454
455 * boot/mips/yeeloong/fwstart.S: New file.
456 * bus/cs5536.c (gpiodump): New const.
457 (set_io_space): New function.
458 (set_iod): Likewise.
459 (set_p2d): Likewise.
460 (grub_cs5536_init_geode): Likewise.
461 * commands/mips/yeeloong/lsspd.c: New file.
462 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
463 (serial_mod_SOURCES): New variable.
464 (serial_mod_CFLAGS): Likewise.
465 (serial_mod_LDFLAGS): Likewise.
466 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
467 term/terminfo.c and term/tparm.c.
468 (pkglib_IMAGES): Add fwstart.img.
469 (fwstart_img_SOURCES): New variable.
470 (fwstart_img_CFLAGS): Likewise.
471 (fwstart_img_ASFLAGS): Likewise.
472 (fwstart_img_LDFLAGS): Likewise.
473 (fwstart_img_FORMAT): Likewise.
474 (pkglib_MODULES): Add lsspd.mod.
475 (lsspd_mod_SOURCES): New variable.
476 (lsspd_mod_CFLAGS): Likewise.
477 (lsspd_mod_LDFLAGS): Likewise.
478 (pkglib_MODULES): Add halt.mod.
479 (halt_mod_SOURCES): New variable.
480 (halt_mod_CFLAGS): Likewise.
481 (halt_mod_LDFLAGS): Likewise.
482 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
483 (serial_mod_SOURCES): Removed.
484 (serial_mod_CFLAGS): Likewise.
485 (serial_mod_LDFLAGS): Likewise.
486 * disk/ata.c (check_device): New function.
487 (grub_ata_device_initialize): Use check_device.
488 (grub_ata_iterate): Recheck devices.
489 (grub_ata_open): Likewise.
490 (grub_atapi_iterate): Likewise.
491 (grub_atapi_open): Likewise.
492 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
493 (GRUB_ATA_CH1_PORT1): Likewise.
494 (GRUB_ATA_CH0_PORT2): Likewise.
495 (GRUB_ATA_CH1_PORT2): Likewise.
496 * include/grub/mips/loongson.h: New file.
497 * include/grub/mips/yeeloong/ec.h: Likewise.
498 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
499 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
500 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
501 * include/grub/misc.h (grub_halt): Declare as noreturn.
502 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
503 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
504 (UART_ENABLE_FIFO_TRIGGER1): New definition.
505 (UART_ENABLE_DTRRTS): Likewise.
506 (UART_ENABLE_MODEM): Removed.
507 (UART_ENABLE_OUT2): New const.
508 * include/grub/term.h (grub_term_register_input_active): New function.
509 (grub_term_register_output_active): Likewise.
510 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
511 argument.
512 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
513 (init_pci): New function.
514 (grub_machine_init): Execute platform init when firmware. Init serial.
515 (grub_halt): Implement.
516 (grub_exit): Likewise.
517 (grub_reboot): Likewise.
518 * term/serial.c (serial_hw_init): Update macros.
519 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
520 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
521 (image_targets): New target mipsel-yeeloong-flash.
522 (generate_image): Support IMAGE_YEELOONG_FLASH.
523 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
524 (grub_video_sm712_setup): Init card.
525 (grub_video_sm712_set_palette): Removed.
526 * video/sm712_init.c: New file.
527
ff4a70d2
CW
5282010-06-30 Colin Watson <cjwatson@ubuntu.com>
529
530 * Makefile.in (install-local): Temporarily prepend $(builddir) to
531 PATH when running help2man and then run it on the unadorned
532 executable names, rather than passing $(builddir)/* paths to
533 help2man. This avoids the build directory ending up in generated
534 manual pages.
535
1246efeb
CW
5362010-06-29 Colin Watson <cjwatson@ubuntu.com>
537
538 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
539 to avoid accidents when debugging with 'sh -x'.
540 * util/grub-mkrescue.in: Likewise.
541 * util/grub.d/00_header.in: Likewise.
542 * util/grub.d/10_hurd.in: Likewise.
543 * util/grub.d/10_kfreebsd.in: Likewise.
544 * util/grub.d/10_linux.in: Likewise.
545 * util/grub.d/10_netbsd.in: Likewise.
546 * util/grub.d/10_windows.in: Likewise.
547 * util/grub.d/20_linux_xen.in: Likewise.
548 * util/grub.d/30_os-prober.in: Likewise.
549 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
550
1ba9b889
CW
5512010-06-29 Colin Watson <cjwatson@ubuntu.com>
552
553 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
554 last character in the buffer.
555 Reported by: Vladimir Serbinenko.
556
dccaf99d
RM
5572010-06-29 Robert Millan <rmh@gnu.org>
558
559 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
560 (Command-line and menu entry commands): Document `badram' command.
561
d500ed12
RM
5622010-06-28 Robert Millan <rmh@gnu.org>
563
564 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
565 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
566 command using ${GRUB_BADRAM} as parameter.
567
20bc84a6
CW
5682010-06-28 Colin Watson <cjwatson@ubuntu.com>
569
570 * docs/grub.texi (Device map): New section.
571 (Themes): New section (stub).
572 * Makefile.in (docs/grub.info): The info documentation now builds
573 without errors. Make sure it stays that way.
574
4045dee1
VS
5752010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
576
577 Use normal parser for menu entries.
578 Reported by: Thomas Frauendorfer
579
580 * include/grub/parser.h (grub_parser_execute): Don't export.
581 * normal/menu.c (grub_menu_execute_entry_real): New function.
582 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
583
bca58c7b
CW
5842010-06-28 Colin Watson <cjwatson@ubuntu.com>
585
586 * docs/grub.texi (Embedded configuration): New section (replacing
587 old "Preset Menu" stub).
588 (Images): New section.
589 (configfile): Note that any menu entries defined in `file' are shown
590 immediately.
591
dec53e63
JT
5922010-06-28 Josh Triplett <josh@joshtriplett.org>
593
594 * mmap/i386/pc/mmap_helper.S: Set CF on return.
595
c06e40f7
CW
5962010-06-28 Colin Watson <cjwatson@ubuntu.com>
597
598 * util/grub-install.in: Add --debug-image= option.
599
cb88052b
CW
6002010-06-28 Colin Watson <cjwatson@ubuntu.com>
601
602 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
603 possible on Linux.
604
605 * util/deviceiter.c (check_device): Rename to ...
606 (check_device_readable_unique): ... this. Update all callers.
607 Maintain and check a list of which devices (by canonicalized name)
608 have already been seen.
609 (clear_seen_devices): New function.
610 (compare_file_names) [__linux__]: New function.
611 (grub_util_iterate_devices): Clear the list of seen devices on exit
612 and (just in case) on entry.
613 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
614 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
615 seen-devices list, superseded by general code in check_device.
616
bbe34652
CW
6172010-06-28 Colin Watson <cjwatson@ubuntu.com>
618
619 * commands/cat.c (options): New variable.
620 (grub_cmd_cat): Parse options. If the --dos option is given, print
621 DOS-style "\r\n" line endings as simple newlines (Debian bug
622 #586358).
623 (GRUB_MOD_INIT): Use extcmd.
624 (GRUB_MOD_FINI): Likewise.
625 * docs/grub.texi (cat): Document --dos.
626
412e09f3
VS
6272010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
628
629 XEN with Linux grub-mkconfig support.
630
631 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
632 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
633 GRUB_CMDLINE_XEN_DEFAULT.
634 * util/grub.d/20_linux_xen.in: New file.
635
53f3ef38 6362010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
637
638 Initialise VGA video on qemu ourselves.
639
640 * boot/i386/qemu/boot.S: Don't call 0xc000.
641 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
642 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
643 (kernel_img_HEADERS): Add pci.h.
644 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
645 * configure.ac: Force unifont on qemu and yeeloong.
646 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
647 (grub_vga_palette_write): Use correct register.
648 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
649 Call grub_qemu_init_cirrus.
650 * kern/i386/qemu/init.c: New file.
651 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
652
653 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
654
c75be4fb
PR
6552010-06-26 Pavel Roskin <proski@gnu.org>
656
657 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
658 13.
659
d8034603
CW
6602010-06-26 Colin Watson <cjwatson@ubuntu.com>
661
662 * docs/grub.texi (Simple configuration): Explain that
663 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
664 set to `true' to disable their respective recovery entries, not
665 merely set.
666
3fa06487
CW
6672010-06-26 Colin Watson <cjwatson@ubuntu.com>
668
669 Make the `source' command slightly faster.
670
671 * normal/main.c (grub_normal_execute): Don't re-read list files when
672 nested.
673
e9b29642
CW
6742010-06-23 Colin Watson <cjwatson@ubuntu.com>
675
676 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
677 field position and mask size to red fields from mode_info, not
678 green.
679 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
680 Remove redundant tag->common.framebuffer_type assignment.
681 Reported by: Seth Goldberg.
682
e726542f
CW
6832010-06-23 Colin Watson <cjwatson@ubuntu.com>
684
685 Sync up other versions of the Linux loader with Robert Millan's
686 change of 2010-01-09, "Make loader output a bit more user-friendly".
687
688 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
689 grub_dprintf().
690 (grub_cmd_linux): Likewise.
691 (grub_cmd_initrd): Likewise.
692 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
693 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
694
d6e98a17
CW
6952010-06-21 Colin Watson <cjwatson@ubuntu.com>
696
697 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
698 larger than MEMORY_MAP_SIZE.
699
14d3f08e
BC
7002010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
701
702 Fix parallel build.
703
704 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
705 dependency.
706 * script/parser.y: #include grub_script.tab.h header.
707
4f9613a3
VS
7082010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
709
710 Support >3GiB and <16MiB RAM in i386-qemu.
711
712 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
713 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
714 (grub_lower_mem): Removed.
715 (grub_upper_mem): Likewise.
716 (mem_size): Made static.
717 (above_4g): New variable.
718 (grub_machine_mmap_init): Detect small mem_size and above_4g.
719 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
720 support.
721
05e51879
VS
7222010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Cirrus 5446 and Bochs video cards support.
725
726 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
727 video_bochs.mod
728 (video_cirrus_mod_SOURCES): New variable.
729 (video_cirrus_mod_CFLAGS): Likewise.
730 (video_cirrus_mod_LDFLAGS): Likewise.
731 (video_bochs_mod_SOURCES): Likewise.
732 (video_bochs_mod_CFLAGS): Likewise.
733 (video_bochs_mod_LDFLAGS): Likewise.
734 * include/grub/vga.h: New file.
735 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
736 (grub_video_fb_set_page_t): New type.
737 (grub_video_fb_setup): New prototype.
738 (grub_video_fb_swap_buffers): Likewise.
739 (grub_video_fb_get_info_and_fini): Likewise.
740 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
741 (CRTC_DATA_PORT): Likewise.
742 (CRTC_CURSOR): Likewise.
743 (CRTC_CURSOR_ADDR_HIGH): Likewise.
744 (CRTC_CURSOR_ADDR_LOW): Likewise.
745 (CRTC_CURSOR_DISABLE): Likewise.
746 (update_cursor): Use grub_vga_cr_write.
747 (grub_vga_text_setcursor): Likewise.
748 * video/bochs.c: New file.
749 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
750 (palette): Likewise.
751 (palette_size): Likewise.
752 (framebuffer): New variable.
753 (grub_video_fb_init): Use 'framebuffer'.
754 (grub_video_fb_fini): Likewise.
755 (grub_video_fb_get_info): Likewise.
756 (grub_video_fb_get_palette): Likewise.
757 (grub_video_fb_set_palette): Likewise.
758 (grub_video_fb_set_viewport): Likewise.
759 (grub_video_fb_get_viewport): Likewise.
760 (grub_video_fb_map_color): Likewise.
761 (grub_video_fb_map_rgb): Likewise.
762 (grub_video_fb_map_rgba): Likewise.
763 (grub_video_fb_unmap_color): Likewise.
764 (grub_video_fb_unmap_color_int): Likewise.
765 (grub_video_fb_fill_rect): Likewise.
766 (grub_video_fb_blit_bitmap): Likewise.
767 (grub_video_fb_blit_render_target): Likewise.
768 (grub_video_fb_scroll): Likewise.
769 (grub_video_fb_create_render_target): Likewise.
770 (grub_video_fb_doublebuf_blit_init): Likewise.
771 (grub_video_fb_set_active_render_target): Handle doublebuffering.
772 (doublebuf_pageflipping_update_screen): New function.
773 (doublebuf_pageflipping_init): Likewise.
774 (grub_video_fb_setup): Likewise.
775 (grub_video_fb_swap_buffers): Likewise.
776 (grub_video_fb_get_info_and_fini): Likewise.
777 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
778 All users updated.
779 (doublebuf_pageflipping_commit): Restructured into ...
780 (doublebuf_pageflipping_set_page): ... this.
781 (doublebuf_pageflipping_update_screen): Removed.
782 (doublebuf_pageflipping_init): Likewise.
783 (double_buffering_init): Likewise.
784 (grub_video_vbe_setup): Use grub_video_fb_setup.
785 (grub_video_vbe_swap_buffers): Removed.
786 (grub_video_vbe_set_active_render_target): Likewise.
787 (grub_video_vbe_get_active_render_target): Likewise.
788 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
789 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
790 grub_video_fb_set_active_render_target and
791 grub_video_fb_get_active_render_target.
792 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
793 (SEQUENCER_DATA_PORT): Likewise.
794 (MAP_MASK_REGISTER): Likewise.
795 (CRTC_ADDR_PORT): Likewise.
796 (CRTC_DATA_PORT): Likewise.
797 (START_ADDR_HIGH_REGISTER): Likewise.
798 (START_ADDR_LOW_REGISTER): Likewise.
799 (GRAPHICS_ADDR_PORT): Likewise.
800 (GRAPHICS_DATA_PORT): Likewise.
801 (READ_MAP_REGISTER): Likewise.
802 (INPUT_STATUS1_REGISTER): Likewise.
803 (INPUT_STATUS1_VERTR_BIT): Likewise.
804 (get_map_mask): Use grub_vga_sr_read.
805 (set_map_mask): Use grub_vga_sr_write.
806 (set_read_map): Use grub_vga_gr_write.
807 (set_start_address): Use grub_vga_cr_write.
808 * video/sm712.c (framebuffer): Remove leftover fields.
809
4321c64a
CW
8102010-06-20 Colin Watson <cjwatson@ubuntu.com>
811
812 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
813 setting GRUB_VIDEO_BACKEND. Make it available as a user override
814 instead. Replace the gfxterm backend check with a check that
815 ${GRUB_PREFIX}/video.lst is non-empty.
816 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
817 again.
818 (load_video): New generated function. Call it before loading
819 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
820 * util/grub.d/10_linux.in (linux_entry): Call load_video.
821 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
822 * docs/grub.texi (Simple configuration): Document
823 GRUB_VIDEO_BACKEND.
824
8252010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
826
827 Use video functions in linux and xnu loaders.
828
829 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
830 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
831 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
832 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
833 loader/i386/pc/linux.c.
834 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
835 (find_line_len): Removed.
836 (find_framebuf): Likewise.
837 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
838 * loader/i386/efi/xnu.c: Removed.
839 * loader/i386/pc/xnu.c: Moved from here...
840 * loader/i386/xnu.c: ...here.
841
842 Enable priorities in video drivers.
843
844 * include/grub/video.h (grub_video_adapter_prio_t): New type.
845 (grub_video_adapter): New field prio.
846 (grub_video_register): Respect prio when inserting.
847 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
848 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
849 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
850 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
851 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
852 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
853 * video/sm712.c (grub_video_sm712_adapter): Likewise.
854
855 Fix SDL driver ID.
856
857 * include/grub/video.h (grub_video_driver_id_t): New value
858 GRUB_VIDEO_DRIVER_SDL.
859 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
860
7d24e434
CW
8612010-06-17 Colin Watson <cjwatson@ubuntu.com>
862
863 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
864 argument to printf.
865 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
866
c88a83f6
CW
8672010-06-17 Colin Watson <cjwatson@ubuntu.com>
868
869 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
870 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
871
094dfb69
CW
8722010-06-17 Colin Watson <cjwatson@ubuntu.com>
873
874 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
875 directly, and recommend grub-install instead.
876 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
877
2164da6b
CW
8782010-06-17 Colin Watson <cjwatson@ubuntu.com>
879
880 Fix i386-pc prefix handling with nested partitions (Debian bug
881 #585068). Note that the case where the core image is booted using
882 multiboot and relocated from its original location still requires
883 more work.
884
885 * kern/i386/pc/init.c (make_install_device): If the prefix starts
886 with "(,", fill the boot drive in between those two characters, but
887 expect that a full partition specification including partition map
888 names will follow.
889 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
890 specified, write a prefix without the drive name but including a
891 full partition specification.
892
044e2e60
CW
8932010-06-16 Colin Watson <cjwatson@ubuntu.com>
894
895 * util/grub-mkconfig.in: Ignore non-option arguments, for
896 compatibility with older versions (before 2010-06-12) which did the
897 same. In particular, this makes it easier to ship an update-grub
898 wrapper which is compatible with that used with GRUB Legacy (Debian
899 bug #586056).
900
5591324f
GS
9012010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
902
903 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
904 for manual page generation.
905
662e24d5
GS
9062010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
907
908 * po/POTFILES: Remove leftover commands/handler.c.
909
8d70754e
CW
9102010-06-14 Colin Watson <cjwatson@ubuntu.com>
911
912 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
913 left this script non-functional.
914
41160e2e
CW
9152010-06-14 Colin Watson <cjwatson@ubuntu.com>
916
917 * docs/man/grub-emu.h2m: New file.
918
b5309cc1
CW
9192010-06-13 Colin Watson <cjwatson@ubuntu.com>
920
921 * docs/grub.texi (Commands): Document reduced command set in rescue
922 mode.
923 (cpuid): New section.
924
fcb2d090
GS
9252010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
926
927 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
928 new partition naming style.
929 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
930
96e5c556
BC
9312010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
932
933 Add "-o grub.iso" like cmdline options support.
934
935 * util/grub-install.in: Improve cmdline option parsing.
936 * util/grub-mkconfig.in: Likewise.
937 * util/grub-mkrescue.in: Likewise.
938 * util/grub-reboot.in: Likewise.
939 * util/grub-set-default.in: Likewise.
940 * util/i386/efi/grub-install.in: Likewise.
941 * util/ieee1275/grub-install.in: Likewise.
942 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
943
c16be99b
CW
9442010-06-12 Colin Watson <cjwatson@ubuntu.com>
945
946 * .bzrignore: Ignore 41_custom.
947
ce08a9fb
TS
9482010-06-12 Thomas Schmitt <scdbackup@gmx.net>
949
950 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
951
7beac90c
CW
9522010-06-12 Colin Watson <cjwatson@ubuntu.com>
953
954 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
955 prototype declarations.
956
957 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
958 generating fs, partmap, and video lists.
959 * include/grub/fs.h (grub_fs_register): Omit prototype if
960 GRUB_LST_GENERATOR is defined.
961 * include/grub/partition.h (grub_partition_map_register): Likewise.
962 * include/grub/video.h (grub_video_register): Likewise.
963
1c8f0f8d
JM
9642010-06-12 Javier Martín <lordhabbit@gmail.com>
965
966 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
967
a6085973
TS
9682010-06-12 Thomas Schmitt <scdbackup@gmx.net>
969
970 * util/grub-mkrescue.in: Support --xorriso argument.
971
25c56d29
VS
9722010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
975 Suggested by: Thomas Schmitt.
976
e03e4b24
VS
9772010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
980 Suggested by: Thomas Schmitt.
981
57711df6
VS
9822010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
983
984 custom.cfg support.
985
986 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
987 * util/grub.d/41_custom.in: New file.
988
ee62c427
CW
9892010-06-12 Colin Watson <cjwatson@ubuntu.com>
990
991 * util/grub-mkrescue.in (make_image): Remove sh module, which has
992 been merged back into normal.
993
283af07a
CW
9942010-06-11 Colin Watson <cjwatson@ubuntu.com>
995
996 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
997 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
998
56a0d956
CW
9992010-06-11 Colin Watson <cjwatson@ubuntu.com>
1000
1001 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
1002 when generating manual pages.
1003 * docs/man/grub-bin2h.h2m: New file.
1004 * docs/man/grub-editenv.h2m: New file.
1005 * docs/man/grub-fstest.h2m: New file.
1006 * docs/man/grub-install.h2m: New file.
1007 * docs/man/grub-macho2img.h2m: New file.
1008 * docs/man/grub-mkconfig.h2m: New file.
1009 * docs/man/grub-mkdevicemap.h2m: New file.
1010 * docs/man/grub-mkfont.h2m: New file.
1011 * docs/man/grub-mkimage.h2m: New file.
1012 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
1013 * docs/man/grub-mkrelpath.h2m: New file.
1014 * docs/man/grub-mkrescue.h2m: New file.
1015 * docs/man/grub-ofpathname.h2m: New file.
1016 * docs/man/grub-pe2elf.h2m: New file.
1017 * docs/man/grub-probe.h2m: New file.
1018 * docs/man/grub-reboot.h2m: New file.
1019 * docs/man/grub-script-check.h2m: New file.
1020 * docs/man/grub-set-default.h2m: New file.
1021 * docs/man/grub-setup.h2m: New file.
1022
3a37e322
VS
10232010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 Use FOR_* macros instead of *_iterate whenever possible.
1026
1027 * commands/handler.c: Removed.
1028 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
1029 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
1030 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1031 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
1032 (grub_probe_SOURCES): Remove kern/parser.c.
1033 (util/grub-script-check.c_DEPENDENCIES): Removed.
1034 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
1035 and grub_script_check_init.c.
1036 (grub_script_check_init.lst): Removed.
1037 (grub_script_check_init.h): Likewise.
1038 (grub_script_check_init.c): Likewise.
1039 (pkglib_MODULES): Remove handler.mod and sh.mod.
1040 (handler_mod_SOURCES): Removed.
1041 (handler_mod_CFLAGS): Likewise.
1042 (handler_mod_LDFLAGS): Likewise.
1043 (normal_mod_SOURCES): Remove normal/handler.c.
1044 Add script/main.c, script/script.c, script/execute.c,
1045 script/function.c, script/lexer.c, grub_script.tab.c
1046 and grub_script.yy.c.
1047 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1048 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1049 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
1050 (grub_setup_SOURCES): Remove kern/parser.c.
1051 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1052 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
1053 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1054 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1055 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1056 (grub_setup_SOURCES): Remove kern/parser.c.
1057 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1058 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
1059 * include/grub/command.h (grub_command_iterate): Removed.
1060 (FOR_COMMANDS): New macro.
1061 * include/grub/dl.h (grub_dl): New member next.
1062 (grub_dl_iterate): Removed.
1063 (grub_dl_head): New variable declaration.
1064 (FOR_DL_MODULES): New macro.
1065 * include/grub/fs.h: Include list.h.
1066 (grub_fs): Make next first element.
1067 (grub_fs_list): New variable declaration.
1068 (grub_fs_register): Make inline.
1069 (grub_fs_unregister): Likewise.
1070 (grub_fs_iterate): Removed.
1071 (FOR_FILESYSTEMS): New macro.
1072 * include/grub/handler.h: Removed.
1073 * include/grub/list.h (grub_list_hook_t): Removed.
1074 (grub_list_test_t): Likewise.
1075 (grub_list_pop): Likewise.
1076 (grub_list_iterate): Likewise.
1077 (grub_list_insert): Likewise.
1078 (FOR_LIST_ELEMENTS): New macro.
1079 * include/grub/parser.h (grub_parser_class): Removed.
1080 (grub_parser_register): Likewise.
1081 (grub_parser_unregister): Likewise.
1082 (grub_parser_get_current): Likewise.
1083 (grub_parser_set_current): Likewise.
1084 (grub_register_rescue_parser): Likewise.
1085 (grub_rescue_parse_line): New function.
1086 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
1087 * include/grub/script_sh.h (grub_script_function_list): New variable
1088 declaration.
1089 (FOR_SCRIPT_FUNCTIONS): New macro.
1090 (grub_script_function_iterate): Removed.
1091 (grub_normal_parse_line): New prototype.
1092 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
1093 (FOR_DISABLED_TERM_INPUTS): Likewise.
1094 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
1095 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
1096 * include/grub/video.h (grub_video_adapter): Move 'next' to first
1097 element.
1098 (grub_video_register): Inline.
1099 (grub_video_unregister): Likewise.
1100 (grub_video_adapter_list): New variable declaration.
1101 (grub_video_iterate): Removed.
1102 (FOR_VIDEO_ADAPTERS): New macro.
1103 * kern/dl.c (grub_dl_list): Removed. All users updated.
1104 (grub_dl_iterate): Removed.
1105 * kern/fs.c (grub_fs_list): Make global.
1106 (grub_fs_register): Removed.
1107 (grub_fs_unregister): Likewise.
1108 (grub_fs_iterate): Likewise.
1109 * kern/handler.c: Removed.
1110 * kern/list.c (grub_list_pop): Removed.
1111 (grub_list_iterate): Likewise.
1112 (grub_list_insert): Likewise.
1113 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
1114 (grub_prio_list_insert): Don't use grub_list_insert.
1115 * kern/main.c (grub_register_rescue_parser): Don't call
1116 grub_register_rescue_parser.
1117 * kern/parser.c (grub_parser_class): Removed.
1118 (grub_parser_execute): Use grub_rescue_parse_line.
1119 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
1120 (grub_rescue_parser): Removed.
1121 (grub_register_rescue_parser): Likewise.
1122 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
1123 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
1124 (grub_auth_check_authentication): Likewise.
1125 * normal/completion.c (iterate_command): Removed.
1126 (grub_normal_do_completion): Use FOR_COMMANDS.
1127 * normal/handler.c: Removed.
1128 * normal/main.c (read_config_file): Remove parser changing.
1129 (grub_normal_execute): Don't call read_handler_list.
1130 (grub_normal_read_line_real): Statically allocate prompt.
1131 (grub_cmdline_run): Use grub_normal_parse_line.
1132 (GRUB_MOD_FINI): Don't call free_handler_list.
1133 * normal/menu_entry.c (run): Likewise.
1134 * script/function.c (grub_script_function_list): Make global.
1135 (grub_script_function_iterate): Removed.
1136 * script/main.c (grub_normal_parse_line): Make global.
1137 (grub_sh_parser): Removed.
1138 (GRUB_MOD_INIT): Likewise.
1139 (GRUB_MOD_FINI): Likewise.
1140 * tests/lib/functional_test.c (grub_functional_test): Use
1141 FOR_LIST_ELEMENTS.
1142 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
1143 (grub_test_run): Use FOR_LIST_ELEMENTS.
1144 * tests/lib/unit_test.c (main): Likewise.
1145 * util/deviceiter.c (grub_util_iterate_devices): Don't use
1146 grub_list_pop.
1147 * util/grub-fstest.c (grub_term_input_class): Removed.
1148 (grub_term_output_class): Likewise.
1149 * util/grub-probe.c: Likewise.
1150 * util/i386/pc/grub-setup.c: Likewise.
1151 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1152 * util/grub-script-check.c (main): Don't call grub_init_all and
1153 grub_fini_all.
1154 * video/video.c (grub_video_adapter_list): Make global.
1155 (grub_video_register): Removed.
1156 (grub_video_unregister): Likewise.
1157 (grub_video_iterate): Likewise.
1158
6289c3a7
VS
11592010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
1162 reported by Henrique Ferreiro.
1163
91460247
RM
11642010-06-09 Robert Millan <rmh@gnu.org>
1165
1166 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
1167 ones, when both are available.
1168
0ea7c4f9
GS
11692010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1170
1171 Make --version uniform and avoid hard-coded program name.
1172
1173 * util/grub-mkimage.c (main): Use `program_name' instead of
1174 hard-coded string.
1175 * util/i386/pc/grub-setup.c (main): Likewise.
1176 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
1177 * util/grub-install.in: Save the basename of $0 in $self, and use the
1178 latter in informational messages. Use the same format for --version
1179 as the binary programs.
1180 * util/grub-mkconfig.in: Likewise.
1181 * util/grub-mkrescue.in: Likewise.
1182 * util/grub-reboot.in: Likewise.
1183 * util/grub-set-default.in: Likewise.
1184 * util/i386/efi/grub-install.in: Likewise.
1185 * util/ieee1275/grub-install.in: Likewise.
1186 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1187
e8a6f3b6
GS
11882010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1189
1190 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
1191 embedding area. Use <= instead of == when checking for non-emptiness.
1192
f4d095d7
GS
11932010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1194
1195 * configure.ac: Add `.' to the directories searched for unifont.
1196
50e532ca
CW
11972010-06-08 Colin Watson <cjwatson@ubuntu.com>
1198
1199 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
1200 grub_script.yy.h.
1201
d39f3dec
CW
12022010-06-08 Colin Watson <cjwatson@ubuntu.com>
1203
1204 * docs/grub.texi (History): Expand to cover GRUB 2.
1205 (Serial terminal): Refer to `terminal_input' and `terminal_output'
1206 commands, not `terminal'.
1207 (serial): Likewise.
1208 (terminal_input): New section.
1209 (terminal_output): New section.
1210 (uppermem): New section (stub).
1211 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
1212
6ef0ddb4
CW
12132010-06-08 Colin Watson <cjwatson@ubuntu.com>
1214
1215 * docs/grub.texi (Security): Menu entries are unrestricted by
1216 default, not restricted to superusers as I had previously thought.
1217 Reword to account for this.
1218
e0f4c438
CW
12192010-06-07 Colin Watson <cjwatson@ubuntu.com>
1220
1221 * kern/emu/misc.c (device_mapper_null_log): New function.
1222 (grub_device_mapper_supported): New function.
1223 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
1224 prototype.
1225 * kern/emu/hostdisk.c (find_partition_start): Check whether
1226 device-mapper is supported before trying to use it.
1227 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
1228
da908200
CW
12292010-06-07 Colin Watson <cjwatson@ubuntu.com>
1230
1231 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
1232 (File name syntax): Likewise.
1233 (help): --all is no longer supported in GRUB 2. Be more precise
1234 about pattern matching.
1235
fb55c3ac
CW
12362010-06-07 Colin Watson <cjwatson@ubuntu.com>
1237
1238 * normal/completion.c (grub_normal_do_completion): When completing
1239 arguments to "set" and the current word contains an equals sign,
1240 skip to after the equals sign before starting completion.
1241
258c2573
CW
12422010-06-07 Colin Watson <cjwatson@ubuntu.com>
1243
1244 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
1245
ee75515e
CW
12462010-06-07 Colin Watson <cjwatson@ubuntu.com>
1247
1248 * docs/grub.texi (Network): New section.
1249 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
1250 `(nd)' as in GRUB Legacy.
1251 (pxe_unload): New section.
1252
a6a700aa
CW
12532010-06-07 Colin Watson <cjwatson@ubuntu.com>
1254
1255 * docs/grub.texi (Troubleshooting): `echo' is not usually available
1256 in the rescue shell, so recommend using `set' instead. Thanks,
1257 Jordan Uggla.
1258
4003dd38
CW
12592010-06-07 Colin Watson <cjwatson@ubuntu.com>
1260
1261 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
1262 (password): New section.
1263 (password_pbkdf2): New section.
1264 (search): New section.
1265 (Security): New section.
1266 (Troubleshooting): New section, currently very incomplete.
1267 (Invoking grub-mkpasswd-pbkdf2): New section.
1268 (Internals): New section, currently very incomplete.
1269
e1cbcc40
CW
12702010-06-07 Colin Watson <cjwatson@ubuntu.com>
1271
1272 * util/grub.d/00_header.in: Add some more quoting (of
1273 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
1274 work again.
1275 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
1276
db8fa1ad
CW
12772010-06-07 Colin Watson <cjwatson@ubuntu.com>
1278
1279 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
1280 to `count', fixing variable shadowing that broke the -c option.
1281
12822010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
1283
1284 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
1285 in case they contain spaces.
1286
f28a9212
CW
12872010-06-04 Colin Watson <cjwatson@ubuntu.com>
1288
1289 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
1290 "part_" to partmap module names, in line with grub-install.
1291 Reported by: Jindřich Makovička (Debian bug #584426).
1292
9cdfe32f
CW
12932010-06-04 Colin Watson <cjwatson@ubuntu.com>
1294
1295 * util/grub-mkimage.c: Make target-related error messages slightly
1296 more helpful; -O talks about "format". Explicitly point to the use
1297 of -O if no target is specified.
1298 Reported by: Didier Raboud (Debian bug #584415).
1299
795b593a
CW
13002010-06-03 Colin Watson <cjwatson@ubuntu.com>
1301
1302 * INSTALL: Document several build requirements for optional features
1303 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
1304
9d9b5833
GS
13052010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1306
1307 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
1308 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
1309 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
1310
0819fec8
CW
13112010-06-02 Colin Watson <cjwatson@ubuntu.com>
1312
1313 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
1314 Thanks to Jordan Uggla for spotting this.
1315
49396b4f
VS
13162010-06-02 Aleš Nesrsta <starous@volny.cz>
1317
1318 Finally make USB usable.
1319
1320 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
1321 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
1322 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
1323 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
1324 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
1325 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
1326 (GRUB_OHCI_FSMPS): Likewise.
1327 (GRUB_OHCI_PERIODIC_START): Likewise.
1328 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
1329 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
1330 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
1331 (GRUB_OHCI_SET_PORT_RESET): Likewise.
1332 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
1333 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
1334 (grub_ohci_transaction): Likewise.
1335 (grub_ohci_transfer): Improve condition detection algorithms.
1336 Handle toggle property. Program the transactions correctly.
1337 Improve error handling. Various important fixups.
1338 (grub_ohci_portstatus): Put register writes in right order.
1339 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
1340 (grub_uhci_transfer): Don't show "failed" message on success.
1341 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
1342 array.
1343 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
1344 determine its size.
1345 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
1346 before initialization is completed. Use IN direction for empty
1347 transfers. Use last_trans and compute toggle.
1348 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
1349 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
1350 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
1351 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
1352 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
1353 (grub_usb_device): Increase toggle to 256.
1354 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
1355 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
1356 GRUB_USBMS_SUBCLASS_SFF8070.
1357 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
1358 (grub_scsi_inquiry): New member page and alloc_length.
1359 (grub_scsi_request_sense): New structure.
1360 (grub_scsi_request_sense_data): Likewise.
1361 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
1362 control.
1363 * disk/scsi.c (grub_scsi_request_sense): New function.
1364 (grub_scsi_test_unit_ready): Likewise.
1365 (grub_scsi_inquiry): Fill new fields.
1366 (grub_scsi_read_capacity): Likewise.
1367 (grub_scsi_read10): Add request sense at the end.
1368 (grub_scsi_read12): Likewise.
1369 (grub_scsi_write10): Likewise.
1370 (grub_scsi_write12): Likewise.
1371 (grub_scsi_open): Add Test Unit Ready.
1372 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
1373 Support additional subclasses. Con't clear halt yet. Activate the
1374 proper config. Calculate LUNs correctly.
1375 (grub_usbms_transfer): Various important fixups.
1376
13772010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1380 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1381 (grub_ohci_fini_hw): New function.
1382 (grub_ohci_restore_hw): Likewise.
1383 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1384 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1385 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1386
13872010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 Dedicated DMA allocations.
1390
1391 * bus/pci.c (grub_memalign_dma32): New function
1392 (grub_dma_free): Likewise.
1393 (grub_dma_get_virt): Likewise.
1394 (grub_dma_get_phys): Likewise.
1395 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1396 (grub_ohci_pci_iter): Use dma32_alloc.
1397 (grub_ohci_transfer): Likewise.
1398 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1399 (grub_usb_bulk_readwrite): Likewise.
1400 * include/grub/pci.h: Add declarations.
1401
14022010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1403
1404 CS5536 support.
1405
1406 * bus/cs5536.c: New file.
1407 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1408 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1409 (cs5536_mod_SOURCES): New variable.
1410 (cs5536_mod_CFLAGS): Likewise.
1411 (cs5536_mod_LDFLAGS): Likewise.
1412 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1413 machine/pci.h.
1414 (kernel_img_SOURCES): Add bus/cs5536.c.
1415 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1416 usb_keyboard.mod.
1417 (usb_mod_SOURCES): New variable.
1418 (usb_mod_CFLAGS): New variable.
1419 (usb_mod_LDFLAGS): New variable.
1420 (usbtest_mod_SOURCES): New variable.
1421 (usbtest_mod_CFLAGS): New variable.
1422 (usbtest_mod_LDFLAGS): New variable.
1423 (ohci_mod_SOURCES): New variable.
1424 (ohci_mod_CFLAGS): New variable.
1425 (ohci_mod_LDFLAGS): New variable.
1426 (usbms_mod_SOURCES): New variable.
1427 (usbms_mod_CFLAGS): New variable.
1428 (usbms_mod_LDFLAGS): New variable.
1429 (usb_keyboard_mod_SOURCES): New variable.
1430 (usb_keyboard_mod_CFLAGS): New variable.
1431 (usb_keyboard_mod_LDFLAGS): New variable.
1432 * include/grub/smbus.h: New file.
1433 * include/grub/cs5536.h: New file.
1434
0b35b2a9
CW
14352010-06-02 Colin Watson <cjwatson@ubuntu.com>
1436
1437 * util/grub.d/00_header.in: Add safety check to make sure that
1438 ${locale_dir} exists before trying to probe it.
1439
ca0afd5b
CW
14402010-06-02 Colin Watson <cjwatson@ubuntu.com>
1441
1442 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1443 per the GNU Coding Standards; this is now too obscure to be worth
1444 documenting.
1445 (QNX): Likewise.
1446 (chainloader): Remove cross-reference to `SCO UnixWare'.
1447
1c41aa78
CW
14482010-06-02 Colin Watson <cjwatson@ubuntu.com>
1449
1450 * docs/grub.texi (Chain-loading): New section.
1451 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1452 adjusted for GRUB 2.
1453 (SCO UnixWare): Likewise.
1454 (QNX): Likewise.
1455 (chainloader): Add reference to `Block list syntax'.
1456 (drivemap): New section.
1457 (parttool): New section.
1458
bb8ea0f5
CW
14592010-06-02 Colin Watson <cjwatson@ubuntu.com>
1460
1461 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1462 the grub shell'.
1463 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1464 (Installing GRUB using grub-install): Remove reference to the grub
1465 shell; mention `grub-mkimage' and `grub-setup' instead.
1466 (Invoking grub-install): Likewise.
1467 (Interface): Add reference to `Menu entry editor'.
1468 (serial): Remove `--device' option.
1469
288dd6ed
CW
14702010-06-02 Colin Watson <cjwatson@ubuntu.com>
1471
1472 * docs/grub.texi (Configuration): New section, documenting
1473 configuration file generation using grub-mkconfig. I've left a slot
1474 for documenting the full shell scripting format but have not yet
1475 started on writing that up.
1476 (Invoking grub-mkconfig): New section.
1477
34c9f0e9
CW
14782010-06-02 Colin Watson <cjwatson@ubuntu.com>
1479
1480 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1481 (GNU GRUB manual): Likewise.
1482 (General commands): Update description of `terminfo' for GRUB 2.
1483
9121567e
CW
14842010-06-02 Colin Watson <cjwatson@ubuntu.com>
1485
1486 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1487 (GRUB_MOD_INIT): Fix capitalisation.
1488 * docs/grub.texi (Command-line and menu entry commands): Document
1489 gettext and gptsync commands.
1490
ab631611
CW
14912010-06-02 Colin Watson <cjwatson@ubuntu.com>
1492
1493 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1494 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1495
bde4a9ac
CW
14962010-06-01 Colin Watson <cjwatson@ubuntu.com>
1497
1498 Add btrfs probing support, currently only in the single-device case.
1499
1500 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1501 function.
1502 (grub_guess_root_device): Call find_root_device_from_mountinfo
1503 before looking in /dev.
1504
b1d17e10
VS
15052010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1506
1507 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1508 GRUB_DISK_SIZE_UNKNOWN.
1509 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1510
dfbfe004
JS
15112010-05-31 Jiro SEKIBA <jir@unicus.jp>
1512
1513 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1514 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1515 corrupted or not synced properly.
1516
c2ffc8e9
VS
15172010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1520 Reported by: Seth Goldberg.
1521
56293166
VS
15222010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1525 addition of dest.
1526 Reported by: Seth Goldberg.
1527
7620e7de
VS
15282010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1531 Reported by: Seth Goldberg.
1532
c837af3f
VS
15332010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1536 64-bit address as signed on MIPS.
1537
c7c75cf4
CW
15382010-05-28 Colin Watson <cjwatson@ubuntu.com>
1539
1540 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1541 to the empty string.
1542
fa4b8490
BC
15432010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1544
1545 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1546
1547 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1548 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1549 * kern/misc.c (__enable_execute_stack): Disable on
1550 GRUB_MACHINE_EMU.
1551
a33075b9
CW
15522010-05-28 Colin Watson <cjwatson@ubuntu.com>
1553
1554 Make grub-probe work with symbolic links under /dev/mapper as well
1555 as with real block devices. The Linux world seems to be (at best)
1556 in transition here, and GRUB shouldn't get caught in the middle.
1557
1558 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1559 /dev/mapper.
1560
d8708134
CW
15612010-05-27 Colin Watson <cjwatson@ubuntu.com>
1562
1563 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1564 input files (in which case exit zero).
1565
db2102a0
CW
15662010-05-27 Colin Watson <cjwatson@ubuntu.com>
1567
1568 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1569 return NULL for various reasons even if it has a maximum-length
1570 buffer: for example, there might be a symlink loop, or the path
1571 might exceed PATH_MAX. If this happens, return NULL.
1572
5fdba519
RM
15732010-05-27 Robert Millan <rmh@gnu.org>
1574
1575 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1576 partmap module to handle cross-partmap setups.
1577 Reported by Orestes Mas. Gràcies!
1578
d1d368e4
CW
15792010-05-27 Colin Watson <cjwatson@ubuntu.com>
1580
1581 * util/grub-mkrescue.in: Initialise override_dir rather than
1582 assuming that it's unset or empty in the environment.
1583
95ac3c73
GS
15842010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1585
1586 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1587 variable index into p_index to suppress a warning with -Wshadow.
1588
7d8c0213
BC
15892010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1590
1591 * INSTALL: Added flex >= 2.5.35 requirement.
1592
db4d5813
VS
15932010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1594
1595 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1596
f24f4300
VS
15972010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 cmostest support.
1600
1601 * commands/i386/cmostest.c: New file.
1602 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1603 (cmostest_mod_SOURCES): New variable.
1604 (cmostest_mod_CFLAGS): Likewise.
1605 (cmostest_mod_LDFLAGS): Likewise.
1606 * conf/i386-pc.rmk: Likewise.
1607 * docs/grub.texi (Vendor power-on keys): New section.
1608 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1609 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1610 and GRUB_BUTTON_CMOS_ADDRESS.
1611 * util/grub.d/00_header.in: Handle powering-on by separate button.
1612
ad603f61
VS
16132010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1616 Removed drawing_scrollbar argument. All users updated
1617 Fixes #29792.
1618 Reported by Jo Shields
1619
3ecb080a
VS
16202010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1621
1622 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1623 buffer since gfxterm handles double repaint.
1624
5f2316c1
VS
16252010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1628 * term/gfxterm.c (real_scroll): Likewise.
1629
9a25f885
VS
16302010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1633 before calling BIOS.
1634
39fbb79a
VS
16352010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * include/grub/i18n.h: Always enable grub_gettext.
1638
228cfa97
VS
16392010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1642 partition naming style.
1643
21717c8f
CW
16442010-05-21 Colin Watson <cjwatson@ubuntu.com>
1645
1646 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1647 not the first option.
1648
c0f48e65
CW
16492010-05-20 Colin Watson <cjwatson@ubuntu.com>
1650
1651 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1652
96779aec
CW
16532010-05-20 Colin Watson <cjwatson@ubuntu.com>
1654
1655 * util/misc.c: Move inclusion of <limits.h> to ...
1656 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1657
fa9d256e
GS
16582010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1659
1660 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1661 Fix merge error in NetBSD code.
1662 (find_partition_start) [__NetBSD__]: Likewise.
1663
123b7a85
BC
16642010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1665
1666 Fix grub-mkrescue usage unit testing.
1667
1668 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1669
74276c0d
CF
16702010-05-18 Christian Franke <franke@computer.org>
1671
1672 * util/grub.d/10_windows.in: Use path names instead of
1673 drive letters to prevent warning from Cygwin 1.7.
1674 Add drivemap command to menuentry if needed.
1675
c4f7b523
ST
16762010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1677
1678 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1679 gnumach and gnumach.gz.
1680
95b97950
VS
16812010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1682
1683 * include/grub/i18n.h (gettext): Inline instead of using #define.
1684 (grub_gettext): Likewise.
1685 (_): Likewise.
1686
01b8d2d7
VS
16872010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1690 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1691 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1692 (main): Add a slash after pkglibdirroot.
1693
654e1d1e
VS
16942010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * util/grub-install.in: Add missing "in" keyword.
1697
26966aeb
VS
16982010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1701 Reported by: Seth Goldberg.
1702
75006747
VS
17032010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1706
74cbf5bd
CW
17072010-05-18 Colin Watson <cjwatson@ubuntu.com>
1708
1709 * configure.ac: Check for Linux device-mapper support.
1710
1711 * util/hostdisk.c (device_is_mapped): New function.
1712 (find_partition_start): New function, partly broken out from
1713 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1714 device-mapper support added.
1715 (linux_find_partition): Use find_partition_start.
1716 (convert_system_partition_to_system_disk): Add `st' argument.
1717 Support Linux /dev/mapper/* devices if device-mapper support is
1718 available; only DM-RAID devices are understood at present.
1719 (find_system_device): Add `st' argument. Pass it to
1720 convert_system_partition_to_system_disk.
1721 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1722 find_system_device and convert_system_partition_to_system_disk. Use
1723 find_partition_start.
1724
1725 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1726 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1727 * util/deviceiter.c [__linux__]: Define MINOR.
1728 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1729 * util/mkdevicemap.c (grub_putchar): New function.
1730 (grub_getkey): New function.
1731 (grub_refresh): New function.
1732 (main): Set debug=all if -v -v is used.
1733
355b51e9
CW
17342010-05-18 Colin Watson <cjwatson@ubuntu.com>
1735
1736 Fix build with non-GNU libcs.
1737
1738 * util/misc.c (canonicalize_file_name): Move to ...
1739 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1740 grub_make_system_path_relative_to_its_root.
1741
7fb5c25f
CW
17422010-05-18 Colin Watson <cjwatson@ubuntu.com>
1743
1744 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1745 we handle finding grub-mkimage. Default to finding grub-mkimage in
1746 ${bindir} with program_transform_name applied, and provide a
1747 --grub-mkimage option to override this.
1748
1d3293d6
VS
17492010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1750
1751 Remove grub-mkisofs.
1752
1753 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1754 (grub_mkisofs_SOURCES): Removed.
1755 (grub_mkisofs_CFLAGS): Removed.
1756 * util/mkisofs/defaults.h: Removed.
1757 * util/mkisofs/eltorito.c: Likewise.
1758 * util/mkisofs/exclude.h: Likewise.
1759 * util/mkisofs/hash.c: Likewise.
1760 * util/mkisofs/include/: Likewise.
1761 * util/mkisofs/include/fctldefs.h: Likewise.
1762 * util/mkisofs/include/mconfig.h: Likewise.
1763 * util/mkisofs/include/prototyp.h: Likewise.
1764 * util/mkisofs/include/statdefs.h: Likewise.
1765 * util/mkisofs/iso9660.h: Likewise.
1766 * util/mkisofs/joliet.c: Likewise.
1767 * util/mkisofs/match.c: Likewise.
1768 * util/mkisofs/match.h: Likewise.
1769 * util/mkisofs/mkisofs.c: Likewise.
1770 * util/mkisofs/mkisofs.h: Likewise.
1771 * util/mkisofs/msdos_partition.h: Likewise.
1772 * util/mkisofs/multi.c: Likewise.
1773 * util/mkisofs/name.c: Likewise.
1774 * util/mkisofs/rock.c: Likewise.
1775 * util/mkisofs/tree.c: Likewise.
1776 * util/mkisofs/write.c: Likewise.
1777
5dde9afe
VS
17782010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 Unify grub-mkimage accross platforms.
1781
1782 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1783 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1784 (grub_mkelfimage_SOURCES): Removed.
1785 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1786 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1787 (bin_UTILITIES): Add grub-mkimage.
1788 (grub_mkimage_SOURCES): New variable.
1789 (kernel_img_HEADERS): Remove machine/kernel.h.
1790 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1791 (pkglib_PROGRAMS): Add kernel.img.
1792 (kernel_img_HEADERS): Add machine/kernel.h.
1793 (kernel_img_FORMAT): Removed.
1794 (bin_UTILITIES): Remove grub-mkimage.
1795 (grub_mkimage_SOURCES): Removed.
1796 (grub_mkimage_CFLAGS): Likewise.
1797 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1798 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1799 (pkglib_PROGRAMS): Add kernel.img.
1800 (bin_UTILITIES): Remove grub-mkimage.
1801 (grub_mkimage_SOURCES): Removed.
1802 (grub_mkimage_CFLAGS): Likewise.
1803 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1804 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1805 (pkglib_PROGRAMS): Add kernel.img.
1806 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1807 (pkglib_PROGRAMS): Add kernel.img.
1808 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1809 (grub_mkimage_SOURCES): Removed.
1810 (grub_mkimage_CFLAGS): Likewise.
1811 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1812 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1813 (pkglib_PROGRAMS): Add kernel.img.
1814 (bin_UTILITIES): Remove grub-mkimage.
1815 (grub_mkimage_SOURCES): Removed.
1816 (grub_mkimage_CFLAGS): Likewise.
1817 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1818 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1819 (grub_mkimage_SOURCES): Removed.
1820 (grub_mkimage_CFLAGS): Likewise.
1821 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1822 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1823 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1824 (grub_pe32_optional_header): ... this.
1825 (grub_pe64_optional_header): ... and this. All users updated.
1826 (GRUB_PE32_PE32_MAGIC): Split into ..
1827 (GRUB_PE32_PE32_MAGIC): .. this.
1828 (GRUB_PE32_PE64_MAGIC): .. and this.
1829 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1830 * include/grub/elf.h (PT_GNU_STACK): New definition.
1831 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1832 * include/grub/i386/efi/kernel.h: Likewise.
1833 * include/grub/i386/kernel.h: Likewise.
1834 * include/grub/i386/pc/kernel.h: Likewise.
1835 * include/grub/i386/qemu/boot.h: Likewise.
1836 * include/grub/mips/kernel.h: Likewise.
1837 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1838 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1839 * include/grub/powerpc/kernel.h: Likewise.
1840 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1841 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1842 * include/grub/sparc64/kernel.h: Likewise.
1843 * include/grub/x86_64/efi/kernel.h: Likewise.
1844 * include/grub/x86_64/kernel.h: Likewise.
1845 * include/grub/offsets.h: New file.
1846 * include/grub/kernel.h (grub_module_info): Split into ...
1847 (grub_module_info32): ... this.
1848 (grub_module_info64): ... and this.
1849 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1850 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1851 (grub_boot_blocklist): Moved from here ...
1852 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1853 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1854 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1855 * include/grub/types.h (grub_target_to_host16): Removed.
1856 (grub_target_to_host32): Likewise.
1857 (grub_target_to_host64): Likewise.
1858 (grub_host_to_target16): Likewise.
1859 (grub_host_to_target32): Likewise.
1860 (grub_host_to_target64): Likewise.
1861 (grub_host_to_target_addr): Likewise.
1862
1863 Support grub-mkrescue for efi, coreboot and qemu.
1864
1865 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1866 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1867 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1868 * util/grub-mkrawimage.c: Moved from here ...
1869 * util/grub-mkimage.c: ... here. All users updated.
1870 (ALIGN_ADDR): Use image_target.
1871 (TARGET_NO_FIELD): New const.
1872 (image_target_desc): New type.
1873 (image_targets): New array.
1874 (grub_target_to_host64): Use image_target.
1875 (grub_target_to_host32): Likewise.
1876 (grub_target_to_host16): Likewise.
1877 (grub_host_to_target64): Likewise.
1878 (grub_host_to_target32): Likewise.
1879 (grub_host_to_target16): Likewise.
1880 (grub_host_to_target_addr): Likewise.
1881 (generate_image): Handle multiimage.
1882 (main): Require -O parameter. All users updated.
1883 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1884 util/efi/grub-mkimage.c
1885 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1886 New option --rom-directory.
1887 Use xorriso.
1888 * util/i386/efi/grub-mkimage.c: Removed.
1889 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1890 (grub_target_to_host32): Likewise.
1891 (grub_target_to_host64): Likewise.
1892 (grub_host_to_target16): Likewise.
1893 (grub_host_to_target32): Likewise.
1894 (grub_host_to_target64): Likewise.
1895 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1896 (grub_target_to_host32): Likewise.
1897 (grub_target_to_host64): Likewise.
1898 (grub_host_to_target16): Likewise.
1899 (grub_host_to_target32): Likewise.
1900 (grub_host_to_target64): Likewise.
1901
f4fc97d0
BC
19022010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1903
1904 Source tree is reorganized for emu build.
1905
1906 * include/grub/util/console.h: Move from here...
1907 * include/grub/emu/console.h: ...to here.
1908 * include/grub/util/getroot.h: Move from here...
1909 * include/grub/emu/getroot.h: ...to here.
1910 * include/grub/util/hostdisk.h: Move from here...
1911 * include/grub/emu/hostdisk.h: ...to here.
1912 * util/console.c: Move from here...
1913 * kern/emu/console.c: ...to here.
1914 * util/getroot.c: Move from here...
1915 * kern/emu/getroot.c: ...to here.
1916 * util/grub-emu.c: Move from here...
1917 * kern/emu/main.c: ...to here.
1918 * util/hostdisk.c: Move from here...
1919 * kern/emu/hostdisk.c: ...to here.
1920 * util/hostfs.c: Move from here...
1921 * kern/emu/hostfs.c: ...to here.
1922 * util/mm.c: Move from here...
1923 * kern/emu/mm.c: ...to here.
1924 * util/pci.c: Move from here...
1925 * bus/emu/pci.c: ...to here.
1926 * util/sdl.c: Move from here...
1927 * video/emu/sdl.c: ...to here.
1928 * util/time.c: Move from here...
1929 * kern/emu/time.c: ...to here.
1930 * util/usb.c: Move from here...
1931 * bus/usb/emu/usb.c: ...to here.
1932
1933 * include/grub/emu/misc.h: New header for grub-emu functions.
1934 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1935
1936 * conf/any-emu.rmk: Rule updates for above renames.
1937 * conf/common.rmk: Likewise.
1938 * conf/i386-pc.rmk: Likewise.
1939 * conf/i386-qemu.rmk: Likewise.
1940 * conf/mips.rmk: Likewise.
1941 * conf/sparc64-ieee1275.rmk: Likewise.
1942 * conf/x86-efi.rmk: Likewise.
1943
1944 * disk/lvm.h: #include updates for above renames.
1945 * util/grub-mkrelpath.c: Likewise.
1946 * util/grub-probe.c: Likewise.
1947 * util/i386/pc/grub-setup.c: Likewise.
1948 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1949 * kern/emu/console.c: Likewise.
1950 * kern/emu/getroot.c: Likewise.
1951 * kern/emu/hostdisk.c: Likewise.
1952 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1953
1954 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1955 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1956 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1957 * util/misc.c: Remove grub-emu functions.
1958
cced9145
VS
19592010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 Fix gfxmenu crash.
1962 Reported by: Thorsten Grützmacher.
1963
1964 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1965 timeout hook.
1966 (circprog_set_property): Register and unregister timeout hook.
1967 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1968 (label_destroy): Free template. and unregister hook.
1969 (label_set_state): New function.
1970 (label_set_property): Handle templates and hooks.
1971 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1972 timeout hook.
1973 (progress_bar_set_property): Register and unregister timeout hook.
1974 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1975 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1976 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1977 (update_timeout_visit): Removed.
1978 (update_timeouts): New function.
1979 (redraw_timeouts): Likewise.
1980 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1981 (grub_gfxmenu_clear_timeout): Likewise.
1982 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1983 (grub_gfxmenu_timeout_notify): Likewise.
1984 (grub_gfxmenu_timeout_notifications): New external variable.
1985 (grub_gfxmenu_timeout_register): New function.
1986 (grub_gfxmenu_timeout_unregister): Likewise.
1987
c6e5caab
VS
19882010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 Transform (broken) vga terminal into (working) vga video driver.
1991
1992 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1993 video/i386/pc/vga.c.
1994 * include/grub/video.h (grub_video_driver_id):
1995 Add GRUB_VIDEO_DRIVER_VGA.
1996 * term/i386/pc/vga.c: Renamed to ...
1997 * video/i386/pc/vga.c: ...this
1998 (DEBUG_VGA): Removed.
1999 (CHAR_WIDTH): Likewise.
2000 (CHAR_HEIGHT): Likewise.
2001 (TEXT_WIDTH): Likewise.
2002 (TEXT_HEIGHT): Likewise.
2003 (DEFAULT_FG_COLOR): Likewise.
2004 (DEFAULT_BG_COLOR): Likewise.
2005 (colored_char): Likewise.
2006 (xpos): Likewise.
2007 (ypos): Likewise.
2008 (cursor_state): Likewise.
2009 (fg_color): Likewise.
2010 (bg_color): Likewise.
2011 (text_buf): Likewise.
2012 (page): Likewise.
2013 (font): Likewise.
2014 (framebuffer): New variable.
2015 (set_read_map): Disabled.
2016 (setup): New variable.
2017 (is_target): Likewise.
2018 (grub_vga_mod_init): Likewise.
2019 (grub_vga_mod_fini): Likewise.
2020 (check_vga_mem): Likewise.
2021 (write_char): Likewise.
2022 (write_cursor): Likewise.
2023 (scroll_up): Likewise.
2024 (grub_vga_putchar): Likewise.
2025 (grub_vga_getcharwidth): Likewise.
2026 (grub_vga_getwh): Likewise.
2027 (grub_vga_getxy): Likewise.
2028 (grub_vga_gotoxy): Likewise.
2029 (grub_vga_cls): Likewise.
2030 (grub_vga_setcolorstate): Likewise.
2031 (grub_vga_setcursor): Likewise.
2032 (grub_video_vga_init): New function.
2033 (grub_video_vga_setup): Likewise.
2034 (grub_video_vga_fini): Likewise.
2035 (update_target): Likewise.
2036 (grub_video_vga_blit_bitmap): Likewise.
2037 (grub_video_vga_blit_render_target): Likewise.
2038 (grub_video_vga_set_active_render_target): Likewise.
2039 (grub_video_vga_get_active_render_target): Likewise.
2040 (grub_video_vga_swap_buffers): Likewise.
2041 (grub_video_vga_set_palette): Likewise.
2042 (grub_video_vga_get_info_and_fini): Likewise.
2043 (grub_vga_term): Removed.
2044 (grub_video_vga_adapter): New variable.
2045 (GRUB_MOD_INIT): Register a video driver instead of terminal.
2046 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
2047
2bf61a98
VS
20482010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * video/readers/jpeg.c: Indented.
2051
09ddcd11
VS
20522010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 Various jpeg cleanups.
2055
2056 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
2057 (grub_jpeg_decode_quan_table): Use sizeof.
2058 (grub_jpeg_decode_du): Use ARRAY_SIZE.
2059
e5507505
PH
20602010-05-05 Peter Hurley <No e-mail available> (tiny change)
2061
2062 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
2063 tables. Ignore non-last ac bit.
2064 (grub_jpeg_decode_quan_table): Likewise.
2065
7e720a9b
VS
20662010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2069 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
2070 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2071 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
2072 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
2073 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
2074
a7fc080b
VS
20752010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
2078 error.
2079
2bf6012d
VS
20802010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
2083
265d68cd
VS
20842010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
2087 condition.
2088
20892010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
2090
2091 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
2092 part.
2093
265d68cd 20942010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
2095
2096 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
2097 pointers.
2098
265d68cd 20992010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
2100
2101 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
2102
d1b61374
CF
21032010-05-01 Christian Franke <franke@computer.org>
2104
2105 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
2106 Remove broken Cygwin path conversion.
2107 * util/misc.c: [__CYGWIN__] Add include and define.
2108 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
2109 for Cygwin 1.7.
2110 (make_system_path_relative_to_its_root): Simplify loop, replace early
2111 return by break.
2112 [__CYGWIN__] Add conversion to win32 path.
2113 Include "/" case in trailing slash removal.
2114
3558c6e9
VS
21152010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * kern/main.c (grub_load_config): Fix copy-pasted comment.
2118 Reported by: Seth Goldberg
2119
f5f3ff93
VS
21202010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * commands/help.c (grub_cmd_help): Fix a typo.
2123 Reported by: Seth Goldberg
2124
d8b5cd40
VS
21252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
2128 name and add N_.
2129 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
2130 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
2131 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
2132 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
2133 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
2134 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
2135 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2136 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2137 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2138 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2139 * normal/context.c (GRUB_MOD_INIT): Likewise.
2140 * normal/main.c (GRUB_MOD_INIT): Likewise.
2141 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2142 * term/serial.c (GRUB_MOD_INIT): Likewise.
2143 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2144
88c14915
VS
21452010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
2148 extra == 0.
2149
165134bc
VS
21502010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * commands/iorw.c: New file.
2153 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
2154 (iorw_mod_SOURCES): New variable.
2155 (iorw_mod_CFLAGS): Likewise.
2156 (iorw_mod_LDFLAGS): Likewise.
2157
c5ac9b32
VS
21582010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 Hotkey support
2161
2162 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
2163 * normal/main.c (hotkey_aliases): New variable.
2164 (grub_normal_add_menu_entry): Parse "--hotkey".
2165 * normal/menu_text.c (run_menu): Handle hotkeys.
2166
ce60689c
VS
21672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * kern/i386/coreboot/init.c (grub_machine_init): Call
2170 grub_machine_mmap_init on qemu.
2171
0359d006
VS
21722010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 * boot/i386/qemu/boot.S: Add a missing .code16.
2175
7819a456
VS
21762010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 Use LBIO on coreboot.
2179
2180 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
2181 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
2182 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
2183 New declaration.
2184 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
2185 grub_machine_mmap_init on coreboot.
2186 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
2187 GRUB_LINUXBIOS_MEMBER_LINK.
2188 (grub_machine_mmap_iterate): Fix declaration.
2189 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
2190
7210dca9
VS
21912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 Split coreboot and multiboot ports.
2194
2195 * conf/i386-multiboot.rmk: New file.
2196 * configure.ac: Add multiboot port.
2197 * include/grub/i386/multiboot/boot.h: New file.
2198 * include/grub/i386/multiboot/console.h: Likewise.
2199 * include/grub/i386/multiboot/init.h: Likewise.
2200 * include/grub/i386/multiboot/kernel.h: Likewise.
2201 * include/grub/i386/multiboot/loader.h: Likewise.
2202 * include/grub/i386/multiboot/memory.h: Likewise.
2203 * include/grub/i386/multiboot/serial.h: Likewise.
2204 * include/grub/i386/multiboot/time.h: Likewise.
2205 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
2206 * loader/multiboot.c: Likewise.
2207 * loader/multiboot_mbi2.c: Likewise.
2208 * util/grub-mkrescue.in: Generate multiboot rescue.
2209
6f8aaf68
VS
22102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2211
3080f7a7
VS
2212 * kern/parser.c (grub_parser_execute): Cope with read-only config.
2213
22142010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2215
2216 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
2217
2218 * commands/terminal.c (abstract_terminal): New struct.
2219 (handle_command): New function. Based on grub_cmd_terminal_input.
2220 (grub_cmd_terminal_input): Use handle_command.
2221 (grub_cmd_terminal_output): Use handle_command.
2222
a8ebb841
BC
22232010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
2224
2225 Fix comment handling.
2226
2227 * tests/grub_script_comments.in: New testcase.
2228 * conf/tests.rmk: Rules for new testcase.
2229 * script/yylex.l: Updated flex rules.
2230
bb06ba08
ST
22312010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2232
2233 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
2234 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
2235 if argc is 1.
bb06ba08 2236
cc9d2425
VS
22372010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
2240 autogen issues.
2241
460d8402
CF
22422010-04-26 Christian Franke <franke@computer.org>
2243
2244 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
2245 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
2246 (grub_get_prefix): Remove function.
2247 * util/grub-emu.c (main): Replace grub_get_prefix () call by
2248 make_system_path_relative_to_its_root ().
2249 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2250
553c01f9
CF
22512010-04-24 Christian Franke <franke@computer.org>
2252
2253 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
2254 (kernel_img_LDFLAGS): Remove -static-libgcc.
2255
2aec1692
CF
22562010-04-24 Christian Franke <franke@computer.org>
2257
2258 * configure.ac: Do not CHECK_BSS_START_SYMBOL
2259 and CHECK_END_SYMBOL if grub-emu is built.
2260 Unset TARGET_OBJ2ELF if grub-emu is built
2261 without module support.
2262
f67dc308
JS
22632010-04-24 Jiro SEKIBA <jir@unicus.jp>
2264
2265 Nilfs2 support.
2266
2267 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
2268 (grub_fstest_SOURCES): Likewise.
2269 (pkglib_MODULES): Add nilfs2.mod.
2270 (nilfs2_mod_SOURCES): New variable.
2271 (nilfs2_mod_CFLAGS): Likewise.
2272 (nilfs2_mod_LDFLAGS): Likewise.
2273 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2274 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2275 * fs/nilfs2.c: New file.
2276
4ba8d354
VS
22772010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
2280 is not supported.
2281
0d2c20c6
GS
22822010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
2283
2284 Add grub-mkconfig support for NetBSD.
2285
2286 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
2287 * util/grub-mkconfig.in: export new NetBSD specific variables.
2288 * po/POTFILES-shell: added 10_netbsd.in.
2289 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
2290
bc4a2d83
BC
22912010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
2292
2293 Fix emu build with grub-emu-pci and grub-emu-modules.
2294
2295 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
2296 functions.
2297 * include/grub/libpciaccess.h: New file.
2298 * conf/any-emu.rmk: Update kernel headers for emu build.
2299
f48c87aa
VS
23002010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
2303
18959385
VS
23042010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
2307
0037de3f
VS
23082010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
2311 Retrieve chosen/bootpath if bootpath isn't hardcoded.
2312 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
2313 util/ieee1275/ofpath.c.
2314 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
2315 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
2316 * include/grub/sparc64/ieee1275/boot.h
2317 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
2318 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
2319 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
2320 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
2321 const char *.
2322 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
2323 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
2324 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
2325 install.
2326
38e55e90
GS
23272010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
2328
2329 * util/grub-mkconfig.in: Corrected two == equality tests.
2330 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
2331 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
2332 expect a number appended to it.
2333 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
2334 expects a number appended to it.
2335
a9e6ff28
VS
23362010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
2339
0b830b8f
VS
23402010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * util/hostdisk.c (make_device_name): Change to new partition naming.
2343
0973daeb
VS
23442010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
2347
460d8402 23482010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
2349
2350 * Makefile.in: Add missing localedir setting.
2351
0b456309
CW
23522010-04-14 Colin Watson <cjwatson@ubuntu.com>
2353
2354 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
2355 mistake in r2156. Noticed by Anthony Fok.
2356
2357 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
2358 @localedir@.
2359 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
2360
08f46d62
BC
23612010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
2362
2363 Fix a spurious, uninitialized variable warning.
2364
2365 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
2366 Initialize variable, shdr.
2367 (grub_freebsd_load_elfmodule): Likewise.
2368 (grub_freebsd_load_elf_meta): Likewise.
2369
8c4a72d4
BC
23702010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
2371
2372 Fix for escaped dollar in double quoted strings.
2373
2374 * script/yylex.l: Updated flex rules.
2375 * conf/tests.rmk: Rule for new testcase.
2376 * tests/grub_script_dollar.in: New testcase.
2377
ce44826e
CPE
23782010-04-13 Carles Pina i Estany <carles@pina.cat>
23792010-04-13 Colin Watson <cjwatson@ubuntu.com>
2380
2381 Enclose all translated strings in grub.cfg in single quotes, and
2382 escape them appropriately (Ubuntu bug #552921).
2383
2384 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2385 * util/grub.d/10_hurd.in: Use it.
2386 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2387 * util/grub.d/10_linux.in (linux_entry): Likewise.
2388
4b0cd8f8
VS
23892010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 Fix cygwin compilation.
2392
2393 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2394 * include/grub/misc.h (__register_frame_info)
2395 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2396 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2397 * kern/misc.c (__register_frame_info)
2398 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2399 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2400
01fcf061
VS
24012010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2404
5d04b11e
VS
24052010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 Unify libgcc processing.
2408
2409 * Makefile.in (kernel_img_LDFLAGS): New variable.
2410 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2411 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2412 overwriting.
2413 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2414 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2415 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2416 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2417 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2418 overwriting. Remove -lgcc and -static-libgcc
2419 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2420 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2421 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2422 (kernel_img_LDFLAGS): Append instead of overwriting.
2423 Remove -lgcc and -static-libgcc
2424 * conf/sparc64-ieee1275.rmk: Likewise.
2425 * include/grub/powerpc/libgcc.h: Move to ...
2426 * include/grub/libgcc.h: .. this.
2427 * include/grub/libgcc.h: Don't export most of the function on x86.
2428 (__bswapsi2): New export.
2429 (__bswapdi2): Likewise.
2430 * include/grub/mips/libgcc.h: Removed.
2431 * include/grub/sparc64/libgcc.h: Likewise.
2432
b7f3ac29
VS
24332010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2436 disk_info_msg (conflicts with gettexting into languages with cases).
2437
2c7031b1
GS
24382010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2439
2440 Add grub-probe support for NetBSD.
2441
2442 * util/getroot.c (find_root_device): Convert block device to
2443 character device on NetBSD.
2444 * util/probe.c (probe): Require character device on NetBSD.
2445 * util/hostdisk.c: NetBSD specific headers.
2446 (configure_device_driver): new function to tune device driver
2447 parameters (currently only for NetBSD floppy driver).
2448 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2449 via disklabel ioctl).
2450 (open_device): call configure_device_driver on NetBSD.
2451 (convert_system_partition_to_system_disk): NetBSD specific code.
2452 (device_is_wholedisk): Likewise.
2453 (grub_util_biosdisk_get_grub_dev): Likewise.
2454 (make_device_name): Fixed a typo in bsd_part_str.
2455 * configure.ac: check for opendisk() and getrawpartition() on
2456 NetBSD and set LIBUTIL.
2457 * Makefile.in: add LIBUTIL to LIBS.
2458
f516290c
BC
24592010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2460
2461 Documentation fix.
2462
2463 * util/grub-script-check.c: Better help message.
2464
d8dcc0df
BC
24652010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2466
2467 Fix FreeBSD build.
2468
2469 * configure.ac: Flex version check.
2470 * conf/common.rmk: Add -Wno-error to sh.mod.
2471 * script/yylex.l: Remove all #pragma.
2472
6734334a
VS
24732010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2476 prototype.
2477 Reported by: Seth Goldberg.
2478
daea6abd
VS
24792010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2480
2481 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2482 Rename "module" to "module2".
2483 Reported by: Seth Goldberg.
2484
f2fd9d2b
VS
24852010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2488 EXPORT_FUNC.
2489 Reported by: Seth Goldberg.
2490
be124579
VS
24912010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * lib/posix_wrap/locale.h: Add missing file.
2494 Reported by: Seth Goldberg.
2495
ef5da797
VS
24962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 grub-emu module load support.
2499
2500 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2501 NO_DYNAMIC_MODULES switched to this.
2502 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2503 (CFLAGS): Likewise.
2504 * conf/any-emu.rmk: Generate symlist.
2505 (kernel_img_HEADERS): Add util/datetime.h.
2506 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2507 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2508 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2509 kern/$(target_cpu)/cache.S.
2510 * configure.ac (grub-emu-modules): New option.
2511 * genmk.rb: Handle multiple source lists.
2512 * include/grub/sdl.h: New file.
2513 * include/grub/libusb.h: Likewise.
2514 * util/grub-emu.c (main): Hanle (host) root.
2515 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2516 GRUB_ERR_UNKNOWN_DEVICE.
2517 * util/misc.c: Move mm functions to ...
2518 * util/mm.c: ... here. All users updated.
2519
47822096
VS
25202010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2523 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2524 missing files.
2525 (maintainer-clean): Remove libgcrypt-grub.
2526
5d7e7445
VS
25272010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2530
25f4e252
EC
25312010-04-09 EFI Coder <eficoder@hotmail.com>
2532
2533 * normal/menu_text.c (print_message): Clean up the message and show
2534 the Fn information when on EFI
2535 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2536
027de555
VS
25372010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2540 All users updated.
2541 * normal/crypto.c (read_crypto_list): Likewise.
2542 * normal/dyncmd.c (read_command_list): Likewise.
2543 * normal/term.c (read_terminal_list): Likewise.
2544 * normal/main.c (read_lists): Use explicit prefix.
2545 (read_lists_hook): Use read_lists.
2546 (grub_normal_execute): Likewise.
2547
47779711
VS
25482010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2551 Reported by: Thomas Schmitt.
2552 Add -no-emul-boot to grub-mkisofs parameters.
2553
1118c32e
VS
25542010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * font/font.c: Indented.
2557
7d652447
BC
25582010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2559
2560 Elif support to GRUB script (by Deepak Vankadaru).
2561
2562 * tests/grub_script_if.in: New testcase.
2563 * conf/tests.rmk: Rule for new testcase.
2564 * script/parser.y: Grammar rules for elif.
2565
34bb22df
BC
25662010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2567
2568 While and until loops support to GRUB script.
2569
2570 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2571 (grub_script_create_cmdwhile): New function prototype.
2572 (grub_script_execute_cmdwhile): New function prototype.
2573 * script/execute.c (grub_script_execute_cmdwhile): New function.
2574 * script/parser.y (command): New commands.
2575 (whilecmd): New grammar rule.
2576 (untilcmd): New grammar rule.
2577 * script/script.c (grub_script_create_cmdwhile): New function.
2578 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2579 function.
2580
2581 * tests/grub_script_while1.in: New testcase.
2582 * conf/tests.rmk: Rule for new testcase.
2583
e215d8e0
VS
25842010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2587 as *.jpg.
2588
d7c43ba1
MV
25892010-04-09 Mario Vazquez <mariovazq@gmail.com>
2590
2591 GRUB_BACKGROUND support.
2592
2593 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2594 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2595
d64795c0
VS
25962010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 2599 Idea by: Mario Vazquez
d64795c0
VS
2600
2601 * util/grub.d/00_header.in: Load pf2 and image modules.
2602
f267f83a
VS
26032010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 grub-mkconfig multiple terminal support.
2606
2607 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2608 * util/grub.d/00_header.in: Likewise.
2609
b7841ceb
VS
26102010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2611
2612 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2613 we use cd $(srcdir).
2614
df60998c
CW
26152010-04-08 Colin Watson <cjwatson@ubuntu.com>
2616
2617 * util/grub.d/10_linux.in: Only use the first word of
2618 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2619 spaces in GRUB_DISTRIBUTOR.
2620 * util/grub.d/10_kfreebsd.in: Likewise.
2621 * util/grub.d/10_hurd.in: Likewise.
2622
fa09c82e
BC
26232010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2624
14e18ae3 2625 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
2626
2627 * tests/util/grub-shell.in: Remove -serial stdio option.
2628
daf892b3
BC
26292010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 POSIX header file wrappers.
2632
2633 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2634 equivalents.
2635 * lib/posix_wrap/ctype.h: Likewise.
2636 * lib/posix_wrap/errno.h: Likewise.
2637 * lib/posix_wrap/langinfo.h: Likewise.
2638 * lib/posix_wrap/limits.h: Likewise.
2639 * lib/posix_wrap/localcharset.h: Likewise.
2640 * lib/posix_wrap/stdint.h: Likewise.
2641 * lib/posix_wrap/stdio.h: Likewise.
2642 * lib/posix_wrap/stdlib.h: Likewise.
2643 * lib/posix_wrap/string.h: Likewise.
2644 * lib/posix_wrap/sys/types.h: Likewise.
2645 * lib/posix_wrap/unistd.h: Likewise.
2646 * lib/posix_wrap/wchar.h: Likewise.
2647 * lib/posix_wrap/wctype.h: Likewise.
2648 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2649 (grub_script.yy.h): Likewise.
2650 * script/yylex.l: Remove POSIX emulation #defines.
2651 * Makefile.in (POSIX_CFLAGS): New variable.
2652 (GNULIB_UTIL_CFLAGS): Likewise.
2653
2654 Regexp support.
2655
2656 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2657 (regexp_mod_SOURCES): New variable.
2658 (regexp_mod_CFLAGS): Likewise.
2659 (regexp_mod_LDFLAGS): Likewise.
2660 * commands/regexp.c: New file.
2661 * gnulib/regcomp.c: New file. Imported from gnulib.
2662 * gnulib/regex.c: Likewise.
2663 * gnulib/regex_internal.c: Likewise.
2664 * gnulib/regex_internal.h: Likewise.
2665 * gnulib/regexec.c: Likewise.
2666 * gnulib/regex.h: Likewise.
2667
974ac4f7
VS
26682010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2671 unsupported video mode types.
2672
2622c3ff
VS
26732010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2676
064cb524
VS
26772010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2680 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2681
a8c3b552
VS
26822010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2683
2684 Remove unused grub_vga_get_font.
2685
2686 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2687 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2688
187bbe3d
GS
26892010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2690
2691 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2692 * include/grub/misc.h: Likewise.
2693
b9396631
GS
26942010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2695
2696 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2697 for which failure is fatal.
2698
50479feb
GS
26992010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2700
2701 * util/grub-install.in: Use mkdir -p to create grub directory.
2702 * util/i386/efi/grub-install.in: Likewise.
2703 * util/ieee1275/grub-install.in: Likewise.
2704
b1654fdf
GS
27052010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2706
2707 * Makefile.in (LEX): new variable.
2708
bd5a6415
GS
27092010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2710
2711 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2712 `=' and added double quotes on operands of this equality test.
2713
3db3a82b
VS
27142010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2715
2716 * Makefile.in (uninstall): Remove a leftover debug echo.
2717 Reported by: Grégoire Sutre
2718
38023412
VS
27192010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2720
2721 MIPS multiboot2 support.
2722
2723 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2724 (multiboot2_mod_SOURCES): New variable.
2725 (multiboot2_mod_CFLAGS): Likewise.
2726 (multiboot2_mod_LDFLAGS): Likewise.
2727 (multiboot2_mod_ASFLAGS): Likewise.
2728 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2729 definition.
2730 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2731 (MULTIBOOT_MBI_REGISTER): Likewise.
2732 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2733 (MULTIBOOT_ELF32_MACHINE): Likewise.
2734 (MULTIBOOT_ELF64_MACHINE): Likewise.
2735 * include/grub/mips/multiboot.h: New file.
2736 * include/grub/video.h (grub_video_driver_id): New type
2737 GRUB_VIDEO_DRIVER_SM712.
2738 (grub_video_get_info_and_fini): Export.
2739 (grub_video_get_palette): Likewise.
2740 (grub_video_get_driver_id): Likewise.
2741 * include/multiboot2.h: Resynced with spec.
2742 * loader/i386/multiboot.c: Moved from here ...
2743 * loader/multiboot.c: ... here. All users updated.
2744 (grub_multiboot_boot): Use platform-specific macros.
2745 * loader/i386/multiboot_elfxx.c: Moved from here ...
2746 * loader/multiboot_elfxx.c: ... here. All users updated.
2747 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2748 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2749 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2750
47674667
VS
27512010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 Import gnulib argp module.
2754
2755 * gnulib/argp-ba.c: New file.
2756 * gnulib/argp-eexst.c: Likewise.
2757 * gnulib/argp-fmtstream.c: Likewise.
2758 * gnulib/argp-fmtstream.h: Likewise.
2759 * gnulib/argp-fs-xinl.c: Likewise.
2760 * gnulib/argp-help.c: Likewise.
2761 * gnulib/argp-namefrob.h: Likewise.
2762 * gnulib/argp-parse.c: Likewise.
2763 * gnulib/argp-pin.c: Likewise.
2764 * gnulib/argp-pv.c: Likewise.
2765 * gnulib/argp-pvh.c: Likewise.
2766 * gnulib/argp-version-etc.c: Likewise.
2767 * gnulib/argp-version-etc.h: Likewise.
2768 * gnulib/argp-xinl.c: Likewise.
2769 * gnulib/argp.h: Likewise.
2770
495442ed
VS
27712010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * kern/device.c (grub_device_iterate): Clear errors after failed
2774 opening device.
2775
f9fd65df
VS
27762010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2779 returned by firmware.
2780
af09641e
VS
27812010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2784 compilation on coreboot and qemu
2785
016883a5
VS
27862010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * include/multiboot2.h: Resync with spec.
2789
f97e1f7d
VS
27902010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 Multiboot2 tag support
2793
2794 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2795 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2796 Remove loader/multiboot_loader.c.
2797 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2798 (grub_multiboot2_real_boot): Likewise.
2799 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2800 (grub_get_multiboot_mmap_count): New proto.
2801 (grub_fill_multiboot_mmap): Likewise.
2802 (grub_multiboot_set_video_mode): Likewise.
2803 (grub_multiboot_set_console): Likewise.
2804 (grub_multiboot_load): Likewise.
2805 (grub_multiboot_load_elf): Likewise.
2806 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2807 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2808 * include/multiboot.h: Resynced with specification.
2809 * include/multiboot2.h: Resynced with specification.
2810 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2811 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2812 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2813 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2814 users updated.
2815 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2816 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2817 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2818 Removed.
2819 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2820 Moved from here...
2821 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2822 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2823 Moved from here...
2824 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2825 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2826 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2827 All users updated.
2828 * loader/i386/multiboot_mbi2.c: New file.
2829
3506b90b
VS
28302010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 Resync with gnulib.
2833
2834 * Makefile.in (GNULIB_CFLAGS): New variable.
2835 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2836 (grub_script_check_CFLAGS): New variable.
2837 * gnulib/alloca.h: Resync with gnulib.
2838 * gnulib/error.c: Likewise.
2839 * gnulib/error.h: Likewise.
2840 * gnulib/fnmatch.c: Likewise.
2841 * gnulib/fnmatch_loop.c: Likewise.
2842 * gnulib/getdelim.c: Likewise.
2843 * gnulib/getline.c: Likewise.
2844 * gnulib/getopt.c: Likewise.
2845 * gnulib/getopt1.c: Likewise.
2846 * gnulib/getopt_int.h: Likewise.
2847 * gnulib/gettext.h: Likewise.
2848 * gnulib/progname.c: Likewise.
2849 * gnulib/progname.h: Likewise.
2850
394a3120
GS
28512010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2852
2853 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2854 which is the case with --disabled-nls.
2855
2856 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2857 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2858 * util/misc.c: Likewise.
2859 * util/mkisofs/mkisofs.c: Likewise.
2860 * util/mkisofs/mkisofs.h: Likewise.
2861
969d1c78
VS
28622010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 Simplify Apple CC support.
2865
2866 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2867 Add 0 byte at the end not to have a symbol with empty target.
2868 * mmap/i386/pc/mmap_helper.S: Likewise.
2869 * genmk.rb: Ignore errors 2030 and 2050.
2870 * kern/i386/pc/startup.S: Use LOCAL when possible.
2871
8d2977bb
BC
28722010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2873
2874 Testcase and the fix for final semicolon on cmdline.
2875
2876 * tests/grub_script_final_semicolon.in: New testcase.
2877 * conf/tests.rmk: Rules for the new testcase.
2878 * script/parser.y: Grammar fix.
2879
a7bd6915
BC
28802010-03-26 BVK Chaitanya <bvk@localhost>
2881
2882 Blank lines testcase for GRUB script.
2883
2884 * tests/grub_script_blanklines.in: New testcase.
2885 * conf/tests.rmk: Rules for the new testcase.
2886
e4ff6628
VS
28872010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 Don't use __FILE__.
2890
2891 * genmk.rb: Add -DGRUB_FILE to all C targets.
2892 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2893 * include/grub/list.h: Likewise.
2894 * include/grub/misc.h: Likewise.
2895 * include/grub/mm.h: Likewise.
2896 * include/grub/test.h: Likewise.
2897 * kern/mm.c: Likewise.
2898 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2899
6a5cf6b6
VS
29002010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 Sunpc partitions support.
2903
2904 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2905 (grub_fstest_SOURCES): Likewise.
2906 (pkglib_MODULES): Add part_sunpc.mod.
2907 (part_sunpc_mod_SOURCES): New variable.
2908 (part_sunpc_mod_CFLAGS): Likewise.
2909 (part_sunpc_mod_LDFLAGS): Likewise.
2910 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2911 * partmap/sunpc.c: New file.
2912
746d9045
BC
29132010-03-26 BVK Chaitanya <bvk@localhost>
2914
2915 For loop support to GRUB script.
2916
2917 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2918 (grub_script_create_cmdfor): New function prototype.
2919 (grub_script_execute_cmdfor): New function prototype.
2920 * script/execute.c (grub_script_execute_cmdfor): New function.
2921 * script/parser.y (command): New for command.
2922 (forcmd): New grammar rule.
2923 * script/script.c (grub_script_create_cmdfor): New function.
2924 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2925 function.
2926 * tests/grub_script_for1.in: New testcase.
2927 * conf/tests.rmk: Rules for new testcase.
2928
18486b18
VS
29292010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 Nested partitions
2932
2933 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2934 'partition' is NULL, grub_partition_get_start already does that.
2935 * commands/loadenv.c (check_blocklists): Likewise.
2936 (write_blocklists): Likewise.
2937 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2938 (grub_fstest_SOURCES): Likewise.
2939 (pkglib_MODULES): Add part_bsd.mod.
2940 (part_bsd_mod_SOURCES): New variable.
2941 (part_bsd_mod_CFLAGS): Likewise.
2942 (part_bsd_mod_LDFLAGS): Likewise.
2943 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2944 (grub_emu_SOURCES): Likewise.
2945 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2946 * include/grub/bsdlabel.h: New file.
2947 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2948 'get_name'.
2949 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2950 (grub_partition_map_list): New variable.
2951 (grub_partition_map_register): Inline.
2952 (grub_partition_map_unregister): Likewise.
2953 (FOR_PARTITION_MAPS): New macro.
2954 (grub_partition_map_iterate): Removed.
2955 (grub_partition_get_start): Handle nested partitions.
2956 * include/grub/msdos_partition.h: Remove bsd-related entries.
2957 (grub_pc_partition): Remove.
2958 * kern/disk.c (grub_disk_close): Free partition data.
2959 (grub_disk_adjust_range): Handle nested partitions.
2960 * kern/partition.c (grub_partition_map_probe): New function.
2961 (grub_partition_probe): Parse name to number, handle subpartitions.
2962 (get_partmap): New function.
2963 (grub_partition_iterate): Handle subpartitions.
2964 (grub_partition_get_name): Likewise.
2965 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2966 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2967 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2968 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2969 Set 'number'.
2970 (acorn_partition_map_probe): Remove.
2971 (acorn_partition_map_get_name): Likewise.
2972 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2973 Set 'number'.
2974 Set 'index' to 0 since there can be only one partition entry per sector.
2975 (amiga_partition_map_probe): Remove.
2976 (amiga_partition_map_get_name): Likewise.
2977 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2978 Set 'number'.
2979 Set 'offset' and 'index' to real positions of partitions.
2980 (apple_partition_map_probe): Remove.
2981 (apple_partition_map_get_name): Likewise.
2982 * partmap/bsdlabel.c: New file.
2983 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2984 Set 'number'.
2985 Allocate 'data' so it can be correctly freed.
2986 Set 'index' to offset inside sector.
2987 (gpt_partition_map_probe): Remove.
2988 (gpt_partition_map_get_name): Likewise.
2989 * partmap/msdos.c (grub_partition_parse): Remove.
2990 (pc_partition_map_iterate): Don't force raw access.
2991 Set 'number'.
2992 Make 'ext_offset' a local variable.
2993 (pc_partition_map_probe): Remove.
2994 (pc_partition_map_get_name): Remove.
2995 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2996 Set 'number'.
2997 (sun_partition_map_probe): Remove.
2998 (sun_partition_map_get_name): Likewise.
2999 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
3000 (grub_pcpart_type): Likewise.
3001 * util/hostdisk.c (open_device): Handle new numbering scheme.
3002 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
3003 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
3004 * util/grub-probe.c (probe_partmap): Handle nested paritions.
3005 * util/grub-install.in: Insert all subpartition modules.
3006 * util/ieee1275/grub-install.in: Likewise.
3007
a3940f88
AG
30082010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
3009
3010 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
3011 grammar.
3012
21b99926 30132010-03-24 Colin Watson <cjwatson@ubuntu.com>
3014
3015 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
3016
bed1d352
CW
30172010-03-21 Colin Watson <cjwatson@ubuntu.com>
3018
3019 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
3020 match where 'make install' puts them.
3021 * util/i386/efi/grub-install.in: Likewise.
3022
c9f58427
CW
30232010-03-19 Colin Watson <cjwatson@ubuntu.com>
3024
3025 * .bzrignore: Add gentrigtables, grub-script-check,
3026 grub_script_check_init.c, grub_script_check_init.h, and
3027 trigtables.c.
3028
f84afb27
VS
30292010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 * kern/parser.c: Indented.
3032
ed0e3d30
VS
30332010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
3036
0ea81d98
VS
30372010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
3040 alpha_mask_size == 0 case.
3041
0cdc2a09
BC
30422010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
3043
3044 GRUB shell lexer and parser improvements.
3045
3046 * conf/any-emu.rmk: Build rule updates.
3047 * conf/common.rmk: Likewise.
3048 * conf/i386-coreboot.rmk: Likewise.
3049 * conf/i386-efi.rmk: Likewise.
3050 * conf/i386-ieee1275.rmk: Likewise.
3051 * conf/i386-pc.rmk: Likewise.
3052 * conf/powerpc-ieee1275.rmk: Likewise.
3053 * conf/x86_64-efi.rmk: Likewise.
3054
3055 * configure.ac: Configure check for flex.
3056
3057 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
3058 types.
3059 (grub_lexer_param): Struct member updates.
3060 (grub_parser_param): Likewise.
3061 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
3062 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
3063 (grub_script_lexer_init): Prototype update.
3064 (grub_script_lexer_record_start): Likewise.
3065 (grub_script_lexer_record_stop): Likewise.
3066 (grub_script_lexer_yywrap): New function prototype.
3067 (grub_script_lexer_fini): Likewise.
3068 (grub_script_execute_argument_to_string): Removed by...
3069 (grub_script_execute_argument_to_argv): ...better version.
3070
3071 * script/execute.c (ROUND_UPTO): New macro.
3072 (grub_script_execute_cmdline): Out of memory fixes.
3073 (grub_script_execute_menuentry): Likewise.
3074 (grub_script_execute_argument_to_string): Removed. Update all
3075 users by...
3076 (grub_script_execute_argument_to_argv): ...better version.
3077 * script/function.c (grub_script_function_create): Use
3078 grub_script_execute_argument_to_argv instead of
3079 grub_script_execute_argument_to_string.
3080
3081 * script/lexer.c (check_varstate): Removed.
3082 (check_textstate): Removed.
3083 (grub_script_lexer_record_start): Likewise.
3084 (grub_script_lexer_record_stop): Likewise.
3085 (recordchar): Replaced with...
3086 (grub_script_lexer_record): ...new function.
3087 (nextchar): Removed.
3088 (grub_script_lexer_init): Rewritten.
3089 (grub_script_yylex): Rewritten.
3090 (append_newline): New function.
3091 (grub_script_lexer_yywrap): New function.
3092 (grub_script_lexer_fini): New function.
3093 (grub_script_yyerror): Sets error flag.
3094
3095 * script/yylex.l: New file.
3096 (grub_lexer_yyfree): Wrapper for flex yyffre.
3097 (grub_lexer_yyalloc): Likewise.
3098 (grub_lexer_yyrealloc): Likewise.
3099 * script/parser.y: Refactored.
3100
3101 * script/script.c (grub_script_arg_add): Out of memory fixes.
3102 (grub_script_add_arglist): Likewise.
3103 (grub_script_create_cmdline): Likewise.
3104 (grub_script_create_cmdmenu): Likewise.
3105 (grub_script_add_cmd): Likewise.
3106 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
3107 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
3108 unnecessary code.
3109
3110 * tests/grub_script_echo1.in: New testcase.
3111 * tests/grub_script_vars1.in: New testcase.
3112 * tests/grub_script_echo_keywords.in: New testcase.
3113
1d63a066
VS
31142010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 Remove some redundancy in build system.
3117
3118 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
3119 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
3120 (TARGET_LDFLAGS): Add -nostdlib.
3121 (TARGET_IMG_LDFLAGS): Likewise.
3122 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
3123 anything since mmap isn't available.
3124 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
3125 Add util/time.c.
3126 (pkglib_MODULES): Remove reboot.mod.
3127 (reboot_mod_SOURCES): Removed.
3128 (reboot_mod_CFLAGS): Likewise.
3129 (reboot_mod_LDFLAGS): Likewise.
3130 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
3131 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
3132 (DEFSYMFILES): Add kernel_syms.lst.
3133 (kernel_img_HEADERS): Add common headers.
3134 (symlist.c): New target.
3135 (kernel_syms.lst): Likewise.
3136 (pkglib_MODULES): Add memdisk.mod.
3137 (memdisk_mod_SOURCES): New variable.
3138 (memdisk_mod_CFLAGS): Likewise.
3139 (memdisk_mod_LDFLAGS): Likewise.
3140 (pkglib_MODULES): Add reboot.mod.
3141 (reboot_mod_SOURCES): New variable.
3142 (reboot_mod_CFLAGS): Likewise.
3143 (reboot_mod_LDFLAGS): Likewise.
3144 (pkglib_MODULES): Add date.mod.
3145 (date_mod_SOURCES): New variable.
3146 (date_mod_CFLAGS): Likewise.
3147 (date_mod_LDFLAGS): Likewise.
3148 (pkglib_MODULES): Add datehook.mod.
3149 (datehook_mod_SOURCES): New variable.
3150 (datehook_mod_CFLAGS): Likewise.
3151 (datehook_mod_LDFLAGS): Likewise.
3152 (pkglib_MODULES): Add lsmmap.mod.
3153 (lsmmap_mod_SOURCES): New variable.
3154 (lsmmap_mod_CFLAGS): Likewise.
3155 (lsmmap_mod_LDFLAGS): Likewise.
3156 (pkglib_MODULES): Add boot.mod.
3157 (boot_mod_SOURCES): New variable.
3158 (boot_mod_CFLAGS): Likewise.
3159 (boot_mod_LDFLAGS): Likewise.
3160 * conf/i386-coreboot.rmk: Removed redundant parts.
3161 * conf/i386-ieee1275.rmk: Likewise.
3162 * conf/i386-pc.rmk: Likewise.
3163 * conf/mips-yeeloong.rmk: Likewise.
3164 * conf/mips.rmk: Likewise.
3165 * conf/powerpc-ieee1275.rmk: Likewise.
3166 * conf/sparc64-ieee1275.rmk: Likewise.
3167 * conf/x86_64-efi.rmk: Likewise.
3168 * conf/i386-coreboot.rmk: Moved qemu parts ..
3169 * conf/i386-qemu.rmk: ... here
3170 * conf/i386-efi.rmk: Moved common parts to...
3171 * conf/x86-efi.rmk: ... here.
3172 * conf/i386.rmk: Added modules common to all x86 variants.
3173 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
3174 * disk/memdisk.c: Remove grub/machine/kernel.h.
3175 * gensymlist.sh.in: Include symbol.h.
3176 * hook/datehook.c: Correct module name.
3177 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
3178 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
3179 * include/grub/i386/efi/serial.h: New file.
3180 * include/grub/x86_64/efi/serial.h: Likewise.
3181 * util/time.c: Likewise.
3182 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
3183
463ac55f
CK
31842010-03-14 Colin King <colin.king@ubuntu.com>
31852010-03-14 Colin Watson <cjwatson@ubuntu.com>
3186
3187 Shrink the pre-partition-table part of boot.img by eight bytes.
3188
3189 * boot/i386/pc/boot.S (ERR): New macro.
3190 (chs_mode): Use ERR.
3191 (geometry_error): Likewise.
3192 (hd_probe_error): Remove. This is only used once, so we wrwite
3193 it inline instead.
3194 (read_error): Instead of printing read_error_string, just set up
3195 %si and fall through to ...
3196 (error_message): ... this new function, also used by ERR.
3197
08e46ede
CW
31982010-03-14 Colin Watson <cjwatson@ubuntu.com>
3199
3200 Speed up consecutive hostdisk operations on the same device.
3201
3202 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
3203 (grub_util_biosdisk_open): Initialise disk->data.
3204 (struct linux_partition_cache): New structure.
3205 (linux_find_partition): Cache partition start positions; these are
3206 expensive to compute on every read and write.
3207 (open_device): Cache open file descriptor in disk->data, so that we
3208 don't have to reopen it and flush the buffer cache for consecutive
3209 operations on the same device.
3210 (grub_util_biosdisk_close): New function.
3211 (grub_util_biosdisk_dev): Set `close' member.
3212
3213 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
3214 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
3215 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3216 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3217 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
3218
4a6d2d06
VS
32192010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3220
3221 Compile parts of grub-emu as modules.
3222
3223 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
3224 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
3225 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
3226 (all-local): Add $(GRUB_EMU).
3227 (install-local): Install $(GRUB_EMU).
3228 (uninstall): Uninstall $(GRUB_EMU).
3229 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
3230 * kern/dl.c: Likewise.
3231 * commands/sleep.c: Not include machine/time.h.
3232 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
3233 (COMMON_CFLAGS): Likewise.
3234 (sbin_UTILITIES): Remove grub-emu.
3235 (grub_emu_SOURCES): Removed.
3236 (kernel_img_RELOCATABLE): New variable.
3237 (pkglib_PROGRAMS): Add kernel.img.
3238 (kernel_img_SOURCES): New variable
3239 (kernel_img_CFLAGS): Likewise.
3240 (kernel_img_LDFLAGS): Likewise.
3241 (TARGET_NO_STRIP): Likewise.
3242 (TARGET_NO_DYNAMIC_MODULES): Likewise.
3243 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
3244 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
3245 (grub-emu): New target.
3246 (GRUB_EMU): New variable.
3247 * configure.ac: Whitelist -emu as possible x86_64 architecture.
3248 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
3249 * loader/xnu.c: Likewise.
3250 * include/grub/pci.h: Likewise.
3251 * genemuinit.sh: New file.
3252 * genemuinitheader.sh: Likewise.
3253 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
3254 Support TARGET_NO_DYNAMIC_MODULES.
3255 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
3256 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
3257 * disk/loopback.c: Likewise.
3258 * font/font_cmd.c: Likewise.
3259 * partmap/acorn.c: Likewise.
3260 * partmap/amiga.c: Likewise.
3261 * partmap/apple.c: Likewise.
3262 * partmap/gpt.c: Likewise.
3263 * partmap/msdos.c: Likewise.
3264 * partmap/sun.c: Likewise.
3265 * parttool/msdospart.c: Likewise.
3266 * term/gfxterm.c: Likewise.
3267 * video/bitmap.c: Likewise.
3268 * video/readers/jpeg.c: Likewise.
3269 * video/readers/png.c: Likewise.
3270 * video/readers/tga.c: Likewise.
3271 * video/video.c: Likewise.
3272 * util/grub-emu.c (read_command_list): Removed.
3273 (main): Don't call util_init_nls.
3274 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
3275 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
3276
91fdd2ed
VS
32772010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
3280 date.mod, datehook.mod.
3281 (datetime_mod_SOURCES): New variable.
3282 (datetime_mod_CFLAGS): Likewise.
3283 (datetime_mod_LDFLAGS): Likewise.
3284 (date_mod_SOURCES): Likewise.
3285 (date_mod_CFLAGS): Likewise.
3286 (date_mod_LDFLAGS): Likewise.
3287 (datehook_mod_SOURCES): Likewise.
3288 (datehook_mod_CFLAGS): Likewise.
3289 (datehook_mod_LDFLAGS): Likewise.
3290 * conf/sparc64-ieee1275.rmk: Likewise.
3291 * lib/ieee1275/datetime.c: New file.
3292
873ccae6
VS
32932010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3294
3295 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
3296 (ieee1275_fb_mod_SOURCES): New variable.
3297 (ieee1275_fb_mod_CFLAGS): Likewise.
3298 (ieee1275_fb_mod_LDFLAGS): Likewise.
3299 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
3300 New proto.
3301 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
3302 (HEAP_MAX_ADDR): Likewise.
3303 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
3304 type.
3305 Correct stop condition.
3306 (grub_ieee1275_devices_iterate): New function.
3307 * video/ieee1275.c: New file.
3308
601c97c0
VS
33092010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
3312
3313 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
3314 as scratch.
3315 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
3316 SCRATCH_PAD_DISKBOOT as scratch.
3317 (bootit): Pass Openfirmware pointer in %o4.
3318 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
3319 of 0x200000.
3320 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
3321 with util/grub-mkrawimage.c.
3322 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
3323 * include/grub/aout.h (AOUT_MID_SUN): New definition.
3324 (grub_aout_get_type) [GRUB_UTIL]: Removed.
3325 (grub_aout_load) [GRUB_UTIL]: Likewise.
3326 * include/grub/kernel.h (grub_modules_get_end): New proto.
3327 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
3328 (SCRATCH_PAD_BOOT): New definition.
3329 (SCRATCH_PAD_DISKBOOT): Likewise.
3330 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
3331 * include/grub/sparc64/ieee1275/ieee1275.h
3332 (grub_ieee1275_original_stack): New variable
3333 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
3334 New definition
3335 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
3336 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
3337 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
3338 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
3339 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
3340 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
3341 (grub_platform_image_format_t): New type.
3342 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
3343 * kern/main.c (grub_modules_get_end)
3344 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
3345 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
3346 (codestart): Switch stacks.
3347 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
3348 variable.
3349 (grub_heap_init): Use grub_modules_get_end.
3350 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
3351 stack.
3352 * util/grub-mkrawimage.c (generate_image): Support sparc64.
3353 (main): Likewise.
3354 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
3355
d68b491e
TG
33562010-03-14 Thorsten Glaser <tg@mirbsd.org>
3357
3358 * util/grub-mkrescue.in: Base ISO UUID on UTC.
3359
4e02ed50
MK
33602010-03-08 Matt Kraai <kraai@ftbfs.org>
3361
3362 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
3363 bug #559005).
3364
1f15fc1e
VS
33652010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * genmoddep.awk: Output all missing symbols and not only first.
3368
fce5d8ff
VS
33692010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * NEWS: Put the date of 1.98 release.
3372
d1e8a02f
VS
33732010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
3376 ft2build.h.
3377
696fd607
VS
33782010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3381 completition in the middle of string.
3382
33e2e6f3
VS
33832010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3384
3385 * util/grub-mkrescue.in: Use mktemp with explicit template.
3386
b1f6d291
VS
33872010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3390
2ac227c7
VS
33912010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3394 right pointer.
3395
8f9a632b
VS
33962010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 Fix FreeBSD compilation.
3399
3400 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3401 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3402
60b03859
VS
34032010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3406
48a5a769
VS
34072010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3410
3ab4bd77
VS
34112010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3412
3413 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3414
d116e0d8
RM
34152010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3416
3417 Support relative image path in theme file.
3418
3419 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3420 (image_set_property): Handle theme_dir and relative path.
3421
c7ef54aa
VS
34222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * configure.ac: Alias amd64 to x86_64.
3425
fcee14ed
VS
34262010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3427
3428 * NEWS: mention multiboot on EFI.
3429
d0780363
VS
34302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * kern/main.c (grub_load_modules): Handle errors from init functions of
3433 embeded modules.
3434
41168ea4
VS
34352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * normal/autofs.c (autoload_fs_module): Handle errors.
3438
b54d93ac
VS
34392010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 Disable linux.mod on qemu-mips since it's not functional and leads
3442 to compilation failure.
3443
3444 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3445 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3446 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3447 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3448 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3449 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3450 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3451 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3452 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3453 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3454 Reported by: BVK Chaitanya
3455
fc8345da
JU
34562010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3457
3458 * INSTALL: Add gettext as a dependency and add qemu to a new section
3459 "Prerequisites for make-check".
3460
4760f979
CF
34612010-03-04 Christian Franke <franke@computer.org>
3462
3463 * util/grub-pe2elf.c: Add missing include "progname.h".
3464
f209b5b2
VS
34652010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * normal/crypto.c (read_crypto_list): Fix a typo.
3468 Reported by: Seth Goldberg.
3469
b4b7be98
VS
34702010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 3473 Reported by: Seth Goldberg.
b4b7be98 3474
c0ee0385
VS
34752010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3478 ascii.bitmaps.
3479
a8efbf64
VS
34802010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 3483 Reported by: Seth Goldberg.
a8efbf64 3484
08dcd913
VS
34852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * util/i386/efi/grub-install.in: Copy gettext files.
3488
c4d0b332
VS
34892010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3492
c6f2fe52
VS
34932010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 Wait for user entry basing on presence of output rather than on errors.
3496
3497 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3498 (grub_install_newline_hook): Likewise.
3499 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3500 * normal/menu.c (show_menu): Check line_counter to determine presence
3501 of output.
3502 * normal/term.c (grub_normal_line_counter): New variable.
3503 (grub_normal_get_line_counter): New function.
3504 (grub_install_newline_hook): Likewise.
3505
5382b1e4
VS
35062010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3509
5519963b
VS
35102010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * configure.ac: Update version to 1.98.
3513
72b28631
VS
35142010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * util/grub.d/10_linux.in (linux_entry): Don't default to
3517 gfxpayload=keep if Linux doesn't support video handover.
3518
c140a180
VS
35192010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 Don't compile video modules on yeeloong since video subsystem is part
3522 of kernel.
3523
3524 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3525 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3526 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3527 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3528 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3529 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3530 * include/grub/bitmap_scale.h: Likewise.
3531 * include/grub/bufio.h: Likewise.
3532 * include/grub/font.h: Likewise.
3533 * include/grub/gfxterm.h: Likewise.
3534 * include/grub/video.h: Likewise.
3535 * include/grub/vbe.h: Don't include video_fb.h.
3536 * video/i386/pc/vbe.c: Include video_fb.h.
3537 * commands/i386/pc/vbetest.c: Include video.h.
3538
a0ca21c2
CW
35392010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3540
3541 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3542 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3543 default entry if GRUB_SAVEDEFAULT=true. This allows using
3544 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3545 saving a new default on every boot.
3546
4a8a763c
VS
35472010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3550 * normal/term.c (read_terminal_list): Likewise.
3551 * normal/main.c (grub_normal_init_page): Likewise.
3552 (grub_normal_read_line_real): Likewise.
3553
607ffde2
VS
35542010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3557 memory leak.
3558 Reported by: Seth Goldberg.
3559
2b8fa975
CW
35602010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3561
3562 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3563 duplicate declaration of `start'.
3564
618307dd
VS
35652010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3568 filename.
3569 Reported by: Georgy Buranov
3570
7dd05b96 35712010-02-20 Carles Pina i Estany <carles@pina.cat>
3572
3573 * util/grub-mkrawimage.c (usage): Change string formatting to
3574 improve gettext.
3575
d1484a42
MRA
35762010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3577
3578 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3579 backspace keys.
3580
42b1d186
VS
35812010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3584 Reported by: Michael Suchanek.
3585
35862010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
3587
3588 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3589 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3590
d9f31a41
VS
35912010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 Remove any reference to non-free fonts.
3594
3595 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3596 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3597 uses non-free components.
3598 * font/font.c (grub_font_get_name): Remove example name.
3599 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3600 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3601 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3602 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3603
2793c71e
GB
36042010-02-16 Georgy Buranov <gburanov@gmail.com>
3605
3606 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3607
402e3779
VS
36082010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3611 Double divisor.
3612 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3613 features.
3614 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3615
0dd1e0dd
VS
36162010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3619
6fa7cfce
ST
36202010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3621
3622 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3623 * docs/grub.texi (Command-line and menu entry commands): Document play
3624 command.
3625
37c8483b
ST
36262010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3627
3628 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3629 parse arguments as inline tempo and notes. Move code for playing notes
3630 to...
3631 (play): ... new function.
3632
14da0fb7
ST
36332010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3634
3635 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3636 grub_uint16_t instead of short.
3637 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3638 disk from little endian to cpu endianness.
3639
04459e70
ST
36402010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3641
3642 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3643 GRUB_TICKS_PER_SECOND instead of 120.
3644
a0876943
VS
36452010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3648 escape sequence after \e.
3649
e29f95dc
VS
36502010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3653 non-ASCII characters.
3654
d27859b2
VS
36552010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3658 set root in single quotes to prevent \, from being unescaped.
3659
bc028f2f
VS
36602010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 Prevent unknown commands from stopping menuentry execution.
3663
3664 * script/execute.c (grub_script_execute_cmdline): Print error after
3665 unknown command.
3666
095f5f82
VS
36672010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3670 Reported by: Pavel Pisa.
3671
8c717950
VS
36722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3675
904935c3
VS
36762010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 Merge grub_ieee1275_map_physical into grub_map and rename to
3679 grub_ieee1275_map
3680
3681 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3682 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3683 Remove.
3684 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3685 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3686 necessary.
3687 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3688
5b59a4e3
VS
36892010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3690
3691 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3692 opening and not after.
3693
69e137e8
VS
36942010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3697 constants.
3698
2c0fcc36
VS
36992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3702 (alloc_phys): Use ALIGN_UP instead of align_addr.
3703
8c6052ce
VS
37042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3707
17cec782
VS
37082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3711
e0128bbd
VS
37122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3715 verbose dprintf.
3716
ca62070b
VS
37172010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 Fix over-4GiB seek on sparc64.
3720
3721 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3722 Replace pos_i and pos_lo with pos. All users updated.
3723 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3724 New constant.
3725 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3726 Likewise.
3727 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3728 and pos_lo.
3729
bdca2607
VS
37302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * util/grub-mkrawimage.c (main): Call set_program_name.
3733
da278c4d
VS
37342010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 Properly align 64-bit targets.
3737
3738 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3739 (generate_image): Use ALIGN_ADDR.
3740
b274d734
VS
37412010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 Properly create cross-endian images.
3744
3745 * include/grub/types.h (grub_host_to_target_addr): New macro
3746 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3747
82da2062
VS
37482010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3751
7cae4377
VS
37522010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3755
3756 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3757 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3758 (grub_linux_boot): Divide by 64K when on VESA.
3759
65a533e7
VS
37602010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 Support GRUB_GFXPAYLOAD_LINUX.
3763
3764 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3765 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3766
dd01d397
VS
37672010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3770 to show messages instead of discarding them.
3771 Process errors after executing command and not before. Keep old method
3772 too as precaution.
3773
660960d6
VS
37742010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * configure.ac: Check for ft2build.h.
3777
62509f04
VS
37782010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3781
473df63d
VS
37822010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * genkernsyms.sh.in: Use TARGET_CC.
3785
c98d2a13
CW
37862010-02-07 Colin Watson <cjwatson@ubuntu.com>
3787
3788 * NEWS: Update.
3789
6e14234c
VS
37902010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
3793 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3794 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 3795
b255e9cf
YB
37962010-02-07 Yves Blusseau <blusseau@zetam.org>
3797
6e14234c 3798 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 3799
98e6959d
VS
38002010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 Fix warnings in grub-emu when compiling with maximum warning options.
3803
3804 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3805 (grub_arch_modules_addr): Return 0 and not NULL.
3806 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 3807 (xstrdup): Use newstr instead of dup.
f88d801b
VS
3808 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3809 of disk to dsk to avoid shadowing.
74e4934e
VS
3810 (find_free_slot): Fix prototype.
3811 * util/getroot.c (grub_util_is_dmraid): Make static.
3812 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3813 Add missing prototype.
3814 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 3815
74e31b5c
VS
38162010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3819 appropriately.
3820
6b2ad14b
VS
38212010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3822
3823 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3824 code out.
3825
8f891adc
VS
38262010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3827
3828 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3829 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3830 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3831 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3832 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3833 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3834
74b45184
VS
38352010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 * include/grub/err.h (grub_err_printf): Don't export.
3838
a4bced77
VS
38392010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3842
007d0695
VS
38432010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3844
3845 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3846 * kern/misc.c (grub_gettext_dummy): Make static.
3847
b6c0d9c2
VS
38482010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3851 by non-valid ones.
3852 * kern/term.c (grub_putchar): Likewise.
3853
f51a90d0
VS
38542010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3857 buggy hook call and memory leak.
3858
6846cec5
VS
38592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3862
468d69fe
VS
38632010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3866
51906b8c
VS
38672010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3870 modevar.
3871 Return grub_errno on allocation error.
3872
09706ce5
VS
38732010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3876
911df80c
YB
38772010-02-06 Yves Blusseau <blusseau@zetam.org>
3878
3879 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3880 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3881
3746a6bc
VS
38822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3885 non-pxe disk.
3886 (grub_pxefs_open): Likewise.
3887
09706ce5
VS
38882010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3889
3890 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3891 * util/grub.d/10_kfreebsd.in: Likewise.
3892 * util/grub.d/10_linux.in: Likewise.
3893
7cc192d9
VS
38942010-02-06 Colin D Bennett <colin@gibibit.com>
3895
3896 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3897 (gfxmenu_mod_SOURCES): New variable.
3898 (gfxmenu_mod_CFLAGS): Likewise.
3899 (gfxmenu_mod_LDFLAGS): Likewise.
3900 * include/grub/term.h (grub_term_set_current_output): Declare
3901 argument as const.
3902 * docs/gfxmenu-theme-example.txt: New file.
3903 * gfxmenu/gfxmenu.c: Likewise.
3904 * gfxmenu/gui_box.c: Likewise.
3905 * gfxmenu/gui_canvas.c: Likewise.
3906 * gfxmenu/gui_circular_progress.c: Likewise.
3907 * gfxmenu/gui_image.c: Likewise.
3908 * gfxmenu/gui_label.c: Likewise.
3909 * gfxmenu/gui_list.c: Likewise.
3910 * gfxmenu/gui_progress_bar.c: Likewise.
3911 * gfxmenu/gui_string_util.c: Likewise.
3912 * gfxmenu/gui_util.c: Likewise.
3913 * gfxmenu/icon_manager.c: Likewise.
3914 * gfxmenu/model.c: Likewise.
3915 * gfxmenu/named_colors.c: Likewise.
3916 * gfxmenu/theme_loader.c: Likewise.
3917 * gfxmenu/view.c: Likewise.
3918 * gfxmenu/widget-box.c: Likewise.
3919 * include/grub/gfxmenu_model.h: Likewise.
3920 * include/grub/gfxmenu_view.h: Likewise.
3921 * include/grub/gfxwidgets.h: Likewise.
3922 * include/grub/gui.h: Likewise.
3923 * include/grub/gui_string_util.h: Likewise.
3924 * include/grub/icon_manager.h: Likewise.
3925
39262010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 Agglomerate scrolling in gfxterm.
3929
3930 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3931 (grub_virtual_screen_setup): Initialise 'total_screen'.
3932 (write_char): Split to ...
3933 (paint_char): ... this ...
3934 (write_char): ... and this.
3935 (paint_char): Handle delayed scrolling.
3936 (draw_cursor): Likewise.
3937 (scroll_up): Split to ...
3938 (real_scroll): ... this ...
3939 (scroll_up): ... and this.
3940 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3941 characters.
3942 (grub_gfxterm_refresh): Call real_scroll.
3943
39442010-02-06 Colin D Bennett <colin@gibibit.com>
3945
3946 * include/grub/misc.h (grub_iscntrl): New inline function.
3947 (grub_isalnum): Likewise.
3948 (grub_strtol): Likewise.
3949
39502010-02-06 Colin D Bennett <colin@gibibit.com>
3951
3952 * normal/menu_text.c (get_entry_number): Move from here ...
3953 * normal/menu.c (get_entry_number): ... moved here.
3954 * include/grub/menu.h (grub_menu_get_default_entry_index):
3955 New prototype.
3956 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3957 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3958 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3959 (grub_menu_viewer_should_return): Likewise.
3960 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3961 * normal/menu_text.c (run_menu): Enable menu switching.
3962 * normal/menu_viewer.c (should_return): New variable.
3963 (menu_viewer_changed): Likewise.
3964 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3965 (grub_menu_viewer_should_return): New function.
3966 (menuviewer_write_hook): Likewise.
3967 (grub_menu_viewer_init): Likewise.
3968
39692010-02-06 Colin D Bennet <colin@gibibit.com>
39702010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 Support for gfxterm in a window.
3973
3974 * include/grub/gfxterm.h: New file.
3975 * include/grub/video.h (struct grub_video_rect): New declaration.
3976 (grub_video_rect_t): Likewise.
3977 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3978 (refcount): New variable.
3979 (render_target): Likewise.
3980 (window): Likewise.
3981 (repaint_callback): Likewise.
3982 (grub_virtual_screen_setup): Use 'render_target'.
3983 (init_window): New function.
3984 (grub_gfxterm_init_window): Likewise.
3985 (grub_gfxterm_init): Check reference counter.
3986 Use init_window.
3987 (destroy_window): New function.
3988 (grub_gfxterm_destroy_window): Likewise.
3989 (grub_gfxterm_fini): Check reference counter.
3990 Use destroy_window.
3991 (redraw_screen_rect): Restore viewport.
3992 Use 'render_target' and 'window'.
3993 Call 'repaint_callback'.
3994 (write_char): Use 'render_target'.
3995 (draw_cursor): Likewise.
3996 (scroll_up): Restore viewport.
3997 Use 'render_target' and 'window'.
3998 Call 'repaint_callback'.
3999 (grub_gfxterm_cls): Likewise.
4000 (grub_gfxterm_refresh): Use 'window'.
4001 (grub_gfxterm_set_repaint_callback): New function.
4002 (grub_gfxterm_background_image_cmd): Use 'window'.
4003 (grub_gfxterm_get_term): New function.
4004 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
4005
40062010-02-06 Colin D Bennett <colin@gibibit.com>
4007
4008 Bitmap scaling support.
4009
4010 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
4011 (bitmap_scale_mod_SOURCES): New variable.
4012 (bitmap_scale_mod_CFLAGS): Likewise.
4013 (bitmap_scale_mod_LDFLAGS): Likewise.
4014 * include/grub/bitmap_scale.h: New file.
4015 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
4016 (background_image_cmd_options): New variable.
4017 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
4018 (cmd): Rename and change type to ...
4019 (background_image_cmd_handle): ... this. All users updated.
4020 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
4021 * video/bitmap_scale.c: New file.
4022
40232010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 SDL support.
4026
4027 * Makefile.in (LIBSDL): New variable.
4028 (enable_grub_emu_sdl): Likewise.
4029 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
4030 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
4031 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
4032 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
4033 * util/sdl.c: New file.
4034
40352010-02-06 Colin D Bennett <colin@gibibit.com>
40362010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 Double buffering support.
4039
4040 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
4041 * include/grub/video.h: Update comment.
4042 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4043 New type.
4044 (grub_video_fb_doublebuf_blit_init): New prototype.
4045 * term/gfxterm.c (scroll_up): Support double buffering.
4046 (grub_gfxterm_refresh): Likewise.
4047 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
4048 (grub_video_fb_doublebuf_blit_init): Likewise.
4049 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
4050 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
4051 'displayed_page', 'render_page' and 'update_screen'.
4052 (grub_video_vbe_fini): Free offscreen buffer.
4053 (doublebuf_pageflipping_commit): New function.
4054 (doublebuf_pageflipping_update_screen): Likewise.
4055 (doublebuf_pageflipping_init): Likewise.
4056 (double_buffering_init): Likewise.
4057 (grub_video_vbe_setup): Enable doublebuffering.
4058 (grub_video_vbe_swap_buffers): Implement.
4059 (grub_video_vbe_set_active_render_target): Handle double buffering.
4060 (grub_video_vbe_get_active_render_target): Likewise.
4061 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
4062 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
4063 (grub_video_vbe_enable_double_buffering): Likewise.
4064 (grub_video_vbe_swap_buffers): Use update_screen.
4065 (grub_video_set_mode): Use double buffering.
4066
40672010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4068
4069 * maintainance/gentrigtables.py: Remove.
4070 * lib/trig.c: Likewise.
4071
4072 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
4073
4074 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
4075 `trigtables.c'.
4076 (trigtables.c): New rule.
4077 (gentrigtables): Likewise.
4078 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
4079
40802010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4081
4082 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
4083 integer constants.
4084
40852010-02-06 Colin D Bennet <colin@gibibit.com>
4086
4087 Trigonometry support.
4088
4089 * include/grub/trig.h: New file.
4090 * lib/trig.c: Likewise.
4091 * maintainance/gentrigtables.py: Likewise.
4092 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
4093 (trig_mod_SOURCES): New variable.
4094 (trig_mod_CFLAGS): Likewise.
4095 (trig_mod_LDFLAGS): Likewise.
4096
5562834e
VS
40972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
4100 disk devices.
4101
4f8528fc
VS
41022010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
4105 error.
4106
2b4068e9
VS
41072010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * util/hostdisk.c (open_device): Don't use partition device when reading
4110 before the partition.
4111 (grub_util_biosdisk_read): Don't read from partition and before the
4112 partition in single operation.
4113 (grub_util_biosdisk_write): Don't write to partition and before the
4114 partition in single operation.
4115
399f6e4d
TL
41162010-02-03 Torsten Landschoff <torsten@debian.org>
4117
4118 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4119 last sectors.
4120
996649b0
VS
41212010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
4124 CDROM reads.
4125 (grub_biosdisk_write): Refuse to write to CDROM.
4126
3b205d4d
VS
41272010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
4130
61e89d9d
VS
41312010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * font/font.c (find_glyph): Check that bmp_idx is available before
4134 using it.
4135 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
4136 with (font == NULL).
4137
bf7fcba2
CS
41382010-01-28 Christian Schmitt <chris@ilovelinux.de>
4139
4140 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
4141
f45d2663
BC
41422010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
4143
4144 * include/grub/script_sh.h (sourcecode): Add const qualifier.
4145 * util/grub-script-check.c (getline): Fix empty lines case.
4146
ec1444e6
RM
41472010-01-28 Robert Millan <rmh.grub@aybabtu.com>
4148
4149 * Makefile.in (check): Exit with fail status when one of the tests
4150 fails.
4151 * tests/example_functional_test.c (example_test): Fix reversed assert.
4152 * tests/example_unit_test.c (example_test): Likewise.
4153
2e1cb9bb
CW
41542010-01-28 Colin Watson <cjwatson@ubuntu.com>
4155
4156 * util/grub.d/10_linux.in: This script does not use any of the
4157 contents of gettext.sh, only the external command `gettext', so stop
4158 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
4159 the same prefix as GRUB.)
4160 * util/grub.d/10_kfreebsd.in: Likewise.
4161
63533ab0
VS
41622010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
4165 of the line.
4166
989e1f93
VS
41672010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4170 last sectors.
4171
e709ebe2
VS
41722010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
4175 having a 4KiB and not 32KiB buffer size.
4176
27dea7ed
RM
41772010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4178
4179 * util/hostfs.c: Include `<errno.h>'.
4180 (grub_hostfs_read): Handle errors from fseeko() and fread().
4181
67667b9c
RM
41822010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4183
4184 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
4185 loop when using read hooks on files whose size isn't sector-aligned.
4186
c294d9d8
RM
41872010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4188
4189 Remove unused parameter.
4190
4191 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
4192 (grub_iso9660_open): Remove initialization of `data->length'.
4193
af75a9f1
RM
41942010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4195
4196 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
4197 memleak conditions.
4198
254e2ce5 41992010-01-27 Carles Pina i Estany <carles@pina.cat>
4200
4201 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
4202 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
4203
b510928c 42042010-01-26 Carles Pina i Estany <carles@pina.cat>
4205
4206 * util/bin2h.c (usage): Fix warning (space after backslash).
4207
aa2f9dd2 42082010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 4209
4210 * font/font.c: Include `grub/fontformat.h.
4211 Remove font file format constants.
4212 (grub_font_load): Use the new macros.
4213 * include/grub/fontformat.h: New file.
4214 * util/grub-mkfont.c: Include `grub/fontformat.c'.
4215 (write_font_pf2): Use the new macros.
4216
94e7e712
RM
42172010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4218
4219 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
4220 does.
4221
3973a59a
RM
42222010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4223
4224 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
4225
4226 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
4227 (_start): Macroify `0x7F'.
4228
4229 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
4230 (make_install_device): Use "(pxe)" as fallback prefix when booting
4231 via PXE.
4232
42e0cba3
GS
42332010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * configure.ac: Reset LIBS after check for libgcc symbols.
4236
847effd8
CW
42372010-01-25 Colin Watson <cjwatson@ubuntu.com>
4238
4239 * util/hostdisk.c (open_device): Add trailing newline to debug
4240 message.
4241
ea4a7e35
GS
42422010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4243
4244 * configure.ac: Check for `limits.h'.
4245 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
4246
67951a53
RM
42472010-01-24 Robert Millan <rmh.grub@aybabtu.com>
4248
4249 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
4250 capitalize error strings.
4251
c273d4ce
ST
42522010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4253
4254 * util/grub.d/10_hurd.in: Add a recovery mode.
4255
69be5b74
VS
42562010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * configure.ac: Check for libgcc symbols with -nostdlib.
4259
fc9e5810
BC
42602010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
4261
4262 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
4263
4b358c0a
VS
42642010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
4267 stack since heap may be unavailable at that point.
4268 (grub_ofconsole_gotoxy): Likewise.
4269
454fcd1c
VS
42702010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * configure.ac: Check for _restgpr_14_x.
4273 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
4274 and _savegpr_* prototypes.
4275
566863ca
RM
42762010-01-22 Robert Millan <rmh.grub@aybabtu.com>
4277
4278 Use generic grub_reboot() for i386-efi.
4279
4280 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
4281 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
4282 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
4283
bf86e59a
VS
42842010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4285
4286 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
4287 presence of "prefix" variable as it breaks when normal.mod is
4288 embedded.
4289
d645e0f8
VS
42902010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
4293 stack since heap is unavailable at that point.
4294
f9ab2e25
VS
42952010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
4298 (grub_freebsd_bootinfo): Rewritten.
4299 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
4300
01fc7054
VS
43012010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
4304
caab4fd6
RM
43052010-01-21 Robert Millan <rmh.grub@aybabtu.com>
4306
4307 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
4308 domain now.
4309
67eb1427
FZ
43102010-01-20 Felix Zielcke <fzielcke@z-51.de>
4311
4312 * util/misc.c (make_system_path_relative_to_its_root): Change the work
4313 around for handling "/" to the correct fix. Fix a memory leak. Use
4314 xstrdup instead of strdup.
4315
a9ed4ff3
VS
43162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
4319
43202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
4321
4322 Optimise glyph lookup by Basic Multilingual Plane lookup array.
4323
4324 * font/font.c (struct grub_font): New member 'bmp_idx'.
4325 (font_init): Initialise 'bmp_idx'.
4326 (load_font_index): Fill 'bmp_idx'.
4327 (find_glyph): Make inline. Use bmp_idx for BMP characters.
4328
48209f4f
VS
43292010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
4332 unnecessary calls.
4333
9f0a4bb7
VS
43342010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 Move context handling out of the kernel.
4337
4338 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
4339 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
4340 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
4341 * conf/i386-efi.rmk: Likewise.
4342 * conf/i386-ieee1275.rmk: Likewise.
4343 * conf/i386-pc.rmk: Likewise.
4344 * conf/powerpc-ieee1275.rmk: Likewise.
4345 * conf/sparc64-ieee1275.rmk: Likewise.
4346 * conf/x86_64-efi.rmk: Likewise.
4347 * include/grub/env.h: Include grub/menu.h.
4348 (grub_env_var_type): Removed.
4349 (grub_env_var): Replaced field 'type' with 'global'.
4350 (grub_env_find): New prototype.
4351 (grub_env_context_open): Remove EXPORT_FUNC.
4352 (grub_env_context_close): Likewise.
4353 (grub_env_export): Likewise.
4354 (grub_env_set_data_slot): Removed.
4355 (grub_env_get_data_slot): Likewise.
4356 (grub_env_unset_data_slot): Likewise.
4357 (grub_env_unset_menu): New prototype.
4358 (grub_env_set_menu): Likewise.
4359 (grub_env_get_menu): Likewise.
4360 * include/grub/env_private.h: New file.
4361 * include/grub/normal.h (grub_context_init): New prototype.
4362 (grub_context_fini): Likewise.
4363 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
4364 * normal/context.c (grub_cmd_export): ... to here.
4365 * kern/env.c: Include env_private.h.
4366 (HASHSZ): Moved to include/grub/env_private.h.
4367 (grub_env_context): Likewise.
4368 (grub_env_sorted_var): Likewise.
4369 (current_context): Renamed from this ...
4370 (grub_current_context): ...to this. 'static' removed. All users updated.
4371 (grub_env_find): Removed 'static'.
4372 (grub_env_context_open): Moved to normal/context.c.
4373 (grub_env_context_close): Likewise.
4374 (grub_env_export): Likewise.
4375 (mangle_data_slot_name): Removed.
4376 (grub_env_set_data_slot): Likewise.
4377 (grub_env_get_data_slot): Likewise.
4378 (grub_env_unset_data_slot): Likewise.
4379 * kern/main.c (grub_set_root_dev): Don't export root.
4380 It will be done later.
4381 (grub_main): Don't export prefix.
4382 It will be done later.
4383 * normal/context.c: New file.
4384 * normal/main.c (free_menu): Use grub_env_unset_menu.
4385 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4386 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4387 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4388 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4389
8dd35b8c
VS
43902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 setpci support.
4393
4394 * commands/setpci.c: New file.
4395 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4396 (setpci_mod_SOURCES): New variable.
4397 (setpci_mod_CFLAGS): Likewise.
4398 (setpci_mod_LDFLAGS): Likewise.
4399
449193d5
VS
44002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 Byte-addressable PCI configuration space.
4403
4404 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4405 dword address.
4406 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4407 GRUB_PCI_REG_CACHELINE.
4408 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4409 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4410 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4411 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4412 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4413 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4414 grub_pci_make_address.
4415 (lock_rom_area): Likewise.
4416 * commands/lspci.c (grub_lspci_iter): Use macroses
4417 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4418 of grub_pci_make_address.
4419 * disk/ata.c (grub_ata_pciinit): Likewise.
4420 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4421 (GRUB_PCI_REG_VENDOR): Likewise.
4422 (GRUB_PCI_REG_DEVICE): Likewise.
4423 (GRUB_PCI_REG_COMMAND): Likewise.
4424 (GRUB_PCI_REG_STATUS): Likewise.
4425 (GRUB_PCI_REG_REVISION): Likewise.
4426 (GRUB_PCI_REG_CLASS): Likewise.
4427 (GRUB_PCI_REG_CACHELINE): Likewise.
4428 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4429 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4430 (GRUB_PCI_REG_BIST): Likewise.
4431 (GRUB_PCI_REG_ADDRESSES): Likewise.
4432 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4433 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4434 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4435 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4436 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4437 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4438 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4439 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4440 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4441 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4442 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4443 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4444 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4445 (GRUB_PCI_REG_MIN_GNT): Likewise.
4446 (GRUB_PCI_REG_MAX_LAT): Likewise.
4447 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4448 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4449 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 4450 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
4451 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4452 space.
4453
96d73208
RM
44542010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4455
4456 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4457 can be reliably determined to be supported.
4458
d4484482
RM
44592010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4460
4461 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4462 that VESA is supported.
4463 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4464 supported.
4465
00308ecf
VS
44662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4469
f66924a4
RM
44702010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4471
4472 * util/misc.c (make_system_path_relative_to_its_root): Work around
4473 special-casing of "/", as previous incarnation of this routine did.
4474
cbca0ada
VS
44752010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 Fix any-emu compilation.
4478
4479 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4480 * grub_bin2h_SOURCES: New variable.
4481
34a66d99
RM
44822010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4483
4484 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4485
94fabf58
RM
44862010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4487
4488 * util/grub.d/00_header.in: Fix handling of locale_dir.
4489
02cf98ca
VS
44902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4493 as possible unifont location (Gentoo).
4494 Reported by: Alexander Brüning
4495
327dbcd7
VS
44962010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 Don't try to generate lists for kernel.img.
4499
4500 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4501 (pkglib_MODULES): Remove kernel.img.
4502 (kernel_img_EXPORTS): Removed.
4503 (kernel_img_RELOCATABLE): New variable.
4504 * conf/x86_64-efi.rmk: Likewise.
4505 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4506
ca467290
VS
45072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4510 grub_xasprintf or grub_snprintf.
4511 (grub_vsprintf): Likewise.
4512 (grub_snprintf): New proto.
4513 (grub_vsnprintf): Likewise.
4514 (grub_xasprintf): Likewise.
4515 (grub_xvasprintf): Likewise.
4516 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4517 (grub_sprintf): Removed.
4518 (grub_vsnprintf): New function.
4519 (grub_snprintf): Likewise.
4520 (grub_xvasprintf): Likewise.
4521 (grub_xasprintf): Likewise.
4522 (grub_vsprintf): Renamed to ...
4523 (grub_vsnprintf_real): ...this. New argument max_len.
4524
aca655fd
BC
45252010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4526
4527 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4528 fix grub-script-check warning.
4529
7ee92c32
VS
45302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * include/grub/font.h (grub_font_load): Fix prototype.
4533
f80927ca
VS
45342010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4537
119c50ea
VS
45382010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * include/grub/x86_64/at_keyboard.h: New file.
4541
47d5f3c1
VS
45422010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * loader/mips/linux.c: Include missing grub/i18n.h.
4545
55ff5266
RM
45462009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4547
4548 * normal/menu.c (notify_execution_failure): Clarify error message.
4549
c893cc87
RM
45502009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4551
4552 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4553 return value (and revert all return statements). Update users.
4554
917dd370
CW
45552010-01-20 Dan Merillat <debian@dan.merillat.org>
4556
4557 * kern/device.c (grub_device_iterate): Allocate new part_ent
4558 structure based on sizeof (*p) rather than sizeof (p->next), to
4559 account for structure padding.
4560
4561 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4562 disk is NULL, which might happen for LVM physical volumes with no
4563 LVM signature.
4564
d4a4ee57
RM
45652009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4566
4567 * loader/mips/linux.c (grub_cmd_initrd)
4568 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4569
45702009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4571
4572 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4573 (grub_video_video_init, grub_video_bitmap_init)
4574 (grub_font_manager_init, grub_term_gfxterm_init)
4575 (grub_at_keyboard_init): New extern declarations.
4576 (grub_machine_init): Initialize gfxterm and at_keyboard.
4577
4578 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4579
4580 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4581 `gfxterm.mod' into core image.
4582
4583 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4584 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4585 (kernel_img_FORMAT): Copy to ...
4586
4587 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4588 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4589 (kernel_img_FORMAT): ... here, and ...
4590
4591 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4592 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4593 (kernel_img_FORMAT): ... here.
4594
4595 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4596 and input (at_keyboard) terminals in kernel.
4597 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4598
4599 (pkglib_MODULES): Remove `pci.mod'.
4600 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4601 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4602 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4603 (at_keyboard_mod_LDFLAGS): Remove variables.
4604
46052010-01-11 Felix Zielcke <fzielcke@z-51.de>
4606
4607 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4608
46092009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4610
4611 * include/grub/mips/libgcc.h: Only export symbols for functions
4612 that libgcc provides.
4613
46142009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 MIPS support.
4617
4618 * bus/bonito.c: New file.
4619 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4620 GRUB_PCI_NUM_DEVICES.
4621 * term/i386/pc/serial.c: Move to ...
4622 * term/serial.c: ... here. All users updated.
4623 * util/i386/pc/grub-mkimage.c: Move to ...
4624 * util/grub-mkrawimage.c: ... here. All users updated.
4625 * term/i386/pc/at_keyboard.c: Move to ...
4626 * term/at_keyboard.c: ... here. All users updated.
4627 * conf/mips-qemu-mips.rmk: New file.
4628 * conf/mips-yeeloong.rmk: Likewise.
4629 * conf/mips.rmk: Likewise.
4630 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4631 mipsel-qemu-mips.
4632 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4633 to port addresses.
4634 (grub_ata_pciinit): Support CS5536.
4635 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4636 * font/font_cmd.c (loadfont_command): Open file before passing it to
4637 grub_font_load.
4638 (pseudo_file_read): New function.
4639 (pseudo_file_close): Likewise.
4640 (pseudo_fs): New structure.
4641 (load_font_module): New function.
4642 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4643 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4644 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4645 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4646 * include/grub/i386/at_keyboard.h: Split into ...
4647 * include/grub/at_keyboard.h: ... this ...
4648 * include/grub/i386/at_keyboard.h: ... and this.
4649 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4650 New prototype.
4651 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4652 updated.
4653 (grub_elf64_size): Likewise.
4654 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4655 filename.
4656 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4657 * include/grub/i386/coreboot/serial.h: Rewritten.
4658 * include/grub/i386/ieee1275/serial.h: Include
4659 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4660 * include/grub/i386/pc/serial.h: Moved from here ...
4661 * include/grub/serial.h: ... to here. All users updated.
4662 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4663 (GRUB_PCI_NUM_BUS): Likewise.
4664 (GRUB_PCI_NUM_DEVICES): Likewise.
4665 (grub_pci_device_map_range): Add missing volatile keyword.
4666 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4667 * include/grub/mips/at_keyboard.h: New file.
4668 * include/grub/mips/cache.h: Likewise.
4669 * include/grub/mips/io.h: Likewise.
4670 * include/grub/mips/kernel.h: Likewise.
4671 * include/grub/mips/libgcc.h: Likewise.
4672 * include/grub/mips/pci.h: Likewise.
4673 * include/grub/mips/qemu-mips/boot.h: Likewise.
4674 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4675 * include/grub/mips/qemu-mips/loader.h: Likewise.
4676 * include/grub/mips/qemu-mips/memory.h: Likewise.
4677 * include/grub/mips/qemu-mips/serial.h: Likewise.
4678 * include/grub/mips/qemu-mips/time.h: Likewise.
4679 * include/grub/mips/relocator.h: Likewise.
4680 * include/grub/mips/time.h: Likewise.
4681 * include/grub/mips/types.h: Likewise.
4682 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4683 * include/grub/mips/yeeloong/boot.h: Likewise.
4684 * include/grub/mips/yeeloong/kernel.h: Likewise.
4685 * include/grub/mips/yeeloong/loader.h: Likewise.
4686 * include/grub/mips/yeeloong/memory.h: Likewise.
4687 * include/grub/mips/yeeloong/pci.h: Likewise.
4688 * include/grub/mips/yeeloong/serial.h: Likewise.
4689 * include/grub/mips/yeeloong/time.h: Likewise.
4690 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4691 * kern/elf.c (grub_elf32_size): New parameter. All users
4692 updated.
4693 (grub_elf64_size): Likewise.
4694 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4695 Load modules before saying "Welcome to GRUB!".
4696 Call grub_refresh after saying "Welcome to GRUB!".
4697 * kern/mips/cache.S: New file.
4698 * kern/mips/cache_flush.S: Likewise.
4699 * kern/mips/dl.c: Likewise.
4700 * kern/mips/init.c: Likewise.
4701 * kern/mips/qemu-mips/init.c: Likewise.
4702 * kern/mips/startup.S: Likewise.
4703 * kern/mips/yeeloong/init.c: Likewise.
4704 * kern/term.c (grub_putcode): Handle NULL terminal.
4705 (grub_getcharwidth): Likewise.
4706 (grub_getkey): Likewise.
4707 (grub_checkkey): Likewise.
4708 (grub_getkeystatus): Likewise.
4709 (grub_getxy): Likewise.
4710 (grub_getwh): Likewise.
4711 (grub_gotoxy): Likewise.
4712 (grub_cls): Likewise.
4713 (grub_setcolorstate): Likewise.
4714 (grub_setcolor): Likewise.
4715 (grub_getcolor): Likewise.
4716 (grub_refresh): Likewise.
4717 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4718 (write_jump): Add hatch nop.
4719 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4720 * lib/mips/setjmp.S: New file.
4721 * loader/mips/linux.c: Likewise.
4722 * term/i386/pc/at_keyboard.c: Move from here ...
4723 * term/at_keyboard.c: ... to here.
4724 * term/i386/pc/serial.c: Moved from here ...
4725 * term/serial.c: ... to here. All users updated.
4726 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4727 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4728 (serial_translate_key_sequence): Avoid deadlock.
4729 (grub_serial_getkey): Handle backspace.
4730 (grub_serial_putchar): Fix newline handling.
4731 * util/i386/pc/grub-mkimage.c: Move from here ...
4732 * util/grub-mkrawimage.c: ... to here. All users updated.
4733 (generate_image): New parameters 'font_path' and 'format'.
4734 Support embedding font.
4735 Use grub_host_to_target* instead of grub_cpu_to_le*.
4736 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4737 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4738 (options): New option "--font".
4739 (usage): Likewise.
4740 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4741 (main): Handle "--font".
4742 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4743 (grub_virtual_screen_setup): Set bg_color_display.
4744 (redraw_screen_rect): Use bg_color_display instead of incorrect
4745 bg_color.
4746 (grub_gfxterm_cls): Likewise.
4747 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4748 Support embedding config file.
4749 (add_segments): Likewise.
4750 (options): New option "--config".
4751 (main): Handle "--config".
4752 * video/sm712.c: New file.
4753
25c2b5b3
RM
47542010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4755
4756 Fix parallel builds.
4757
4758 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4759 font.c depend on ascii.h).
4760
47612010-01-12 Carles Pina i Estany <carles@pina.cat>
4762
4763 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4764
47652010-01-11 Carles Pina i Estany <carles@pina.cat>
4766
4767 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4768 By default: disabled.
4769 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4770 parameter.
4771
47722010-01-10 Carles Pina i Estany <carles@pina.cat>
4773
4774 * font/font.c: Update copyright years.
4775 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4776
47772010-01-10 Carles Pina i Estany <carles@pina.cat>
4778
4779 * font/font.c: Include `ascii.h'.
4780 (ASCII_BITMAP_SIZE): New macro.
4781 (ascii_font_glyph): Define.
4782 (ascii_glyph_lookup): New function.
4783 (grub_font_get_string_width): Change comment. If glyph not found, use
4784 ascii_glyph_lookup.
4785 (grub_font_get_glyph_with_fallback): If glyph not available returns
4786 ascii_glyph_lookup.
4787 * util/grub-mkfont.c (file_formats): New enum.
4788 (options): Add `ascii-bitmaps' new option.
4789 (usage): Add `asii-bitmaps' new option.
4790 (write_font_ascii_bitmap): New function.
4791 (write_font): Rename to ...
4792 (write_font_p2): ... this. Remove print_glyphs call.
4793 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4794 used. Call print_glyphs.
4795 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4796
47972010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4798
4799 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4800 (grub_bin2h_SOURCES): New variable.
4801 * util/bin2h.c: New file.
4802
915fc1b8
VS
48032010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * include/multiboot.h: Resynced with spec.
4806 * include/multiboot2.h: Likewise.
4807 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4808 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4809
9444b678
RM
48102010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4811
4812 * include/grub/term.h (grub_term_register_input,
4813 grub_term_register_output): Check return of terminal init()
4814 routines, and abort if errors are raised.
4815
4816 * commands/terminal.c: Update copyright year.
4817
cba98e8d
RM
48182010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4819
4820 * commands/terminal.c (grub_cmd_terminal_input)
4821 (grub_cmd_terminal_output): Check return of terminal init()
4822 routines, and abort if errors are raised.
4823
6f7db5d6
VS
48242010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * include/grub/i386/bsd.h: Fix include pathes.
4827
262bff8d
VS
48282010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4829
4830 Add missing *BSD copyright headers.
4831
4832 * include/grub/aout.h: Add BSD licence.
4833 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4834 * include/grub/i386/freebsd_linker.h: ... here,
4835 * include/grub/i386/freebsd_reboot.h: ... here,
4836 * include/grub/i386/netbsd_bootinfo.h: ... here,
4837 * include/grub/i386/netbsd_reboot.h: ... here,
4838 * include/grub/i386/openbsd_bootarg.h: ... here,
4839 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4840 licence to each file.
4841
b2cab848
RM
48422010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4843
4844 * acinclude.m4: Remove `nop' assembly instruction; it's not
4845 implemented by all architectures.
4846
2cb6be4b
RM
48472010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4848
4849 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4850 ELILO. This is no longer necessary.
4851
a2eaee15
BC
48522010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4853
4854 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4855
4856 * util/grub-script-check.c: grub-script-check tool.
4857 * conf/common.rmk: Make rules for grub-script-check.
4858
88d17012
RM
48592010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4860
4861 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4862 spotting it back in 2008. Shame on me for forgetting he did.
4863
4864 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4865
8040619d
RM
48662010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4867
4868 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4869 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4870 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4871 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4872 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4873 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4874
a0c2a0f6
RM
48752010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4876
4877 * include/grub/test.h: Add license header.
4878 * tests/example_functional_test.c: Likewise.
4879 * tests/example_unit_test.c: Likewise.
4880 * tests/lib/functional_test.c: Likewise.
4881 * tests/lib/test.c: Likewise.
4882 * tests/lib/unit_test.c: Likewise.
4883
b0b13907
VS
48842010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 Use flag-based instead of hook-based video mode selection and "auto"
4887 keyword.
4888
4889 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4890 (grub_video_set_mode): Changed prototype. All users updated.
4891 (grub_video_check_mode_flag): New inline function.
4892 * video/video.c (parse_modespec): New function.
4893 (grub_video_set_mode): Parse flags and keywords.
4894
ea379330 48952010-01-17 Carles Pina i Estany <carles@pina.cat>
4896
4897 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4898 fprintf call.
4899
e15c215e
FZ
49002010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4901
4902 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4903
409ae1c9 49042010-01-16 Carles Pina i Estany <carles@pina.cat>
4905
4906 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4907 string.
4908 * util/grub-emu.c (usage): Likewise.
4909 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4910 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4911 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4912 * util/i386/pc/grub-setup.c (usage): Likewise.
4913
70a14d3d 49142010-01-16 Carles Pina i Estany <carles@pina.cat>
4915
4916 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4917 the message.
4918 (grub_util_info): Likewise.
4919 (grub_util_error): Likewise.
4920 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4921 and/or new lines in `grub_util_warna', `grub_util_info',
4922 `grub_util_error' calls.
4923 * util/getroot.c: Likewise.
4924 * util/grub-editenv.c: Likewise.
4925 * util/grub-emu.c: Likewise.
4926 * util/grub-fstest.c: Likewise.
4927 * util/grub-mkdevicemap.c: Likewise.
4928 * util/grub-mkfont.c: Likewise.
4929 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4930 * util/grub-mkrelpath.c: Likewise.
4931 * util/grub-pe2elf.c: Likewise.
4932 * util/grub-probe.c: Likewise.
4933 * util/hostdisk.c: Likewise.
4934 * util/i386/efi/grub-mkimage.c: Likewise.
4935 * util/i386/pc/grub-mkimage.c: Likewise.
4936 * util/i386/pc/grub-setup.c: Likewise.
4937 * util/ieee1275/ofpath.c: Likewise.
4938 * util/mkisofs/eltorito.c: Likewise.
4939 * util/mkisofs/rock.c: Likewise.
4940 * util/mkisofs/write.c: Likewise.
4941 * util/raid.c: Likewise.
4942 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4943 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4944
a0b766fc
VS
49452010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 Enable multiboot on non-pc.
4948
4949 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4950 multiboot.mod and multiboot2.mod to ...
4951 * conf/i386.rmk (pkglib_MODULES): ... here.
4952 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4953 Moved to ...
4954 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4955 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4956 Moved to ...
4957 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4958 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4959 Moved to ...
4960 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4961 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4962 Moved to ...
4963 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4964 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4965 relocator.mod.
4966 (ata_mod_SOURCES): Removed.
4967 (ata_mod_CFLAGS): Likewise.
4968 (ata_mod_LDFLAGS): Likewise.
4969 (relocator_mod_SOURCES): Removed.
4970 (relocator_mod_CFLAGS): Likewise.
4971 (relocator_mod_ASFLAGS): Likewise.
4972 (relocator_mod_LDFLAGS): Likewise.
4973 Include i386.mk.
4974 * include/grub/x86_64/multiboot.h: New file.
4975 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4976 Terminate EFI.
4977
884ade56
VS
49782010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4979
4980 Video multiboot support.
4981
4982 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4983 New prototype.
4984 * include/multiboot.h: Resynced with multiboot specification.
4985 * include/multiboot2.h: Likewise.
4986 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4987 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4988 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4989 (HAS_VGA_TEXT): Likewise.
4990 (accepts_video): New variable.
4991 (grub_multiboot_set_accepts_video): New function.
4992 (grub_multiboot_get_mbi_size): Account for video structures.
4993 (set_video_mode): New function.
4994 (retrieve_video_parameters): Likewise.
4995 (grub_multiboot_make_mbi): Fill video fields.
4996
0d90e8a6
VS
49972010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 Video driver ids.
5000
5001 * include/grub/video.h (grub_video_driver_id): New type.
5002 (grub_video_adapter): New member 'id'. All users updated.
5003 (grub_video_get_driver_id): New proto.
5004 * video/video.c (grub_video_get_driver_id): New function.
5005
5c71db1b 50062010-01-14 Carles Pina i Estany <carles@pina.cat>
5007
5008 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
5009 `var=val'.
5010
cca15b52 50112010-01-14 Carles Pina i Estany <carles@pina.cat>
5012
5013 * normal/cmdline.c (print_completion): Gettextizze.
5014
c586fbb2 50152001-01-14 Carles Pina i Estany <carles@pina.cat>
5016
5017 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
5018
ba2f6848 50192010-01-14 Carles Pina i Estany <carles@pina.cat>
5020
5021 * gettext/gettext.c (grub_gettext_translate): Push and pop
5022 grub_errno.
5023 (grub_gettext_delete_list): Change comment style.
5024 * kern/err.c (grub_error): Gettextizze.
5025 (grub_fatal): Gettextizze.
5026
0a46429a
RM
50272010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5028
5029 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
5030 (grub_linux16_real_boot): ... this.
5031 * kern/i386/loader.S: Likewise.
5032 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
5033 (grub_linux16_boot): New function. Switches to text mode and calls
5034 grub_linux16_real_boot().
5035
5036 * loader/i386/bsd.c: Include `<grub/video.h>'.
5037 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
5038 text mode before calling grub_unix_real_boot().
5039
5040 * loader/i386/multiboot.c: Include `<grub/video.h>'.
5041 (grub_multiboot_boot): Switch to text mode before calling
5042 grub_relocator32_boot().
5043
5044 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
5045 (grub_chainloader_boot): Switch to text mode before calling
5046 grub_chainloader_real_boot().
5047
d6f93a66
RM
50482010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
50492010-01-05 Colin Watson <cjwatson@ubuntu.com>
5050
5051 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
5052 non-empty value.
5053
50542010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
50552010-01-05 Colin Watson <cjwatson@ubuntu.com>
5056
5057 * util/grub.d/00_header.in: Define a "savedefault" function for use
5058 in menu entries.
5059 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
5060
50612010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
50622010-01-05 Colin Watson <cjwatson@ubuntu.com>
5063
5064 * util/grub-mkconfig_lib.in (save_default_entry): Only set
5065 saved_entry if boot_once is unset.
5066 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
5067 previous saved entry (i.e. grub-reboot).
5068
50692009-12-08 Colin Watson <cjwatson@ubuntu.com>
5070
5071 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
5072
50732009-12-08 Colin Watson <cjwatson@ubuntu.com>
5074
5075 * util/grub.d/00_header.in: Use `set var=val' rather than plain
5076 `var=val'.
5077 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
5078
50792009-12-08 Colin Watson <cjwatson@ubuntu.com>
5080
5081 * util/grub-reboot.in: Fix --version output.
5082 * util/grub-set-default.in: Likewise.
5083
50842009-12-08 Colin Watson <cjwatson@ubuntu.com>
5085
5086 * util/grub.d/00_header.in: Silently ignore zero-sized environment
5087 blocks.
5088
50892009-12-08 Colin Watson <cjwatson@ubuntu.com>
5090
5091 * util/grub.d/00_header.in: Quote the value assigned to `default',
5092 in case it contains spaces.
5093
50942009-12-08 Colin Watson <cjwatson@ubuntu.com>
5095
5096 * util/grub.d/30_os-prober.in: Fix merge error that moved a
5097 `save_default_entry' call from the macosx case to the linux case.
5098
50992009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
51002009-10-25 Colin Watson <cjwatson@ubuntu.com>
5101
5102 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
5103 in `chosen' environment variable.
5104 * normal/menu_text.c (get_entry_number): Check if the variable
5105 matches the title of a menu entry.
5106 (run_menu): Pass menu to get_entry_number.
5107
5108 * util/grub-reboot.in: New file.
5109 * util/grub-set-default.in: New file.
5110 * conf/common.rmk (grub-reboot): New utility.
5111 (grub-set-default): New utility.
5112
5113 * util/grub-mkconfig_lib.in (save_default_entry): New function.
5114 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
5115 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
5116 move it to `saved_entry' for the next boot. Load environment on
5117 initialisation.
5118 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
5119 * util/grub.d/10_hurd.in: Likewise.
5120 * util/grub.d/10_linux.in (linux_entry): Likewise.
5121 * util/grub.d/10_windows.in: Likewise.
5122 * util/grub.d/30_os-prober.in: Likewise.
5123
5124 * util/grub-install.in: Create environment block.
5125 * util/i386/efi/grub-install.in: Likewise.
5126 * util/ieee1275/grub-install.in: Likewise.
5127 * util/sparc64/ieee1275/grub-install.in: Likewise.
5128
0934d184
BC
51292010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
5130
5131 Unit testing framework for GRUB.
5132
5133 * Makefile.in: Test framework build rules for 'make check'.
5134 * conf/tests.rmk: Build rules for individual tests and framework.
5135
5136 * include/grub/test.h: Header file for whitebox tests.
5137 * tests/lib/functional_test.c: Framework support for whitebox
5138 functional tests.
5139 * tests/lib/test.c: Common whitebox testing code for unit and
5140 functional tests.
5141 * tests/lib/unit_test.c: Framework support for whitebox unit
5142 tests.
5143
5144 * tests/util/grub-shell-tester.in: Support utility for grub-script
5145 tests.
5146 * tests/util/grub-shell.in: Utility to execute grub-script
5147 commands in a Qemu instance.
5148
5149 * tests/example_functional_test.c: Example whitebox functional
5150 test.
5151 * tests/example_grub_script_test.in: Example grub-script test.
5152 * tests/example_scripted_test.in: Example scripted test.
5153 * tests/example_unit_test.c: Example whitebox unit test.
5154
9c4ffeeb
VS
51552010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
5158 Add loader/i386/multiboot_mbi.c.
5159 (multiboot2_mod_SOURCES): Likewise.
5160 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
5161 (multiboot2_mod_SOURCES): Likewise.
5162 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
5163 (grub_multiboot_make_mbi): Likewise.
5164 (grub_multiboot_free_mbi): Likewise.
5165 (grub_multiboot_init_mbi): Likewise.
5166 (grub_multiboot_add_module): Likewise.
5167 (grub_multiboot_set_bootdev): Likewise.
5168 * loader/i386/multiboot.c (mbi): Removed.
5169 (mbi_dest): Likewise.
5170 (alloc_mbi): New variable.
5171 (grub_multiboot_payload_size): Removed. All users updated.
5172 (grub_multiboot_pure_size): New variable.
5173 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
5174 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
5175 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
5176 (grub_fill_multiboot_mmap): Likewise.
5177 (grub_multiboot_get_bootdev): Likewise.
5178 (grub_multiboot): Use multiboot_mbi functions.
5179 * loader/i386/multiboot_mbi.c: New file.
5180
17383dfe
VS
51812010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
5184 it would result in module crash.
5185
c1f28820
VS
51862010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5187
5188 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
5189 (grub_ofconsole_getwh): Split to ...
5190 (grub_ofconsole_getwh): ... this.
5191 (grub_ofconsole_dimensions): ...and this.
5192 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
5193
58655a16
RM
51942010-01-13 Robert Millan <rmh.grub@aybabtu.com>
5195
5196 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
5197
10891398
VS
51982010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 * loader/i386/pc/multiboot2.c: Removed stalled file.
5201
0b8a223c
VS
52022010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
5205 Reported by: Grégoire Sutre
5206
92ab12b0
RM
52072010-01-11 Robert Millan <rmh.grub@aybabtu.com>
5208
5209 * util/misc.c (canonicalize_file_name): New function.
5210 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
5211 instead of realpath().
5212
a788afb6
CW
52132010-01-11 Colin Watson <cjwatson@ubuntu.com>
5214
5215 * util/grub-install.in (usage): Clarify meaning of --root-directory,
5216 and make it clearer that it's optional. Based on confusion
5217 witnessed on IRC.
5218
ffa8e3d2
VS
52192010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
5222 in premature implicit newline.
5223
e9060a9d
VS
52242010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5227 which resulted in garbled command line at the end of screen.
5228
f0d0c0b7
RM
52292010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5230
5231 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
5232 initialization with similar approach as with other Linux loaders.
5233
0e60bae7
RM
52342010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5235
5236 Fix i386-ieee1275 build.
5237
5238 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
5239 and grub_term_height() for video_{width,height} initialization.
5240
52412010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
5242
5243 Fix grub-emu build.
5244
5245 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
5246
cdb3f378
RM
52472010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
52482010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5249
5250 Support for multiple terminals.
5251
5252 * Makefile.in (pkglib_DATA): terminal.lst.
5253 (terminal.lst): New target.
5254 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
5255 (GRUB_MOD_INIT(handler)): Likewise.
5256 (GRUB_MOD_FINI(handler)): Likewise.
5257 * commands/help.c (grub_cmd_help): Handle multiple terminals.
5258 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
5259 * commands/sleep.c (do_print): Use grub_term_restore_pos.
5260 (grub_cmd_sleep): Use grub_term_save_pos.
5261 * commands/terminal.c: New file.
5262 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
5263 commands/terminal.c and lib/charset.c.
5264 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
5265 (pkglib_MODULES): Add terminal.mod.
5266 (terminal_mod_SOURCES): New variable.
5267 (terminal_mod_CFLAGS): Likewise.
5268 (terminal_mod_LDFLAGS): Likewise.
5269 * genhandlerlist.sh: Don't handle terminals.
5270 * genmk.rb: Generate terminal-*.lst.
5271 * genterminallist.sh: New file.
5272 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
5273 (grub_is_valid_utf8): Likewise.
5274 (grub_utf8_to_ucs4_alloc): Likewise.
5275 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
5276 (grub_menu_register_viewer): Changed argument.
5277 (grub_menu_try_text): New proto.
5278 (grub_gfxmenu_try_hook): New declaration.
5279 * include/grub/normal.h (grub_normal_exit_level): New declaration.
5280 (grub_menu_init_page): Additional argument term.
5281 (grub_normal_init_page): Likewise.
5282 (grub_cmdline_get): Arguments simplified.
5283 (grub_utf8_to_ucs4_alloc): Removed.
5284 (grub_print_ucs4): Additional argument term.
5285 (grub_getstringwidth): Likewise.
5286 (grub_print_message_indented): Likewise.
5287 (grub_menu_text_register_instances): New proto.
5288 (grub_show_menu): Likewise.
5289 (read_terminal_list): Likewise.
5290 (grub_set_more): Likewise.
5291 * include/grub/parser.h: Include handler.h.
5292 * include/grub/reader.h: Rewritten.
5293 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
5294 (GRUB_TERM_WIDTH): Changed to function.
5295 (GRUB_TERM_HEIGHT): Likewise.
5296 (GRUB_TERM_BORDER_WIDTH): Likewise.
5297 (GRUB_TERM_BORDER_HEIGHT): Likewise.
5298 (GRUB_TERM_NUM_ENTRIES): Likewise.
5299 (GRUB_TERM_ENTRY_WIDTH): Likewise.
5300 (GRUB_TERM_CURSOR_X): Likewise.
5301 (grub_term_input_class): Likewise.
5302 (grub_term_output_class): Likewise.
5303 (grub_term_outputs_disabled): New declaration.
5304 (grub_term_inputs_disabled): Likewise.
5305 (grub_term_outputs): Likewise.
5306 (grub_term_inputs): Likewise.
5307 (grub_term_register_input): Rewritten.
5308 (grub_term_register_output): Likewise.
5309 (grub_term_unregister_input): Likewise.
5310 (grub_term_unregister_output): Likewise.
5311 (FOR_ACTIVE_TERM_INPUTS): New macro.
5312 (FOR_DISABLED_TERM_INPUTS): Likewise.
5313 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5314 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5315 * include/grub/terminfo.h: Add oterm argument to all protypes.
5316 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
5317 Use grub_rescue_run.
5318 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
5319 All users updated.
5320 * kern/reader.c: Removed. All users updated.
5321 * kern/rescue_reader.c (grub_rescue_init): Removed.
5322 (grub_rescue_reader): Likewise.
5323 (grub_register_rescue_reader): Likewise.
5324 (grub_rescue_run): New function based on kern/reader.c.
5325 * kern/term.c: Adapted for multiterm.
5326 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
5327 (grub_is_valid_utf8): Likewise.
5328 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
5329 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
5330 right terminal.
5331 * loader/i386/linux.c (grub_linux_boot): Likewise.
5332 * normal/auth.c (grub_username_get): New function.
5333 (grub_auth_check_authentication): Use grub_username_get.
5334 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
5335 * normal/color.c: Adapt for multiterm.
5336 * normal/main.c (read_config_file): Don't use grub_reader_loop.
5337 (grub_normal_init_page): Additional argument term.
5338 (read_lists): Call read_terminal_lists.
5339 (grub_enter_normal_mode): Call grub_cmdline_run.
5340 Handle grub_normal_exit_level.
5341 (grub_cmd_normal): Make reentrant.
5342 (grub_cmd_normal_exit): New function.
5343 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
5344 * normal/menu.c: Adapt for multiterm.
5345 * normal/menu_entry.c: Likewise.
5346 * normal/menu_text.c: Likewise.
5347 * normal/menu_viewer.c: Removed. All users updated.
5348 * normal/term.c: New file.
5349 * util/console.c: Change order of includes to workaround a bug in
5350 ncurses headers.
5351 * term/terminfo.c: New argument oterm on all exported functions.
5352 All users updated.
5353 * util/grub-editenv.c (grub_term_input_class): Removed.
5354 (grub_term_output_class): Likewise.
5355
1a064917
RM
53562010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5357
5358 Make loader output a bit more user-friendly.
5359
5360 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
5361 is being loaded. Likewise for the Hurd.
5362
5363 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
5364 that kernel of FreeBSD ${version} is being loaded.
5365
5366 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
5367 grub_dprintf().
5368 (grub_cmd_initrd): Likewise.
5369 * util/grub.d/10_linux.in (linux_entry): Print message indicating
5370 that Linux ${version} is being loaded. Likewise for initrd.
5371
5ce0a83a 53722010-01-09 Carles Pina i Estany <carles@pina.cat>
5373
5374 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
5375
809bbfeb 53762010-01-08 Carles Pina i Estany <carles@pina.cat>
5377
5378 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5379 (GRUB_MOD_INIT): Gettextizze.
5380 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5381 (GRUB_MOD_INIT): Gettextizze.
5382 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5383 (grub_cmd_linux): Capitalise Linux.
5384 (GRUB_MOD_INIT): Gettextizze.
5385 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5386 (grub_cmd_linux): Capitalise Linux.
5387 (GRUB_MOD_INIT): Gettextizze.
5388 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5389 (grub_cmd_linux): Capitalise Linux.
5390 (GRUB_MOD_INIT): Gettextizze.
5391 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5392 (GRUB_MOD_INIT): Gettextizze.
5393 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5394 (grub_cmd_linux): Capitalise Linux.
5395 (GRUB_MOD_INIT): Gettextizze.
5396 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5397 (grub_cpu_xnu_init): Gettextizze.
5398 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5399 (GRUB_MOD_INIT): Gettextizze.
5400 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5401 (GRUB_MOD_INIT): Gettextizze.
5402 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5403 (grub_linux_load64): Capitalise Linux.
5404 (GRUB_MOD_INIT): Gettextizze.
5405 * loader/xnu.c: Include `<grub/i18n.h>'.
5406 (GRUB_MOD_INIT): Gettextizze.
5407 * po/POTFILES: Add `loader/efi/appleloader.c',
5408 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5409 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5410 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5411 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5412 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5413 and `loader/xnu.c'.
5414
b394b2ca
RM
54152010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5416
5417 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5418
54192010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
5420
5421 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5422 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5423 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5424
bc8b32b3
RM
54252010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5426
5427 Reset Multiboot 2 support. New loader implements the draft in
5428 /branches/multiboot2 and shares as much code as possible with the
5429 production Multiboot 1 implementation.
5430
5431 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5432 * loader/multiboot2.c: Likewise.
5433 * loader/i386/multiboot_helper.S: Likewise.
5434 * include/multiboot2.h: Replace with latest version from the draft
5435 in /branches/multiboot2.
5436
5437 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5438 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5439 and `loader/multiboot2.c'.
5440 (pkglib_MODULES): Add `multiboot2.mod'.
5441 (multiboot2_mod_SOURCES): New variable.
5442 (multiboot2_mod_LDFLAGS): Likewise.
5443 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5444
5445 * conf/i386-pc.rmk: Likewise.
5446
5447 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5448 (multiboot_mod_SOURCES): Remove variable.
5449 (multiboot_mod_LDFLAGS): Likewise.
5450 (multiboot_mod_CFLAGS): Likewise.
5451
5452 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5453 `<multiboot2.h>' instead of `<multiboot.h>'.
5454 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5455 (MULTIBOOT_HEADER_MAGIC): New macros.
5456
5457 * loader/multiboot_loader.c (module_version_status): Remove variable.
5458 (find_multi_boot2_header): Remove function.
5459 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5460 logic. Always check for the Multiboot version we're compiling for.
5461 (grub_cmd_module_loader): Likewise.
5462 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5463 command instead of `multiboot'.
5464
5d2c52b8
RM
54652010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5466
5467 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5468 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5469 all users.
5470
53108d92
RM
54712010-01-07 Robert Millan <rmh.grub@aybabtu.com>
54722010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 Fix breakage introduced with previous commit.
5475
5476 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5477 commands.
5478 * normal/handler.c (read_handler_list): Revert part of previous commit
5479 affecting this file.
5480 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5481 (grub_normal_execute): ... here.
5482
e2e936b2
RM
54832010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5484
5485 Merge prefix-redefinition-fix branch.
5486
5487 * normal/autofs.c (read_fs_list): Make function capable of being
5488 run multiple times, gracefuly replacing the previous data
5489 structures.
5490 * normal/dyncmd.c (read_command_list): Likewise.
5491 * normal/handler.c (read_handler_list): Likewise.
5492 * normal/main.c (read_lists): New function. Calls all the
5493 list reading functions.
5494 (grub_normal_execute): Use read_lists() instead of calling all
5495 list reading functions explicitly. Register read_lists() as a
5496 variable hook attached to ${prefix}.
5497
607a3701
VS
54982010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5499
5500 Merge crypto branch.
5501
5502 * Makefile.in (pkglib_DATA): Add crypto.lst.
5503 (crypto.lst): New target.
5504 * commands/hashsum.c: New file.
5505 * commands/password.c (check_password): Use grub_crypto_memcmp.
5506 * commands/password_pbkdf2.c: New file.
5507 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5508 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5509 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5510 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5511 -I$(srcdir)/lib/libgcrypt_wrap.
5512 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5513 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5514 password_pbkdf2.mod.
5515 (crypto_mod_SOURCES): New variable.
5516 (crypto_mod_CFLAGS): Likewise.
5517 (crypto_mod_LDFLAGS): Likewise.
5518 (hashsum_mod_SOURCES): New variable.
5519 (hashsum_mod_CFLAGS): Likewise.
5520 (hashsum_mod_LDFLAGS): Likewise.
5521 (pbkdf2_mod_SOURCES): New variable.
5522 (pbkdf2_mod_CFLAGS): Likewise.
5523 (pbkdf2_mod_LDFLAGS): Likewise.
5524 (password_pbkdf2_mod_SOURCES): New variable.
5525 (password_pbkdf2_mod_CFLAGS): Likewise.
5526 (password_pbkdf2_mod_LDFLAGS): Likewise.
5527 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5528 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5529 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5530 Include conf/gcry.rmk.
5531 * include/grub/auth.h: Rewritten.
5532 * include/grub/crypto.h: New file.
5533 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5534 * include/grub/normal.h (read_crypto_list): New prototype.
5535 * lib/crypto.c: New file.
5536 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5537 * lib/pbkdf2.c: Likewise.
5538 * normal/auth.c (grub_auth_strcmp): Removed.
5539 (grub_iswordseparator): Likewise.
5540 (grub_auth_strword): Likewise.
5541 (is_authenticated): Use grub_strword.
5542 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5543 and grub_strword. Pass entered password to authentication callback.
5544 * normal/crypto.c: New file.
5545 * normal/main.c: Call read_crypto_list.
5546 * util/grub-mkpasswd-pbkdf2.c: New file.
5547 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5548
42841caa
VS
55492010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5550
5551 Fix descent and ascent calculation.
5552
5553 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5554 (options): New option "asce".
5555 (usage): Likewise.
5556 (add_char): Ignore invalid glyphs for descent calculation.
5557 Calculate ascent from actual content.
5558 (print_glyphs): Use 'asce'.
5559 (write_font): Likewise. Allow ascent override.
5560 (main): Handle "asce" option.
5561
e7730de7 55622010-01-06 Carles Pina i Estany <carles@pina.cat>
5563
5564 * kern/err.c: Include `<grub/i18n.h>'.
5565 (grub_print_error): Add full stop. Gettextizze.
5566 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5567 (grub_bsd_load_elf): Capitalise ELF.
5568 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5569 (grub_cmd_freebsd_module): Likewise.
5570 (grub_cmd_freebsd_module_elf): Likewise.
5571 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5572
40e3a41f 55732010-01-06 Carles Pina i Estany <carles@pina.cat>
5574
5575 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5576 * commands/search_file.c (HELP_MESSAGE): New macro.
5577 * commands/search_label.c (HELP_MESSAGE): Likewise.
5578 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5579 * po/POTFILES: Add `commands/search_file.c',
5580 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5581 `commands/search.c'.
5582
83507e68
RM
55832010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5584
5585 * config.rpath: Update from Gnulib.
5586
465c787b
YB
55872010-01-05 Yves Blusseau <blusseau@zetam.org>
5588
5589 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5590
6581dd3a
YB
55912010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5592
5593 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5594
3bff18c5
CW
55952010-01-05 Colin Watson <cjwatson@ubuntu.com>
5596
5597 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5598 arguments to fread so that we get a return value in bytes, rather
5599 than something that will normally be rounded down to 0.
5600 Adjust error handling to avoid producing garbage when size_t is not
5601 the same size as long long.
5602
a1368118
CW
56032010-01-05 Colin Watson <cjwatson@ubuntu.com>
5604
5605 * util/mkisofs/write.c (padblock_write): Check return value of
5606 fread.
5607
7c302978
RM
56082010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5609
5610 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5611 floppy images now.
5612
5613 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5614
e33ace06
RM
56152010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5616
5617 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5618 instead of manual alignment.
5619 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5620 verbose). Avoid attempts to read past end of the device
5621 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5622 but GRUB_DISK_CACHE_SIZE may exceed that).
5623
4b856776
RM
56242010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5625
5626 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5627 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5628 it to upper layer.
5629
52c2d97f
VS
56302010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5633 New constant.
5634 (grub_efi_piwg_device_path): New structure
5635 (grub_efi_piwg_device_path_t): New type.
5636 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5637 (devpath_1): Transform to a structure. All users updated.
5638 (devpath_2): Likewise.
5639 (devpath_3): Likewise.
5640 (devpath_4): Likewise.
5641 (devpath_5): Likewise.
5642
98ff6a54
VS
56432010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * loader/efi/appleloader.c: Restored. Update all users.
5646
3a73dcb6
RM
56472010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5648
5649 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5650
5651 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5652 (struct boot_blocklist): Move from here ...
5653 * include/grub/i386/pc/boot.h [ASM_FILE]
5654 (struct grub_boot_blocklist): ... to here. Update all users.
5655 (setup): Only initialize `start' member of `first_block'
5656 structure. Add assert() calls to verify the other members.
5657
5658 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5659 (generate_image): Fix broken blocklist length initialization.
5660 Add assert() call to verify blocklist `segment' field.
5661
ab0eeb0c
RM
56622010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5663
5664 * loader/efi/appleloader.c: Remove. Update all users.
5665
58bc8bd5
RM
56662010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5667
5668 * boot/i386/pc/boot.S: Update copyright year.
5669 * boot/i386/pc/cdboot.S: Likewise.
5670 * boot/i386/pc/diskboot.S: Likewise.
5671 * boot/i386/pc/lnxboot.S: Likewise.
5672 * boot/i386/pc/pxeboot.S: Likewise.
5673 * bus/pci.c: Likewise.
5674 * commands/cmp.c: Likewise.
5675 * commands/help.c: Likewise.
5676 * commands/hexdump.c: Likewise.
5677 * commands/i386/pc/halt.c: Likewise.
5678 * commands/i386/pc/play.c: Likewise.
5679 * commands/i386/pc/vbeinfo.c: Likewise.
5680 * commands/ls.c: Likewise.
5681 * commands/test.c: Likewise.
5682 * disk/dmraid_nvidia.c: Likewise.
5683 * disk/i386/pc/biosdisk.c: Likewise.
5684 * disk/ieee1275/nand.c: Likewise.
5685 * disk/ieee1275/ofdisk.c: Likewise.
5686 * disk/lvm.c: Likewise.
5687 * disk/raid.c: Likewise.
5688 * disk/raid6_recover.c: Likewise.
5689 * disk/scsi.c: Likewise.
5690 * fs/affs.c: Likewise.
5691 * fs/cpio.c: Likewise.
5692 * fs/ext2.c: Likewise.
5693 * fs/hfs.c: Likewise.
5694 * fs/iso9660.c: Likewise.
5695 * fs/ntfs.c: Likewise.
5696 * fs/sfs.c: Likewise.
5697 * fs/udf.c: Likewise.
5698 * fs/ufs.c: Likewise.
5699 * fs/xfs.c: Likewise.
5700 * gencmdlist.sh: Likewise.
5701 * genmk.rb: Likewise.
5702 * include/grub/disk.h: Likewise.
5703 * include/grub/efi/api.h: Likewise.
5704 * include/grub/efi/efi.h: Likewise.
5705 * include/grub/efi/pe32.h: Likewise.
5706 * include/grub/elf.h: Likewise.
5707 * include/grub/fs.h: Likewise.
5708 * include/grub/i386/at_keyboard.h: Likewise.
5709 * include/grub/i386/pc/memory.h: Likewise.
5710 * include/grub/i386/pc/vbe.h: Likewise.
5711 * include/grub/i386/pci.h: Likewise.
5712 * include/grub/i386/tsc.h: Likewise.
5713 * include/grub/ieee1275/ieee1275.h: Likewise.
5714 * include/grub/ntfs.h: Likewise.
5715 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5716 * include/grub/sparc64/libgcc.h: Likewise.
5717 * include/grub/symbol.h: Likewise.
5718 * include/grub/types.h: Likewise.
5719 * include/multiboot2.h: Likewise.
5720 * io/gzio.c: Likewise.
5721 * kern/device.c: Likewise.
5722 * kern/disk.c: Likewise.
5723 * kern/efi/efi.c: Likewise.
5724 * kern/efi/mm.c: Likewise.
5725 * kern/elf.c: Likewise.
5726 * kern/file.c: Likewise.
5727 * kern/i386/dl.c: Likewise.
5728 * kern/i386/pc/init.c: Likewise.
5729 * kern/i386/pc/startup.S: Likewise.
5730 * kern/ieee1275/ieee1275.c: Likewise.
5731 * kern/ieee1275/init.c: Likewise.
5732 * kern/main.c: Likewise.
5733 * kern/mm.c: Likewise.
5734 * kern/powerpc/dl.c: Likewise.
5735 * kern/sparc64/dl.c: Likewise.
5736 * kern/x86_64/dl.c: Likewise.
5737 * lib/hexdump.c: Likewise.
5738 * loader/efi/appleloader.c: Likewise.
5739 * loader/i386/ieee1275/linux.c: Likewise.
5740 * loader/i386/pc/chainloader.c: Likewise.
5741 * loader/i386/pc/linux.c: Likewise.
5742 * loader/i386/pc/multiboot2.c: Likewise.
5743 * loader/ieee1275/multiboot2.c: Likewise.
5744 * loader/multiboot2.c: Likewise.
5745 * loader/multiboot_loader.c: Likewise.
5746 * loader/powerpc/ieee1275/linux.c: Likewise.
5747 * normal/completion.c: Likewise.
5748 * normal/menu_entry.c: Likewise.
5749 * partmap/apple.c: Likewise.
5750 * util/grub.d/10_hurd.in: Likewise.
5751 * util/hostfs.c: Likewise.
5752 * video/readers/png.c: Likewise.
5753
e2d70b5c
CW
57542010-01-03 Colin Watson <cjwatson@ubuntu.com>
5755
5756 * include/grub/misc.h (GNUC_PREREQ): New macro.
5757 (ATTRIBUTE_ERROR): New macro.
5758 * include/grub/list.h (grub_bad_type_cast_real): Use
5759 ATTRIBUTE_ERROR.
5760
a173283f 57612010-01-03 Carles Pina i Estany <carles@pina.cat>
5762
5763 * normal/menu_text.c (print_message): Change messages.
5764
7fa7ff74 57652010-01-03 Carles Pina i Estany <carles@pina.cat>
5766
5767 * normal/menu_entry.c (store_completion): Gettextizze.
5768
136d24f6 57692010-01-03 Carles Pina i Estany <carles@pina.cat>
5770
5771 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5772
f936862e 57732010-01-03 Carles Pina i Estany <carles@pina.cat>
5774
5775 * po/POTFILES: Sort correctly.
5776
29c44ad1 57772010-01-03 Carles Pina i Estany <carles@pina.cat>
5778
5779 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5780 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5781 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5782 full stop.
5783 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5784 summary. Gettextizze the strings.
5785 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5786 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5787 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5788 full stop.
5789 (GRUB_MOD_INIT): Remove command name from summary.
5790 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5791 summary.
5792 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5793 * term/i386/pc/serial.c (options): Add full stops.
5794 (GRUB_MOD_INIT): Remove command name from the summary.
5795
77a79592 57962010-01-03 Carles Pina i Estany <carles@pina.cat>
5797
5798 * commands/acpi.c: Gettextizze help strings and/or options. Include
5799 `grub/i18n.h' if needed.
5800 * commands/blocklist.c: Likewise.
5801 * commands/boot.c: Likewise.
5802 * commands/cat.c: Likewise.
5803 * commands/cmp.c: Likewise.
5804 * commands/configfile.c: Likewise.
5805 * commands/crc.c: Likewise.
5806 * commands/date.c: Likewise.
5807 * commands/echo.c: Likewise.
5808 * commands/efi/fixvideo.c: Likewise.
5809 * commands/efi/loadbios.c: Likewise.
5810 * commands/gptsync.c: Likewise.
5811 * commands/halt.c: Likewise.
5812 * commands/handler.c: Likewise.
5813 * commands/hdparm.c: Likewise.
5814 * commands/hexdump.c: Likewise.
5815 * commands/i386/cpuid.c: Likewise.
5816 * commands/i386/pc/drivemap.c: Likewise.
5817 * commands/i386/pc/halt.c: Likewise.
5818 * commands/i386/pc/pxecmd.c: Likewise.
5819 * commands/i386/pc/vbeinfo.c: Likewise.
5820 * commands/i386/pc/vbetest.c: Likewise.
5821 * commands/ieee1275/suspend.c: Likewise.
5822 * commands/keystatus.c: Likewise.
5823 * commands/loadenv.c: Likewise.
5824 * commands/ls.c: Likewise.
5825 * commands/lsmmap.c: Likewise.
5826 * commands/lspci.c: Likewise.
5827 * commands/memrw.c: Likewise.
5828 * commands/minicmd.c: Likewise.
5829 * commands/parttool.c: Likewise.
5830 * commands/password.c: Likewise.
5831 * commands/probe.c: Likewise.
5832 * commands/read.c: Likewise.
5833 * commands/reboot.c: Likewise.
5834 * commands/search.c: Likewise.
5835 * commands/sleep.c: Likewise.
5836 * commands/test.c: Likewise.
5837 * commands/true.c: Likewise.
5838 * commands/usbtest.c: Likewise.
5839 * commands/videotest.c: Likewise.
5840 * commands/xnu_uuid.c: Likewise.
5841 * disk/loopback.c: Likewise.
5842 * hello/hello.c: Likewise.
5843 * loader/i386/bsd.c: Likewise.
5844 * term/i386/pc/serial.c: Likewise.
5845 * po/POTFILES: Add new files.
5846
da8d5c53
CW
58472010-01-02 Colin Watson <cjwatson@ubuntu.com>
5848
5849 * term/i386/pc/at_keyboard.c
5850 (keyboard_controller_wait_untill_ready): Rename to ...
5851 (keyboard_controller_wait_until_ready): ... this. Update all users.
5852
33937904 58532010-01-01 Carles Pina i Estany <carles@pina.cat>
5854
5855 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5856 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5857 string using string width.
5858 * normal/menu_text.c (grub_print_message_indented): Use
5859 grub_print_spaces and not print_spaces.
5860 (print_timeout): Likewise.
5861 (print_spaces): Move to...
5862 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5863
3fd3b8d8
RM
58642010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5865
5866 Import from Gnulib.
5867
5868 * gnulib/getdelim.c: New file.
5869 * gnulib/getline.c: Likewise.
5870
33433555
VS
58712009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5872
5873 * include/grub/list.h (grub_assert_fail): Removed.
5874 (grub_bad_type_cast_real): New function.
5875 (grub_bad_type_cast): New macro.
5876 (GRUB_AS_LIST): Use grub_bad_type_cast.
5877 (GRUB_AS_LIST_P): Likewise.
e44721e8 5878 (GRUB_AS_NAMED_LIST): Likewise.
33433555 5879 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 5880 (GRUB_AS_PRIO_LIST): Likewise.
33433555 5881 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 5882 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 5883
f5a51306
VS
58842009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5887 Fix syntax error.
5888
90d1e879
RM
58892009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5890
5891 * configure.ac: Check for TARGET_CFLAGS initialization before we
5892 initialize it ourselves (sigh).
5893 Move a few modifications to TARGET_CFLAGS to be unconditional
5894 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5895 eh_frame)
5896
5897 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5898 * term/i386/pc/at_keyboard.c
5899 (keyboard_controller_wait_untill_ready): Likewise.
5900 (keyboard_controller_led): Rename `led_status' paramter to avoid
5901 name conflict.
5902
465b5a81 59032009-12-28 Carles Pina i Estany <carles@pina.cat>
5904
5905 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5906 quotes.
5907
c181849b
VS
59082009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5909
5910 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5911
9c8739a4
VS
59122009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 * normal/menu_text.c (grub_print_message_indented): Prevent
5915 past-the-end-of-array dereference.
5916
3e74249c
VS
59172009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5920 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5921
64fd18ed 59222009-12-27 Carles Pina i Estany <carles@pina.cat>
5923
5924 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5925 * normal/main.c (grub_normal_read_line): Remove a space from the
5926 default prompt.
5927
714af9b9 59282009-12-27 Carles Pina i Estany <carles@pina.cat>
5929
5930 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5931 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5932 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5933 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5934 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5935 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5936 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5937
82f3e412 59382009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 5939
5940 * video/readers/jpeg.c (cmd): Declare.
5941 (grub_cmd_jpegtest): Use `grub_command_t' type.
5942 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5943 Assign to `cmd'.
5944 (GRUB_MOD_FINI): Use `cmd' to unregister.
5945 * video/readers/png.c (cmd): Declare.
5946 (grub_cmd_pngtest): Use `grub_command_t' type.
5947 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5948 Assign to `cmd'.
5949 (GRUB_MOD_FINI): Use `cmd' to unregister.
5950 * video/readers/tga.c (cmd): Declare.
5951 (grub_cmd_tgatest): Use `grub_command_t' type.
5952 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5953 Assign to `cmd'.
5954 (GRUB_MOD_FINI): Use `cmd' to unregister.
5955
82f3e412 59562009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 5957
5958 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5959 stops.
5960 * kern/corecmd.c (grub_register_core_commands): Likewise.
5961 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5962 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5963 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5964 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5965 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5966 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5967 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5968 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5969 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5970 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5971 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5972 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5973 * normal/handler.c (insert_handler): Likewise.
5974 * normal/main.c (GRUB_MOD_INIT): Likewise.
5975 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5976
fdcdbb66 59772009-12-26 Carles Pina i Estany <carles@pina.cat>
5978
5979 * commands/help.c (grub_cmd_help): Print the command name before the
5980 summary.
5981 (GRUB_MOD_INIT): Remove command name from the summary.
5982 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 5983 string as summary.
fdcdbb66 5984 * lib/arg.c (find_long): Print the command name before the summary.
5985 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5986 summary.
5987 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5988 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5989 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5990 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5991 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5992 * commands/date.c (GRUB_MOD_INIT): Likewise.
5993 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5994 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5995 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5996 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5997 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5998 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5999 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
6000 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
6001 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6002 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
6003 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
6004 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
6005 * commands/ls.c (GRUB_MOD_INIT): Likewise.
6006 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6007 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6008 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6009 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
6010 * commands/password.c (GRUB_MOD_INIT): Likewise.
6011 * commands/probe.c (GRUB_MOD_INIT): Likewise.
6012 * commands/read.c (GRUB_MOD_INIT): Likewise.
6013 * commands/search.c (GRUB_MOD_INIT): Likewise.
6014 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
6015 * commands/test.c (GRUB_MOD_INIT): Likewise.
6016 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
6017 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6018 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6019 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
6020 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6021 * lib/arg.c (GRUB_MOD_INIT): Likewise.
6022 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
6023 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6024 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6025 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6026 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6027 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
6028 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
6029 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
6030
9c288be2
VS
60312009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6032
6033 Use search command for preliminar UUID search.
6034
6035 * commands/search.c: Split into ...
6036 * commands/search_wrap.c: ...this
6037 * commands/search.c: ...and this.
6038 * commands/search_file.c: New file.
6039 * commands/search_label.c: New file.
6040 * commands/search_uuid.c: New file.
6041 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
6042 Add commands/search_wrap.c, commands/search_file.c,
6043 commands/search_label.c and commands/search_uuid.c.
6044 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
6045 (search_mod_SOURCES): Set to commands/search_wrap.c.
6046 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
6047 search_label.mod.
6048 (search_fs_file_mod_SOURCES): New variable.
6049 (search_fs_file_mod_CFLAGS): Likewise.
6050 (search_fs_file_mod_LDFLAGS): Likewise.
6051 (search_label_mod_SOURCES): Likewise.
6052 (search_label_mod_CFLAGS): Likewise.
6053 (search_label_mod_LDFLAGS): Likewise.
6054 (search_fs_uuid_mod_SOURCES): New variable.
6055 (search_fs_uuid_mod_CFLAGS): Likewise.
6056 (search_fs_uuid_mod_LDFLAGS): Likewise.
6057 (fs_file_mod_SOURCES): Removed.
6058 (fs_file_mod_CFLAGS): Likewise.
6059 (fs_file_mod_LDFLAGS): Likewise.
6060 (fs_uuid_mod_SOURCES): Removed.
6061 (fs_uuid_mod_CFLAGS): Likewise.
6062 (fs_uuid_mod_LDFLAGS): Likewise.
6063 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
6064 Set to util/grub-install.in.
6065 * disk/fs_file.c: Removed.
6066 * disk/fs_uuid.c: Likewise.
6067 * include/grub/search.h: New file.
6068 * util/grub-install.in: Handle sparc64.
6069 Create and use load.cfg.
6070 * util/sparc64/ieee1275/grub-install.in: Removed.
6071
db943399
VS
60722009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
6075 Ignore return status if CF is cleared.
6076 (grub_biosdisk_get_diskinfo_standard): Likewise.
6077
3fdae612
RM
60782009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6079
6080 * term/i386/pc/at_keyboard.c
6081 (keyboard_controller_wait_untill_ready): New function.
6082 (grub_keyboard_controller_write, grub_keyboard_controller_read)
6083 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
6084 for keyboard polling, rather than duplicate the same loop. This
6085 saves a few bytes in code size.
6086
7ebaa2b4
VS
60872009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 Support for (pxe[:server[:gateway]]) syntax and
6090 use environment variable for PXE.
6091
6092 * commands/i386/pc/pxecmd.c (options): Removed.
6093 (print_ip): Removed.
6094 (grub_cmd_pxe): Removed
6095 (grub_cmd_pxe_unload): New function.
6096 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
6097 (grub_pxe_your_ip): Made static.
6098 (grub_pxe_default_server_ip): Likewise.
6099 (grub_pxe_default_gateway_ip): Likewise.
6100 (grub_pxe_blksize): Likewise.
6101 (parse_ip): New function.
6102 (grub_pxe_open): Support server and gateway specification.
6103 (grub_pxe_close): Free disk->data.
6104 (grub_pxefs_open): Use disk->data.
6105 (grub_pxefs_read): Likewise.
6106 (grub_env_write_readonly): New function.
6107 (set_mac_env): Likewise.
6108 (set_env_limn_ro): Likewise.
6109 (parse_dhcp_vendor): Likewise.
6110 (grub_pxe_detect): Set the environment variables.
6111 (set_ip_env): New function.
6112 (write_ip_env): Likewise.
6113 (grub_env_write_pxe_default_server): Likewise.
6114 (grub_env_write_pxe_default_gateway): Likewise.
6115 (grub_env_write_pxe_blocksize): Likewise.
6116 (GRUB_MOD_INIT(pxe)): Set environment variables.
6117 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
6118 (grub_pxe_mac_addr_t): ... this. All users updated.
6119 (grub_pxe_your_ip): Removed.
6120 (grub_pxe_server_ip): Likewise.
6121 (grub_pxe_gateway_ip): Likewise.
6122 (grub_pxe_blksize): Likewise.
6123
ec5f98ab 61242009-12-25 Carles Pina i Estany <carles@pina.cat>
6125
6126 * commands/help.c: Include `<grub/i18n.h>'.
6127 (grub_cmd_help): Gettextizze.
6128 (GRUB_MOD_INIT): Likewise.
6129 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
6130 (GRUB_MOD_INIT): Gettextizze.
6131 * commands/search.c: Include `<grub/i18n.h>'.
6132 (options): Gettextizze.
6133 (GRUB_MOD_INIT): Gettextizze.
6134 * lib/arg.c: Include `<grub/i18n.h>'.
6135 (help_options): Gettextizze.
6136 (find_long): Likewise.
6137 (grub_arg_show_help): Likewise.
6138 * normal/dyncmd.c: Include `<grub/i18n.h>'.
6139 (read_command_list): Gettextizze.
6140 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 6141 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 6142
22815526
RM
61432009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6144
6145 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
6146 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
6147 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
6148 (led_status): New variable.
6149 (keyboard_controller_led): New function.
6150 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
6151 update led status for caps lock, num lock and scroll lock.
6152
0ad46fd7
FZ
61532009-12-25 Felix Zielcke <fzielcke@z-51.de>
6154
6155 * util/hostdisk.c (open_device): Fix a comment.
6156
d0e158c2
RM
61572009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6158
6159 * util/grub-install.in (host_os): New variable.
6160 * util/i386/efi/grub-install.in (host_os): Likewise.
6161
401c0ad6
RM
61622009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6163
6164 * util/mkisofs/write.c (padblock_write): Abort when given an
6165 excedingly large embed image, instead of silently truncating it.
6166
d14d3370
RM
61672009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6168
6169 * include/multiboot.h: Indentation fixes.
6170
eeed10b4
RM
61712009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6172
6173 * include/multiboot.h (struct multiboot_aout_symbol_table)
6174 (struct multiboot_elf_section_header_table): New structure
6175 declarations (stolen from GRUB Legacy).
6176 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
6177 table information.
6178
6179 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
6180 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
6181 type aliases.
6182
681c70ab
RM
61832009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6184
6185 * include/multiboot.h: Make comments src2texi-friendly.
6186
e4d47d8d
RM
61872009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6188
6189 For consistency with [multiboot]/docs/boot.S.
6190
6191 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
6192 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
6193 (MULTIBOOT_MAGIC2): Rename from this ...
6194 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
6195
a0b70bda
RM
61962009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6197
6198 * include/multiboot.h: Remove `<grub/types.h>'.
6199 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
6200 types. Update all users.
6201
61ba42be 62022009-12-25 Carles Pina i Estany <carles@pina.cat>
6203
6204 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
6205 `couldn't' and `can not' by `cannot'.
6206 * commands/i386/pc/drivemap.c: Likewise.
6207 * disk/ata.c: Likewise.
6208 * disk/ieee1275/nand.c: Likewise.
6209 * fs/affs.c: Likewise.
6210 * fs/fat.c: Likewise.
6211 * fs/hfs.c: Likewise.
6212 * fs/hfsplus.c: Likewise.
6213 * fs/iso9660.c: Likewise.
6214 * fs/jfs.c: Likewise.
6215 * fs/minix.c: Likewise.
6216 * fs/reiserfs.c: Likewise.
6217 * fs/sfs.c: Likewise.
6218 * fs/udf.c: Likewise.
6219 * fs/ufs.c: Likewise.
6220 * fs/xfs.c: Likewise.
6221 * loader/powerpc/ieee1275/linux.c: Likewise.
6222 * loader/sparc64/ieee1275/linux.c: Likewise.
6223 * util/grub-probe.c: Likewise.
6224 * util/misc.c: Likewise.
6225
7fd0baee 62262009-12-24 Carles Pina i Estany <carles@pina.cat>
6227
6228 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
6229 grub_errno calls.
6230 * commands/acpi.c: Likewise.
6231 * commands/blocklist.c: Likewise.
6232 * commands/efi/loadbios.c: Likewise.
6233 * commands/i386/pc/drivemap.c: Likewise.
6234 * commands/loadenv.c: Likewise.
6235 * commands/memrw.c: Likewise.
6236 * commands/password.c: Likewise.
6237 * commands/videotest.c: Likewise.
6238 * disk/ata.c: Likewise.
6239 * disk/ata_pthru.c: Likewise.
6240 * disk/dmraid_nvidia.c: Likewise.
6241 * disk/ieee1275/nand.c: Likewise.
6242 * disk/ieee1275/ofdisk.c: Likewise.
6243 * disk/loopback.c: Likewise.
6244 * disk/lvm.c: Likewise.
6245 * disk/mdraid_linux.c: Likewise.
6246 * disk/raid.c: Likewise.
6247 * disk/raid6_recover.c: Likewise.
6248 * disk/scsi.c: Likewise.
6249 * efiemu/main.c: Likewise.
6250 * efiemu/mm.c: Likewise.
6251 * efiemu/pnvram.c: Likewise.
6252 * efiemu/symbols.c: Likewise.
6253 * font/font.c: Likewise.
6254 * fs/cpio.c: Likewise.
6255 * fs/hfsplus.c: Likewise.
6256 * fs/iso9660.c: Likewise.
6257 * fs/jfs.c: Likewise.
6258 * fs/minix.c: Likewise.
6259 * fs/ntfs.c: Likewise.
6260 * fs/ntfscomp.c: Likewise.
6261 * fs/reiserfs.c: Likewise.
6262 * fs/ufs.c: Likewise.
6263 * fs/xfs.c: Likewise.
6264 * gettext/gettext.c: Likewise.
6265 * include/grub/auth.h: Likewise.
6266 * kern/elf.c: Likewise.
6267 * kern/file.c: Likewise.
6268 * kern/ieee1275/init.c: Likewise.
6269 * kern/ieee1275/mmap.c: Likewise.
6270 * kern/ieee1275/openfw.c: Likewise.
6271 * kern/powerpc/dl.c: Likewise.
6272 * kern/sparc64/dl.c: Likewise.
6273 * lib/arg.c: Likewise.
6274 * loader/i386/bsd.c: Likewise.
6275 * loader/i386/bsdXX.c: Likewise.
6276 * loader/i386/efi/linux.c: Likewise.
6277 * loader/i386/efi/xnu.c: Likewise.
6278 * loader/i386/ieee1275/linux.c: Likewise.
6279 * loader/i386/linux.c: Likewise.
6280 * loader/i386/multiboot.c: Likewise.
6281 * loader/i386/pc/linux.c: Likewise.
6282 * loader/i386/pc/multiboot2.c: Likewise.
6283 * loader/i386/xnu.c: Likewise.
6284 * loader/ieee1275/multiboot2.c: Likewise.
6285 * loader/macho.c: Likewise.
6286 * loader/machoXX.c: Likewise.
6287 * loader/multiboot2.c: Likewise.
6288 * loader/multiboot_loader.c: Likewise.
6289 * loader/powerpc/ieee1275/linux.c: Likewise.
6290 * loader/sparc64/ieee1275/linux.c: Likewise.
6291 * loader/xnu.c: Likewise.
6292 * loader/xnu_resume.c: Likewise.
6293 * mmap/i386/pc/mmap.c: Likewise.
6294 * normal/menu_viewer.c: Likewise.
6295 * partmap/acorn.c: Likewise.
6296 * partmap/amiga.c: Likewise.
6297 * partmap/apple.c: Likewise.
6298 * script/lexer.c: Likewise.
6299 * term/gfxterm.c: Likewise.
6300 * term/i386/pc/serial.c: Likewise.
6301 * term/i386/pc/vga.c: Likewise.
6302 * term/ieee1275/ofconsole.c: Likewise.
6303 * term/terminfo.c: Likewise.
6304 * video/bitmap.c: Likewise.
6305 * video/efi_gop.c: Likewise.
6306 * video/efi_uga.c: Likewise.
6307 * video/fb/video_fb.c: Likewise.
6308 * video/i386/pc/vbe.c: Likewise.
6309 * video/readers/tga.c: Likewise.
6310 * video/video.c: Likewise.
6311
0ad46fd7 63122009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
6313
6314 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
6315 * commands/lspci.c: Likewise.
6316 * commands/probe.c: Likewise.
6317 * commands/xnu_uuid.c: Likewise.
6318 * conf/i386-coreboot.rmk: Likewise.
6319 * conf/i386-efi.rmk: Likewise.
6320 * conf/i386-ieee1275.rmk: Likewise.
6321 * conf/i386-pc.rmk: Likewise.
6322 * conf/powerpc-ieee1275.rmk: Likewise.
6323 * conf/sparc64-ieee1275.rmk: Likewise.
6324 * conf/x86_64-efi.rmk: Likewise.
6325 * fs/i386/pc/pxe.c: Likewise.
6326 * gettext/gettext.c: Likewise.
6327 * include/grub/efi/graphics_output.h: Likewise.
6328 * include/grub/i386/pc/memory.h: Likewise.
6329 * kern/env.c: Likewise.
6330 * kern/i386/qemu/startup.S: Likewise.
6331 * lib/i386/pc/biosnum.c: Likewise.
6332 * lib/i386/relocator.c: Likewise.
6333 * lib/i386/relocator_asm.S: Likewise.
6334 * lib/relocator.c: Likewise.
6335 * loader/i386/bsd.c: Likewise.
6336 * loader/i386/multiboot.c: Likewise.
6337 * loader/i386/pc/chainloader.c: Likewise.
6338 * loader/i386/xnu.c: Likewise.
6339 * loader/xnu.c: Likewise.
6340 * normal/main.c: Likewise.
6341 * normal/menu_text.c: Likewise.
6342 * util/getroot.c: Likewise.
6343 * util/grub-mkconfig_lib.in: Likewise.
6344 * util/grub.d/00_header.in: Likewise.
6345 * util/i386/pc/grub-mkimage.c: Likewise.
6346 * util/mkisofs/eltorito.c: Likewise.
6347 * util/mkisofs/exclude.h: Likewise.
6348 * util/mkisofs/hash.c: Likewise.
6349 * util/mkisofs/iso9660.h: Likewise.
6350 * util/mkisofs/joliet.c: Likewise.
6351 * util/mkisofs/mkisofs.c: Likewise.
6352 * util/mkisofs/mkisofs.h: Likewise.
6353 * util/mkisofs/multi.c: Likewise.
6354 * util/mkisofs/name.c: Likewise.
6355 * util/mkisofs/rock.c: Likewise.
6356 * util/mkisofs/tree.c: Likewise.
6357 * util/mkisofs/write.c: Likewise.
6358 * video/efi_gop.c: Likewise.
6359
009ec743
VS
63602009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
6363 size counting.
6364
0ad46fd7 63652009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
6366
6367 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
6368 * genmk.rb (class SCRIPT): Modify the target file instead of source.
6369
d3d30ea0
VS
63702009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
6373 (GRUB_MOD_INIT(memrw)): Update help line.
6374
a34f5c70
VS
63752009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6378 Use grub_extcmd_t. All users updated.
6379 (options): New variable.
6380 (grub_cmd_read): Restructure for readability. Support "-v" option.
6381 (grub_cmd_write): Restructure for readability.
6382
0ad46fd7 63832009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
6384
6385 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6386
0ad46fd7 63872009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
6388
6389 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6390 with the actual contents of the correspondending make variable.
6391 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6392 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6393 specifying `*.lst' and `efiemu??.o'
6394
0ad46fd7 63952009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
6396
6397 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6398 after function name.
6399 Noticed by Rene Engelhard <rene@debian.org>.
6400
dc77a799
VS
64012009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6402
6403 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6404 (options): New variable.
6405 (iospace): Likewise.
6406 (grub_lspci_iter): List IO spaces if "-i" was given.
6407 (grub_cmd_lspci): Parse options.
6408 (GRUB_MOD_INIT(lspci)): Use extcmd.
6409 (GRUB_MOD_FINI(lspci)): Likewise.
6410
0ad46fd7 64112009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
6412
6413 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6414 `function' keyword.
6415 Patch by Tony Mancill <tmancill@debian.org>.
6416
b5d5993b
VS
64172009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6420 (grub_uhci_portstatus): Likewise.
6421 (grub_uhci_portstatus): Add necessary delay.
11d18281 6422 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 6423
941903f2 64242009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 6425
941903f2 6426 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6427 (GRUB_MOD_INIT): Likewise.
6428 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 6429 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6430 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 6431 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6432 (enable_rom_area): Likewise.
6433 (GRUB_MOD_INIT): Likewise.
6434 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6435 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6436 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6437 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6438 * commands/hexdump.c (options): Likewise.
6439 * commands/i386/cpuid.c (options): Likewise.
6440 (GRUB_MOD_INIT): Likewise.
6441 * commands/i386/pc/drivemap.c (options): Likewise.
6442 (GRUB_MOD_INIT): Likewise.
6443 * commands/i386/pc/halt (options): Likewise.
6444 (GRUB_MOD_INIT): Likewise.
6445 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6446 * commands/i386/pc/pxecmd.c (options): Likewise.
6447 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6448 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6449 * commands/keystatus.c (options): Likewise.
6450 (GRUB_MOD_INIT): Likewise.
6451 * commands/loadenv.c (options): Likewise.
6452 * commands/ls.c (options): Likewise.
6453 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6454 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6455 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6456 * commands/parttool.c (helpmsg): Likewise.
6457 * commands/probe.c (options): Likewise.
6458 * commands/read.c (GRUB_MOD_INIT): Likewise.
6459 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6460 * commands/search.c (options): Likewise.
6461 * commands/sleep.c (options): Likewise.
6462 * commands/test.c (GRUB_MOD_INIT): Likewise.
6463 * commands/true.c (GRUB_MOD_INIT): Likewise.
6464 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6465 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6466 * lib/arg.c (help_options): Likewise.
e9bbb4e7 6467 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6468 `$(XGETTEXT)'.
98a50553 6469 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 6470
0ad46fd7 64712009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 6472
ef3c2c3a 6473 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
6474 instead of specifying them explicit.
6475
7922f68b
RM
64762009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6477
6478 * NEWS: Add grub-probe support for GNU/Hurd.
6479
537ce47f
RM
64802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6481
6482 * NEWS: gettext was added after 1.97.
6483
9b214e3a
RM
64842009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6485
6486 * util/mkisofs/msdos_partition.h: New file (based on
6487 include/grub/msdos_partition.h).
6488 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6489 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6490 (ld_options, main): Recognize --protective-msdos-label.
6491 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6492 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6493 (padblock_write): If `use_protective_msdos_label' is set, patch a
6494 protective DOS-style label in the output image.
6495
6496 * util/grub-mkrescue.in: Use --protective-msdos-label.
6497
e9309813
RM
64982009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6499
6500 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6501 boot.
6502
0ae56929
RM
65032009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6504
6505 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6506 variables.
6507 (ld_options, main): Recognize `--embedded-boot'.
6508 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6509 declarations.
6510 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6511 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6512 (padblock_write): Likewise. Rewrite to support embedded boot image.
6513
6514 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6515 for BIOS-based disk boot instead of only ElTorito.
6516
b15937b1
RM
65172009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6518
6519 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6520 build (not needed for bootstrap).
6521
52cc3ce0
RM
65222009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6523
6524 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6525 from i386-pc build (not needed for bootstrap).
6526 Rewrite a pair of strings.
6527
36f5ff04
RM
65282009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6529
6530 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6531
973c6c85 65322009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
6533
6534 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6535
05d21547
AB
65362009-12-21 Andreas Born <futur.andy@googlemail.com>
6537
6538 * kern/env.c (grub_env_context_open): Mark exported variable for
6539 reexport.
6540
0175d51f
AB
65412009-12-21 Andreas Born <futur.andy@googlemail.com>
6542
6543 * kern/env.c (grub_env_export): Create nonexistent variables before
6544 exporting.
6545
7f39d92f 65462009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 6547
7f39d92f 6548 * include/grub/auth.h: Include `<grub/i18n.h>'.
6549 (GRUB_GET_PASSWORD): Gettextizze string.
6550 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6551 menu_text.c.
6552 (grub_utf8_to_ucs4_alloc): Fix indentation.
6553 (grub_print_ucs4): Likewise.
6554 (grub_getstringwidth): Likewise.
6555 (print_message_indented): New declaration.
6556 * normal/auth.c: Include `<grub/i18n.h>'.
6557 (grub_auth_check_authentication): Gettexttize string.
6558 * normal/cmdline.c: Include `<grub/i18n.h>'.
6559 (grub_cmdline_get): Gettextizze.
6560 * normal/color.c: Include `<grub/i18n.h>'.
6561 (grub_parse_color_name_pair): Gettexttize strings.
6562 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6563 string (use `print_message_indented').
6564 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6565 `include/grub/normal.h'.
6566 (print_message_indented): Renamed to ...
6567 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6568 used in normal/main.c).
6569 (print_message): Use `grub_print_message_indented' instead of
6570 `print_message_indented'.
6571 (print_timeout): Likewise.
6572 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6573 (grub_normal_print_device_info): Gettexttize strings.
6574 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6575
3041d898
VS
65762009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6579 of arguments. Return number of tokens and not arguments. All users
6580 updated.
6581
de15bf8e
VS
65822009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6585 non-MSDOS paritions.
6586
e0a6ca52
VS
65872009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6588
6589 * include/grub/types.h (UNUSED): Removed since it conflicts with
6590 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6591 Reported by Grégoire Sutre.
6592
b99518d1 65932009-12-19 Carles Pina i Estany <carles@pina.cat>
6594
6595 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6596 (grub_print_ucs4_alloc): Likewise.
6597 (grub_getstringwidth): Likewise.
6598 * normal/main.c (grub_normal_init_page): Gettextize version string.
6599 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6600 (getstringwidth): Renamed to ...
6601 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6602 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6603 (grub_print_ucs4): Remove `static' qualifer (now used in
6604 normal/main.c).
6605 * po/POTFILES: Add normal/main.c.
6606
bfd5e52b 66072009-12-19 Carles Pina i Estany <carles@pina.cat>
6608
6609 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6610 (print_message_indented): Add `margin_left' and `margin_right'
6611 parameters.
6612 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6613 strings.
6614 (print_timeout): Use `print_message_indented' to print the message.
6615 Deletes `second_stage' parameter.
6616 (run_menu): Update `print_timeout' calls.
6617
5a1ad2b9
VS
66182009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 Fix console palette on OpenFirmware.
6621
6622 * term/ieee1275/ofconsole.c (MAX): Removed.
6623 (colors): Redone based on VGA palette.
6624 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6625 colors are supported.
6626 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6627
b045f00a
VS
66282009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 Fix potential EfiEmu double prepare.
6631
6632 * efiemu/main.c (prepared): New variable
6633 (grub_efiemu_unload): Set prepare to '0'.
6634 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6635
6636 set_virtual_address_map support.
6637
6638 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6639 prototype.
6640 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6641 prototype.
6642 (grub_efiemu_crc32): Likewise.
6643 (grub_efiemu_crc64): Likewise.
6644 (grub_efiemu_set_virtual_address_map): Likewise.
6645 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6646 New definition.
6647 (grub_autoefi_set_virtual_address_map): Likewise.
6648 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6649 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6650 Restructure flow to accomodate it.
6651 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6652 (grub_efiemu_crc): Recompute CRC32.
6653 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6654 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6655 * efiemu/symbols.c (relocated_handle): New variable.
6656 (grub_efiemu_free_syms): Free relocated_handle.
6657 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6658 (grub_efiemu_write_sym_markers): New function.
6659 (grub_efiemu_set_virtual_address_map): Likewise.
6660
6661 Newer XNU parameters.
6662
6663 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6664 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6665 (grub_xnu_fill_devicetree): New prototype.
6666 (grub_xnu_heap_real_start): New variable.
6667 * loader/xnu.c (get_name_ptr): New function.
6668 (grub_xnu_load_driver): Fill namelen and name.
6669
6670 64-bit xnu support.
6671
6672 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6673 and 'loader/macho64.c'.
6674 * conf/i386-pc.rmk: Likewise.
6675 * conf/x86_64-efi.rmk: Likewise.
6676 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6677 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6678 * include/grub/macho.h (grub_macho_segment64): New structure.
6679 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6680 (grub_macho_size32): ... to this.
6681 (grub_macho32_get_entry_point): Renamed from ...
6682 (grub_macho_get_entry_point32): ... to this.
6683 (grub_macho_contains_macho64): New prototype.
6684 (grub_macho_size64): Likewise.
6685 (grub_macho_get_entry_point64): Likewise.
6686 (grub_macho32_load): Renamed from ...
6687 (grub_macho_load32): ... to this.
6688 (grub_macho32_filesize): Renamed from ...
6689 (grub_macho_filesize32): ... to this.
6690 (grub_macho32_readfile): Renamed from ...
6691 (grub_macho_readfile32): ... to this.
6692 (grub_macho_filesize64): New prototype.
6693 (grub_macho_readfile64): Likewise.
6694 (grub_macho_parse32): Likewise.
6695 (grub_macho_parse64): Likewise.
6696 * loader/macho.c: Split into ...
6697 * loader/machoXX.c: ... and this. Replace 32 with XX.
6698 * loader/macho32.c: New file.
6699 * loader/macho64.c: Likewise.
6700 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6701 (grub_cmd_xnu_kernel): Make 32-bit only.
6702 (grub_cmd_xnu_kernel64): New function.
6703 (grub_xnu_load_driver): Support Mach-O 64.
6704 (grub_cmd_xnu_mkext): Likewise.
6705 * util/grub.d/30_os-prober.in (osx_entry): New function.
6706 Generate entries for 64-bit boot too.
6707
6708 Eliminate ad-hoc tree format in XNU and EfiEmu.
6709
6710 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6711 * efiemu/pnvram.c: Rewritten to use environment variables.
6712 All users updated.
6713
6714 Inline utf16_to_utf8.
6715
6716 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6717 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6718 All users updated.
6719 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6720
6721 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6722 * commands/usbtest.c (grub_usb_get_string): ... move here.
6723 (usb_print_str): Fix error handling.
6724 * include/grub/usb.h (grub_usb_get_string): Remove.
6725
6726 UTF-8 to UTF-16 transformation.
6727
6728 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6729 (charset_mod_SOURCES): New variable.
6730 (charset_mod_CFLAGS): Likewise.
6731 (charset_mod_LDFLAGS): Likewise.
6732 * include/grub/utf.h: New file.
6733 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6734
6735 Support for device properties.
6736
6737 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6738 (grub_xnu_devprop_device_header): Likewise.
6739 (grub_xnu_devprop_device_descriptor): Likewise.
6740 (grub_xnu_devprop_add_device): New prototype.
6741 (grub_xnu_devprop_remove_device): Likewise.
6742 (grub_xnu_devprop_remove_property): Likewise.
6743 (grub_xnu_devprop_add_property_utf8): Likewise.
6744 (grub_xnu_devprop_add_property_utf16): Likewise.
6745 (grub_cpu_xnu_init): Likewise.
6746 (grub_cpu_xnu_fini): Likewise.
6747 (grub_cpu_xnu_unload): Likewise.
6748 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6749 (property_descriptor): Likewise.
6750 (devices): New variable.
6751 (grub_xnu_devprop_remove_property): New function.
6752 (grub_xnu_devprop_add_device): Likewise.
6753 (grub_xnu_devprop_remove_device): Likewise.
6754 (grub_xnu_devprop_add_property): Likewise.
6755 (grub_xnu_devprop_add_property_utf8): Likewise.
6756 (grub_xnu_devprop_add_property_utf16): Likewise.
6757 (hextoval): Likewise.
6758 (grub_cpu_xnu_fill_devprop): Likewise.
6759 (grub_cmd_devprop_load): Likewise.
6760 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6761 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6762 (cmd_devprop_load): New variable.
6763 (grub_cpu_xnu_init): New function.
6764 (grub_cpu_xnu_fini): Likewise.
6765 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6766 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6767 (grub_cmd_xnu_devtree): Likewise.
6768 (hextoval): New function.
6769 (unescape): Likewise.
6770 (grub_xnu_fill_devicetree): Likewise.
6771
6772 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6773 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6774
0945f181
VS
67752009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 Workaround for broken ATI VBE.
6778
6779 * video/i386/pc/vbe.c (last_set_mode): New variable.
6780 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6781 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6782 (grub_video_vbe_setup): Don't check for reserved flag.
6783
0ad46fd7 67842009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
6785
6786 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6787 the `find' command.
6788
c179ebe4
VS
67892009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 UUID support for HFS.
6792
6793 * fs/hfs.c (grub_hfs_uuid): New function.
6794 (grub_hfs_fs): New value .uuid.
6795 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6796
0ad46fd7 67972009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
6798
6799 Fix a segfault with parsing unknown long options.
6800
6801 * util/grub-mkrelpath.c (options): Zero terminate it.
6802
c4a3e41a
CPE
68032009-12-13 Carles Pina i Estany <carles@pina.cat>
6804
6805 * include/grub/misc.h (grub_puts): New declaration.
6806 (grub_puts_): Likewise.
a22008a6 6807 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
6808 (grub_puts_): Likewise.
6809
2e8a7602
RM
68102009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6811
6812 * util/grub-probe.c (probe): Improve error message.
6813
b50b77b9
RM
68142009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6815
6816 * loader/i386/multiboot_elfxx.c
6817 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6818 initialization.
6819
68202009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 Relocator framework
6823
6824 * loader/i386/xnu_helper.S: Removed. All users updated.
6825 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6826 (relocator_mod_SOURCES): New variable.
6827 (relocator_mod_CFLAGS): Likewise.
6828 (relocator_mod_LDFLAGS): Likewise.
6829 (relocator_mod_ASFLAGS): Likewise.
6830 * conf/x86_64.rmk: Likewise.
6831 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6832 (grub_multiboot_payload_entry_offset): Likewise.
6833 (grub_multiboot_forward_relocator): Likewise.
6834 (grub_multiboot_forward_relocator_end): Likewise.
6835 (grub_multiboot_backward_relocator): Likewise.
6836 (grub_multiboot_backward_relocator_end): Likewise.
6837 (grub_multiboot_payload_eip): New variable.
6838 (grub_multiboot_payload_orig): Likewise.
6839 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6840 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6841 * include/grub/i386/memory.h
6842 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6843 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6844 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6845 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6846 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6847 * include/grub/i386/relocator.h: New file.
6848 * include/grub/x86_64/relocator.h: Likewise.
6849 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6850 (XNU_RELOCATOR): New macro.
6851 (grub_xnu_launcher_start): Remove.
6852 (grub_xnu_launcher_end): Likewise.
6853 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6854 (grub_xnu_heap_real_start): Remove.
6855 (grub_xnu_heap_start): Change to void *. All users updated.
6856 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6857 * lib/i386/relocator.c: New file.
6858 * lib/i386/relocator_asm.S: Likewise.
6859 * lib/i386/relocator_backward.S: Likewise.
6860 * lib/mips/relocator.c: Likewise.
6861 * lib/mips/relocator_asm.S: Likewise.
6862 * lib/relocator.c: Likewise.
6863 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6864 (entry): Removed.
6865 (playground): Likewise.
6866 (grub_multiboot_payload_orig): New variable.
6867 (grub_multiboot_payload_dest): Likewise.
6868 (grub_multiboot_payload_size): Likewise.
6869 (grub_multiboot_payload_eip): Likewise.
6870 (grub_multiboot_payload_esp): Likewise.
6871 (grub_multiboot_boot): Use grub_relocator32_boot.
6872 (grub_multiboot_unload): Free relocators.
6873 (grub_multiboot): Setup stack. Use relocators.
6874 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6875 (grub_multiboot_load_elfXX): Use relocators.
6876 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6877 (grub_multiboot_payload_size): Likewise.
6878 (grub_multiboot_payload_dest): Likewise.
6879 (grub_multiboot_payload_entry_offset): Likewise.
6880 (grub_multiboot_forward_relocator): Likewise.
6881 (grub_multiboot_backward_relocator): Likewise.
6882 (grub_multiboot_real_boot): Likewise.
6883 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6884 (grub_xnu_entry_point): Likewise.
6885 (grub_xnu_arg1): Likewise.
6886 (grub_xnu_stack): Likewise.
6887 (grub_xnu_launch): Removed.
6888 (grub_xnu_boot_resume): New function.
6889 (grub_xnu_boot): Use relocators.
6890 * loader/i386/xnu_helper.S: Removed.
6891 * loader/xnu.c (grub_xnu_heap_start): New variable.
6892 (grub_xnu_heap_size): Likewise.
6893 (grub_xnu_heap_malloc): Use relocators.
6894 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6895
29eb90c6
VS
68962009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6899 anything.
6900
31027430
CPE
69012009-12-13 Carles Pina i Estany <carles@pina.cat>
6902
6903 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6904 GRUB_ERR_NONE before calling grub_env_set.
6905
dc0c71d9
RM
69062009-12-12 Robert Millan <rmh@aybabtu.com>
6907
6908 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6909 * genmk.rb (video): New variable.
6910 (CLEANFILES, VIDEOFILES): Add #{video}.
6911 (#{video}): New target rule.
6912 * genvideolist.sh: New file.
6913 * Makefile.in (pkglib_DATA): Add video.lst.
6914 (video.lst): New target rule.
6915 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6916 `video.lst'.
6917 * util/grub.d/30_os-prober.in: Replace `vbe' with
6918 ${GRUB_VIDEO_BACKEND}.
6919
2a4bfcf0
RM
69202009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6921
6922 * THANKS: Add David Miller.
6923
2a3aa4d5
RM
69242009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 libpciaccess support.
6927
6928 * Makefile.in (LIBPCIACCESS): New variable.
6929 (enable_grub_emu_pci): Likewise.
6930 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6931 util/pci.c and commands/lspci.c.
6932 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6933 * configure.ac (grub-emu-pci): New option.
6934 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6935 (grub_pci_device_unmap_range): Likewise.
6936 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6937 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6938 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6939 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6940 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6941 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6942 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6943 * include/grub/pciutils.h: New file.
6944 * util/pci.c: Likewise.
6945
0ad46fd7 69462009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
6947
6948 * util/misc.c: Don't include <errno.h> twice.
6949
0ad46fd7 69502009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
6951
6952 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6953 name in an error message.
6954 (grub_biosdisk_rw): Likewise.
6955
2e59983c
VS
69562009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 Eliminate NTFS 4Gib barrier.
6959
6960 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6961 (read_run_data): Likewise.
6962 (grub_ntfs_read_run_list): Likewise.
6963 (grub_ntfs_read_block): Likewise.
6964 (grub_ntfs_iterate_dir): Likewise.
6965 (read_mft): Likewise.
6966 (read_data): Likewise.
6967 Use COM_LOG_LEN.
6968 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6969 to avoid 64-bit division
6970 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6971 (grub_ntfs_rlst): Use grub_disk_addr_t.
6972
71ee178a
VS
69732009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 Eliminate grub-fstest 4Gib barrier.
6976
6977 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6978 (read_file): Fix error reporting.
6979
2520d4b8
VS
69802009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 Eliminate hexdump 4Gib barrier.
6983
6984 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6985 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6986
e1f27065
VS
69872009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6988
6989 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6990 Fixes amarsh bug.
6991
1a0f7f45
RM
69922009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6993
6994 Remove miscellaneous files in distclean target.
6995
6996 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6997
c631d9fb
CW
69982009-12-09 Colin Watson <cjwatson@ubuntu.com>
6999
7000 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
7001 if they're already set. This resolves the conflict between my
7002 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
7003 fixing the --grub-probe option again.
7004 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
7005 change on 2009-10-06, so that we now once again source
7006 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7007
7c7b6106
RM
70082009-12-08 Robert Millan <rmh.grub@aybabtu.com>
7009
7010 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
7011 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
7012 `util/devicemap.c'.
7013
e3069ec1
CPE
70142009-12-08 Carles Pina i Estany <carles@pina.cat>
7015
7016 * include/grub/misc.h (grub_printf_): New declaration.
7017 * kern/misc.c (grub_printf_): New definition.
7018 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
7019 instead of `grub_printf' and `_'.
7020 * normal/menu_entry.c (store_completion): Likewise.
7021 (run): Likewise.
7022 (grub_menu_entry_run): Likewise.
7023 * normal/menu_text.c (grub_wait_after_message): Likewise.
7024 (notify_booting): Likewise.
7025 (notify_fallback): Likewise.
7026 (notify_execution_failure): Likewise.
7027
d6ceebf1
CW
70282009-12-07 Colin Watson <cjwatson@ubuntu.com>
7029
7030 * configure.ac: Check for vasprintf.
7031 * util/misc.c (asprintf): Move allocation from here ...
7032 (vasprintf): ... to here. New function.
7033 (xasprintf): New function.
7034 * include/grub/util/misc.h (vasprintf, xasprintf): Add
7035 prototypes.
7036 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7037 * util/grub-mkfont.c (write_font): Likewise.
7038 * util/grub-probe.c (probe): Likewise.
7039 * util/hostdisk.c (make_device_name): Likewise.
7040
de6daa8b
DM
70412009-12-06 David S. Miller <davem@sunset.davemloft.net>
7042
7043 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
7044 anything even prefixed with 'cdrom' as a cdrom.
7045
0ad46fd7 70462009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
7047
7048 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
7049 mount points.
7050
98d3dc02
CPE
70512009-12-05 Carles Pina i Estany <carles@pina.cat>
7052
7053 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
7054 grub_gettext_msg_list.
7055 (grub_gettext_gettranslation_from_position): Return const char *
7056 and not char *.
a2c1332b 7057 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
7058 returns from the list if existing there.
7059 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
7060 (grub_gettext_delete_list): Delete the list.
7061 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
7062 lang environment variable is changed.
7063 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
7064
b283f108
VS
70652009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 Rename kernel.mod to kernel.img.
7068
7069 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
7070 (kernel_mod_EXPORTS): Rename to ...
7071 (kernel_img_EXPORTS): ... this.
7072 (kernel_mod_SOURCES): Rename to ...
7073 (kernel_img_SOURCES): ... this.
7074 (kernel_mod_HEADERS): Rename to ...
7075 (kernel_img_HEADERS): ... this. All users updated.
7076 (kernel_mod_CFLAGS): Rename to ...
7077 (kernel_img_CFLAGS): ... this.
7078 (kernel_mod_ASFLAGS): Rename to ...
7079 (kernel_img_ASFLAGS): ... this.
7080 (kernel_mod_LDFLAGS): Rename to ...
7081 (kernel_img_LDFLAGS): ... this.
7082 * conf/x86_64-efi.rmk: Likewise.
7083 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
7084 (read_kernel_image): ... this. All users updated.
7085 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
7086
69055f8a
CPE
70872009-12-05 Carles Pina i Estany <carles@pina.cat>
7088
7089 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
7090 (print_spaces): New function.
7091 (grub_print_ucs4): New function.
7092 (getstringwidth): New function.
7093 (print_message_indented): New function.
7094 (print_message): Gettexttize strings using print_message_indented.
7095 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
7096 width.
7097 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 7098 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
7099 Gettextize.
7100 * normal/menu_entry.c (store_completion): Cleanup the gettextized
7101 string.
7102 (run): Likewise.
7103 (grub_menu_entry_run): Likewise.
7104 * PO/POTFILES: Add normal/menu_entry.c.
7105
f616f51c
VS
71062009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
7109
57bbe3be
CPE
71102009-12-05 Carles Pina i Estany <carles@pina.cat>
7111
7112 * util/grub-install.in: Install gettext .mo files.
7113 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
7114
013d67a1
CPE
71152009-12-05 Carles Pina i Estany <carles@pina.cat>
7116
7117 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
7118 grub_dprintf.
7119
fb954db0
RM
71202009-12-05 Robert Millan <rmh.grub@aybabtu.com>
7121
7122 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
7123 non-firmware-dependant one in realmode.S takes precedence.
7124
6b8474f8
RM
71252009-12-04 Robert Millan <rmh.grub@aybabtu.com>
7126
7127 * commands/halt.c: Replace misc arch-specific headers with
7128 `<grub/misc.h>'.
7129 * commands/reboot.c: Likewise.
7130 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
7131 `<grub/misc.h>'.
7132 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
7133 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
7134 (kernel_img_SOURCES): ... to here.
7135
7136 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
7137 * include/grub/i386/pc/init.h: Likewise.
7138 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7139 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7140
7141 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
7142
7143 * include/grub/i386/halt.h: Remove.
7144 * include/grub/i386/reboot.h: Likewise.
7145
7146 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
7147
4b2e6ca2
DM
71482009-12-03 David S. Miller <davem@sunset.davemloft.net>
7149
7150 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
7151 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
7152 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
7153 "progname.h"
7154 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7155 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7156 (usage): Add missing comma in printf.
7157
5239348f
RM
71582009-12-02 Robert Millan <rmh.grub@aybabtu.com>
7159
7160 Use the same reboot approach on i386 coreboot and qemu as we do on
7161 BIOS.
7162
7163 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
7164 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
7165 * kern/i386/reboot.c: Remove.
7166 * include/grub/i386/reboot.h (grub_reboot): Export function.
7167 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
7168 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
7169 0xf000:0xfff0 instead of 0xffff:0x0000.
7170 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
7171 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
7172
ef34cbd4
RM
71732009-11-30 Robert Millan <rmh.grub@aybabtu.com>
7174
7175 Fix $srcdir != $objdir build.
7176
7177 * Makefile.in (po/%.po): Rewrite as ...
7178 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
7179
dc9837ea
ST
71802009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
7181
7182 Fix GNU/Hurd grub-install crash.
7183 * util/grub-probe.c (probe): Try to access `path' only when it is not
7184 NULL.
7185
2f857f98
VS
71862009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 Correct module naming.
7189
7190 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7191 (GRUB_MOD_INIT(efi_uga)): ... to this
7192 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7193 (GRUB_MOD_FINI(efi_uga)): ... to this
7194 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7195 (GRUB_MOD_INIT(efi_gop)): ... to this
7196 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7197 (GRUB_MOD_FINI(efi_gop)): ... to this
7198
c5448046
RM
71992009-11-28 Robert Millan <rmh.grub@aybabtu.com>
7200
7201 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
7202 translatable.
7203 (usage): Translate `arg' strings using gettext().
7204 Thanks to Jordi Mallach for the suggestion.
7205
c85184ad
VS
72062009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7207
7208 GOP support. Based on patch from Bean
7209 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7210
7211 * video/efi_gop.c: New file.
7212 * include/grub/efi/graphics_output.h: Likewise.
7213 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
7214 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7215 variables.
7216 * conf/x86_64-efi.rmk: Likewise.
7217
8a4c48d8
VS
72182009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 Rename efi_fb to efi_uga.
7221
7222 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7223 'efi_uga.mod'.
7224 (efi_fb_mod_SOURCES): Rename this ...
7225 (efi_uga_mod_SOURCES): ... to this.
7226 (efi_fb_mod_CFLAGS): Rename this ...
7227 (efi_uga_mod_CFLAGS): ... to this.
7228 (efi_fb_mod_LDFLAGS): Rename this ...
7229 (efi_uga_mod_LDFLAGS): ... to this.
7230 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7231 'efi_uga.mod'.
7232 (efi_fb_mod_SOURCES): Rename this ...
7233 (efi_uga_mod_SOURCES): ... to this.
7234 (efi_fb_mod_CFLAGS): Rename this ...
7235 (efi_uga_mod_CFLAGS): ... to this.
7236 (efi_fb_mod_LDFLAGS): Rename this ...
7237 (efi_uga_mod_LDFLAGS): ... to this.
7238 * video/efi_fb.c: Move this ...
7239 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
7240
fb6c1a7b
RM
72412009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7242
7243 * po/README: New file. Explain our PO file workflow.
7244
3bc7896c
RM
72452009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7246
7247 * po/ChangeLog: Remove. Move relevant entries back to ...
7248 * ChangeLog: ... here.
7249 * po/ca.po: Remove (now handled by TLP).
7250 * po/id.po: Likewise.
7251 * po/zh_CN.po: Likewise.
7252 * Makefile.in (LINGUAS): Initialize in a way that supports
7253 empty set.
7254
9ed4841d
RM
72552009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7256
7257 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
7258 reliing on po/LINGUAS.
7259 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
7260 (po/%.po): ... this.
7261
0ad46fd7 72622009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
7263
7264 * util/i386/efi/grub-mkimage.c: Include "progname.h".
7265 (main): Use `program_name' instead of nonexistent `progname'.
7266
e30dd392
FZ
72672009-11-26 Felix Zielcke <fzielcke@z-51.de>
7268
7269 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7270 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
7271
7656de4f
RM
72722009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7273
7274 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
7275 commit.
7276 * conf/i386-efi.rmk: Likewise.
7277 * conf/i386-ieee1275.rmk: Likewise.
7278 * conf/powerpc-ieee1275.rmk: Likewise.
7279 * conf/sparc64-ieee1275.rmk: Likewise.
7280 * conf/x86_64-efi.rmk: Likewise.
7281
db77c4d4
FZ
72822009-11-26 Felix Zielcke <fzielcke@z-51.de>
7283
7284 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
7285
a755bb04
FZ
72862009-11-26 Felix Zielcke <fzielcke@z-51.de>
7287
7288 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
7289
8a4c07fd
RM
72902009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7291
7292 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
7293 (grub_mkdevicemap_SOURCES): New variable.
7294 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
7295 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
7296 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
7297 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
7298 (grub_mkdevicemap_SOURCES): Remove.
7299 * conf/i386-efi.rmk: Likewise.
7300 * conf/i386-ieee1275.rmk: Likewise.
7301 * conf/i386-pc.rmk: Likewise.
7302 * conf/powerpc-ieee1275.rmk: Likewise.
7303 * conf/sparc64-ieee1275.rmk: Likewise.
7304 * conf/x86_64-efi.rmk: Likewise.
7305 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
7306 (usage): Fix strings to use `program_name'.
7307 (main): Initialize gettext.
7308 * util/grub-editenv.c: Likewise.
7309 * util/grub-emu.c: Likewise.
7310 * util/grub-fstest.c: Likewise.
7311 * util/grub-mkdevicemap.c: Likewise.
7312 * util/grub-mkfont.c: Likewise.
7313 * util/grub-mkrelpath.c: Likewise.
7314 * util/grub-pe2elf.c: Likewise.
7315 * util/grub-probe.c: Likewise.
7316 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7317 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7318 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7319
7320 * util/misc.c: Include `"progname.h"'.
7321 (progname): Remove variable.
7322 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
7323
6f61ed55
FZ
73242009-11-25 Felix Zielcke <fzielcke@z-51.de>
7325
7326 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
7327 printf and print a newline after the menuentry header line.
7328 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7329
f022876b
FZ
73302009-11-25 Felix Zielcke <fzielcke@z-51.de>
7331
7332 autoconf >= 2.60 support $(localedir).
7333
7334 * INSTALL: Note that autoconf 2.60 is required.
7335 * configure.ac (AC_PREREQ): Bump to 2.60.
7336 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
7337 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7338
6717926e
YB
73392009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
7340
7341 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
7342 aclocal is run.
7343
08806a54
RM
73442009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7345
7346 * normal/main.c (grub_normal_read_line): Fix off-by-one
7347 buffer overflow.
7348
13b33fba
RM
73492009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7350
7351 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
7352 "parser.grub" in grub_command_execute() call.
7353
4a8572e9
CPE
73542009-11-24 Carles Pina i Estany <carles@pina.cat>
7355
7356 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
7357 * conf/i386-efi.rmk: Likewise.
7358 * conf/i386-ieee1275.rmk: Likewise.
7359 * conf/i386-pc.rmk: Likewise.
7360 * conf/powerpc-ieee1275.rmk: Likewise.
7361 * conf/sparc64-ieee1275.rmk: Likewise.
7362 * conf/x86_64-efi.rmk: Likewise.
7363 * gettext/gettex.c: Include <grub/i18n.h>.
7364 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
7365 here ...
7366 * include/grub/i18n.h: ... to here
7367 * include/grub/i18n.h: ... to here.
7368 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 7369 (grub_gettext_dummy): Move above user.
4a8572e9 7370
bee48093
FZ
73712009-11-24 Felix Zielcke <fzielcke@z-51.de>
7372
7373 * util/Makefile.in (install-local): Convert a `for' into a normal
7374 shell expansion.
7375
a031e91c
RM
73762009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7377
7378 * autogen.sh: Add automake call.
7379 * config.guess: Remove.
7380 * config.sub: Likewise.
7381 * install-sh: Likewise.
7382
26bec39d
FZ
73832009-11-24 Felix Zielcke <fzielcke@z-51.de>
7384
7385 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7386
8e2532fd
FZ
73872009-11-24 Felix Zielcke <fzielcke@z-51.de>
7388
7389 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7390 function to a normal shell `for'.
7391
fefa1b7d
FZ
73922009-11-24 Felix Zielcke <fzielcke@z-51.de>
7393
7394 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7395
4501250b
FZ
73962009-11-24 Felix Zielcke <fzielcke@z-51.de>
7397
7398 * util/grub-mkrelpath.c: New file.
7399 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7400 (grub_mkrelpath_SOURCES): New variable.
7401 * include/grub/util/misc.h: New function prototype.
7402 * util/misc.c (make_system_path_relative_to_its_root): New function.
7403
7404 * util/grub-mkconfig_lib.in (bindir): New variable.
7405 (grub_mkrelpath): Likewise.
7406 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7407
7408 * util/probe.c (probe): Make the file path relative to its root.
7409 Change a info message to use the GRUB path. Enable again the
7410 check if we can read the file with GRUB facilities.
7411
7412 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7413 to its root.
7414
11d9778b
FZ
74152009-11-24 Felix Zielcke <fzielcke@z-51.de>
7416
7417 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7418 platform.
7419
4465287d
FZ
74202009-11-24 Felix Zielcke <fzielcke@z-51.de>
7421
7422 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7423 strncmp().
7424
62b47f22
FZ
74252009-11-24 Felix Zielcke <fzielcke@z-51.de>
7426
7427 * util/getroot.c (grub_util_is_dmraid): New function.
7428 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7429 devices as normal ones, not as LVM.
7430
1eafb9b9 74312009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
7432
7433 * conf/common.rmk: Add grub-gettext_lib target and updates
7434 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7435 LDFLAGS.
7436 * gettext/gettext.c: New file. (Reads mo files).
7437 * include/grub/file.h (grub_file_pread): New prototype.
7438 * include/grub/i18n.h (_): New prototype.
7439 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7440 prototypes.
7441 * kern/misc.c (grub_gettext_dummy): New function.
7442 * normal/menu_text.c: Include <grub/i18n.h>.
7443 * normal/menu_text.c (print_timeout): Gettexttize string.
7444 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
7445 * po/POTFILES: Add `normal/menu_text.c'.
7446 * po/ca.po: Add new translations.
c3ea6bd4
CPE
7447 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7448 gettext module and defines locale_dir and lang in grub.cfg.
7449 * NEWS: Add gettext support.
7450
0fdb2568
RM
74512009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7452
7453 * util/hostdisk.c: Include `<grub/i18n.h>'.
7454 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7455 (make_device_name): Rewrite using asprintf.
7456 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7457 (find_system_device): If a device is not found, generate one just
7458 by reusing the OS path name.
7459 (read_device_map): Make it permissible for device.map not to exist.
7460
f515aa62
RM
74612009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7462
7463 * script/sh/execute.c: Move from here ...
7464 * script/execute.c: ... to here. Update all users.
7465 * script/sh/function.c: Move from here ...
7466 * script/function.c: ... to here. Update all users.
7467 * script/sh/lexer.c: Move from here ...
7468 * script/lexer.c: ... to here. Update all users.
7469 * script/sh/main.c: Move from here ...
7470 * script/main.c: ... to here. Update all users.
7471 * script/sh/parser.y: Move from here ...
7472 * script/parser.y: ... to here. Update all users.
7473 * script/sh/script.c: Move from here ...
7474 * script/script.c: ... to here. Update all users.
7475
f84b481b
RM
74762009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7477
7478 * configure.ac: Detect all `emu' platforms. Define
7479 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7480 --enable-grub-emu logic. Disable include/grub/machine
7481 symlink on `emu' platforms.
7482
7483 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7484 * gensymlist.sh.in: Likewise.
7485
7486 * include/grub/i386/coreboot/machine.h: Remove file.
7487 * include/grub/i386/efi/machine.h: Likewise.
7488 * include/grub/i386/ieee1275/machine.h: Likewise.
7489 * include/grub/i386/pc/machine.h: Likewise.
7490 * include/grub/i386/qemu/machine.h: Likewise.
7491 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7492 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7493 * include/grub/x86_64/efi/machine.h: Likewise.
7494
7495 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7496 * commands/halt.c: Likewise.
7497 * commands/reboot.c: Likewise.
7498 * include/grub/autoefi.h: Likewise.
7499 * include/grub/i386/at_keyboard.h: Likewise.
7500 * include/grub/i386/kernel.h: Likewise.
7501 * include/grub/i386/loader.h: Likewise.
7502 * include/grub/i386/pc/memory.h: Likewise.
7503 * kern/dl.c: Likewise.
7504 * kern/i386/coreboot/init.c: Likewise.
7505 * loader/i386/bsd.c: Likewise.
7506 * loader/i386/linux.c: Likewise.
7507 * loader/multiboot_loader.c: Likewise.
7508 * term/i386/pc/serial.c: Likewise.
7509 * term/usb_keyboard.c: Likewise.
7510
7511 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7512 `<grub/machine/machine.h>'
7513 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7514 * util/misc.c: Remove `<grub/machine/machine.h>' and
7515 `<grub/machine/time.h>'.
7516
7517 * Makefile.in (enable_grub_emu): Remove variable.
7518 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7519
7520 * conf/any-emu.rmk: New file.
7521 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7522 (grub_emu_init.c): Move from here ...
7523 * conf/any-emu.rmk: ... to here.
7524
7525 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7526 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7527 * conf/any-emu.rmk: ... to here.
7528
4efeab03
RM
75292009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7530
7531 * include/grub/parser.h (grub_parser_register): Document need
7532 of `name' parameter.
7533 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7534 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7535 "sh" to "grub".
7536
ea1dd8bf
RM
75372009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7538
7539 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7540 `$(XGETTEXT)'.
7541 * include/grub/i18n.h (N_): New macro.
7542 * util/mkisofs/mkisofs.h: Likewise.
7543 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7544 around N_().
7545 (usage): Use gettext() to translate help strings when printing them.
7546
0c140626
RM
75472009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7548
7549 Based on patch from Bean
7550 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7551
7552 * video/efi_fb.c: New file.
7553 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7554 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7555 variables.
7556 * conf/x86_64-efi.rmk: Likewise.
7557
87d58298
RM
75582009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7559
7560 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7561 * util/i386/pc/grub-setup.c: Likewise.
7562
994cc3a3
ST
75632009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7564
7565 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7566 <hurd/fs.h>
7567 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7568 file_get_storage_info to implement grub_guess_root_device.
7569
26a61d6a
FZ
75702009-11-21 Felix Zielcke <fzielcke@z-51.de>
7571
7572 * Makefile.in (target): Use make's builtin $(shell) function
7573 instead of calling directly $(SHELL) to create the locale directories,
7574 inside the $(foreach) function.
7575
74ff1dd5
FZ
75762009-11-21 Felix Zielcke <fzielcke@z-51.de>
7577
7578 * util/grub-mkrescue.in: Print an error and usage if output option
7579 has not been given.
7580
0b787d0e
FZ
75812009-11-21 Felix Zielcke <fzielcke@z-51.de>
7582
7583 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7584 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7585 root and /boot are on different devices.
7586
1164b270
RM
75872009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7588
7589 Fix build for srcdir != objdir.
7590
7591 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7592 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7593 $(srcdir).
7594 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7595 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7596 reference for input.
7597
13774a2f
RM
75982009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7599
7600 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7601 or hardlinking it). Remove -J option, Joliet is not compatible with
7602 multiple source directories.
7603
efda854e
RM
76042009-11-21 Carles Pina i Estany <carles@pina.cat>
76052009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7606
7607 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7608 (process_input_dir): New function. Process an arbitrary input
7609 directory.
7610 Misc adjustments to support both "override mode" and system-wide mode.
7611
6c09890c
FZ
76122009-11-20 Felix Zielcke <fzielcke@z-51.de>
7613
7614 * configure.ac (UNIFONT_BDF): Rename to ...
7615 (FONT_SOURCE): ... this. Update all users.
7616
a797824f
FZ
76172009-11-20 Felix Zielcke <fzielcke@z-51.de>
7618
7619 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7620 to the list of unifont files to look for.
7621
cd4f42b0
RM
76222009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7623
7624 Patch from Joe Auricchio <jauricchio@gmail.com>
7625 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7626 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7627 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7628
393c783d
FZ
76292009-11-19 Felix Zielcke <fzielcke@z-51.de>
7630
7631 * Makefile.in (install-local): Add a missing backslash.
7632
b2f1e327
FZ
76332009-11-19 Felix Zielcke <fzielcke@z-51.de>
7634
7635 * include/grub/x86_64/io.h: New file.
7636
f577f7a0
RM
76372009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7638
7639 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7640 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7641 Include `"progname.h"'.
7642 (main): Initialize gettext.
7643 * util/i386/pc/grub-setup.c: Gettexttize.
7644 * util/i386/pc/grub-mkimage.c: Likewise.
7645
7646 * Makefile.in (po/*.po): Redefine as ...
7647 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7648
3bc7896c
RM
7649 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7650
c37943b6
RM
76512009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7652
7653 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7654 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7655 (program_name): Remove.
7656 (main): Initialize gettext support.
6323f705
RM
7657 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7658 Include `<libintl.h>'.
7659 (_): New macro.
c37943b6
RM
7660
7661 * util/mkisofs/eltorito.c: Gettexttize.
7662 * util/mkisofs/joliet.c: Likewise.
7663 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
7664 * util/mkisofs/multi.c: Likewise.
7665 * util/mkisofs/rock.c: Likewise.
7666 * util/mkisofs/tree.c: Likewise.
7667 * util/mkisofs/write.c: Likewise.
7668
3bc7896c
RM
7669 * po/POTFILES: Update with new files.
7670
5ce77c6e
RM
76712009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7672
7673 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7674 * util/mkisofs/iso9660.h: Likewise.
7675 * util/mkisofs/joliet.c: Likewise.
7676 * util/mkisofs/mkisofs.c: Likewise.
7677 * util/mkisofs/mkisofs.h: Likewise.
7678 * util/mkisofs/rock.c: Likewise.
7679 * util/mkisofs/tree.c: Likewise.
7680 * util/mkisofs/write.c: Likewise.
7681
7682 * util/mkisofs/eltorito.c (rcsid): Remove.
7683 * util/mkisofs/hash.c: Likewise.
7684 * util/mkisofs/joliet.c: Likewise.
7685 * util/mkisofs/name.c: Likewise.
7686 * util/mkisofs/rock.c: Likewise.
7687 * util/mkisofs/tree.c: Likewise.
7688 * util/mkisofs/write.c: Likewise.
7689
1dabbc77
RM
76902009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7691
7692 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7693 instead of static allocation.
7694 * util/mkisofs/match.h: Likewise.
7695
633877cb
RM
76962009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7697
3bc7896c
RM
7698 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7699 and `util/grub.d/10_linux.in'.
633877cb
RM
7700 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7701 translatable Shell files.
7702
af1c0c85
RM
77032009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7704
7705 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7706
769ae37b
RM
77072009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7708
7709 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 7710 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
7711 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7712 Add gettext initialization.
7713 (kfreebsd_entry): Make menuentry output translatable.
7714
77152009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7716
7717 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7718 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7719 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7720 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7721 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 7722 * po/LINGUAS: New file.
769ae37b
RM
7723
77242009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7725
7726 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7727 other things).
7728 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7729 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7730 bindtextdomain() calls for gettext initialization.
7731
77322009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7733
7734 * gnulib/progname.c: New file (imported from Gnulib).
7735 * gnulib/progname.h: Likewise.
7736 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7737 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7738 (usage): Replace `progname' with `program_name'.
7739 (main): Use set_program_name() for program name initialization.
7740
77412009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7742
7743 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7744 from here ...
7745 * Makefile.in (CPPFLAGS): ... to here.
7746
77472009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7748
7749 * aclocal.m4: Move from here ...
7750 * acinclude.m4: ... to here.
7751 * autogen.sh: Add call to `aclocal'.
7752 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7753
77542009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7755
7756 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7757 (LINGUAS): New variable.
7758 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7759 (install-local): Install MO files.
7760 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7761 * include/grub/i18n.h: New file.
3bc7896c
RM
7762 * po/POTFILES: New file.
7763 * po/ca.po: New file.
769ae37b
RM
7764 * util/grub.d/10_linux.in (bindir): New variable.
7765 Add gettext initialization.
7766 (linux_entry): Make menuentry output translatable.
7767 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7768 (usage): Make --help output translatable.
7769 (main): Initialize gettext.
7770
02c0a6ad
RM
77712009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7772
7773 * import_gcry.py: New file (written by Vladimir with minor
7774 adjustments).
7775 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7776 ciphers.
7777 * INSTALL: Document that Python is required for bootstrap.
7778
77792009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7780
7781 Import ciphers from libgcrypt 1.4.4.
7782
7783 * lib/libgcrypt/cipher/ChangeLog
7784 * lib/libgcrypt/cipher/ac.c
7785 * lib/libgcrypt/cipher/arcfour.c
7786 * lib/libgcrypt/cipher/bithelp.h
7787 * lib/libgcrypt/cipher/blowfish.c
7788 * lib/libgcrypt/cipher/camellia-glue.c
7789 * lib/libgcrypt/cipher/camellia.c
7790 * lib/libgcrypt/cipher/camellia.h
7791 * lib/libgcrypt/cipher/cast5.c
7792 * lib/libgcrypt/cipher/cipher.c
7793 * lib/libgcrypt/cipher/crc.c
7794 * lib/libgcrypt/cipher/des.c
7795 * lib/libgcrypt/cipher/dsa.c
7796 * lib/libgcrypt/cipher/ecc.c
7797 * lib/libgcrypt/cipher/elgamal.c
7798 * lib/libgcrypt/cipher/hash-common.c
7799 * lib/libgcrypt/cipher/hash-common.h
7800 * lib/libgcrypt/cipher/hmac-tests.c
7801 * lib/libgcrypt/cipher/md.c
7802 * lib/libgcrypt/cipher/md4.c
7803 * lib/libgcrypt/cipher/md5.c
7804 * lib/libgcrypt/cipher/primegen.c
7805 * lib/libgcrypt/cipher/pubkey.c
7806 * lib/libgcrypt/cipher/rfc2268.c
7807 * lib/libgcrypt/cipher/rijndael-tables.h
7808 * lib/libgcrypt/cipher/rijndael.c
7809 * lib/libgcrypt/cipher/rmd.h
7810 * lib/libgcrypt/cipher/rmd160.c
7811 * lib/libgcrypt/cipher/rsa.c
7812 * lib/libgcrypt/cipher/seed.c
7813 * lib/libgcrypt/cipher/serpent.c
7814 * lib/libgcrypt/cipher/sha1.c
7815 * lib/libgcrypt/cipher/sha256.c
7816 * lib/libgcrypt/cipher/sha512.c
7817 * lib/libgcrypt/cipher/tiger.c
7818 * lib/libgcrypt/cipher/twofish.c
7819 * lib/libgcrypt/cipher/whirlpool.c
7820
af2f93ac
RM
78212009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7822
7823 Fix build for systems without error().
7824
7825 * gnulib/error.c: New file (imported from Gnulib).
7826 * gnulib/error.h: Likewise.
7827 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7828 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7829 (this variable is now used by error()).
7830
73fb3dd5
FZ
78312009-11-16 Felix Zielcke <fzielcke@z-51.de>
7832
814f5e96
FZ
7833 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7834 instead of relying that char is signed.
73fb3dd5 7835
a691ca33
VS
78362009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7837
7838 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7839 blocksize different from specified.
7840 (grub_pxefs_read): Likewise.
7841
2af8f0f4
FZ
78422009-11-16 Felix Zielcke <fzielcke@z-51.de>
7843
7844 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7845
7846 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7847 (grub_ata_readwrite): Likewise. Update 2 format strings.
7848 (grub_atapi_read): Likewise.
7849
7850 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7851 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7852 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7853 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7854 (ata_mod_LDFLAGS): Move from here ...
7855 * conf/i386.rmk: ... to here ...
7856 * conf/x86_64-efi.rmk: ... and here.
7857 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7858 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7859
83bdecaf
RM
78602009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7861
7862 Relicense multiboot.h, with RMS' blessing.
7863
7864 * include/multiboot.h: Change to X11 license.
7865
fd6fd3d7
RM
78662009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7867
7868 Support --version in grub-mkisofs.
7869
7870 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7871 (OPTION_VERSION): New macro.
7872 (ld_options): Recognize --version.
7873 (usage): Move `program_name' from here ...
7874 (program_name): ... to here. Add `static' qualifier.
7875 (main): Recognize `OPTION_VERSION'.
7876
16a88c49
FZ
78772009-11-15 Felix Zielcke <fzielcke@z-51.de>
7878
7879 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7880 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7881
a4158476
RM
78822009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7883
7884 Fix help2man generation for mkisofs.
7885
7886 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7887 (usage): Send output to stdout (rather than stderr).
7888
fc2208b0
RM
78892009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7890
7891 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7892 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7893 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7894 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7895 (bin_SCRIPTS): Add `grub-mkfloppy'.
7896 (grub_mkfloppy_SOURCES): New variable.
7897
7898 * util/grub-mkrescue.in: New file.
7899 * util/i386/pc/grub-mkfloppy.in: New file.
7900
7901 * util/i386/coreboot/grub-mkrescue.in: Remove.
7902 * util/i386/pc/grub-mkrescue.in: Remove.
7903
8d0edf4a
RM
79042009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7905
7906 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7907 from here ...
7908 * include/multiboot.h (struct multiboot_header): ... to here. Update
7909 all users.
7910 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7911 from here ...
7912 * include/multiboot.h (struct multiboot_info): ... to here. Update
7913 all users.
7914 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7915 from here ...
7916 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7917 Update all users.
7918 * include/grub/multiboot.h (struct grub_mod_list): Move
7919 from here ...
7920 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7921 Update all users.
7922
a73f5969
RM
79232009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7924
7925 * include/multiboot2.h (multiboot_word): Rename from this ...
7926 (multiboot2_word): ... to this. Update all users.
7927 (multiboot_header): Rename from this ...
7928 (multiboot2_header): ... to this. Update all users.
7929 (multiboot_tag_header): Rename from this ...
7930 (multiboot2_tag_header): ... to this. Update all users.
7931 (multiboot_tag_start): Rename from this ...
7932 (multiboot2_tag_start): ... to this. Update all users.
7933 (multiboot_tag_name): Rename from this ...
7934 (multiboot2_tag_name): ... to this. Update all users.
7935 (multiboot_tag_module): Rename from this ...
7936 (multiboot2_tag_module): ... to this. Update all users.
7937 (multiboot_tag_memory): Rename from this ...
7938 (multiboot2_tag_memory): ... to this. Update all users.
7939 (multiboot_tag_unused): Rename from this ...
7940 (multiboot2_tag_unused): ... to this. Update all users.
7941 (multiboot_tag_end): Rename from this ...
7942 (multiboot2_tag_end): ... to this. Update all users.
7943
1c8927f0
RM
79442009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7945
7946 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7947 this platform we should support Multiboot1 first.
7948
7949 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7950 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7951 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7952
6e1e0d89
RM
79532009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7954
7955 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7956 of write calls (converting them to fwrite() if they aren't already).
7957 (get_torito_desc): Likewise.
7958 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7959
7f2b34d8
RM
79602009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7961
7962 * util/i386/pc/grub-install.in: Move from here ...
7963 * util/grub-install.in: ... to here. Update all users.
7964
c0ef3311
CW
79652009-11-11 Colin Watson <cjwatson@ubuntu.com>
7966
7967 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7968
e1f240ff
RM
79692009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7970
7971 Support for El Torito without floppy emulation.
7972
7973 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7974 (init_boot_catalog): Improve error handling.
7975 (get_torito_desc): Don't use floppy emulation unless requested by
7976 user. Patch boot information table when requested via
7977 `-boot-info-table'.
7978 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7979 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7980 (use_boot_info_table): New variables.
7981 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7982 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7983 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7984 `--eltorito-emul-floppy'.
7985 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7986 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7987 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7988 (use_boot_info_table, get_731): New prototypes.
7989 * util/mkisofs/write.c (get_731): New function.
7990
af7d4de5
FZ
79912009-11-11 Felix Zielcke <fzielcke@z-51.de>
7992
7993 Fix the generation of the man page.
7994
7995 * util/pc/i386/grub-install.in: Source
7996 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7997
2c55dbc0
RM
79982009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7999
8000 Large file support for grub-mkisofs.
8001
8002 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
8003 * util/mkisofs/mkisofs.c (next_extent, last_extent)
8004 (session_start): Upgrade type to `uint64_t'. Update all users.
8005 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
8006 (struct directory_entry): Upgrade type of `starting_block' and
8007 `size' to `uint64_t'. Update all users.
8008 (struct deferred): Remove unused structure.
8009 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
8010 Update all users.
8011 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
8012 file is larger than `UINT32_MAX'.
8013 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
8014 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
8015 return value.
8016 (struct deferred_write): Upgrade type of `extent' and `size' to
8017 `uint64_t'. Update all users.
8018 (last_extent_written): Upgrade type to `uint64_t'. Update all
8019 users.
8020 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
8021 Update all users. Upgrade type of `remain' to `int64_t' and
8022 `use' to `size_t'. Use error() to handle fread() errors.
8023 (write_files): Rely on write_one_file() rather than calling
8024 xfwrite() directly.
8025
6a9cead5
FZ
80262009-11-09 Felix Zielcke <fzielcke@z-51.de>
8027
8028 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
8029
4825d790
RM
80302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8031
8032 * util/mkisofs/fnmatch.c: Remove.
8033 * util/mkisofs/getopt1.c: Likewise.
8034 * util/mkisofs/getopt.c: Likewise.
8035 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
8036 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
8037 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
8038 `gnulib/getopt1.c' and `gnulib/getopt.c'.
8039 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
8040
8041 * configure.ac: Detect `mingw32msvc' host_os.
8042 Check for lstat(), getuid() and getgid().
8043
8044 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
8045 instances of `u_char' with `uint8_t'.
8046
8047 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
8048 [!HAVE_GETUID] (getuid): New function (stub).
8049 [!HAVE_GETGID] (getgid): Likewise.
8050 [!HAVE_LSTAT] (lstat): Likewise.
8051 [!S_IROTH] (S_IROTH): New macro (dummy).
8052 [!S_IRGRP] (S_IRGRP): Likewise.
8053
84b860d8
RM
80542009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8055
8056 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
8057 conditional expression).
8058
66e9b712
RM
80592009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8060
8061 Import from Gnulib.
8062
8063 * gnulib/fnmatch.c: New file.
8064 * gnulib/fnmatch.h: Likewise.
8065 * gnulib/fnmatch_loop.c: Likewise.
8066 * gnulib/getopt.c: Likewise.
8067 * gnulib/getopt.h: Likewise.
8068 * gnulib/getopt1.c: Likewise.
8069 * gnulib/getopt_int.h: Likewise.
8070 * gnulib/gettext.h: Likewise.
8071
34f4a5b0
RM
80722009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8073
8074 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
8075 * normal/handler.c (read_handler_list): Likewise.
8076
ac451143
RM
80772009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8078
8079 Misc cleanup.
8080
8081 * kern/command.c (grub_register_command_prio): Use
8082 grub_zalloc() instead of explicitly zeroing data.
8083 * kern/list.c: Include `<grub/mm.h>'.
8084 (grub_named_list_find): Replace `0' with `NULL'.
8085 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
8086 (fs_module_list): Change type to `grub_named_list_t'. Update all
8087 users.
8088 * normal/dyncmd.c (read_command_list): Add space between function
8089 call and parenthesis.
8090 * normal/handler.c (read_handler_list): Likewise.
8091
4089b167
RM
80922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8093
8094 * normal/auth.c (punishment_delay): Moved from here ...
8095 (grub_auth_strcmp): ... to here (inside function).
8096
325f5037
RM
80972009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8098
8099 * include/grub/list.h (struct grub_named_list): Remove `const'
8100 qualifier from `name'.
8101 (struct grub_prio_list): Likewise.
8102
7aea29a3
RM
81032009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8104
8105 * normal/auth.c: Include `<grub/time.h>'.
8106 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
8107
3fd6f044
RM
81082009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8109
8110 * normal/auth.c (punishment_delay): New variable.
8111 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
8112 (grub_auth_check_authentication): Punish failed login attempts with
8113 an incremental (2^N) delay.
8114
a4cd68e4
RM
81152009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8116
8117 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
8118 path with $(srcdir).
8119
7ad12f43
VS
81202009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8121
8122 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
8123
c1129f03
RM
81242009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8125
8126 * util/i386/coreboot/grub-mkrescue.in: New file.
8127 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
8128 variables.
8129
8130 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
8131 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
8132 * configure.ac: Add header and function checks to satisfy grub-mkisofs
8133 requirements.
8134 * util/mkisofs/defaults.h: New file.
8135 * util/mkisofs/eltorito.c: Likewise.
8136 * util/mkisofs/exclude.h: Likewise.
8137 * util/mkisofs/fnmatch.c: Likewise.
8138 * util/mkisofs/getopt.c: Likewise.
8139 * util/mkisofs/getopt1.c: Likewise.
8140 * util/mkisofs/hash.c: Likewise.
8141 * util/mkisofs/include/fctldefs.h: Likewise.
8142 * util/mkisofs/include/mconfig.h: Likewise.
8143 * util/mkisofs/include/prototyp.h: Likewise.
8144 * util/mkisofs/include/statdefs.h: Likewise.
8145 * util/mkisofs/iso9660.h: Likewise.
8146 * util/mkisofs/joliet.c: Likewise.
8147 * util/mkisofs/match.c: Likewise.
8148 * util/mkisofs/match.h: Likewise.
8149 * util/mkisofs/mkisofs.c: Likewise.
8150 * util/mkisofs/mkisofs.h: Likewise.
8151 * util/mkisofs/multi.c: Likewise.
8152 * util/mkisofs/name.c: Likewise.
8153 * util/mkisofs/rock.c: Likewise.
8154 * util/mkisofs/tree.c: Likewise.
8155 * util/mkisofs/write.c: Likewise.
8156
ec8bb77d
VS
81572009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8158
8159 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
8160 being insecure.
8161
3716b12c
RM
81622009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8163
8164 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
8165 `grub-mkimage' (and use $0 when possible).
8166
b97b7b91
RM
81672009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8168
8169 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
8170 error message for excessively large memory map.
8171
04114812
RM
81722009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8173
8174 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
8175 executable bit.
8176
e4eb2373
RM
81772009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8178
8179 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
8180 message for coreboot users.
8181
c926e1d5 81822009-11-07 Robert Millan <rmh.grub@aybabtu.com>
8183
8184 Fix build with GNU gold.
8185
8186 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
8187 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
8188 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
8189 link addresses.
8190 * aclocal.m4: Likewise.
8191
86e5b1db 81922009-11-04 Felix Zielcke <fzielcke@z-51.de>
8193
8194 * configure.ac (AC_PREREQ): Bump to 2.59d.
8195 * INSTALL: Make it more clear when Autoconf and Ruby are
8196 needed and when to run `./autogen.sh'.
8197
246cd78f 81982009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8199
8200 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
8201 OSes.
8202
4f9dfb37 82032009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8204
8205 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
8206
b82bd5e1 82072009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8208
8209 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
8210 giving it to GNU Mach.
8211
ff1a9bca 82122009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8213
8214 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
8215 GNU partition number to get internal GRUB partition number.
8216
61697d9c 82172009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8218
8219 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
8220 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
8221
a50569e1 82222009-11-01 Robert Millan <rmh.grub@aybabtu.com>
8223
8224 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
8225 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
8226 case.
8227
5b153867 82282009-11-01 Felix Zielcke <fzielcke@z-51.de>
8229
8230 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
8231
d9e2cd70 82322009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8233
8234 Fix build problem.
8235
8236 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
8237 `-isystem=$(srcdir)/include'.
8238
805111a4 82392009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8240
8241 * util/i386/pc/grub-install.in: Remove hint that device.map should be
8242 checked (grub-install doesn't currently rely on it).
8243
fa6e945f 82442009-10-29 Robert Millan <rmh.grub@aybabtu.com>
8245
8246 Revert SVN r2660.
8247
8248 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
8249 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8250 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
8251 * conf/i386-ieee1275.rmk: Likewise.
8252 * conf/i386-pc.rmk: Likewise.
8253 * conf/powerpc-ieee1275.rmk: Likewise.
8254 * conf/sparc64-ieee1275.rmk: Likewise.
8255 * conf/x86_64-efi.rmk: Likewise.
8256
cee15086 82572009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8258
8259 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
8260
95b9239e 82612009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8262
8263 * include/grub/misc.h: Stop checking for APPLE_CC.
8264
2ed19dfd 82652009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8266
8267 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
8268 doesn't cause an infinite call loop.
8269
fdcdde19 82702009-10-28 Felix Zielcke <fzielcke@z-51.de>
8271
8272 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
8273 strings.
8274
cefabfe1 82752009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8276
8277 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
8278 variable.
8279 * Makefile.in: Likewise.
8280
ed96ab6d 82812009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8282
8283 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
8284
0579b753 82852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8286
8287 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
8288
478df409 82892009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8290
8291 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
8292
083d1679 82932009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8294
8295 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
8296 from here ...
8297 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
8298
5947ae32 82992009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8300
8301 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
8302 in $(MAKEINFO) invocation. This makes it clear in output that
8303 errors are being ignored.
8304
94180ff6 83052009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8306
8307 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
8308 from here ...
8309 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8310 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
8311 * conf/i386-ieee1275.rmk: Likewise.
8312 * conf/i386-pc.rmk: Likewise.
8313 * conf/powerpc-ieee1275.rmk: Likewise.
8314 * conf/sparc64-ieee1275.rmk: Likewise.
8315 * conf/x86_64-efi.rmk: Likewise.
8316
9031b03a 83172009-10-26 Colin Watson <cjwatson@ubuntu.com>
8318
8319 * util/grub-editenv.c (main): If only a command is given, use
8320 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
8321 (usage): FILENAME is now optional and has a default.
8322
e4f6809b 83232009-10-26 Colin Watson <cjwatson@ubuntu.com>
8324
8325 Improve grub-mkconfig performance when there are several menu
8326 entries on a single filesystem.
8327
8328 * util/grub.d/10_linux.in (linux_entry): Cache the output of
8329 prepare_grub_to_access_device.
8330 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8331 * util/grub.d/30_os-prober.in: Likewise.
8332
67937d4d 83332009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8334
8335 * util/grub.d/10_freebsd.in: Remove.
8336 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
8337 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
8338
ee3756cc 83392009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8340
5c35048e 8341 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 8342
4dea1c6f 83432009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8344
8345 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
8346 grub_util_error() call.
8347
042484d7 83482009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8349
8350 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
8351 `reserved_first_sector' member.
8352 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
8353 `reserved_first_sector' to 1.
8354 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
8355 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
8356 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
8357 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
8358 filesystems which begin at first sector.
8359 (options): New option --skip-fs-probe.
8360 (main): Handle --skip-fs-probe and pass it to setup().
8361
d64448a7 83622009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8363
8364 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
8365 (memset): Fix function prototype.
8366
508d42ec 83672009-10-25 Robert Millan <rmh.grub@aybabtu.com>
83682009-10-25 Vasily Averin <vvs@parallels.com>
8369
8370 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
8371 `dirent.direntlen == 0'.
8372
b240e30c 83732009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8374
8375 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
8376 `cpio'.
8377 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8378
346e7fbe 83792009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8380
8381 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8382 `__trampoline_setup' and `__ucmpdi2'.
8383 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8384 that libgcc provides.
8385
cdb308b0 83862009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8387
8388 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8389 * include/grub/sparc64/libgcc.h (memset): Likewise.
8390 * include/grub/misc.h (memset, memcmp): New function prototypes.
8391
fb26abc2 83922009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8393
8394 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8395 `cpio'.
8396 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8397
f6693890 83982009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8399
8400 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8401 * docs/grub.cfg: Compensate for recent change in multiboot
8402 loader (since 2009-08-14 it won't pass filename to payload).
8403 * util/grub.d/10_hurd.in: Likewise.
8404
0933cdc0 84052009-10-21 Felix Zielcke <fzielcke@z-51.de>
8406
8407 * config.guess: Update to latest version from config git
8408 repository.
8409 * config.sub: Likewise.
8410
3b2fe8c2 84112009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8412
8413 Fix build on sparc64.
8414
8415 * configure.ac: Perform checks for libgcc symbols before
8416 adding `-nostdlib' to LDFLAGS.
8417
46695a62 84182009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 Let user specify OpenBSD root device.
8421
8422 * loader/i386/bsd.c (openbsd_root): New variable.
8423 (openbsd_opts): New option 'root'.
8424 (OPENBSD_ROOT_ARG): New macro.
8425 (grub_openbsd_boot): Use 'openbsd_root'.
8426 (grub_cmd_openbsd): Fill 'openbsd_root'.
8427
d2b6b7fc 84282009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8429
8430 * NEWS: Misc adjustments.
8431
421bd7ac 84322009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8435
f1d29d87 84362009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8437
8438 * configure.ac: Bump version to 1.97.
8439
6f3cd880 84402009-10-16 Colin Watson <cjwatson@ubuntu.com>
8441
8442 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8443 -mno-3dnow on x86 architectures. Some toolchains enable these
8444 features by default, but they rely on registers that aren't enabled
8445 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8446
035f7122 84472009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8448
8449 Make entry text a bit more readable.
8450
8451 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8452
44998e58 84532009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8454
8455 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8456
cd2851b3 84572009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8458
8459 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8460 operations.
8461
c6f3b249 84622009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8463
8464 * configure.ac: Add missing dollar.
8465
6b5886ba 84662009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8467
8468 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8469
8470 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8471 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8472 exports.
8473 * include/grub/sparc64/libgcc.h: Likewise. Use
8474 preprocessor conditionals.
8475
e9d66f6d 84762009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8477
8478 * conf/common.rmk (grub-dumpbios): Remove rule.
8479 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8480 * util/grub-dumpbios.in: Remove file.
8481
9155bc17 84822009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8483
8484 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8485 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8486
8487 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8488 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8489 users.
8490
8491 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8492 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8493 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8494 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8495 users.
8496
bf7f7a18 84972009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8498
8499 * term/tparm.c: Switch to GPLv3.
8500
86564c26 85012009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8502
8503 * include/grub/i386/cpuid.h: Add header protection.
8504
5c936493 85052009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8506
8507 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8508
8509 * include/grub/i386/cpuid.h: New file.
8510 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8511 (has_longmode): Rename to ...
8512 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8513 `static' attribute.
8514 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8515 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8516 on a CPU that doesn't implement AMD64 instruction set.
8517
186e7cf2 85182009-10-06 Colin Watson <cjwatson@ubuntu.com>
8519
8520 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8521 that version.texi is rebuilt on version number changes.
8522
83b65c4a 85232009-10-06 Colin Watson <cjwatson@ubuntu.com>
8524
8525 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8526 Fixes bug #27602.
8527
d244281c 85282009-10-06 Colin Watson <cjwatson@ubuntu.com>
8529
8530 * util/i386/pc/grub-install.in: Source
8531 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8532 that the --grub-probe option will work.
8533 * util/sparc64/ieee1275/grub-install.in: Likewise.
8534
da25306d 85352009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8536
8537 * configure.ac: Bump version to 1.97~beta4.
8538
e8ee83c0 85392009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8540
8541 Resync grub-mkdevicemap in x86_64-efi.
8542
8543 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8544 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8545 `util/devicemap.c'.
8546
50dcabcf 85472009-10-01 Colin Watson <cjwatson@ubuntu.com>
8548
8549 * util/grub-editenv.c (create_envblk_file): Write new block with a
8550 .new suffix and then rename it into place, to ensure atomic
8551 creation.
8552
0e51c3a7 85532009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8554
8555 Do not automatically install headers.
8556
8557 * Makefile.in (include_DATA): Remove. Update all users.
8558
31299a95 85592009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8560
8561 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8562 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8563
8564 * util/osdetect.lua: Remove.
8565 * script/lua/lauxlib.c: Likewise.
8566 * script/lua/ldebug.c: Likewise.
8567 * script/lua/grub_main.c: Likewise.
8568 * script/lua/lauxlib.h: Likewise.
8569 * script/lua/ldebug.h: Likewise.
8570 * script/lua/ltablib.c: Likewise.
8571 * script/lua/liolib.c: Likewise.
8572 * script/lua/lstrlib.c: Likewise.
8573 * script/lua/lualib.h: Likewise.
8574 * script/lua/ldo.c: Likewise.
8575 * script/lua/ldump.c: Likewise.
8576 * script/lua/ldo.h: Likewise.
8577 * script/lua/loslib.c: Likewise.
8578 * script/lua/lundump.c: Likewise.
8579 * script/lua/grub_lib.c: Likewise.
8580 * script/lua/ldblib.c: Likewise.
8581 * script/lua/lundump.h: Likewise.
8582 * script/lua/lmem.c: Likewise.
8583 * script/lua/grub_lib.h: Likewise.
8584 * script/lua/lmathlib.c: Likewise.
8585 * script/lua/lstate.c: Likewise.
8586 * script/lua/ltm.c: Likewise.
8587 * script/lua/lvm.c: Likewise.
8588 * script/lua/lmem.h: Likewise.
8589 * script/lua/lstate.h: Likewise.
8590 * script/lua/ltm.h: Likewise.
8591 * script/lua/ltable.c: Likewise.
8592 * script/lua/lvm.h: Likewise.
8593 * script/lua/llex.c: Likewise.
8594 * script/lua/lgc.c: Likewise.
8595 * script/lua/grub_lua.h: Likewise.
8596 * script/lua/loadlib.c: Likewise.
8597 * script/lua/lfunc.c: Likewise.
8598 * script/lua/lopcodes.c: Likewise.
8599 * script/lua/lparser.c: Likewise.
8600 * script/lua/ltable.h: Likewise.
8601 * script/lua/llex.h: Likewise.
8602 * script/lua/lgc.h: Likewise.
8603 * script/lua/lfunc.h: Likewise.
8604 * script/lua/lbaselib.c: Likewise.
8605 * script/lua/lopcodes.h: Likewise.
8606 * script/lua/lparser.h: Likewise.
8607 * script/lua/lzio.c: Likewise.
8608 * script/lua/linit.c: Likewise.
8609 * script/lua/lobject.c: Likewise.
8610 * script/lua/llimits.h: Likewise.
8611 * script/lua/lstring.c: Likewise.
8612 * script/lua/lzio.h: Likewise.
8613 * script/lua/lapi.c: Likewise.
8614 * script/lua/lcode.c: Likewise.
8615 * script/lua/lua.h: Likewise.
8616 * script/lua/lobject.h: Likewise.
8617 * script/lua/lstring.h: Likewise.
8618 * script/lua/lapi.h: Likewise.
8619 * script/lua/lcode.h: Likewise.
8620 * script/lua/luaconf.h: Likewise.
8621
cb8a2c38 86222009-09-26 Colin Watson <cjwatson@ubuntu.com>
8623
8624 * docs/grub.texi (Command-line and menu entry commands): Document
8625 date and echo commands.
8626
6b9b6276 86272009-09-24 Pavel Roskin <proski@gnu.org>
8628
8629 * include/grub/kernel.h (struct grub_module_header): Remove
8630 `grub_module_header_types'. Make `type' unsigned. Make `size'
8631 32-bit on all platforms.
8632 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8633 8-bit field. Use grub_host_to_target32() for `size'.
8634 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8635 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8636 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8637
4e5a02a7 86382009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8639
8640 Fix "lost keypress" bug in at_keyboard.
8641
8642 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8643 Checks for readyness of input buffer (without flushing it).
8644 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8645 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8646
c6dcedf6 86472009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8648
8649 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8650 size check within GRUB_MACHINE_PCBIOS section.
8651
74c958b1 86522009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8653
8654 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8655 return value.
8656 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8657 KEYBOARD_ISREADY check.
8658 (grub_at_keyboard_checkkey): Rename to ...
8659 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8660 Remove gratuitous cast.
8661
ff420223 86622009-09-23 Colin Watson <cjwatson@ubuntu.com>
8663
8664 * configure.ac: Call AC_PROG_MKDIR_P.
8665 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8666 version.texi in $(builddir) rather than $(srcdir).
8667 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8668 to makeinfo's @include search path.
8669
d96875df 86702009-09-23 Felix Zielcke <fzielcke@z-51.de>
8671
8672 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8673
9b3f8365 86742009-09-23 Felix Zielcke <fzielcke@z-51.de>
8675
8676 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8677 for `*.dpkg-new'.
8678
c44c90db 86792009-09-21 Colin Watson <cjwatson@ubuntu.com>
8680
8681 Build info documentation. Some code borrowed from Automake.
8682
8683 * configure.ac: Check for makeinfo.
8684 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8685 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8686 docs/version.texi.
8687 (MOSTLYCLEANFILES): Add vti.tmp.
8688 (docs/version.texi, docs/stamp-vti): Update automatically.
8689 (docs/grub.info): Build info documentation. Use --force and ignore
8690 errors for now.
8691 (all-local): Add $(INFOS).
8692 (install-local): Install info files.
8693 (uninstall): Uninstall info files.
8694 * docs/version.texi: Remove from revision control. This file is
8695 automatically generated on build now.
8696 * gendistlist.sh: Add `*.info'.
8697
e0b37bb5 86982009-09-21 Felix Zielcke <fzielcke@z-51.de>
8699
8700 * kern/term.c: Fix indentation.
8701
5a78865b 87022009-09-21 Felix Zielcke <fzielcke@z-51.de>
8703
8704 * util/hostdisk.c: Fix a comment.
8705
dace7e8a 87062009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8707
8708 Fix regression introduced in r2539.
8709
8710 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8711 to 0xA1.
8712
a83d079b 87132009-09-19 Colin Watson <cjwatson@ubuntu.com>
8714
8715 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 8716 os-prober. Under normal operation, it does not print anything to
8717 stderr; if it does, we need to debug it, and throwing away stderr
8718 makes that excessively difficult.
a83d079b 8719
be94a509 87202009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8721
8722 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8723
63f745e8 87242009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8725
8726 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8727 AC_LANG_PROGRAM from autoconf.
8728 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8729 prototypes (fixes warning).
8730
8731 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8732 `--disable-werror' was used.
8733
bbb2a70f 87342009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8735
8736 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8737 uninitialized `lastaddr'.
8738
77c24f1d 87392009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8740
0f0b8c87 8741 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 8742
07197f23 87432009-09-14 Colin Watson <cjwatson@ubuntu.com>
8744
8745 * commands/test.c (get_fileinfo): Return immediately if
8746 grub_fs_probe fails.
8747
dabf1798 87482009-09-14 José Martínez <xosemp@gmail.com>
8749
8750 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8751
d52109a7 87522009-09-14 Colin Watson <cjwatson@ubuntu.com>
8753
8754 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8755 output.
8756
56532179 87572009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8758
8759 * configure.ac: Remove --enable-grub-pe2elf. Only build
8760 grub-pe2elf when needed by the build system itself.
8761 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8762
8ef070f5 87632009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8764
8765 * configure.ac: Bump version to 1.97~beta3.
8766 * docs/version.texi: Likewise.
8767
61229557 87682009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8769
8770 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8771 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8772 from here ...
8773 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8774 (grub_linux_setup_video): ... to here (with some adjustments).
8775
5c9f8d84 87762009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8777
8778 Fix memory corruption issue (spotted by Colin Watson).
8779
8780 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8781 causing returned size to be stored in an incorrect memory location.
8782 Fix use of uninitialized value when storing the returned size.
8783
e8f5d6e9 87842009-09-12 Yves Blusseau <blusseau@zetam.org>
8785
8786 Change clean rules to properly remove files
8787
8788 * genmk.rb: add new clean rules
8789 * Makefile.in (clean): add the new targets
8790 (mostlyclean): likewise
8791
cda2a409 87922009-09-11 Colin Watson <cjwatson@ubuntu.com>
8793
8794 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8795 to grub_uint64_t.
8796 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8797 non-resident files.
8798
86695375 87992009-09-11 Colin Watson <cjwatson@ubuntu.com>
8800
8801 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8802 part of bug #27349.
8803
8aa1541a 88042009-09-10 Felix Zielcke <fzielcke@z-51.de>
8805
8806 * util/grub-mkconfig.in: Make the created config mode 400 and
8807 print a warning if it fails.
8808
48d9bb0a 88092009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8810
8811 * util/grub.d/40_custom.in: Ask user to type custom entries below
8812 comment, rather than below 'exec tail' line.
8813
3b0521be 88142009-09-10 Colin Watson <cjwatson@ubuntu.com>
8815
8816 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8817 visible in grub.cfg.
8818
50051d55 88192009-09-10 Colin Watson <cjwatson@ubuntu.com>
8820
8821 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8822 file.
8823
c0d34387 88242009-09-10 Felix Zielcke <fzielcke@z-51.de>
8825
8826 * docs/grub.cfg: Add an example menu entry for memtest86+.
8827
80a608f3 88282009-09-09 Felix Zielcke <fzielcke@z-51.de>
8829
a2094832 8830 * config.guess: Update to latest version from config git.
80a608f3 8831 * config.sub: Likewise.
8832
99423078 88332009-09-08 Colin Watson <cjwatson@ubuntu.com>
8834
8835 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8836 unknown-command case. Fixes bug #27320.
8837
44454e4c 88382009-09-08 Felix Zielcke <fzielcke@z-51.de>
8839
8840 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8841 `help' if the command exists.
8842
e30d87ad 88432009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8844
8845 * INSTALL: Require GCC 4.1.3 or later.
8846
9a86f1ec 88472009-09-06 Yves Blusseau <blusseau@zetam.org>
8848
8849 * Makefile.in (RMKFILES): add i386-qemu.rmk
8850 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8851 $(srcdir)/stamp-h.in
8852
7f26d466 88532009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8854
8855 * util/grub-probe.c (probe): Comment out buggy codepath, which
8856 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8857 should be re-enabled after 1.97.
8858
3a613259 88592009-09-05 Felix Zielcke <fzielcke@z-51.de>
8860
8861 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8862 find searches for.
8863
197f76c7 88642009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8867 unnecessary calls to grub_error.
8868
70ba68ce 88692009-09-04 Colin Watson <cjwatson@ubuntu.com>
8870
8871 * NEWS: Mention `keystatus' and Unicode fonts.
8872
4ff0d7a4 88732009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8874
8875 * configure.ac: Bump version to 1.97~beta2.
8876 * docs/version.texi: Likewise.
8877
77c55a87 88782009-09-03 Colin Watson <cjwatson@ubuntu.com>
8879
8880 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8881 containing unwind information in some cases where it previously did
8882 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8883 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8884 discussion.
8885
f79572cd 88862009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8887
8888 Embedding loadenv module into grub-emu
8889
8890 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8891 commands/loadenv.c
8892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8893 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8896 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8897 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8898
93a81088 88992009-09-03 Magnus Granberg <zorry@ume.nu>
8900
8901 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8902 include -fPIE in the default specs.
8903 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8904 to TARGET_CFLAGS.
8905
160034b2 89062009-09-03 Felix Zielcke <fzielcke@z-51.de>
8907
8908 * INSTALL: Note that GNU Bison 2.3 or later is required.
8909
087c07c4 89102009-09-03 Colin Watson <cjwatson@ubuntu.com>
8911
8912 * kern/i386/pc/startup.S: Fix typo.
8913
cbf978c0 89142009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8917 according to GCS.
8918
89192009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 8920
8921 * docs/grub.texi (Naming convention): Describe one-based partition
8922 numbering.
8923 (Device syntax): Likewise.
8924 (File name syntax): Likewise.
8925 (Block list syntax): Likewise.
8926 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8927 menu.lst.
8928 (File name syntax): Likewise.
8929 (Command-line and menu entry commands): Document acpi, blocklist,
8930 crc, export, insmod, keystatus, ls, set, and unset commands.
8931
f3e8cdfd 89322009-09-02 Colin Watson <cjwatson@ubuntu.com>
8933
8934 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8935 to avoid implying that only one of --shift, --ctrl, or --alt may be
8936 used.
8937
c0bc232b 89382009-09-02 Colin Watson <cjwatson@ubuntu.com>
8939
8940 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8941 rather than comparing against S_IFREG, which will almost never work.
8942
aa0f752d 89432009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8946 (write_blocklists): Likewise.
8947
ecb3166a 89482009-09-01 Colin Watson <cjwatson@ubuntu.com>
8949
8950 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8951 argument to grub_printf.
8952
c403a125 89532009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 8954
8955 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 8956 non GNU test.
31aba781 8957
b5e7312c 89582009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * kern/file.c (grub_file_read): Spelling fix
8961
fe00f472 89622009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8965 loading of headers in some cases.
8966
cc55302e 89672009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8968
8969 * configure.ac: Bump version to 1.97~beta1.
8970 * docs/version.texi: Likewise.
8971
5c90cdd2 89722009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 8973
8974 * include/grub/i386/xnu.h: Add license header.
8975 include grub/err.h explicitly.
8976
c90edae4 89772009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8978
8979 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8980 to `ufs' in the vfs.root.mountfrom kernel parameter.
8981
d8888b5c 89822009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8983
8984 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8985
8986 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8987 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8988
8989 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8990 `ARRAY_SIZE' macro.
8991
6f07b921 89922009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 * kern/file.c (grub_file_read): Check offset.
8995 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8996 * fs/jfs.c (grub_jfs_read_file): Likewise.
8997 * fs/ntfs.c (grub_ntfs_read): Likewise.
8998 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8999 * fs/minix.c (grub_minix_read_file): Correct offset check.
9000 * fs/ufs.c (grub_ufs_read_file): Likewise.
9001
b4f34077 90022009-08-28 Colin Watson <cjwatson@ubuntu.com>
9003
9004 * term/i386/pc/console.c (bios_data_area): Cast
9005 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
9006
e7c69859 90072009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 1-bit optimised blitters.
9010
9011 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
9012 prototype.
9013 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9014 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9015 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9016 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9017 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9018 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9019 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
9020 function.
9021 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9022 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9023 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9024 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9025 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9026 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9027 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
9028 when possible.
9029 * video/video.c (grub_video_get_blit_format): Return
9030 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
9031
a57da43f 90322009-08-28 Colin Watson <cjwatson@ubuntu.com>
9033
9034 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
9035 the first argument to grub_printf.
9036
4cbe67e5 90372009-08-28 Colin Watson <cjwatson@ubuntu.com>
90382009-08-28 Robert Millan <rmh.grub@aybabtu.com>
9039
9040 Add `getkeystatus' terminal method. Add a new `keystatus' command
9041 to query it.
9042
9043 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
9044 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
9045 modifier key bitmasks.
9046 (struct grub_term_input): Add `getkeystatus' member.
9047 (grub_getkeystatus): Add prototype.
9048 * kern/term.c (grub_getkeystatus): New function.
9049
9050 * include/grub/i386/pc/memory.h
9051 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
9052 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
9053 Data Area layout.
9054 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
9055 (grub_console_term_input): Set `getkeystatus' member.
9056 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
9057 constants.
9058 (grub_usb_keyboard_getreport): Likewise.
9059 (grub_usb_keyboard_checkkey): Likewise.
9060 (grub_usb_keyboard_getkeystatus): New function.
9061 (grub_usb_keyboard_term): Set `getkeystatus' member.
9062
9063 * commands/keystatus.c: New file.
9064 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
9065 (keystatus_mod_SOURCES): New variable.
9066 (keystatus_mod_CFLAGS): Likewise.
9067 (keystatus_mod_LDFLAGS): Likewise.
9068 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
9069 commands/keystatus.c.
9070 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9071 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9072 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9073 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9074 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9075 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 9076
6e2a9085 90772009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 Split befs.mod and afs.mod into *_be.mod and *.mod
9080
9081 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
9082 (grub_fstest_SOURCES): Likewise.
9083 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
9084 (afs_be_mod_SOURCES): New variable.
9085 (afs_be_mod_CFLAGS): Likewise.
9086 (afs_be_mod_LDFLAGS): Likewise.
9087 (befs_be_mod_SOURCES): Likewise.
9088 (befs_be_mod_CFLAGS): Likewise.
9089 (befs_be_mod_LDFLAGS): Likewise.
9090 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
9091 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9092 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9093 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9094 (grub_emu_SOURCES): Likewise.
9095 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9096 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9097 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9098 * fs/afs_be.c: New file.
9099 * fs/befs_be.c: New file.
9100 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
9101 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
9102 (U16): Replaced with ...
9103 (grub_afs_to_cpu16): ...this. All users updated.
9104 (U32): Replaced with ...
9105 (grub_afs_to_cpu32): ...this. All users updated.
9106 (U64): Replaced with ...
9107 (grub_afs_to_cpu64): ...this. All users updated.
9108 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
9109 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 9110 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 9111 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9112 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9113 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9114 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9115 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9116 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9117 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9118 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9119
32a71655 91202009-08-26 Bean <bean123ch@gmail.com>
9121
9122 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
9123 64-bit number.
9124 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9125 (grub_xfs_inode_block): Change return type to grub_uint64_t.
9126 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
9127
552bf6c5 91282009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 NetBSD memory map support.
9131
9132 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
9133 (grub_netbsd_btinfo_mmap_header): New structure.
9134 (grub_netbsd_btinfo_mmap_entry): Likewise.
9135 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
9136
1ae2078c 91372009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 Enable bsd.mod on coreboot.
9140
9141 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
9142 (bsd_mod_SOURCES): New variable.
9143 (bsd_mod_CFLAGS): Likewise.
9144 (bsd_mod_LDFLAGS): Likewise.
9145 (bsd_mod_ASFLAGS): Likewise.
9146 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
9147 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
9148
beefc598 91492009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 Cleanup NetBSD root support.
9152
9153 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
9154 grub_bsd_get_device.
9155 Fix typo.
9156
3b76e68b 91572009-08-25 Felix Zielcke <fzielcke@z-51.de>
9158
9159 * util/grub.d/00_header.in: Move check for the video backend of
9160 gfxterm from here ...
9161 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
9162 a suitable video backend.
9163
aea664ea 91642009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 Fix breakage in grub-setup.
9167
9168 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
9169 "msdos_partition_map".
9170
ff747d50 91712009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9172
9173 Fix breakage in normal/auth.c.
9174
9175 * normal/auth.c (grub_iswordseparator): New function.
9176
e7e1f93f 91772009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 Authentication support.
9180
9181 * commands/password.c: New file.
9182 * conf/common.rmk (pkglib_MODULES): Add password.mod.
9183 (password_mod_SOURCES): New variable.
9184 (password_mod_CFLAGS): Likewise.
9185 (password_mod_LDFLAGS): Likewise.
9186 (normal_mod_SOURCES): Add normal/auth.c.
9187 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
9188 normal/auth.c.
9189 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9191 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9193 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9194 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9195 * include/grub/auth.h: New file.
9196 * include/grub/err.h (grub_err_t): New enum value
9197 GRUB_ERR_ACCESS_DENIED.
9198 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
9199 'users'.
9200 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
9201 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
9202 users updated.
9203 * normal/auth.c: New file.
9204 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
9205 (grub_cmdline_run): Don't allow to go to command line without
9206 authentication.
9207 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
9208 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
9209 menuentry without superuser rights.
9210 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
9211 user isn't a superuser.
9212
70f1161d 92132009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 Save space by inlining misc.c functions.
9216
9217 * kern/misc.c (grub_iswordseparator): Made static.
9218 * kern/misc.c (grub_strcat): Moved from here ...
9219 * include/grub/misc.h (grub_strcat): ... here. Inlined.
9220 * kern/misc.c (grub_strncat): Moved from here ...
9221 * include/grub/misc.h (grub_strncat): ... here. Inlined.
9222 * kern/misc.c (grub_strcasecmp): Moved from here ...
9223 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
9224 * kern/misc.c (grub_strncasecmp): Moved from here ...
9225 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
9226 * kern/misc.c (grub_isalpha): Moved from here ...
9227 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
9228 * kern/misc.c (grub_isdigit): Moved from here ...
9229 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
9230 * kern/misc.c (grub_isgraph): Moved from here ...
9231 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
9232 * kern/misc.c (grub_tolower): Moved from here ...
9233 * include/grub/misc.h (grub_tolower): ... here. Inlined.
9234
48e40bff 92352009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9236
9237 * script/sh/function.c (grub_script_function_find): Cut error message
9238 not to flood terminal.
9239 * script/sh/lexer.c (grub_script_yylex): Remove command line length
9240 limit.
9241 * script/sh/script.c (grub_script_arg_add): Duplicate string.
9242
c385bfc3 92432009-08-24 Colin Watson <cjwatson@ubuntu.com>
9244
9245 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
9246 `report' grub_uint8_t *.
9247 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
9248 Use a 50-millisecond timeout rather than just repeating
9249 grub_usb_keyboard_getreport 50 times.
9250 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
9251
2d21e3e8 92522009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 Rename *_partition_map to part_*
9255
9256 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
9257 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
9258 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
9259 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
9260 All users updated.
9261 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
9262 All users updated.
9263 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
9264 * util/grub-probe.c (probe_partmap): Don't transform partition name
9265 to get module name.
9266
dd103c4e 92672009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 Fix OpenBSD and NetBSD support.
9270
9271 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
9272 memory address conflict.
9273 (OPENBSD_MMAP_ACPI): New definition.
9274 (OPENBSD_MMAP_NVS): Likewise.
9275 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
9276 and OPENBSD_MMAP_NVS.
9277 Add memory map terminator
9278 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 9279 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 9280
16c84d74 92812009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9282
9283 Let user specify NetBSD root device.
9284
9285 * loader/i386/bsd.c (netbsd_root): New variable.
9286 (netbsd_opts): New option 'root'.
9287 (NETBSD_ROOT_ARG): New macro.
9288 (grub_netbsd_boot): Use 'netbsd_root'.
9289 (grub_bsd_unload): Free 'netbsd_root'.
9290 (grub_cmd_netbsd): Fill 'netbsd_root'.
9291
adb29902 92922009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9293
9294 Support for 64-bit NetBSD.
9295
9296 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
9297 point when booting non-FreeBSD.
9298
f5ae9f74 92992009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 Support --no-smp and --no-acpi for NetBSD.
9302
9303 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
9304 (NETBSD_AB_NOACPI): Likewise.
9305 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
9306 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
9307
de74f136 93082009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
9311 errors.
9312 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
9313 errors. Call grub_error when needed.
9314
e9a925da 93152009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 * commands/search.c (search_fs): Try searching without autoload first.
9318 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
9319 filesystem module explicitly for faster booting.
9320
5174302b 93212009-08-23 Colin Watson <cjwatson@ubuntu.com>
9322
9323 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
9324
c8c80635 93252009-08-23 Colin Watson <cjwatson@ubuntu.com>
9326
9327 * util/grub.d/30_os-prober.in: Disable os-prober if
9328 `GRUB_DISABLE_OS_PROBER' was set to true.
9329
71acf5e5 93302009-08-23 Robert Millan <rmh.grub@aybabtu.com>
9331
9332 * partmap/pc.c: Rename to ...
9333 * partmap/msdos.c: ... this. Update all users.
9334 (grub_pc_partition_map): Rename to ...
9335 (grub_msdos_partition_map): ... this. Update all users.
9336
9337 * parttool/pcpart.c: Rename to ...
9338 * parttool/msdospart.c: ... this. Update all users.
9339
9340 * include/grub/pc_partition.h: Rename to ...
9341 * include/grub/msdos_partition.h: ... this. Update all users.
9342 (grub_pc_partition_bsd_entry): Rename to ...
9343 (grub_msdos_partition_bsd_entry): ... this. Update all users.
9344 (grub_pc_partition_disk_label): Rename to ...
9345 (grub_msdos_partition_disk_label): ... this. Update all users.
9346 (grub_pc_partition_entry): Rename to ...
9347 (grub_msdos_partition_entry): ... this. Update all users.
9348 (grub_pc_partition_mbr): Rename to ...
9349 (grub_msdos_partition_mbr): ... this. Update all users.
9350 (grub_pc_partition): Rename to ...
9351 (grub_msdos_partition): ... this. Update all users.
9352 (grub_pc_partition_is_empty): Rename to ...
9353 (grub_msdos_partition_is_empty): ... this. Update all users.
9354 (grub_pc_partition_is_extended): Rename to ...
9355 (grub_msdos_partition_is_extended): ... this. Update all users.
9356 (grub_pc_partition_is_bsd): Rename to ...
9357 (grub_msdos_partition_is_bsd): ... this. Update all users.
9358
9359 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
9360 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
9361 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
9362 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
9363 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
9364 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
9365 (gpt_mod_LDFLAGS): Rename to ...
9366 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
9367 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
9368 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
9369 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
9370 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
9371 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
9372 (part_gpt_mod_LDFLAGS): ... this.
9373 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
9374 `pcpart.mod' to `msdospart.mod'.
9375 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
9376 to ...
9377 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9378 (msdospart_mod_LDFLAGS): ... this.
9379
c11fded5 93802009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9383 (openbsd_opts): Likewise.
9384 (netbsd_opts): Likewise.
9385 (freebsd_flags): Added 0 terminator.
9386 (openbsd_flags): Likewise.
9387 (netbsd_flags): Likewise.
9388 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9389 (grub_cmd_freebsd): Transformed into extended command.
9390 (grub_cmd_openbsd): Likewise.
9391 (grub_cmd_netbsd): Likewise.
9392 (cmd_freebsd): Changed type to grub_extcmd_t.
9393 (cmd_openbsd): Likewise.
9394 (cmd_netbsd): Likewise.
9395 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9396 grub_cmd_openbsd as extended commands.
9397 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9398 cmd_netbsd and cmd_openbsd
9399
11d1c769 94002009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9403
7a9094e5 94042009-08-21 Pavel Roskin <proski@gnu.org>
9405
5496c37e 9406 * Makefile.in (install-local): When checking if a file is in the
9407 build directory, use "test -e" to detect symlinks.
9408
7a9094e5 9409 * Makefile.in (install-local): Remove all files in
9410 $(DESTDIR)$(pkglibdir) before installing new files there.
9411
e53cea11 94122009-08-18 Felix Zielcke <fzielcke@z-51.de>
9413
9414 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9415 grub-mkelfimage.
9416
9aced544 94172009-08-18 Felix Zielcke <fzielcke@z-51.de>
9418
9419 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9420 explicitly specified by the user.
9421
b7da6bab 94222009-08-18 Pavel Roskin <proski@gnu.org>
9423
9424 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9425 grub_uint8_t pointer for data.
9426 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9427 Likewise.
9428 * video/fb/fbutil.c: Remove unnecessary casts.
9429
19f1b335 94302009-08-17 Michal Suchanek <hramrach@centrum.cz>
9431
9432 VBE cleanup.
9433
9434 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9435 (grub_vbe_set_video_mode): Save active mode info
9436 only after setting the mode.
9437 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9438 second argument.
9439
2f467aa9 94402009-08-17 Michal Suchanek <hramrach@centrum.cz>
9441
9442 Rename variables for clarity.
9443
9444 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9445 (active_vbe_mode_info): ... this. All users updated.
9446 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9447 All users updated.
9448 (initial_mode): Rename to ...
9449 (initial_vbe_mode): ... this. All users updated.
9450 (mode_in_use): Rename to ..
9451 (vbe_mode_in_use): ... this. All users updated.
9452 (mode_list): Rename to ..
9453 (vbe_mode_list): ... this. All users updated.
9454 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9455 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9456 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9457 'mode_list_size' to 'vbe_mode_list_size'.
9458 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9459 'best_mode_info' to 'best_vbe_mode_info' and
9460 'best_mode' to 'best_vbe_mode'
9461
6025fcd7 94622009-08-17 Michal Suchanek <hramrach@centrum.cz>
9463
9464 Remove duplicate grub_video_fb_get_video_ptr.
9465
9466 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9467 (grub_video_fb_get_video_ptr): ... this.
9468 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9469 * video/fb/fbutil.c: Add comment about addressing.
9470 (get_data_ptr): Rename to ...
9471 (grub_video_fb_get_video_ptr): ... this. All users updated.
9472 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9473
cc8c6faf 94742009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9475
9476 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9477 grub_dprintf() that was just added.
9478
08aa61f0 94792009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9480
9481 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9482 (DEFAULT_VIDEO_MODE): Remove macros.
9483 (grub_linux_boot): Remove assumption that Linux has FB support,
9484 and use "text" as default video mode.
9485
7cef4f75 94862009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9489 grub_dprintf.
9490 * fs/fat.c (grub_fat_read_data): Likewise.
9491
e1f39873 94922009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9495 payload.
9496 (grub_module): Likewise.
9497
c166d79e 94982009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9501 mbi->cmdline but free playground.
9502
c60cee8e 95032009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9504
9505 Handle group offset on UFS1.
9506
9507 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9508 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9509
c0d8b5d4 95102009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9511
9512 Split ufs.mod into ufs1.mod and ufs2.mod.
9513
9514 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9515 (grub_fstest_SOURCES): Likewise.
9516 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9517 (ufs_mod_SOURCES): Remove.
9518 (ufs_mod_CFLAGS): Likewise.
9519 (ufs_mod_LDFLAGS): Likewise.
9520 (ufs1_mod_SOURCES): New variable.
9521 (ufs1_mod_CFLAGS): Likewise.
9522 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 9523 (ufs2_mod_SOURCES): New variable.
9524 (ufs2_mod_CFLAGS): Likewise.
9525 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 9526 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9527 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9528 Likewise.
9529 (grub_emu_SOURCES): Likewise.
9530 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9531 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9532 (grub_setup_SOURCES): Likewise.
9533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9534 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9535 (grub_setup_SOURCES): Likewise.
9536 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9537 Likewise.
9538 * fs/ufs2.c: New file.
9539 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9540
d3539132 95412009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9542
9543 Framebuffer split.
9544
9545 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9546 subsystem at the end.
9547 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9548 (video_fb_mod_SOURCES): New variable.
9549 (video_fb_mod_CFLAGS): Likewise.
9550 (video_fb_mod_LDFLAGS): Likewise.
9551 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9552 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9553 * video/i386/pc/vbeblit.c: Moved from here ...
9554 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9555 * video/i386/pc/vbefill.c: Moved from here ...
9556 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9557 * video/i386/pc/vbeutil.c: Moved from here ...
9558 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9559 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9560 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9561 * include/grub/i386/pc/vbefill.h: Moved from here ...
9562 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9563 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9564 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9565 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9566 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9567 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9568 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9569 (grub_video_adapter): Added 'get_info_and_fini'.
9570 (grub_video_get_info_and_fini): New prototype.
9571 (grub_video_set_mode): make modestring const char *.
9572 * loader/i386/linux.c (grub_linux_setup_video): Use
9573 grub_video_get_info_and_fini.
9574 (grub_linux_boot): Move modesetting just before booting.
9575 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9576 grub_video_get_info_and_fini.
9577 * video/i386/pc/vbe.c: Moved framebuffer part ...
9578 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9579 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9580 grub_video_fbstd_colors and grub_video_fb_set_palette.
9581 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9582 grub_video_fb_init.
9583 (grub_video_vbe_fini): Use grub_video_fb_fini.
9584 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9585 render_target and use grub_video_fb_set_active_render_target and
9586 grub_video_fb_set_palette.
9587 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9588 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9589 (grub_video_vbe_adapter): Use framebuffer.
9590 * video/video.c (grub_video_get_info_and_fini): New function.
9591 (grub_video_set_mode): Make modestring const char *.
9592 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9593 values are already initialised.
9594
d404ee56 95952009-08-14 Pavel Roskin <proski@gnu.org>
9596
9597 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9598 ABS and APPLE_CC.
9599 * boot/i386/pc/diskboot.S: Likewise.
9600 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9601 sectors allow compilation on MacOSX.
9602 * conf/i386-pc.rmk: Enable unconditional compilation of
9603 lnxboot.img.
9604
9a10df16 96052009-08-13 Colin Watson <cjwatson@ubuntu.com>
9606
9607 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9608 * util/grub.d/00_header.in: Enter interruptible sleep if
9609 GRUB_HIDDEN_TIMEOUT is set.
9610
be3c9ca7 96112009-08-13 Yves Blusseau <blusseau@zetam.org>
9612
9613 * include/grub/symbol.h: Add the LOCAL macro.
9614 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9615 starting with "L_".
9616
1f9e557e 96172009-08-13 Pavel Roskin <proski@gnu.org>
9618
9ca62843 9619 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9620 any modern compilers we support.
9621
1f9e557e 9622 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9623 Use local labels starting with "L_" so that Apple assembler
9624 knows they are local.
9625
81623db6 96262009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9627
9628 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9629 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9630 (bsd_kernel_types): ... this enum.
9631
9632 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9633 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9634 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9635
9636 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9637 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9638 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9639 messages.
9640
f5d35e7a 96412009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9642
9643 * util/grub-dumpdevtree: Moved from here ...
9644 * util/i386/efi/grub-dumpdevtree: ... to here.
9645 (hexify): New function. Converts a string to its hex version.
9646 Generate hex versions of "efi" and "device-properties" by calling
9647 hexify() on the ASCII strings rather than by hardcoding numbers.
9648
d1e1d527 96492009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9650
9651 * fs/jfs.c: Update copyright year.
9652
1ebbe064 96532009-08-08 Felix Zielcke <fzielcke@z-51.de>
9654
9655 * util/grub.d/00_header.in: Fix a comment.
9656 * util/grub.d/10_linux.in: Likewise.
9657 * util/grub.d/10_windows.in: Likewise.
9658 * util/grub.d/10_hurd.in: Likewise.
9659
a78c8d24 96602009-08-08 Felix Zielcke <fzielcke@z-51.de>
9661
9662 * util/grub-mkconfig.in: Allow the user to specify the used font
9663 with GRUB_FONT.
9664
29a6b9e8 96652009-08-08 Pavel Roskin <proski@gnu.org>
9666
b5f16cc4 9667 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9668 available, xfs.mod needs it now.
9669
2f5cb827 9670 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9671 the "g" modifier in sed when the intention is to strip something
9672 once. This fixes comparison of kernels with multiple dashes.
9673
29a6b9e8 9674 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9675 on it. Add missing space before closing bracket. Fix
9676 misleading formatting.
9677
892a3d98 96782009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9679
9680 * docs/grub.texi: Major overhaul. Remove all sections that are
9681 specific to GRUB Legacy, or mostly composed of Legacy-specific
9682 information.
9683
ed94253f 96842009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9685
9686 * docs/version.texi: New file. Provides version information for
9687 grub.texi.
9688
126d6628 96892009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9690
9691 * docs/grub.texi: Update CVS information to SVN.
9692 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9693
998b5aa9 96942009-08-07 Felix Zielcke <fzielcke@z-51.de>
9695
9696 * util/grub-mkconfig.in: Remove a wrong `fi'.
9697
818e094a 96982009-08-07 Felix Zielcke <fzielcke@z-51.de>
9699
9700 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9701 (grub_jfs_uuid): New function.
9702 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9703
b969c52f 97042009-08-07 Felix Zielcke <fzielcke@z-51.de>
9705
9706 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9707 of it to ...
9708 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9709 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9710
7a4894cc 97112009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9712
9713 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9714 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9715 Update all users.
9716
9717 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9718 not just "vmlinu[zx]".
9719 Moved from here ...
9720 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9721 all users.
9722
9723 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9724 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9725 all users.
9726
4e2171f8 97272009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9728
9729 * util/grub.d/10_freebsd.in: Use an absolute device path for
9730 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9731
6dcfcb32 97322009-08-06 Felix Zielcke <fzielcke@z-51.de>
9733
9734 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9735 handling of multiple abstraction modules.
9736
f56a8756 97372009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9738
9739 Fix a bug resulting in black screen when loading Linux using a
9740 packed video mode.
9741
9742 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9743 function.
9744
9745 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9746 (grub_vbe_bios_getset_dac_palette_width): New function.
9747 (grub_vbe_bios_get_dac_palette_width)
9748 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9749 grub_vbe_bios_getset_dac_palette_width()).
9750
9751 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9752 check for return status.
9753 (grub_vbe_get_video_mode_info): When getting information for a packed
9754 mode (<= 8 bpp), obtain DAC palette width using
9755 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9756 {red,green,blue}_mark_size.
9757
222671b2 97582009-08-04 Felix Zielcke <fzielcke@z-51.de>
9759
ecb1a6d9 9760 * commands/search.c (options): Fix help output to match actual code.
222671b2 9761
f84114f5 97622009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9763
9764 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9765 of homegrown code.
9766
bd288a20 97672009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 9768
9769 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9770 on XFS or ReiserFS.
9771
8aab5e25 97722009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9773
9774 Support Apple partition map with sector size different from 512 bytes.
9775
9776 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9777 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9778 and 'apart.partmap_size'.
9779
6ad6258a 97802009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
97812009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9782
9783 Fix cpuid command.
9784
9785 * commands/i386/cpuid.c (options): New variable.
9786 (grub_cmd_cpuid): Return real error.
9787 (GRUB_MOD_INIT(cpuid)): Declare options.
9788
67459bc6 97892009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9792 valid.
9793
fbc6ab54 97942009-07-31 Bean <bean123ch@gmail.com>
9795
9796 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9797 log2_inode.
9798 (grub_fshelp_node): Move inode field to the end.
9799 (grub_xfs_data): Remove inode field.
9800 (grub_xfs_inode_block): Calculate inode size using sblock.
9801 (grub_xfs_inode_offset): Likewise.
9802 (grub_xfs_read_inode): Calculate inode size using sblock.
9803 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9804 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9805 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9806 to match inode size.
9807 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9808 not accessible when data is null.
9809 (grub_xfs_open): Likewise.
9810
f45d6cfc 98112009-07-31 Bean <bean123ch@gmail.com>
9812
9813 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9814 Don't change pv->disk if it's already set.
9815
9816 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9817 (grub_raid_register): ... here.
9818 (grub_raid_rescan): Removed.
9819
9820 * include/grub/raid.h (grub_raid_rescan): Removed.
9821
9822 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9823 (fstest): Replace grub_raid_rescan with module fini function followed
9824 by init function.
9825
9826 * util/grub-probe.c: Add include file <grub/raid.h>.
9827 (probe_raid_level): New function.
9828 (probe): Detect abstraction by walking the disk device, support two
9829 level of abstraction (LVM on RAID) when detecting partition map.
9830
24443b5a 98312009-07-31 Pavel Roskin <proski@gnu.org>
9832
9833 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9834 to grub_zalloc(), it was erroneous.
9835 Reported by Bean <bean123ch@gmail.com>
9836
a275d9e7 98372009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 9840 embedding zone, not only the first one.
a275d9e7 9841
56c5a47f 98422009-07-29 Joe Auricchio <jauricchio@gmail.com>
9843
9844 * term/gfxterm.c (clear_char): New function.
9845 (grub_virtual_screen_setup): Use clear_char.
9846 (scroll_up): Likewise.
9847 (grub_virtual_screen_cls): Likewise.
9848
67bb323a 98492009-07-29 Felix Zielcke <fzielcke@z-51.de>
9850
9851 * util/deviceiter.c (get_acceleraid_disk_name): New static
9852 function.
9853 (grub_util_iterate_devices): Handle Accelraid devices.
9854 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9855
388a7c75 98562009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9857
9858 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9859 separator for the suggested gfxpayload string (';' collides with the
9860 parser and needs escaping).
9861
3bb7abcf 98622009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9865 Clear direction flag before jumping to OS.
9866 (grub_multiboot2_real_boot): Likewise.
9867
2ddd36d7 98682009-07-28 Felix Zielcke <fzielcke@z-51.de>
9869
9870 * util/i386/pc/grub-install: Fix parsing of --disk-module
9871 option.
9872
c521b62b 98732009-07-28 Felix Zielcke <fzielcke@z-51.de>
9874
9875 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9876 when embedding.
9877
880e0a0c 98782009-07-26 Felix Zielcke <fzielcke@z-51.de>
9879
9880 * util/grub-mkconfig.in (package_version): New variable.
9881 Use it do display the version.
9882
2366e356 98832009-07-25 Felix Zielcke <fzielcke@z-51.de>
9884
9885 * kern/file.c (grub_file_open): Revert to previous check with
9886 grub_errno.
9887
7ad8c80e 98882009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9891 from help line. It's out of sync with code.
9892
72b9658b 98932009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9896 entries on failed boot.
9897
77435277 98982009-07-25 Felix Zielcke <fzielcke@z-51.de>
9899
9900 * kern/file.c (grub_file_open): Fix an error check.
9901
fcaa8b21 99022009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9903
35d16c74 9904 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9905 partition map couldn't be identified.
fcaa8b21 9906
48904cd1 99072009-07-23 Pavel Roskin <proski@gnu.org>
9908
ef3c317f 9909 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9910 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9911 case of little endian words becomes just an optimization.
9912 Respect const modifier.
ad8ea1f4 9913 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 9914
48904cd1 9915 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9916 to avoid loss of upper bits if align is unsigned and shorter
9917 than addr.
9918
260c9a89 99192009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 UUID support for UFS
9922
9923 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9924 (grub_ufs_uuid): New function.
9925 (grub_ufs_fs): add .uuid
9926
f76ce889 99272009-07-21 Pavel Roskin <proski@gnu.org>
9928
9929 * kern/dl.c (grub_dl_check_header): Make static.
9930
6a6cbcaf 99312009-07-21 Felix Zielcke <fzielcke@z-51.de>
9932
9933 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9934 add drivemap for Vista. It breaks Windows 7.
9935
cffcddb2 99362009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9937
9938 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9939 128 bytes
9940
1ef44b80 99412009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 Add BFS support
9944
9945 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9946 (grub_fstest_SOURCES): Likewise.
9947 (pkglib_MODULES): Add befs.mod.
9948 (befs_mod_SOURCES): New variable.
9949 (befs_mod_CFLAGS): Likewise.
9950 (befs_mod_LDFLAGS): Likewise.
9951 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9952 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9953 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9954 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9955 (grub_setup_SOURCES): Likewise.
9956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9957 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9958 (grub_setup_SOURCES): Likewise.
9959 * fs/befs.c: New file.
9960 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9961 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9962 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9963 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9964 (B_KEY_INDEX_ALIGN): New declaration.
9965 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9966 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9967 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9968 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9969 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9970 (grub_afs_mount) [MODE_BFS]: Likewise.
9971 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9972 (grub_afs_fs): Use GRUB_AFS_FSNAME
9973 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9974 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9975 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9976 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9977
4f253044 99782009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9979
9980 * util/getroot.c (find_root_device): Add support for MacOSX.
9981 * util/hostdisk.c: Likewise.
9982
57a55913 99832009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * font/font.c (find_glyph): Check whether a font is present to avoid
9986 segmentation fault.
75421ca9 9987
99882009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 9989
9990 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9991
e98cd0c2 99922009-07-20 Pavel Roskin <proski@gnu.org>
9993
9994 * configure.ac: Trim excessively wordy excuses.
9995
1d2d169a 99962009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 Add symlink, mtime and label support to AtheFS.
9999
10000 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
10001 (grub_afs_iterate_dir): Handle symlinks.
10002 (grub_afs_open): Use grub_afs_read_symlink.
10003 (grub_afs_dir): Likewise.
10004 Pass mtime.
10005 (grub_afs_label): New function.
10006 (grub_afs_fs): Add grub_afs_label.
10007 (grub_afs_read_symlink): New function.
10008
186f3189 100092009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10010
10011 Fix AtheFS support.
10012
10013 * fs/afs.c: Fix comments style.
10014 (grub_afs_blockrun): Declare as packed.
10015 (grub_afs_datastream): Likewise.
10016 (grub_afs_bnode): Likewise.
10017 (grub_afs_btree): Likewise.
10018 (grub_afs_sblock): Likewise.
10019 Declare `name' as char.
10020 (grub_afs_inode): Declare as packed.
10021 Change void *vnode to grub_uint32_t unused.
10022 (grub_afs_iterate_dir): Check that key_size is positive.
10023 (grub_afs_mount): Don't read superblock twice.
75421ca9 10024 (grub_afs_dir): Don't free node in case of error,
186f3189 10025 grub_fshelp_find_file already handles this.
10026 (grub_afs_open): Likewise.
10027
5680109e 100282009-07-19 Pavel Roskin <proski@gnu.org>
10029
10030 * Makefile.in: Remove LIBLZO and enable_lzo.
10031 * conf/i386-pc.rmk: Remove lzo support.
10032 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
10033 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
10034 support.
10035 * kern/i386/pc/lzo1x.S: Remove.
10036 * kern/i386/pc/startup.S: Remove lzo support.
10037 * util/i386/pc/grub-mkimage.c: Likewise.
10038
ac70fa32 100392009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
10040
10041 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
10042 * fs/xfs.c (grub_xfs_dir): Likewise.
10043 * fs/afs.c (grub_afs_dir): Likewise.
10044 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10045 (grub_iso9660_open): Likewise.
10046 * fs/jfs.c (grub_jfs_open): Likewise.
10047 * fs/ext2.c (grub_ext2_dir): Likewise.
10048 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
10049 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 10050
eab58da2 100512009-07-16 Pavel Roskin <proski@gnu.org>
10052
d2838156 10053 * configure.ac: Never add "-c" to CFLAGS.
10054
55c70904 10055 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
10056
43e6200c 10057 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
10058 grub_cv_cc_efiemu should be used.
10059
ce7a733d 10060 * configure.ac: Typo fixes.
10061
eab58da2 10062 * kern/mm.c (grub_zalloc): New function.
10063 (grub_debug_zalloc): Likewise.
10064 * include/grub/mm.h: Declare grub_zalloc() and
10065 grub_debug_zalloc().
10066 * util/misc.c (grub_zalloc): New function.
10067 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
10068 instead of grub_malloc(), remove unneeded initializations.
10069 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
10070 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
10071 * commands/parttool.c (grub_cmd_parttool): Likewise.
10072 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10073 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
10074 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
10075 * disk/usbms.c (grub_usbms_finddevs): Likewise.
10076 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
10077 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
10078 (grub_cmd_efiemu_pnvram): Likewise.
10079 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
10080 * fs/iso9660.c (grub_iso9660_mount): Likewise.
10081 (grub_iso9660_iterate_dir): Likewise.
10082 * fs/jfs.c (grub_jfs_opendir): Likewise.
10083 * fs/ntfs.c (list_file): Likewise.
10084 (grub_ntfs_mount): Likewise.
10085 * kern/disk.c (grub_disk_open): Likewise.
10086 * kern/dl.c (grub_dl_load_core): Likewise.
10087 * kern/elf.c (grub_elf_file): Likewise.
10088 * kern/env.c (grub_env_context_open): Likewise.
10089 (grub_env_set): Likewise.
10090 (grub_env_set_data_slot): Likewise.
10091 * kern/file.c (grub_file_open): Likewise.
10092 * kern/fs.c (grub_fs_blocklist_open): Likewise.
10093 * loader/i386/multiboot.c (grub_module): Likewise.
10094 * loader/xnu.c (grub_xnu_create_key): Likewise.
10095 (grub_xnu_create_value): Likewise.
10096 * normal/main.c (grub_normal_add_menu_entry): Likewise.
10097 (read_config_file): Likewise.
10098 * normal/menu_entry.c (make_screen): Likewise.
10099 * partmap/sun.c (sun_partition_map_iterate): Likewise.
10100 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
10101 * script/sh/script.c (grub_script_parse): Likewise.
10102 * video/bitmap.c (grub_video_bitmap_create): Likewise.
10103 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10104 * video/readers/png.c (grub_png_output_byte): Likewise.
10105 (grub_video_reader_png): Likewise.
10106
830afef7 101072009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 10108
10109 Enable all targets that can be built by default
10110
830afef7 10111 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 10112 grub-mkfont and grub-fstest if they can be built
10113
ee293aee 101142009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 Fix hang and segmentation fault in grub-emu-usb
10117
10118 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
10119 * util/usb.c (grub_libusb_devices): likewise
10120 (grub_libusb_init): rename to ...
10121 (GRUB_MOD_INIT (libusb)):...this
10122 (grub_libusb_fini): rename to ..
10123 (GRUB_MOD_FINI (libusb)):...this
10124 * disk/usbms.c (grub_usbms_transfer): fix retry logic
10125 * include/grub/disk.h (grub_raid_init): removed, it's useless
10126 (grub_raid_fini): likewise
10127 (grub_lvm_init): likewise
10128 (grub_lvm_fini): likewise
10129 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
10130 by grub_init_all
10131
94414221 101322009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10133
10134 Fix libusb
10135
10136 * Makefile.in (LIBUSB): new macro
10137 * genmk.rb (Utility/print_tail): new method
10138 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
10139 (top level): call util.print_tail at the end.
10140
59ade63d 101412009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10142
10143 Make FreeBSD accept zpool.cache
10144
10145 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
10146 type is /boot/zfs/zpool.cache
10147
a58da8c7 101482009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 Fix 64-bit efiemu
10151
10152 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
10153 correct wrong typedef
10154 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
10155
20591577 101562009-07-15 Pavel Roskin <proski@gnu.org>
10157
560ca572 10158 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
10159 * kern/disk.c (struct grub_disk_cache): Likewise.
10160
e8e8e4fd 10161 * commands/probe.c (options): Typo fix.
10162
fde24e10 10163 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
10164 Increase to 0x5a to accommodate FAT32. Adjust other offsets
10165 accordingly.
10166 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
10167
379c54c1 10168 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
10169 the end of "Error" to make the message more readable.
10170
7bd8f5bf 10171 * boot/i386/pc/boot.S (kernel_segment): Remove.
10172 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
10173 for destination.
10174
40b132c5 10175 * boot/i386/pc/boot.S (boot_version): Remove.
10176 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10177 Remove.
10178
20591577 10179 * include/grub/i386/pc/boot.h: Sort all offsets.
10180 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
10181 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
10182 * boot/i386/pc/boot.S: Assert location of every offset listed in
10183 include/grub/i386/pc/boot.h.
10184
2df32b2c 101852009-07-13 Pavel Roskin <proski@gnu.org>
10186
44b5d879 10187 * include/grub/i386/coreboot/machine.h: Rename
10188 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
10189 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
10190 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
10191
17dc3751 10192 * kern/dl.c: Force native word size to suppress warnings when
10193 compiling grub-emu.
10194
2df32b2c 10195 * kern/device.c (grub_device_iterate): Change struct part_ent to
10196 hold the name, not a pointer to it. Use one grub_malloc() per
10197 partition, not two. Free partition_name if grub_malloc() fails.
10198 Set ents to NULL only before grub_partition_iterate() is called.
10199
75c59f59 102002009-07-11 Bean <bean123ch@gmail.com>
10201
10202 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
10203 childname.
10204
0ae1bf88 102052009-07-10 Bean <bean123ch@gmail.com>
102062009-07-10 Robert Millan <rmh.grub@aybabtu.com>
10207
10208 * kern/ieee1275/openfw.c (grub_children_iterate)
10209 (grub_devalias_iterate): Fix size evaluation for property or path
10210 strings, which was broken since r2132.
10211
8279cade 102122009-07-07 Pavel Roskin <proski@gnu.org>
10213
7d8a52d3 10214 * commands/search.c (search_file): Merge into ...
10215 (search_fs): ... this. Accept search type as argument.
10216 (grub_cmd_search): Pass search type to search_fs().
10217
25f9a05a 10218 * include/grub/util/console.h: New file.
10219 * util/console.c: Use it instead of grub/machine/console.h.
10220 * util/grub-emu.c: Likewise.
10221
8279cade 10222 * lib/arg.c (find_long_option): Remove.
10223 (find_long): Add `len' argument, make `s' const char *.
10224 (grub_arg_parse): Parse long options in place, not in a
10225 temporary buffer.
10226
4a11b60f 102272009-07-06 Pavel Roskin <proski@gnu.org>
10228
99f68041 10229 * commands/search.c (search_fs): Fix potential NULL pointer
10230 dereference.
10231
4a11b60f 10232 * commands/search.c (search_fs): Replace QUID macro with quid_fn
10233 function pointer.
10234
e110f4de 102352009-07-06 Daniel Mierswa <impulze@impulze.org>
10236
10237 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
10238 comparison.
10239
46eeb6a2 102402009-07-05 Pavel Roskin <proski@gnu.org>
10241
bab74958 10242 * include/grub/i386/linux.h (struct linux_kernel_params):
10243 Restore padding3, it's still needed.
10244
46eeb6a2 10245 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
10246 FreeBSD.
10247 * util/osdetect.lua: Likewise.
10248
b4a1dc79 102492009-07-05 Bean <bean123ch@gmail.com>
10250
10251 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
10252
10253 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
10254 (grub_lua_getenv): Likewise.
10255 (grub_lua_setenv): Likewise.
10256 (save_errno): New function.
10257 (push_result): Likewise.
10258 (grub_lua_enum_device): Likewise.
10259 (grub_lua_enum_file): Likewise.
10260 (grub_lua_file_open): Likewise.
10261 (grub_lua_file_close): Likewise.
10262 (grub_lua_file_seek): Likewise.
10263 (grub_lua_file_read): Likewise.
10264 (grub_lua_file_getline): Likewise.
10265 (grub_lua_file_getsize): Likewise.
10266 (grub_lua_file_getpos): Likewise.
10267 (grub_lua_file_eof): Likewise.
10268 (grub_lua_file_exist): Likewise.
10269 (grub_lua_add_menu): Likewise.
10270
10271 * script/lua/grub_lua.h (isupper): New inline function.
10272 (islower): Likewise.
10273 (ispunct): Likewise.
10274 (isxdigit): Likewise.
10275 (strcspn): Change to normal function.
10276 (strpbkr): New function declaration.
10277 (memchr): Likewise.
10278
10279 * script/lua/grub_main.c (scan_str): New function.
10280 (strcspn): Likewise.
10281 (strpbrk): Likewise.
10282 (memchr): Likewise.
10283
10284 * script/lua/linit.c (lualibs): Enable the string library.
10285
10286 * util/osdetect.lua: New file.
10287
2da92295 102882009-07-04 Robert Millan <rmh.grub@aybabtu.com>
10289
10290 * include/grub/i386/linux.h (struct linux_kernel_params): Add
10291 `capabilities' member.
10292
b2582ec9 102932009-07-02 Pavel Roskin <proski@gnu.org>
10294
10295 * genparttoollist.sh: Add missing newline at the end.
10296
32622956 102972009-07-01 Pavel Roskin <proski@gnu.org>
10298
87a7339e 10299 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
10300
d23af54e 10301 * util/hostdisk.c (open_device): Remove `const' from
10302 `sysctl_size', as sysctlbyname() can change it (in this case it
10303 doesn't actually happen).
10304
c94b18a9 10305 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
10306 using signed long int constants.
10307
c6cd3ef0 10308 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
10309 constant to avoid a warning on FreeBSD.
10310
0df63420 10311 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
10312 where it's needed.
10313
999577f1 10314 * Makefile.in: Install include/grub/machine symlink.
10315
6f41557f 10316 * Makefile.in: When installing symlinks, use "cp -fR", which
10317 works on FreeBSD and MacOSX.
10318 From Yves Blusseau <cl7m42e02@sneakemail.com>
10319
c8d22988 10320 * kern/dl.c (grub_dl_resolve_symbol): Make static.
10321 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
10322
1b96e952 10323 * util/misc.c: Move grub_reboot() and grub_halt() ...
10324 * util/grub-emu.c: ... here. Make main_env static.
10325 * include/grub/util/misc.h: Remove main_env.
10326
2ef0084d 10327 * kern/mm.c: Use correct format to print size_t.
10328
32622956 10329 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
10330 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
10331 * kern/powerpc/dl.c: Likewise.
10332 * kern/sparc64/dl.c: Likewise.
10333 * kern/x86_64/dl.c: Likewise.
10334
3f7f0cd0 103352009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10336
10337 Fix grub-emu build on sparc64-ieee1275.
10338
75421ca9 10339 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 10340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
10341
211d06b5 103422009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10343
10344 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
10345 (grub_reboot, grub_halt): New functions.
10346
10347 * util/i386/pc/misc.c: Delete. Update all users.
10348 * util/sparc64/ieee1275/misc.c: Likewise.
10349 * util/powerpc/ieee1275/misc.c: Likewise.
10350
aaf53e3c 103512009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10352
10353 * conf/i386.rmk (setjmp_mod_SOURCES)
10354 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
10355 * conf/common.rmk (setjmp_mod_SOURCES)
10356 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
10357 to use $(target_cpu).
10358 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
10359 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
10360 * conf/powerpc-ieee1275.rmk: Likewise.
10361 * conf/sparc64-ieee1275.rmk: Likewise.
10362
10363 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
10364 $(target_cpu) for kern/$(target_cpu)/dl.c.
10365 * conf/i386-efi.rmk: Likewise.
10366 * conf/i386-ieee1275.rmk: Likewise.
10367 * conf/x86_64-efi.rmk: Likewise.
10368 * conf/i386-coreboot.rmk: Likewise.
10369 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
10370 $(target_cpu) for kern/$(target_cpu)/dl.c and for
10371 kern/$(target_cpu)/cache.S.
10372 * conf/sparc64-ieee1275.rmk: Likewise.
10373
a337130b 103742009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10375
10376 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10377 type to `grub_uint8_t', and adjust `padding9' accordingly.
10378
c6fe4d53 103792009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10380
b09db61d 10381 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10382
c6fe4d53 10383 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10384 assembly in final jump, using register constraints.
10385
b09db61d 10386 (grub_linux_boot): For text mode, initialize `have_vga' using
10387 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10388
10389 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10390 right before the final jump.
10391
10392 Set `video_mode' to 0x3.
10393
10394 Document initialization of `video_page', `video_mode' and
10395 `video_ega_bx'.
10396
28333ad0 103972009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10398
10399 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10400 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 10401 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 10402
02164e1b 104032009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10404
10405 Fix build on Debian / sparc.
10406
10407 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10408
18b6c557 104092009-06-28 Pavel Roskin <proski@gnu.org>
10410
85f2aab6 10411 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10412 fix a warning.
10413
18b6c557 10414 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10415
ad760f81 104162009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10417
10418 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10419 `err'.
10420
87a4623b 104212009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10422
10423 Revert r2338.
10424
10425 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10426 file can't be opened. grub_file_open() is already supposed to set
75421ca9 10427 grub_errno / grub_errmsg appropriately.
87a4623b 10428 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10429
8231fb77 104302009-06-27 Pavel Roskin <proski@gnu.org>
104312009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10432
10433 * include/grub/dl.h: Include grub/elf.h.
10434 (struct grub_dl): Add symtab field.
10435 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10436 GRUB_MODULES_MACHINE_READONLY.
10437 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10438 of the header for read-only modules.
10439 (grub_dl_unload): Free mod->symtab for read-only modules.
10440 * kern/i386/dl.c: Use mod->symtab.
10441 * kern/powerpc/dl.c: Likewise.
10442 * kern/sparc64/dl.c: Likewise.
10443 * kern/x86_64/dl.c: Likewise.
10444
10445 * conf/i386-qemu.rmk: New file.
10446 * kern/i386/qemu/startup.S: Likewise.
10447 * kern/i386/qemu/mmap.c: Likewise.
10448 * boot/i386/qemu/boot.S: Likewise.
10449 * include/grub/i386/qemu/time.h: Likewise.
10450 * include/grub/i386/qemu/serial.h: Likewise.
10451 * include/grub/i386/qemu/kernel.h: Likewise.
10452 * include/grub/i386/qemu/console.h: Likewise.
10453 * include/grub/i386/qemu/boot.h: Likewise.
10454 * include/grub/i386/qemu/init.h: Likewise.
10455 * include/grub/i386/qemu/machine.h: Likewise.
10456 * include/grub/i386/qemu/loader.h: Likewise.
10457 * include/grub/i386/qemu/memory.h: Likewise.
10458
10459 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10460 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10461 [qemu] (pkglib_IMAGES): Add `boot.img'.
10462 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10463 [qemu] (boot_img_FORMAT): New variables.
10464 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10465 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10466 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10467 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10468 [qemu] (kernel_img_FORMAT): New variables.
10469
10470 * configure.ac: Recognise `i386-qemu'.
10471
10472 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10473 (for no compression).
10474 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10475 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10476 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10477 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10478 ifdefs).
10479
97fe384e 104802009-06-27 Pavel Roskin <proski@gnu.org>
10481
10482 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10483 read.
10484 * efiemu/prepare32.c: Likewise.
10485 * efiemu/prepare64.c: Likewise.
10486
c402ab17 104872009-06-26 Pavel Roskin <proski@gnu.org>
10488
10489 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10490 * include/grub/elf.h: Define symbols without "32" or "64" based
10491 on GRUB_TARGET_WORDSIZE.
10492 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10493 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10494 ELF definitions.
10495 * efiemu/loadcore64.c: Likewise.
10496 * loader/i386/bsd32.c: Likewise.
10497 * loader/i386/bsd64.c: Likewise.
10498 * kern/dl.c: Remove own ELF definitions.
10499 * util/i386/efi/grub-mkimage.c: Likewise.
10500
9bbdfd4d 105012009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10502
10503 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10504 segment 0x0 unconditionally, because the reference generated by
10505 GAS is an absolute address.
10506
a42ce6e9 105072009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10508
10509 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10510 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10511
c952cf92 105122009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10513
10514 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10515 indexes. Check for -f explicitly.
cc3752ad 10516 (search_file): Improve error message.
10517 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 10518
132a0a59 105192009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10520
10521 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10522 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10523
387a140c 105242009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10525
10526 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10527 * conf/i386-ieee1275.rmk: Likewise.
10528 * conf/i386-coreboot.rmk: Likewise.
10529
10530 * kern/i386/pc/startup.S (grub_stop): Remove function.
10531 * kern/i386/ieee1275/startup.S: Likewise.
10532 * kern/i386/coreboot/startup.S: Likewise.
10533 * kern/i386/misc.S (grub_stop): New function.
10534
41da9665 105352009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10536
10537 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10538 * kern/i386/realmode.S (real_to_prot): ... to here.
10539
bf337234 105402009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10541
10542 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10543 with `kernel.img'.
10544 (kernel_elf_SOURCES): Rename to ...
10545 (kernel_img_SOURCES): ... this.
10546 (kernel_elf_HEADERS): Rename to ...
10547 (kernel_img_HEADERS): ... this. Update all users.
10548 (kernel_elf_ASFLAGS): Rename to ...
10549 (kernel_img_ASFLAGS): ... this.
10550 (kernel_elf_CFLAGS): Rename to ...
10551 (kernel_img_CFLAGS): ... this.
10552 (kernel_elf_LDFLAGS): Rename to ...
10553 (kernel_img_LDFLAGS): ... this.
10554 * conf/i386-coreboot.rmk: Likewise.
10555 * conf/powerpc-ieee1275.rmk: Likewise.
10556
10557 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10558 with "kernel.img".
10559
f52196ff 105602009-06-21 Pavel Roskin <proski@gnu.org>
10561
c3cee413 10562 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10563 to match nested functions.
10564 * loader/sparc64/ieee1275/linux.c: Likewise.
10565
f52196ff 10566 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10567
58750afc 105682009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10569
10570 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10571 all i386 platforms.
10572
15355c7d 105732009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10574
10575 Fix asm file handling on ELF, and remove workarounds.
10576
10577 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 10578 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 10579 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10580 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10581
3f3ec72b 105822009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 Load BSD ELF modules
10585
10586 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10587 and loader/i386/bsd64.c
10588 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10589 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10590 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10591 (grub_freebsd_load_elfmodule32): New declaration
10592 (grub_freebsd_load_elfmoduleobj64): Likewise
10593 (grub_freebsd_load_elf_meta32): Likewise
10594 (grub_freebsd_load_elf_meta64): Likewise
10595 (grub_freebsd_add_meta): Likewise
10596 (grub_freebsd_add_meta_module): Likewise
10597 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10598 (grub_freebsd_add_meta_module): Likewise and move module-specific
10599 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10600 (grub_cmd_freebsd): Add elf-kernel specific parts
10601 based on grub_freebsd_add_meta_module
10602 (grub_cmd_freebsd_module): Add type parsing moved from
10603 grub_freebsd_add_meta_module
10604 (grub_cmd_freebsd_module_elf): New function
10605 (cmd_freebsd_module_elf): New variable
10606 (GRUB_MOD_INIT): Register freebsd_module_elf
10607 * loader/i386/bsd32.c: New file
10608 * loader/i386/bsd64.c: Likewise
10609 * loader/i386/bsdXX.c: Likewise
10610 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10611 (grub_elf64_load): Likewise
10612 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10613 All users updated
10614 (grub_elf64_load_hook_t): Likewise
10615
0db15301 106162009-06-21 Colin Watson <cjwatson@ubuntu.com>
10617
10618 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10619 variable.
10620 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10621 don't write a menu entry for recovery mode.
10622
546796c1 106232009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10624
10625 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10626 after it's no longer needed.
10627
cd7310d5 106282009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10629
10630 * include/grub/i386/loader.h (grub_linux_prot_size)
10631 (grub_linux_tmp_addr, grub_linux_real_addr)
10632 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10633 GRUB_MACHINE_PCBIOS.
10634 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10635 common grub_util_info() call to ...
10636 (generate_image): ... here.
10637 Fix use of uninitialized memory, comparison of signed with
10638 unsigned integers and memory leak.
10639 Remove bogus module address message.
10640
ab32d3b5 106412009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10642
10643 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10644 grub_raid_register
10645 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10646
024ef597 106472009-06-19 Pavel Roskin <proski@gnu.org>
10648
10649 * configure.ac: Remove stray AC_MSG_CHECKING.
10650
3ac72b51 106512009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 10654
e14cd814 106552009-06-18 Pavel Roskin <proski@gnu.org>
10656
10657 * conf/common.rmk: Add fs_file.mod.
10658 * disk/fs_file.c: New file.
10659 * include/grub/disk.h (enum grub_disk_dev_id): Add
10660 GRUB_DISK_DEVICE_FILE_ID.
10661
26586d98 106622009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10663
10664 Fix build with Apple's toolchain. Part 2
10665
10666 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10667 a fake start
10668
26de2bcd 106692009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10670
10671 Fix build with Apple's toolchain. Part 1
10672
10673 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10674 for long calls
10675 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 10676 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 10677 Apple's toolchain
10678
09b3490b 106792009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 Fix warnings
10682
10683 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10684 (decomp_block): initialize ch
10685 use grub_memcpy instead of memcpy
10686
c22a006a 106872009-06-17 Pavel Roskin <proski@gnu.org>
10688
d3638678 10689 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10690 version, use declarations needed to use vga_text as the startup
10691 console.
10692
c22a006a 10693 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10694 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10695 the kernel.
10696 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10697 and grub_at_keyboard_fini(), it's done on module load and
10698 unload.
10699
05b129e0 107002009-06-17 Felix Zielcke <fzielcke@z-51.de>
10701
10702 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10703 file can't be found.
10704 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10705
cf24ed9e 107062009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 Fix newline handling
10709
10710 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 10711 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 10712 (grub_script_yylex): don't segfault on unterminated script
10713 newline terminates command and variable
10714
74aa8e4b 107152009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 avoid double grub_adjust_range call. Bug reported by David Simner
10718
10719 * kern/disk.c (grub_disk_write): change to raw disk access before
10720 calling disk_read
10721
1bd265f3 107222009-06-17 Colin Watson <cjwatson@ubuntu.com>
10723
10724 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10725 spaces, for the benefit of help2man.
10726 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10727
a2d08c06 107282009-06-16 Pavel Roskin <proski@gnu.org>
10729
10730 * kern/i386/halt.c: Include grub/machine/init.h.
10731 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10732
b97bcb19 107332009-06-16 Felix Zielcke <fzielcke@z-51.de>
10734
10735 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10736 drivemap menuentry.
10737
0644f96c 107382009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10739
10740 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10741 `echo' command.
10742
3ef17a2e 107432009-06-16 Pavel Roskin <proski@gnu.org>
10744
10745 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10746 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10747 save %dx, we only need %dl and we never change it.
10748 * boot/i386/pc/cdboot.S: Don't set the root drive.
10749 * boot/i386/pc/pxeboot.S: Likewise.
10750 * include/grub/i386/pc/boot.h: Remove
10751 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10752 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10753 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10754 * kern/i386/pc/init.c (make_install_device): Remove references
10755 to grub_root_drive.
10756 * kern/i386/pc/startup.S: Likewise.
10757 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10758
693fe637 107592009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 xnu_uuid command
10762
10763 * commands/xnu_uuid.c: new file
10764 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10765 (xnu_uuid_mod_SOURCES): new variable
10766 (xnu_uuid_mod_CFLAGS): likewise
10767 (xnu_uuid_mod_LDFLAGS): likewise
10768 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10769 * conf/i386-ieee1275.rmk: likewise
10770 * conf/i386-pc.rmk: likewise
10771 * conf/powerpc-ieee1275.rmk: likewise
10772 * conf/sparc64-ieee1275.rmk: likewise
10773 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10774
c9da87d0 107752009-06-16 Pavel Roskin <proski@gnu.org>
10776
10777 * configure.ac: Avoid '==' in test command, it's not portable.
10778
9c6f4596 107792009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 Probe command
10782
10783 * commands/probe.c: new file
10784 * conf/common.rmk (pkglib_MODULES): add probe.mod
10785 (probe_mod_SOURCES): new variable
10786 (probe_mod_CFLAGS): likewise
10787 (probe_mod_LDFLAGS): likewise
10788 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10789 * conf/i386-ieee1275.rmk: likewise
10790 * conf/i386-pc.rmk: likewise
10791 * conf/powerpc-ieee1275.rmk: likewise
10792 * conf/sparc64-ieee1275.rmk: likewise
10793
70b7f9fd 107942009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 Fix handling of string like \"hello\" and "a
10797 b"
10798
10799 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10800 (grub_script_yylex): fix parsing of quoting, escaping and newline
10801
71c79a6b 108022009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10803
dd74360c 10804 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 10805 handling
dd74360c 10806
0644f96c 108072009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 10808
10809 * util/grub-mkconfig.in: Fix parsing of --output option.
10810
e40893c3 108112009-06-12 Pavel Roskin <proski@gnu.org>
10812
10813 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10814 genmk.rb don't need to be generated or installed.
10815
3a1acfe2 108162009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10817
10818 * commands/i386/pc/drivemap_int13h.S: add more comments
10819
3a4575d4 108202009-06-11 Pavel Roskin <proski@gnu.org>
10821
0658e928 10822 * Makefile.in (uninstall): Uninstall manuals.
10823
ca0388f0 10824 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10825 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10826 and update-grub_lib in two places.
10827 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10828
e3b27c39 10829 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10830 a compiler warning.
10831
3a4575d4 10832 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10833 `entry_lo' to fix variable shadowing.
10834
af1f4f55 108352009-06-11 Christian Franke <franke@computer.org>
10836
10837 * kern/misc.c (__enable_execute_stack): Add missing return type
10838 to prevent gcc warning.
10839
5225e649 108402009-06-11 Felix Zielcke <fzielcke@z-51.de>
10841
10842 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10843
7d83bd47 108442009-06-11 Pavel Roskin <proski@gnu.org>
10845
c1cb63ba 10846 * Makefile.in: Don't rely on any scripts being executable.
10847 Always use $(SHELL) to run shell scripts.
10848
7d83bd47 10849 * configure.ac: Always define ___main if using -nostdlib. This
10850 fixes tests on Cygwin.
10851
948f48e7 108522009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10853
10854 UDF fix
10855
7d83bd47 10856 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 10857 is in bytes and not in blocks
7d83bd47 10858
8ada9bc1 108592009-06-11 Pavel Roskin <proski@gnu.org>
10860
10861 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10862 warning.
10863
25ad2323 108642009-06-11 Felix Zielcke <fzielcke@z-51.de>
10865
10866 * util/grub.d/30_os-prober.in: Fix a comment. Source
10867 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10868 to set the root device. Place drivemap command in the generated
10869 chain entry.
10870
e65acb0c 108712009-06-11 Pavel Roskin <proski@gnu.org>
10872
10873 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10874 have long been resolved.
10875
f285fe2d 108762009-06-11 Colin Watson <cjwatson@ubuntu.com>
10877
bd47b0b5 10878 * util/grub.d/10_linux.in: Capitalise "Linux".
10879
f285fe2d 10880 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10881
a0c62e4e 108822009-06-11 Pavel Roskin <proski@gnu.org>
10883
b6783cb2 10884 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10885 fix a gcc warning and ensure that the function won't ever exit.
10886
dde032e8 10887 * kern/i386/ieee1275/init.c: Add missing prototype for
10888 grub_stop_floppy().
10889
22cd079d 10890 * loader/ieee1275/multiboot2.c [__i386__]: Include
10891 grub/cpu/multiboot.h.
10892
a0c62e4e 10893 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10894 casts to short - they are not portable and cause warnings. Fix
10895 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10896
63963d17 108972009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 Drivemap fixes
10900
10901 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10902 new function
10903 (grub_get_root_biosnumber_saved): new variable
10904 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10905 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 10906 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 10907 %dx after the call if necessary
10908 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10909 (boot_mod_SOURCES): remove
10910 (boot_mod_CFLAGS): remove
10911 (boot_mod_LDFLAGS): remove
10912 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10913 (boot_mod_SOURCES): new variable
10914 (boot_mod_CFLAGS): likewise
10915 (boot_mod_LDFLAGS): likewise
10916 * conf/i386-efi.rmk: likewise
10917 * conf/i386-ieee1275.rmk: likewise
10918 * conf/i386-pc.rmk: likewise
10919 * conf/powerpc-ieee1275.rmk: likewise
10920 * conf/sparc64-ieee1275.rmk: likewise
10921 * conf/x86_64-efi.rmk: likewise
10922 * include/grub/i386/pc/biosnum.h: new file
10923 * lib/i386/pc/biosnum.c: likewise
10924 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10925 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10926 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 10927
33abf7ae 109282009-06-10 Pavel Roskin <proski@gnu.org>
10929
5ac35b35 10930 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10931 Use separate variables. Read only the file size at the end, but
10932 not the checksum that we don't use.
10933
5c5215d5 10934 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10935 Adjust all callers.
10936
27d5fef7 10937 * kern/ieee1275/openfw.c: Remove libc includes.
10938 * kern/ieee1275/cmain.c: Likewise.
10939 * include/grub/ieee1275/ieee1275.h: Likewise.
10940
33abf7ae 10941 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10942 compiler warnings.
10943
19d50c2b 109442009-06-10 Felix Zielcke <fzielcke@z-51.de>
10945
10946 * Makefile.in: Remove all trailing whitespace.
10947 * conf/i386-pc.rmk: Likewise.
10948 * conf/powerpc-ieee1275.rmk: Likewise.
10949 * conf/sparc64-ieee1275.rmk: Likewise.
10950 * docs/grub.texi: Likewise.
10951 * docs/texinfo.tex: Likewise.
10952 * disk/fs_uuid.c: Likewise.
10953 * disk/lvm.c: Likewise.
10954 * disk/scsi.c: Likewise.
10955 * disk/ata.c: Likewise.
10956 * disk/ieee1275/ofdisk.c: Likewise.
10957 * disk/i386/pc/biosdisk.c: Likewise.
10958 * disk/host.c: Likewise.
10959 * disk/raid.c: Likewise.
10960 * disk/efi/efidisk.c: Likewise.
10961 * disk/usbms.c: Likewise.
10962 * disk/memdisk.c: Likewise.
10963 * disk/loopback.c: Likewise.
10964 * kern/powerpc/dl.c: Likewise.
10965 * kern/device.c: Likewise.
10966 * kern/dl.c: Likewise.
10967 * kern/sparc64/dl.c: Likewise.
10968 * kern/ieee1275/ieee1275.c: Likewise.
10969 * kern/term.c: Likewise.
10970 * kern/fs.c: Likewise.
10971 * kern/i386/dl.c: Likewise.
10972 * kern/i386/pc/startup.S: Likewise.
10973 * kern/i386/pc/init.c: Likewise.
10974 * kern/i386/pc/mmap.c: Likewise.
10975 * kern/i386/pc/lzo1x.S: Likewise.
10976 * kern/i386/ieee1275/init.c: Likewise.
10977 * kern/i386/realmode.S: Likewise.
10978 * kern/i386/tsc.c: Likewise.
10979 * kern/partition.c: Likewise.
10980 * kern/corecmd.c: Likewise.
10981 * kern/file.c: Likewise.
10982 * kern/efi/efi.c: Likewise.
10983 * kern/efi/init.c: Likewise.
10984 * kern/efi/mm.c: Likewise.
10985 * kern/main.c: Likewise.
10986 * kern/err.c: Likewise.
10987 * kern/env.c: Likewise.
10988 * kern/disk.c: Likewise.
10989 * kern/generic/millisleep.c: Likewise.
10990 * kern/generic/rtc_get_time_ms.c: Likewise.
10991 * kern/misc.c: Likewise.
10992 * kern/parser.c: Likewise.
10993 * genmk.rb: Likewise.
10994 * configure.ac: Likewise.
10995 * boot/i386/pc/diskboot.S: Likewise.
10996 * boot/i386/pc/pxeboot.S: Likewise.
10997 * boot/i386/pc/boot.S: Likewise.
10998 * boot/i386/pc/lnxboot.S: Likewise.
10999 * boot/i386/pc/cdboot.S: Likewise.
11000 * parttool/pcpart.c: Likewise.
11001 * video/readers/tga.c: Likewise.
11002 * video/video.c: Likewise.
11003 * video/bitmap.c: Likewise.
11004 * lib/envblk.c: Likewise.
11005 * lib/i386/setjmp.S: Likewise.
11006 * fs/xfs.c: Likewise.
11007 * fs/afs.c: Likewise.
11008 * fs/fat.c: Likewise.
11009 * fs/ntfs.c: Likewise.
11010 * fs/udf.c: Likewise.
11011 * fs/affs.c: Likewise.
11012 * fs/iso9660.c: Likewise.
11013 * fs/hfs.c: Likewise.
11014 * fs/fshelp.c: Likewise.
11015 * fs/ext2.c: Likewise.
11016 * fs/jfs.c: Likewise.
11017 * fs/reiserfs.c: Likewise.
11018 * fs/hfsplus.c: Likewise.
11019 * fs/minix.c: Likewise.
11020 * fs/cpio.c: Likewise.
11021 * fs/sfs.c: Likewise.
11022 * fs/ufs.c: Likewise.
11023 * efiemu/prepare.c: Likewise.
11024 * efiemu/loadcore_common.c: Likewise.
11025 * efiemu/runtime/efiemu.sh: Likewise.
11026 * efiemu/runtime/efiemu.S: Likewise.
11027 * efiemu/runtime/efiemu.c: Likewise.
11028 * efiemu/pnvram.c: Likewise.
11029 * efiemu/main.c: Likewise.
11030 * efiemu/i386/pc/cfgtables.c: Likewise.
11031 * efiemu/i386/loadcore64.c: Likewise.
11032 * efiemu/i386/loadcore32.c: Likewise.
11033 * efiemu/loadcore.c: Likewise.
11034 * efiemu/symbols.c: Likewise.
11035 * efiemu/mm.c: Likewise.
11036 * include/grub/autoefi.h: Likewise.
11037 * include/grub/datetime.h: Likewise.
11038 * include/grub/term.h: Likewise.
11039 * include/grub/hfs.h: Likewise.
11040 * include/grub/lvm.h: Likewise.
11041 * include/grub/i386/tsc.h: Likewise.
11042 * include/grub/i386/linux.h: Likewise.
11043 * include/grub/i386/xnu.h: Likewise.
11044 * include/grub/i386/efiemu.h: Likewise.
11045 * include/grub/i386/pc/biosdisk.h: Likewise.
11046 * include/grub/i386/pc/memory.h: Likewise.
11047 * include/grub/i386/pc/vbe.h: Likewise.
11048 * include/grub/parttool.h: Likewise.
11049 * include/grub/video.h: Likewise.
11050 * include/grub/memory.h: Likewise.
11051 * include/grub/fs.h: Likewise.
11052 * include/grub/partition.h: Likewise.
11053 * include/grub/xnu.h: Likewise.
11054 * include/grub/efi/api.h: Likewise.
11055 * include/grub/efi/pe32.h: Likewise.
11056 * include/grub/efi/memory.h: Likewise.
11057 * include/grub/multiboot.h: Likewise.
11058 * include/grub/usbdesc.h: Likewise.
11059 * include/grub/multiboot2.h: Likewise.
11060 * include/grub/acpi.h: Likewise.
11061 * include/grub/efiemu/efiemu.h: Likewise.
11062 * include/grub/disk.h: Likewise.
11063 * include/grub/ieee1275/ieee1275.h: Likewise.
11064 * include/grub/net.h: Likewise.
11065 * include/grub/machoload.h: Likewise.
11066 * include/grub/macho.h: Likewise.
11067 * include/multiboot.h: Likewise.
11068 * genmoddep.awk: Likewise.
11069 * normal/main.c: Likewise.
11070 * normal/menu_entry.c: Likewise.
11071 * normal/menu_viewer.c: Likewise.
11072 * normal/completion.c: Likewise.
11073 * normal/cmdline.c: Likewise.
11074 * normal/misc.c: Likewise.
11075 * normal/datetime.c: Likewise.
11076 * bus/usb/usbtrans.c: Likewise.
11077 * bus/usb/ohci.c: Likewise.
11078 * bus/usb/uhci.c: Likewise.
11079 * bus/usb/usb.c: Likewise.
11080 * mmap/efi/mmap.c: Likewise.
11081 * mmap/i386/pc/mmap_helper.S: Likewise.
11082 * mmap/i386/pc/mmap.c: Likewise.
11083 * mmap/i386/mmap.c: Likewise.
11084 * mmap/i386/uppermem.c: Likewise.
11085 * mmap/mmap.c: Likewise.
11086 * commands/acpi.c: Likewise.
11087 * commands/echo.c: Likewise.
11088 * commands/blocklist.c: Likewise.
11089 * commands/loadenv.c: Likewise.
11090 * commands/usbtest.c: Likewise.
11091 * commands/boot.c: Likewise.
11092 * commands/parttool.c: Likewise.
11093 * commands/search.c: Likewise.
11094 * commands/cat.c: Likewise.
11095 * commands/i386/pc/play.c: Likewise.
11096 * commands/i386/pc/drivemap.c: Likewise.
11097 * commands/i386/pc/vbeinfo.c: Likewise.
11098 * commands/i386/pc/acpi.c: Likewise.
11099 * commands/i386/pc/vbetest.c: Likewise.
11100 * commands/ls.c: Likewise.
11101 * commands/cmp.c: Likewise.
11102 * commands/test.c: Likewise.
11103 * commands/efi/acpi.c: Likewise.
11104 * commands/gptsync.c: Likewise.
11105 * commands/help.c: Likewise.
11106 * partmap/amiga.c: Likewise.
11107 * partmap/apple.c: Likewise.
11108 * partmap/acorn.c: Likewise.
11109 * partmap/pc.c: Likewise.
11110 * partmap/sun.c: Likewise.
11111 * partmap/gpt.c: Likewise.
11112 * script/sh/lexer.c: Likewise.
11113 * script/sh/function.c: Likewise.
11114 * font/font.c: Likewise.
11115 * font/font_cmd.c: Likewise.
11116 * loader/powerpc/ieee1275/linux.c: Likewise.
11117 * loader/efi/chainloader.c: Likewise.
11118 * loader/multiboot_loader.c: Likewise.
11119 * loader/macho.c: Likewise.
11120 * loader/i386/multiboot.c: Likewise.
11121 * loader/i386/linux.c: Likewise.
11122 * loader/i386/pc/linux.c: Likewise.
11123 * loader/i386/pc/multiboot2.c: Likewise.
11124 * loader/i386/pc/chainloader.c: Likewise.
11125 * loader/i386/pc/xnu.c: Likewise.
11126 * loader/i386/bsd_trampoline.S: Likewise.
11127 * loader/i386/efi/linux.c: Likewise.
11128 * loader/i386/multiboot_elfxx.c: Likewise.
11129 * loader/i386/bsd_helper.S: Likewise.
11130 * loader/i386/bsd.c: Likewise.
11131 * loader/i386/linux_trampoline.S: Likewise.
11132 * loader/i386/xnu_helper.S: Likewise.
11133 * loader/i386/xnu.c: Likewise.
11134 * loader/i386/bsd_pagetable.c: Likewise.
11135 * loader/i386/multiboot_helper.S: Likewise.
11136 * loader/xnu.c: Likewise.
11137 * loader/xnu_resume.c: Likewise.
11138 * io/gzio.c: Likewise.
11139 * term/efi/console.c: Likewise.
11140 * term/terminfo.c: Likewise.
11141 * term/ieee1275/ofconsole.c: Likewise.
11142 * term/i386/pc/serial.c: Likewise.
11143 * term/i386/pc/vesafb.c: Likewise.
11144 * term/i386/pc/vga.c: Likewise.
11145 * term/usb_keyboard.c: Likewise.
11146 * term/gfxterm.c: Likewise.
11147 * aclocal.m4: Likewise.
11148 * util/lvm.c: Likewise.
11149 * util/grub.d/30_os-prober.in: Likewise.
11150 * util/grub.d/10_hurd.in: Likewise.
11151 * util/console.c: Likewise.
11152 * util/grub-macho2img.c: Likewise.
11153 * util/grub-probe.c: Likewise.
11154 * util/hostfs.c: Likewise.
11155 * util/i386/pc/grub-mkimage.c: Likewise.
11156 * util/i386/pc/grub-setup.c: Likewise.
11157 * util/i386/efi/grub-mkimage.c: Likewise.
11158 * util/grub-mkconfig.in: Likewise.
11159 * util/raid.c: Likewise.
11160 * util/resolve.c: Likewise.
11161 * util/grub-mkdevicemap.c: Likewise.
11162 * util/grub-emu.c: Likewise.
11163 * util/getroot.c: Likewise.
11164 * util/hostdisk.c: Likewise.
11165 * util/usb.c: Likewise.
11166 * util/grub-editenv.c: Likewise.
11167 * util/misc.c: Likewise.
11168
d2d49665 111692009-06-10 Felix Zielcke <fzielcke@z-51.de>
11170
11171 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
11172 `genparttoollist.sh'.
11173 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
11174 Add `*.sh' to the list find searches for and change `mdate.sh'
11175 to `mdate-sh'.
11176
fe052e37 111772009-06-10 Pavel Roskin <proski@gnu.org>
11178
2763ac18 11179 * include/grub/multiboot2.h: Provide compatibility defines for
11180 multiboot2.h.
11181 * include/multiboot2.h: Include stdint.h only if needed, using
11182 angle brackets.
11183 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
11184 grub/multiboot2.h.
11185 * loader/ieee1275/multiboot2.c: Likewise.
11186 * loader/multiboot2.c: Likewise.
11187 * loader/multiboot_loader.c: Likewise.
11188
437e6adc 11189 * configure.ac: Use -nostdlib when probing for the target. It
11190 should not be required to have libc for the target.
11191
06a6836c 11192 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
11193 they fail without libc headers for the target.
11194 * include/grub/powerpc/libgcc.h: Use weak attribute for all
11195 exports.
11196 * include/grub/sparc64/libgcc.h: Likewise. Don't use
11197 preprocessor conditionals.
11198
fe052e37 11199 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
11200 build system doesn't need to be aware of the tar.c internals.
11201
afd22553 112022009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 11203
afd22553 11204 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 11205
6b787c4f 112062009-06-09 Robert Millan <rmh.grub@aybabtu.com>
11207
11208 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
11209 disk limit to 26 for IDE, Virtio, Xen and SCSI.
11210
112112009-06-09 Felix Zielcke <fzielcke@z-51.de>
11212
11213 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 11214 aren't available if ata.mod gets used.
6b787c4f 11215
473d1e45 112162009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 11217
473d1e45 11218 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 11219 initialising controller.
473d1e45 11220 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 11221
255a27d4 112222009-06-08 Felix Zielcke <fzielcke@z-51.de>
11223
11224 * util/i386/pc/grub-install.in: Add a parameter --disk-module
11225 to choose between ata and biosdisk module on i386-pc.
11226
473d1e45 112272009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 11228
d55842d8 11229 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
11230 Subclass and Programming Interface fields in terms of the 3 byte
11231 Class Code register.
11232 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11233
fa5db0b1 11234 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
11235 interface is OHCI. Add grub_dprintf for symmetry with
11236 bus/usb/uhci.c.
11237 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
11238 interface is UHCI. Add interf variable for programming
11239 interface. Print interface with class/subclass.
11240
c0947beb 11241 * bus/usb/ohci.c: Set interf with correct field.
11242
69da8877 11243 * bus/usb/uhci.c: Remove unneeded doubled lines.
11244 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
11245 Remove whitespace inside comment.
11246
9e172e30 112472009-06-08 Robert Millan <rmh.grub@aybabtu.com>
11248
11249 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
11250 as fallback an equivalent option without depth.
11251
de65ee2b 112522009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 Not fail if unable to retrieve C/H/S on LBA disks
11255
473d1e45 11256 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 11257 if unable to retrieve C/H/S on LBA disks
11258
b57ea2c9 112592009-06-08 Pavel Roskin <proski@gnu.org>
11260
11261 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
11262 about aliasing.
11263
af361263 112642009-06-08 Felix Zielcke <fzielcke@z-51.de>
11265
11266 * Makefile.in (uninstall): Remove all $lib_DATA files.
11267
4c9ec6b3 112682009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11269
11270 Bugfix: install on partitionless device
11271
11272 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
11273 is a whole disk
11274
e76fc924 112752009-06-08 Felix Zielcke <fzielcke@z-51.de>
11276
11277 * Makefile.in (uninstall): Remove all $include_DATA files.
11278
ba5a0d05 112792009-06-08 Felix Zielcke <fzielcke@z-51.de>
11280
11281 * commands/true.c: New file. Implement the true and false commands.
11282 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
11283 (true_mod_SOURCES): New variable.
11284 (true_mod_CFLAGS): Likewise.
11285 (true_mod_LDFLAGS): Likewise.
11286
c8048e32 112872009-06-05 Colin D Bennett <colin@gibibit.com>
11288
11289 Optimized font character lookup using binary search instead of linear
11290 search. Fonts now are required to have the character index ordered by
11291 code point.
11292
11293 * font/font.c (load_font_index): Verify that fonts have ordered
11294 character indices.
11295 (find_glyph): Use binary search instead of linear search to find a
11296 character in a font.
11297
408305be 112982009-06-05 Michael Scherer <misc@mandriva.org>
11299
11300 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
11301 uses case sensitive btree.
11302 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
11303 only for case insensitive filesystems.
11304
8ee1e0d9 113052009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
11308 * conf/common.rmk (search_mod_CFLAGS): likewise
11309
a9966eb1 113102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11311
473d1e45 11312 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 11313 compensate a compiler bug
11314
9e7100fb 113152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11316
473d1e45 11317 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 11318 instead of '\b'
473d1e45 11319
ede21d71 113202009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 Definitions for creating asm symbols with Apple's CC
11323
11324 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
11325 [APPLE_CC] (VARIABLE): likewise
11326
9dbf7653 113272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11328
11329 Disable lnxboot.img when compiled
11330 with Apple's CC
11331
11332 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
11333 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
11334 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
11335 [! APPLE_CC] (CODE_LENG): skip
11336 [! APPLE_CC] (setup_sects): likewise
11337 [! APPLE_CC]: skip filling
473d1e45 11338
e93cdc3d 113392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 Address in trampolines based on 32-bit registers when compiled
11342 with Apple's CC
11343
473d1e45 11344 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 11345 for addresses
11346 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
11347
6c688477 113482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 Avoid aliases when compiling with Apple's CC for PCBIOS machine
11351
11352 * kern/misc.c [APPLE_CC] (memcpy): new function
11353 [APPLE_CC] (memmove): likewise
11354 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 11355 (memcpy): define alias conditionally on !APPLE_CC
6c688477 11356 (memset): likewise
11357 (abort): likewise
11358 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
11359 APPLE_CC are defined
11360 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
11361 (grub_assert_fail): make prototype conditional
11362
e37ffc5c 113632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
11366
473d1e45 11367 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
11368 grub-macho2img
e37ffc5c 11369 (CLEANFILES): add grub-macho2img
11370 (grub_macho2img_SOURCES): new variable
11371 * kern/i386/pc/startup.S (bss_start): new variable
11372 (bss_end): likewise
11373 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
11374 * util/grub-macho2img.c: new file
11375
cf00df31 113762009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11377
11378 Use objconv when compiling with Apple's CC
11379
11380 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11381 (efiemu64.o): likewise
11382 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11383 when compiling with Apple's CC
11384 (efiemu64_s.o): likewise
11385 * configure.ac: check for objconv when compiling with Apple's CC
11386 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 11387
d119a20c 113882009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11389
11390 Define segment as well as section when compiling with
11391 Apple's CC
11392
11393 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11394 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11395 (efiemu_convert_pointer): likewise
11396 (efiemu_set_virtual_address_map): likewise
11397 (efiemu_convert_pointer): likewise
11398 (efiemu_getcrc32): likewise
11399 (init_crc32_table): likewise
11400 (reflect): likewise
11401 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11402 (GRUB_MOD_DEP): likewise
473d1e45 11403
c8600122 114042009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 Allow a compilation without -mcmodel=large
11407
11408 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11409 when compiled without -mcmodel=large
473d1e45 11410 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 11411 without -mcmodel=large
473d1e45 11412 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 11413 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 11414
e8df1d4e 114152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 Remove nested functions in efiemu core
11418
11419 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 11420
cc6c3ac1 114212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11424
11425 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11426 temporary storage
473d1e45 11427 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11428 using Apple's CC
cc6c3ac1 11429 (grub_cpu_is_tsc_supported): likewise
11430 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 11431
3e325901 114322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11433
11434 Absolute addressing through constant with Apple's cc
11435
11436 * kern/i386/pc/startup.S: Define necessary constants
11437 and address through it when using ABS with Apple's CC
11438 * boot/i386/pc/diskboot.S: likewise
11439 * boot/i386/pc/boot.S: likewise
11440 * boot/i386/pc/lnxboot.S: likewise
11441 * boot/i386/pc/cdboot.S: likewise
11442 * mmap/i386/pc/mmap_helper.S: likewise
11443 * commands/i386/pc/drivemap_int13h.S: likewise
11444
2b167a72 114452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 Check if compiler is apple cc
11448
11449 * Makefile.in (ASFLAGS): new variable
11450 (TARGET_ASFLAGS): likewise
11451 (TARGET_MODULE_FORMAT): likewise
11452 (TARGET_APPLE_CC): likewise
11453 (OBJCONV): likewise
11454 (TARGET_IMG_CFLAGS): likewise
11455 (TARGET_CPPFLAGS): add includedir
11456 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11457 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11458 Check for linker script only if compiler isn't Apple's CC
11459 (TARGET_MODULE_FORMAT): set
11460 (TARGET_APPLE_CC): likewise
11461 (TARGET_ASFLAGS): likewise
11462 (ASFLAGS): likewise
11463 Check for objcopy only if compiler isn't Apple's CC
11464 Check for BSS symbol only if compiler isn't Apple's CC
11465 * genmk.rb: adapt nm options if we use Apple's utils
11466 * aclocal.m4 (grub_apple_cc): new test
11467 (grub_apple_target_cc): likewise
473d1e45 11468
fb14123e 114692009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11470
11471 Simplify sed expressions and improve awk
11472
11473 * Makefile.in (install-local): simplify sed expression
11474 * gencmdlist.sh: likewise
11475 * genmoddep.awk: avoid adding module as a dependency of itself
11476
5b889789 114772009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 Add missing start symbols
11480
11481 * boot/i386/pc/boot.S: add start
fb14123e 11482 * boot/i386/pc/pxeboot.S: likewise
473d1e45 11483
fd2bf2e3 114842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 11487
11488 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 11489 (relocate_addresses): consider both r_addend and value at offset
11490 (make_mods_section): zerofill modinfo and header
11491 (convert_elf): write prefix here
473d1e45 11492
5389763d 114932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 Use .asciz instead of .string
11496
11497 * i386/pc/diskboot.S: use .asciz instead of .string
11498 * i386/pc/boot.S: likewise
11499 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11500 (GRUB_MOD_NAME): likewise
473d1e45 11501
3eb5ed4e 115022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 gfxpayload support
11505
11506 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11507 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11508 (grub_video_setup): remove
11509 (grub_video_set_mode): new prototype
11510 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11511 (vid_mode): remove
11512 (linux_vesafb_res): compile only on PCBIOS
11513 (grub_linux_boot): support gfxpayload
11514 * loader/i386/pc/xnu.c (video_hook): new function
11515 (grub_xnu_set_video): support gfxpayload
11516 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11517 (DEFAULT_VIDEO_HEIGHT): likewise
11518 (DEFAULT_VIDEO_FLAGS): likewise
11519 (DEFAULT_VIDEO_MODE): new definition
11520 (video_hook): new function
11521 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 11522 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 11523 loading xnu
11524 * video/video.c (grub_video_setup): removed
473d1e45 11525 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 11526 grub_video_setup
11527
4b0e1143 115282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11529
11530 Avoid calling biosdisk in drivemap
11531
11532 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11533 (revparse_biosdisk): likewise
11534 (list_mappings): derive name from id directly
11535 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 11536
fda6cb98 115372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 Script fixes
11540
11541 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11542 (grub_lexer_param): add tokenonhold
11543 (grub_script_create_cmdline): remove cmdline. All callers updated
11544 (grub_script_function_create): make functionname
11545 grub_script_arg. All callers updated
11546 (grub_script_execute_argument_to_string): new prototype
11547 * kern/parser.c (state_transitions): reorder
11548 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 11549 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 11550 make global
11551 (grub_script_execute_cmdline): use new format
11552 * script/sh/function.c (grub_script_function_create): make functionname
11553 grub_script_arg. All callers updated
473d1e45 11554 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 11555 (grub_script_yylex): remove
11556 (grub_script_yylex2): renamed to ...
11557 (grub_script_yylex): ...renamed
11558 parse the expressions like a${b}c
11559 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11560 (GRUB_PARSER_TOKEN_VAR): remove
11561 (GRUB_PARSER_TOKEN_NAME): likewise
11562 ("if"): declare as typeless
11563 ("while"): likewise
11564 ("function"): likewise
11565 ("else"): likewise
11566 ("then"): likewise
11567 ("fi"): likewise
11568 (text): remove
11569 (argument): likewise
11570 (script): accept empty scripts and make exit on error
11571 (arguments): use GRUB_PARSER_TOKEN_ARG
11572 (function): likewise
11573 (command): move error handling to script
11574 (menuentry): move grub_script_lexer_ref before
473d1e45 11575 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 11576 argument. All callers updated
11577
f4448a07 115782009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11579
11580 Prevent GRUB from probing floppies during boot.
11581
11582 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11583 * commands/search.c (options): Add --no-floppy.
11584 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11585 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11586 --no-floppy when searching for UUIDs.
11587
2bf5885a 115882009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11589
11590 Simplify the code duplication in commands/search.c.
11591
11592 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11593 (search_fs): ... this. Update all users.
11594
f6fd460a 115952009-06-03 Felix Zielcke <fzielcke@z-51.de>
11596
11597 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11598
cbb3c83e 115992009-05-28 Pavel Roskin <proski@gnu.org>
11600
57788cfd 11601 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11602 Remove the original symlink explicitly.
11603
cbb3c83e 11604 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11605 just one slash. That's how grub_fshelp_find_file() does it.
11606
cd0d5e30 116072009-05-26 Pavel Roskin <proski@gnu.org>
11608
f0f8bbe2 11609 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11610 to `str'.
11611
cd0d5e30 11612 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11613 possibly unused.
11614
8c2cab51 116152009-05-25 Christian Franke <franke@computer.org>
11616
11617 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11618 register.
11619 (grub_atapi_identify): Add wait after drive select.
11620 (grub_ata_identify): Do more strict status register check before
11621 calling grub_atapi_identify (). Suppress error message if status
11622 register is 0x00 after command failure. Add status register
11623 check after PIO read to avoid bogus identify due to stuck DRQ.
11624 Thanks to Pavel Roskin for testing.
11625 (grub_device_initialize): Remove unsafe status register check.
11626 Thanks to 'phcoder' for problem report and patch.
11627 Prevent sign extension in debug message.
11628
230c0ad6 116292009-05-23 Colin D Bennett <colin@gibibit.com>
11630
11631 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11632 definition file, and functions defined in `normal/menu.c' have had
11633 their prototypes moved to `include/grub/menu.h' for consistency.
11634
11635 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11636 from normal.h.
11637 (grub_menu_get_entry): Likewise.
11638 (grub_menu_get_timeout): Likewise.
11639 (grub_menu_set_timeout): Likewise.
11640 (grub_menu_execute_entry): Likewise.
11641 (grub_menu_execute_with_fallback): Likewise.
11642 (grub_menu_entry_run): Likewise.
11643
11644 * include/grub/normal.h: Re-ordered and grouped function
11645 prototypes by file that the function is defined in.
11646 (grub_menu_execute_callback): Removed; moved to menu.h.
11647 (grub_menu_get_entry): Likewise.
11648 (grub_menu_get_timeout): Likewise.
11649 (grub_menu_set_timeout): Likewise.
11650 (grub_menu_execute_entry): Likewise.
11651 (grub_menu_execute_with_fallback): Likewise.
11652 (grub_menu_entry_run): Likewise.
11653 (grub_menu_addentry): Renamed from this ...
11654 (grub_normal_add_menu_entry): ... to this.
11655
11656 * normal/main.c (grub_menu_addentry): Renamed from this ...
11657 (grub_normal_add_menu_entry): ... to this.
11658
11659 * script/sh/execute.c (grub_script_execute_menuentry): Update
11660 reference to renamed grub_menu_addentry function.
11661
861f03a5 116622009-05-23 Felix Zielcke <fzielcke@z-51.de>
11663
11664 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11665
96b1619a 116662009-05-22 Pavel Roskin <proski@gnu.org>
11667
bf6a5fb2 11668 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11669 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11670 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11671 compiling for the i386 targets, but not for the utilities.
11672
96b1619a 11673 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11674 to grub_uint8_t.
11675 (grub_root_drive): Likewise.
11676 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11677 remove alignment.
11678 (grub_root_drive): Change size to byte.
11679 (grub_start_addr): Remove.
11680 (grub_end_addr): Likewise.
11681 (grub_apm_bios_info): Likewise.
11682
b729776b 116832009-05-21 Felix Zielcke <fzielcke@z-51.de>
11684
11685 * normal/i386: Remove.
11686 * normal/powerpc: Likewise.
11687 * normal/sparc64: Likewise.
11688 * normal/x86_64: Likewise.
11689
0a15ce80 116902009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 11693 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 11694 * loader/i386/xnu_helper.S: Likewise
d6da58e6 11695
33db9015 116962009-05-18 Colin D Bennett <colin@gibibit.com>
11697
d6da58e6 11698 Display error messages when parsing a Lua statement fails.
11699 Previously, executing a syntactically invalid statement like
11700 ")foo" or "bar;" would silently fail.
33db9015 11701
11702 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 11703 (grub_lua_parse_line): Improved reporting of Lua parser and
11704 execution errors.
33db9015 11705
46422c89 117062009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 Remove -Werror which causes build to fail on some systems
11709
11710 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11711 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11712 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 11713
22f53a96 117142009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11715
11716 trampoline for linux on 64-bit platform
11717
18f547ad 11718 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11719 loader/i386/efi/linux_trampoline.S
11720 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 11721 declaration
d6da58e6 11722 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11723 here
22f53a96 11724 * loader/i386/linux_trampoline.S: moved here
d6da58e6 11725 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11726 trampoline
22f53a96 11727 (jumpvector): removed
11728 (grub_linux_trampoline_start): new declaration
11729 (grub_linux_trampoline_end): likewise
11730 (grub_linux_boot): use trampoline when on 64-bit platform
11731 * loader/i386/linux.c: likewise
11732
cb5a0f40 117332009-05-16 Pavel Roskin <proski@gnu.org>
11734
11735 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11736 const to avoid a warning.
11737 (grub_lua_setenv): Likewise.
11738 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11739 lmsg to fix a warning.
11740
334f2c28 117412009-05-16 Felix Zielcke <fzielcke@z-51.de>
11742
11743 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 11744 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11745 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11746 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11747 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11748 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11749 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11750 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 11751
59e5d3ec 117522009-05-16 Felix Zielcke <fzielcke@z-51.de>
11753
11754 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11755
9d87a1ba 117562009-05-16 Bean <bean123ch@gmail.com>
11757
11758 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11759 (lua_mod_SOURCES): New variable.
11760 (lua_mod_CFLAGS): Likewise.
11761 (lua_mod_LDFLAGS): Likewise.
11762
11763 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11764 (setjmp_mod_SOURCES): New variable.
11765 (setjmp_mod_CFLAGS): Likewise.
11766 (setjmp_LDFLAGS): Likewise.
11767
11768 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11769 (setjmp_mod_SOURCES): New variable.
11770 (setjmp_mod_CFLAGS): Likewise.
11771 (setjmp_LDFLAGS): Likewise.
11772
11773 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11774 (setjmp_mod_SOURCES): New variable.
11775 (setjmp_mod_CFLAGS): Likewise.
11776 (setjmp_LDFLAGS): Likewise.
11777
11778 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11779 (setjmp_mod_SOURCES): New variable.
11780 (setjmp_mod_CFLAGS): Likewise.
11781 (setjmp_LDFLAGS): Likewise.
11782
11783 * normal/i386/setjmp.S: Moved from here ...
11784 * lib/i386/setjmp.S: ... Moved here
11785 * normal/x86_64/setjmp.S: Moved from here ...
11786 * lib/x86_64/setjmp.S: ... Moved here
11787 * normal/powerpc/setjmp.S: Moved from here ...
11788 * lib/powerpc/setjmp.S: ... Moved here
11789 * normal/sparc64/setjmp.S: Moved from here ...
11790 * lib/sparc64/setjmp.S: ... Moved here
11791
11792 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11793 returns_twice in mingw.
11794
11795 * script/lua/grub_lib.c: New file.
11796 * script/lua/grub_lib.h: Likewise.
11797 * script/lua/grub_lua.h: Likewise.
11798 * script/lua/grub_main.c: Likewise.
11799 * script/lua/lapi.c: Likewise.
11800 * script/lua/lapi.h: Likewise.
11801 * script/lua/lauxlib.c: Likewise.
11802 * script/lua/lauxlib.h: Likewise.
11803 * script/lua/lbaselib.c: Likewise.
11804 * script/lua/lcode.c: Likewise.
11805 * script/lua/lcode.h: Likewise.
11806 * script/lua/ldblib.c: Likewise.
11807 * script/lua/ldebug.c: Likewise.
11808 * script/lua/ldebug.h: Likewise.
11809 * script/lua/ldo.c: Likewise.
11810 * script/lua/ldo.h: Likewise.
11811 * script/lua/ldump.c: Likewise.
11812 * script/lua/lfunc.c: Likewise.
11813 * script/lua/lfunc.h: Likewise.
11814 * script/lua/lgc.c: Likewise.
11815 * script/lua/lgc.h: Likewise.
11816 * script/lua/linit.c: Likewise.
11817 * script/lua/liolib.c: Likewise.
11818 * script/lua/llex.c: Likewise.
11819 * script/lua/llex.h: Likewise.
11820 * script/lua/llimits.h: Likewise.
11821 * script/lua/lmathlib.c: Likewise.
11822 * script/lua/lmem.c: Likewise.
11823 * script/lua/lmem.h: Likewise.
11824 * script/lua/loadlib.c: Likewise.
11825 * script/lua/lobject.c: Likewise.
11826 * script/lua/lobject.h: Likewise.
11827 * script/lua/lopcodes.c: Likewise.
11828 * script/lua/lopcodes.h: Likewise.
11829 * script/lua/loslib.c: Likewise.
11830 * script/lua/lparser.c: Likewise.
11831 * script/lua/lparser.h: Likewise.
11832 * script/lua/lstate.c: Likewise.
11833 * script/lua/lstate.h: Likewise.
11834 * script/lua/lstring.c: Likewise.
11835 * script/lua/lstring.h: Likewise.
11836 * script/lua/lstrlib.c: Likewise.
11837 * script/lua/ltable.c: Likewise.
11838 * script/lua/ltable.h: Likewise.
11839 * script/lua/ltablib.c: Likewise.
11840 * script/lua/ltm.c: Likewise.
11841 * script/lua/ltm.h: Likewise.
11842 * script/lua/lua.h: Likewise.
11843 * script/lua/luaconf.h: Likewise.
11844 * script/lua/lualib.h: Likewise.
11845 * script/lua/lundump.c: Likewise.
11846 * script/lua/lundump.h: Likewise.
11847 * script/lua/lvm.c: Likewise.
11848 * script/lua/lvm.h: Likewise.
11849 * script/lua/lzio.c: Likewise.
11850 * script/lua/lzio.h: Likewise.
11851
5e898c9d 118522009-05-16 Bean <bean123ch@gmail.com>
11853
11854 * include/grub/kernel.h (grub_module_header_types): Add type
11855 OBJ_TYPE_CONFIG.
11856
11857 * kern/main.c (grub_load_config): New function.
11858 (grub_main): Call grub_load_config to read boot config.
11859
11860 * grub-mkimage (generate_image): New parameter config_path.
11861 (options): New option --config.
11862 (main): Parse --config option, and pass it to generate_image.
11863
cf353a47 118642009-05-14 Christian Franke <franke@computer.org>
11865
11866 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11867 This fixes build on Cygwin.
11868
3834887f 118692009-05-14 Pavel Roskin <proski@gnu.org>
11870
11871 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11872 jump. This saves two bytes, so the typical case of 2 swapped
11873 drives would fit 32 bytes.
11874
8090fc01 118752009-05-13 Pavel Roskin <proski@gnu.org>
11876
ac963883 11877 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11878 grub_uint32_t to avoid a warning.
11879
8090fc01 11880 * loader/i386/linux.c (allocate_pages): When assigning
11881 real_mode_mem, cast through grub_size_t to fix a warning. The
11882 code already makes sure that the value would fit a pointer.
11883 (grub_linux_setup_video): Cast render_target->data to
11884 grub_size_t to fix a warning.
11885
18f547ad 118862009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 11887
11888 * commands/i386/pc/drivemap.c: New file - implement drivemap
11889 command.
11890 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11891 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11892
6f6a8b28 118932009-05-13 Pavel Roskin <proski@gnu.org>
11894
11895 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11896 embedding_area_exists.
11897
15fbf4c4 118982009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11899
11900 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11901 it easier to understand / work with.
59978c8a 11902 Improve warning messages for cases where there's no embedding area,
11903 or when it is too small (or core.img too large).
15fbf4c4 11904
238e871f 119052009-05-13 Pavel Roskin <proski@gnu.org>
11906
0ab3a9a4 11907 * loader/i386/pc/multiboot2.c: Add necessary includes for
11908 grub_multiboot2_real_boot().
11909
a2c8c5f8 11910 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11911 PX record is always little-endian. We only need the lower 2
11912 bytes of the mode.
11913
faec96af 11914 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11915 facilitate code reuse.
11916 (grub_cpio_mount): Use "struct head", not a char buffer. This
11917 fixes a warning reported by gcc 4.4.
11918
238e871f 11919 * kernel/disk.c (grub_disk_read): Use void pointer for the
11920 buffer.
11921 (grub_disk_write): Use const void pointer for the buffer.
11922 Adjust all callers. Remove unnecessary casts.
11923
901d2f0c 119242009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11925
11926 * util/i386/pc/grub-install.in: Update copyright year.
11927
18f547ad 119282009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 11929
11930 gptsync
11931
11932 * commands/gptsync.c: new file
11933 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11934 (gptsync_mod_SOURCES): new variable
11935 (gptsync_mod_CFLAGS): likewise
11936 (gptsync_mod_LDFLAGS): likewise
18f547ad 11937 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 11938 new definition
11939 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11940 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11941 * conf/i386-ieee1275.rmk: likewise
11942 * conf/i386-pc.rmk: likewise
11943 * conf/powerpc-ieee1275.rmk: likewise
11944
b4ba690a 119452009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 Fixed grub-emu
11948
11949 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11950 (grub_dl_ref): likewise
11951
317e1a44 119522009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11953
11954 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11955 split in two functions (one for msdos and one for gpt).
11956
041b8094 119572009-05-08 Pavel Roskin <proski@gnu.org>
11958
752473c2 11959 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11960 not modified.
11961
041b8094 11962 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11963 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11964 Initialize them with -1. Add sanity check for bad1. Eliminate
11965 nerr variable.
11966
172800ce 119672009-05-08 David S. Miller <davem@davemloft.net>
11968
11969 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11970
29aa5e81 119712009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11972
11973 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 11974 existence.
29aa5e81 11975
96613b62 119762009-05-05 Felix Zielcke <fzielcke@z-51.de>
11977
11978 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 11979 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 11980
eef73c8a 119812009-05-05 David S. Miller <davem@davemloft.net>
11982
11983 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11984
119494b5 119852009-05-05 Pavel Roskin <proski@gnu.org>
11986
11987 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11988 of grub_dl_ref() and grub_dl_unref().
11989 * commands/parttool.c: Remove preprocessor conditionals around
11990 grub_dl_ref() and grub_dl_unref().
11991 * fs/affs.c: Likewise.
11992 * fs/afs.c: Likewise.
11993 * fs/cpio.c: Likewise.
11994 * fs/ext2.c: Likewise.
11995 * fs/fat.c: Likewise.
11996 * fs/hfs.c: Likewise.
11997 * fs/hfsplus.c: Likewise.
11998 * fs/iso9660.c: Likewise.
11999 * fs/jfs.c: Likewise.
12000 * fs/minix.c: Likewise.
12001 * fs/ntfs.c: Likewise.
12002 * fs/reiserfs.c: Likewise.
12003 * fs/sfs.c: Likewise.
12004 * fs/udf.c: Likewise.
12005 * fs/ufs.c: Likewise.
12006 * fs/xfs.c: Likewise.
12007 * include/grub/dl.h: Likewise.
12008 * loader/xnu.c: Likewise.
12009
de5fd76e 120102009-05-04 Pavel Roskin <proski@gnu.org>
12011
12012 * commands/acpi.c: Remove unused variable my_mod.
12013 * partmap/amiga.c: Likewise.
12014 * partmap/apple.c: Likewise.
12015 * partmap/gpt.c: Likewise.
12016 * partmap/pc.c: Likewise.
12017 * partmap/sun.c: Likewise.
12018 * term/gfxterm.c: Likewise.
12019 * term/i386/pc/vesafb.c: Likewise.
12020 * term/i386/pc/vga.c: Likewise.
12021
983598ad 120222009-05-04 David S. Miller <davem@davemloft.net>
12023
12024 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
12025 pointer args to grub_ieee1275_get_property().
12026
8aadec43 12027 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
12028
9554b15e 12029 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
12030 devices, and do not traverse down under controller nodes.
12031
67e23c90 12032 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
12033 (grub_ofdisk_open): Use it to un-escape "," characters.
12034 * kern/disk.c (find_part_sep): New.
12035 (grub_disk_open): Use it to find the first non-escaped ','
12036 character in the disk name.
12037 * util/ieee1275/devicemap.c (escape_of_path): New.
12038 (grub_util_emit_devicemap_entry): Use it.
12039 * util/sparc64/ieee1275/grub-install.in: Update script to
12040 strip partition specifiers properly by not triggering on
12041 '\' escaped ',' characters.
12042
74bfdd2f 120432009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12044
12045 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
12046 to 0x300.
12047 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
12048 resolutions.
12049 (linux_vesafb_modes): Add a lot of additional modes to the list (based
12050 on documentation from Wikipedia).
12051
4241d2b1 120522009-05-04 Pavel Roskin <proski@gnu.org>
12053
12054 * disk/ata.c: Spelling fixes.
12055 * disk/raid.c: Likewise.
12056 * disk/usbms.c: Likewise.
12057 * disk/dmraid_nvidia.c: Likewise.
12058 * kern/ieee1275/openfw.c: Likewise.
12059 * kern/ieee1275/init.c: Likewise.
12060 * kern/ieee1275/cmain.c: Likewise.
12061 * boot/i386/pc/cdboot.S: Likewise.
12062 * video/readers/png.c: Likewise.
12063 * video/i386/pc/vbe.c: Likewise.
12064 * fs/udf.c: Likewise.
12065 * fs/hfs.c: Likewise.
12066 * fs/reiserfs.c: Likewise.
12067 * efiemu/runtime/efiemu.c: Likewise.
12068 * efiemu/main.c: Likewise.
12069 * efiemu/mm.c: Likewise.
12070 * include/grub/elf.h: Likewise.
12071 * include/grub/xnu.h: Likewise.
12072 * include/grub/usbdesc.h: Likewise.
12073 * include/grub/usb.h: Likewise.
12074 * include/grub/script_sh.h: Likewise.
12075 * include/grub/lib/LzmaEnc.h: Likewise.
12076 * include/grub/efiemu/efiemu.h: Likewise.
12077 * include/grub/command.h: Likewise.
12078 * normal/menu.c: Likewise.
12079 * normal/main.c: Likewise.
12080 * normal/datetime.c: Likewise.
12081 * bus/usb/uhci.c: Likewise.
12082 * mmap/i386/uppermem.c: Likewise.
12083 * mmap/mmap.c: Likewise.
12084 * commands/acpi.c: Likewise.
12085 * commands/test.c: Likewise.
12086 * partmap/apple.c: Likewise.
12087 * font/font.c: Likewise.
12088 * loader/sparc64/ieee1275/linux.c: Likewise.
12089 * loader/macho.c: Likewise.
12090 * loader/i386/bsd_trampoline.S: Likewise.
12091 * loader/i386/bsd.c: Likewise.
12092 * loader/xnu.c: Likewise.
12093 * term/i386/pc/vesafb.c: Likewise.
12094 * term/usb_keyboard.c: Likewise.
12095 * util/resolve.c: Likewise.
12096 * util/getroot.c: Likewise.
12097
0cfc0083 120982009-05-04 Felix Zielcke <fzielcke@z-51.de>
12099
12100 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
12101
7c1d00cd 121022009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12103
12104 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
12105 build error.
12106
b01f0548 121072009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12108
12109 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
12110 parameter only available on BIOS.
12111
ecc3eb22 121122009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12113
12114 Removed wrong semicolon in declaration
12115
12116 * grub/misc.h (grub_dprintf): remove semicolon
12117
112972a9 121182009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12119
12120 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
12121 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
12122 is done by grub_cmd_linux() now).
12123 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
12124 restore video to text mode.
12125 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
12126 indicates lack of "vga=" parameter. "vga=0" is mapped to
12127 `GRUB_LINUX_VID_MODE_NORMAL'.
12128
afd5c115 121292009-05-04 Felix Zielcke <fzielcke@z-51.de>
12130
12131 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
12132 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
12133 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 12134 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 12135 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
12136 `grub_script.tab.c'.
12137
12138 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12139 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12141 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12142 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12143
faa517ce 12144 * Makefile.in: Remove duplicated 2008 in Copyright line.
12145
ae0c0bdc 121462009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12147
473d1e45 12148 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 12149 unconditionally.
12150 * include/grub/util/misc.h (grub_util_warn): New declaration.
12151
12152 * util/i386/pc/grub-install.in: Understand --force and pass it down
12153 to grub-setup.
12154
12155 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
12156 down to setup().
12157 (setup): Improve error messages and add warnings when requested to
12158 install in odd layouts. Refuse to install using blocklists unless
12159 --force was set.
12160
18f547ad 121612009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 12162
12163 * disk/raid.c (grub_raid_scan_device): Improve debug message.
12164
6d260daa 121652009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12166
12167 Updated copyright year
12168
12169 * fs/hfsplus.c: updated copyright year
18f547ad 12170
69f853f8 121712009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12172
12173 HFS+ UUID
12174
18f547ad 12175 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 12176 in the space previously used by unused3
12177 (grub_hfsplus_uuid): new function
12178 (grub_hfsplus_fs): added uuid field
12179
4c402e73 121802009-05-03 Pavel Roskin <proski@gnu.org>
12181
12182 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
12183 suppress warnings. It's no longer needed.
12184 * disk/host.c: Likewise.
12185 * disk/ata_pthru.c: Likewise.
12186 * disk/loopback.c: Likewise.
12187 * hook/datehook.c: Likewise.
12188 * parttool/pcpart.c: Likewise.
12189 * fs/i386/pc/pxe.c: Likewise.
12190 * fs/ntfscomp.c: Likewise.
12191 * efiemu/main.c: Likewise.
12192 * mmap/mmap.c: Likewise.
12193 * commands/crc.c: Likewise.
12194 * commands/hexdump.c: Likewise.
12195 * commands/hdparm.c: Likewise.
12196 * commands/acpi.c: Likewise.
12197 * commands/echo.c: Likewise.
12198 * commands/minicmd.c: Likewise.
12199 * commands/blocklist.c: Likewise.
12200 * commands/memrw.c: Likewise.
12201 * commands/loadenv.c: Likewise.
12202 * commands/usbtest.c: Likewise.
12203 * commands/lsmmap.c: Likewise.
12204 * commands/boot.c: Likewise.
12205 * commands/parttool.c: Likewise.
12206 * commands/configfile.c: Likewise.
12207 * commands/search.c: Likewise.
12208 * commands/ieee1275/suspend.c: Likewise.
12209 * commands/cat.c: Likewise.
12210 * commands/i386/pc/pxecmd.c: Likewise.
12211 * commands/i386/pc/play.c: Likewise.
12212 * commands/i386/pc/halt.c: Likewise.
12213 * commands/i386/pc/vbeinfo.c: Likewise.
12214 * commands/i386/pc/vbetest.c: Likewise.
12215 * commands/lspci.c: Likewise.
12216 * commands/date.c: Likewise.
12217 * commands/handler.c: Likewise.
12218 * commands/ls.c: Likewise.
12219 * commands/test.c: Likewise.
12220 * commands/cmp.c: Likewise.
12221 * commands/efi/loadbios.c: Likewise.
12222 * commands/efi/fixvideo.c: Likewise.
12223 * commands/halt.c: Likewise.
12224 * commands/help.c: Likewise.
12225 * commands/reboot.c: Likewise.
12226 * hello/hello.c: Likewise.
12227 * script/sh/main.c: Likewise.
12228 * loader/xnu.c: Likewise.
12229 * term/terminfo.c: Likewise.
12230 * term/i386/pc/serial.c: Likewise.
12231 * term/usb_keyboard.c: Likewise.
12232
515b5079 122332009-05-03 David S. Miller <davem@davemloft.net>
12234
12235 * normal/menu.c: Include grub/parser.h
12236
dfc31a22 122372009-05-03 Pavel Roskin <proski@gnu.org>
12238
2fee74f1 12239 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
12240 not char*.
12241 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
12242 Suggested by Javier Martín <lordhabbit@gmail.com>
12243
dfc31a22 12244 * util/i386/pc/grub-mkrescue.in: Allow for the case when
12245 efiemu??.o doesn't exist.
12246 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
12247 copying.
12248
18f547ad 122492009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 12250
12251 FreeBSD 64-bit support
12252
18f547ad 12253 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 12254 and loader/i386/bsd_trampoline.S
12255 (bsd_mod_ASFLAGS): new variable
12256 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
12257 (FREEBSD_MODTYPE_KERNEL64): likewise
12258 (grub_bsd64_trampoline_start): likewise
12259 (grub_bsd64_trampoline_end): likewise
12260 (grub_bsd64_trampoline_selfjump): likewise
12261 (grub_bsd64_trampoline_gdt): likewise
12262 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
12263 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
12264 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
12265 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 12266 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 12267 of "attrib" member
12268 * loader/i386/bsd_pagetable.c: new file
12269 * loader/i386/bsd_trampoline.S: likewise
12270 * loader/i386/bsd.c (ALIGN_QWORD): new macro
12271 (ALIGN_VAR): likewise
12272 (entry_hi): new variable
12273 (kern_end_mdofs): likewise
12274 (is_64bit): likewise
12275 (grub_freebsd_add_meta): use ALIGN_VAR
12276 (grub_e820_mmap): new declaration
12277 (grub_freebsd_add_mmap): new function
12278 (grub_freebsd_add_meta_module): support 64 bit kernels
12279 (grub_freebsd_list_modules): use ALIGN_VAR
12280 (gdt_descriptor): new declaration
12281 (grub_freebsd_boot): support 64 bit kernels
12282 (grub_bsd_elf64_hook): new function
12283 (grub_bsd_load_elf): support elf64
12284
038c5720 122852009-05-03 Bean <bean123ch@gmail.com>
12286
12287 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
12288 after we get the result of if statement.
12289
fc45fb58 122902009-05-03 Bean <bean123ch@gmail.com>
12291
12292 * Makefile.in (enable_efiemu): New variable.
12293
12294 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
12295 set.
12296 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
12297 path.
12298 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
12299 path, add -mno-red-zone option.
12300 (efiemu64_s.o): Likewise.
12301 (efiemu64.o): Use macro $^ for source file.
12302
12303 * configure.ac (--enable-efiemu): New option.
12304
bbee0f2b 123052009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 xnu support
12308
12309 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
12310 (pkglib_MODULES): add xnu.mod
12311 (xnu_mod_SOURCES): new variable
12312 (xnu_mod_CFLAGS): likewise
12313 (xnu_mod_LDFLAGS): likewise
12314 (xnu_mod_ASFLAGS): likewise
12315 * conf/i386-pc.rmk: likewise
12316 * conf/x86_64-efi.rmk: likewise
7dd4a573 12317 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 12318 new declaration
12319 * include/grub/i386/macho.h: new file
12320 * include/grub/i386/xnu.h: likewise
12321 * include/grub/macho.h: likewise
12322 * include/grub/machoload.h: likewise
12323 * include/grub/x86_64/macho.h: likewise
12324 * include/grub/x86_64/xnu.h: likewise
12325 * include/grub/xnu.h: likewise
12326 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
12327 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
12328 * loader/i386/efi/xnu.c: new file
12329 * loader/i386/pc/xnu.c: likewise
12330 * loader/i386/xnu.c: likewise
12331 * loader/i386/xnu_helper.S: likewise
12332 * loader/macho.c: likewise
12333 * loader/xnu.c: likewise
12334 * loader/xnu_resume.c: likewise
12335 * util/grub-dumpdevtree: likewise
12336 * include/grub/i386/pit.h: include grub/err.h
12337 (grub_pit_wait): export
12338 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 12339
5caf964d 123402009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 Efiemu
7dd4a573 12343
5caf964d 12344 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 12345 _linux_efi, linux_efi.
12346 new files in grub-emu
5caf964d 12347 new targets efiemu32.o and efiemu64.o
12348 * loader/linux_normal_efiemu.c: likewise
12349 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 12350 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 12351 files to copy
12352 * include/grub/autoefi.h: new file
7dd4a573 12353 * include/grub/i386/efiemu.h: likewise
5caf964d 12354 * include/grub/i386/pc/efiemu.h: likewise
12355 * include/grub/efi/api.h: add LL suffix when necessary
12356 new definitions relating to tables
12357 * include/grub/efiemu/efiemu.h: new file
12358 * include/grub/efiemu/runtime.h: likewise
12359 * efiemu/prepare.c: likewise
12360 * efiemu/loadcore_common.c: likewise
12361 * efiemu/loadcore64.c: likewise
12362 * efiemu/runtime/efiemu.sh: likewise
12363 * efiemu/runtime/efiemu.S: likewise
12364 * efiemu/runtime/efiemu.c: likewise
12365 * efiemu/runtime/config.h: likewise
12366 * efiemu/prepare32.c: likewise
12367 * efiemu/main.c: likewise
12368 * efiemu/modules/pnvram.c: likewise
12369 * efiemu/modules/i386: likewise
12370 * efiemu/modules/i386/pc: likewise
12371 * efiemu/modules/acpi.c: likewise
12372 * efiemu/i386/pc/cfgtables.c: likewise
12373 * efiemu/i386/loadcore64.c: likewise
12374 * efiemu/i386/loadcore32.c: likewise
12375 * efiemu/prepare64.c: likewise
12376 * efiemu/loadcore.c: likewise
12377 * efiemu/symbols.c: likewise
12378 * efiemu/mm.c: likewise
12379 * efiemu/loadcore32.c: likewise
7dd4a573 12380
123812009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 12382
12383 ACPI spoofing
12384
12385 * commands/acpi.c: new file
12386 * commands/i386/pc/acpi.c: likewise
12387 * commands/efi/acpi.c: likewise
12388 * include/grub/acpi.h: likewise
12389 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12390 (acpi_mod_SOURCES): new variable
12391 (acpi_mod_CFLAGS): likewise
12392 (acpi_mod_LDFLAGS): likewise
12393 * conf/i386-efi.rmk: likewise
12394 * conf/x86_64-efi.rmk: likewise
12395
7dd4a573 123962009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 12397
12398 Missing part from mmap patch
12399
12400 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12401 (grub_mmap_unregister)
12402 (grub_mmap_free_and_unregister): use grub_mmap_register
12403
7dd4a573 124042009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 12405
12406 Mmap services
12407
12408 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12409 * loader/i386/linux.c (find_mmap_size): likewise
12410 (allocate_pages): likewise
12411 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12412 (grub_fill_multiboot_mmap): likewise
12413 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12414 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12415 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12416 (OPENBSD_MMAP_RESERVED): likewise
12417 * include/grub/i386/pc/memory.h: include grub/memory.h
12418 (grub_lower_mem): removed
12419 (grub_upper_mem): likewise
12420 (GRUB_MACHINE_MEMORY_ACPI): new definition
12421 (GRUB_MACHINE_MEMORY_NVS): likewise
12422 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12423 (GRUB_MACHINE_MEMORY_HOLE): likewise
12424 (grub_machine_mmap_register): likewise
12425 (grub_machine_mmap_unregister): likewise
12426 (grub_machine_get_upper): likewise
12427 (grub_machine_get_lower): likewise
12428 (grub_machine_get_post64): likewise
12429 * include/grub/i386/efi/memory.h: new file
12430 * include/grub/x86_64/efi/memory.h: likewise
12431 * include/grub/efi/memory.h: likewise
12432 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12433 (mmap_mod_SOURCES): new variable
12434 (mmap_mod_LDFLAGS): likewise
12435 (mmap_mod_ASFLAGS): likewise
12436 * conf/i386-coreboot.rmk: likewise
12437 * conf/i386-ieee1275.rmk: likewise
12438 * conf/i386-efi.rmk: likewise
12439 * conf/x86_64-efi.rmk: likewise
12440 * include/grub/types.h (UINT_TO_PTR): new macro
12441 (PTR_TO_UINT32): likewise
12442 (PTR_TO_UINT64): likewise
12443 * include/grub/memory.h: new file
12444 * mmap/i386/pc/mmap.c: likewise
12445 * mmap/i386/pc/mmap_helper.S: likewise
12446 * mmap/i386/uppermem.c: likewise
12447 * mmap/mmap.c: likewise
12448 * mmap/efi/mmap.c: likewise
7dd4a573 12449 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 12450 grub_upper_mem
12451 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12452 (grub_upper_mem): likewise
12453 (grub_machine_init): don't use grub_upper_mem,
12454 make grub_lower_mem local
12455 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12456 grub_mmap_iterate and grub_mmap_get_upper
12457 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12458
d558e6b5 124592009-05-02 Bean <bean123ch@gmail.com>
12460
12461 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12462 script/sh/parser.y.
12463 (pkglib_MODULES): Add normal.mod and sh.mod.
12464 (normal_SOURCES): New variable.
12465 (normal_mod_CFLAGS): Likewise.
12466 (normal_mod_LDFLAGS): Likewise.
12467 (sh_mod_SOURCES): Likewise.
12468 (sh_mod_CFLAGS): Likewise.
12469 (sh_mod_LDFLAGS): Likewise.
12470
12471 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12472 script/sh/lexer.c_DEPENDENCIES.
12473 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12474 kern/rescue_reader.c and kern/rescue_parser.c.
12475 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12476 (grub_emu_SOURCES): Change source files.
12477 (pkglib_MODULES): Remove normal.mod.
12478 (normal_SOURCES): Removed.
12479 (normal_mod_CFLAGS): Likewise.
12480 (normal_mod_LDFLAGS): Likewise.
12481 * conf/i386-coreboot.rmk: Likewise.
12482 * conf/i386-efi.rmk: Likewise.
12483 * conf/i386-ieee1276.rmk: Likewise.
12484 * conf/powerpc-ieee1275.rmk: Likewise.
12485 * conf/sparc64-ieee1275.rmk: Likewise.
12486 * conf/x86_64-efi.rmk: Likewise.
12487
12488 * include/grub/command.h (grub_command_execute): New inline function.
12489
12490 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12491
12492 * include/grub/normal.h: Remove <grub/setjmp.h>.
12493 (grub_fs_module_list): Moved to normal/autofs.c.
12494 (grub_exit_env): Removed.
12495 (grub_command_execute): Likewise.
12496 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12497 parameter script.
12498 (read_command_list): New function declaration.
12499 (read_fs_list): Likewise.
12500
12501 * include/parser.h: Include <grub/reader.h>.
12502 (grub_parser_split_cmdline): Change type of getline parameter.
12503 (grub_parser): New structure.
12504 (grub_parser_class): New variable.
12505 (grub_parser_execute): New function declaration.
12506 (grub_register_rescue_parser): Likewise.
12507 (grub_parser_register): New inline function.
12508 (grub_parser_unregister): Likewise.
12509 (grub_parser_get_current): Likewise.
12510 (grub_parser_set_current): Likewise.
12511
12512 * include/grub/reader.h: New file.
12513 * kern/reader.c: Likewise.
12514 * kern/rescue_parser.c: Likewise.
12515 * kern/rescue_reader.c: Likewise.
12516 * normal/autofs.c: Likewise.
12517 * normal/dyncmd.c: Likewise.
12518
12519 * include/grub/rescue.h: Removed.
12520 * normal/command.h: Likewise.
12521
12522 * include/grub/script.h: Moved to ...
12523 * include/grub/script_sh.h: ... Moved here.
12524 * normal/execute.c: Moved to ...
12525 * script/sh/execute.c: ... Moved here.
12526 * normal/function.c: Moved to ...
12527 * script/sh/function.c: ... Moved here.
12528 * normal/lexer.c: Moved to ...
12529 * script/sh/lexer.c: ... Moved here.
12530 * normal/parser.y: Moved to ...
12531 * script/sh/parser.y: ... Moved here.
12532 * normal/script.c: Moved to ...
12533 * script/sh/script.c: ... Moved here.
12534
12535 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12536 <grub/reader.h>.
12537 (grub_exit_env): Removed.
12538 (fs_module_list): Moved to normal/autofs.c.
12539 (grub_file_getline): Don't handle comment here.
12540 (free_menu): Skip removed field entry->commands.
12541 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12542 script parameter.
12543 (read_config_file): Removed nested parameter, change getline function.
12544 (grub_enter_normal_mode): Removed.
12545 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12546 (read_command_list): Likewise.
12547 (autoload_fs_module): Moved to normal/autofs.c.
12548 (read_fs_list): Likewise.
12549 (reader_nested): New variable.
12550 (grub_normal_execute): Run parser.sh to switch to sh parser.
12551 (grub_cmd_rescue): Removed.
12552 (cmd_normal): Removed.
12553 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12554 rescue command.
12555 (grub_cmdline_run): New function.
12556 (grub_normal_reader_init): Likewise.
12557 (grub_normal_read_line): Likewise.
12558 (grub_env_write_pager): Likewise.
12559 (cmdline): New variable.
12560 (grub_normal_reader): Likewise.
12561 (GRUB_MOD_INIT): Register normal reader and set as current, register
12562 pager hook, register normal command with grub_register_command_prio,
12563 so that it won't show up in command.lst.
12564 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12565 grub_fs_autoload_hook.
12566
12567 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12568 (grub_menu_execute_entry): Replace grub_script_execute with
12569 grub_parser_execute, change parameter to grub_command_execute.
12570
12571 * normal/menu_text.c: Remove <grub/script.h>.
12572
12573 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12574 and <grub/parser.h>.
12575 (run): Change editor_getline to use new parser interface. Change
12576 parameter to grub_command_execute.
12577
12578 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12579 <grub/reader.h> and <grub/parser.h>.
12580 (grub_load_normal_mode): Execute normal command.
12581 (grub_main): Call grub_register_core_commands,
12582 grub_register_rescue_parser and grub_register_rescue_reader, use
12583 grub_reader_loop to enter input loop.
12584
7dd4a573 12585 * kern/parser.c (grub_parser_split_cmdline): Change type of
12586 getline parameter.
d558e6b5 12587 (grub_parser_class): New variable.
12588 (grub_parser_execute): New function.
12589
12590 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12591 * loader/multiboot2.c: Likewise.
12592 * loader/sparc64/ieee1275/linux.c: Likewise.
12593
12594 * util/grub-emu.c (read_command_list): New dummy function.
12595
18db813d 125962009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12597
12598 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12599 count to 16 for CCISS and IDA.
12600
6c67de15 126012009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12602
12603 * normal/menu_text.c (grub_wait_after_message): Print a newline
12604 after waiting for user input.
12605
12606 * loader/i386/linux.c: Include `<grub/normal.h>'.
12607 (grub_cmd_linux): Improve the error message about `ask' mode, by
12608 waiting for user input so it's not missed (we can do this, since
12609 user requested interaction).
12610
d9dc87b0 126112009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 Added missing lst to grub-mkrescue
12614
12615 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12616 and ${input_dir}/parttool.lst
12617
ac8a2baa 126182009-04-30 David S. Miller <davem@davemloft.net>
12619
ad22a610 12620 * util/hostdisk.c (device_is_wholedisk): New function.
12621 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12622 zero only if device_is_wholedisk() returns true.
12623
6966215d 12624 * util/hostdisk.c (convert_system_partition_to_system_disk):
12625 Handle virtual disk devices named /dev/vdiskX as found on sparc
12626 and powerpc.
12627
ac8a2baa 12628 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12629 lettered partition specifier is found, convert to numbered.
12630
979b4fb4 126312009-04-29 David S. Miller <davem@davemloft.net>
12632
e2bf39b2 12633 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12634 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12635
3c64e104 12636 * normal/command.c: Add missing newline at end of file.
12637
979b4fb4 12638 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12639 warnings.
12640 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12641 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12642 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12643 ihandles have a 32-bit type but need to be stored in a "void *".
12644
136d9f82 126452009-04-28 Pavel Roskin <proski@gnu.org>
12646
9459c306 12647 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12648 not disk. Adjust all dependencies.
2e08a26a 12649 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 12650 grub_disk_close().
12651
136d9f82 12652 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12653 parent's partition, don't copy it by reference, as it gets freed
12654 on close.
12655
7dd4a573 126562009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 12657
12658 Preboot hooks support
12659
12660 * commands/boot.c (struct grub_preboot_t): new declaration
12661 (preboots_head): new variable
12662 (preboots_tail): likewise
12663 (grub_loader_register_preboot_hook): new function
12664 (grub_loader_unregister_preboot_hook): likewise
12665 (grub_loader_set): launch preboot hooks
12666 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12667 (grub_loader_register_preboot_hook): new declaration
12668 (grub_loader_unregister_preboot_hook): likewise
12669
5af922b5 126702009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12671
12672 Warning fix
12673
7dd4a573 12674 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 12675 calling grub_dprintf
12676
a5562c30 126772009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12678
12679 Bug and warning fixes
12680
7dd4a573 12681 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 12682 declaration
12683 * commands/test.c (test_parse): fixed bug with file tests and corrected
12684 declaration of find_file
12685
4006f85c 126862009-04-26 Pavel Roskin <proski@gnu.org>
12687
12688 * Makefile.in: Don't install empty manual pages if help2man is
12689 missing. Use help2man option for output, not shell redirection.
12690
5c77c3de 126912009-04-26 David S. Miller <davem@davemloft.net>
12692
12693 * util/grub-mkdevicemap.c (make_device_map): Add missing
12694 NESTED_FUNC_ATTR to process_device().
12695
033b10a8 126962009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 Test command
12699
12700 * commands/test.c: rewritten to use bash-like test
12701
e4343593 127022009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12703
12704 Parttool autoloading and improvements
12705
7dd4a573 12706 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 12707 (parttool.lst): new target
12708 * genmk.rb: generate parttool-*
12709 (CLEANFILES): add #{parttool}
12710 (PARTTOOLFILES): new variable
12711 * genparttoollist.sh: new file
7dd4a573 12712 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 12713 (grub_pcpart_type): likewise
12714 * commands/parttool.c (helpmsg): new variable
12715 (grub_cmd_parttool): output help if not enough arguments are supplied
12716 autoload modules
12717 (GRUB_MOD_INIT(parttool)): use helpmsg
12718
0d312500 127192009-04-24 David S. Miller <davem@davemloft.net>
12720
7dd4a573 12721 Avoiding opening same device multiple times in device iterator.
0d312500 12722
12723 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 12724 and use it to build a list of partitions in iterate_disk() and
0d312500 12725 iterate_partition().
12726
ac20caff 12727 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12728 on disk->data.
12729
0dcf7495 12730 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12731 grub_devalias_iterate() result instead of unconditional 0.
12732 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12733 Also, capture hook return value, either directly or via
12734 grub_children_iterate(), and propagate to caller.
12735 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12736 grub_children_iterate): Return value is now 'int' instead of
12737 'grub_err_t'.
12738 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12739 like a proper iterator, stopping when hooks return non-zero.
12740 (grub_devalias_iterate): Likewise.
12741
c8c08833 127422009-04-23 David S. Miller <davem@davemloft.net>
12743
12744 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12745
f01005a8 127462009-04-22 David S. Miller <davem@davemloft.net>
12747
12748 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12749 is larger than address_cells, use that value for address_cells too.
12750
4e8269da 12751 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12752 IEEE1275_MAX_PATH_LEN): Define.
12753 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12754 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12755 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12756 'devtype'. Explicitly NULL terminate devalias expansion.
12757
a1447506 12758 * util/sparc64/ieee1275/misc.c: New file.
12759 * util/sparc64/ieee1275/grub-setup.c: New file.
12760 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12761 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12762 * util/sparc64/ieee1275/grub-install.in: New file.
12763 * util/ieee1275/ofpath.c: New file.
12764 * util/ieee1275/devicemap.c: New file.
12765 * util/devicemap.c: New file.
12766 * util/deviceiter.c: New file.
12767 * kern/sparc64/ieee1275/init.c: New file.
12768 * include/grub/util/ofpath.h: New file.
12769 * include/grub/util/deviceiter.h: New file.
12770 * util/grub-mkdevicemap.c: Include deviceiter.h.
12771 Implement using grub_util_emit_devicemap_entry and
12772 grub_util_iterate_devices.
12773 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12774 util/devicemap.c into grub-mkdevicemap
12775 * conf/i386-efi.rmk: Likewise.
12776 * conf/i386-ieee1275.rmk: Likewise.
12777 * conf/i386-pc.rmk: Likewise.
12778 * conf/powerpc-ieee1275.rmk: Likewise.
12779 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12780 images and installation utilities. Build kernel as image
12781 instead of as elf binary. Use common rules as much as possible.
12782
7dd4a573 127832009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 12784
12785 Correct GPT definition
12786
7dd4a573 12787 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 12788 of "attrib" member
12789
c6c5219f 127902009-04-19 Felix Zielcke <fzielcke@z-51.de>
12791
12792 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12793
0552ff9f 127942009-04-19 David S. Miller <davem@davemloft.net>
12795
12796 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12797 (grub_rescue_cmd_linux): Rename to...
12798 (grub_cmd_linux): and fix prototype.
12799 (grub_rescue_cmd_initrd): Rename to...
12800 (grub_cmd_initrd): and fix prototype.
12801 (cmd_linux, cmd_initrd): New.
12802 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12803 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12804
d1a282fc 128052009-04-17 Pavel Roskin <proski@gnu.org>
12806
07c5039f 12807 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12808 format.
12809 (grub_ohci_transfer): Likewise.
12810
b012002d 12811 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12812
1bc09c35 12813 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12814 return without a value. Fix inconsistent indentation.
12815
e0ff9126 12816 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12817 match struct grub_fs.
12818
d1a282fc 12819 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12820 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12821 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12822 * commands/lspci.c (grub_lspci_iter): Likewise.
12823
a96df3f2 128242009-04-16 Bean <bean123ch@gmail.com>
12825
12826 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12827 value.
12828
41bb0fe9 128292009-04-15 Pavel Roskin <proski@gnu.org>
12830
12831 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12832 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12833 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12834 definitions.
12835
596c6970 128362009-04-15 Felix Zielcke <fzielcke@z-51.de>
12837
12838 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 12839 that no multiple data or metadata areas are supported and `Unknown
596c6970 12840 metadata header'.
12841
7dd4a573 128422009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 12843
12844 Move loader out of the kernel
12845
12846 * kern/loader.c: moved to ...
12847 * commands/boot.c: ... moved here
12848 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12849 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12850 * include/grub/kernel.h (grub_machine_fini): export
12851 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12852 (grub_loader_set): likewise
12853 (grub_loader_unset): likewise
12854 (grub_loader_boot): likewise
12855 * conf/common.rmk: new module boot.mod
12856 (pkglib_MODULES): add boot.mod
12857 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12858 (grub_emu_SOURCES): likewise
12859 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12860 (grub_emu_SOURCES): likewise
12861 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12862 (grub_emu_SOURCES): likewise
12863 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12864 (grub_emu_SOURCES): likewise
12865 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12866 (grub_emu_SOURCES): likewise
7dd4a573 12867 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12868 (grub_emu_SOURCES): likewise
0d5d5653 12869 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 12870 (grub_emu_SOURCES): likewise
0d5d5653 12871
7dd4a573 128722009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 12873
12874 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 12875
5999d619 12876 * kern/misc.c (grub_itoa): Removed function
12877 (grub_ltoa): likewise
12878 (grub_vsprintf): use grub_lltoa
12879
7dd4a573 128802009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 12881
12882 Restore grub-emu
12883
12884 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12885 * conf/i386-coreboot.rmk: likewise
12886 * conf/i386-ieee1275.rmk: likewise
12887 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 12888
20318222 128892009-04-15 Felix Zielcke <fzielcke@z-51.de>
12890
12891 * INSTALL: Add that `./autogen.sh' needs to be run before
12892 `./configure.'.
12893
d05f0df3 128942009-04-14 Bean <bean123ch@gmail.com>
12895
12896 * Makefile.in (pkglib_DATA): Add handler.lst.
12897 (handler.lst): New rule.
12898
12899 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12900 * conf/i386-coreboot.rmk: Likewise.
12901 * conf/i386-ieee1275.rmk: Likewise.
12902 * conf/i386-efi.rmk: Likewise.
12903 * conf/x86_64-efi.rmk: Likewise.
12904 * conf/powerpc-ieee1275.rmk: Likewise.
12905 * conf/sparc64-ieee1275.rmk: Likewise.
12906
12907 * genhandlerlist.sh: New file.
12908
12909 * genmk.rb: Add rules to generate handler.lst.
12910
12911 * include/grub/normal.h (grub_file_getline): New function definition.
12912 (read_handler_list): Likewise.
12913 (free_handler_list): Likewise.
12914
12915 * include/grub/term.h (grub_term_register_input): Add name parameter
12916 for auto generation of handler.lst.
12917 (grub_term_register_output): Likewise.
12918
12919 * normal/handler.c: New file.
12920
12921 * normal/main.c (get_line): Renamed to grub_file_getline.
12922 (read_config_file): Use the newly renamed grub_file_getline.
12923 (read_command_list): Likewise.
12924 (read_fs_list): Likewise.
12925 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12926 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12927
12928 * term/efi/console.c (grub_console_init): Add name parameter for auto
12929 generation of handler.lst.
12930 * term/gfxterm.c: Likewise.
12931 * term/i386/pc/at_keyboard.c: Likewise.
12932 * term/i386/pc/console.c: Likewise.
12933 * term/i386/pc/serial.c: Likewise.
12934 * term/i386/pc/vesafb.c: Likewise.
12935 * term/i386/pc/vga.c: Likewise.
12936 * term/i386/pc/vga_text.c: Likewise.
12937 * term/ieee1275/ofconsole.c: Likewise.
12938 * term/usb_keyboard.c: Likewise.
12939
33c846be 129402009-04-14 Bean <bean123ch@gmail.com>
12941
12942 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12943 properly with null character.
12944
4484e01e 129452009-04-14 Felix Zielcke <fzielcke@z-51.de>
12946
12947 * configure: Remove.
12948 * config.h.in: Likewise.
f93d668e 12949 * stamp-h.in: Likewise.
4484e01e 12950 * DISTLIST: Likewise.
12951 * conf/common.mk: Likewise.
12952 * conf/i386-coreboot.mk: Likewise.
12953 * conf/i386-efi.mk: Likewise.
12954 * conf/i386-ieee1275.mk: Likewise.
12955 * conf/i386.mk: Likewise.
12956 * conf/i386-pc.mk: Likewise.
12957 * conf/powerpc-ieee1275.mk: Likewise.
12958 * conf/sparc64-ieee1275.mk: Likewise.
12959 * conf/x86_64-efi.mk: Likewise.
12960
12961 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12962 develop on GRUB.
12963
7dd4a573 129642009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 12965 David S. Miller <davem@davemloft.net>
12966
12967 * util/hostdisk.c (make_device_name): Fix buffer length
12968 calculations.
12969
e25b5a8c 129702009-04-14 Felix Zielcke <fzielcke@z-51.de>
12971
12972 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12973 <sys/param.h> and <sys/sysctl.h>.
12974 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12975 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12976 opening the device and reset them afterwards.
12977
1f1f580c 129782009-04-13 Pavel Roskin <proski@gnu.org>
12979
12980 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12981 Reported by John Stanley <jpsinthemix@verizon.net>
12982
7ebc2d6b 129832009-04-13 Robert Millan <rmh@aybabtu.com>
12984
12985 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 12986 that name for menuentries when appropriate.
7ebc2d6b 12987
d8ba3667 129882009-04-13 Felix Zielcke <fzielcke@z-51.de>
12989
12990 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12991
cba416eb 129922009-04-13 Robert Millan <rmh@aybabtu.com>
12993
12994 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12995 to Linux, simply abort telling the user it's no longer supported.
12996
a547a745 129972009-04-13 Felix Zielcke <fzielcke@z-51.de>
12998
12999 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 13000 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 13001 `freebsd_loadenv' only when devices.hints exist.
13002
232a769c 130032009-04-13 Pavel Roskin <proski@gnu.org>
13004
13005 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
13006
c3012039 130072009-04-13 Felix Zielcke <fzielcke@z-51.de>
13008
13009 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
13010 partition number.
13011 (grub_drive): Likewise.
13012
234022fe 130132009-04-13 David S. Miller <davem@davemloft.net>
13014
13015 * kern/sparc64/ieee1275/ieee1275.c: New file.
13016 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
13017 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
13018 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
13019 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
13020 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
13021 grub_ieee1275_alloc_physmem): Declare new exported functions.
13022
d8e1836c 13023 * include/grub/sparc64/ieee1275/loader.h: New file.
13024 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13025 * include/grub/sparc64/kernel.h: Likewise.
13026 * loader/sparc64/ieee1275/linux.c: Likewise.
13027
96bd81ec 13028 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
13029 (grub_fstest_SOURCES): Likewise.
13030
6a4737e5 13031 * util/hostdisk.c (make_device_name): Do not make any assumptions
13032 about the length of drive names.
13033
1d7a72fd 13034 * kern/dl.c (grub_dl_load_file): Close file immediately when
13035 we are done using it.
13036
56bc2471 130372009-04-12 David S. Miller <davem@davemloft.net>
13038
13039 * kern/misc.c (grub_ltoa): Fix cast when handling negative
13040 values. Noticed by Pavel Roskin.
13041
df38d0bb 13042 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
13043 target compiler.
7dd4a573 13044
e382e93a 13045 * genmk.rb: Add more flexible image type specification, also
13046 pass --strip-unneeded to objcopy.
13047 * conf/i386-pc.rmk: Use *_FORMAT.
13048 * conf/i386-pc.mk: Rebuilt.
13049
f5dbbca9 13050 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
13051 (OFDISK_HASH_SZ): Define.
13052 (ofdisk_hash): New hash table.
13053 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
13054 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
13055 instead of device phandle which is not unique.
13056
91c88b12 13057 * kern/sparc64/ieee1275/init.c: Delete, replace with...
13058 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
13059 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
13060 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
13061 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
13062 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
13063 GRUB_KERNEL_MACHINE_DATA_END): Define.
13064 (grub_kernel_image_size, grub_total_module_size): Declare.
13065
5b5d4aa5 130662009-04-12 Pavel Roskin <proski@gnu.org>
13067
7dd4a573 13068 * configure.ac: Change the logic when we check for target tools.
13069 Do it when the target is specified and it's different from the
13070 specified value of the host.
5b5d4aa5 13071
c91e1793 130722009-04-11 Felix Zielcke <fzielcke@z-51.de>
13073
13074 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
13075 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
13076 GNU/kFreeBSD. Check if a device is a character device. Use
13077 DIOCGMEDIASIZE to get the size.
13078 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
13079 support for GNU/kFreeBSD.
13080 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
13081 is a character device instead of a block device. Add support for
13082 FreeBSD device names.
13083
13084 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
13085 is a character device instead of a block device.
13086
13087 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
13088 is a character device instead of a block device.
13089
b1ac8644 130902009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
13091
13092 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
13093 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
13094 FreeBSD. Check if a device is a character device. Use
13095 DIOCGMEDIASIZE to get the size.
13096 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
13097 support for FreeBSD.
13098 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
13099 is a character device instead of a block device. Add support for
13100 FreeBSD device names.
13101
13102 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
13103 a character device instead of a block device.
13104 (grub_util_check_char_device): New function.
13105
13106 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
13107 a character device instead of a block device.
13108
13109 * include/grub/util/getroot.h (grub_util_check_char_device): New
13110 prototype.
13111
a3f7515a 131122009-04-11 David S. Miller <davem@davemloft.net>
13113
13114 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
13115 static libgcc.
13116 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
13117 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
13118 function, if present.
13119 (__bswapdi2): Likewise.
13120
0d44993d 13121 * include/grub/sparc64/ieee1275/boot.h: New file.
13122 * boot/sparc64/ieee1275/boot.S: Likewise.
13123 * boot/sparc64/ieee1275/diskboot.S: Likewise.
13124
ed3d2bc2 13125 * kern/misc.c (grub_ltoa): New function.
13126 (grub_vsprintf): Use it to format 'long' integers.
13127
d3bfb59c 131282009-04-10 David S. Miller <davem@davemloft.net>
13129
13130 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
13131 slots are of type grub_ieee1275_cell_t.
13132 (grub_nand_read): Likewise.
13133 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
13134 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
13135 macros are used to compare values in arg/ret block of the call.
13136 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13137 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
13138 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
13139 grub_ieee1275_instance_to_path, grub_ieee1275_write,
13140 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
13141 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
13142 grub_ieee1275_close, grub_ieee1275_set_property,
13143 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
13144 grub_ieee1275_cell_t.
13145 * kern/ieee1275/openfw.c (grub_map): Likewise.
13146 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
13147 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
13148
450e2238 13149 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
13150 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13151 (grub_devalias_iterate): Likewise.
13152
7dd4a573 131532009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 13154
13155 UFS improvements
13156
13157 * fs/ufs.c (INODE_NBLOCKS): new definition
13158 (struct grub_ufs_dirent): added fields for non-BSD dirents
13159 (grub_ufs_get_file_block): fixed double indirect handling
13160 (grub_ufs_lookup_symlink): use more robust way to determine whether
13161 symlink is inline
13162 (grub_ufs_find_file): support for non-BSD dirents
13163 (grub_ufs_dir): support for non-BSD dirents
13164
e7e6862a 131652009-04-10 Bean <bean123ch@gnail.com>
13166
13167 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
13168 attribute, otherwise the size would be wrong for i386 platform.
13169
13170 * include/grub/pci.h (grub_pci_read_word): New inline function.
13171 (grub_pci_read_byte): Likewise.
13172 (grub_pci_write): Likewise.
13173 (grub_pci_write_word): Likewise.
13174 (grub_pci_write_byte): Likewise.
13175
13176 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
13177
13178 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
13179 (find_framebuf): Scan pci to locate the frame buffer address.
13180
13181 * commands/efi/fixvideo.c: New file.
13182
13183 * commands/efi/loadbios.c: Likewise.
13184
13185 * commands/memrw.c: Likewise.
13186
13187 * util/grub-dumpbios.in: Likewise.
13188
13189 * conf/common.rmk (grub-dumpbios): New utility.
13190 (pkglib_MODULES): New module memrw.mod.
13191 (memrw_mod_SOURCE): New macro.
13192 (memrw_mod_CFLAGS): Likewise.
13193 (memrw_mod_LDFLAGS): Likewise.
13194
7dd4a573 13195 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 13196 fixvideo.mod.
13197 (loadbios_mod_SOURCE): New macro.
13198 (loadbios_mod_CFLAGS): Likewise.
13199 (loadbios_mod_LDFLAGS): Likewise.
13200 (fixvideo_mod_SOURCE): Likewise.
13201 (fixvideo_mod_CFLAGS): Likewise.
13202 (fixvideo_mod_LDFLAGS): Likewise.
13203
7dd4a573 13204 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 13205 fixvideo.mod.
13206 (loadbios_mod_SOURCE): New macro.
13207 (loadbios_mod_CFLAGS): Likewise.
13208 (loadbios_mod_LDFLAGS): Likewise.
13209 (fixvideo_mod_SOURCE): Likewise.
13210 (fixvideo_mod_CFLAGS): Likewise.
13211 (fixvideo_mod_LDFLAGS): Likewise.
13212
af63ada2 132132009-04-08 Felix Zielcke <fzielcke@z-51.de>
13214
13215 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
13216
c2cdde70 132172009-04-07 David S. Miller <davem@davemloft.net>
13218
13219 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
13220 support for R_SPARC_OLO10 relocations. Fix compile warning for
13221 R_SPARC_WDISP30 case.
ea3f72cf 13222 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 13223
761319cf 132242009-04-06 Pavel Roskin <proski@gnu.org>
13225
1007d1f5 13226 * include/grub/misc.h (ARRAY_SIZE): New macro.
13227 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
13228 New macro.
13229 * loader/i386/linux.c (allocate_pages): Use free_pages().
13230 (grub_linux_unload): Don't use free_pages().
13231 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
13232 wrong index. Treat all other modes as text modes.
13233 (grub_cmd_linux): Initialize vid_mode unconditionally to
13234 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
13235
761319cf 13236 * commands/help.c (print_command_help): Use cmd->prio, not
13237 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
13238
ea761d40 132392009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 13240
ea761d40 13241 Parttool
13242
13243 * parttool/pcpart.c: new file
13244 * commands/parttool.c: likewise
13245 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
13246 (parttool_mod_SOURCES): new variable
13247 (parttool_mod_CFLAGS): likewise
13248 (parttool_mod_LDFLAGS): likewise
13249 (pcpart_mod_SOURCES): likewise
13250 (pcpart_mod_CFLAGS): likewise
13251 (pcpart_mod_LDFLAGS): likewise
7dd4a573 13252 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 13253 and parttool/pcpart.c
13254 * conf/i386-efi.rmk: likewise
13255 * conf/i386-ieee1275.rmk: likewise
13256 * conf/i386-pc.rmk: likewise
13257 * conf/powerpc-ieee1275.rmk: likewise
13258 * conf/sparc64-ieee1275.rmk: likewise
13259 * conf/x86_64-ieee1275.rmk: likewise
13260
05aaebfb 132612009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13262
13263 Support for mtime and further expandability of dir command
13264
13265 * include/grub/lib/datetime.h: moved to ...
7dd4a573 13266 * include/grub/datetime.h: ... moved here and added
05aaebfb 13267 declaration of grub_unixtime2datetime. All users updated
7dd4a573 13268 * include/grub/fs.h: new syntax for dir and mtime functions in
13269 struct grub_fs
05aaebfb 13270 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
13271 and GRUB_FSHELP_FLAGS_MASK
13272 * commands/ls.c (grub_ls_list_files): Write mtime in long format
13273 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
13274 (grub_ext2_mtime): new function
13275 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
13276 (grub_hfsplus_mtime): new function
13277 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
13278 (GRUB_UFS_ATTR_FILE): likewise
13279 (GRUB_UFS_ATTR_LNK): likewise
13280 (struct grub_ufs_sblock): new fields mtime
13281 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
13282 all users updated
13283 (grub_ufs_dir): mtime support
13284 (grub_ufs_mtime): new function
13285 * fs/affs.c (grub_affs_dir): use new dir syntax
13286 * fs/afs.c (grub_afs_dir): likewise
13287 * fs/cpio.c (grub_cpio_dir): likewise
13288 * fs/fat.c (grub_fat_find_dir): likewise
13289 * fs/hfs.c (grub_hfs_dir): likewise
13290 * fs/iso9660.c (grub_iso9660_dir): likewise
13291 * fs/jfs.c (grub_jfs_dir): likewise
13292 * fs/minix.c (grub_minix_dir): likewise
13293 * fs/ntfs.c (grub_ntfs_dir): likewise
13294 * fs/reiserfs.c (grub_reiserfs_dir): likewise
13295 * fs/sfs.c (grub_sfs_dir): likewise
13296 * fs/xfs.c (grub_xfs_dir): likewise
13297 * util/hostfs.c (grub_hostfs_dir): likewise
13298 * lib/datetime.c: moved to ...
13299 * normal/datetime.c: ... moved here
13300 (grub_unixtime2datetime): new function
13301 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 13302 * normal/completion.c (iterate_dir): use new dir syntax
13303 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 13304 last modification time of a volume
7dd4a573 13305 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 13306 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 13307 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 13308 (normal_mod_SOURCES): likewise
13309 (datetime_mod_SOURCES): Removed lib/datetime.c
13310 * conf/i386-efi.rmk: likewise
7dd4a573 13311 * conf/i386-ieee1275.rmk: likewise
05aaebfb 13312 * conf/i386-pc.rmk: likewise
13313 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 13314 * conf/sparc64-ieee1275.rmk: likewise
13315 * conf/x86_64-efi.rmk: likewise
05aaebfb 13316
8a7e1a14 133172009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13318
13319 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 13320
13321 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 13322 on grub_fat_find_dir
13323 (grub_fat_find_dir): use grub_fat_iterate_dir
13324 (grub_fat_label): likewise
13325
04186a9c 133262009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13327
7dd4a573 13328 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 13329 and command.h
13330 remove extraneous kernel_elf_HEADERS
13331
da4c0bb6 133322009-04-04 Bean <bean123ch@gnail.com>
13333
13334 * include/grub/util/misc.h: Add dummy function fsync for mingw.
13335
13336 * util/misc.c: Likewise.
13337
54ad9555 133382009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
13339
13340 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
13341 instead of grub_printf.
13342
7a6bf9f2 133432009-04-03 Robert Millan <rmh@aybabtu.com>
13344
13345 * loader/i386/linux.c (grub_linux_setup_video): Fill
13346 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
13347 values from `mode info' structure instead of hardcoded
13348 values.
13349
3fcc2083 133502009-04-01 Pavel Roskin <proski@gnu.org>
13351
13352 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
13353 unused now.
13354 * genmk.rb: Likewise.
13355 * configure.ac: Likewise.
13356
5ec9740b 133572009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
13358
13359 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
13360 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
13361
5270cec8 133622009-04-01 David S. Miller <davem@davemloft.net>
13363
13364 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 13365 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 13366 (grub_setjmp): Mark with 'returns_twice' attribute.
13367 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
13368 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
13369 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
13370
9c3dd854 133712009-04-01 Robert Millan <rmh@aybabtu.com>
13372
13373 Reapply fix from 2008-07-28 which was accidentally reverted; also
13374 perform the same fix to a similar check in same function.
13375
13376 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13377 with the same number are found, just use issue a warning with
13378 grub_dprintf(), as this error has been reported to be non-fatal.
13379
0d818b7e 133802009-03-31 Pavel Roskin <proski@gnu.org>
13381
13382 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13383 for cross-compilation.
13384
95646d92 133852009-03-30 Robert Millan <rmh@aybabtu.com>
13386
13387 Fix i386-ieee1275 build.
13388
13389 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13390 Remove declaration.
13391
6a003ed1 133922009-03-30 Pavel Roskin <proski@gnu.org>
13393
13394 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13395 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13396 zero-terminated, rely only on the strlen value. Fix comparison
13397 of strings differing in length.
13398
92f33540 133992009-03-30 Robert Millan <rmh@aybabtu.com>
13400
13401 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13402 checking for abi version. Improve error messages on BIOS to notify
13403 user about `linux16' command.
13404
a8c48fd5 134052009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13406
f968172e 13407 Leak fixes
a8c48fd5 13408
f968172e 13409 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13410 in case of collision
13411 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 13412
9c323f09 134132009-03-29 Robert Millan <rmh@aybabtu.com>
13414
13415 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13416 set `vid_mode' accordingly.
13417 (grub_linux_boot): Process `vid_mode' and set video mode.
13418
ae68f423 134192009-03-29 Robert Millan <rmh@aybabtu.com>
13420
13421 * util/grub.d/10_linux.in (linux_entry): New function.
13422 Factorize generation of Linux boot entries.
13423
5709cfc4 134242009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13425
13426 Make the format of Environment Block plain text. The boot loader
13427 part is not tested well yet.
7dd4a573 13428
5709cfc4 13429 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13430 (buffer): Removed.
13431 (envblk): Likewise.
13432 (usage): Remove "info" and "clear". Add "unset". Update the
13433 description of "set", as this does not delete variables any
13434 longer.
13435 (create_envblk_file): Complete rewrite.
13436 (open_envblk_file): Likewise.
13437 (cmd_info): Removed.
13438 (cmd_list): Likewise.
13439 (cmd_set): Likewise.
13440 (cmd_clear): Likewise.
13441 (list_variables): New function.
13442 (write_envblk): Likewise.
13443 (set_variables): Likewise.
13444 (unset_variables): Likewise.
13445 (main): Complete rewrite.
13446
13447 * commands/loadenv.c (buffer): Removed.
13448 (envblk): Likewise.
13449 (open_envblk_file): New function.
13450 (read_envblk_file): Complete rewrite.
13451 (grub_cmd_load_env): Likewise.
13452 (grub_cmd_list_env): Likewise.
13453 (struct blocklist): New struct.
13454 (free_blocklists): New function.
13455 (check_blocklists): Likewise.
13456 (write_blocklists): Likewise.
13457 (grub_cmd_save_env): Complete rewrite.
13458
13459 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13460 a plain text signature.
13461 (GRUB_ENVBLK_MAXLEN): Removed.
13462 (struct grub_envblk): Complete rewrite.
13463 (grub_envblk_find): Removed.
13464 (grub_envblk_insert): Likewise.
13465 (grub_envblk_open): New prototype.
13466 (grub_envblk_set): Likewise.
13467 (grub_envblk_delete): Put const to VALUE.
13468 (grub_envblk_iterate): Put const to NAME and VALUE.
13469 (grub_envblk_close): New prototype.
13470 (grub_envblk_buffer): New inline function.
13471 (grub_envblk_size): Likewise.
13472
13473 * lib/envblk.c: Include grub/mm.h.
13474 (grub_env_find): Removed.
13475 (grub_envblk_open): New function.
13476 (grub_envblk_close): Likewise.
13477 (escaped_value_len): Likewise.
13478 (find_next_line): Likewise.
13479 (grub_envblk_insert): Removed.
13480 (grub_envblk_set): New function.
13481 (grub_envblk_delete): Complete rewrite.
13482 (grub_envblk_iterate): Likewise.
13483
a9368fd3 134842009-03-28 Robert Millan <rmh@aybabtu.com>
13485
13486 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13487 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13488 variables. Use 16-bit loader.
13489 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13490 loader.
13491 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13492 (grub_linux16_boot): ... this. Update all users.
13493 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13494 (grub_linux_boot): ... this. Update all users.
13495
13496 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13497 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13498 commands to `linux16' and `initrd16'.
13499 (GRUB_MOD_FINI(linux)): Rename to ...
13500 (GRUB_MOD_FINI(linux16)): ... this.
13501
e4dd5a7e 135022009-03-24 Pavel Roskin <proski@gnu.org>
13503
13504 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13505 not just for compilation.
13506
c04d6e05 135072009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 Move multiboot helper out of kernel
13510
13511 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13512 `loader/i386/multiboot_helper.S'.
13513 * conf/i386-coreboot.rmk: Likewise
13514 * conf/i386-ieee1275.rmk: Likewise
13515
13516 * kern/i386/loader.S: Move multiboot helpers from here...
13517 * loader/i386/multiboot_helper.S: ...moved here
13518 * include/grub/i386/loader.h: Move declarations of multiboot
13519 helpers from here...
13520 * include/grub/i386/multiboot.h: ...moved here
13521 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13522
42a5b3fc 135232009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13524
13525 * kern/env.c (grub_env_context_open): Added an argument to specify
13526 whether a new context inherits exported variables from current
13527 one. This is useful when making a sandbox to interpret a config
13528 file.
13529 All callers updated.
13530
13531 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13532
b28bbc4e 135332009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13534
13535 * kern/env.c (grub_env_context_close): Fix memory leaks.
13536
f04f02e4 135372009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13538
13539 * normal/main.c (grub_normal_execute): Added an argument
13540 BATCH to specify if an interactive interface should be provided
13541 after reading a config file.
13542 All callers updated.
13543 (read_command_list): Prevent being executed twice.
13544 (read_fs_list): Likewise.
13545
42a5b3fc 13546 * include/grub/normal.h (grub_normal_execute): Updated the
13547 prototype.
f04f02e4 13548
41473ac2 135492009-03-22 Pavel Roskin <proski@gno.org>
13550
fbc00b0c 13551 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13552 _start.
13553 * kern/i386/pc/startup.S: Likewise.
13554 * kern/i386/efi/startup.S: Likewise.
13555 * kern/i386/ieee1275/startup.S: Likewise.
13556 * kern/i386/coreboot/startup.S: Likewise.
13557 * kern/x86_64/efi/startup.S: Likewise.
13558
41473ac2 13559 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13560 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13561 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13562
2274cc8f 135632009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13566
13567 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13568 limit detection.
13569 Use vaddr of correct segment for entry_point.
13570
b1b797cb 135712009-03-21 Bean <bean123ch@gmail.com>
13572
13573 * commands/blocklist.c: Add include file <grub/command.h>, remove
13574 <grub/normal.h> and <grub/arg.h>.
13575 (grub_cmd_blocklist): Use the new command interface.
13576 (GRUB_MOD_INIT): Likewise.
13577 (GRUB_MOD_FINI): Likewise.
13578 * commands/boot.c: Likewise.
13579 * commands/cat.c: Likewise.
13580 * commands/cmp.c: Likewise.
13581 * commands/configfile.c: Likewise.
13582 * commands/crc.c: Likewise.
13583 * commands/echo.c: Likewise.
13584 * commands/halt.c: Likewise.
13585 * commands/handler.c: Likewise.
13586 * commands/hdparm.c: Likewise.
13587 * commands/help.c: Likewise.
13588 * commands/hexdump.c: Likewise.
13589 * commands/loadenv.c: Likewise.
13590 * commands/ls.c: Likewise.
13591 * commands/lsmmap.c: Likewise.
13592 * commands/lspci.c: Likewise.
13593 * commands/loadenv.c: Likewise.
13594 * commands/read.c: Likewise.
13595 * commands/reboot.c: Likewise.
13596 * commands/search.c: Likewise.
13597 * commands/sleep.c: Likewise.
13598 * commands/test.c: Likewise.
13599 * commands/usbtest.c: Likewise.
13600 * commands/videotest.c: Likewise.
13601 * commands/i386/cpuid.c: Likewise.
13602 * commands/i386/pc/halt.c: Likewise.
13603 * commands/i386/pc/play.c: Likewise.
13604 * commands/i386/pc/pxecmd.c: Likewise.
13605 * commands/i386/pc/vbeinfo.c: Likewise.
13606 * commands/i386/pc/vbetest.c: Likewise.
13607 * commands/ieee1275/suspend.c: Likewise.
13608 * disk/loopback.c: Likewise.
13609 * font/font_cmd.c: Likewise.
13610 * hello/hello.c: Likewise.
13611 * loader/efi/appleloader.c: Likewise.
13612 * loader/efi/chainloader.c: Likewise.
13613 * loader/i386/bsd.c: Likewise.
13614 * loader/i386/efi/linux.c: Likewise.
13615 * loader/i386/ieee1275/linux.c: Likewise.
13616 * loader/i386/linux.c: Likewise.
13617 * loader/i386/pc/chainloader.c: Likewise.
13618 * loader/i386/pc/linux.c: Likewise.
13619 * loader/powerpc/ieee1275/linux.c: Likewise.
13620 * loader/multiboot_loader.c: Likewise.
13621 * term/gfxterm.c: Likewise.
13622 * term/i386/pc/serial.c: Likewise.
13623 * term/terminfo.c: Likewise.
13624
13625 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13626 * term/i386/pc/vga.c: Likewise.
13627 * video/readers/jpeg.c: Likewise.
13628 * video/readers/png.c: Likewise.
13629 * video/readers/tga.c: Likewise.
13630
13631 * util/grub-fstest (cmd_loopback): Removed.
13632 (cmd_blocklist): Likewise.
13633 (cmd_ls): Likewise.
13634 (grub_register_command): Likewise.
13635 (grub_unregister_command): Likewise.
13636 (execute_command): Use grub_command_find to locate command and execute
13637 it.
13638
13639 * include/grub/efi/chainloader.h: Removed.
13640 * loader/efi/chainloader_normal.c: Likewise.
13641 * loader/i386/bsd_normal.c: Likewise.
13642 * loader/i386/pc/chainloader_normal.c: Likewise.
13643 * loader/i386/pc/multiboot_normal.c: Likewise.
13644 * loader/linux_normal.c: Likewise.
13645 * loader/multiboot_loader_normal.c: Likewise.
13646 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13647
13648 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13649 and grub_register_command_p1.
13650
13651 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13652 kern/command.c, lib/arg.c and commands/extcmd.c.
13653 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13654 (minicmd_mod_SOURCES): New variable.
13655 (minicmd_mod_CFLAGS): Likewise.
13656 (minicmd_mod_LDFLAGS): Likewise.
13657 (extcmd_mod_SOURCES): Likewise.
13658 (extcmd_mod_CFLAGS): Likewise.
13659 (extcmd_mod_LDFLAGS): Likewise.
13660 (boot_mod_SOURCES): Removed.
13661 (boot_mod_CFLAGS): Likewise.
13662 (boot_mod_LDFLAGS): Likewise.
13663
13664 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13665 kern/corecmd.c.
13666 (kernel_img_HEADERS): Add command.h.
13667 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13668 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13669 and lib/arg.c.
13670 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13671 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13672 remove the corresponding normal mode command.
13673 (normal_mod_SOURCES): Remove normal/arg.c.
13674 * conf/i386-coreboot.rmk: Likewise.
13675 * conf/i386-efi.rmk: Likewise.
13676 * conf/i386-ieee1275.rmk: Likewise.
13677 * conf/powerpc-ieee1275.rmk: Likewise.
13678 * conf/x86_64-efi.rmk: Likewise.
13679
13680 * include/grub/arg.h: Move from here ...
13681 * include/grub/lib/arg.h: ... to here.
13682
13683 * normal/arg.c: Move from here ...
13684 * lib/arg.c: ... to here.
13685
13686 * commands/extcmd.c: New file.
13687 * commands/minicmd.c: Likewise.
13688 * include/grub/command.h: Likewise.
13689 * include/grub/extcmd.h: Likewise.
13690 * kern/command.c: Likewise.
13691 * kern/corecmd.c: Likewise.
13692
13693 * kern/list.c (grub_list_iterate): Return int instead of void.
13694 (grub_list_insert): New function.
13695 (grub_prio_list_insert): Likewise.
13696
13697 * kern/rescue.c (grub_rescue_command): Removed.
13698 (grub_rescue_command_list): Likewise.
13699 (grub_rescue_register_command): Likewise.
13700 (grub_rescue_unregister_command): Likewise.
13701 (grub_rescue_cmd_boot): Move to minicmd.c
13702 (grub_rescue_cmd_help): Likewise.
13703 (grub_rescue_cmd_info): Likewise.
13704 (grub_rescue_cmd_boot): Likewise.
13705 (grub_rescue_cmd_testload): Likewise.
13706 (grub_rescue_cmd_dump): Likewise.
13707 (grub_rescue_cmd_rmmod): Likewise.
13708 (grub_rescue_cmd_lsmod): Likewise.
13709 (grub_rescue_cmd_exit): Likewise.
13710 (grub_rescue_print_devices): Moved to corecmd.c.
13711 (grub_rescue_print_files): Likewise.
13712 (grub_rescue_cmd_ls): Likewise.
13713 (grub_rescue_cmd_insmod): Likewise.
13714 (grub_rescue_cmd_set): Likewise.
13715 (grub_rescue_cmd_unset): Likewise.
7d074e3c 13716 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 13717 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 13718 commands, remove grub_rescue_register_command calls.
b1b797cb 13719
7d074e3c 13720 * normal/command.c (grub_register_command): Removed.
b1b797cb 13721 (grub_unregister_command): Likewise.
13722 (grub_command_find): Likewise.
13723 (grub_iterate_commands): Likewise.
13724 (rescue_command): Likewise.
13725 (export_command): Moved to corecmd.c.
13726 (set_command): Removed.
13727 (unset_command): Likewise.
13728 (insmod_command): Likewise.
13729 (rmmod_command): Likewise.
13730 (lsmod_command): Likewise.
13731 (grub_command_init): Likewise.
13732
13733 * normal/completion.c (iterate_command): Use cmd->prio to check for
13734 active command.
13735 (complete_arguments): Use grub_extcmd_t structure to find options.
13736 (grub_normal_do_completion): Change function grub_iterate_commands to
13737 grub_command_iterate.
13738
13739 * normal/execute.c (grub_script_execute_cmd): No need to parse
13740 argument here.
13741
13742 * normal/main.c (grub_dyncmd_dispatcher): New function.
13743 (read_command_list): Register unload commands as dyncmd.
13744 (grub_cmd_normal): Use new command interface, register rescue,
13745 unregister normal at entry, register normal, unregister rescue at exit.
13746
13747 * include/grub/list.h (grub_list_test_t): New type.
13748 (grub_list_iterate): Return int instead of void.
13749 (grub_list_insert): New function.
13750 (GRUB_AS_NAMED_LIST_P): New macro.
13751 (GRUB_AS_PRIO_LIST): Likewise.
13752 (GRUB_AS_PRIO_LIST_P): Likewise.
13753 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13754 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13755 (grub_prio_list): New structure.
13756 (grub_prio_list_insert): New function.
13757 (grub_prio_list_remove): New inline function.
13758
13759 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13760 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13761 (GRUB_COMMAND_FLAG_MENU): Likewise.
13762 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13763 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13764 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13765 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13766 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13767 (grub_command): Likewise.
13768 (grub_register_command): Likewise.
13769 (grub_command_find): Likewise.
13770 (grub_iterate_commands): Likewise.
13771 (grub_command_init): Likewise.
13772 (grub_arg_parse): Likewise.
13773 (grub_arg_show_help): Likewise.
13774
13775 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13776 (grub_rescue_unregister_command): Likewise.
13777
13778 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13779 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13780 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13781
13782 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13783 grub_rescue_cmd_initrd.
13784 * include/grub/i386/loader.h: Likewise.
13785 * include/grub/x86_64/loader.h: Likewise.
13786
13787 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13788
1f4147aa 137892009-03-21 Bean <bean123ch@gmail.com>
13790
13791 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13792 instead of stat in mingw environment.
13793
13794 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13795
13796 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13797
13798 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13799 AC_CONFIG_LINKS.
13800
2156d5ba 138012009-03-21 Bean <bean123ch@gmail.com>
13802
13803 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13804 out of range error.
13805
177b82ca 138062009-03-18 Michel Dänzer <michel@daenzer.net>
13807
13808 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13809 checking inode flags for EXT4_EXTENTS_FLAG.
13810
14aad807 138112009-03-18 Robert Millan <rmh@aybabtu.com>
13812
13813 * loader/i386/linux.c: Include `<grub/video.h>' and
13814 `<grub/i386/pc/vbe.h>'..
13815 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13816 (grub_linux32_boot): Attempt to configure video settings with
13817 grub_linux_setup_video().
13818 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13819 to avoid grub_console_fini() which would step out of graphical mode
13820 unconditionally.
13821
8cf83a27 138222009-03-14 Robert Millan <rmh@aybabtu.com>
13823
13824 Fix build on powerpc.
13825 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13826
40164e75 138272009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13830 background image command.
13831
c58bc32a 138322009-03-12 Colin D Bennett <colin@gibibit.com>
13833
13834 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13835 (grub_gfxterm_putchar): Extract pairs of identical calls to
13836 draw_cursor out of conditional blocks.
13837
5415144a 138382009-03-11 Pavel Roskin <proski@gnu.org>
13839
13840 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13841 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13842
6394042e 138432009-03-11 Robert Millan <rmh@aybabtu.com>
13844
13845 * loader/i386/multiboot_elfxx.c
13846 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13847
b7b50e5f 138482009-03-11 Felix Zielcke <fzielcke@z-51.de>
13849
13850 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13851 `kern/handler.c'.
13852
1ca7fc96 138532009-03-11 Robert Millan <rmh@aybabtu.com>
13854
13855 * loader/i386/multiboot.c (code_size): New variable.
13856 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 13857 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 13858 4-byte alignment to MBI and others by increasing
7d074e3c 13859 `boot_loader_name_length' appropriately.
1ca7fc96 13860
13861 * loader/i386/multiboot_elfxx.c
13862 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13863
a83ea1d2 138642009-03-09 Felix Zielcke <fzielcke@z-51.de>
13865
13866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13867 `fs/ext2.c'.
13868
aa9f3bff 138692009-03-08 Robert Millan <rmh@aybabtu.com>
13870
13871 Make loader/i386/linux.c usable on i386-pc again.
13872
13873 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13874 memory to heap.
13875 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13876 `#error' stanza.
13877
d8b3b60e 138782009-03-07 Bean <bean123ch@gmail.com>
13879
13880 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13881 allocation.
13882
b362c9e9 138832009-03-06 Robert Millan <rmh@aybabtu.com>
13884
13885 Fix display issue on terminals with screen size other than 80x25
13886 (e.g. gfxterm with resolution higher than 640x480).
13887
13888 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 13889 position relative to the center of the terminal instead of relying
b362c9e9 13890 on a hardcoded offset.
13891
9304eef1 138922009-03-04 Robert Millan <rmh@aybabtu.com>
13893
13894 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13895 installed.
13896
13897 * Makefile.in (host_kernel): New variable.
13898 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13899 scripts instead of just the windows one.
13900 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13901
eabc95fb 139022009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 13903
13904 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13905 `kern/handler.c'.
13906 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13907 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13908 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13910 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13911 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13912
ceb1223c 139132009-03-04 Felix Zielcke <fzielcke@z-51.de>
13914
13915 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13916 or if there's no space for the disk label and print the partition number on a
13917 invalid magic.
13918
4910684a 139192009-03-04 Felix Zielcke <fzielcke@z-51.de>
13920
13921 * util/misc.c: Include <time.h>.
13922 (grub_millisleep): New function.
13923
7e9ca17a 139242009-03-04 Bean <bean123ch@gmail.com>
13925
13926 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13927 another option -mno-red-zone.
13928
13929 * commands/handler.c: Change module description.
13930
13931 * kern/handler.c: Add missing space at the end of description line.
13932
13933 * kern/list.c: Likewise.
13934
f501677c 139352009-03-03 Robert Millan <rmh@aybabtu.com>
13936
13937 Move more components to the relocation area, and fix mbi pointer
13938 handling to use the destination rather than the origin (thanks to
13939 Vladimir Serbinenko for spotting).
13940
13941 * loader/i386/multiboot.c (mbi_dest): New variable.
13942 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13943 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13944 relocation area.
13945
9902d047 139462009-03-01 Bean <bean123ch@gmail.com>
13947
50fb7002 13948 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 13949 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13950 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13951 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13952
13953 * loader/i386/efi/linux.c (acpi_guid): New variable.
13954 (acpi_guid): Likewise.
13955 (EBDA_SEG_ADDR): New constant.
13956 (LOW_MEM_ADDR): Likewise.
13957 (FAKE_EBDA_SEG): Likewise.
13958 (fake_bios_data): New function.
13959 (grub_linux_boot): Call fake_bios_data.
13960
71b9f361 139612009-03-01 Bean <bean123ch@gmail.com>
13962
13963 * commands/terminal.c: Removed.
13964
13965 * commands/handler.c: New file.
13966
13967 * include/grub/list.h: Likewise.
13968
13969 * include/grub/handler.h: Likewise.
13970
13971 * kern/list.c: Likewise.
13972
13973 * kern/handler.c: Likewise.
13974
13975 * kern/term.h: Include header file <grub/handler.h>.
13976 (grub_term_input): Move next field to the beginning.
13977 (grub_term_output): Likewise.
13978 (grub_term_input_class): New variable.
13979 (grub_term_output_class): Likewise.
13980 (grub_term_register_input): Changed to inline function.
13981 (grub_term_register_output): Likewise.
13982 (grub_term_unregister_input): Likewise.
13983 (grub_term_unregister_output): Likewise.
13984 (grub_term_set_current_input): Likewise.
13985 (grub_term_set_current_output): Likewise.
13986 (grub_term_get_current_input): Likewise.
13987 (grub_term_get_current_output): Likewise.
13988 (grub_term_iterate_input): Removed.
13989 (grub_term_iterate_output): Likewise.
13990
13991 * kern/term.c (grub_term_list_input): Removed.
13992 (grub_term_list_output): Likewise.
13993 (grub_term_input_class): New variable.
13994 (grub_term_output_class): Likewise.
50fb7002 13995 (grub_cur_term_input): Change variable as macro.
71b9f361 13996 (grub_cur_term_output): Likewise.
13997 (grub_term_register_input): Removed.
13998 (grub_term_register_output): Likewise.
13999 (grub_term_unregister_input): Likewise.
14000 (grub_term_unregister_output): Likewise.
14001 (grub_term_set_current_input): Likewise.
14002 (grub_term_set_current_output): Likewise.
14003 (grub_term_iterate_input): Likewise.
14004 (grub_term_iterate_output): Likewise.
14005 (grub_term_get_current_input): Likewise.
14006 (grub_term_get_current_output): Likewise.
14007
14008 * util/grub-editenv.c: Include header file <grub/handler.h>.
14009 (grub_term_get_current_input): Removed.
14010 (grub_term_get_current_output): Likewise.
14011 (grub_term_input_class): New variable.
50fb7002 14012 (grub_term_output_class): Likewise.
71b9f361 14013
14014 * util/grub-fstest.c (grub_term_get_current_input): Removed.
14015 (grub_term_get_current_output): Likewise.
14016 (grub_term_input_class): New variable.
50fb7002 14017 (grub_term_output_class): Likewise.
71b9f361 14018
14019 * util/grub-probe.c (grub_term_get_current_input): Removed.
14020 (grub_term_get_current_output): Likewise.
14021 (grub_term_input_class): New variable.
50fb7002 14022 (grub_term_output_class): Likewise.
71b9f361 14023
14024 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
14025 (grub_term_get_current_output): Likewise.
14026 (grub_term_input_class): New variable.
50fb7002 14027 (grub_term_output_class): Likewise.
71b9f361 14028
14029 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
14030 (terminal_mod_SOURCES): Likewise.
14031 (terminal_mod_CFLAGS): Likewise.
14032 (terminal_mod_LDFLAGS): Likewise.
14033
14034 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
14035 handler.c.
14036 (kernel_img_SOURCES): Add list.c and handler.c.
14037 (kernel_img_HEADERS): Add list.h and handler.h.
14038
14039 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14040 handler.c.
14041 (kernel_mod_SOURCES): Add list.c and handler.c.
14042 (kernel_mod_HEADERS): Add list.h and handler.h.
14043
14044 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
14045 handler.c.
14046 (kernel_elf_SOURCES): Add list.c and handler.c.
14047 (kernel_elf_HEADERS): Add list.h and handler.h.
14048
14049 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14050 handler.c.
14051 (kernel_elf_SOURCES): Add list.c and handler.c.
14052 (kernel_elf_HEADERS): Add list.h and handler.h.
14053
14054 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14055 handler.c.
14056 (kernel_mod_SOURCES): Add list.c and handler.c.
14057 (kernel_mod_HEADERS): Add list.h and handler.h.
14058
14059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14060 handler.c.
14061 (kernel_elf_SOURCES): Add list.c and handler.c.
14062 (kernel_elf_HEADERS): Add list.h and handler.h.
14063
8a31787f 140642009-02-27 Robert Millan <rmh@aybabtu.com>
14065
14066 Factorize elf32 / elf64 code in Multiboot loader. This will
14067 prevent it from getting out of sync again.
14068
14069 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
14070 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
14071 grub_multiboot_load_elf64): Move from here ...
14072 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
14073 grub_multiboot_load_elf): ... to here (new file).
14074
51cd3dfc 140752009-02-27 Robert Millan <rmh@aybabtu.com>
14076
14077 * util/grub.d/10_linux.in: Rename "single-user mode" to
14078 "recovery mode".
14079
6e8c9c3a 140802009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 Don't leak in SCSI code.
14083 * disk/scsi.c (grub_scsi_close): free `scsi'.
14084
4b6bf4f9 140852009-02-27 Robert Millan <rmh@aybabtu.com>
14086
14087 * loader/i386/pc/multiboot.c: Move from here ...
14088 * loader/i386/multiboot.c: ... to here. Update all users.
14089
b9413424 140902009-02-27 Robert Millan <rmh@aybabtu.com>
14091
14092 Patch from Alexandre Bique <bique.alexandre@gmail.com>
14093 * util/i386/pc/grub-setup.c (setup): Fix directory path.
14094
50fb7002 140952009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 14096
14097 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
14098 b-tree.
14099
8cc50345 141002009-02-27 Robert Millan <rmh@aybabtu.com>
14101
14102 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
14103 `0x' qualifier as 0 when base is specified as parameter).
14104
6e09b8b7 141052009-02-24 Bean <bean123ch@gmail.com>
14106
14107 * configure.ac: Check for -mcmodel=large in x86_64 target.
14108
14109 * include/grub/efi/api.h (efi_call_10): New macro.
14110 (efi_wrap_10): New function.
14111
14112 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
14113 (GRUB_PE32_REL_BASED_HIGH): Likewise.
14114 (GRUB_PE32_REL_BASED_LOW): Likewise.
14115 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
14116 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
14117 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
14118 (GRUB_PE32_REL_BASED_SECTION): Likewise.
14119 (GRUB_PE32_REL_BASED_REL): Likewise.
14120 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
14121 (GRUB_PE32_REL_BASED_DIR64): Likewise.
14122 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
14123
14124 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
14125 issue.
14126
14127 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
14128 (efi_wrap_10): New function.
14129
14130 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
14131
14132 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
14133 MB/MBP model (NV chipset).
14134 (devdata_devs): Add devpath_5 to the list.
14135
14136 * load/i386/efi/linux.c (video_base): Remove variable.
14137 (RGB_MASK): New macro.
14138 (RGB_MAGIC): Likewise.
14139 (LINE_MIN): Likewise.
14140 (LINE_MAX): Likewise.
14141 (FBTEST_STEP): Likewise.
14142 (FBTEST_COUNT): Likewise.
14143 (fb_list): New variable.
14144 (grub_find_video_card): Remove function.
14145 (find_framebuf): New function.
14146 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
14147 line length.
14148
14149 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
14150 problem for x86_64.
14151
74b21bee 141522009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
14153
14154 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
14155
14156 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
14157 coding tool name.
14158
a455f472 141592009-02-22 Robert Millan <rmh@aybabtu.com>
14160
14161 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
14162 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
14163 in our relocation, instead of using it directly from heap. Also
14164 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
14165
6374daf3 141662009-02-21 Robert Millan <rmh@aybabtu.com>
14167
14168 Implement USB keyboard support (based on patch by Marco Gerards)
14169
14170 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
14171 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
14172 (usb_keyboard_mod_LDFLAGS): New variables.
14173
14174 * term/usb_keyboard.c: New file.
14175
8fa4ea70 141762009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 Corrected wrong declaration
14179
14180 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
14181
353976ac 141822009-02-14 Christian Franke <franke@computer.org>
14183
14184 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
14185 (grub_lspci_iter): Print class code and programming interface byte.
14186
6aa1169b 141872009-02-14 Christian Franke <franke@computer.org>
14188
14189 * gendistlist.sh: Ignore `.svn' directories.
14190
265372ca 141912009-02-14 Felix Zielcke <fzielcke@z-51.de>
14192
14193 * fs/fat.c: Add 2009 to Copyright line.
14194
9ff516f3 141952009-02-14 Christian Franke <franke@computer.org>
14196
14197 * commands/hdparm.c: New file. Provides `hdparm' command
14198 which sends ATA commands via grub_disk_ata_pass_through ().
14199
14200 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
14201
14202 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
14203 and <grub/cpu/io.h> to include/grub/ata.h.
14204 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
14205 (GRUB_CDROM_SECTOR_SIZE): Remove.
14206 (GRUB_ATA_*): Move to include/grub/ata.h.
14207 (GRUB_ATAPI_*): Likewise.
14208 (enum grub_ata_commands): Likewise.
14209 (enum grub_ata_timeout_milliseconds): Likewise.
14210 (struct grub_ata_device): Likewise.
14211 (grub_ata_regset): Likewise.
14212 (grub_ata_regget): Likewise.
14213 (grub_ata_regset2): Likewise.
14214 (grub_ata_regget2): Likewise.
14215 (grub_ata_check_ready): Likewise.
14216 (grub_ata_wait_not_busy): Remove static, exported in
14217 include/grub/ata.h.
14218 (grub_ata_wait_drq): Likewise.
14219 (grub_ata_pio_read): Likewise.
14220
14221 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
14222 function for hdparm.mod.
14223
14224 * include/grub/ata.h: New file, contains declarations from
14225 disk/ata.c.
14226 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
14227
14228 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
14229 (grub_disk_ata_pass_through): New exported variable.
14230
14231 * kern/disk.c (grub_disk_ata_pass_through): New variable.
14232
772e23da 142332009-02-13 Colin D Bennett <colin@gibibit.com>
14234
14235 Support multiple fallback entries, and provide an API to support
14236 executing default+fallback menu entries. Renamed the `terminal' menu
14237 viewer to `text'.
14238
14239 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
14240 variable declaration.
14241 (grub_menu_execute_callback): New structure declaration.
14242 (grub_menu_execute_callback_t): New typedef.
14243 (grub_menu_execute_with_fallback): New function declaration.
14244 (grub_menu_get_entry): Likewise.
14245 (grub_menu_get_timeout): Likewise.
14246 (grub_menu_set_timeout): Likewise.
14247
14248 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
14249
14250 * normal/menu.c (grub_wait_after_message): Moved to
14251 `normal/menu_text.c'.
14252 (draw_border): Likewise.
14253 (print_message): Likewise.
14254 (print_entry): Likewise.
14255 (print_entries): Likewise.
14256 (grub_menu_init_page): Likewise.
14257 (get_entry_number): Likewise.
14258 (print_timeout): Likewise.
14259 (run_menu): Likewise.
14260 (grub_menu_execute_entry): Likewise.
14261 (show_text_menu): Likewise.
14262 (get_and_remove_first_entry_number): New function.
14263 (grub_menu_execute_with_fallback): Likewise.
14264 (get_entry): Renamed to ...
14265 (grub_menu_get_entry): .. this and made it global.
14266 (get_timeout): Renamed to ...
14267 (grub_menu_get_timeout): ... this and made it global.
14268 (set_timeout): Renamed to ...
14269 (grub_menu_set_timeout): ... this and made it global.
14270 (grub_normal_terminal_menu_viewer): Renamed to ...
14271 (grub_normal_text_menu_viewer): ... this.
14272
14273 * normal/menu_text.c: New file. Extracted text-menu-specific code
14274 from normal/menu.c.
14275
14276 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
14277 (normal_mod_SOURCES): Likewise.
14278
14279 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14280 (normal_mod_SOURCES): Likewise.
14281
14282 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14283 (normal_mod_SOURCES): Likewise.
14284
14285 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
14286 (normal_mod_SOURCES): Likewise.
14287
14288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14289 (normal_mod_SOURCES): Likewise.
14290
14291 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14292 (normal_mod_SOURCES): Likewise.
14293
14294 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14295 (normal_mod_SOURCES): Likewise.
14296
16ac430e 142972009-02-11 Robert Millan <rmh@aybabtu.com>
14298
14299 * util/grub.d/00_header.in: Update old reference to `font' command.
14300
06ff20fc 143012009-02-10 Felix Zielcke <fzielcke@z-51.de>
14302
14303 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
14304
14305 Based on patch from Javier Martín.
14306
96da9407 143072009-02-09 Felix Zielcke <fzielcke@z-51.de>
14308
14309 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 14310 to avoid false positives with FAT.
96da9407 14311 (grub_fstest_SOURCES): Likewise.
14312 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14313 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14314 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14315 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14316 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14317 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14318
6dca6fe4 143192009-02-09 Felix Zielcke <fzielcke@z-51.de>
14320
06ff20fc 14321 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 14322 bpb.version_specific.fat12_or_fat16.fstype and
14323 bpb.version_specific.fat32.fstype.
14324
2550c62f 143252009-02-08 Robert Millan <rmh@aybabtu.com>
14326
be110b30 14327 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 14328
56978920 143292009-02-08 Robert Millan <rmh@aybabtu.com>
14330
14331 * Makefile.in (host_os, host_cpu): New variables.
14332 (target_os): Remove. Update all users.
14333
d64399b5 143342009-02-08 Marco Gerards <marco@gnu.org>
14335
14336 * Makefile.in (enable_grub_emu_usb): New variable.
14337 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
14338 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
14339 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
14340 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
14341 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
14342 `usbtest.mod' and `usbms.mod'.
14343 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
14344 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
14345 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
14346 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
14347 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
14348 variables.
14349
14350 * disk/usbms.c: New file.
14351
14352 * include/grub/usb.h: Likewise.
14353
14354 * include/grub/usbtrans.h: Likewise.
14355
14356 * include/grub/usbdesc.h: Likewise.
14357
14358 * bus/usb/usbtrans.c: Likewise.
14359
14360 * bus/usb/ohci.c: Likewise.
14361
14362 * bus/usb/uhci.c: Likewise.
14363
14364 * bus/usb/usbhub.c: Likewise.
14365
14366 * bus/usb/usb.c: Likewise.
14367
14368 * commands/usbtest.c: Likewise.
14369
14370 * util/usb.c: Likewise.
50fb7002 14371
d64399b5 14372 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
14373
14374 * configure.ac: Test for libusb presence.
50fb7002 14375
d64399b5 14376 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14377
2b40d6bb 143782009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14379
14380 * kern/mm.c: Add more comments.
14381
73a4ce81 143822009-02-08 Robert Millan <rmh@aybabtu.com>
14383
14384 Patch from Javier Martín.
14385 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14386 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14387
f821ce59 143882009-02-08 Robert Millan <rmh@aybabtu.com>
14389
14390 * fs/cpio.c: Split tar functionality to ...
14391 * fs/tar.c: ... here (new file). Update all users.
14392
aebfc4b0 143932009-02-07 Robert Millan <rmh@aybabtu.com>
14394
14395 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14396 backward-incompatible features.
14397
14398 Based on patch from Javier Martín, with some adjustments.
14399
50fb7002 144002009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 14401
14402 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14403
0bb5115e 144042009-02-07 Robert Millan <rmh@aybabtu.com>
14405
14406 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14407 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14408 after the RAID stuff.
14409
38a0f8e7 144102009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14411
50fb7002 14412 Fixes problem when running vbetest command as reported by
38a0f8e7 14413 Vladimir Serbinenko <phcoder@gmail.com>.
14414
14415 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14416
3143cc1c 144172009-02-04 Felix Zielcke <fzielcke@z-51.de>
14418
14419 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14420 /dev/md/NpN style mdraid devices.
14421
9cba6fce 144222009-02-03 Felix Zielcke <fzielcke@z-51.de>
14423
14424 * util/unifont2pff.rb: Remove.
14425
e507a2c1 144262009-02-03 Felix Zielcke <fzielcke@z-51.de>
14427
14428 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14429 `#'.
14430
d2c2b4cd 144312009-02-03 Felix Zielcke <fzielcke@z-51.de>
14432
14433 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14434 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14435 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14436 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14438 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14440
b4315fb0 144412009-02-02 Christian Franke <franke@computer.org>
14442
14443 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14444
de3aa260 144452009-02-01 Felix Zielcke <fzielcke@z-51.de>
14446
7c3ff286 14447 * INSTALL: Note that we now require at least autoconf 2.59 and
14448 that LZO is optional.
de3aa260 14449
825a182b 144502009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14451
14452 Base on patch on bug #24154 created by Tomas Tintera
14453 <trosos@seznam.cz>.
14454
14455 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14456
a69ef770 144572009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14458
7c3ff286 14459 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 14460 <bero@arklinux.org>.
14461
14462 * normal/parser.y (script_init): Add missing semicolon.
14463
6fa42fa6 144642009-01-31 Colin D Bennett <colin@gibibit.com>
14465
7c3ff286 14466 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 14467 (free_menu_entry_classes): Added.
14468 (grub_normal_menu_addentry): Added class property handling.
14469 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14470 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14471
14472 * normal/menu_viewer.c: New file.
14473
14474 * normal/menu.c (run_menu_entry): Renamed to ...
14475 (grub_menu_execute_entry): ... this and made it as global.
14476 (grub_menu_run): Renamed to ...
14477 (show_text_menu): ... this and made it local.
14478 (show_text_menu): Adapt to new function names.
14479 (grub_normal_terminal_menu_viewer): New global variable.
14480
14481 * include/grub/menu.h: New file.
14482
14483 * include/grub/menu_viewer.h: New file.
14484
14485 * include/grub/normal.h: Added include to grub/menu.h.
14486 (grub_menu_entry): Moved to include/grub/menu.h.
14487 (grub_menu_entry_t): Likewise.
14488 (grub_menu): Likewise.
14489 (grub_menu_t): Likewise.
14490 (grub_normal_terminal_menu_viewer): Added.
14491 (grub_menu_execute_entry): Likewise.
14492 (grub_menu_run): Removed.
14493
14494 * DISTLIST: Added include/grub/menu.h.
14495 Added include/grub/menu_viewer.h.
14496 Added normal/menu_viewer.c.
14497
144982009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14499
14500 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14501 arglist for menutitle arguments.
14502
14503 * normal/main.c (grub_normal_menu_addentry): Likewise.
14504
14505 * normal/parser.y (menuentry): Likewise.
14506
14507 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14508
14509 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14510 (grub_script_create_cmdmenu): Likewise.
14511
14512 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14513
14514 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14515 changes.
14516
14517 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14518
14519 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14520
14521 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14522
14523 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14524
14525 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14526
14527 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14528
56192c23 145292009-01-30 Christian Franke <franke@computer.org>
14530
14531 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14532 in option help text.
14533
d72521b3 145342009-01-27 Pavel Roskin <proski@gnu.org>
14535
14536 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14537
994b5e84 145382009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14539
14540 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14541
14542 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14543
14544 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14545 unregister function.
14546
6a7eab2c 145472009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14548
14549 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14550
14551 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14552
14553 * util/grub-mkfont.c (usage): Fix typo.
14554
14555 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14556
1806b56e 145572009-01-26 Daniel Mierswa <impulze@impulze.org>
14558
3fb18f09 14559 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14560
336e1fb9 14561 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14562
1806b56e 14563 * kern/misc.c (grub_strcasecmp): New function.
14564 (grub_strcasecmp): Use grub_size_t instead of int for length.
14565 Fix return value.
14566 * include/grub/misc.h: Update function prototypes.
14567
580b2a0f 145682009-01-26 Robert Millan <rmh@aybabtu.com>
14569
14570 * configure.ac: Fix cross-compilation check.
ef257b36 14571
d31c24f1 145722009-01-22 Christian Franke <franke@computer.org>
14573
14574 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14575 (precision) digit string. Allow `.format2' without `format1' (width).
14576 Limit input chars for `%s' output to `format2' if specified. This is
14577 compatible with standard printf ().
14578
3138b44c 145792009-01-22 Christian Franke <franke@computer.org>
14580
14581 * disk/ata.c (grub_ata_wait_status): Replace by ...
14582 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14583 other status bits may be invalid while BSY is asserted.
14584 (grub_ata_check_ready): New function.
14585 (grub_ata_cmd): Removed.
14586 (grub_ata_wait_drq): New function.
14587 (grub_ata_strncpy): Remove inline.
14588 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14589 and error check now done by grub_ata_wait_drq ().
14590 (grub_ata_pio_write): Likewise.
14591 (grub_atapi_identify): Set DEV before check for !BSY. Use
14592 grub_ata_wait_drq () to wait for data.
14593 (grub_ata_device_initialize): Add status register check to
14594 detect missing SATA slave devices. Add debug messages.
14595 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14596 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14597 transfer loop by grub_ata_pio_write ().
14598 (grub_ata_identify): Set DEV before check for !BSY. Use
14599 grub_ata_wait_drq () to wait for data.
ef257b36 14600 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 14601 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14602 read/write in one loop. Fix invalid command on write. Fix incomplete
14603 command on (size % batch) == 0. Add missing error check after write of
14604 last block. Add debug messages.
14605 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14606
59a64ef6 146072009-01-19 Christian Franke <franke@computer.org>
14608
14609 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14610 (GRUB_ATAPI_IREASON_*): Likewise.
14611 (grub_ata_pio_write): Fix timeout error return.
14612 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14613 (grub_atapi_wait_drq): New function.
14614 (grub_atapi_packet): New parameter `size'.
14615 Use grub_atapi_wait_drq () and direct write instead of
14616 grub_ata_pio_write ().
14617 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14618 reads the number of bytes requested by the device for each DRQ
14619 assertion.
14620 (grub_atapi_write): Remove old implementation, return not
14621 implemented instead.
14622
1cfe20b3 146232009-01-19 Christian Franke <franke@computer.org>
14624
14625 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14626 of 512 to calculate data size.
14627 (grub_scsi_read12): Likewise.
14628 (grub_scsi_write10): Likewise.
14629 (grub_scsi_write12): Likewise.
14630 (grub_scsi_read): Adjust size according to blocksize.
14631 Add checks for invalid blocksize and unaligned transfer.
14632
bee5fe5d 146332009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14634
14635 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14636
ef257b36 14637 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 14638 width glyphs.
14639
3e643f8c 146402009-01-19 Robert Millan <rmh@aybabtu.com>
14641
14642 * config.guess: Update to latest version from config git.
14643 * config.sub: Likewise.
14644
4fa80998 146452009-01-17 Felix Zielcke <fzielcke@z-51.de>
14646
14647 * Makefile.in: Change font compilation to use new grub-mkfont instead
14648 of java version.
14649
14650 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14651 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14652 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14653 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14654 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14655 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14656 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14657 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14658 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14659
7086085b 146602009-01-16 Christian Franke <franke@computer.org>
14661
14662 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14663 (enum grub_ata_timeout_milliseconds): New enum.
14664 (grub_ata_wait_status): Add parameter milliseconds.
14665 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14666 recovery from timed-out commands.
14667 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14668 return grub_errno instead of REG_ERROR.
14669 (grub_ata_pio_write): Add parameter milliseconds.
14670 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14671 Pass milliseconds to grub_ata_wait_status () and
14672 grub_ata_pio_read ().
14673 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14674 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14675 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14676 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14677 It is not suitable for device detection, because DEV bit is ignored,
14678 the command may run too long, and not all devices set the signature
14679 properly.
14680 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14681 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14682 Fix device selection, DEV bit must be set first to address the registers
14683 of the correct device.
14684 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14685 grub_ata_pio_read/write ().
14686 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14687 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14688
4a412913 146892009-01-13 Carles Pina i Estany <carles@pina.cat>
14690
14691 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14692
7795c55e 146932009-01-13 Bean <bean123ch@gmail.com>
d913988c 14694
14695 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14696
7795c55e 146972009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 14698
14699 * Makefile.in: (enable_grub_mkfont): New variable.
14700 (freetype_cflags): Likewise.
14701 (freetype_libs): Likewise.
14702
14703 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14704 (grub_mkfont_SOURCES): New variable.
14705 (grub_mkfont_CFLAGS): Likewise.
14706 (grub_mkfont_LDFLAGS): Likewise.
14707
14708 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14709 library if `--enable-grub-mkfont' is requested.
14710 (enable_grub_mkfont): New variable.
14711 (freetype_cflags): Likewise.
14712 (freetype_libs): Likewise.
14713
14714 * util/grub-mkfont.c: New file.
14715
093af1fe 147162009-01-12 Christian Franke <franke@computer.org>
14717
14718 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14719 mode check. Fix setting of compat_use[].
14720
f36cc108 147212009-01-10 Robert Millan <rmh@aybabtu.com>
14722
14723 Update a few copyright years which we forgot to do in 2008 (only for
14724 files whose changes made in 2008 were copyright-significant)
14725
14726 * Makefile.in: Add 2008 to Copyright line.
14727 * disk/ieee1275/ofdisk.c: Likewise.
14728 * disk/efi/efidisk.c: Likewise.
14729 * kern/dl.c: Likewise.
14730 * kern/sparc64/ieee1275/init.c: Likewise.
14731 * kern/mm.c: Likewise.
14732 * kern/efi/mm.c: Likewise.
14733 * boot/i386/pc/boot.S: Likewise.
14734 * genfslist.sh: Likewise.
14735 * fs/iso9660.c: Likewise.
14736 * fs/hfs.c: Likewise.
14737 * fs/jfs.c: Likewise.
14738 * fs/minix.c: Likewise.
14739 * fs/ufs.c: Likewise.
14740 * gensymlist.sh.in: Likewise.
14741 * genkernsyms.sh.in: Likewise.
14742 * include/grub/misc.h: Likewise.
14743 * include/grub/types.h: Likewise.
14744 * include/grub/symbol.h: Likewise.
14745 * include/grub/elf.h: Likewise.
14746 * include/grub/kernel.h: Likewise.
14747 * include/grub/disk.h: Likewise.
14748 * include/grub/dl.h: Likewise.
14749 * include/grub/i386/linux.h: Likewise.
14750 * include/grub/i386/pc/biosdisk.h: Likewise.
14751 * include/grub/efi/api.h: Likewise.
14752 * include/grub/efi/pe32.h: Likewise.
14753 * include/grub/util/misc.h: Likewise.
14754 * normal/execute.c: Likewise.
14755 * normal/arg.c: Likewise.
14756 * normal/completion.c: Likewise.
14757 * normal/lexer.c: Likewise.
14758 * normal/parser.y: Likewise.
14759 * normal/misc.c: Likewise.
14760 * commands/i386/pc/vbeinfo.c: Likewise.
14761 * commands/hexdump.c: Likewise.
14762 * commands/terminal.c: Likewise.
14763 * commands/ls.c: Likewise.
14764 * commands/help.c: Likewise.
14765 * partmap/pc.c: Likewise.
14766 * loader/efi/chainloader.c: Likewise.
14767 * loader/multiboot_loader.c: Likewise.
14768 * loader/i386/pc/multiboot2.c: Likewise.
14769 * term/efi/console.c: Likewise.
14770 * term/i386/pc/serial.c: Likewise.
14771 * util/lvm.c: Likewise.
14772 * util/console.c: Likewise.
14773 * util/i386/efi/grub-mkimage.c: Likewise.
14774 * util/raid.c: Likewise.
14775
7f02114b 147762009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14777
14778 * commands/videotest.c: Removed include to grub/machine/memory.h.
14779
14780 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14781 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14782 (video_mod_SOURCES): Removed.
14783 (video_mod_CFLAGS): Likewise.
14784 (video_mod_LDFLAGS): Likewise.
14785 (gfxterm_mod_SOURCES): Likewise.
14786 (gfxterm_mod_CFLAGS): Likewise.
14787 (gfxterm_mod_LDFLAGS): Likewise.
14788 (videotest_mod_SOURCES): Likewise.
14789 (videotest_mod_CFLAGS): Likewise.
14790 (videotest_mod_LDFLAGS): Likewise.
14791 (bitmap_mod_SOURCES): Likewise.
14792 (bitmap_mod_CFLAGS): Likewise.
14793 (bitmap_mod_LDFLAGS): Likewise.
14794 (tga_mod_SOURCES): Likewise.
14795 (tga_mod_CFLAGS): Likewise.
14796 (tga_mod_LDFLAGS): Likewise.
14797 (jpeg_mod_SOURCES): Likewise.
14798 (jpeg_mod_CFLAGS): Likewise.
14799 (jpeg_mod_LDFLAGS): Likewise.
14800 (png_mod_SOURCES): Likewise.
14801 (png_mod_CFLAGS): Likewise.
14802 (png_mod_LDFLAGS): Likewise.
14803
14804 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14805 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14806 (video_mod_SOURCES): Added.
14807 (video_mod_CFLAGS): Likewise.
14808 (video_mod_LDFLAGS): Likewise.
14809 (videotest_mod_SOURCES): Likewise.
14810 (videotest_mod_CFLAGS): Likewise.
14811 (videotest_mod_LDFLAGS): Likewise.
14812 (bitmap_mod_SOURCES): Likewise.
14813 (bitmap_mod_CFLAGS): Likewise.
14814 (bitmap_mod_LDFLAGS): Likewise.
14815 (tga_mod_SOURCES): Likewise.
14816 (tga_mod_CFLAGS): Likewise.
14817 (tga_mod_LDFLAGS): Likewise.
14818 (jpeg_mod_SOURCES): Likewise.
14819 (jpeg_mod_CFLAGS): Likewise.
14820 (jpeg_mod_LDFLAGS): Likewise.
14821 (png_mod_SOURCES): Likewise.
14822 (png_mod_CFLAGS): Likewise.
14823 (png_mod_LDFLAGS): Likewise.
14824 (gfxterm_mod_SOURCES): Likewise.
14825 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 14826 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 14827
14828 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14829 grub/machine/console.h.
14830
644fff97 148312009-01-04 Jerone Young <jerone@gmail.com>
14832
14833 Make on screen instructions clearer
14834
14835 Based on patch created by Jidanni <jidanni@jidanni.org>
14836
14837 * normal/menu.c: print clearer instructions on the screen
14838
1e901a75 148392009-01-02 Colin D Bennett <colin@gibibit.com>
14840
14841 New font engine.
34c44600 14842
1e901a75 14843 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14844 build system and fixed gfxterm.c to work with different sized fonts.
14845
14846 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 14847
1e901a75 14848 * configure: Re-generated.
34c44600 14849
1e901a75 14850 * DISTLIST: Removed font/manager.c.
14851 Added font/font.c.
14852 Added font/font_cmd.c.
34c44600 14853
1e901a75 14854 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14855 compilation.
34c44600 14856
1e901a75 14857 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 14858
14859 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 14860
14861 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 14862
1e901a75 14863 * normal/menu.c: Likewise.
34c44600 14864
1e901a75 14865 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14866 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 14867
1e901a75 14868 * include/grub/font.h: Replaced with new file.
34c44600 14869
1e901a75 14870 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14871 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14872 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14873 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14874 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 14875 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 14876 fg_red, fg_green, fg_blue, fg_alpha.
14877 (grub_video_adapter): Removed blit_glyph.
34c44600 14878 (grub_video_blit_glyph): Removed.
14879
1e901a75 14880 * font/manager.c: Removed file.
34c44600 14881
14882 * font/font.c: New file.
14883
1e901a75 14884 * font/font_cmd.c: Likewise.
34c44600 14885
1e901a75 14886 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 14887
1e901a75 14888 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14889 (grub_video_vbe_map_rgba): Likewise.
14890 (grub_video_vbe_unmap_color_int): Likewise.
14891 (grub_video_vbe_blit_glyph): Removed.
14892 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 14893
1e901a75 14894 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14895 (get_pixel): Likewise.
34c44600 14896 (set_pixel): Likewise.
14897
1e901a75 14898 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 14899
1e901a75 14900 * term/gfxterm.c: Adapted to new font engine.
34c44600 14901
1e901a75 14902 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 14903
1e901a75 14904 * term/i386/pc/vga.c: Likewise.
34c44600 14905
1e901a75 14906 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 14907
1e901a75 14908 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 14909
1e901a75 14910 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 14911
1e901a75 14912 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 14913
1e901a75 14914 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 14915
1e901a75 14916 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 14917
1e901a75 14918 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 14919
1e901a75 14920 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 14921
1e901a75 14922 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14923
14924 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 14925
1e901a75 14926 * util/grub-mkconfig_lib.in: Changed font extension.
14927
278922e8 149282008-12-28 Felix Zielcke <fzielcke@z-51.de>
14929
14930 * util/getroot.c (grub_util_get_grub_dev): Add support for
14931 /dev/md/dNNpNN style partitionable mdraid devices.
14932
3ced05cf 149332008-12-12 Alex Smith <alex@alex-smith.me.uk>
14934
14935 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14936 at a time limit of the PXE TFTP API correctly.
14937 (grub_pxefs_close): Likewise.
14938
7fd0ee30 149392008-11-29 Robert Millan <rmh@aybabtu.com>
14940
34c44600 14941 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 14942 grub_ata_device_initialize() calls.
14943
34c44600 149442008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 14945
14946 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14947 iteration failed.
14948 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14949
89313780 149502008-11-28 Robert Millan <rmh@aybabtu.com>
14951
14952 Fix build on powerpc-ieee1275. Based on patch created by
14953 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14954 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14955 `kern/ieee1275/mmap.c'.
14956 * include/grub/powerpc/ieee1275/memory.h: New file.
14957
15257703 14958 Provide grub-install on coreboot.
14959 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14960 (grub_install_SOURCES): New variable.
14961 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14962 usable on coreboot.
14963
9fc5388a 149642008-11-25 Felix Zielcke <fzielcke@z-51.de>
14965
14966 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14967 to `grub_term_input_t'.
14968 (grub_term_get_current_output): Change return type to
14969 `grub_term_output_t'.
14970
bc3a2f31 149712008-11-22 Robert Millan <rmh@aybabtu.com>
14972
34c44600 14973 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 14974 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14975 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14976 grub_vga_text_cls().
14977
80fc88f2 14978 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 14979 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 14980
cbf36fd3 14981 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14982 to 0x200000 (avoids trouble with some OFW implementations, and matches
14983 with the one in Yaboot).
14984 Reported by Manoel Abranches
14985
73e8e268 149862008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 14987
14988 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14989 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14990
73e8e268 14991 * util/grub-mkconfig_lib.in (grub_warn): New function.
14992 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14993 warnings, to obtain consistent formatting.
14994 * util/grub.d/00_header.in: Likewise.
14995 * util/update-grub_lib.in: Likewise.
14996
e94045a1 14997 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 14998 Move comment text to `#error' stanza.
e94045a1 14999
79d29fd7 15000 Harmonize ieee1275's grub_available_iterate() with the generic
15001 grub_machine_mmap_iterate() interface (fixes a recently-introduced
15002 build problem on i386-ieee1275):
15003 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
15004 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
15005 parameter `type'. Update all users of this function.
15006 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
15007 `kern/ieee1275/mmap.c'.
15008 * kern/ieee1275/init.c
15009 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
15010 with ...
15011 (grub_machine_mmap_iterate): ... this.
15012 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
15013 return type to `grub_err_t'. Update all implementations of this
15014 function prototype.
15015 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
15016 Likewise.
15017
60d6b16e 15018 Add `lsmmap' command (lists firmware-provided memory map):
15019 * commands/lsmmap.c: New file.
15020 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
15021 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
15022 variables.
15023 * conf/powerpc-ieee1275.rmk: Likewise.
15024 * conf/i386-coreboot.rmk: Likewise.
15025 * conf/i386-ieee1275.rmk: Likewise.
15026
ebaaf49b 150272008-11-19 Robert Millan <rmh@aybabtu.com>
15028
15029 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 15030 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
15031 constraints to initrd allocation (based on code from
15032 loader/i386/pc/linux.c). Without them, initrd was allocated too high
15033 for Linux to find it.
ebaaf49b 15034
dfab719f 150352008-11-14 Robert Millan <rmh@aybabtu.com>
15036
15037 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
15038 order to cope with duplicate slashes.
15039
10fc3eb9 150402008-11-14 Robert Millan <rmh@aybabtu.com>
15041
15042 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
15043 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
15044 don't want to mess with lower memory, because it is used in the Linux
15045 loader.
15046
15047 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 15048 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 15049 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
15050 is in our heap (probably as a result of it being corrupted during
2f2a3442 15051 decompression). Add #error instance with comment to explain why this
15052 loader isn't currently usable on PC/BIOS.
10fc3eb9 15053
e2e07847 150542008-11-14 Robert Millan <rmh@aybabtu.com>
15055
15056 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 15057 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 15058
fe8e8d69 150592008-11-12 Robert Millan <rmh@aybabtu.com>
15060
15061 Make loader/i386/linux.c buildable on i386-pc (although disabled).
15062
15063 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
15064 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
15065 from here ...
15066 * include/grub/i386/pc/memory.h: ... to here.
15067
976b07d0 150682008-11-12 Robert Millan <rmh@aybabtu.com>
15069
15070 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
15071 split).
15072
15073 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
15074 (grub_console_cur_color, grub_console_real_putchar)
15075 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15076 (grub_console_setcolorstate, grub_console_setcolor)
15077 (grub_console_getcolor): Move from here ...
15078 * include/grub/i386/vga_common.h: ... to here (new file).
15079
15080 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
15081 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
15082 `<grub/i386/io.h>'.
15083 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
15084 `<grub/i386/vga_common.h>'.
15085
76679cd3 150862008-11-12 Robert Millan <rmh@aybabtu.com>
15087
15088 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
15089 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
15090 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
15091 variables.
15092 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15093 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
15094
15095 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
15096 grub_console_init() with call to grub_vga_text_init().
15097 (grub_machine_fini): Replace call to
15098 grub_console_fini() with call to grub_vga_text_fini() and
15099 grub_at_keyboard_fini().
15100
15101 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
15102 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15103 (grub_console_setcolorstate, grub_console_setcolor)
15104 (grub_console_getcolor): New function prototypes.
15105
15106 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
15107 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
15108 (grub_vga_text_setcursor): Static-ize.
15109 (grub_vga_text_term): New structure.
15110 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
15111
15112 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
15113 (grub_console_cur_color, grub_console_standard_color)
15114 (grub_console_normal_color, grub_console_highlight_color)
15115 (map_char, grub_console_putchar, grub_console_getcharwidth)
15116 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
15117 (grub_console_getcolor): Move from here ...
15118 * term/i386/vga_common.c: ... to here (same function names).
15119
95b841d3 151202008-11-12 Robert Millan <rmh@aybabtu.com>
15121
15122 Use newly-added Multiboot support in coreboot.
15123
15124 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15125 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
15126
15127 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
15128 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
15129 (codestart): Store the MBI in `startup_multiboot_info' when we're
15130 being loaded using Multiboot.
15131
15132 * kern/i386/coreboot/init.c (grub_machine_init): Move
15133 grub_at_keyboard_init() call to beginning of function (useful for
15134 debugging). Call grub_machine_mmap_init() before attempting to use
15135 grub_machine_mmap_iterate().
15136 (grub_lower_mem, grub_upper_mem): Move from here ...
15137 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
15138 here (new file).
15139
15140 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
15141 function prototype.
15142
761ca975 151432008-11-12 Robert Millan <rmh@aybabtu.com>
15144
15145 Fix a regression introduced by the at_keyboard.mod split. Because
15146 some terminals are default on some platforms and non-default on
15147 others, the first terminal being registered determines which is
15148 going to be default.
15149
15150 * kern/term.c (grub_term_register_input): If this is the first
15151 terminal being registered, set it as the current one.
15152 (grub_term_register_output): Likewise.
15153
15154 * term/efi/console.c (grub_console_init): Do not call
15155 grub_term_set_current_output() or grub_term_set_current_input().
15156 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
15157 * term/i386/pc/console.c (grub_console_init): Likewise.
15158 (grub_console_fini): Do not call grub_term_set_current_input()
15159 (but leave grub_term_set_current_output() to restore text mode).
15160
6c529df7 151612008-11-10 Robert Millan <rmh@aybabtu.com>
15162
15163 * util/grub.d/00_header.in: Add backward compatibility check for
15164 versions of terminal.mod that don't understand `terminal_input' or
15165 `terminal_output'.
15166
132e4113 151672008-11-09 Robert Millan <rmh@aybabtu.com>
15168
15169 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
15170 `terminal_input' / `terminal_output', not `terminal'.
15171
ac293d50 151722008-11-08 Robert Millan <rmh@aybabtu.com>
15173
15174 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 15175 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 15176
0025933a 151772008-11-08 Robert Millan <rmh@aybabtu.com>
15178
15179 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 15180 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 15181 members. Update all users.
15182 * util/console.c (grub_ncurses_term): Split in ...
15183 (grub_ncurses_term_input): ... this, and ...
15184 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 15185 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 15186
37c86336 151872008-11-08 Robert Millan <rmh@aybabtu.com>
15188
15189 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
15190 (PKGDATA): Add $(pkgdata_SRCDIR).
15191 (pkglib_BUILDDIR): New variable.
15192 (pkgdata_SRCDIR): New variable.
15193 (build_env.mk): New target.
15194 (include_DATA): New variable.
15195 (install-local): Install $(include_DATA) files in $(includedir).
15196
b6c15a2d 151972008-11-07 Pavel Roskin <proski@gnu.org>
15198
d99d46f1 15199 * gendistlist.sh: Use C locale for sorting to ensure consistent
15200 output on all systems.
15201
b6c15a2d 15202 * util/grub.d/00_header.in: Remove incorrect space before
15203 "serial".
15204
c32ee8c9 152052008-11-07 Robert Millan <rmh@aybabtu.com>
15206
15207 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
15208 per specification.
15209 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
15210 * loader/multiboot_loader.c (find_multi_boot2_header): New function
15211 (based on find_multi_boot1_header).
15212 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
15213 using find_multi_boot2_header(), and abort if neither Multiboot or
15214 Multiboot headers were found.
15215
651c29b7 152162008-11-07 Robert Millan <rmh@aybabtu.com>
15217
15218 Modularize at_keyboard.mod:
15219
15220 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
15221 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
15222 (at_keyboard_mod_LDFLAGS): New variables.
15223
15224 Actual terminal split:
15225
15226 * include/grub/term.h (struct grub_term): Split in ...
15227 (struct grub_term_input): ... this, and ...
15228 (struct grub_term_output): ... this. Update all users.
15229 (grub_term_set_current): Split in ...
15230 (grub_term_set_current_input): ... this, and ...
15231 (grub_term_set_current_output): ... this.
15232 (grub_term_get_current): Split in ...
15233 (grub_term_get_current_input): ... this, and ...
15234 (grub_term_get_current_output): ... this.
15235 (grub_term_register): Split in ...
15236 (grub_term_register_input): ... this, and ...
15237 (grub_term_register_output): ... this.
15238 (grub_term_unregister): Split in ...
15239 (grub_term_unregister_input): ... this, and ...
15240 (grub_term_unregister_output): ... this.
15241 (grub_term_iterate): Split in ...
15242 (grub_term_iterate_input): ... this, and ...
15243 (grub_term_iterate_output): ... this.
15244
15245 * kern/term.c (grub_term_list): Split in ...
15246 (grub_term_list_input): ... this, and ...
15247 (grub_term_list_output): ... this. Update all users.
15248 (grub_cur_term): Split in ...
15249 (grub_cur_term_input): ... this, and ...
15250 (grub_cur_term_output): ... this. Update all users.
15251 (grub_term_set_current): Split in ...
15252 (grub_term_set_current_input): ... this, and ...
15253 (grub_term_set_current_output): ... this.
15254 (grub_term_get_current): Split in ...
15255 (grub_term_get_current_input): ... this, and ...
15256 (grub_term_get_current_output): ... this.
15257 (grub_term_register): Split in ...
15258 (grub_term_register_input): ... this, and ...
15259 (grub_term_register_output): ... this.
15260 (grub_term_unregister): Split in ...
15261 (grub_term_unregister_input): ... this, and ...
15262 (grub_term_unregister_output): ... this.
15263 (grub_term_iterate): Split in ...
15264 (grub_term_iterate_input): ... this, and ...
15265 (grub_term_iterate_output): ... this.
15266
15267 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
15268 a check for input and one for output (and only attempt to get keys
15269 from user when input works).
15270
15271 * util/grub-probe.c (grub_term_get_current): Split in ...
15272 (grub_term_get_current_input): ... this, and ...
15273 (grub_term_get_current_output): ... this.
15274 * util/grub-fstest.c: Likewise.
15275 * util/i386/pc/grub-setup.c: Likewise.
15276 * util/grub-editenv.c: Likewise.
15277
15278 Portability adjustments:
15279
15280 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
15281 `term/i386/pc/at_keyboard.c'.
15282 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
15283 grub_keyboard_controller_init() (now handled by terminal .init).
15284 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
15285 grub_at_keyboard_init().
15286 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
15287 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
15288 at_keyboard.mod via input terminal interface).
15289 * include/grub/i386/coreboot/console.h: Convert into a stub for
15290 `<grub/i386/pc/console.h>'.
15291
15292 Migrate full terminals to new API:
15293
15294 * term/efi/console.c (grub_console_term): Split into ...
15295 (grub_console_term_input): ... this, and ...
15296 (grub_console_term_output): ... this. Update all users.
15297 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
15298 (grub_ofconsole_init): Split into ...
15299 (grub_ofconsole_init_input): ... this, and ...
15300 (grub_ofconsole_init_output): ... this.
15301 (grub_ofconsole_term): Split into ...
15302 (grub_ofconsole_term_input): ... this, and ...
15303 (grub_ofconsole_term_output): ... this. Update all users.
15304 * term/i386/pc/serial.c (grub_serial_term): Split into ...
15305 (grub_serial_term_input): ... this, and ...
15306 (grub_serial_term_output): ... this. Update all users.
15307 * term/i386/pc/console.c (grub_console_term): Split into ...
15308 (grub_console_term_input): ... this, and ...
15309 (grub_console_term_output): ... this. Update all users.
15310 (grub_console_term_input): Only enable it on PC/BIOS platform.
15311 (grub_console_init): Remove grub_keyboard_controller_init() call.
15312
15313 Migrate input terminals to new API:
15314
15315 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
15316 `i386' and `i386/pc' to enable build on x86_64 (this driver is
15317 i386-specific anyway).
15318 (grub_console_checkkey): Rename to ...
15319 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
15320 users.
15321 (grub_keyboard_controller_orig): New variable.
15322 (grub_console_getkey): Rename to ...
15323 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
15324 users.
15325 (grub_keyboard_controller_init): Static-ize. Save original
15326 controller value so that it can be restored ...
15327 (grub_keyboard_controller_fini): ... here (new function).
15328 (grub_at_keyboard_term): New structure.
15329 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
15330 functions.
15331
15332 Migrate output terminals to new API:
15333
15334 * term/i386/pc/vga.c (grub_vga_term): Change type to
15335 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15336 members. Update all users.
15337 * term/gfxterm.c (grub_video_term): Change type to
15338 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15339 members. Update all users.
15340 * include/grub/i386/pc/console.h (grub_console_checkkey)
15341 (grub_console_getkey): Do not export (no longer needed by gfxterm,
15342 etc).
15343
15344 Migrate `terminal' command and userland tools to new API:
15345
15346 * commands/terminal.c (grub_cmd_terminal): Split into ...
15347 (grub_cmd_terminal_input): ... this, and ...
15348 (grub_cmd_terminal_output): ... this.
15349 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
15350 `terminal_input' and `terminal_output'.
15351 * util/grub.d/00_header.in: Adjust `terminal' calls to new
15352 `terminal_input' / `terminal_output' API.
15353 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
15354 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
15355 provided ${GRUB_TERMINAL}, convert it).
15356
96e5d876 153572008-11-04 Robert Millan <rmh@aybabtu.com>
15358
15359 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
15360 for FreeBSD.
15361 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
15362
556f3775 153632008-11-03 Bean <bean123ch@gmail.com>
15364
15365 * kern/elf.c (grub_elf32_load): Revert to previous code.
15366 (grub_elf64_load): Likewise.
15367
15368 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
15369
926b9823 153702008-11-01 Robert Millan <rmh@aybabtu.com>
15371
15372 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
15373 (TARGET_CPPFLAGS): Likewise.
15374 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
15375
1432e958 153762008-11-01 Carles Pina i Estany <carles@pina.cat>
15377
15378 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15379
dba3f844 153802008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 15381
15382 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15383 addition of objects until the code is not going to be able to fail.
15384
dba3f844 153852008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 15386
15387 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15388 (add a missing NULL check, and correct them by moving the pointer
15389 operations after the actual check).
15390
7ab28c21 153912008-10-29 Robert Millan <rmh@aybabtu.com>
15392
15393 * util/i386/pc/grub-install.in: Handle empty string as output from
15394 make_system_path_relative_to_its_root().
15395
1b7748eb 153962008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15397
15398 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15399 circular metadata worst case scenario. If the metadata is circular
15400 then copy the wrap in place.
15401 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15402 project lib/format_text/layout.h
15403 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15404
c9618ab2 154052008-10-03 Felix Zielcke <fzielcke@z-51.de>
15406
7a36edca 15407 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 15408
bf981c62 154092008-10-03 Felix Zielcke <fzielcke@z-51.de>
15410
15411 * util/update-grub_lib.in: Mention filename in warning message.
15412
6d994591 154132008-09-29 Felix Zielcke <fzielcke@z-51.de>
15414
15415 * NEWS: Update for rename of update-grub to grub-mkconfig.
15416
18ade780 154172008-09-29 Felix Zielcke <fzielcke@z-51.de>
15418
15419 * util/update-grub_lib.in: Copy to ...
15420 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 15421 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 15422 * util/update-grub.in: Rename to ...
15423 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15424 option. Add `--output' option to allow users to specify the generated
15425 configuration file. Default to stdout.
15426 (update_grub_dir): Rename to ...
15427 (grub_mkconfig_dir): ... this.
15428 (grub_cfg): Default to an empty string.
15429 * conf/common.rmk (update-grub): Rename to ...
15430 (grub-mkconfig): ... this.
15431 (update-grub_lib): Copy to ...
15432 (grub-mkconfig_lib): ... this.
15433 (update-grub_SCRIPTS): Copy to ...
15434 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15435 (update-grub_DATA): Rename to ...
15436 (grub-mkconfig_DATA): ... this.
15437
556ce6ac 154382008-09-28 Robert Millan <rmh@aybabtu.com>
15439
15440 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15441 to `modified'. Add the real `created' field.
15442 (grub_iso9660_uuid): Use `modified' rather than `created' for
15443 constructing the UUID.
15444
154452008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 15446
15447 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15448 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15449
92274e85 154502008-09-28 Bean <bean123ch@gmail.com>
15451
15452 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15453 Thanks to Christian Franke for finding this bug.
15454
add6f17a 154552008-09-25 Robert Millan <rmh@aybabtu.com>
15456
15457 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15458 instances of grub_util_get_disk_name() (see previous commit).
15459
d2a367b8 154602008-09-25 Robert Millan <rmh@aybabtu.com>
15461
15462 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15463 `util/i386/get_disk_name.c'.
15464 * conf/i386-efi.rmk: Likewise.
15465 * conf/x86_64-efi.rmk: Likewise.
15466 * conf/i386-coreboot.rmk: Likewise.
15467 * conf/i386-ieee1275.rmk: Likewise.
15468 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15469 `util/ieee1275/get_disk_name.c'.
15470 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15471 * util/ieee1275/get_disk_name.c: Remove file.
15472 * util/i386/get_disk_name.c: Remove file.
15473 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15474 "hd%d" for device.map entries, rather than using
15475 grub_util_get_disk_name().
15476
81a06771 154772008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 15478
15479 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15480 warning.
15481 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15482
5a004279 154832008-09-24 Carles Pina i Estany <carles@pina.cat>
15484
15485 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15486 Changed to 0x5100.
15487 (GRUB_TERM_PPAGE): Changed to 0x4900.
15488
397093d3 154892008-09-24 Robert Millan <rmh@aybabtu.com>
15490
15491 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15492 macros (they were i386-pc specific).
15493 * include/grub/sparc64/ieee1275/console.h: Likewise.
15494 * include/grub/efi/console.h: Likewise.
15495
a91b6c7c 154962008-09-22 Bean <bean123ch@gmail.com>
15497
15498 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15499 resident and in attribute list.
15500
15501 * include/grub/ntfs.h (BMP_LEN): Removed.
15502
c40fd116 155032008-09-22 Bean <bean123ch@gmail.com>
15504
81a06771 15505 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 15506 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15507
15508 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15509 error occurs, as grub_disk_open will call grub_disk_close, which will
15510 call p->close (scsi).
15511
81a06771 155122008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 15513
15514 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15515 (AC_PREREQ): Bumped to 2.59.
15516 (AC_TRY_COMPILE): Replace obsolete macro with ...
15517 (AC_COMPILE_IFELSE): ... this.
15518 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15519 (AC_LINK_IFELSE): ... this.
15520
5dc43410 155212008-09-21 Felix Zielcke <fzielcke@z-51.de>
15522
15523 * autogen.sh: Add a call to `gendistlist.sh'.
15524
9035dce4 155252008-09-19 Christian Franke <franke@computer.org>
15526
15527 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15528 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15529 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15530 Export __enable_execute_stack() to modules.
15531 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15532 New function.
15533
7fd75377 155342008-09-09 Felix Zielcke <fzielcke@z-51.de>
15535
040030b3 15536 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15537 Sort the list.
15538
155392008-09-09 Felix Zielcke <fzielcke@z-51.de>
15540
15541 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 15542 #include <grub/util/hostdisk.h>.
15543
89d5ffcf 155442008-09-08 Robert Millan <rmh@aybabtu.com>
15545
15546 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15547 segments when their filesz is zero (grub_file_read() interprets
81a06771 15548 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 15549 Use `lowest_segment' rather than 0 for calculating the current
15550 segment load address.
15551
40da438f 155522008-09-08 Robert Millan <rmh@aybabtu.com>
15553
15554 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15555 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15556 clobbered useful information.
15557
ddbf5556 155582008-09-08 Robert Millan <rmh@aybabtu.com>
15559
15560 * include/grub/util/biosdisk.h: Move to ...
15561 * include/grub/util/hostdisk.h: ... here. Update all users.
15562 * util/biosdisk.c: Move to ...
15563 * util/hostdisk.c: ... here. Update all users.
15564
783d0f48 155652008-09-07 Robert Millan <rmh@aybabtu.com>
15566
15567 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15568 variables.
15569 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15570 and length can be stored directly in the `mbi->mmap_addr' and
15571 `mbi->mmap_length' struct fields.
15572
548e2ea5 155732008-09-07 Robert Millan <rmh@aybabtu.com>
15574
15575 * conf/i386.rmk: New file. Provides declaration for building
15576 `cpuid.mod'.
15577 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15578 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15579 variables.
15580 Include `conf/i386.mk'.
15581 * conf/i386-efi.rmk: Likewise.
15582 * conf/x86_64-efi.rmk: Likewise.
15583 * conf/i386-coreboot.rmk: Likewise.
15584 * conf/i386-ieee1275.rmk: Likewise.
15585
0ea85a37 155862008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15587
15588 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15589 Adds optimization support for BGR based modes.
15590
15591 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15592 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15593 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15594 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15595 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15596 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15597 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15598 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15599 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15600 (grub_video_i386_vbeblit_index_index): Likewise.
15601 (grub_video_i386_vbeblit_replace_directN): Added.
15602 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15603 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15604 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15605 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15606 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15607 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 15608 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 15609 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15610 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15611 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15612 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15613 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15614 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15615
15616 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15617 (grub_video_i386_vbefill_R8G8B8): Likewise.
15618 (grub_video_i386_vbefill_index): Likewise.
15619 (grub_video_i386_vbefill_direct32): Added.
15620 (grub_video_i386_vbefill_direct24): Likewise.
15621 (grub_video_i386_vbefill_direct16): Likewise.
15622 (grub_video_i386_vbefill_direct8): Likewise.
15623
81a06771 15624 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 15625 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15626 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15627 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15628 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15629 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 15630
0ea85a37 15631 * video/video.c (grub_video_get_blit_format): Updated to use new
15632 blit formats. Added handling for 16 bit color modes.
81a06771 15633
15634 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 15635 fillers.
15636 (common_blitter): Updated to use new blitters.
15637
15638 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15639 Removed.
15640 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15641 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15642 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15643 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15644 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15645 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15646 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15647 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15648 (grub_video_i386_vbeblit_index_index): Likewise.
15649 (grub_video_i386_vbeblit_replace_directN): Added.
15650 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15651 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15652 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15653 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15654 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15655 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15656 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15657 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15658 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15659 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15660 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15661 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15662 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 15663
0ea85a37 15664 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15665 (grub_video_i386_vbefill_R8G8B8): Likewise.
15666 (grub_video_i386_vbefill_index): Likewise.
15667 (grub_video_i386_vbefill_direct32): Added.
15668 (grub_video_i386_vbefill_direct24): Likewise.
15669 (grub_video_i386_vbefill_direct16): Likewise.
15670 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 15671
0ea85a37 15672 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15673 types.
81a06771 15674
0ea85a37 15675 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15676 types.
81a06771 15677
0ea85a37 15678 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15679 blitter types.
81a06771 15680
0ea85a37 15681 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15682 types.
15683
e8a83df6 156842008-09-06 Felix Zielcke <fzielcke@z-51.de>
15685
15686 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15687 RAID level 1.
15688
6bcd8ee5 156892008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 15690
6bcd8ee5 15691 * fs/iso9660.c (grub_iso9660_date): New structure.
15692 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15693 (grub_iso9660_uuid): New function.
c375ae58 15694
59261157 156952008-09-05 Bean <bean123ch@gmail.com>
15696
15697 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15698
15699 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15700 insensitive bit for names in Win32 and Win32 & DOS namespace.
15701
15702 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15703
15704 * include/grub/types.h (LONG_MAX): Likewise.
15705
58b6645a 157062008-09-04 Felix Zielcke <fzielcke@z-51.de>
15707
4ee55921 15708 * util/getroot.c: Include <config.h>.
15709 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15710 add support for /dev/md/N devices and handle LVM double dash escaping.
15711
157122008-09-04 Felix Zielcke <fzielcke@z-51.de>
15713
15714 * config.guess: Update to latest version from config git.
15715 * config.sub: Likewise.
58b6645a 15716
9124f65d 157172008-09-03 Robert Millan <rmh@aybabtu.com>
15718
15719 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15720 `disk->total_sectors'.
15721
81a06771 157222008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 15723
15724 * include/grub/normal.h: Fixed incorrect comment for
15725 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15726
81a06771 157272008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 15728
15729 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15730 values with defines.
15731
15732 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15733 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15734 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15735 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15736 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15737 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15738 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15739 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15740 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15741 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15742 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15743 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15744 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15745 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15746 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15747 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15748 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15749 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15750 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15751
93d5cbf8 157522008-08-31 Robert Millan <rmh@aybabtu.com>
15753
15754 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15755 declaration.
15756 (grub_multiboot): Fix a few warnings.
15757
21751d50 157582008-08-31 Robert Millan <rmh@aybabtu.com>
15759
15760 * loader/i386/pc/multiboot.c: Update comment not to say that
15761 boot_device support is unimplemented.
15762
e27a75c5 157632008-08-31 Robert Millan <rmh@aybabtu.com>
15764
15765 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15766 or memory map support are unimplemented.
15767
81a06771 157682008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 15769
15770 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15771
81a06771 157722008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 15773
15774 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15775 total video memory in 'vbeinfo' output; show color format details for
15776 each video mode.
15777
7c5d8d95 157782008-08-30 Pavel Roskin <proski@gnu.org>
15779
15780 * util/genmoddep.c: Remove for real this time.
15781 * DISTLIST: Remove util/genmoddep.c.
15782
4cebd25a 157832008-08-30 Robert Millan <rmh@aybabtu.com>
15784
15785 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15786 as required by Multiboot spec (it was already 4-byte aligned, but
15787 only by chance).
15788
b497a269 157892008-08-29 Pavel Roskin <proski@gnu.org>
15790
e3925185 15791 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15792 * kern/powerpc/ieee1275/startup.S: ... this.
15793 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15794 * DISTLIST: Likewise.
15795
b497a269 15796 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15797 grub/cpu/kernel.h. Add start label for consistency with other
15798 platforms. Add grub_prefix immediately after start. Add jump
15799 to the code after grub_prefix.
15800 * include/grub/powerpc/kernel.h: Provide valid values for
15801 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15802
6e5a42fe 158032008-08-29 Bean <bean123ch@gmail.com>
15804
15805 * configure.ac: Change host_os to cygwin for mingw.
15806 (asprintf): New check for function.
15807
15808 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15809 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15810
15811 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 15812 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 15813 sync, sleep and grub_util_get_disk_size for mingw.
15814
15815 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15816 to get size in mingw.
15817 (open_device): Use flag O_BINARY if it's defined.
15818 (find_root_device): Add dummy code for mingw.
15819
15820 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15821 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15822 (get_scsi_disk_name): Return 0 for mingw.
15823
15824 * util/hostfs.c: #include <grub/util/misc.h>.
15825 (grub_hostfs_open): Use "rb" flag to open file, use
15826 grub_util_get_disk_size to get disk size for mingw.
15827
15828 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15829 (asprintf): New function if HAVE_ASPRINTF is not set.
15830 (sync): New function for mingw.
15831 (sleep): Likewise.
15832 (grub_util_get_disk_size): Likewise.
15833
ab3f2673 158342008-08-28 Pavel Roskin <proski@gnu.org>
15835
15836 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15837 kern/time.c.
15838
1c282483 158392008-08-28 Robert Millan <rmh@aybabtu.com>
15840
15841 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15842
678e849c 158432008-08-28 Robert Millan <rmh@aybabtu.com>
15844
15845 Change find_grub_drive() syntax so it doesn't prevent it from
15846 detecting NULL names as errors.
15847
15848 * util/biosdisk.c (find_grub_drive): Move free slot search code
15849 from here ...
15850 (find_free_slot): ... to here.
15851 (read_device_map): Use find_free_slot() to search for free slots.
15852
965c75ca 158532008-08-27 Marco Gerards <marco@gnu.org>
15854
15855 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15856 (scsi_mod_SOURCES): New variable.
15857 (scsi_mod_CFLAGS): Likewise
15858 (scsi_mod_LDFLAGS): Likewise.
15859
15860 * disk/scsi.c: New file.
15861
15862 * include/grub/scsi.h: Likewise.
15863
15864 * include/grub/scsicmd.h: Likewise.
15865
15866 * disk/ata.c: Include <grub/scsi.h>.
15867 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15868 instead.
15869 (grub_ata_iterate): Skip ATAPI devices.
15870 (grub_ata_open): Only handle ATAPI devices.
15871 (struct grub_atapi_read): Removed.
15872 (grub_atapi_readsector): Likewise.
15873 (grub_ata_read): No longer handle ATAPI devices.
15874 (grub_ata_write): Likewise.
15875 (grub_atapi_iterate): New function.
15876 (grub_atapi_read): Likewise.
15877 (grub_atapi_write): Likewise.
15878 (grub_atapi_open): Likewise.
15879 (grub_atapi_close): Likewise.
15880 (grub_atapi_dev): New variable.
15881 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15882 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15883
15884 * include/grub/disk.h (enum grub_disk_dev_id): Add
15885 `GRUB_DISK_DEVICE_SCSI_ID'.
15886
c07ae501 158872008-08-26 Robert Millan <rmh@aybabtu.com>
15888
15889 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15890 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15891 descriptive.
15892
5ed20adc 158932008-08-23 Bean <bean123ch@gmail.com>
15894
15895 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15896 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15897 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15898 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15899 dm_nv.mod.
15900 (raid5rec_mod_SOURCES): New macro.
15901 (raid5rec_mod_CFLAGS): Likewise.
15902 (raid5rec_mod_LDFLAGS): Likewise.
15903 (raid6rec_mod_SOURCES): Likewise.
15904 (raid6rec_mod_CFLAGS): Likewise.
15905 (raid6rec_mod_LDFLAGS): Likewise.
15906 (mdraid_mod_SOURCES): Likewise.
15907 (mdraid_mod_CFLAGS): Likewise.
15908 (mdraid_mod_LDFLAGS): Likewise.
15909 (dm_nv_mod_SOURCES): Likewise.
15910 (dm_nv_mod_CFLAGS): Likewise.
15911 (dm_nv_mod_LDFLAGS): Likewise.
15912
15913 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15914 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15915 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15916
15917 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15918 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15919
15920 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15921
15922 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15923
15924 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15925
15926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15927
15928 * disk/raid5_recover.c: New file.
15929
15930 * disk/raid6_recover.c: Likewise.
15931
15932 * disk/mdraid_linux.c: Likewise.
15933
15934 * disk/dmraid_nvidia.c: Likewise.
15935
15936 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15937 ULONG_MAX.
15938
15939 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15940 calculate the size of raid device.
15941 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15942 different layout of raid5.
15943 (grub_raid_scan_device): Remove code specific to mdraid.
15944 (grub_raid_list): New variable.
15945 (free_array): New function.
15946 (grub_raid_register): Likewise.
15947 (grub_raid_unregister): Likewise.
15948 (grub_raid_rescan): Likewise.
15949 (GRUB_MOD_INIT): Don't iterate device here.
15950 (GRUB_MOD_FINI): Use free_array to release resource.
15951
15952 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15953 (grub_raid5_recover_func_t): New function variable type.
15954 (grub_raid6_recover_func_t): Likewise.
15955 (grub_raid5_recover_func): New variable.
15956 (grub_raid6_recover_func): Likewise.
15957 (grub_raid_register): New function.
15958 (grub_raid_unregister): Likewise.
15959 (grub_raid_rescan): Likewise.
15960 (grub_raid_block_xor): Likewise.
15961
15962 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15963 (CMD_CRC): New macro.
15964 (part): Removed.
15965 (read_file): Handle device as well as file.
15966 (cmd_crc): New function.
15967 (fstest): Handle multiple disks.
15968 (options): Remove part, raw and long, add root and diskcount.
15969 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 15970 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 15971 add handling for the new options, support multiple disks.
15972
15973 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15974
29c18915 159752008-08-23 Bean <bean123ch@gmail.com>
15976
15977 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15978
15979 * genfslist.sh: Ignore kernel.mod.
15980
15981 * genpartmaplist.sh: Likewise.
15982
8415f261 159832008-08-23 Robert Millan <rmh@aybabtu.com>
15984
15985 * util/getroot.c (find_root_device): Skip anything that starts with
15986 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15987
d5a7dc5b 159882008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 15989
d5a7dc5b 15990 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15991 * util/grub.d/00_header.in: Allow the administrator to change default
15992 gfxmode via ${GRUB_GFXMODE}.
15993
380cfbb4 159942008-08-21 Felix Zielcke <fzielcke@z-51.de>
15995
15996 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15997
c9baafe7 159982008-08-21 Robert Millan <rmh@aybabtu.com>
15999
16000 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
16001 loader.
16002 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
16003 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
16004
e290bef2 160052008-08-20 Carles Pina i Estany <carles@pina.cat>
16006
16007 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
16008 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
16009
f9dbfc96 160102008-08-19 Robert Millan <rmh@aybabtu.com>
16011
16012 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
16013 (struct grub_virtual_screen): Remove `cursor_color'.
16014 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
16015 initialization.
16016 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
16017
dd6bd6ab 160182008-08-18 Robert Millan <rmh@aybabtu.com>
16019
16020 Unify (identical) linux_normal.c files.
16021 * loader/i386/efi/linux_normal.c: Move from here ...
16022 * loader/linux_normal.c: ... to here. Update all users.
16023 * loader/i386/pc/linux_normal.c: Delete. Update all users.
16024 * loader/i386/ieee1275/linux_normal.c: Likewise.
16025
7f42f83e 160262008-08-18 Robert Millan <rmh@aybabtu.com>
16027
16028 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
16029 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
16030 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
16031 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
16032 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
16033 New macros.
16034 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
16035 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
16036 (GRUB_LINUX_CL_END_OFFSET): ... to here.
16037 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
16038 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
16039 (GRUB_EFI_CL_END_OFFSET): Rename to ...
16040 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
16041 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
16042 Initialize `params->video_cursor_x' and `params->video_cursor_y'
16043 portably using grub_getxy().
16044 Replace `-EFI' with `-bzImage' in boot message.
16045
38487ddb 160462008-08-17 Robert Millan <rmh@aybabtu.com>
16047
16048 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
16049
deceb3ec 160502008-08-17 Robert Millan <rmh@aybabtu.com>
16051
16052 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
16053
16054 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
16055 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
16056 (grub_machine_mmap_iterate): New function declaration.
16057 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
16058 structure.
16059 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
16060 macros.
16061
16062 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
16063 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
16064 Move e820 parsing from here ...
16065 * kern/i386/pc/mmap.c: New file.
16066 (grub_machine_mmap_iterate): ... to here.
16067
16068 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
16069 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
16070 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
16071 (grub_available_iterate): Redeclare to return `void', and redeclare
16072 its hook to use grub_uint64_t as addr and size parameters, and rename
16073 to ...
16074 (grub_machine_mmap_iterate): ... this. Update all users.
16075
16076 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
16077 to make it more readable. Rename to ...
16078 (grub_machine_mmap_iterate): ... this.
16079
16080 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
16081 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
16082 (grub_multiboot): Allocate an extra region after the payload, and fill
16083 it with a Multiboot memory map. Adjust a.out loader to calculate size
16084 with the extra space.
16085 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
16086 with the extra space.
16087
f8aa0f43 160882008-08-17 Carles Pina i Estany <carles@pina.cat>
16089
9807deb9 16090 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 16091
605f5bb6 160922008-08-17 Felix Zielcke <fzielcke@z-51.de>
16093
16094 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
16095 mdate-sh to the list `find' searches for.
16096 * DISTLIST: Regenerated.
16097
210db6c6 160982008-08-16 Felix Zielcke <fzielcke@z-51.de>
16099
16100 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
16101 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 16102 genmoddep.awk, gensymlist.sh.in.
16103 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 16104 * DISTLIST: Regenerated.
48cdbfd4 16105 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 16106
1082b929 161072008-08-16 Robert Millan <rmh@aybabtu.com>
16108
16109 * disk/raid.c (grub_raid_init): Handle/report errors set by
16110 grub_device_iterate().
16111 * disk/lvm.c (grub_lvm_init): Likewise.
16112
42ce5170 161132008-08-15 Bean <bean123ch@gmail.com>
16114
16115 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16116 and datehook.mod.
16117 (datetime_mod_SOURCES): New macro.
16118 (datetime_mod_CFLAGS): Likewise.
16119 (datetime_mod_LDFLAGS): Likewise.
16120 (date_mod_SOURCES): Likewise.
16121 (date_mod_CFLAGS): Likewise.
16122 (date_mod_LDFLAGS): Likewise.
16123 (datehook_mod_SOURCES): Likewise.
16124 (datehook_mod_CFLAGS): Likewise.
16125 (datehook_mod_LDFLAGS): Likewise.
16126
16127 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16128 and datehook.mod.
16129 (datetime_mod_SOURCES): New macro.
16130 (datetime_mod_CFLAGS): Likewise.
16131 (datetime_mod_LDFLAGS): Likewise.
16132 (date_mod_SOURCES): Likewise.
16133 (date_mod_CFLAGS): Likewise.
16134 (date_mod_LDFLAGS): Likewise.
16135 (datehook_mod_SOURCES): Likewise.
16136 (datehook_mod_CFLAGS): Likewise.
16137 (datehook_mod_LDFLAGS): Likewise.
16138
16139 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16140 and datehook.mod.
16141 (datetime_mod_SOURCES): New macro.
16142 (datetime_mod_CFLAGS): Likewise.
16143 (datetime_mod_LDFLAGS): Likewise.
16144 (date_mod_SOURCES): Likewise.
16145 (date_mod_CFLAGS): Likewise.
16146 (date_mod_LDFLAGS): Likewise.
16147 (datehook_mod_SOURCES): Likewise.
16148 (datehook_mod_CFLAGS): Likewise.
16149 (datehook_mod_LDFLAGS): Likewise.
16150
16151 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16152 and datehook.mod.
16153 (datetime_mod_SOURCES): New macro.
16154 (datetime_mod_CFLAGS): Likewise.
16155 (datetime_mod_LDFLAGS): Likewise.
16156 (date_mod_SOURCES): Likewise.
16157 (date_mod_CFLAGS): Likewise.
16158 (date_mod_LDFLAGS): Likewise.
16159 (datehook_mod_SOURCES): Likewise.
16160 (datehook_mod_CFLAGS): Likewise.
16161 (datehook_mod_LDFLAGS): Likewise.
16162
16163 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16164 and datehook.mod.
16165 (datetime_mod_SOURCES): New macro.
16166 (datetime_mod_CFLAGS): Likewise.
16167 (datetime_mod_LDFLAGS): Likewise.
16168 (date_mod_SOURCES): Likewise.
16169 (date_mod_CFLAGS): Likewise.
16170 (date_mod_LDFLAGS): Likewise.
16171 (datehook_mod_SOURCES): Likewise.
16172 (datehook_mod_CFLAGS): Likewise.
16173 (datehook_mod_LDFLAGS): Likewise.
16174
16175 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
16176
16177 * commands/date.c: New file.
16178
16179 * hook/datehook.c: Likewise.
16180
16181 * include/grub/lib/datetime.h: Likewise.
16182
16183 * include/grub/i386/cmos.h: Likewise.
16184
16185 * lib/datetime.c: Likewise.
16186
16187 * lib/i386/datetime.c: Likewise.
16188
16189 * lib/efi/datetime.c: Likewise.
16190
0e9242da 161912008-08-14 Robert Millan <rmh@aybabtu.com>
16192
16193 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
16194 (grub_mkelfimage_SOURCES): New variable.
16195 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
16196
16197 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
16198 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
16199 * conf/powerpc-ieee1275.rmk: Likewise.
16200 * conf/i386-ieee1275.rmk: Likewise.
16201
16202 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
16203 * kern/i386/coreboot/init.c: Likewise.
16204
16205 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
16206 with `<grub/cpu/kernel.h>'.
16207 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
16208 to ...
16209 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
16210 * kern/i386/coreboot/startup.S: Likewise.
16211
16212 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
16213 (GRUB_MOD_GAP): Remove.
16214 * include/grub/powerpc/kernel.h: New file.
16215 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
16216 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16217 * include/grub/i386/kernel.h: New file.
16218 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
16219 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
16220 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16221
16222 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
16223 `grub-mkelfimage'.
16224 Use --directory when invoking grub_mkimage.
16225
16226 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
16227 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
16228 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
16229 and GRUB_KERNEL_CPU_PREFIX.
16230
b86408f8 162312008-08-14 Felix Zielcke <fzielcke@z-51.de>
16232
d5e619ca 16233 * include/grub/err.h (grub_err_printf): New function prototype.
16234 * util/misc.c (grub_err_printf): New function.
16235 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
16236 grub_printf.
16237 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 16238
7161f0e0 162392008-08-13 Robert Millan <rmh@aybabtu.com>
16240
16241 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
16242
a1967522 162432008-08-13 Robert Millan <rmh@aybabtu.com>
16244
16245 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
16246 boot entry.
16247
371458b5 162482008-08-12 Robert Millan <rmh@aybabtu.com>
16249
16250 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
16251 of the relocation code from here ...
16252 (grub_multiboot): ... to here.
16253 (forward_relocator, backward_relocator): Move from here ...
16254 * kern/i386/loader.S (grub_multiboot_forward_relocator)
16255 (grub_multiboot_backward_relocator): ... to here.
16256 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
16257 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
16258 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
16259 (grub_multiboot_forward_relocator_end)
16260 (grub_multiboot_backward_relocator)
16261 (grub_multiboot_backward_relocator_end): New variables.
16262
05f9452b 162632008-08-12 Bean <bean123ch@gmail.com>
16264
16265 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
16266
20024ab0 162672008-08-11 Robert Millan <rmh@aybabtu.com>
16268
16269 * kern/i386/linuxbios/startup.S: Move from here ...
16270 * kern/i386/coreboot/startup.S: ... to here.
16271
16272 * kern/i386/linuxbios/init.c: Move from here ...
16273 * kern/i386/coreboot/init.c: ... to here.
16274
16275 * kern/i386/linuxbios/table.c: Move from here ...
16276 * kern/i386/coreboot/mmap.c: ... to here.
16277
16278 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
16279
e352e9cd 162802008-08-11 Robert Millan <rmh@aybabtu.com>
16281
16282 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
16283 errors. Leave it to the upper layer to handle them.
16284
2d05bc6a 162852008-08-09 Christian Franke <franke@computer.org>
16286
16287 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
16288 * conf/common.rmk: Install `grub-pe2elf' only if requested.
16289 Install `grub.d/10_windows' only on Cygwin.
16290 * configure.ac: Add subst of `target_os'.
16291 Check `target_os' also before setting TARGET_OBJ2ELF.
16292 Add `--enable-grub-pe2elf'.
16293
042bd419 162942008-08-08 Robert Millan <rmh@aybabtu.com>
16295
16296 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16297 (grub_last_time): Change type to grub_uint64_t.
16298 (grub_disk_open): Migrate code from to using grub_get_time_ms().
16299 (grub_disk_close): Likewise.
16300
16301 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16302 (run_menu): Migrate code from to using grub_get_time_ms().
16303
16304 * util/misc.c (grub_get_time_ms): New function.
16305
7f280db5 163062008-08-08 Marco Gerards <marco@gnu.org>
16307
16308 * disk/ata.c (grub_ata_regget): Change return type to
16309 `grub_uint8_t'.
16310 (grub_ata_regget2): Likewise.
16311 (grub_ata_wait_status): New function.
16312 (grub_ata_wait_busy): Removed function, updated all users to use
16313 `grub_ata_wait_status'.
16314 (grub_ata_wait_drq): Likewise.
16315 (grub_ata_cmd): New function.
16316 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
16317 error handling.
16318 (grub_ata_pio_write): Add error handling.
16319 (grub_atapi_identify): Likewise.
16320 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
16321 handling.
16322 (grub_ata_identify): Use `grub_ata_cmd' and improve error
16323 handling. Actually use the detected registers. Reorder the
16324 detection logic such that it is easier to read.
16325 (grub_ata_pciinit): Do not assign the same ID to each controller.
16326 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
16327 handling.
16328 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
16329
16330 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
16331
1fbc5e66 163322008-08-08 Marco Gerards <marco@gnu.org>
16333
16334 * NEWS: Update.
16335
819ce6c0 163362008-08-07 Bean <bean123ch@gmail.com>
16337
16338 * include/grub/x86_64/pci.h: New file.
16339
5c41d44d 163402008-08-07 Christian Franke <franke@computer.org>
16341
16342 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
16343 (TIMER2_GATE): Likewise.
16344 (grub_pit_wait): Add enable/disable of the timer2 gate
16345 bit of port 0x61. This fixes a possible infinite loop.
16346
5ebc275d 163472008-08-07 Bean <bean123ch@gmail.com>
16348
16349 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
16350 kern/i386/tsc.c and kern/i386/pit.c.
16351
16352 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
16353 x86_64 platform.
16354
16355 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
16356 <grub/i386/tsc.h>.
16357
16358 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
16359
e383b3d0 163602008-08-07 Bean <bean123ch@gmail.com>
16361
16362 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
16363
16364 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
16365
16366 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
16367 multiple inclusion. Add #include <grub/types.h>.
16368
1cbb58ac 163692008-08-06 Christian Franke <franke@computer.org>
16370
16371 * conf/common.rmk: Build and install `10_windows'.
16372 * util/grub.d/10_windows.in: New script.
16373
337f5a1e 163742008-08-06 Pavel Roskin <proski@gnu.org>
16375
16376 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16377
057bc4ac 163782008-08-06 Robert Millan <rmh@aybabtu.com>
16379
16380 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16381 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16382
2b99f123 163832008-08-06 Bean <bean123ch@gmail.com>
16384
16385 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16386 (grub_pxefs_fs_int): Remove dummy definition.
16387 (grub_pxefs_open): Use data->block_size to store the current block
16388 size setting.
16389 (grub_pxefs_read): Use block size stored in data->block_size. As the
16390 value of grub_pxe_blksize can be changed after the file is opened.
16391
9f0234cb 163922008-08-06 Bean <bean123ch@gmail.com>
16393
16394 * fs/i386/pc/pxe.c (curr_file): new variable.
16395 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16396 require the dummy internal file system anymore.
16397 (grub_pxefs_read): Removed.
16398 (grub_pxefs_close): Likewise.
16399 (grub_pxefs_fs_int): Likewise.
16400 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16401 connection when we switch file.
16402 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16403
a55d42e0 164042008-08-06 Robert Millan <rmh@aybabtu.com>
16405
16406 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16407 `halt.mod'.
16408 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16409 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16410
16411 * kern/i386/halt.c: New file.
16412 * kern/i386/reboot.c: Likewise.
16413 * include/grub/i386/reboot.h: Likewise.
16414 * include/grub/i386/halt.h: Likewise.
16415
16416 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16417 Include `<grub/cpu/halt.h>'.
16418 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16419 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16420
16421 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16422 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16423 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16424 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16425 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16426 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16427 from here ...
16428 * include/grub/i386/at_keyboard.h: ... to here.
16429
24371d26 164302008-08-05 Robert Millan <rmh@aybabtu.com>
16431
16432 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16433 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16434 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16435 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16436 `kern/generic/millisleep.c'.
16437
16438 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16439 instead of grub_get_rtc().
16440 (grub_tsc_init): Initialize `tsc_boot_time'.
16441
16442 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16443 (grub_machine_init): Use grub_tsc_init() rather than
16444 installing an RTC-based handler via grub_install_get_time_ms().
16445
16446 * kern/i386/pit.c: New file.
16447 * include/grub/i386/pit.h: Likewise.
16448
9e7007b3 164492008-08-05 Bean <bean123ch@gmail.com>
16450
16451 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16452
16453 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16454 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16455 (pxe_mod_SOURCES): New macro.
16456 (pxe_mod_CFLAGS): Likewise.
16457 (pxe_mod_LDFLAGS): Likewise.
16458 (pxecmd_mod_SOURCES): Likewise.
16459 (pxecmd_mod_CFLAGS): Likewise.
16460 (pxecmd_mod_LDFLAGS): Likewise.
16461
16462 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16463 (grub_pxe_call): Likewise.
16464
16465 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16466
16467 * commands/i386/pc/pxecmd.c: New file.
16468
9f0234cb 16469 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 16470
16471 * include/grub/i386/pc/pxe.h: Likewise.
16472
6977d49f 164732008-08-05 Bean <bean123ch@gmail.com>
16474
16475 * util/console.c (grub_console_cur_color): New variable.
16476 (grub_console_standard_color): Likewise.
16477 (grub_console_normal_color): Likewise.
16478 (grub_console_highlight_color): Likewise.
16479 (color_map): Likewise.
16480 (use_color): Likewise.
16481 (NUM_COLORS): New macro.
16482 (grub_ncurses_setcolorstate): Handle color properly.
16483 (grub_ncurses_setcolor): Don't change color here, just remember the
16484 settings, color will be set in grub_ncurses_setcolorstate.
16485 (grub_ncurses_getcolor): New function.
16486 (grub_ncurses_init): Initialize color pairs.
16487 (grub_ncurses_term): New member grub_ncurses_getcolor.
16488
9c2ff3ee 164892008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 16490
9c2ff3ee 16491 High resolution timer support. Implemented for x86 CPUs using TSC.
16492 Extracted generic grub_millisleep() so it's linked in only as needed.
16493 This requires a Pentium compatible CPU; if the RDTSC instruction is
16494 not supported, then it falls back on the generic grub_get_time_ms()
16495 implementation that uses the machine's RTC.
16496
16497 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16498 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16499 `kern/generic/millisleep.c'.
16500
16501 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16502 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16503
16504 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16505 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16506
16507 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16508
16509 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16510 `kern/generic/millisleep.c'.
16511
16512 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16513
16514 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16515
16516 * kern/generic/rtc_get_time_ms.c: New file.
16517
16518 * kern/generic/millisleep.c: New file.
337f5a1e 16519
9c2ff3ee 16520 * kern/misc.c: Don't include
16521 <kern/time.h> anymore.
16522 (grub_millisleep_generic): Removed.
16523
16524 * commands/sleep.c (grub_interruptible_millisleep): Uses
16525 grub_get_time_ms() instead of grub_get_rtc().
16526
16527 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16528 function.
16529 (grub_cpu_is_cpuid_supported): New inline function.
16530 (grub_cpu_is_tsc_supported): New inline function.
16531 (grub_tsc_init): New function prototype.
16532 (grub_tsc_get_time_ms): New function prototype.
16533
16534 * kern/i386/tsc.c (grub_get_time_ms): New file.
16535
16536 * include/grub/time.h: Include <grub/types.h.
16537 (grub_millisleep_generic): Removed.
16538 (grub_get_time_ms): New prototype.
16539 (grub_install_get_time_ms): New prototype.
16540 (grub_rtc_get_time_ms): New prototype.
16541
16542 * kern/time.c (grub_get_time_ms): New function.
16543 (grub_install_get_time_ms): New function.
16544
16545 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16546 <grub/time.h> anymore.
16547 (grub_millisleep): Removed.
16548 (grub_machine_init): Call grub_tsc_init.
16549
16550 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16551 get_time_ms() implementation.
16552
16553 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16554 (ieee1275_get_time_ms): New function.
16555 (grub_machine_init): Install get_time_ms() implementation.
16556
16557 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16558 (grub_machine_init): Call grub_tsc_init().
16559 (grub_millisleep): Removed.
bf06a93f 16560
9c2ff3ee 16561 * kern/ieee1275/init.c (grub_millisleep): Removed.
16562 (grub_machine_init): Install ieee1275_get_time_ms()
16563 implementation.
16564 (ieee1275_get_time_ms): New function.
16565 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16566 real work.
16567
9ec92aaf 165682008-08-05 Marco Gerards <marco@gnu.org>
16569
16570 * disk/ata.c: Include <grub/pci.h>.
16571 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16572 (grub_ata_initialize): Rewritten.
16573 (grub_ata_device_initialize): New function.
16574
8d23f507 165752008-08-04 Pavel Roskin <proski@gnu.org>
16576
16577 * kern/main.c: Include grub/mm.h.
16578
5e15ee3d 165792008-08-04 Robert Millan <rmh@aybabtu.com>
16580
16581 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16582 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16583 corruption problem).
16584
a9053f8f 165852008-08-04 Robert Millan <rmh@aybabtu.com>
16586
16587 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16588 warnings introduced in my last commit.
16589
dd19c7d7 165902008-08-03 Robert Millan <rmh@aybabtu.com>
16591
16592 Make PCI available on all i386 architectures.
16593
16594 * include/grub/i386/pc/pci.h: Move from here ...
16595 * include/grub/i386/pci.h: ... to here.
16596
16597 * include/grub/i386/pc/pci.h: Remove.
16598 * include/grub/i386/efi/pci.h: Remove.
16599 * include/grub/x86_64/efi/pci.h: Remove.
16600
16601 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16602 `<grub/cpu/pci.h>'.
16603
16604 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16605 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16606 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16607
16608 * conf/i386-ieee1275.rmk: Likewise.
16609
e14a6184 166102008-08-03 Robert Millan <rmh@aybabtu.com>
16611
16612 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16613 (grub_console_setcursor): Make it possible to set cursor off.
16614
52768e37 166152008-08-03 Robert Millan <rmh@aybabtu.com>
16616
16617 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16618 of modules instead of assuming which platform provides what.
16619 * util/update-grub.in: Likewise.
16620
2d52f57f 166212008-08-03 Robert Millan <rmh@aybabtu.com>
16622
16623 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16624 instead of `grub_install_dos_part' to determine whether a drive needs
16625 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 16626 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 16627
2a5cd121 166282008-08-02 Robert Millan <rmh@aybabtu.com>
16629
16630 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16631
93808428 166322008-08-02 Robert Millan <rmh@aybabtu.com>
16633
16634 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16635 of informational grub_dprintf() calls.
16636
3bd0a12a 166372008-08-02 Robert Millan <rmh@aybabtu.com>
16638
16639 * disk/memdisk.c (memdisk_size): Don't initialize.
16640 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16641
16642 * include/grub/i386/pc/kernel.h
16643 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16644 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16645 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16646 (grub_arch_memdisk_size): Remove.
16647
16648 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16649 field (was only used to transfer a constant). Add `type' field to
16650 support multiple module types.
16651 (grub_module_iterate): New function.
16652
16653 * kern/device.c (grub_device_open): Do not hide error messages
16654 when grub_disk_open() fails. Use grub_print_error() instead.
16655
16656 * kern/i386/pc/init.c (grub_arch_modules_addr)
16657 (grub_arch_memdisk_size): Remove functions.
16658 (grub_arch_modules_addr): Return the module address in high memory
16659 (now that it isn't copied anymore).
16660
16661 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16662 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16663 decompression routine (grub_total_module_size already includes that
16664 now). Don't copy modules back to low memory.
16665
16666 * kern/main.c: Include `<grub/mm.h>'.
16667 (grub_load_modules): Split out (and use) ...
16668 (grub_module_iterate): ... this function, which iterates through
16669 module objects and runs a hook.
16670 Comment out grub_mm_init_region() call, as it would cause non-ELF
16671 modules to be overwritten.
16672
16673 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16674 the memdisk image in its own region, make it part of the module list.
16675 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16676 (main): Parse --memdisk|-m option, and pass user-provided path as
16677 parameter to generate_image().
16678 (add_segments): Pass `memdisk_path' down to load_modules().
16679 (load_modules): Embed memdisk image in module section when requested.
16680 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16681 `header.type' instead of `header.offset'.
16682
16683 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16684 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16685 (memdisk_mod_LDFLAGS): New variables.
16686 * conf/i386-coreboot.rmk: Likewise.
16687 * conf/i386-ieee1275.rmk: Likewise.
16688
a927cc73 166892008-08-02 Robert Millan <rmh@aybabtu.com>
16690
16691 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16692 (backward_relocator): New variables. Used to allocate and relocate
16693 the payload, respectively.
16694 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 16695 address, install the appropriate relocator code in each bound of
a927cc73 16696 the payload, and set the entry point such that
16697 grub_multiboot_real_boot() will jump to one of them.
16698
16699 * kern/i386/loader.S (grub_multiboot_payload_size)
16700 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16701 (grub_multiboot_payload_entry_offset): New variables.
16702 (grub_multiboot_real_boot): Set cpu context to what the relocator
16703 expects, and jump to the relocator instead of the payload.
16704
16705 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16706 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16707 (grub_multiboot_payload_entry_offset): Export.
16708
b15d8a0c 167092008-08-01 Bean <bean123ch@gmail.com>
16710
16711 * normal/menu_entry.c (editor_getline): Don't return the original
16712 string as result, as it will be released by lexer once it has done
16713 using it.
16714
cdfb3d22 167152008-08-01 Robert Millan <rmh@aybabtu.com>
16716
16717 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16718 within menuentries, not before them.
16719 util/grub.d/10_hurd.in: Likewise.
16720
9175e93d 167212008-08-01 Bean <bean123ch@gmail.com>
16722
16723 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16724 (bufio_mod_SOURCES): New macro.
16725 (bufio_mod_CFLAGS): Likewise.
16726 (bufio_mod_LDFLAGS): Likewise.
16727
16728 * include/grub/bufio.h: New file.
16729
16730 * io/bufio.c: Likewise.
16731
16732 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16733 (grub_video_reader_png): Use grub_buffile_open to open file.
16734
16735 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16736 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16737
16738 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16739 (grub_video_reader_tga): Use grub_buffile_open to open file.
16740
16741 * font/manager.c: Include <grub/bufio.h>.
16742 (add_font): Use grub_buffile_open to open file.
16743
3d8383e7 167442008-07-31 Robert Millan <rmh@aybabtu.com>
16745
16746 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16747 ELF segments, use a macro for arbitrarily accessing any of them instead
16748 of preparing a pointer that allows access to one at a time.
16749 (grub_multiboot_load_elf64): Likewise.
16750
16e641b6 167512008-07-31 Bean <bean123ch@gmail.com>
16752
16753 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16754 GRUB_KERNEL_MACHINE_DATA_END.
16755
59198b72 167562008-07-30 Robert Millan <rmh@aybabtu.com>
16757
16758 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16759 Increase from 0x50 to 0x60.
16760 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16761 use UUIDs to identify the root drive for them. If that's not
16762 possible, abort.
16763 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16764 check, for cross-disk installs.
16765
ae88bca3 167662008-07-30 Robert Millan <rmh@aybabtu.com>
16767
16768 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16769 is non-empty, use it to set the `prefix' environment variable instead
16770 of the usual approach.
16771 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16772 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16773 environment variable instead of dummy make_install_device().
16774
16775 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16776 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 16777 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 16778
16779 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16780 New variable reference.
16781 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16782 New macro. Defines offset of `grub_prefix' within startup.S (relative
16783 to `start').
16784 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16785 section within startup.S (relative to `start').
16786 * include/grub/i386/coreboot/kernel.h: Likewise.
16787
16788 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16789 Overwrite grub_prefix with its contents, at the beginning of the
16790 first segment.
16791 (main): Understand -p|--prefix.
16792
14f41dd1 167932008-07-30 Robert Millan <rmh@aybabtu.com>
16794
16795 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16796
4ca049a3 167972008-07-30 Robert Millan <rmh@aybabtu.com>
16798
16799 * term/i386/pc/vga_text.c (grub_console_cls): Use
16800 grub_console_gotoxy() to go back to beginning of the screen.
16801 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16802
2921d337 168032008-07-29 Christian Franke <franke@computer.org>
16804
16805 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16806 Add conversion of emulated mount points on Cygwin.
16807
b609876d 168082008-07-29 Christian Franke <franke@computer.org>
16809
16810 * util/update-grub.in: Add a check for admin
16811 group on Cygwin.
16812 Remove old `grub.cfg.new' before creation.
16813 Add `-f' to `mv' to handle the different filesystem
16814 semantics of Windows.
16815
e93e4679 168162008-07-29 Bean <bean123ch@gmail.com>
16817
16818 * normal/main.c (get_line): Fix buffer overflow bug.
16819
41694fd0 168202008-07-28 Robert Millan <rmh@aybabtu.com>
16821
16822 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16823 (struct grub_apple_header): New struct. Describes the layout of
16824 the partmap header.
16825 (apple_partition_map_iterate): Check the header magic as well as the
16826 partition magic (which was already being checked).
16827
cfd0b4e6 168282008-07-28 Pavel Roskin <proski@gnu.org>
16829
16830 * genmk.rb: Add a warning to the beginning of the output that
16831 it's a generated file and should not be edited.
16832
93cce016 168332008-07-28 Robert Millan <rmh@aybabtu.com>
16834
16835 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16836 with the same number are found, just use issue a warning with
16837 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 16838
cd1df915 168392008-07-27 Robert Millan <rmh@aybabtu.com>
16840
16841 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16842 information.
16843
b70a8427 168442008-07-27 Bean <bean123ch@gmail.com>
16845
16846 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16847 (grub_fat_find_dir): Ignore case when comparing filename.
16848
8f5e379f 168492008-07-27 Bean <bean123ch@gmail.com>
16850
16851 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16852 smallino, as it's more descriptive, and i8count can be confused with
16853 the other field count.
16854 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16855 inode type.
16856
a85cd5a0 168572008-07-27 Bean <bean123ch@gmail.com>
16858
16859 * commands/crc.c: New file.
16860
16861 * lib/crc.c: Likewise.
16862
16863 * include/grub/lib/crc.h: Likewise.
16864
16865 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16866
16867 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16868 (hexdump): Move this function to ...
16869
16870 * lib/hexdump.c: ... here.
16871
16872 * include/grub/hexdump.h: Renamed to ...
16873
16874 * include/grub/lib/hexdump.h: ... this.
16875
16876 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16877
16878 * util/grub-editenv.c: Likewise.
16879
16880 * include/envblk.h: Renamed to ...
16881
16882 * include/lib/envblk.h: ... this.
16883
16884 * util/envblk.c: Renamed to ...
16885
16886 * lib/envblk.c: ... this.
16887
16888 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16889 lib/hexdump.c.
16890 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16891 (pkglib_MODULES): Add crc.mod.
16892 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16893 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16894 (crc_mod_SOURCES): New macro.
16895 (crc_mod_CFLAGS): Likewise.
16896 (crc_mod_LDFLAGS): Likewise.
16897
16898 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16899
16900 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16901
16902 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16903
16904 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16905
16906 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16907
c298def0 169082008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 16909
16910 * commands/help.c: Include <grub/term.h>.
16911 (TERM_WIDTH): Removed. Updated all users.
16912
cc349fb3 169132008-07-27 Pavel Roskin <proski@gnu.org>
16914
16915 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16916 spurious warnings about a comment within a comment.
16917
9051607e 169182008-07-25 Robert Millan <rmh@aybabtu.com>
16919
16920 * util/getroot.c (find_root_device): Skip devices that match
16921 /dev/dm-[0-9]. This lets the real device be found for any type of
16922 abstraction (LVM, EVMS, RAID..).
16923 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16924 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16925 device is found first, find_root_device() will now skip it.
16926
01453bfc 169272008-07-24 Pavel Roskin <proski@gnu.org>
16928
16929 * include/grub/types.h: Use __builtin_bswap32() and
16930 __builtin_bswap64() with gcc 4.3 and newer.
16931
6af9849f 169322008-07-24 Christian Franke <franke@computer.org>
16933
3a0fa256 16934 * util/i386/pc/grub-install.in: If `--debug' is specified,
16935 pass `--verbose' to grub-setup.
16936 Abort script if make_system_path_relative_to_its_root() fails.
16937
7810e747 169382008-07-24 Bean <bean123ch@gmail.com>
16939
16940 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16941 variable `target_platform' should be `platform'.
16942
42290e17 169432008-07-24 Bean <bean123ch@gmail.com>
16944
51cc5193 16945 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 16946 (grub_png_init_fixed_block): New function.
16947 (grub_png_decode_image_data): Handle fixed huffman code compression.
16948
2a8a80e4 169492008-07-24 Bean <bean123ch@gmail.com>
16950
16951 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16952 (grub_pe2elf_SOURCES): New macro.
16953 (CLEANFILES): Add grub-pe2elf.
16954
16955 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16956 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16957 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16958 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16959 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16960 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16961 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16962 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16963 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16964 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16965 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16966 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16967 (GRUB_PE32_DT_FUNCTION): Likewise.
16968 (GRUB_PE32_REL_I386_DIR32): Likewise.
16969 (GRUB_PE32_REL_I386_REL32): Likewise.
16970 (grub_pe32_symbol): New structure.
16971 (grub_pe32_reloc): Likewise.
16972
16973 * util/grub-pe2elf.c: New file.
16974
16975 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16976 start symbol in non pc platform.
16977
16978 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16979
16980 The following patches are from Christian Franke.
16981
16982 * include/grub/dl.h: Remove .previous, gas supports this only
16983 for ELF format.
16984
16985 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16986 Remove .type, gas supports this only for ELF format.
16987
16988 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16989 nullbytes in symbol table. This fixes an infinite loop if table is
16990 zero filled.
16991
16992 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16993 TARGET_IMG_LDFLAGS and EXEEXT.
16994
16995 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16996 TARGET_IMG_LDFLAGS_AC.
16997 (grub_CHECK_STACK_ARG_PROBE): New function.
16998
16999 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
17000
17001 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
17002
17003 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
17004 to set TARGET_IMG_LD* accordingly.
17005 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
17006 Add call to grub_CHECK_STACK_ARG_PROBE.
17007 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
17008
17009 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
17010
17011 * genmk.rb: Add EXEEXT to CLEANFILES.
17012
12ccdb75 170132008-07-23 Robert Millan <rmh@aybabtu.com>
17014
17015 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
17016 define the codes for arrows and lines used for the menu).
17017 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
17018 as well.
17019
17020 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
17021 fonts, because the latter are too slow.
17022
18eeaf04 170232008-07-21 Bean <bean123ch@gmail.com>
17024
17025 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
17026 a20. Run keyboard test last, as it will cause macbook to halt.
17027
b095e2ad 170282008-07-18 Pavel Roskin <proski@gnu.org>
17029
17030 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
17031 load foreign architecture modules correctly anyway. Keep
17032 support for loading host architecture modules, whether we
17033 compile them or not.
17034
737feb35 170352008-07-17 Pavel Roskin <proski@gnu.org>
17036
3f4ce737 17037 * configure.ac: Use -m32 or -m64 regardless of whether we had to
17038 change target_cpu. The compiler default can mismatch target_cpu
17039 in any case.
17040
4ad2d049 17041 * disk/efi/efidisk.c: Fix format warnings on x86_64.
17042 * kern/efi/efi.c: Likewise.
17043
f6130a12 17044 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
17045 target compiler is functional.
17046 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
17047 are set up.
17048
58393a2d 17049 * configure.ac: Default to efi platform for x86_64-apple. Allow
17050 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
17051 adjustments from the rest, only do them if target is not
17052 explicitly given. Merge other adjustments with the final sanity
17053 check. Remove an extraneous check for supported CPU. Be
17054 specific which CPU and which platform is not supported.
17055
737feb35 17056 * configure.ac: Default to pc platform for x86_64.
17057
546f966a 170582008-07-17 Robert Millan <rmh@aybabtu.com>
17059
17060 Partial LinuxBIOS -> Coreboot rename.
17061
17062 * conf/i386-linuxbios.rmk: Renamed to ...
17063 * conf/i386-coreboot.rmk: ... this.
17064 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
17065 * configure.ac: Accept "coreboot" as input platform (but maintain
17066 compatibility with "linuxbios").
17067 * include/grub/i386/linuxbios: Renamed to ...
17068 * include/grub/i386/coreboot: ... this.
17069
20011694 170702008-07-17 Bean <bean123ch@gmail.com>
17071
17072 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 17073 (appleldr_mod_SOURCE): New variable.
20011694 17074 (appleldr_mod_CFLAGS): Likewise.
17075 (appleldr_mod_LDFLAGS): Likewise.
17076 (pci_mod_SOURCES): Likewise.
17077 (pci_mod_CFLAGS): Likewise.
17078 (pci_mod_LDFLAGS): Likewise.
17079 (lspci_mod_SOURCES): Likewise.
17080 (lspci_mod_CFLAGS): Likewise.
17081 (lspci_mod_LDFLAGS): Likewise.
17082
17083 * conf/x86_64-efi.rmk: New file.
17084
17085 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
17086 macro.
17087 (grub_efidisk_write): Likewise.
17088
17089 * include/efi/api.h (efi_call_0): New macro.
17090 (efi_call_1): Likewise.
17091 (efi_call_2): Likewise.
17092 (efi_call_3): Likewise.
17093 (efi_call_4): Likewise.
17094 (efi_call_5): Likewise.
17095 (efi_call_6): Likewise.
17096
17097 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
17098 grub_rescue_cmd_chainloader.
17099
17100 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
17101 (grub_pe32_optional_header): Change some fields based on i386 or
17102 x86_64 platform.
17103 (GRUB_PE32_PE32_MAGIC): Likewise.
17104
17105 * include/grub/efi/uga_draw.h: New file.
17106
17107 * include/grub/elf.h (STN_ABS): New constant.
17108 (R_X86_64_NONE): Relocation constant for x86_64.
17109 (R_X86_64_64): Likewise.
17110 (R_X86_64_PC32): Likewise.
17111 (R_X86_64_GOT32): Likewise.
17112 (R_X86_64_PLT32): Likewise.
17113 (R_X86_64_COPY): Likewise.
17114 (R_X86_64_GLOB_DAT): Likewise.
17115 (R_X86_64_JUMP_SLOT): Likewise.
17116 (R_X86_64_RELATIVE): Likewise.
17117 (R_X86_64_GOTPCREL): Likewise.
17118 (R_X86_64_32): Likewise.
17119 (R_X86_64_32S): Likewise.
17120 (R_X86_64_16): Likewise.
17121 (R_X86_64_PC16): Likewise.
17122 (R_X86_64_8): Likewise.
17123 (R_X86_64_PC8): Likewise.
17124
17125 * include/grub/i386/efi/pci.h: New file.
17126
17127 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
17128 Change it value based on platform.
17129 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
17130 (GRUB_E820_RAM): Likewise.
17131 (GRUB_E820_RESERVED): Likewise.
17132 (GRUB_E820_ACPI): Likewise.
17133 (GRUB_E820_NVS): Likewise.
17134 (GRUB_E820_EXEC_CODE): Likewise.
17135 (GRUB_E820_MAX_ENTRY): Likewise.
17136 (grub_e820_mmap): New structure.
17137 (linux_kernel_header): Change the efi field according to different
17138 kernel version, also field from linux_kernel_header.
17139
17140 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
17141
17142 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
17143 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
17144 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
17145 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
17146 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
17147 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
17148 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
17149 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
17150 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
17151 (GRUB_PCI_ADDR_IO_MASK): Likewise.
17152
17153 * include/grub/x86_64/efi/kernel.h: New file.
17154
17155 * include/grub/x86_64/efi/loader.h: Likewise.
17156
17157 * include/grub/x86_64/efi/machine.h: Likewise.
17158
17159 * include/grub/x86_64/efi/pci.h: Likewise.
17160
17161 * include/grub/x86_64/efi/time.h: Likewise.
17162
17163 * include/grub/x86_64/linux.h: Likewise.
17164
17165 * include/grub/x86_64/setjmp.h: Likewise.
17166
17167 * include/grub/x86_64/time.h: Likewise.
17168
17169 * include/grub/x86_64/types.h: Likewise.
17170
17171 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
17172 GRUB_TARGET_SIZEOF_VOID_P.
17173
17174 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
17175 (grub_efi_locate_handle): Likewise.
17176 (grub_efi_open_protocol): Likewise.
17177 (grub_efi_set_text_mode): Likewise.
17178 (grub_efi_stall): Likewise.
17179 (grub_exit): Likewise.
17180 (grub_reboot): Likewise.
17181 (grub_halt): Likewise.
17182 (grub_efi_exit_boot_services): Likewise.
17183 (grub_get_rtc): Likewise.
17184
17185 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
17186 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
17187 (grub_efi_allocate_pages): Wrap efi calls.
17188 (grub_efi_free_pages): Wrap efi calls.
17189 (grub_efi_get_memory_map): Wrap efi calls.
17190
17191 * kern/x86_64/dl.c: New file.
17192
17193 * kern/x86_64/efi/callwrap.S: Likewise.
17194
17195 * kern/x86_64/efi/startup.S: Likewise.
17196
17197 * loader/efi/appleloader.c: Likewise.
17198
17199 * loader/efi/chainloader.c (cmdline): New variable.
17200 (grub_chainloader_unload): Wrap efi calls.
17201 (grub_chainloader_boot): Likewise.
17202 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
17203 command line.
17204
17205 * loader/efi/chainloader_normal.c (chainloader_command):
17206 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
17207 command line.
17208
17209 * loader/i386/efi/linux.c (allocate_pages): Change allocation
17210 method.
17211 (grub_e820_add_region): New function.
17212 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
17213 booting.
17214 (grub_find_video_card): New function.
17215 (grub_linux_setup_video): New function.
17216 (grub_rescue_cmd_linux): Probe for video information.
17217
17218 * normal/x86_64/setjmp.S: New file.
17219
17220 * term/efi/console.c (map_char): New function.
17221 (grub_console_putchar): Map unicode char.
17222 (grub_console_checkkey): Wrap efi calls.
17223 (grub_console_getkey): Likewise.
17224 (grub_console_getwh): Likewise.
17225 (grub_console_gotoxy): Likewise.
17226 (grub_console_cls): Likewise.
17227 (grub_console_setcolorstate): Likewise.
17228 (grub_console_setcursor): Likewise.
17229
17230 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
17231
59652a20 172322008-07-16 Pavel Roskin <proski@gnu.org>
17233
ef294055 17234 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
17235 format strings.
17236
59652a20 17237 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
17238 pointer, not an integer. This fixes a warning and prevents
17239 precision loss on 64-bit systems.
17240 (relocate_addresses): Remove unneeded cast.
17241
afc3b5d7 172422008-07-15 Pavel Roskin <proski@gnu.org>
17243
506b2b3e 17244 * kern/i386/ieee1275/init.c: Include grub/cache.h.
17245
62ead89c 17246 * term/ieee1275/ofconsole.c: Disable code unused on i386.
17247
c4cd51d7 17248 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
17249 Fix comparison between signed and unsigned.
17250
0d3d8f28 17251 * include/grub/i386/ieee1275/console.h: Declare
17252 grub_console_init() and grub_console_fini().
17253
8804b286 17254 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
17255 It's empty and unused.
17256
ee01cf35 17257 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
17258 beginning to avoid warnings with some compilers.
17259
afc3b5d7 17260 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
17261 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
17262
e4e8eaa5 172632008-07-14 Pavel Roskin <proski@gnu.org>
17264
407aceb4 17265 * kern/env.c (grub_register_variable_hook): Don't copy empty
17266 string, it leaks memory. Pass "" to grub_env_set(), it should
17267 handle constant strings.
17268
e4e8eaa5 17269 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
17270 * commands/cmp.c (grub_cmd_cmp): Likewise.
17271 * kern/dl.c (grub_dl_flush_cache): Likewise.
17272 (grub_dl_load_core): Likewise.
17273 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
17274 (grub_elf64_load_phdrs): Likewise.
17275
d4e2dad3 172762008-07-13 Pavel Roskin <proski@gnu.org>
17277
17278 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
17279 between signed and unsigned.
17280 (LzmaEnc_Finish): Fix warning about an unused parameter.
17281
aa24b516 172822008-07-13 Bean <bean123ch@gmail.com>
17283
17284 * Makefile.in (enable_lzo): New rule.
17285
17286 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
17287
17288 * configure.ac (ENABLE_LZO): New option --enable-lzo.
17289
17290 * boot/i386/pc/lnxboot.S: #include <config.h>.
17291
17292 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 17293 its value according to the compression algorithm used, lzo or lzma.
aa24b516 17294
17295 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
17296 compression algorithm according to configure macro.
17297
17298 * kern/i386/pc/startup.S (codestart): Likewise.
17299
17300 * kern/i386/pc/lzma_decode.S: New file.
17301
17302 * include/grub/lib/LzFind.h: Likewise.
17303
17304 * include/grub/lib/LzHash.h: Likewise.
17305
17306 * include/grub/lib/LzmaDec.h: Likewise.
17307
17308 * include/grub/lib/LzmaEnc.h: Likewise.
17309
17310 * include/grub/lib/LzmaTypes.h: Likewise.
17311
17312 * lib/LzFind.c: Likewise.
17313
17314 * lib/LzmaDec.c: Likewise.
17315
17316 * lib/LzmaEnc.c: Likewise.
17317
4ae821ac 173182008-07-13 Bean <bean123ch@gmail.com>
17319
17320 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
17321 (grub_ext4_extent_header): New structure.
17322 (grub_ext4_extent): Likewise.
17323 (grub_ext4_extent_idx): Likewise.
17324 (grub_ext4_find_leaf): New function.
17325 (grub_ext2_read_block): Handle extents.
17326
9a745147 173272008-07-12 Robert Millan <rmh@aybabtu.com>
17328
17329 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
17330
d49a4cf6 173312008-07-11 Robert Millan <rmh@aybabtu.com>
17332
17333 * util/grub.d/40_custom.in: New file. Example on how to add custom
17334 entries to /etc/grub.d.
17335 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
17336 40_custom (implicitly, by merging all the grub.d rules).
17337
947414b4 173382008-07-11 Pavel Roskin <proski@gnu.org>
17339
0059cf6f 17340 * commands/read.c (grub_getline): Fix invalid memory access.
17341 Don't add newline to the variable value.
17342
947414b4 17343 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
17344 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
17345 (serial_hw_get_port): Check validity of the port number.
17346 (grub_cmd_serial): Check return value of serial_hw_get_port().
17347
62a02d00 173482008-07-07 Pavel Roskin <proski@gnu.org>
17349
17350 * boot/i386/pc/diskboot.S (notification_string): Replace
17351 "Loading kernel" with just "loading". This is shorter, less
17352 confusing and saves a few bytes for possible future changes.
17353
3e5581b0 173542008-07-05 Pavel Roskin <proski@gnu.org>
17355
ea387a48 17356 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
17357 size for ATAPI devices, they are undefined. Output sector
17358 number in decimal form.
17359
3e5581b0 17360 * disk/ata.c: Use named constants for status bits.
17361
fdecb8fd 173622008-07-04 Pavel Roskin <proski@gnu.org>
17363
bcd35b90 17364 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
17365 grub_addr_t before casting it to the void pointer to fix a
17366 warning. Non-addressable regions are discarded earlier.
17367 (grub_arch_modules_addr): Cast _end to grub_addr_t.
17368 * kern/i386/linuxbios/table.c: Include grub/misc.h.
17369 (check_signature): Don't shadow table_header.
17370 (grub_linuxbios_table_iterate): Cast numeric constants to
17371 grub_linuxbios_table_header_t.
17372 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
17373 grub_stop().
17374
af58ab3d 17375 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
17376 prevent warnings.
17377
1759aa57 17378 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17379 pointer, which can cause warnings. Support 64-bit addresses.
17380
fdecb8fd 17381 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17382 of sizeof(long). This fixes PowerPC image generation on x86_64.
17383
8516d2a8 173842008-07-04 Robert Millan <rmh@aybabtu.com>
17385
17386 This fixes a performance issue when pc & gpt partmap iterators
17387 didn't abort iteration even after our hook found what it was
fe987087 17388 looking for (often causing expensive probes of non-existent drives).
8516d2a8 17389
17390 Some callers relied on previous buggy behaviour, since they would
34c44600 17391 raise an error when their own hooks caused early abortion of its
8516d2a8 17392 iteration.
17393
17394 * kern/device.c (grub_device_open): Improve error message.
17395 * disk/lvm.c (grub_lvm_open): Likewise.
17396 * disk/raid.c (grub_raid_open): Likewise.
17397
17398 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17399 when hook requests it, independently of grub_errno.
17400 (pc_partition_map_probe): Do not fail when find_func() caused
17401 early abortion of pc_partition_map_iterate().
17402
17403 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17404 when hook requests it, independently of grub_errno.
17405 (gpt_partition_map_probe): Do not fail when find_func() caused
17406 early abortion of gpt_partition_map_iterate().
17407
17408 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17409 when hook requests it, independently of grub_errno. Do not fail when
17410 part_map_iterate_hook() caused early abortion of p->iterate().
17411
17412 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17413 when grub_partition_iterate() returned with non-zero.
17414
277d0de9 174152008-07-03 Pavel Roskin <proski@gnu.org>
17416
17417 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17418 like we do in grub_ata_pio_read().
17419 (grub_ata_readwrite): Always write individual sectors. Fix the
17420 sector count for the remainder.
17421 (grub_ata_write): Enable writing to ATA devices. Correctly
17422 report error for ATAPI devices.
17423
d4c9b428 174242008-07-02 Pavel Roskin <proski@gnu.org>
17425
e43fc690 17426 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17427 warning.
17428
f707af42 17429 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17430 for every read sector, we already increment it for the whole
17431 batch. This fixes reading more than 256 sectors at once.
17432
11e16b15 17433 * util/grub-editenv.c (cmd_info): Cast argument to long
17434 explicitly. ptrdiff_t reduces to int on i386.
17435
cbabfdd4 17436 * util/grub-editenv.c (main): Be specific which parameter is
17437 missing.
17438
b8fbce0a 17439 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17440 (memdisk): Make memdisk_orig_addr a pointer.
17441
c9c8e606 17442 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17443 for file offsets, use grub_off_t instead. Fix printf format
17444 warnings.
17445
ca62e598 17446 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17447 there. Real unexpected warnings should not drown in the noise
17448 about known problems.
17449
ce8d1766 17450 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17451 grub_disk_addr_t for memory addresses.
17452
00c7a56a 17453 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17454 explicitly to fix a warning.
17455
08d3ef09 17456 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17457
cb71ba20 17458 * Makefile.in (MODULE_LDFLAGS): New variable.
17459 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17460 the linker accepts --build-id=none.
17461 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17462 MODULE_LDFLAGS.
17463 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17464
d4c9b428 17465 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17466 those in Linux XFS code. Provide a way to access 64-bit parent
17467 inode.
17468 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17469 the end of struct grub_xfs_dir_header.
17470
d4156eee 174712008-07-02 Bean <bean123ch@gmail.com>
17472
17473 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17474 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17475 and GRUB_IEEE1275_FLAG_NO_ANSI.
17476
17477 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17478 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17479 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17480
17481 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17482 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17483
17484 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17485 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17486
17487 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17488 esc sequence on non ANSI terminal.
17489 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17490
17491 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17492 beginning of file.
17493
2270f77b 174942008-07-02 Bean <bean123ch@gmail.com>
17495
17496 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17497 (grub_editenv_SOURCES): New variable.
17498 (pkglib_MODULES): Add loadenv.mod.
17499 (loadenv_mod_SOURCES): New variable.
17500 (loadenv_mod_CFLAGS): Likewise.
17501 (loadenv_mod_LDFLAGS): Likewise.
17502
17503 * include/grub/envblk.h: New file.
17504
17505 * util/envblk.c: New file.
17506
17507 * util/grub-editenv.c: New file.
17508
17509 * commands/loadenv.c: New file.
17510
0e9e51ec 175112008-07-01 Pavel Roskin <proski@gnu.org>
17512
d89b7634 17513 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17514 not unsigned char. This fixes warnings and is consistent with
17515 other tags.
17516
bf1835b1 17517 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17518
8222a04b 17519 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17520
6a42d99d 17521 * term/tparm.c (analyze): Always set *popcount.
17522
10b159d1 17523 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17524 cast to fix a warning.
17525
b8789f6c 17526 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17527 cast to suppress a warning.
17528
29d7e38a 17529 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17530 grub_fshelp_read_file() expects.
17531
f341f669 17532 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17533 write uuid as a 32-bit value in CPU byte order, so declare and
17534 use it as such.
17535
0e9e51ec 17536 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17537 long if the format specifier expects it.
17538 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17539 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17540 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17541 long to fix a warning.
17542 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17543 grub_dprintf() arguments to fix warnings.
17544
3aefa857 175452008-06-30 Pavel Roskin <proski@gnu.org>
17546
56c7668b 17547 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17548 install_bsd_part immediately before core.img is embedded or
17549 modified on disk. This fixes core.img verification if core.img
17550 cannot be embedded.
17551
3aefa857 17552 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17553 core_path to calculate the blocklist.
17554 Patch from Javier Martín <lordhabbit@gmail.com>
17555
5444088d 175562008-06-29 Robert Millan <rmh@aybabtu.com>
17557
17558 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17559 block to disk block.
17560 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17561 Patch from Niels Böhm <bitbucket@arcor.de>
17562
674835c8 175632008-06-29 Robert Millan <rmh@aybabtu.com>
17564
17565 * util/update-grub_lib.in (font_path): Search for fonts in
17566 /boot/grub first, which is more likely to be readable (we aren't
17567 deciding where fonts live, just looking for them).
17568
f527dbc8 175692008-06-26 Pavel Roskin <proski@gnu.org>
17570
6c2d8df6 17571 * util/biosdisk.c (read_device_map): Don't leave dead map
17572 entries for devices failing stat() check.
17573
f527dbc8 17574 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17575 core_path_dev for the core.img path on the target device.
17576
aebe3d13 175772008-06-26 Robert Millan <rmh@aybabtu.com>
17578
17579 * disk/fs_uuid.c: New file.
17580 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17581 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17582 (fs_uuid_mod_LDFLAGS): New variables.
17583 * include/grub/disk.h (grub_disk_dev_id): Add
17584 `GRUB_DISK_DEVICE_UUID_ID'.
17585 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17586 implement iterate().
17587
37aaf354 175882008-06-26 Robert Millan <rmh@aybabtu.com>
17589
17590 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17591 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17592 Linux image includes no initrd.
17593
25ff262a 175942008-06-21 Javier Martín <lordhabbit@gmail.com>
17595
17596 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17597 call to resolve the core image location that effectively appended the
17598 name twice.
17599
76a2bd44 176002008-06-21 Robert Millan <rmh@aybabtu.com>
17601
17602 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17603 call from here ...
17604
17605 * util/grub.d/10_hurd.in: ... to here ...
17606 * util/grub.d/10_linux.in: ... and here.
17607
650e1c79 176082008-06-19 Robert Millan <rmh@aybabtu.com>
17609
fe987087 17610 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 17611 after it has been set by grub_machine_set_prefix().
17612
6ce63911 176132008-06-19 Robert Millan <rmh@aybabtu.com>
17614
17615 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17616 search result when not saving to variable, not the other way around.
17617 When saving to variable, abort iteration as soon as a match is found.
17618
73940cec 176192008-06-19 Robert Millan <rmh@aybabtu.com>
17620
17621 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17622 check for partition that provides /boot/grub. Its logic is flawed,
17623 as it prevents prepare_grub_to_access_device() from being called
17624 multiple times.
17625
3c62a39d 176262008-06-19 Robert Millan <rmh@aybabtu.com>
17627
17628 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17629 "insmod" command directly when abstraction modules are needed,
fe987087 17630 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 17631 since it had already been processed).
17632
47395a42 176332008-06-19 Pavel Roskin <proski@gnu.org>
17634
17635 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17636 changed. This is needed in case GRUB_LIBDIR changes.
17637 * conf/i386-ieee1275.rmk: Likewise.
17638 * conf/i386-linuxbios.rmk: Likewise.
17639 * conf/i386-pc.rmk: Likewise.
17640 * conf/powerpc-ieee1275.rmk: Likewise.
17641
a145ac2d 176422008-06-18 Pavel Roskin <proski@gnu.org>
17643
17644 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17645 kernel_elf_symlist.c to symlist.c for consistency with other
17646 architectures. Update all users.
17647 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17648
7847c51e 176492008-06-18 Robert Millan <rmh@aybabtu.com>
17650
17651 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17652 it in prefix.
17653
17654 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17655 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17656 a RAID device, run setup() for all members independently on whether
17657 LVM abstraction is being used.
17658 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17659 If grub-mkimage has set `*install_dos_part == -2', don't override this
17660 value.
17661 Perform *install_dos_part adjustments independently on whether
17662 we're embedding or not.
17663 Clarify error message when image is too big for embedding.
17664 Remove duplicate *install_dos_part stanza.
17665
b23e5644 176662008-06-17 Robert Millan <rmh@aybabtu.com>
17667
17668 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17669 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17670 variables.
17671 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17672 values in grub_ofconsole_normal_color and
17673 grub_ofconsole_highlight_color (they're not directly related to
17674 background and foreground).
17675 (grub_ofconsole_setcolorstate): Extract background and foreground
17676 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17677
0aac2f79 176782008-06-17 Robert Millan <rmh@aybabtu.com>
17679
17680 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17681 /boot/grub for the check in last commit, not /boot (they could be
17682 different partitions).
17683
3cca7ef3 176842008-06-16 Robert Millan <rmh@aybabtu.com>
17685
17686 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17687 asked to setup access for the same partition that provides /boot,
17688 don't bother using UUIDs since our root already has the value we
17689 want.
17690
347396d8 176912008-06-16 Robert Millan <rmh@aybabtu.com>
17692
17693 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17694 I2O devices.
17695 Patch from Sven Mueller <sven@debian.org>.
17696
991477f8 176972008-06-16 Robert Millan <rmh@aybabtu.com>
17698
17699 * util/update-grub.in: Check for $EUID instead of $UID.
17700 Reported by Vincent Zweije.
17701
d31a32a1 177022008-06-16 Bean <bean123ch@gmail.com>
17703
fe987087 17704 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 17705 (grub_ext2_read_block): Likewise.
17706 (grub_ext2_read_inode): Likewise.
17707 (grub_ext2_mount): Likewise.
17708 (grub_ext2_close): Likewise.
17709 (grub_ext3_get_journal): Removed.
17710
fe987087 17711 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 17712 (grub_reiserfs_read_symlink): Likewise.
17713 (grub_reiserfs_mount): Likewise.
17714 (grub_reiserfs_open): Likewise.
17715 (grub_reiserfs_read): Likewise.
17716 (grub_reiserfs_close): Likewise.
17717 (grub_reiserfs_get_journal): Removed.
17718
17719 * fs/fshelp.c (grub_fshelp_read): Removed.
17720 (grub_fshelp_map_block): Likewise.
17721
17722 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17723 (grub_fshelp_journal): Likewise.
17724 (grub_fshelp_read): Likewise.
17725 (grub_fshelp_map_block): Likewise.
17726
3540a760 177272008-06-16 Pavel Roskin <proski@gnu.org>
17728
17729 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17730 floating point anymore.
17731 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17732
95614c84 177332008-06-15 Pavel Roskin <proski@gnu.org>
17734
17735 * commands/ls.c (grub_ls_list_files): Use integer calculations
17736 for human readable format, avoid floating point use.
17737 * kern/misc.c (grub_ftoa): Remove.
17738 (grub_vsprintf): Remove floating point support.
17739
50465dd6 177402008-06-15 Robert Millan <rmh@aybabtu.com>
17741
fe6b695a 17742 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 17743 devices.
17744 Reported by Max Vozeler.
17745
a9207284 177462008-06-15 Robert Millan <rmh@aybabtu.com>
17747
17748 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17749 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17750 skipped later.
17751 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17752 the beginning of the prefix.
17753
17754 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17755 It is assumed that if we have a memdisk, grub-mkimage has set
17756 grub_prefix to include the "(memdisk)" drive in it.
17757
a7cbd45a 177582008-06-15 Robert Millan <rmh@aybabtu.com>
17759
17760 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17761 Initialize keyboard controller after registering the terminal, so that
17762 grub_printf() can be called from grub_keyboard_controller_init().
17763
21cf716a 177642008-06-15 Robert Millan <rmh@aybabtu.com>
17765
17766 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17767 extent-btree which is written as big endian on disk.
17768 Reported by Alain Greppin <al@chilibi.org>.
17769
23a64d8e 177702008-06-14 Robert Millan <rmh@aybabtu.com>
17771
17772 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17773 * util/i386/pc/grub-install.in (modules): Likewise.
17774
d687651c 177752008-06-13 Pavel Roskin <proski@gnu.org>
17776
17777 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17778
dfe9ddd4 177792008-06-13 Bean <bean123ch@gmail.com>
17780
17781 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17782
17783 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17784
17785 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17786 to indicate sparse block.
17787
16ae7781 177882008-06-12 Pavel Roskin <proski@gnu.org>
17789
e6d1a308 17790 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17791 number, grub_fshelp_read() does it for us.
17792
16ae7781 17793 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17794 linear disk read with journal translation.
17795 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17796 * include/grub/fshelp.h: Declare grub_fshelp_read().
17797
40fd3a2b 177982008-06-09 Pavel Roskin <proski@gnu.org>
17799
17800 * fs/minix.c (grub_minix_mount): Handle error reading
17801 superblock.
17802
f5679726 178032008-06-08 Robert Millan <rmh@aybabtu.com>
17804
17805 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17806 don't append the RAID prefix afterwards.
17807 Reported by Clint Adams.
17808
ce525529 178092008-06-08 Robert Millan <rmh@aybabtu.com>
17810
17811 Based on description from Pavel:
17812 * kern/disk.c (grub_disk_check_range): Rename to ...
17813 (grub_disk_adjust_range): ... this. Add a comment explaining the
17814 tasks performed by this function.
17815
ad4936a0 178162008-06-08 Robert Millan <rmh@aybabtu.com>
17817
17818 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17819 `num_serial' (for consistency with other variables).
17820 (struct grub_ntfs_data): Add `uuid' member.
17821 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17822 (grub_ntfs_uuid): New function.
17823 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17824
dc20b0f9 178252008-06-07 Pavel Roskin <proski@gnu.org>
17826
17827 * util/biosdisk.c (open_device): Revert last change to the
17828 function, it broke installation. The sector needs to be
17829 different dependent on which device is opened.
17830
c5e3cfba 178312008-06-06 Robert Millan <rmh@aybabtu.com>
17832
17833 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17834 rest of GRUB, and breakage doesn't happen if its value were modified.
17835
17836 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17837 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17838 a constant (same value).
17839 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17840 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17841
26a1f8c4 178422008-06-06 Robert Millan <rmh@aybabtu.com>
17843
17844 * util/biosdisk.c (open_device): Do not modify sector offset when
17845 accessing a partition. kern/disk.c already handles this for us.
17846
25d6b327 178472008-06-06 Robert Millan <rmh@aybabtu.com>
17848
17849 * util/grub-emu.c (grub_machine_init): Move code in this function from
17850 here ...
17851 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17852 segfault in case grub_printf() is called).
17853
17854 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17855 grub_probe. Update all users not to explicitly add it again.
17856 (grub_device): New variable; contains corresponding device for grubdir.
17857 (fs_module, partmap_module, devabstraction_module): Pass
17858 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17859 every time.
17860
9ece62fb 178612008-06-05 Robert Millan <rmh@aybabtu.com>
17862
17863 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17864 is found, print it (same layout as with labels).
17865
1ad36d37 178662008-06-04 Robert Millan <rmh@aybabtu.com>
17867
17868 * util/biosdisk.c (get_drive): Rename to ...
17869 (find_grub_drive): ... this. Update all users.
17870
17871 (get_os_disk): Rename to ...
17872 (convert_system_partition_to_system_disk): ... this. Update all users.
17873
17874 (find_drive): Rename to ...
17875 (find_system_device): ... this. Update all users.
17876
e6a30859 178772008-06-04 Robert Millan <rmh@aybabtu.com>
17878
17879 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17880 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17881 (make_device_map): Likewise.
17882
00c108a4 178832008-06-01 Robert Millan <rmh@aybabtu.com>
17884
17885 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17886 before dereferencing it.
17887
17888 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17889 union with fat12/fat16-specific ones. Add some new fields, including
17890 `num_serial' for both versions.
17891 (struct grub_fat_data): Add `uuid' member.
17892 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17893 names. Initialize `data->uuid' using `num_serial'.
17894 (grub_fat_uuid): New function.
17895 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17896
17897 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17898 (grub_reiserfs_uuid): New function.
17899 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17900 member.
17901
17902 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17903 (grub_xfs_uuid): New function.
17904 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17905
1385c5bb 179062008-06-01 Robert Millan <rmh@aybabtu.com>
17907
17908 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17909 code that is backward compatible with pre-uuid search command.
17910
c682dfd7 179112008-05-31 Robert Millan <rmh@aybabtu.com>
17912
17913 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17914 floppies after everything else, to ensure floppy drive isn't accessed
17915 unnecessarily (patch from Bean).
17916
b7db5d47 179172008-05-31 Robert Millan <rmh@aybabtu.com>
17918
17919 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17920 not print device names when we were asked to set a variable.
17921
6e037aa9 179222008-05-31 Robert Millan <rmh@aybabtu.com>
17923
17924 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17925 using "cursor-on" and "cursor-off" commands (understood at least by
17926 the Open Firmware flavour on OLPC).
17927
41305bc8 179282008-05-31 Michael Gorven <michael@gorven.za.net>
17929
17930 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17931 on and off sequences.
17932
69ba137e 179332008-05-31 Robert Millan <rmh@aybabtu.com>
17934
17935 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17936 * util/update-grub.in: Likewise.
17937
520ae21b 179382008-05-30 Pavel Roskin <proski@gnu.org>
17939
17940 * util/biosdisk.c (linux_find_partition): Simplify logic and
17941 make the code more universal. Keep special processing for
17942 devfs, but use a simple rule for all other devices. If the
17943 device ends with a number, append 'p' and the partition number.
17944 Otherwise, append only the partition number.
17945
5786569b 179462008-05-30 Robert Millan <rmh@aybabtu.com>
17947
17948 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17949 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17950 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17951 the `root' parameter to Linux.
17952
51500452 179532008-05-30 Robert Millan <rmh@aybabtu.com>
17954
17955 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17956 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17957 --fs_uuid with --fs-uuid.
17958 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17959 all filesystems support them).
17960
811d3878 179612008-05-30 Robert Millan <rmh@aybabtu.com>
17962
17963 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 17964 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 17965
cab63c95 179662008-05-30 Robert Millan <rmh@aybabtu.com>
17967
17968 * util/grub.d/00_header.in: Remove obsolete comment referencing
17969 convert_system_path_to_grub_path().
17970 * util/update-grub.in: Likewise.
17971 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17972 (convert_system_path_to_grub_path): Add a warning message explaining
17973 that this function is deprecated. Rely on is_path_readable_by_grub()
17974 for the readability checks.
17975 (font_path): Use is_path_readable_by_grub() for the readability
17976 check rather than convert_system_path_to_grub_path().
17977
972e2f7a 179782008-05-30 Robert Millan <rmh@aybabtu.com>
17979
17980 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17981 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17982 converting it first.
17983 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17984 grub.cfg for access to font file, and afterwards call it again to set
17985 the root device.
17986
62191274 179872008-05-30 Robert Millan <rmh@aybabtu.com>
17988
17989 * commands/search.c (options): Add --fs_uuid option.
17990 (search_fs_uuid): New function.
17991 (grub_cmd_search): Fix --set argument passing.
17992 Use search_fs_uuid() when requested via --fs_uuid.
17993 (grub_search_init): Update help message.
17994 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17995 and redeclare it as an array of 16-bit words.
17996 (grub_ext2_uuid): New function.
17997 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17998 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17999 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
18000 (GRUB_DEVICE_BOOT_UUID): New variables.
18001 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
18002 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
18003 whenever possible.
18004 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
18005 just assume `root' variable has the right value.
18006 * util/grub.d/10_linux.in: Likewise.
18007 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
18008 via PRINT_FS_UUID.
18009 (main): Recognise `-t fs_uuid' argument.
18010
01b73ec8 180112008-05-30 Robert Millan <rmh@aybabtu.com>
18012
18013 * util/biosdisk.c (map): Redefine structure to hold information
18014 about GRUB drive name.
fe6b695a 18015 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 18016 drive names.
18017 (call_hook): Remove.
18018 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
18019 member. Assume drive has partitions.
18020 (grub_util_biosdisk_open): Access device names via `.device' struct
18021 member.
18022 (open_device): Likewise.
18023 (find_drive): Likewise.
18024 (read_device_map): Adjust map[] usage to match the new struct
18025 definition. Don't check for duplicates (still possible, but not cheap
18026 anymore).
18027 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
18028 (make_device_name): Remove assumption of BIOS-like drive names.
18029
22f16596 180302008-05-30 Pavel Roskin <proski@gnu.org>
18031
18032 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
18033 compiling execute.c doesn't need grub_script.tab.h anymore.
18034 (normal/command.c_DEPENDENCIES): Likewise.
18035 (normal/function.c_DEPENDENCIES): Likewise.
18036 * conf/i386-ieee1275.rmk: Likewise.
18037 * conf/i386-linuxbios.rmk: Likewise.
18038 * conf/i386-pc.rmk: Likewise.
18039 * conf/powerpc-ieee1275.rmk: Likewise.
18040 * conf/sparc64-ieee1275.rmk: Likewise.
18041
528ad8f2 180422008-05-29 Pavel Roskin <proski@gnu.org>
18043
d1dff95d 18044 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
18045 when scanning metadata for volume group name.
18046
528ad8f2 18047 * include/grub/script.h: Don't include grub_script.tab.h. It's
18048 a generated file, which may only be included from the files with
18049 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
18050 use union YYSTYPE, as the later allows forward declaration.
18051 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
18052
47248e08 180532008-05-29 Robert Millan <rmh@aybabtu.com>
18054
18055 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
18056 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
18057 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
18058 (grub_console_checkkey): Add grub_dprintf() call to report unknown
18059 scan codes.
18060
ee632529 180612008-05-29 Robert Millan <rmh@aybabtu.com>
18062
18063 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
18064 control key combinations.
18065
eee96e08 180662008-05-29 Robert Millan <rmh@aybabtu.com>
18067
18068 * util/powerpc/ieee1275/grub-install.in: Move from here ...
18069 * util/ieee1275/grub-install.in: ... to here.
18070 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
18071 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
18072 (grub_install_SOURCES): Likewise.
18073
da9a6a94 180742008-05-29 Robert Millan <rmh@aybabtu.com>
18075
18076 * fs/affs.c: Update copyright year.
18077 * fs/ext2.c: Likewise.
18078 * fs/fshelp.c: Likewise.
18079 * fs/hfsplus.c: Likewise.
18080 * fs/ntfs.c: Likewise.
18081 * fs/xfs.c: Likewise.
18082 * include/grub/fshelp.h: Likewise.
18083 * util/grub-mkdevicemap.c: Likewise.
18084
12e65f3a 180852008-05-28 Robert Millan <rmh@aybabtu.com>
18086
18087 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
18088 might need to be fatfs to support some firmware implementations
18089 (e.g. OFW or EFI).
18090
23023641 180912008-05-28 Robert Millan <rmh@aybabtu.com>
18092
18093 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
18094 devices.
18095 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18096 (make_device_map): Likewise.
18097
887d2619 180982008-05-20 Bean <bean123ch@gmail.com>
18099
18100 * fs/fshelp.c (grub_fshelp_map_block): New function.
18101 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
18102 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
18103
18104 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
18105 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
18106 (grub_fshelp_journal): New structure.
18107 (grub_fshelp_map_block): New function prototype.
18108 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
18109 (grub_fshelp_map_block): Likewise.
18110
18111 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
18112 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
18113 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
18114 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
18115 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
18116 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
18117 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
18118 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
18119 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
18120 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
18121 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
18122 (grub_ext2_sblock): New members for journal support.
18123 (grub_ext3_journal_header): New structure.
18124 (grub_ext3_journal_revoke_header): Likewise.
18125 (grub_ext3_journal_block_tag): Likewise.
18126 (grub_ext3_journal_sblock): Likewise.
18127 (grub_fshelp_node): New members logfile and journal.
18128 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
18129 grub_fshelp_map_block to get real block number.
18130 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
18131 number.
18132 (grub_ext2_read_inode): Likewise.
18133 (grub_ext3_get_journal): New function.
18134 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
18135 (grub_ext2_close): Release memory used by journal.
18136
18137 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
18138 (REISERFS_MAGIC_DESC_BLOCK): New macro.
18139 (grub_reiserfs_transaction_header): Renamed to
18140 grub_reiserfs_description_block, replace field data with real_blocks.
18141 (grub_reiserfs_commit_block): New structure.
18142 (grub_reiserfs_data): New member journal.
18143 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
18144 number.
18145 (grub_reiserfs_read_symlink): Likewise.
18146 (grub_reiserfs_iterate_dir): Likewise.
18147 (grub_reiserfs_open): Likewise.
18148 (grub_reiserfs_read): Likewise.
18149 (grub_reiserfs_get_journal): New function.
18150 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
18151 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
18152 using grub_reiserfs_get_journal.
18153 (grub_reiserfs_close): Release memory used by journal.
18154
18155 * fs/affs.c (grub_affs_read_block): Change block type to
18156 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
18157
18158 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
18159
18160 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
18161
18162 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
18163
18164 * fs/udf.c (grub_udf_read_block): Change block type to
18165 grub_disk_addr_t. Use type cast to avoid warning.
18166
18167 * fs/xfs.c (grub_xfs_read_block): Likewise.
18168
b7c6bed5 181692008-05-16 Christian Franke <franke@computer.org>
18170
18171 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
18172 to ensure that break with ESC will always work.
18173 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
18174 Remove ESC from keyboard queue.
18175
eedf167f 181762008-05-16 Christian Franke <franke@computer.org>
18177
18178 * util/biosdisk.c: [__CYGWIN__] Add includes.
18179 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
18180 (get_os_disk): Move variable declarations to OS specific
18181 parts to avoid warning.
18182 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
18183 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
18184 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
18185 Cygwin.
18186 * util/getroot.c: [__CYGWIN__] Add includes.
18187 (strip_extra_slashes): Fix "/" case.
18188 [__CYGWIN__] (get_win32_path): New function.
18189 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
18190 [__CYGWIN__] (find_root_device): Disable.
18191 [__CYGWIN__] (get_bootsec_serial): New function.
18192 [__CYGWIN__] (find_cygwin_root_device): Likewise.
18193 [__linux__] (grub_guess_root_device): Add early returns to simplify
18194 structure.
18195 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
18196 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
18197 check for Linux only.
18198
a079699e 181992008-05-15 Bean <bean123ch@gmail.com>
18200
18201 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
18202 keyboard hang problem in apple's intel mac.
18203
1cf4059a 182042008-05-09 Robert Millan <rmh@aybabtu.com>
18205
18206 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
18207 devices.
18208 * util/grub-mkdevicemap.c (get_virtio_disk_name)
18209 (make_device_map): Likewise.
18210 Reported by Aurelien Jarno <aurel32@debian.org>
18211
ed759390 182122008-05-07 Ian Campbell <ijc@hellion.org.uk>
18213
18214 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
18215 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
18216 (make_device_map): Output entries for xvd type disks.
18217
b56c4eaa 182182008-05-07 Robert Millan <rmh@aybabtu.com>
18219
18220 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
18221 devices.
18222 * util/grub-mkdevicemap.c (get_cciss_disk_name)
18223 (make_device_map): Likewise.
18224 Reported by Roland Dreier <rdreier@cisco.com>
18225
7f8866ed 182262008-05-07 Robert Millan <rmh@aybabtu.com>
18227
18228 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
18229 grub_strstr() call. Correct a few mistakes in failure path handling.
18230
b0346e0f 182312008-05-06 Robert Millan <rmh@aybabtu.com>
18232
18233 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
18234 Do not print a trailing slash (therefore, the root directory is an
18235 empty string).
18236 (convert_system_path_to_grub_path): Do not remove trailing slash
18237 from make_system_path_relative_to_its_root() output.
18238
18239 * util/i386/pc/grub-install.in: Add trailing slash to output from
18240 make_system_path_relative_to_its_root().
18241
6cf12cbd 182422008-05-06 Robert Millan <rmh@aybabtu.com>
18243
18244 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
18245 ensures that output lines aren't intermangled with those sent to
18246 stderr (via grub_util_info()).
18247 * util/grub-probe.c (grub_refresh): Likewise.
18248 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
18249
0fbb3117 182502008-05-05 Christian Franke <franke@computer.org>
18251
18252 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
18253 Add Cygwin device names.
18254 (get_ide_disk_name) [__CYGWIN__]: Likewise.
18255 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
18256 (check_device): Return error instead of success on empty name.
18257 (make_device_map): Move label inside linux specific code to
18258 prevent compiler warning.
18259
8124cdb7 182602008-04-30 Robert Millan <rmh@aybabtu.com>
18261
18262 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
18263 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
18264 first boot option.
18265 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
18266
094c01d0 182672008-04-29 Robert Millan <rmh@aybabtu.com>
18268
18269 * docs/grub.cfg: New file (example GRUB configuration).
18270
f4b1fc02 182712008-04-26 Robert Millan <rmh@aybabtu.com>
18272
329ce2a5 18273 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
18274 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
18275 and `disk/ieee1275/nand.c'.
f4b1fc02 18276
25f16ec1 182772008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 18278
25f16ec1 18279 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
18280 i386-linuxbios.
18281
18282 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
18283 change the buffer size to 4096 for cdrom device.
18284
18285 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
18286 and nand.mod.
18287 (_linux_mod_SOURCES): New variable.
18288 (_linux_mod_CFLAGS): Likewise.
18289 (_linux_mod_LDFLAGS): Likewise.
18290 (linux_mod_SOURCES): Likewise.
18291 (linux_mod_CFLAGS): Likewise.
18292 (linux_mod_LDFLAGS): Likewise.
18293 (nand_mod_SOURCES): Likewise.
18294 (nand_mod_CFLAGS): Likewise.
18295 (nand_mod_LDFLAGS): Likewise.
18296
18297 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
18298 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
18299 type property. (nand device in olpc don't have this property)
18300
18301 * include/grub/disk.h (grub_disk_dev_id): New macro
18302 GRUB_DISK_DEVICE_NAND_ID.
18303
18304 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
18305 function prototype.
18306 (grub_rescue_cmd_initrd): Likewise.
18307
18308 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
18309 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
18310 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 18311
25f16ec1 18312 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
18313 GRUB_MACHINE_IEEE1275 is defined.
18314
18315 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
18316 Use NESTED_FUNC_ATTR attribute on the hook parameter.
18317
18318 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
18319 on nested function heap_init.
18320 (grub_upper_mem): New variable for i386-ieee1275.
18321 (grub_get_extended_memory): New function for i386-ieee1275.
18322 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
18323
18324 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
18325 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
18326 property.
f19dbdb7 18327
25f16ec1 18328 * loader/i386/ieee1275/linux.c: New file.
18329
18330 * loader/i386/ieee1275/linux_normal.c: New file.
18331
18332 * disk/ieee1275/nand.c: New file.
18333
e89d61e9 183342008-04-18 Thomas Schwinge <tschwinge@gnu.org>
18335
18336 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
18337 value.
18338 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
18339
602566f6 183402008-04-18 Robert Millan <rmh@aybabtu.com>
18341
18342 Restructures early code path on ieee1275 to unify grub_main() as
18343 the first C function that is executed in every platform.
18344
18345 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
18346 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
18347 cmain().
18348 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
18349 * kern/ieee1275/cmain.c (cmain): Rename to ...
18350 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
18351 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
18352 at the beginning.
18353
57490c2b 183542008-04-18 Robert Millan <rmh@aybabtu.com>
18355
18356 * util/update-grub.in: Fix syntax error when setting
18357 `GRUB_PRELOAD_MODULES'.
18358 Reported by Stephane Chazelas <stephane@artesyncp.com>
18359
1977517d 183602008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
18361
18362 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
18363 section into account, newer toolchains generate unique build ids
18364 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 18365 we want build ids to be preserved
1977517d 18366 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
18367 far from other sections don't cause the raw binary images grow
18368 size
18369
bfb1f1a2 183702008-04-15 Robert Millan <rmh@aybabtu.com>
18371
18372 * disk/lvm.c: Update copyright year.
18373 * kern/misc.c: Likewise.
18374
01979850 183752008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18376
18377 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 18378 there is no memory left for physical volume name.
01979850 18379
0a1150e2 183802008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18381
18382 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18383 volume name mapping to support bigger than 9 character names properly.
18384
82ead3fe 183852008-04-13 Robert Millan <rmh@aybabtu.com>
18386
18387 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18388 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18389
e54a72f5 183902008-04-13 Christian Franke <franke@computer.org>
18391
18392 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18393 to create a floppy emulation boot CD when non emulation mode
18394 does not work.
18395 Enable Joliet CD filesystem extension.
18396
9fe86034 183972008-04-13 Robert Millan <rmh@aybabtu.com>
18398
18399 * kern/misc.c (grub_strncat): Fix off-by-one error.
18400 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18401
18402 * kern/env.c (grub_env_context_close): Clear current context, not
18403 previous one.
18404 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18405
18406 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18407
7ceeee39 184082008-04-13 Robert Millan <rmh@aybabtu.com>
18409
18410 Improve robustness when handling LVM.
18411
18412 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 18413 (and leave `*p' unmodified).
7ceeee39 18414 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18415 through it.
18416 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18417 iterating through it.
18418 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18419 through it.
fe6b695a 18420 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 18421 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18422 Don't assume `vg->pvs != NULL' when iterating through it.
18423
58cd3d85 184242008-04-13 Robert Millan <rmh@aybabtu.com>
18425
18426 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18427 * genmk.rb (partmap): New variable.
18428 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18429 (#{partmap}): New target rule.
18430 * genpartmaplist.sh: New file.
18431 * Makefile.in (pkglib_DATA): Add partmap.lst.
18432 (partmap.lst): New target rule.
18433 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18434 modules (including all partition maps), instead of preloading them.
18435
78b51059 184362007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18437
18438 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18439 `linux-boot-prober' (if installed) to detect other operating
18440 systems which are installed on the computer and add them to
18441 the boot menu.
18442 * conf/common.rmk: Build and install 30_os-prober.
18443
a91627b4 184442008-04-12 Robert Millan <rmh@aybabtu.com>
18445
18446 * kern/powerpc/ieee1275/init.c: Move from here ...
18447 * kern/ieee1275/init.c: ... to here. Update all users.
18448
18449 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18450 * kern/ieee1275/cmain.c: ... to here. Update all users.
18451
18452 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18453 * kern/ieee1275/openfw.c: ... to here. Update all users.
18454
18455 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18456 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18457
322562ea 184582008-04-10 Pavel Roskin <proski@gnu.org>
18459
18460 * configure.ac: Always use "_cv_" in cache variables for
18461 compatibility with Autoconf 2.62.
18462
a02a73c5 184632008-04-07 Robert Millan <rmh@aybabtu.com>
18464
18465 Revert grub/machine/init.h addition by Pavel (since it breaks on
18466 i386-ieee1275 and others):
18467 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18468 * util/powerpc/ieee1275/misc.c: Likewise.
18469
25c024b1 184702008-04-07 Robert Millan <rmh@aybabtu.com>
18471
18472 * util/grub-probe.c (probe): Improve error message.
18473
3cbd2f98 184742008-04-07 Robert Millan <rmh@aybabtu.com>
18475
18476 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18477 (this prevents the presence of a bogus entry from ruining the whole
18478 thing).
18479
87a297bf 184802008-04-06 Pavel Roskin <proski@gnu.org>
18481
36747a62 18482 * util/biosdisk.c: Include grub/util/biosdisk.h.
18483 * util/grub-fstest.c (execute_command): Make static.
18484 * util/grub-mkdevicemap.c (check_device): Likewise.
18485 * util/i386/pc/misc.c: Include grub/machine/init.h.
18486 * util/powerpc/ieee1275/misc.c: Likewise.
18487 * util/lvm.c: Include grub/util/lvm.h.
18488 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18489 grub/cache.h.
18490 * util/raid.c: Include grub/util/raid.h.
18491 (grub_util_getdiskname): Make static.
18492
87a297bf 18493 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18494 grub_hostfs_fini(), as they are called from grub_init_all() and
18495 grub_fini_all() respectively. This fixes an infinite loop in
18496 grub-fstest due to double registration of hostfs.
18497 Reported by Christian Franke <Christian.Franke@t-online.de>
18498
f6ce7629 184992008-04-05 Pavel Roskin <proski@gnu.org>
18500
18501 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18502 all 8 functions. Otherwise, probe function 0 only.
18503
070e49e4 185042008-04-04 Pavel Roskin <proski@gnu.org>
18505
8b088a4c 18506 * commands/lspci.c (grub_lspci_iter): Print the bus number
18507 correctly.
18508
4f657021 18509 * commands/lspci.c (grub_pci_classes): Fix typos.
18510 (grub_lspci_iter): Don't print func twice. Print vendor ID
18511 before device ID, as it's normally done.
18512
070e49e4 18513 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18514 Fix signedness warnings.
18515 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18516 Likewise.
18517 * util/ieee1275/get_disk_name.c: Include config.h so that
18518 _GNU_SOURCE is defined and getline() is declared. Mark an
18519 unused argument as such. Fix a signedness warning.
18520
ba7328dc 185212008-04-02 Pavel Roskin <proski@gnu.org>
18522
26887f22 18523 * genkernsyms.sh.in: Use more robust assignments for CC and
18524 srcdir. Quote srcdir.
18525 * gensymlist.sh.in: Likewise. Assert at the compile time that
18526 the symbol table is not empty.
18527
ba7328dc 18528 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18529 * fs/cpio.c (grub_cpio_read): Likewise.
18530
0f582c6b 185312008-04-01 Pavel Roskin <proski@gnu.org>
18532
4b6e1995 18533 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18534 * disk/host.c (grub_host_open): Likewise.
18535 * disk/loopback.c (grub_loopback_open): Likewise.
18536 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18537 disk->id as in disk/host.c, not a multi-character constant.
18538
828a2768 18539 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18540 later is obsolete, potentially dangerous and sets a bad example.
18541 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18542 * util/misc.c (grub_util_get_image_size): Likewise.
18543
2bb4fb47 18544 * disk/loopback.c (options): Improve help for "--partitions".
18545
0f582c6b 18546 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18547 options to align them with the short options, e.g. "echo -e".
18548
a33224e0 185492008-03-31 Bean <bean123ch@gmail.com>
18550
18551 * video/reader/png.c (grub_png_data): New member is_16bit and
18552 image_data.
18553 (grub_png_decode_image_header): Detect 16 bit png image.
18554 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18555 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18556 (grub_video_reader_png): Release memory occupied by image_data.
18557
18558 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18559 4096 bytes.
18560 (grub_nfs_mount): Skip the test for sector per cluster.
18561
18562 * include/grub/ntfs.h (MAX_SPC): Removed.
18563
86cb4f54 185642008-03-31 Bean <bean123ch@gmail.com>
18565
18566 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18567 (grub_probe_SOURCES): Add fs/afs.c.
18568 (grub_fstest_SOURCES): Likewise.
18569 (afs_mod_SOURCES): New variable.
18570 (afs_mod_CFLAGS): Likewise.
18571 (afs_mod_LDFLAGS): Likewise.
18572
18573 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18574 (grub_emu_SOURCES): Likewise.
18575
18576 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18577
18578 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18579
18580 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18581
18582 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18583
18584 * fs/afs.c: New file.
18585
17c74c21 185862008-03-30 Pavel Roskin <proski@gnu.org>
18587
4cb68e89 18588 * disk/host.c: Include grub/misc.h to fix a warning.
18589 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18590 warnings about implicit declarations.
18591
8790bb04 18592 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18593 variable.
18594 * include/grub/i386/loader.h: Change declaration of
18595 grub_linux_boot() to match what grub_loader_set() expects.
18596 * util/getroot.c (grub_guess_root_device): Return const char* to
18597 fix a warning.
18598 * util/grub-probe.c (probe): Fix a warning about uninitialized
18599 abstraction_name variable.
18600 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18601 second argument as unused to fix a warning.
18602
9a3f3296 18603 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18604 missing grub_error() call.
18605
0ecef90d 18606 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18607 2.60 and newer uses it to define datadir.
18608
0bf6d401 18609 * commands/sleep.c: Fix warning about implicit declaration.
18610 * disk/memdisk.c: Likewise.
18611 * loader/aout.c: Likewise.
18612 * loader/i386/bsd_normal.c: Likewise.
18613 * util/grub-probe.c: Likewise.
18614
7cdacf97 18615 * commands/i386/cpuid.c (has_longmode): Make static.
18616 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18617 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18618
17c74c21 18619 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18620 GDT. This is more robust, as %ds can change.
18621 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18622 calling real_to_prot().
18623 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18624
80a3e68b 186252008-03-28 Pavel Roskin <proski@gnu.org>
18626
18627 * kern/i386/pc/startup.S: Assert that uncompressed functions
18628 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18629 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18630 code, as they push parts of the code (error handlers) beyond
18631 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18632 code as correctness and size.
18633
77bcd272 186342008-03-28 Pavel Roskin <proski@gnu.org>
18635
18636 * kern/i386/pc/startup.S
18637 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18638 data block address to the real mode, keep offset minimal. This
18639 works around a bug in AWARD BIOS on old Athlon systems, which
18640 makes CD detection hang.
18641
c5dfd43b 186422008-03-26 Pavel Roskin <proski@gnu.org>
18643
18644 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18645 const.
18646 * include/grub/normal.h: Add grub_parse_color_name_pair()
18647 declaration.
18648
bf962df2 186492008-03-24 Bean <bean123ch@gmail.com>
18650
18651 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18652 (cd_count): Removed.
18653 (cd_drive): New variable.
18654 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18655 (grub_biosdisk_call_hook): Likewise.
18656 (grub_biosdisk_iterate): Change cdrom detection method.
18657 (grub_biosdisk_open): Replace cd_start with cd_drive.
18658 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18659 detect cdrom device.
18660
18661 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18662 Removed.
18663 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18664 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18665 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18666 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18667 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18668 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18669 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18670 (grub_biosdisk_cdrp): New structure.
18671 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18672
18673 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18674
18675 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18676 device.
18677
18678 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18679 New function.
18680
68e7fc7a 186812008-03-20 Robert Millan <rmh@aybabtu.com>
18682
18683 Remove 2 TiB limit in ata.mod.
18684 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18685 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18686 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18687 grub_uint64_t instead of grub_uint32_t.
18688
38ad2cf5 186892008-03-05 Bean <bean123ch@gmail.com>
18690
18691 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18692 (grub_multiboot): Set boot device.
18693
18694 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18695
2b89344e 186962008-03-02 Bean <bean123ch@gmail.com>
18697
18698 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18699 symlink_buffer.
18700
87a95d1f 187012008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18702
18703 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18704 texinfo.tex.
18705
18706 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18707 modified.
18708
18709 * docs/fdl.texi: New file.
f19dbdb7 18710
87a95d1f 18711 * docs/mdate-sh: New file. Copied from gnulib.
18712 * docs/texinfo.tex: Likewise.
18713
18714 * config.guess: Updated from gnulib.
18715 * install-sh: Likewise.
18716
7dc15d8e 187172008-02-28 Robert Millan <rmh@aybabtu.com>
18718
18719 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18720 (aout_mod_SOURCES): New variable.
18721 (aout_mod_CFLAGS): Likewise.
18722 (aout_mod_LDFLAGS): Likewise.
18723
18724 * conf/i386-ieee1275.rmk: Likewise.
18725
b00ab696 187262008-02-28 Robert Millan <rmh@aybabtu.com>
18727
18728 * util/update-grub.in: Reorganise terminal validity check. Accept
18729 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18730 Based on suggestion by Franklin PIAT.
18731
79ca2d78 187322008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18733
18734 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18735 function.
18736 * util/getroot.c (grub_util_check_block_device): New function that
18737 returns the given argument if it is a block device and returns NULL else.
18738 * util/grub-probe.c (argument_is_device): New variable.
18739 (probe): Promote device_name from a variable to an argument. Receive
18740 device_name from grub_util_check_block_device() if path is NULL and from
18741 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 18742 (options): Introduce new parameter '-d, --device'.
79ca2d78 18743 (main): Add description of the new parameter to the help screen.
18744 Rename path variable to argument. Set argument_is_device if the '-d'
18745 option is given. Pass argument to probe() depending on
18746 argument_is_device.
18747
0d16e571 187482008-02-24 Bean <bean123ch@gmail.com>
18749
18750 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18751 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18752 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18753 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18754 (GRUB_ISO9660_VOLDESC_END): Likewise.
18755 (grub_iso9660_primary_voldesc): New member escape.
18756 (grub_iso9660_data): New member joliet.
18757 (grub_iso9660_convert_string): New function.
18758 (grub_iso9660_mount): Detect joliet extension.
18759 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18760 (grub_iso9660_iso9660_label): Likewise.
18761
18762 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18763 (grub_setup_SOURCES): Add fs/udf.c.
18764 (grub_fstest_SOURCES): Likewise.
18765 (udf_mod_SOURCES): New variable.
18766 (udf_mod_CFLAGS): Likewise.
18767 (udf_mod_LDFLAGS): Likewise.
18768
18769 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18770 (grub_emu_SOURCES): Likewise.
18771
18772 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18773
18774 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18775
18776 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18777
18778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18779
18780 * fs/udf.c: New file.
18781
8a594a17 187822008-02-24 Robert Millan <rmh@aybabtu.com>
18783
18784 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18785 (normal/lexer.c_DEPENDENCIES): New variables.
18786 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18787 (normal/lexer.c_DEPENDENCIES): Likewise.
18788 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18789 (normal/lexer.c_DEPENDENCIES): Likewise.
18790 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18791 (normal/lexer.c_DEPENDENCIES): Likewise.
18792 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18793 (normal/lexer.c_DEPENDENCIES): Likewise.
18794 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18795 (normal/lexer.c_DEPENDENCIES): Likewise.
18796
2dc33c03 187972008-02-23 Robert Millan <rmh@aybabtu.com>
18798
18799 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18800 since they were intended to be in hex. This didn't break previously
18801 because of a bug in gpt_partition_map_iterate() (see below).
18802
18803 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18804 when checking the validity of GPT header.
18805 Remove `partno', since it always provides the same information as `i'.
18806
f6f4cfb0 188072008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18808
18809 * include/grub/efi/time.h: Fix a wrong comment.
18810
79ff665f 188112008-02-19 Pavel Roskin <proski@gnu.org>
18812
18813 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18814 message.
18815
d38e24c2 188162008-02-19 Bean <bean123ch@gmail.com>
18817
18818 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18819 (aout_mod_SOURCES): New variable.
18820 (aout_mod_CFLAGS): Likewise.
18821 (aout_mod_LDFLAGS): Likewise.
18822 (_bsd_mod_SOURCES): New variable.
18823 (_bsd_mod_CFLAGS): Likewise.
18824 (_bsd_mod_LDFLAGS): Likewise.
18825 (bsd_mod_SOURCES): New variable.
18826 (bsd_mod_CFLAGS): Likewise.
18827 (bsd_mod_LDFLAGS): Likewise.
18828
18829 * include/grub/aout.h: New file.
18830
18831 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18832
18833 * include/grub/i386/bsd.h: New file.
18834
18835 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18836 to make it public.
18837
18838 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18839 function is called, so that it's possible to change it inside the hook.
18840 (grub_elf64_load): Likewise.
18841 (grub_elf_file): Don't close the file if elf header is not found.
18842 (grub_elf_close): Close the file if grub_elf_file fails (The new
18843 grub_elf_file won't close it).
18844 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18845 (grub_elf64_size): Likewise.
18846
18847 * kern/i386/loader.S (grub_unix_real_boot): New function.
18848
18849 * loader/aout.c: New file.
18850
18851 * loader/i386/bsd.c: New file.
18852
18853 * loader/i386/bsd_normal.c: New file.
18854
18855 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18856
18857 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 18858 can test other formats.
d38e24c2 18859
b93bdb0f 188602008-02-19 Robert Millan <rmh@aybabtu.com>
18861
18862 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18863 (grub_gpt_partition_type_empty): Redefine with macro from
18864 `<grub/gpt_partition.h>'.
18865 (gpt_partition_map_iterate): Adjust partition type comparison.
18866
18867 Export `entry' as partmap-specific `part.data' struct.
18868 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18869
18870 * include/grub/gpt_partition.h (grub_gpt_header)
18871 (grub_gpt_partentry): ... to here (new file).
18872
18873 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18874
18875 (grub_gpt_partition_type_bios_boot): New const variable, defined
18876 with macro from `<grub/gpt_partition.h>'.
18877
18878 (setup): Replace `first_start' with `embed_region', which keeps
18879 track of the embed region (and is partmap-agnostic).
18880
18881 Replace find_first_partition_start() with find_usable_region(),
18882 which finds a usable region for embedding using partmap-specific
18883 knowledge (supports PC/MSDOS and GPT).
18884
18885 Fix all assumptions that the embed region start at sector 1, using
18886 `embed_region.start' from now on. Similarly, use `embed_region.end'
18887 rather than `first_start' to calculate available size.
18888
18889 In grub_util_info() message, replace "into after the MBR" with an
18890 indication of the specific sector our embed region starts at.
18891
66cb40f6 188922008-02-19 Robert Millan <rmh@aybabtu.com>
18893
18894 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18895 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18896 `commands/reboot.c'.
18897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18898 (halt_mod_SOURCES): Likewise.
18899 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18900 (halt_mod_SOURCES): Likewise.
18901
b7202015 189022008-02-17 Christian Franke <franke@computer.org>
18903
18904 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18905
32b0fc49 189062008-02-17 Robert Millan <rmh@aybabtu.com>
18907
18908 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18909 set `first_start' to 0 for non-PC/MSDOS partition maps.
18910
aca63502 189112008-02-16 Robert Millan <rmh@aybabtu.com>
18912
18913 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18914 do not assume partition map is PC/MSDOS before performing checks that
18915 are specific to that layout.
18916
0de8be86 189172008-02-13 Robert Millan <rmh@aybabtu.com>
18918
18919 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18920 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18921 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18922
c3db8364 189232008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18924
18925 * configure.ac: Only a cosmetic change on the handling of
18926 -fno-stack-protector.
18927
f714229e 189282008-02-12 Alexandre Boeglin <alex@boeglin.org>
18929
c3db8364 18930 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18931 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18932 reboot.c.
f714229e 18933 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18934 (halt_mod_SOURCES): New variable.
18935 (halt_mod_CFLAGS): Likewise.
18936 (halt_mod_LDFLAGS): Likewise.
18937 (reboot_mod_SOURCES): Likewise.
18938 (reboot_mod_CFLAGS): Likewise.
18939 (reboot_mod_LDFLAGS): Likewise.
18940
c3db8364 18941 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18942 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18943 reboot.c.
f714229e 18944 (halt_mod_SOURCES): Likewise.
18945 (reboot_mod_SOURCES): Likewise.
18946
c3db8364 18947 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18948 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 18949 (reboot_mod_SOURCES): Likewise.
18950
18951 * commands/i386/pc/reboot.c: merge this file ...
18952
18953 * commands/ieee1275/reboot.c: ... and this file ...
18954
18955 * commands/reboot.c: ... to this file.
c3db8364 18956 Add some precompiler directive to include the correct header for
18957 each machine.
f714229e 18958
18959 * commands/ieee1275/halt.c: move this file ...
18960
18961 * commands/halt.c: ... to here.
c3db8364 18962 Add some precompiler directive to include the correct header for
18963 each machine.
f714229e 18964
18965 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18966 (grub_halt): Likewise.
18967
18968 * kern/efi/efi.c (grub_reboot): New function.
18969 (grub_halt): Likewise.
18970
c74493e0 189712008-02-12 Robert Millan <rmh@aybabtu.com>
18972
18973 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18974 /dev (like it is done for /dev/mapper). This doesn't provide support
18975 for EVMS, but at least it is now easy to identify the problem when it
18976 arises.
18977
d0db4b04 189782008-02-11 Robert Millan <rmh@aybabtu.com>
18979
18980 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18981 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18982 comparing it with -1, not 0.
18983
bf748642 189842008-02-10 Robert Millan <rmh@aybabtu.com>
18985
18986 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18987 `disk/lvm.c'.
18988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18989 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18990
18991 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18992 `disk/lvm.c' to the end of the list.
18993 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18994 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18995
b5db202a 189962008-02-10 Robert Millan <rmh@aybabtu.com>
18997
18998 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18999 grub_print_error() instead. This will let user know why we're entering
19000 rescue mode.
19001 Based on suggestions from Sam Morris.
19002
83abee31 190032008-02-10 Alexandre Boeglin <alex@boeglin.org>
19004
19005 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
19006 on remaining N args, instead of "--" arg N times.
19007
78d5a08b 190082008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
19009
19010 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
19011 (fill_with_default_glyph): Changed to use unknown_glyph for fill
19012 pattern for unknown glyphs.
19013
68807e5f 190142008-02-09 Robert Millan <rmh@aybabtu.com>
19015
19016 * configure.ac: Probe for `help2man'.
19017 * Makefile.in (builddir): New variable.
19018 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
19019 or otherwise add a few flags/options to it.
19020 (install-local): For every executable utility or script that is
19021 installed, invoke $(HELP2MAN) to install a manpage based on --help
19022 output.
19023
19024 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
19025 that it doesn't prevent --help from working in build tree.
19026
19027 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
19028 with `bug-grub@gnu.org'.
19029 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
19030 * util/update-grub.in (usage): New function.
19031 Implement proper argument check, with support for --help and --version
19032 (as well as existing -y).
19033
190342008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 19035
19036 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
19037 avoid overwriting previous output.
19038 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
19039
c1962162 190402008-02-09 Robert Millan <rmh@aybabtu.com>
19041
19042 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
19043 drawing the menu.
19044
3dac2e3f 190452008-02-09 Robert Millan <rmh@aybabtu.com>
19046
19047 * commands/sleep.c: New file.
19048 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
19049 (sleep_mod_SOURCES): New variable.
19050 (sleep_mod_CFLAGS): Likewise.
19051 (sleep_mod_LDFLAGS): Likewise.
19052
7a634e08 190532008-02-09 Robert Millan <rmh@aybabtu.com>
19054
19055 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
19056 situations in which we can deduce the RAID size and the superblock
19057 doesn't match it.
19058
b92f0c18 190592008-02-09 Robert Millan <rmh@aybabtu.com>
19060
19061 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
19062 and return a grub_diskmemberlist_t composed of LVM physical volumes.
19063 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
19064
19065 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
19066 and return a grub_diskmemberlist_t composed of physical array members.
19067 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
19068
19069 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
19070 prototype.
19071 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
19072 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
19073 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
19074
19075 * util/grub-probe.c (probe): Move partmap probing code from here ...
19076 (probe_partmap): ... to here.
19077 (probe): Use probe_partmap() once for the disk we're probing, and
19078 additionally, when such disk contains a memberlist() struct member,
19079 once for each disk that is contained in the structure returned by
19080 memberlist().
19081
91a4bf68 190822008-02-09 Robert Millan <rmh@aybabtu.com>
19083
19084 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
19085 environment variable to 'all' in order to obtain debug output from
19086 non-util/ code.
19087 * util/i386/pc/grub-setup.c (main): Likewise.
19088
a96f9caa 190892008-02-08 Robert Millan <rmh@aybabtu.com>
19090
19091 * disk/raid.c (grub_raid_scan_device): Check for
19092 `array->device[sb.this_disk.number]' rather than for
19093 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 19094 guaranteed to be accessible.
a96f9caa 19095
b37a9222 190962008-02-08 Robert Millan <rmh@aybabtu.com>
19097
19098 * disk/raid.c: Update copyright.
19099 * fs/cpio.c: Likewise.
19100 * include/grub/raid.h: Likewise.
19101 * loader/i386/pc/multiboot.c: Likewise.
19102 * util/hostfs.c: Likewise.
19103
5626aee1 191042008-02-08 Robert Millan <rmh@aybabtu.com>
19105
19106 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
19107 to a grub_disk_t array.
19108 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
19109 `device[x]'.
19110 (grub_raid_scan_device): Replace `device[x].name' accesses with
19111 `device[x]->name'. Simplify initialization of `array->device[x]'.
19112
554f0187 191132008-02-08 Robert Millan <rmh@aybabtu.com>
19114
19115 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
19116 grub_dprintf() calls.
19117 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
19118 error message.
19119
1ec8425d 191202008-02-07 Christian Franke <franke@computer.org>
19121
19122 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
19123 instead of fseek and ftell to support large files.
19124 (grub_hostfs_read): Likewise.
19125
f2156fda 191262008-02-07 Robert Millan <rmh@aybabtu.com>
19127
19128 Patch from Jeroen Dekkers.
19129 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 19130 failure, since successfully reading all array members might not be
f2156fda 19131 required.
19132
9216e0e7 191332008-02-06 Robert Millan <rmh@aybabtu.com>
19134
19135 * util/grub-probe.c (probe): Simplify partmap probing (with the
19136 assumption that the first word up to the underscore equals to
19137 the module name).
19138
b0dfd29a 191392008-02-06 Christian Franke <franke@computer.org>
19140
19141 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
19142 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
19143 last block of a cpio or tar stream.
19144 Check for "TRAILER!!!" instead of any empty data
19145 block to detect last block of a cpio stream.
19146 (grub_cpio_dir): Fix constness of variable np.
19147 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
19148 cpio or tar trailer is detected. This fixes a crash
19149 on open of a non existing file.
19150
c32865bf 191512008-02-05 Bean <bean123ch@gmail.com>
19152
19153 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
19154 address of entry.
19155 (grub_multiboot_load_elf64): Likewise.
19156 (grub_multiboot): Initialize mbi structure.
19157
19158 * util/grub-fstest.c: Don't include unused header file script.h.
19159
fe6b695a 19160 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 19161 of file.
19162 (grub_fstest_SOURCES): Likewise.
19163
409480b7 191642008-02-05 Robert Millan <rmh@aybabtu.com>
19165
19166 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
19167 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
19168 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
19169 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
19170
19171 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
19172 (translation_table): Replace hardcoded values with macros
19173 provided by `<grub/term.h>'.
19174
19175 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
19176 (keyboard_map): Correct/add a few values, with macros provided
19177 by `<grub/term.h>'.
19178 (keyboard_map_shift): Zero values that don't differ from their
19179 `keyboard_map' equivalents.
19180 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
19181 Discard the second scan code that is always sent by Caps lock.
19182 Only use `keyboard_map_shift' when it provides a non-zero value,
19183 otherwise fallback to `keyboard_map'.
19184
99fadbaa 191852008-02-04 Bean <bean123ch@gmail.com>
19186
19187 * Makefile.in (enable_grub_fstest): New variable.
19188
19189 * conf/common.rmk (grub_fstest_init.lst): New rule.
19190 (grub_fstest_init.h): Likewise.
19191 (grub_fstest_init.c): Likewise.
19192 (util/grub-fstest.c_DEPENDENCIES): New variable.
19193 (grub_fstest_SOURCES): Likewise.
19194
19195 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
19196
19197 * util/grub-fstest.c: New file.
19198
bf567c50 191992008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19200
19201 Make grub-setup handle a separate root device.
f19dbdb7 19202
bf567c50 19203 * util/i386/pc/grub-setup.c (setup): Always open the root device,
19204 so that the root device can be compared with the destination
19205 device.
19206 When embedding the core image, if the root and destination devices
19207 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
19208 0xFF.
19209 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 19210
9be6b98b 192112008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19212
19213 Add support for having a grub directory in a different drive. This
19214 is still only the data handling part.
f19dbdb7 19215
9be6b98b 19216 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
19217 (codestart): Save %dh in GRUB_ROOT_DRIVE.
19218 (grub_root_drive): New variable.
19219
19220 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
19221 instead of GRUB_BOOT_DRIVE to construct a device name. Set
19222 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
19223 as it was.
19224
19225 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
19226
19227 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
19228 macro.
19229 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
19230
19231 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
19232 is bogus, because PXE booting does not specify any drive
19233 correctly.
19234
19235 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
19236 am not sure if this is really correct.
19237
19238 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
19239 is always identical to the boot drive when booting from a CD.
19240
19241 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
19242 longer.
19243 (root_drive): New variable.
19244 (real_start): Unconditionally set %dh to ROOT_DRIVE.
19245 (setup_sectors): Push %dx right after popping it, because %dh will
19246 be modified later.
19247 (copy_buffer): Restore %dx.
19248
e0ca0677 192492008-02-03 Robert Millan <rmh@aybabtu.com>
19250
19251 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
19252 use `cdboot.img' for cdrom images.
19253
3b3f6629 192542008-02-03 Robert Millan <rmh@aybabtu.com>
19255
19256 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
19257 only setup gfxterm when `font' command has succeeded.
19258
d42b3672 192592008-02-03 Robert Millan <rmh@aybabtu.com>
19260
19261 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
19262 (grub_rescue_cmd_multiboot_loader)
19263 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
19264
fa370ea6 192652008-02-03 Pavel Roskin <proski@gnu.org>
19266
e0c5dacb 19267 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 19268 %edx and %esi from stack only after grub_gate_a20() is called.
19269 grub_gate_a20() clobbers %edx.
19270
f2a76e1d 192712008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19272
19273 * configure.ac (AC_INIT): Bumped to 1.96.
19274
19275 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
19276 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
19277 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
19278 video/readers/png.c.
19279
90fd32d1 192802008-02-03 Bean <bean123ch@gmail.com>
9be665dd 19281
19282 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
19283 (cdboot_img_SOURCES): New variable.
19284 (cdboot_img_ASFLAGS): New variable.
19285 (cdboot_img_LDFLAGS): New variable.
19286
19287 * boot/i386/pc/cdboot.S: New file.
19288
19289 * disk/i386/pc/biosdisk.c (cd_start): New variable.
19290 (cd_count): Likewise.
19291 (grub_biosdisk_get_drive): Add support for cd device.
19292 (grub_biosdisk_call_hook): Likewise.
19293 (grub_biosdisk_iterate): Likewise.
19294 (grub_biosdisk_open): Likewise.
19295 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
19296 (grub_biosdisk_rw): Support reading from cd device.
19297 (GRUB_MOD_INIT): Iterate cd devices.
19298
19299 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
19300 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
19301 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
19302
19303 * kern/i386/pc/init.c (make_install_device): Check for cd device.
19304
4020aa53 193052008-02-02 Robert Millan <rmh@aybabtu.com>
19306
19307 * commands/read.c: New file.
19308 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
19309 (read_mod_SOURCES): New variable.
19310 (read_mod_CFLAGS): Likewise.
19311 (read_mod_LDFLAGS): Likewise.
19312
e03a1132 193132008-02-02 Robert Millan <rmh@aybabtu.com>
19314
19315 * normal/main.c (grub_normal_execute): Check for `menu->size' when
19316 determining whether menu has to be displayed.
19317
58c69220 193182008-02-02 Marco Gerards <marco@gnu.org>
19319
19320 * bus/pci.c: New file.
19321
19322 * include/grub/pci.h: Likewise.
19323
19324 * include/grub/i386/pc/pci.h: Likewise.
19325
19326 * commands/lspci.c: Likewise.
19327
19328 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
19329 `lspci.mod'.
19330 (pci_mod_SOURCES): New variable.
19331 (pci_mod_CFLAGS): Likewise.
19332 (pci_mod_LDFLAGS): Likewise.
19333 (lspci_mod_SOURCES): Likewise.
19334 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 19335 (lspci_mod_LDFLAGS): Likewise.
58c69220 19336
c004e1b4 193372008-02-02 Bean <bean123ch@gmail.com>
19338
19339 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
19340 (grub_ufs_get_file_block): Fix indirect block calculation problem.
19341
19342 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
19343 (grub_xfs_btree_node): New structure.
19344 (grub_xfs_btree_root): New structure.
19345 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
19346 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
19347 (GRUB_XFS_EXTENT_BLOCK): Likewise.
19348 (GRUB_XFS_EXTENT_SIZE): Likewise.
19349 (grub_xfs_read_block): Support btree format type.
19350 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
19351 Use directory block as basic unit.
19352
19353 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
19354
19355 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
19356 __attribute__ ((__regparm__ (1))).
19357
f95562bf 193582008-02-01 Robert Millan <rmh@aybabtu.com>
19359
19360 Correct a mistake in previous commit.
19361
19362 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
19363 top.
19364 (normal/command.c_DEPENDENCIES): New variable.
19365
7d31f41f 193662008-02-01 Robert Millan <rmh@aybabtu.com>
19367
19368 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
19369 top.
19370 (normal/command.c_DEPENDENCIES): New variable.
19371 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
19372 * conf/i386-ieee1275.rmk: Likewise.
19373 * conf/i386-linuxbios.rmk: Likewise.
19374 * conf/i386-pc.rmk: Likewise.
19375 * conf/sparc64-ieee1275.rmk: Likewise.
19376 * conf/powerpc-ieee1275.rmk: Likewise.
19377 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19378
19379 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19380
60b6be74 193812008-02-01 Robert Millan <rmh@aybabtu.com>
19382
19383 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19384 call at beginning of function.
19385
078522ab 193862008-01-31 Pavel Roskin <proski@gnu.org>
19387
19388 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 19389 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19390 (grub_mkrescue_SOURCES): Likewise.
078522ab 19391 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19392
ccaa8a5f 193932008-01-30 Robert Millan <rmh@aybabtu.com>
19394
19395 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19396 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19397 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19398 (grub_probe_SOURCES): ... to here.
19399
19400 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19401 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19402 * conf/i386-ieee1275.rmk: Likewise.
19403 * conf/i386-linuxbios.rmk: Likewise.
19404 * conf/powerpc-ieee1275.rmk: Likewise.
19405
ae5a9cd7 194062008-01-30 Tristan Gingold <gingold@free.fr>
19407
19408 * kern/rescue.c: Silently accept empty lines.
19409
70bc2ef2 194102008-01-29 Bean <bean123ch@gmail.com>
19411
19412 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19413 (real_code_2): Code cleanup and change comment style.
19414 (move_memory): Avoid using 32-bit address mode.
19415
6a4d50ea 194162008-01-29 Bean <bean123ch@gmail.com>
19417
19418 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19419 (png_mod_SOURCES): New variable.
19420 (png_mod_CFLAGS): Likewise.
19421 (png_mod_LDFLAGS): Likewise.
19422
19423 * video/readers/png.c: New file.
19424
11cc30ac 194252008-01-28 Robert Millan <rmh@aybabtu.com>
19426
19427 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19428 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19429 `ifndef GRUB_MOD_GAP' hack.
19430 * util/elf/grub-mkimage.c (add_segments): Likewise.
19431
3abc589f 194322008-01-27 Robert Millan <rmh@aybabtu.com>
19433
19434 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19435 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 19436 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 19437
e1907778 194382008-01-27 Robert Millan <rmh@aybabtu.com>
19439
19440 Get grub-emu to build again (including parallel builds).
19441
19442 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19443 Split into ...
19444 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19445 (normal/execute.c_DEPENDENCIES): ... this, ...
19446 (grub-emu_DEPENDENCIES): ... and this.
19447
19448 * conf/i386-efi.rmk: Likewise.
19449 * conf/i386-linuxbios.rmk: Likewise.
19450 * conf/i386-ieee1275.rmk: Likewise.
19451 * conf/powerpc-ieee1275.rmk: Likewise.
19452 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19453
2216b101 194542008-01-27 Robert Millan <rmh@aybabtu.com>
19455
19456 * NEWS: Add a few items.
19457
f75172d9 194582008-01-27 Robert Millan <rmh@aybabtu.com>
19459
19460 Fix parallel builds with grub-emu. Based on earlier commit for
19461 grub-probe and grub-setup.
19462
19463 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19464 (util/grub-emu.c_DEPENDENCIES): ... this.
19465 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19466 (util/grub-emu.c_DEPENDENCIES): ... this.
19467 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19468 (util/grub-emu.c_DEPENDENCIES): ... this.
19469 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19470 (util/grub-emu.c_DEPENDENCIES): ... this.
19471 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19472 (util/grub-emu.c_DEPENDENCIES): ... this.
19473
3f51de77 194742008-01-27 Pavel Roskin <proski@gnu.org>
19475
19476 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19477 to create a gap between _end and the modules added to the image
19478 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19479 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19480 * util/elf/grub-mkimage.c (add_segments): Likewise.
19481
2033f53e 194822008-01-26 Pavel Roskin <proski@gnu.org>
19483
19484 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19485 just return an error.
19486
22da1f6f 194872008-01-26 Bean <bean123ch@gmail.com>
19488
19489 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19490 (grub_reiserfs_get_item): Save offset of the next item.
19491 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19492
2a9525e6 194932008-01-25 Robert Millan <rmh@aybabtu.com>
19494
19495 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19496 make all filesystem sources appear together (possibly fixing omissions
19497 while at it).
19498 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19499 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19500 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19502
19503 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19504 add `kern/file.c'.
19505 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19506 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19507 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19508 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19509
19510 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19511 (probe): Add a sanity check to make sure of our ability to read
19512 requested files when probing for filesystem type.
19513
19514 * genmk.rb: Update copyright year (2007).
19515
19516 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19517 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19518 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19519 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19520 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19521 : Remove function prototypes.
19522
b95f71b5 195232008-01-25 Robert Millan <rmh@aybabtu.com>
19524
19525 Revert my previous commits (based on wrong assumption of how grub_errno
19526 works).
19527
fe6b695a 19528 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 19529 * kern/file.c (grub_file_open): Likewise.
19530
d08bbb49 195312008-01-24 Pavel Roskin <proski@gnu.org>
19532
19533 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19534 that hang if GRUB tries to setup colors.
19535 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19536 colors for firmwares that don't support it.
19537 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19538 Recognize Open Hack'Ware, set flags to work around its
19539 limitations.
19540
605e36ed 195412008-01-24 Robert Millan <rmh@aybabtu.com>
19542
19543 * kern/file.c (grub_file_open): Do not account previous failures of
19544 unrelated functions when grub_errno is checked for.
19545 Reported by Oleg Strikov.
19546
bac332a1 195472008-01-24 Bean <bean123ch@gmail.com>
19548
19549 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19550 (grub_ufs_sblock): New member volume name.
19551 (grub_ufs_find_file): Fix string copy bug.
19552 (grub_ufs_label): Implement this function properly.
19553
19554 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19555 (grub_hfs_iterate_records): Use the correct file number for extents
19556 and catalog file. Fix problem in next index calculation.
19557 (grub_hfs_find_node): Replace recursive function call with loop.
19558 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19559
15c80c09 195602008-01-23 Robert Millan <rmh@aybabtu.com>
19561
19562 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19563 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19564 (grub_multiboot2_real_boot): New function prototype.
19565
19566 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19567 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19568
19569 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19570 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19571
305338fd 195722008-01-23 Robert Millan <rmh@aybabtu.com>
19573
19574 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19575 #ifdef'ed out grub_printf().
19576
3ea52685 195772008-01-23 Robert Millan <rmh@aybabtu.com>
19578
19579 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19580 grub_dprintf calls, since they make "debug=all" mode unusable.
19581 (grub_console_checkkey): Likewise.
19582
5882ae4b 195832008-01-23 Robert Millan <rmh@aybabtu.com>
19584
19585 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19586 `term/i386/pc/at_keyboard.c'.
19587 (pkglib_MODULES): Add `serial.mod'.
19588 (serial_mod_SOURCES): New variable.
19589 (serial_mod_CFLAGS): Likewise.
19590 (serial_mod_LDFLAGS): Likewise.
19591
19592 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19593 `<grub/powerpc/ieee1275/console.h>'.
19594 (grub_keyboard_controller_init): New function prototype.
19595 (grub_console_checkkey): Likewise.
19596 (grub_console_getkey): Likewise.
19597
19598 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19599 keyboard on i386.
19600
19601 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19602 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19603
06ab5303 196042008-01-23 Robert Millan <rmh@aybabtu.com>
19605
19606 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19607 present, "(memdisk)/boot/grub" becomes the default prefix.
19608
19609 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19610 a memdisk tarball with all the modules. Add --overlay=DIR option that
19611 allows users to overlay additional files into the image.
19612
dbb475a4 196132008-01-23 Robert Millan <rmh@aybabtu.com>
19614
19615 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19616 and `machine/memory.h'.
19617 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19618 (_multiboot_mod_SOURCES): New variable.
19619 (_multiboot_mod_CFLAGS): Likewise.
19620 (_multiboot_mod_LDFLAGS): Likewise.
19621 (multiboot_mod_SOURCES): Likewise.
19622 (multiboot_mod_CFLAGS): Likewise.
19623 (multiboot_mod_LDFLAGS): Likewise.
19624
19625 * include/grub/i386/ieee1275/loader.h: New file.
19626
19627 * include/grub/i386/ieee1275/machine.h: Likewise.
19628
19629 * include/grub/i386/ieee1275/memory.h: Likewise.
19630
19631 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19632 variable declaration.
19633 (grub_os_area_size): Likewise.
19634
19635 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19636 (grub_lower_mem, grub_upper_mem): New variables.
19637 (grub_stop_floppy): New function (just to make
19638 grub_multiboot2_real_boot() happy).
19639
19640 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19641 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19642 (grub_stop): New function.
19643 Include `"../realmode.S"' and `"../loader.S"'.
19644
19645 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19646 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19647
19648 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19649 rely on grub_multiboot2_real_boot() for final boot.
19650
25638629 196512008-01-22 Robert Millan <rmh@aybabtu.com>
19652
19653 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19654 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19655 device that doesn't look like an SD card.
19656 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19657 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19658 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19659 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19660 found.
19661
9dad816d 196622008-01-22 Robert Millan <rmh@aybabtu.com>
19663
19664 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19665 avoid claiming over our own code.
19666
34842f2d 196672008-01-22 Bean <bean123ch@gmail.com>
19668
19669 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19670 (jpeg_mod_SOURCES): New variable.
19671 (jpeg_mod_CFLAGS): Likewise.
19672 (jpeg_mod_LDFLAGS): Likewise.
19673
19674 * video/readers/jpeg.c : New file.
19675
44023a28 196762008-01-22 Bean <bean123ch@gmail.com>
19677
19678 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19679 there are no more items.
19680
bc2d8ac6 196812008-01-21 Robert Millan <rmh@aybabtu.com>
19682
19683 * kern/mm.c (grub_mm_init_region): Improve debug message.
19684
261bd4bc 196852008-01-21 Robert Millan <rmh@aybabtu.com>
19686
19687 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19688 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19689 address.
19690 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19691 a C macro.
19692 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19693 Indicates start of upper memory.
19694 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19695 (generate_image): Abort when image size is big enough to corrupt
19696 upper memory.
19697
19698 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19699 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19700 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19701 instead of hardcoding 0xA0000.
19702 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19703 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19704 instead of hardcoding 0xA0000.
19705
f970b55e 197062008-01-21 Robert Millan <rmh@aybabtu.com>
19707
19708 * disk/memdisk.c (memdisk_size): New variable.
19709 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19710 `memdisk_size'.
19711 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19712 image to dynamic memory.
19713 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19714 `memdisk_size'. Free memdisk block.
19715
1a8b0526 197162008-01-21 Robert Millan <rmh@aybabtu.com>
19717
19718 Fix detection of very small filesystems (like tar).
19719
19720 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19721 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19722 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19723 a problem with this disk).
19724
6e9b4aab 197252008-01-21 Robert Millan <rmh@aybabtu.com>
19726
19727 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19728 on grub_biosdisk_rw_standard() error.
19729
0d8837b2 197302008-01-21 Robert Millan <rmh@aybabtu.com>
19731
19732 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19733 recent changes.
19734 * kern/elf.c: Likewise.
19735 * kern/ieee1275/ieee1275.c: Likewise.
19736 * kern/powerpc/ieee1275/openfw.c: Likewise.
19737 * term/ieee1275/ofconsole.c: Likewise.
19738
ffd36e34 197392008-01-21 Robert Millan <rmh@aybabtu.com>
19740
19741 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19742
3f0093d0 19743 * include/grub/kernel.h (grub_arch_memdisk_addr)
19744 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 19745
3f0093d0 19746 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19747 (grub_arch_memdisk_size): ... to here.
ffd36e34 19748
6c391b21 197492008-01-21 Robert Millan <rmh@aybabtu.com>
19750
19751 Mostly based on bugfix from Bean.
19752
19753 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19754 attribute with hook() parameter.
19755 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19756 declaration.
19757 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19758 attribute with hook() parameter.
19759 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19760 declaration.
19761
55a581dc 197622008-01-21 Robert Millan <rmh@aybabtu.com>
19763
19764 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19765 (pkglib_MODULES): Add `memdisk.mod'.
19766 (memdisk_mod_SOURCES): New variable.
19767 (memdisk_mod_CFLAGS): Likewise.
19768 (memdisk_mod_LDFLAGS): Likewise.
19769
19770 * disk/memdisk.c: New file.
19771
19772 * include/grub/disk.h (grub_disk_dev_id): Add
19773 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19774
19775 * include/grub/i386/pc/kernel.h
19776 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19777 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19778 (grub_kernel_image_size): New variable declaration.
19779 (grub_total_module_size): Likewise.
19780 (grub_memdisk_image_size): Likewise.
19781
19782 * include/grub/i386/pc/memory.h
19783 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19784
19785 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19786 (grub_arch_memdisk_addr): New variable declaration.
19787 (grub_arch_memdisk_size): Likewise.
19788
19789 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19790 (grub_arch_memdisk_size): Likewise.
19791
19792 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19793 (codestart): Replace hardcoded `0x100000' with
19794 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19795
19796 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19797 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19798 not NULL, append the contents of the file it refers to, at the end of
19799 the compressed kernel image. Initialize `grub_memdisk_image_size'
19800 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19801 (options): Add "memdisk"|'m' option.
19802 (main): Parse --memdisk|-m option, and pass user-provided path as
19803 parameter to generate_image().
19804
3d7f54c9 198052008-01-20 Robert Millan <rmh@aybabtu.com>
19806
19807 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19808 grub_dprintf() calls from here ...
19809 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19810
0bf74728 198112008-01-20 Robert Millan <rmh@aybabtu.com>
19812
19813 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19814
19815 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19816 declaration.
19817 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19818 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19819 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 19820 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 19821 property).
19822 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19823 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19824
33bf70a7 198252008-01-19 Robert Millan <rmh@aybabtu.com>
19826
fe6b695a 19827 Get rid of confusing function (superseded by
33bf70a7 19828 `grub_ieee1275_get_integer_property')
19829 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19830 prototype.
19831 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19832 function.
19833 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19834 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 19835 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 19836
e2da7d26 198372008-01-19 Robert Millan <rmh@aybabtu.com>
19838
19839 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19840 command after "shut-down", since implementations differ on which
19841 the command for halt is.
19842
59f1fd8d 198432008-01-19 Robert Millan <rmh@aybabtu.com>
19844
19845 * include/grub/i386/linuxbios/console.h: Add header protection.
19846 (grub_keyboard_controller_init): New function prototype.
19847 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19848 (KEYBOARD_COMMAND_READ): Likewise.
19849 (KEYBOARD_COMMAND_WRITE): Likewise.
19850 (KEYBOARD_SCANCODE_SET1): Likewise.
19851 (grub_keyboard_controller_write): New function.
19852 (grub_keyboard_controller_read): Likewise.
19853 (grub_keyboard_controller_init): Likewise.
19854
19855 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19856 (grub_console_init): On coreboot/LinuxBIOS, call
19857 grub_keyboard_controller_init().
19858
5f5a7c15 198592008-01-19 Robert Millan <rmh@aybabtu.com>
19860
19861 PowerPC changes provided by Pavel Roskin.
19862
19863 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19864 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19865 don't rely on cmain() doing it.
19866 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19867 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19868
1210e168 198692008-01-16 Robert Millan <rmh@aybabtu.com>
19870
19871 * include/grub/i386/linuxbios/memory.h
19872 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19873 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19874 receive `table_header' as argument. Instead, probe for it in the
19875 known memory ranges where it can be present.
19876 (grub_available_iterate): Do not pass a fixed `table_header' address
19877 to grub_linuxbios_table_iterate().
19878
3d04eab8 198792008-01-15 Robert Millan <rmh@aybabtu.com>
19880
19881 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19882 * conf/i386-ieee1275.rmk: New file.
19883 * include/grub/i386/ieee1275/console.h: Likewise.
19884 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19885 * include/grub/i386/ieee1275/kernel.h: Likewise.
19886 * include/grub/i386/ieee1275/time.h: Likewise.
19887 * kern/i386/ieee1275/init.c: Likewise.
19888 * kern/i386/ieee1275/startup.S: Likewise.
19889
d1bc1b73 198902008-01-15 Robert Millan <rmh@aybabtu.com>
19891
19892 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19893 when pointers are 32-bit (but still do set it to one when they are
19894 64-bit).
19895
66a65807 198962008-01-15 Robert Millan <rmh@aybabtu.com>
19897
19898 * include/grub/ieee1275/ieee1275.h
19899 (grub_ieee1275_get_integer_property): New function prototype.
19900
19901 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19902 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 19903 grub_ieee1275_get_property() to handle endianness.
66a65807 19904
19905 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19906 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 19907 where appropriate.
66a65807 19908 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19909 (grub_map): Likewise.
19910 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19911
a83ccafd 199122008-01-15 Bean <bean123ch@gmail.com>
19913
19914 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19915 (grub_script_execute_cmdline): Reset grub_errno.
19916
19917 * normal/main.c (read_config_file): Reset grub_errno.
19918
19919 * normal/parse.y (script_init): New.
19920 (script): Move function and menuentry here.
19921 (delimiter): New.
19922 (command): Add delimiter at the end of command.
19923 (commands): Adjust to match the new command.
19924 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 19925 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 19926 (if): Use the new commands.
19927
19928 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19929
df6ecfc6 199302008-01-15 Robert Millan <rmh@aybabtu.com>
19931
19932 * normal/menu.c (run_menu): Move timeout message from here ...
19933 (print_timeout): ... to here.
19934 (run_menu): Use print_timeout() once during initial draw to print
19935 the whole message, and again in every clock tick to update only
19936 the number of seconds.
19937
87ae25eb 199382008-01-15 Robert Millan <rmh@aybabtu.com>
19939
19940 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19941 actual size of `available' from grub_ieee1275_get_property(), and
19942 restrict parsing to that bound.
19943
47bf09a4 199442008-01-15 Christian Franke <franke@computer.org>
19945
19946 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19947 (argp_program_version): Remove variable.
19948 (argp_program_bug_address): Likewise.
19949 (options): Convert from struct argp_option to struct option.
19950 (struct arguments): Remove.
19951 (parse_opt): Remove.
19952 (usage): New function.
19953 (main): Replace struct args members by simple variables.
19954 Replace argp_parse() by getopt_long().
19955 Add switch to evaluate options.
19956 Add missing "(...)" around root_dev in prefix string.
19957
c86f1469 199582008-01-14 Robert Millan <rmh@aybabtu.com>
19959
19960 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19961 for grub_ieee1275_exit(), in order to improve portability.
19962
e622c559 199632008-01-14 Robert Millan <rmh@aybabtu.com>
19964
19965 * util/grub.d/10_linux.in (prefix): Define.
19966 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19967
44cb1ec8 199682008-01-13 Pavel Roskin <proski@gnu.org>
19969
19970 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19971 grub_errno if no errors have been detected.
19972
1eb8c802 199732008-01-12 Robert Millan <rmh@aybabtu.com>
19974
19975 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19976 (grub_util_get_dev_abstraction): New function prototype.
19977
19978 * util/getroot.c: Include `<grub/util/getroot.h>'
19979 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19980 (grub_util_get_dev_abstraction): ... here (new function).
19981
19982 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19983 `PRINT_ABSTRACTION'.
19984 (probe): Probe for abstraction type when requested.
19985 (main): Understand `--target=abstraction'.
19986
19987 * util/i386/efi/grub-install.in: Add abstraction module to core
19988 image when it is found to be necessary.
19989 * util/i386/pc/grub-install.in: Likewise.
19990 * util/powerpc/ieee1275/grub-install.in: Likewise.
19991
19992 * util/update-grub_lib.in (font_path): Return system path without
19993 converting to GRUB path.
19994 * util/update-grub.in: Convert system path returned by font_path()
19995 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19996 abstraction module is needed for loading fonts (if any). Export
19997 that as `GRUB_PRELOAD_MODULES'.
19998 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19999 insmod commands).
20000
52bd3de9 200012008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
20002
20003 Remove some unused code from reiserfs.
f19dbdb7 20004
52bd3de9 20005 * fs/reiserfs.c (struct grub_reiserfs_key)
20006 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
20007 (struct grub_reiserfs_node_body): Removed.
20008 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20009 Likewise.
20010 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20011 Likewise.
20012 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20013 Likewise.
20014 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20015 Likewise.
20016 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20017 Likewise.
20018 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
20019 Likewise.
20020 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20021 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20022 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20023
2f80039d 200242008-01-10 Robert Millan <rmh@aybabtu.com>
20025
20026 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
20027 Determines if a file is garbage left by packaging systems, etc.
20028 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
20029 for processing /etc/grub.d scripts.
20030 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
20031 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
20032 as a condition for processing Linux images.
20033
87888032 200342008-01-10 Pavel Roskin <proski@gnu.org>
20035
20036 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
20037 to compile reiserfs.c on PowerPC.
20038
7e54fced 200392008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 20040
20041 * kern/device.c (grub_device_iterate): Do not abort device iteration
20042 when one of the devices cannot be opened.
20043 * kern/disk.c (grub_disk_open): Do not account previous failures of
20044 unrelated functions when grub_errno is checked for.
20045
5aa541e6 200462008-01-08 Robert Millan <rmh@aybabtu.com>
20047
20048 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
20049 `! grub_linux_is_bzimage', change order of address comparison to make
20050 it more intuitive, and improve "too big zImage" error message.
20051
7076340d 200522008-01-08 Robert Millan <rmh@aybabtu.com>
20053
20054 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
20055 `$(update-grub_DATA)'.
20056 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
20057 targets.
20058
9ca70333 200592008-01-07 Robert Millan <rmh@aybabtu.com>
20060
20061 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
20062 which instruction is modified by grub-setup during installation
20063 (since it wasn't obvious by only looking at this file).
20064
38ccf575 200652008-01-07 Robert Millan <rmh@aybabtu.com>
20066
20067 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
20068 listing actual TODO items.
20069
f5db4291 200702008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20071
868967cf 20072 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
20073 correctly.
20074 (grub_reiserfs_get_key_offset): Likewise.
20075 (grub_reiserfs_set_key_offset): Likewise.
20076 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 20077 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 20078
20079 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
20080 better to remove the bitfield version completely.
f19dbdb7 20081
868967cf 200822008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 20083
f5db4291 20084 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
20085 allocated from the heap, due to the fshelp implementation.
20086 (grub_reiserfs_dir): Free NODE, due to the same reason.
20087
492e6d9d 200882008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20089
20090 Mostly from Vincent Pelletier:
f19dbdb7 20091
492e6d9d 20092 * fs/reiserfs.c: New file.
f19dbdb7 20093
492e6d9d 20094 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
20095 (reiserfs_mod_SOURCES): New variable.
20096 (reiserfs_mod_CFLAGS): Likewise.
20097 (reiserfs_mod_LDFLAGS): Likewise.
20098
20099 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
20100 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
20101 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
20102 normal/color.c.
20103
9ce3e7c1 201042008-01-06 Robert Millan <rmh@aybabtu.com>
20105
20106 * normal/color.c: Remove `<grub/env.h>'.
20107
f3b58148 201082008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
20109
20110 * include/grub/normal.h: Include <grub/env.h>.
20111
7ac3bcfa 201122008-01-05 Robert Millan <rmh@aybabtu.com>
20113
20114 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
20115 usage example with `(hd0,1)'.
fb358190 20116 Reported by Samuel Thibault.
7ac3bcfa 20117
c8ee99d7 201182008-01-05 Robert Millan <rmh@aybabtu.com>
20119
20120 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
20121 (grub_linux_boot_zimage): Rename to ...
20122 (grub_linux_boot): ... this.
20123 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
20124 (grub_linux_boot_zimage): Conditionalize zImage copy.
20125
20126 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
20127 (grub_linux_boot_bzimage): Remove prototype.
20128 (grub_linux_boot_zimage): Rename to ...
20129 (grub_linux_boot): ... this.
20130
20131 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
20132 (grub_linux_boot): Remove function.
20133
0ece25b1 201342008-01-05 Robert Millan <rmh@aybabtu.com>
20135
20136 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
20137 (grub_env_write_color_highlight): Likewise.
20138 (grub_wait_after_message): Likewise.
20139
20140 * normal/color.c: New file.
20141
20142 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20143 (normal_mod_DEPENDENCIES): Likewise.
20144
20145 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20146 (normal_mod_DEPENDENCIES): Likewise.
20147
20148 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20149 (normal_mod_DEPENDENCIES): Likewise.
20150
20151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20152 (normal_mod_DEPENDENCIES): Likewise.
20153
20154 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
20155 for waiting after a message is printed.
20156 * normal/main.c (read_config_file): Likewise.
20157 (grub_normal_init): Register grub_env_write_color_normal() and
20158 grub_env_write_color_highlight() hooks. Mark `color_normal' and
20159 `color_highlight' variables as global.
20160
20161 * normal/menu.c (grub_wait_after_message): New function.
20162 (grub_color_menu_normal): New variable. Replaces ...
20163 (GRUB_COLOR_MENU_NORMAL): ... this macro.
20164 (grub_color_menu_highlight): New variable. Replaces ...
20165 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
20166 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
20167 `GRUB_TERM_COLOR_STANDARD'.
20168 (print_message): Use `grub_setcolorstate' to reload colors. Rename
20169 `normal_code' and `highlight_code' to `old_color_normal' and
20170 `old_color_highlight', respectively.
20171 (grub_menu_init_page): Update colors when drawing the menu, based on
20172 `menu_color_normal' and `menu_color_highlight' variables.
20173 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
20174 a message is printed.
20175
182dd4e5 201762008-01-05 Robert Millan <rmh@aybabtu.com>
20177
20178 * kern/env.c (grub_env_context_open): Propagate hooks for global
20179 variables to new context.
20180
20181 * kern/main.c (grub_set_root_dev): Export `root' variable.
20182
ddf8f6ad 201832008-01-05 Robert Millan <rmh@aybabtu.com>
20184
20185 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 20186 discs unconditionally, since udev and others have options to provide
ddf8f6ad 20187 them.
20188
d8b43d9b 201892008-01-05 Robert Millan <rmh@aybabtu.com>
20190
20191 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
20192
2bff2de3 201932008-01-04 Christian Franke <franke@computer.org>
20194
20195 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
20196 of eisa_mmap.
20197
97eab917 201982008-01-03 Pavel Roskin <proski@gnu.org>
20199
20200 * kern/i386/linuxbios/init.c: Put "void" to all function
20201 declarations with no arguments.
20202 * kern/powerpc/ieee1275/init.c: Likewise.
20203 * term/i386/pc/at_keyboard.c: Likewise.
20204 * term/i386/pc/vga_text.c: Likewise.
20205 * util/grub-mkdevicemap.c: Likewise.
20206
b9416d00 202072008-01-02 Robert Millan <rmh@aybabtu.com>
20208
20209 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
20210 message when loaded image is out of bounds.
20211 (grub_multiboot_load_elf64): Likewise.
20212
92695df9 202132008-01-02 Pavel Roskin <proski@gnu.org>
20214
20215 * util/grub.d/10_linux.in: Try version without ".old" when
20216 looking for initrd. It's better to use initrd from the newer
20217 kernel of the same version than no initrd at all.
20218
d98d9cad 202192008-01-01 Robert Millan <rmh@aybabtu.com>
20220
20221 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
20222
dbfdce36 202232008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
20224
f19dbdb7 20225 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 20226 grub_video_get_active_render_target.
20227 (grub_video_adapter): Added unmap_color and get_active_render_target.
20228
f19dbdb7 20229 * video/video.c: Added grub_video_unmap_color and
dbfdce36 20230 grub_video_get_active_render_target.
20231 (grub_video_get_info): Changed method to accept NULL pointer as an
20232 argument to allow detection of active video adapter.
20233
20234 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
20235 grub_video_vbe_unmap_color_int.
20236 Added grub_video_vbe_unmap_color and
20237 grub_video_vbe_get_active_render_target.
20238 (grub_video_vbe_adapter): Added unmap_color and
20239 get_active_render_target.
20240
f19dbdb7 20241 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 20242 with grub_video_vbe_unmap_color_int.
20243
20244 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
20245 (DEFAULT_NORMAL_COLOR): Likewise.
20246 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
20247 (DEFAULT_FG_COLOR): Removed.
20248 (DEFAULT_BG_COLOR): Likewise.
20249 (DEFAULT_CURSOR_COLOR): Changed value.
20250 (grub_virtual_screen): Added standard_color_setting,
20251 normal_color_setting, highlight_color_setting and term_color.
20252 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
20253 (bitmap_width): Added.
20254 (bitmap_height): Likewise.
20255 (bitmap): Likewise.
20256 (set_term_color): Likewise.
20257 (grub_virtual_screen_setup): Changed to use new terminal coloring
20258 settings.
20259 (grub_gfxterm_init): Added init for bitmap.
20260 (grub_gfxterm_fini): Added destroy for bitmap.
20261 (redraw_screen_rect): Updated to use background bitmap and new
20262 terminal coloring.
20263 (scroll_up): Added optimization for case when there is no bitmap.
20264 (grub_gfxterm_cls): Fixed to use correct background color.
20265 (grub_virtual_screen_setcolorstate): Changed to use new terminal
20266 coloring.
20267 (grub_virtual_screen_setcolor): Likewise.
20268 (grub_virtual_screen_getcolor): Added.
20269 (grub_gfxterm_background_image_cmd): Likewise.
20270 (grub_video_term): Added setcolor and getcolor.
20271 (MOD_INIT): Added registration of background_image command.
20272 (MOD_TERM): Added unregistration for background_image command.
20273
c3c20931 202742007-12-30 Pavel Roskin <proski@gnu.org>
20275
20276 * loader/multiboot_loader.c: Fix multiboot command
20277 unregistration. Fix all typos in the word "multiboot".
20278
df266716 202792007-12-29 Pavel Roskin <proski@gnu.org>
94239199 20280
20281 * util/grub.d/10_linux.in: Refactor search for initrd. Add
20282 support for initrd names used in Fedora.
20283
fc6e896c 202842007-12-26 Bean <bean123ch@gmail.com>
20285
20286 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
20287 (cpio_mod_SOURCES): New variable.
20288 (cpio_mod_CFLAGS): Likewise.
20289 (cpio_mod_LDFLAGS): Likewise.
20290
20291 * fs/cpio.c: New file.
20292
20293 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
20294
20295 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20296
20297 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20298
20299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20300
533110ad 203012007-12-25 Robert Millan <rmh@aybabtu.com>
20302
20303 * include/grub/term.h (struct grub_term): Add `getcolor' function.
20304 (grub_getcolor): New function.
20305
20306 * kern/term.c (grub_getcolor): New function.
20307 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
20308 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
20309 (print_entry): Set normal and highlight colors to
20310 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
20311 respectively, before printing and restore them to old
20312 values afterwards.
20313 (grub_menu_init_page): Likewise. Fill an additional colored space
20314 that would otherwise be left blank.
20315
20316 * term/efi/console.c (grub_console_getcolor): New function.
20317 (struct grub_console_term.getcolor): New variable.
20318 * term/i386/pc/console.c (grub_console_getcolor): New function.
20319 (struct grub_console_term.getcolor): New variable.
20320 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
20321 (struct grub_console_term.getcolor): New variable.
20322
20323 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
20324 (struct grub_console_term.setcolor): Remove variable.
20325 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
20326 (struct grub_console_term.setcolor): Remove variable.
20327 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
20328 (struct grub_console_term.setcolor): Remove variable.
20329 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
20330 (struct grub_console_term.setcolor): Remove variable.
20331
4931827f 203322007-12-25 Robert Millan <rmh@aybabtu.com>
20333
20334 * configure.ac: Search for possible unifont.hex locations, and
20335 define UNIFONT_HEX if found.
20336
20337 * Makefile.in (UNIFONT_HEX): Define variable.
20338 (DATA): Rename to ...
20339 (PKGLIB): ... this. Update all users.
20340 (PKGDATA): New variable.
20341 (pkgdata_IMAGES): Rename to ...
20342 (pkglib_IMAGES): ... this. Update all users.
20343 (pkgdata_MODULES): Rename to ...
20344 (pkglib_MODULES): ... this. Update all users.
20345 (pkgdata_PROGRAMS): Rename to ...
20346 (pkglib_PROGRAMS): ... this. Update all users.
20347 (pkgdata_DATA): Rename to ...
20348 (pkglib_DATA): ... this. Update all users.
20349 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
20350 (unicode.pff, ascii.pff): New rules.
20351 (all-local): Add `$(PKGDATA)' dependency.
20352 (install-local): Process `$(PKGDATA)'.
20353
20354 * util/update-grub_lib.in (font_path): Search for *.pff files in
20355 a few more locations, including `${pkgdata}'.
20356
57e57e31 203572007-12-23 Robert Millan <rmh@aybabtu.com>
20358
20359 Patch from Bean <bean123ch@gmail.com>:
20360 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
20361 `size'.
20362
4bc72aa9 203632007-12-21 Bean <bean123ch@gmail.com>
20364
20365 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
20366 (ntfscomp_mod_SOURCES): New variable.
20367 (ntfscomp_mod_CFLAGS): Likewise.
20368 (ntfscomp_mod_LDFLAGS): Likewise.
20369
20370 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
20371 (grub_probe_SOURCES): Likewise.
20372 (grub_emu_SOURCES): Likewise.
20373
20374 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20375 (grub_emu_SOURCES): Likewise.
20376
20377 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20378 (grub_emu_SOURCES): Likewise.
20379
20380 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20381 (grub_emu_SOURCES): Likewise.
20382
20383 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20384 (read_run_list): Renamed to grub_ntfs_read_run_list.
20385 (decomp_nextvcn): Moved to ntfscomp.c.
20386 (decomp_getch): Likewise.
20387 (decomp_get16): Likewise.
20388 (decomp_block): Likewise.
20389 (read_block): Likewise.
20390 (read_data): Partially moved to ntfscomp.c.
20391 (fixup): Change unsigned to grub_uint16_t.
20392 (read_mft): Change unsigned long to grub_uint32_t.
20393 (read_attr): Likewise.
20394 (read_data): Likewise.
20395 (read_run_data): Likewise.
20396 (read_run_list): Likewise.
20397 (read_mft): Likewise.
20398
20399 * fs/ntfscomp.c: New file.
20400
20401 * include/grub/ntfs.h: New file.
20402
af680a87 204032007-12-16 Robert Millan <rmh@aybabtu.com>
20404
20405 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20406 IDE disk check, since Linux is known to support 20 IDE disks.
20407 Reported by Colin Watson.
20408
84be7599 204092007-12-15 Bean <bean123ch@gmail.com>
20410
20411 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20412 (lnxboot_img_SOURCES): New variable.
20413 (lnxboot_img_ASFLAGS): Likewise.
20414 (lnxboot_img_LDFLAGS): Likewise.
20415
20416 * boot/i386/pc/lnxboot.S: New file.
20417
6af9db01 204182007-11-24 Pavel Roskin <proski@gnu.org>
20419
20420 * configure.ac: Test if '--build-id=none' is supported by the
20421 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20422 objcopy to generate incorrect binary files (binutils
20423 2.17.50.0.18-1 as shipped by Fedora 8).
20424 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20425 linking, so that build ID doesn't break the test.
20426
7361cfe6 204272007-11-24 Pavel Roskin <proski@gnu.org>
20428
20429 * include/grub/i386/time.h: use "void" in the argument list
20430 of grub_cpu_idle().
20431 * include/grub/powerpc/time.h: Likewise.
20432 * include/grub/sparc64/time.h: Likewise.
20433
1593e10c 204342007-11-18 Christian Franke <franke@computer.org>
20435
20436 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20437 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20438 This fixes the problem that function keys did not work in grub-emu.
20439
3b8db1a8 204402007-11-18 Christian Franke <franke@computer.org>
20441
20442 * disk/host.c (grub_host_open): Remove attribute unused from
20443 name parameter. Add check for "host". This fixes the problem
20444 that grub-emu does not find partitions.
20445
2e29408d 204462007-11-18 Christian Franke <franke@computer.org>
20447
20448 * util/hostfs.c (is_dir): New function.
20449 (grub_hostfs_dir): Handle missing dirent.d_type case.
20450 (grub_hostfs_read): Add missing fseek().
20451 (grub_hostfs_label): Clear label pointer. This fixes a crash
20452 of grub-emu on "ls (host)".
20453
398cd047 204542007-11-18 Christian Franke <franke@computer.org>
20455
20456 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20457 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20458 to 64 bit boundary by default.
20459
c405c391 204602007-11-18 Bean <bean123ch@gmail.com>
20461
20462 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20463 (hexdump_mod_SOURCES): New variable.
20464 (hexdump_mod_CFLAGS): Likewise.
20465 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 20466
c405c391 20467 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20468
20469 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20470
20471 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20472
20473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20474
20475 * include/grub/hexdump.h: New file.
20476
20477 * commands/hexdump.c: New file.
20478
5cced7fd 204792007-11-10 Robert Millan <rmh@aybabtu.com>
20480
20481 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20482 in grub_outb() calls.
20483 (beep_on): Likewise.
20484
8b714eb0 204852007-11-10 Christian Franke <franke@computer.org>
20486
20487 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20488 (grub_menu_run): Likewise.
20489
ce0f1839 204902007-11-10 Robert Millan <rmh@aybabtu.com>
20491
20492 * include/grub/i386/efi/machine.h: New file.
20493 * include/grub/i386/linuxbios/machine.h: Likewise.
20494 * include/grub/i386/pc/machine.h: Likewise.
20495 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20496 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20497
20498 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20499 (serial_hw_io_addr): New variable.
20500 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20501 instead of `(unsigned short *) 0x400'.
20502
270c237d 205032007-11-10 Bean <bean123ch@gmail.com>
20504
20505 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20506
a87783bf 205072007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20508
20509 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20510 (vga_mod_SOURCES): Added.
20511 (vga_mod_CFLAGS): Likewise.
20512 (vga_mod_LDFLAGS): Likewise.
20513
20514 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20515 grub_outb() calls.
20516 (set_map_mask): Likewise.
20517 (set_read_map): Likewise.
20518 (set_read_address): Likewise.
20519 (vga_font): Removed variable.
20520 (get_vga_glyph): Removed function.
20521 (invalidate_char): Likewise.
20522 (write_char): Changed to use grub_font_get_glyph() for font
20523 information.
20524 (grub_vga_putchar): Likewise.
20525 (grub_vga_getcharwidth): Likewise.
20526
6433b448 205272007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20528
20529 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20530 flags.
20531 (pxeboot_img_LDFLAGS): Likewise.
20532 (diskboot_img_LDFLAGS): Likewise.
20533 (kernel_img_LDFLAGS): Likewise.
20534
49178511 205352007-11-06 Robert Millan <rmh@aybabtu.com>
20536
20537 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20538 in grub_outb() calls.
20539 (serial_hw_init): Likewise.
20540
53b052de 205412007-11-05 Robert Millan <rmh@aybabtu.com>
20542
20543 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20544 spaces. Skip non-regular files.
20545
5ab33bba 205462007-11-05 Robert Millan <rmh@aybabtu.com>
20547
20548 * kern/disk.c (grub_disk_firmware_fini)
20549 (grub_disk_firmware_is_tainted): New variables.
20550
20551 * include/grub/disk.h (grub_disk_firmware_fini)
20552 (grub_disk_firmware_is_tainted): Likewise.
20553
20554 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20555 (grub_disk_biosdisk_fini): ... to here.
20556 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20557 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20558 is set. Register grub_disk_biosdisk_fini() in
20559 `grub_disk_firmware_fini'.
20560
20561 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20562 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20563 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20564 to finish existing firmware disk interface.
20565
20566 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20567 (ata_mod_SOURCES): New variable.
20568 (ata_mod_CFLAGS): Likewise.
20569 (ata_mod_LDFLAGS): Likewise.
20570
0149ab7c 205712007-11-05 Robert Millan <rmh@aybabtu.com>
20572
20573 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20574 (grub_ata_wait): Reimplement using grub_millisleep().
20575
20576 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20577 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20578
be7ac41e 205792007-11-03 Marco Gerards <marco@gnu.org>
20580
20581 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20582 (CRTC_ADDR_PORT): New macro.
20583 (CRTC_DATA_PORT): Likewise.
20584 (CRTC_CURSOR): Likewise.
20585 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20586 (CRTC_CURSOR_ADDR_LOW): Likewise.
20587 (update_cursor): New function.
20588 (grub_console_real_putchar): Call `update_cursor'.
20589 (grub_console_gotoxy): Likewise.
20590 (grub_console_cls): Set the default color when clearing the
20591 screen.
20592 (grub_console_setcursor): Implemented.
20593
bb06ab2e 205942007-11-03 Marco Gerards <marco@gnu.org>
20595
20596 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20597 become activate.
20598 (grub_ata_pio_write): Likewise.
20599
20600 (grub_atapi_identify): Wait after issuing an ATA command.
20601 (grub_atapi_packet): Likewise.
20602 (grub_ata_identify): Likewise.
20603 (grub_ata_readwrite): Likewise.
20604
cf8f780b 206052007-11-03 Marco Gerards <marco@gnu.org>
20606
20607 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20608 (grub_ata_pio_write): Likewise.
20609 (grub_ata_readwrite): Use `grub_error', instead of
20610 returning `grub_errno'.
20611
ed649e54 206122007-11-03 Marco Gerards <marco@gnu.org>
20613
20614 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20615 grub_ata_pio_write once for every single sector, instead of for
20616 multiple sectors.
20617
ca25d8f0 206182007-10-31 Robert Millan <rmh@aybabtu.com>
20619
20620 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20621
20622 * conf/i386-linuxbios.rmk: New file.
20623
20624 * kern/i386/pc/hardware.c: Likewise.
20625 * term/i386/pc/at_keyboard.c: Likewise.
20626 * term/i386/pc/vga_text.c: Likewise.
20627
20628 * include/grub/i386/linuxbios/boot.h: Likewise.
20629 * include/grub/i386/linuxbios/console.h: Likewise.
20630 * include/grub/i386/linuxbios/init.h: Likewise.
20631 * include/grub/i386/linuxbios/kernel.h: Likewise.
20632 * include/grub/i386/linuxbios/loader.h: Likewise.
20633 * include/grub/i386/linuxbios/memory.h: Likewise.
20634 * include/grub/i386/linuxbios/serial.h: Likewise.
20635 * include/grub/i386/linuxbios/time.h: Likewise.
20636
20637 * kern/i386/linuxbios/init.c: Likewise.
20638 * kern/i386/linuxbios/startup.S: Likewise.
20639 * kern/i386/linuxbios/table.c: Likewise.
20640
e911ecc1 206412007-10-31 Marco Gerards <marco@gnu.org>
20642
20643 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20644 (ata_mod_SOURCES): New variable.
20645 (ata_mod_CFLAGS): Likewise.
20646 (ata_mod_LDFLAGS): Likewise.
20647
20648 * disk/ata.c: New file.
20649
20650 * include/grub/disk.h (grub_disk_dev_id): Add
20651 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 20652
7f66d0e0 206532007-10-31 Robert Millan <rmh@aybabtu.com>
20654
20655 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20656 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20657
20658 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20659 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20660
20661 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20662 `<grub/types.h>'.
20663
20664 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20665
5cd7dd46 206662007-10-27 Robert Millan <rmh@aybabtu.com>
20667
3236ca65 20668 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 20669
2ebfc90f 206702007-10-22 Robert Millan <rmh@aybabtu.com>
20671
20672 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20673 `"../realmode.S"'.
20674 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20675
73fcb0f3 206762007-10-22 Robert Millan <rmh@aybabtu.com>
20677
20678 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20679 (pkgdata_MODULES): Add `biosdisk.mod'.
20680 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20681 variables.
20682
20683 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20684 (grub_biosdisk_init): Replace with ...
20685 (GRUB_MOD_INIT(biosdisk)): ... this.
20686 (grub_biosdisk_fini): Replace with ...
20687 (GRUB_MOD_FINI(biosdisk)): ... this.
20688
20689 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20690 (grub_machine_init): Remove call to grub_biosdisk_init().
20691 (grub_machine_fini): Remove call to grub_machine_fini().
20692
20693 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20694
3381d274 206952007-10-22 Robert Millan <rmh@aybabtu.com>
20696
20697 * include/grub/time.h: New file.
20698 * include/grub/i386/time.h: Likewise.
20699 * include/grub/powerpc/time.h: Likewise.
20700 * include/grub/sparc64/time.h: Likewise.
20701
20702 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20703 instances to ...
20704 (KERNEL_MACHINE_TIME_HEADER): ... this.
20705 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20706 instances to ...
20707 (KERNEL_MACHINE_TIME_HEADER): ... this.
20708 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20709 instances to ...
20710 (KERNEL_MACHINE_TIME_HEADER): ... this.
20711
20712 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20713 (grub_millisleep): New function.
20714 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20715 (grub_millisleep): New function.
20716 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20717 Remove `grub/machine/time.h' include.
20718 (grub_millisleep): New function.
20719 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20720 Remove `grub/machine/time.h' include.
20721 (grub_millisleep): New function.
20722
20723 * include/grub/misc.h (grub_div_roundup): New function.
20724
20725 * kern/misc.c: Include `<grub/time.h>'.
20726 (grub_millisleep_generic): New function.
20727
20728 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20729 Add `time.h'.
20730 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20731 Add `time.h'.
20732 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20733 `machine/time.h'. Add `time.h'.
20734 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20735
a39a0312 207362007-10-21 Robert Millan <rmh@aybabtu.com>
20737
20738 * include/grub/misc.h (grub_max): New function.
20739
2aad70e2 207402007-10-21 Robert Millan <rmh@aybabtu.com>
20741
20742 * util/misc.c (grub_util_info): Call fflush() before returning.
20743
54b71c4b 207442007-10-20 Robert Millan <rmh@aybabtu.com>
20745
20746 * genmk.rb (Image): Copy `extra_flags' from here ...
20747 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20748
20749 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20750 to `argc' and `args' arguments.
20751
a979f513 207522007-10-17 Robert Millan <rmh@aybabtu.com>
20753
20754 * kern/i386/loader.S: New file.
20755
20756 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20757 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20758 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20759 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20760 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20761 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20762 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20763 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20764 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20765 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20766 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20767 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20768 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20769 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20770
20771 * kern/i386/realmode.S: New file.
20772
20773 * kern/i386/pc/startup.S (protstack): Moved from here ...
20774 * kern/i386/realmode.S (protstack)... to here.
20775 * kern/i386/pc/startup.S (gdt): Moved from here ...
20776 * kern/i386/realmode.S (gdt)... to here.
20777 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20778 * kern/i386/realmode.S (prot_to_real)... to here.
20779
20780 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20781 `kern/i386/realmode.S'.
20782
825fc8fd 207832007-10-17 Robert Millan <rmh@aybabtu.com>
20784
20785 * include/grub/i386/loader.h: New file.
20786
20787 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20788 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20789 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20790 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20791 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20792 * include/grub/i386/loader.h (grub_linux_prot_size)
20793 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20794 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20795 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20796 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20797
20798 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20799
e179b2f4 208002007-10-15 Robert Millan <rmh@aybabtu.com>
20801
20802 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20803 filesystem when dev->disk is unset.
20804 Do probe for filesystem even when dev->disk->has_partitions is set.
20805 In case a filesystem is found, always report it.
20806 In case it isn't, if dev->disk->has_partitions is set, report that
20807 a partition table was found instead of reporting that no filesystem
20808 could be identified.
20809
5db82af6 208102007-10-12 Robert Millan <rmh@aybabtu.com>
20811
20812 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20813 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20814
68f6ac74 20815 * include/grub/types.h (grub_host_to_target16): New macro.
20816 (grub_host_to_target32): Likewise.
20817 (grub_host_to_target64): Likewise.
20818 (grub_target_to_host16): Likewise.
20819 (grub_target_to_host32): Likewise.
20820 (grub_target_to_host64): Likewise.
5db82af6 20821
20822 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20823 Renamed from to ...
20824 (GRUB_MOD_ALIGN): ...this. Update all users.
20825
68f6ac74 20826 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20827 grub_host_to_target32.
20828 Replace grub_be_to_cpu32 with grub_target_to_host32.
20829 (load_modules): Likewise.
20830 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20831 Replace grub_be_to_cpu32 with grub_target_to_host32.
20832 Replace grub_cpu_to_be16 with grub_host_to_target16.
20833 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 20834
3cf497cc 208352007-10-12 Robert Millan <rmh@aybabtu.com>
20836
20837 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20838 * util/elf/grub-mkimage.c: ... here.
20839
20840 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20841 `util/powerpc/ieee1275/grub-mkimage.c'.
20842
c8cc3692 208432007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 20844
c8cc3692 20845 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20846 and make it easier to figure out.
20847 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20848 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20849 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20850 leave us with less than HEAP_MIN_SIZE total heap.
20851 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 20852
5c58b791 208532007-10-03 Robert Millan <rmh@aybabtu.com>
20854
20855 * include/grub/i386/io.h: New file.
20856 * commands/i386/pc/play.c (inb): Removed.
20857 (outb): Removed.
20858 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20859 with grub_outb().
afcd2ef8 20860 * term/i386/pc/serial.c (inb): Removed.
20861 (outb): Removed.
20862 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20863 with grub_outb().
20864 * term/i386/pc/vga.c (inb): Removed.
20865 (outb): Removed.
20866 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20867 with grub_outb().
5c58b791 20868
1a477ed6 208692007-10-02 Robert Millan <rmh@aybabtu.com>
20870
20871 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20873 Reported by Marcin Kurek.
20874
6b5d80fa 208752007-09-07 Robert Millan <rmh@aybabtu.com>
20876
20877 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20878 SmartFirmware version updates (as released by Sven Luther), and avoid
20879 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20880 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20881 known broken.
20882
5618afbf 208832007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20884
20885 From Hitoshi Ozeki:
20886 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20887 when merging two regions.
20888
6139dcd9 208892007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20890
508e39ee 20891 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20892 * normal/completion.c (grub_normal_do_completion): Likewise.
20893 Reported by Hitoshi Ozeki.
20894
208952007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 20896
6139dcd9 20897 Do not use devices at boot in chainloading.
f19dbdb7 20898
6139dcd9 20899 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20900 (boot_part_addr): Likewise.
20901 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20902 with BOOT_DRIVE and BOOT_PART_ADDR.
20903 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20904 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20905
38da6516 209062007-08-29 Robert Millan <rmh@aybabtu.com>
20907
20908 Patch from Simon Peter <dn.tlp@gmx.net>:
20909 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20910 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20911 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20912 util/i386/pc/grub-setup.c_DEPENDENCIES.
20913 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20914 util/grub-probe.c_DEPENDENCIES.
20915 * conf/powerpc-ieee1275.rmk: Likewise.
20916
29d0928c 209172007-08-28 Robert Millan <rmh@aybabtu.com>
20918
20919 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20920 to tell grub-mkdevicemap how to name devices.
20921 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20922 feature).
20923
20924 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20925 util/i386/get_disk_name.c.
20926 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20927 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20928 util/ieee1275/get_disk_name.c.
20929
20930 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20931
20932 * DISTLIST: Add util/i386/get_disk_name.c and
20933 util/ieee1275/get_disk_name.c.
20934
20935 * util/grub-mkdevicemap.c: Replace device naming logic with
20936 grub_util_get_disk_name() calls.
20937
5a0d3cca 209382007-08-20 Robert Millan <rmh@aybabtu.com>
20939
20940 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20941 (so that it works for both plural and singular quantities).
20942
8b72db2f 209432007-08-05 Robert Millan <rmh@aybabtu.com>
20944
20945 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20946 so that [xz] isn't taken into account when determining order.
20947
352466bf 209482007-08-02 Marco Gerards <marco@gnu.org>
20949
20950 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20951 `include/multiboot2.h', `include/grub/elfload.h',
20952 `include/multiboot.h', `include/grub/multiboot.h',
20953 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20954 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20955 `kern/elf.c', `loader/multiboot_loader.c',
20956 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20957 `loader/i386/pc/multiboot2.c',
20958 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20959 `util/i386/pc/grub-mkrescue.in'. Remove
20960 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20961 `include/grub/i386/pc/util/biosdisk.h' and
20962 `include/grub/powerpc/ieee1275/multiboot.h'.
20963
8f096014 209642007-08-02 Bean <bean123ch@gmail.com>
20965
20966 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20967 (ntfs_mod_SOURCES): New variable.
20968 (ntfs_mod_CFLAGS): Likewise.
20969 (ntfs_mod_LDFLAGS): Likewise.
20970
20971 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20972 (grub_probe_SOURCES): Likewise.
20973 (grub_emu_SOURCES): Likewise.
20974
20975 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20976 (grub_emu_SOURCES): Likewise.
20977
20978 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20979 (grub_emu_SOURCES): Likewise.
f19dbdb7 20980
8f096014 20981 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20982
20983 * fs/ntfs.c: New file.
20984
9959f7db 209852007-08-02 Bean <bean123ch@gmail.com>
20986
20987 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20988
20989 * file.h (grub_file): Likewise.
20990
20991 * fshelp.h (grub_fshelp_read_file): Likewise.
20992
20993 * util/i386/pc/grub-setup.c (setup): Likewise.
20994 (save_first_sector): Likewise.
20995 (save_blocklists): Likewise.
f19dbdb7 20996
9959f7db 20997 * fs/affs.c (grub_affs_read_file): Likewise.
20998
20999 * fs/ext2.c (grub_ext2_read_file): Likewise.
21000
21001 * fs/fat.c (grub_fat_read_data): Likewise.
21002
21003 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
21004
21005 * fs/hfs.c (grub_hfs_read_file): Likewise.
21006
21007 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21008
21009 * fs/jfs.c (grub_jfs_read_file): Likewise.
21010
21011 * fs/minix.c (grub_minix_read_file): Likewise.
21012
21013 * fs/sfs.c (grub_sfs_read_file): Likewise.
21014
21015 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 21016
9959f7db 21017 * fs/xfs.c (grub_xfs_read_file): Likewise.
21018
21019 * command/blocklist.c (read_blocklist): Likewise.
21020 (print_blocklist): Likewise.
21021
0a203f83 210222007-08-02 Marco Gerards <marco@gnu.org>
21023
21024 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
21025 `util/hostfs.c'.
21026
21027 * disk/host.c: New file.
21028
21029 * util/hostfs.c: Likewise.
21030
21031 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
21032 return `GRUB_ERR_BAD_FS'.
21033 * fs/sfs.c (grub_sfs_mount): Likewise.
21034 * fs/xfs.c (grub_xfs_mount): Likewise.
21035
21036 * include/grub/disk.h (enum grub_disk_dev_id): Add
21037 `GRUB_DISK_DEVICE_HOST_ID'.
21038
21039 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
21040
e5dfe777 210412007-07-24 Jerone Young <jerone@gmail.com>
21042
f19dbdb7 21043 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 21044 modules for compilation.
21045 * conf/powerpc-ieee1275.rmk: Likewise.
21046
21047 * include/multiboot.h: Move multiboot definitions to one file. Rename
21048 many definitions to not get grub specific.
21049 * include/multiboot2.h: Create header with multiboot 2 definitions.
21050 * include/grub/multiboot.h: Header for grub specific function
21051 prototypes and definitions.
21052 * include/grub/multiboot2.h: Likewise.
21053 * include/grub/multiboot_loader.h: Likewise.
21054 * include/grub/i386/pc/multiboot.h: Removed.
21055 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
21056
21057 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
21058 and 2 to allow for one multiboot and module commands.
21059 * loader/multiboot2.c: Add multiboot2 functionality.
21060 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
21061 and definition names.
21062 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
21063 2 functions.
21064 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
21065 ieee1275 specific multiboot2 code.
21066
21067 * kern/i386/pc/startup.S: Change headers and definition names for
21068 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
21069
daf0f0ba 210702007-07-22 Robert Millan <rmh@aybabtu.com>
21071
21072 * geninitheader.sh: Process file specified in first parameter rather
21073 than hardcoding grub_modules_init.lst.
fe6b695a 21074 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 21075 than hardcoding grub_modules_init.h.
21076
21077 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
21078 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
21079 grub_probe_init.[ch] and grub_setup_init.[ch].
21080
21081 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
21082 grub_modules_init.h with grub_emu_init.h.
21083 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
21084 grub_probe_init.[ch] files.
21085 * conf/i386-efi.rmk: Likewise.
21086 * conf/i386-pc.rmk: Likewise.
21087 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
21088 grub_setup_init.[ch] files.
21089
21090 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
21091 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
21092 to initialize modules rather than a list of hardcoded functions.
21093 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
21094 grub_init_all() to initialize modules rather than a list of hardcoded
21095 functions.
21096
54cdc1cc 210972007-07-22 Robert Millan <rmh@aybabtu.com>
21098
21099 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21100 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
21101
ad0686cc 211022007-07-22 Robert Millan <rmh@aybabtu.com>
21103
21104 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
21105 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
21106 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
21107 flag when running on SmartFirmware.
21108 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
21109 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
21110 was set.
21111
21112 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21113 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
21114 rather than decreasing it.
21115
21116 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
21117 there's not enough space to do it, fail in the same way as when it
21118 can't be done because there are no partitions.
21119
21120 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
21121 when nvsetenv failed.
21122
969c02ec 211232007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21124
21125 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
21126 because this rule is automatically generated.
21127 (grub-mkrescue): Removed for the same reason as above.
21128
5a79f472 211292007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21130
21131 Migrate to GNU General Public License Version 3.
f19dbdb7 21132
5a79f472 21133 * COPYING: Replaced with the plain text version of GPLv3.
21134
21135 * config.guess: Updated from gnulib.
21136 * config.sub: Likewise.
21137
21138 * geninit.sh: Output a GPLv3 copyright notice.
21139 * geninitheader.sh: Likewise.
21140 * genmodsrc.sh: Likewise.
21141 * gensymlist.sh.in: Likewise.
21142
21143 * boot/i386/pc/boot.S: Upgraded to GPLv3.
21144 * boot/i386/pc/diskboot.S: Likewise.
21145 * boot/i386/pc/pxeboot.S: Likewise.
21146 * commands/blocklist.c: Likewise.
21147 * commands/boot.c: Likewise.
21148 * commands/cat.c: Likewise.
21149 * commands/cmp.c: Likewise.
21150 * commands/configfile.c: Likewise.
21151 * commands/echo.c: Likewise.
21152 * commands/help.c: Likewise.
21153 * commands/ls.c: Likewise.
21154 * commands/search.c: Likewise.
21155 * commands/terminal.c: Likewise.
21156 * commands/test.c: Likewise.
21157 * commands/videotest.c: Likewise.
21158 * commands/i386/cpuid.c: Likewise.
21159 * commands/i386/pc/halt.c: Likewise.
21160 * commands/i386/pc/play.c: Likewise.
21161 * commands/i386/pc/reboot.c: Likewise.
21162 * commands/i386/pc/vbeinfo.c: Likewise.
21163 * commands/i386/pc/vbetest.c: Likewise.
21164 * commands/ieee1275/halt.c: Likewise.
21165 * commands/ieee1275/reboot.c: Likewise.
21166 * commands/ieee1275/suspend.c: Likewise.
21167 * disk/loopback.c: Likewise.
21168 * disk/lvm.c: Likewise.
21169 * disk/raid.c: Likewise.
21170 * disk/efi/efidisk.c: Likewise.
21171 * disk/i386/pc/biosdisk.c: Likewise.
21172 * disk/ieee1275/ofdisk.c: Likewise.
21173 * font/manager.c: Likewise.
21174 * fs/affs.c: Likewise.
21175 * fs/ext2.c: Likewise.
21176 * fs/fat.c: Likewise.
21177 * fs/fshelp.c: Likewise.
21178 * fs/hfs.c: Likewise.
21179 * fs/hfsplus.c: Likewise.
21180 * fs/iso9660.c: Likewise.
21181 * fs/jfs.c: Likewise.
21182 * fs/minix.c: Likewise.
21183 * fs/sfs.c: Likewise.
21184 * fs/ufs.c: Likewise.
21185 * fs/xfs.c: Likewise.
21186 * hello/hello.c: Likewise.
21187 * include/grub/acorn_filecore.h: Likewise.
21188 * include/grub/arg.h: Likewise.
21189 * include/grub/bitmap.h: Likewise.
21190 * include/grub/boot.h: Likewise.
21191 * include/grub/cache.h: Likewise.
21192 * include/grub/device.h: Likewise.
21193 * include/grub/disk.h: Likewise.
21194 * include/grub/dl.h: Likewise.
21195 * include/grub/elfload.h: Likewise.
21196 * include/grub/env.h: Likewise.
21197 * include/grub/err.h: Likewise.
21198 * include/grub/file.h: Likewise.
21199 * include/grub/font.h: Likewise.
21200 * include/grub/fs.h: Likewise.
21201 * include/grub/fshelp.h: Likewise.
21202 * include/grub/gzio.h: Likewise.
21203 * include/grub/hfs.h: Likewise.
21204 * include/grub/kernel.h: Likewise.
21205 * include/grub/loader.h: Likewise.
21206 * include/grub/lvm.h: Likewise.
21207 * include/grub/misc.h: Likewise.
21208 * include/grub/mm.h: Likewise.
21209 * include/grub/net.h: Likewise.
21210 * include/grub/normal.h: Likewise.
21211 * include/grub/parser.h: Likewise.
21212 * include/grub/partition.h: Likewise.
21213 * include/grub/pc_partition.h: Likewise.
21214 * include/grub/raid.h: Likewise.
21215 * include/grub/rescue.h: Likewise.
21216 * include/grub/script.h: Likewise.
21217 * include/grub/setjmp.h: Likewise.
21218 * include/grub/symbol.h: Likewise.
21219 * include/grub/term.h: Likewise.
21220 * include/grub/terminfo.h: Likewise.
21221 * include/grub/tparm.h: Likewise.
21222 * include/grub/types.h: Likewise.
21223 * include/grub/video.h: Likewise.
21224 * include/grub/efi/api.h: Likewise.
21225 * include/grub/efi/chainloader.h: Likewise.
21226 * include/grub/efi/console.h: Likewise.
21227 * include/grub/efi/console_control.h: Likewise.
21228 * include/grub/efi/disk.h: Likewise.
21229 * include/grub/efi/efi.h: Likewise.
21230 * include/grub/efi/pe32.h: Likewise.
21231 * include/grub/efi/time.h: Likewise.
21232 * include/grub/i386/linux.h: Likewise.
21233 * include/grub/i386/setjmp.h: Likewise.
21234 * include/grub/i386/types.h: Likewise.
21235 * include/grub/i386/efi/kernel.h: Likewise.
21236 * include/grub/i386/efi/loader.h: Likewise.
21237 * include/grub/i386/efi/time.h: Likewise.
21238 * include/grub/i386/pc/biosdisk.h: Likewise.
21239 * include/grub/i386/pc/boot.h: Likewise.
21240 * include/grub/i386/pc/chainloader.h: Likewise.
21241 * include/grub/i386/pc/console.h: Likewise.
21242 * include/grub/i386/pc/init.h: Likewise.
21243 * include/grub/i386/pc/kernel.h: Likewise.
21244 * include/grub/i386/pc/loader.h: Likewise.
21245 * include/grub/i386/pc/memory.h: Likewise.
21246 * include/grub/i386/pc/multiboot.h: Likewise.
21247 * include/grub/i386/pc/serial.h: Likewise.
21248 * include/grub/i386/pc/time.h: Likewise.
21249 * include/grub/i386/pc/vbe.h: Likewise.
21250 * include/grub/i386/pc/vbeblit.h: Likewise.
21251 * include/grub/i386/pc/vbefill.h: Likewise.
21252 * include/grub/i386/pc/vbeutil.h: Likewise.
21253 * include/grub/i386/pc/vga.h: Likewise.
21254 * include/grub/ieee1275/ieee1275.h: Likewise.
21255 * include/grub/ieee1275/ofdisk.h: Likewise.
21256 * include/grub/powerpc/libgcc.h: Likewise.
21257 * include/grub/powerpc/setjmp.h: Likewise.
21258 * include/grub/powerpc/types.h: Likewise.
21259 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
21260 * include/grub/powerpc/ieee1275/console.h: Likewise.
21261 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
21262 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21263 * include/grub/powerpc/ieee1275/loader.h: Likewise.
21264 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
21265 * include/grub/powerpc/ieee1275/time.h: Likewise.
21266 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
21267 * include/grub/sparc64/libgcc.h: Likewise.
21268 * include/grub/sparc64/setjmp.h: Likewise.
21269 * include/grub/sparc64/types.h: Likewise.
21270 * include/grub/sparc64/ieee1275/console.h: Likewise.
21271 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21272 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21273 * include/grub/sparc64/ieee1275/time.h: Likewise.
21274 * include/grub/util/biosdisk.h: Likewise.
21275 * include/grub/util/getroot.h: Likewise.
21276 * include/grub/util/lvm.h: Likewise.
21277 * include/grub/util/misc.h: Likewise.
21278 * include/grub/util/raid.h: Likewise.
21279 * include/grub/util/resolve.h: Likewise.
21280 * io/gzio.c: Likewise.
21281 * kern/device.c: Likewise.
21282 * kern/disk.c: Likewise.
21283 * kern/dl.c: Likewise.
21284 * kern/elf.c: Likewise.
21285 * kern/env.c: Likewise.
21286 * kern/err.c: Likewise.
21287 * kern/file.c: Likewise.
21288 * kern/fs.c: Likewise.
21289 * kern/loader.c: Likewise.
21290 * kern/main.c: Likewise.
21291 * kern/misc.c: Likewise.
21292 * kern/mm.c: Likewise.
21293 * kern/parser.c: Likewise.
21294 * kern/partition.c: Likewise.
21295 * kern/rescue.c: Likewise.
21296 * kern/term.c: Likewise.
21297 * kern/efi/efi.c: Likewise.
21298 * kern/efi/init.c: Likewise.
21299 * kern/efi/mm.c: Likewise.
21300 * kern/i386/dl.c: Likewise.
21301 * kern/i386/efi/init.c: Likewise.
21302 * kern/i386/efi/startup.S: Likewise.
21303 * kern/i386/pc/init.c: Likewise.
21304 * kern/i386/pc/lzo1x.S: Likewise.
21305 * kern/i386/pc/startup.S: Likewise.
21306 * kern/ieee1275/ieee1275.c: Likewise.
21307 * kern/powerpc/cache.S: Likewise.
21308 * kern/powerpc/dl.c: Likewise.
21309 * kern/powerpc/ieee1275/cmain.c: Likewise.
21310 * kern/powerpc/ieee1275/crt0.S: Likewise.
21311 * kern/powerpc/ieee1275/init.c: Likewise.
21312 * kern/powerpc/ieee1275/openfw.c: Likewise.
21313 * kern/sparc64/cache.S: Likewise.
21314 * kern/sparc64/dl.c: Likewise.
21315 * kern/sparc64/ieee1275/init.c: Likewise.
21316 * kern/sparc64/ieee1275/openfw.c: Likewise.
21317 * loader/efi/chainloader.c: Likewise.
21318 * loader/efi/chainloader_normal.c: Likewise.
21319 * loader/i386/efi/linux.c: Likewise.
21320 * loader/i386/efi/linux_normal.c: Likewise.
21321 * loader/i386/pc/chainloader.c: Likewise.
21322 * loader/i386/pc/chainloader_normal.c: Likewise.
21323 * loader/i386/pc/linux.c: Likewise.
21324 * loader/i386/pc/linux_normal.c: Likewise.
21325 * loader/i386/pc/multiboot.c: Likewise.
21326 * loader/i386/pc/multiboot_normal.c: Likewise.
21327 * loader/powerpc/ieee1275/linux.c: Likewise.
21328 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21329 * normal/arg.c: Likewise.
21330 * normal/cmdline.c: Likewise.
21331 * normal/command.c: Likewise.
21332 * normal/completion.c: Likewise.
21333 * normal/execute.c: Likewise.
21334 * normal/function.c: Likewise.
21335 * normal/lexer.c: Likewise.
21336 * normal/main.c: Likewise.
21337 * normal/menu.c: Likewise.
21338 * normal/menu_entry.c: Likewise.
21339 * normal/misc.c: Likewise.
21340 * normal/parser.y: Likewise.
21341 * normal/script.c: Likewise.
21342 * normal/i386/setjmp.S: Likewise.
21343 * normal/powerpc/setjmp.S: Likewise.
21344 * normal/sparc64/setjmp.S: Likewise.
21345 * partmap/acorn.c: Likewise.
21346 * partmap/amiga.c: Likewise.
21347 * partmap/apple.c: Likewise.
21348 * partmap/gpt.c: Likewise.
21349 * partmap/pc.c: Likewise.
21350 * partmap/sun.c: Likewise.
21351 * term/gfxterm.c: Likewise.
21352 * term/terminfo.c: Likewise.
21353 * term/efi/console.c: Likewise.
21354 * term/i386/pc/console.c: Likewise.
21355 * term/i386/pc/serial.c: Likewise.
21356 * term/i386/pc/vesafb.c: Likewise.
21357 * term/i386/pc/vga.c: Likewise.
21358 * term/ieee1275/ofconsole.c: Likewise.
21359 * util/biosdisk.c: Likewise.
21360 * util/console.c: Likewise.
21361 * util/genmoddep.c: Likewise.
21362 * util/getroot.c: Likewise.
21363 * util/grub-emu.c: Likewise.
21364 * util/grub-mkdevicemap.c: Likewise.
21365 * util/grub-probe.c: Likewise.
21366 * util/lvm.c: Likewise.
21367 * util/misc.c: Likewise.
21368 * util/raid.c: Likewise.
21369 * util/resolve.c: Likewise.
21370 * util/update-grub.in: Likewise.
21371 * util/update-grub_lib.in: Likewise.
21372 * util/grub.d/00_header.in: Likewise.
21373 * util/grub.d/10_hurd.in: Likewise.
21374 * util/grub.d/10_linux.in: Likewise.
21375 * util/i386/efi/grub-install.in: Likewise.
21376 * util/i386/efi/grub-mkimage.c: Likewise.
21377 * util/i386/pc/grub-install.in: Likewise.
21378 * util/i386/pc/grub-mkimage.c: Likewise.
21379 * util/i386/pc/grub-mkrescue.in: Likewise.
21380 * util/i386/pc/grub-setup.c: Likewise.
21381 * util/i386/pc/misc.c: Likewise.
21382 * util/powerpc/ieee1275/grub-install.in: Likewise.
21383 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21384 * util/powerpc/ieee1275/misc.c: Likewise.
21385 * video/bitmap.c: Likewise.
21386 * video/video.c: Likewise.
21387 * video/i386/pc/vbe.c: Likewise.
21388 * video/i386/pc/vbeblit.c: Likewise.
21389 * video/i386/pc/vbefill.c: Likewise.
21390 * video/i386/pc/vbeutil.c: Likewise.
21391 * video/readers/tga.c: Likewise.
21392
3572d015 213932007-07-02 Robert Millan <rmh@aybabtu.com>
21394
21395 * conf/i386-efi.rmk: Replace obsolete reference to
21396 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21397 with util/getroot.c.
21398 * conf/powerpc-ieee1275.rmk: Likewise.
21399 * conf/sparc64-ieee1275.rmk: Likewise.
21400
21401 * util/grub-emu.c (main): Fix unchecked pointer handling.
21402
2c2a681b 214032007-07-02 Robert Millan <rmh@aybabtu.com>
21404
21405 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21406 invocation to fail, in order to support partition-less media.
21407
21408 * util/i386/pc/grub-install.in: Likewise.
21409
21410 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21411 which fs or partmap modules are needed (akin to its sister scripts).
21412
21413 Also use grub-probe to get rid of unportable /proc/mounts check.
21414
21415 Print the same informational message that the other scripts do, before
fe6b695a 21416 exiting.
2c2a681b 21417
6193defe 214182007-06-23 Robert Millan <rmh@aybabtu.com>
21419
fe6b695a 21420 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 21421 a font file can be found and, if so, echo the GRUB path to it.
21422
21423 * util/update-grub.in: Handle multiple terminals depending on user
21424 input, platform availability and font file presence. Propagate
21425 variables of our findings to /etc/grub.d/ children.
21426
21427 * util/grub.d/00_header.in: Handle multiple terminals, based on
21428 environment setup by update-grub.
21429
eface1dc 214302007-06-23 Robert Millan <rmh@aybabtu.com>
21431
ba50d28f 21432 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 21433
bf697e28 214342007-06-21 Robert Millan <rmh@aybabtu.com>
21435
21436 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21437 indicate end of data section in kernel image.
21438 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21439 GRUB_KERNEL_MACHINE_DATA_END.
21440
21441 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21442 space for it.
21443 * kern/i386/efi/startup.S: Likewise.
21444
21445 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21446 during image generation. Implement --prefix option to override this
21447 patch.
21448 * util/i386/efi/grub-mkimage.c: Likewise.
21449
21450 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21451 code to make path relative to its root into a separate function.
21452
21453 * util/i386/pc/grub-install.in: Use newly provided
21454 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21455 pass the result to grub-install --prefix.
21456
baa574b4 214572007-06-13 Robert Millan <rmh@aybabtu.com>
21458
21459 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21460 DEFAULT_DEVICE_MAP.
21461 * util/grub-emu.c: Use above definitions from misc.h instead of
21462 defining them.
21463 * util/grub-mkdevicemap.c: Likewise.
21464 * util/i386/pc/grub-setup.c: Likewise.
21465 * util/grub-probe.c: Likewise.
21466 (probe): Abort with grub_util_error() when either
21467 grub_guess_root_device or grub_util_get_grub_dev fails.
21468
0215dcbf 214692007-06-12 Robert Millan <rmh@aybabtu.com>
21470
21471 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21472 "pager" assignment.
21473 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21474 "pcdata".
21475 * util/grub-probe.c (probe): Likewise for "drive_name".
21476
8af2ab7b 214772007-06-11 Robert Millan <rmh@aybabtu.com>
21478
21479 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21480 not just the cdrom one.
21481
59d31694 214822007-06-11 Robert Millan <rmh@aybabtu.com>
21483
21484 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21485 Add --pkglibdir=DIR option to override pkglibdir.
21486 Mention --image-type=TYPE in help output.
21487 Fix --grub-mkimage (it was a no-op).
fe6b695a 21488 Abort gracefully when no parameter is given.
59d31694 21489
7ee367e4 214902007-06-11 Robert Millan <rmh@aybabtu.com>
21491
21492 * util/i386/pc/grub-mkrescue.in: New file.
21493 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21494 * Makefile.in: Handle bin_SCRIPTS.
21495
29b0ed46 214962007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21497
21498 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21499 list of video modes.
21500
c0f90770 215012007-06-06 Robert Millan <rmh@aybabtu.com>
21502
21503 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21504 file doesn't exist, or if it is in a filesystem grub can't read.
21505
21506 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21507 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21508 header comment to fit in 80 columns when the variables are resolved.
21509
21510 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21511 could be identified by update-grub. Remove redundant check for
fe6b695a 21512 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 21513 handles that).
21514
fb36dc26 215152007-06-04 Robert Millan <rmh@aybabtu.com>
21516
21517 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21518
21519 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21520
21521 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21522
0c68c93e 215232007-06-04 Robert Millan <rmh@aybabtu.com>
21524
21525 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21526
21527 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21528 grub_apple_partition_map_fini.
21529
21530 * util/biosdisk.c
21531 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21532 to access >2 TiB disks).
21533
21534 Print disk->total_sectors with %llu instead of %lu, since this
21535 variable is always 64-bit (prevents wrong disk size from being displayed
21536 on either >2 TiB disk or big-endian CPU).
21537
21538 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21539 into a generic case that supports all (sane) partition maps.
21540
21541 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21542 breaks big-endian.
21543
21544 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21545 and grub_apple_partition_map_fini() after that.
21546
0f23eb74 215472007-06-01 Robert Millan <rmh@aybabtu.com>
21548
21549 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21550
21551 * util/grub.d/00_header.in: Only enable gfxterm when
21552 convert_system_path_to_grub_path() succeeds.
21553
42c71976 215542007-05-20 Robert Millan <rmh@aybabtu.com>
21555
21556 * util/update-grub_lib.in: New file.
21557 * DISTLIST: Add update-grub_lib.in.
21558 * conf/common.rmk: Generate update-grub_lib and install it in
21559 $(lib_DATA).
21560 * Makefile.in: Add install routine for $(lib_DATA).
21561
21562 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21563 function provided by update-grub_lib to support arbitrary paths of
21564 unifont.pff.
21565 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21566 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21567
5beb2291 215682007-05-19 Robert Millan <rmh@aybabtu.com>
21569
21570 * commands/i386/cpuid.c: New module.
21571 * DISTLIST: Add it.
21572 * conf/i386-efi.rmk: Enable cpuid.mod.
21573 * conf/i386-pc.rmk: Likewise.
21574
7262eca1 215752007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21576
21577 * kern/disk.c (grub_disk_read): Check return value of
21578 grub_realloc().
21579
260ba823 215802007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21581
21582 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21583 arrays.
21584 * disk/raid.c (grub_raid_open): Likewise.
21585
1ecb6cf2 215862007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21587
21588 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21589 stack instead of on the heap.
21590
21591 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21592 before doing a read on it.
21593
21594 * configure.ac: Only use -fno-stack-protector for the target
21595 environment.
f19dbdb7 21596
21c8cbb1 215972007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21598
21599 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21600 __attribute_ ((unused)) to mode_type argument.
21601
21602 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 21603
21c8cbb1 21604 * kern/misc.c (memcmp): Fix prototype.
21605
21606 * include/grub/partition.h [GRUB_UTIL]
21607 (grub_gpt_partition_map_init): Add prototype.
21608 (grub_gpt_partition_map_fini): Likewise.
21609
21610 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21611 at the right place.
21612
21613 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21614 (grub_fat_read_data): Likewise.
21615 (grub_fat_find_dir): Likewise.
21616
21617 * font/manager.c (find_glyph): Make table a const.
21618 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 21619
849d55d3 216202007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21621
21622 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21623 code, first search for device in /dev/mapper, then in /dev.
21624 (grub_util_get_grub_dev): New function.
21625 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21626 prototype.
21627 * util/grub-probe.c (probe): Remove check for RAID, call
21628 grub_util_get_grub_dev() instead of
21629 grub_util_biosdisk_get_grub_dev().
21630 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21631 grub_util_biosdisk_get_grub_dev().
21632 * util/i386/pc/grub-setup.c (main): Likewise.
21633
8fff7c2f 216342007-05-16 Robert Millan <rmh@aybabtu.com>
21635
21636 * DISTLIST: Update for the latest changes.
21637 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21638 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21639 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21640 grub/util/biosdisk.h.
21641 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21642 grub/util/biosdisk.h.
21643
48e12b52 216442007-05-16 Robert Millan <rmh@aybabtu.com>
21645
21646 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21647
46b9d128 216482007-05-16 Robert Millan <rmh@aybabtu.com>
21649
21650 * util/i386/efi/grub-install.in: New.
21651 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21652 newly added grub-install.
21653 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21654 include.
21655 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21656 grub/util/biosdisk.h.
21657 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21658 grub/util/biosdisk.h.
21659
2d1a40a9 216602007-05-16 Robert Millan <rmh@aybabtu.com>
21661
21662 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21663 * include/grub/util/biosdisk.h: ... here.
21664 * util/i386/pc/biosdisk.c: Moved to ...
21665 * util/biosdisk.c: ... here.
21666 * util/i386/pc/getroot.c: Moved to ...
21667 * util/getroot.c: ... here.
21668 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21669 * util/grub-mkdevicemap.c: ... here.
21670 * util/i386/pc/grub-probe.c: Moved to ...
21671 * util/grub-probe.c: ... here.
21672
9e26e3bc 216732007-05-15 Robert Millan <rmh@aybabtu.com>
21674
21675 * util/update-grub.in: Remove duplicated line in grub.cfg header
21676 message.
21677
57f96397 216782007-05-13 Robert Millan <rmh@aybabtu.com>
21679
21680 * util/update-grub.in: Fix a few assumptions about the devices holding
21681 /, /boot and /boot/grub being the same.
21682 * util/grub.d/00_header.in: Likewise.
21683 * util/grub.d/10_hurd.in: Likewise.
21684 * util/grub.d/10_linux.in: Likewise.
21685
21686 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21687 patterns. Use that to define the `.old' suffix as older than `'.
21688
21689 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21690
21691 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21692 the grub.cfg header message.
21693
2e610d62 216942007-05-11 Robert Millan <rmh@aybabtu.com>
21695
21696 * util/update-grub.in: Create device.map if it doesn't already exist,
21697 before attempting to run grub-probe.
21698 Check for grub-probe and grub-mkdevicemap with the same code
21699 grub-install is using.
21700 Remove test mode.
21701
3f6a10ef 217022007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21703
21704 * Makefile.in: Add the datarootdir autoconf variable.
21705
02e7b75e 217062007-05-09 Robert Millan <rmh@aybabtu.com>
21707
21708 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 21709 fail gracefully if dev->disk->partition == NULL.
02e7b75e 21710
75f396cc 217112007-05-07 Robert Millan <rmh@aybabtu.com>
21712
21713 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21714 determine partition map module.
21715 * util/i386/pc/grub-install.in: Use this feature to decide which
21716 partition module to load, instead of hardcoding pc and gpt.
21717
da65cb36 217182007-05-07 Robert Millan <rmh@aybabtu.com>
21719
21720 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21721 source directory differs from build directory.
21722
b57d6a91 217232007-05-05 Robert Millan <rmh@aybabtu.com>
21724
21725 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21726 initialisation.
21727
509d00f1 217282007-05-05 Robert Millan <rmh@aybabtu.com>
21729
21730 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21731
c48f23ef 217322007-05-05 Robert Millan <rmh@aybabtu.com>
21733
21734 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21735 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21736
20b97658 217372007-05-05 Robert Millan <rmh@aybabtu.com>
21738
21739 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21740 (grub_probe_SOURCES): Likewise.
21741 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21742 GPT and initialize dos_part and bsd_part accordingly.
21743 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21744 install_bsd_part.
21745 (main): Activate gpt module for use during partition identification,
21746 and deactivate it afterwards.
21747 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21748 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21749 partition identification, and deactivate it afterwards.
21750
99123174 217512007-05-05 Robert Millan <rmh@aybabtu.com>
21752
21753 * term/i386/pc/console.c (grub_console_fini): Call
21754 grub_term_set_current() before grub_term_unregister().
21755
ebd97f6e 217562007-05-04 Robert Millan <rmh@aybabtu.com>
21757
21758 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21759 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21760 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21761 and update-grub_DATA.
21762 * conf/common.rmk: Build and install update-grub components.
21763 * conf/common.mk: Regenerate.
21764 * util/update-grub.in: New. Core of update-grub.
21765 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21766 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21767 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21768 * util/grub.d/README: New. Document grub.d directory layout.
21769
b06a264d 217702007-05-01 Robert Millan <rmh@aybabtu.com>
21771
21772 * util/grub-emu.c: Move initialization functions
21773 grub_util_biosdisk_init() and grub_init_all() before
21774 grub_util_biosdisk_get_grub_dev(), which relies on them.
21775
41f0050e 217762007-04-19 Robert Millan <rmh@aybabtu.com>
21777
21778 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21779 it is used later.
21780
04582bb3 217812007-04-18 Jerone Young <jerone@gmail.com>
21782
f19dbdb7 21783 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 21784 stanza.
21785
08db4632 217862007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 21787
08db4632 21788 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21789 continue on and look for device node with real device name.
21790
801b76be 217912007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 21792
fe6b695a 21793 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 21794 ability.
21795 * Makefile.in: Add autoconf package transformation code.
21796 * util/i386/pc/grub-install.in: Likewise.
21797 * util/powerpc/ieee1275/grub-install.in: Likewise.
21798
6795c4e1 217992007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21800
21801 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21802 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21803 (EXT2_REVISION): Likewise.
21804 (EXT2_INODE_SIZE): Likewise.
21805 (struct grub_ext2_block_group): Added a missing member
21806 "used_dirs".
21807 (grub_ext2_read_inode): Divide by the inode size in a superblock
21808 instead of 128 to obtain INODES_PER_BLOCK.
21809 Use the macro EXT2_INODE_SIZE instead of directly using
21810 SBLOCK->INODE_SIZE.
21811
d70af616 218122007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21813
21814 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21815 superblock instead of the structure size to compute an
21816 offset. This fixes the problem that GRUB could not read a
21817 filesystem when inode size is different from 128-byte.
21818
3b801603 218192007-03-05 Marco Gerards <marco@gnu.org>
21820
21821 * normal/main.c (read_config_file): When "menu" is not set, create
21822 an initial context.
21823
4785bfe4 218242007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21825
21826 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21827 (HEAP_LIMIT): New macro.
21828 (grub_claim_heap): Claim memory up to `heaplimit'.
21829
a0cbb023 218302007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21831
21832 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21833 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21834 (_start): Likewise.
21835 (grub_arch_modules_addr): Return address after `_end'.
21836 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21837 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21838 (add_segments): Calculate `_end' from phdr size and location.
21839 (ALIGN_UP): Moved to ...
21840 * include/grub/misc.h: here.
21841 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21842 New macro.
21843 (GRUB_IEEE1275_MODULE_BASE): Removed.
21844
fd7d8eba 218452007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21846
21847 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21848 loop boundary.
21849
9b09e6fc 218502007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21851
21852 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21853 All users updated.
21854 (grub_elf64_load_hook_t): Likewise.
21855 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21856 debug output.
21857
3ce27299 218582007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21859
21860 * kern/mm.c: Update copyright.
21861 (grub_mm_debug): Correct syntax error.
21862 (grub_mm_dump_free): New function.
21863 (grub_debug_free): Call `grub_free'.
21864 * include/grub/mm.h: Update copyright.
21865 (grub_mm_dump_free): Add declaration.
21866
077d5fee 218672007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21868
21869 * include/grub/ieee1275/ieee1275.h: Update copyright.
21870 * kern/powerpc/ieee1275/init.c: Likewise.
21871 * kern/powerpc/ieee1275/openfw.c: Likewise.
21872
21873 * loader/powerpc/ieee1275/linux.c: Likewise.
21874 * include/grub/elfload.h: Likewise.
21875 * kern/elf.c: Likewise.
21876 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21877 callers.
21878 (grub_elf64_load): Likewise.
21879 (grub_elf32_load_segment): Move to a nested function.
21880 (grub_elf64_load_segment): Likewise.
21881
dc946850 218822007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21883
21884 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21885 prototype.
21886 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21887 (grub_heap_len): Likewise.
21888 (HEAP_SIZE): New macro.
21889 (grub_claim_heap): New function.
21890 (grub_machine_init): Don't claim heap directly. Call
21891 `grub_claim_heap'.
21892 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21893 (grub_available_iterate): New function.
21894
baa2a121 218952007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21896
21897 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21898 * configure.ac: Use it for testing the HOST and TARGET compilers.
21899
4fe9862e 219002006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21901
21902 * Makefile.in (enable_grub_emu): New variable.
21903 * configure.ac (--enable-grub-emu): New option.
21904 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21905 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21906 * conf/i386-pc.rmk: Likewise.
21907 * conf/powerpc-ieee1275.rmk: Likewise.
21908 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21909
a8aa5762 219102006-12-12 Marco Gerards <marco@gnu.org>
21911
21912 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21913
21914 * kern/env.c (grub_env_unset): Don't free the member `value' when
21915 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21916 pointer.
21917
21918 * normal/main.c (current_menu): Removed.
21919 (free_menu): Unset the `menu' environment variable.
21920 (grub_normal_menu_addentry): Make use of the environment variable
21921 `menu', instead of using the global `current_menu'. Allocate
21922 memory for the sourcecode of this entry.
21923 (read_config_file): New argument `nested', changed all callers.
21924 Only in the case of a new context, initialize a new menu. Set the
21925 `menu' environment variable.
21926 (grub_normal_execute): Don't set and unset the environment
21927 variable `menu' here anymore. Only free the menu when leaving the
21928 context.
21929
21930 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21931 leak.
21932
957b3a3e 219332006-12-11 Marco Gerards <marco@gnu.org>
21934
21935 * normal/menu_entry.c (run): Fix off by one bug so the last line
21936 is executed. Move the loader check to outside the loop.
21937
ef875714 219382006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21939
21940 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21941
4e739985 219422006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21943
21944 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21945 the number of sectors. Reported by Andrey Shuvikov
21946 <mr_hyro@yahoo.com>.
f19dbdb7 21947
790707f2 219482006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21949
21950 * kern/disk.c (grub_disk_read): When there is a read error, always
21951 try to read only the necessary data.
f19dbdb7 21952
790707f2 21953 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21954 disk/raid.c.
21955 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21956 prototype.
21957 [GRUB_UTIL] (grub_raid_fini): Likewise.
21958 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 21959 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 21960 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21961 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21962 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21963 and grub_raid_fini().
f19dbdb7 21964
03e58196 219652006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21966
21967 * include/grub/types.h (__unused): Rename to UNUSED.
21968 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21969 (grub_elf64_size): Likewise.
f19dbdb7 21970
ae4f23bf 219712006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21972
21973 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21974 grub_error_push and grub_error_pop in the error-handling path.
21975 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21976 length.
21977
2166cc83 219782006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21979
21980 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21981 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21983 (kernel_elf_SOURCES): Likewise.
21984 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21985 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21986 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21987 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21988 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21989 (elf_mod_SOURCES): New variable.
21990 (elf_mod_CFLAGS): Likewise.
21991 (elf_mod_LDFLAGS): Likewise.
21992 * include/grub/types.h (__unused): New macro.
21993 * include/grub/elfload.h: New file.
21994 * kern/elf.c: Likewise.
21995 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21996 (ELF32_LOADMASK): New macro.
21997 (ELF64_LOADMASK): Likewise.
21998 (vmlinux): Removed.
21999 (grub_linux_load32): New function.
22000 (grub_linux_load64): Likewise.
22001 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
22002 Use grub_elf_t instead of grub_file_t.
22003
a09d5aa5 220042006-11-02 Hollis Blanchard <hollis@penguinppc.org>
22005
22006 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
22007 `catch_result' to struct set_color_args.
22008
d976fc51 220092006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
22010
22011 * normal/menu.c: Include grub/script.h.
22012 * normal/menu_entry.c: Likewise.
22013 * include/grub/normal.h: Do not include grub/script.h.
22014
67507549 220152006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22016
22017 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
22018
69203a99 220192006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22020
22021 * kern/disk.c (grub_disk_open): Print debug messages when opening a
22022 disk.
22023 (grub_disk_close): Print debug messages when closing a disk.
22024 (grub_disk_read): Print debug messages when disk read fails.
22025 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
22026 filesystem type.
22027 * kern/partition.c: Include misc.h.
22028 (grub_partition_iterate): Print debug messages when detecting
22029 partition type.
22030
e2b8278c 220312006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22032
22033 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
22034 is negative.
22035 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
22036
97b2f2ff 220372006-10-26 Hollis Blanchard <hollis@penguinppc.org>
22038
22039 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22040 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
22041
6555d655 220422006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
22043
22044 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
22045 instead of sizeof(lv). Patch by Michael Guntsche.
22046
4d42b77f 220472006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
22048
22049 * disk/lvm.c: Rename VGS to VG_LIST.
22050 (grub_lvm_iterate): Change VGS->LV to VG-LV.
22051 (grub_lvm_open): Likewise.
22052 Thanks to Michael Guntsche for finding this bug.
22053
5d74d927 220542006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
22055
22056 * configure.ac (AC_INIT): Bumped to 1.95.
22057
a1bb27e4 220582006-10-14 Robert Millan <rmh@aybabtu.com>
22059
22060 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
22061 with "/dev/.static/dev/md".
22062
e0994b8b 220632006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22064
22065 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
22066 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
22067 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
22068 DRIVE_NAME are always freed.
22069
22070 * util/i386/pc/biosdisk.c (make_device_name): Add one into
22071 DOS_PART, as a DOS partition is counted from one instead of zero
22072 now. Reported by Robert Millan.
22073
ddd5cee9 220742006-10-14 Robert Millan <rmh@aybabtu.com>
22075
22076 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
22077 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
22078 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
22079 string returned by grub_guess_root_device.
22080 * util/i386/pc/grub-setup.c: Likewise.
22081 * util/i386/pc/grub-probefs.c: Likewise.
22082
22083 * util/i386/pc/grub-probefs.c: Rename to ...
22084 * util/i386/pc/grub-probe.c: ... this.
22085 * DISTLIST: Remove grub-probefs, add grub-probe.
22086 * conf/i386-efi.rmk: Likewise.
22087 * conf/i386-pc.rmk: Likewise.
22088 * util/i386/pc/grub-install.in: Likewise.
22089
22090 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
22091 choose which information we want to print.
22092
2b002173 220932006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22094
22095 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
22096 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
22097 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
22098 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
22099 video/readers/tga.c and video/i386/pc/vbeutil.c.
22100
221012006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
22102
22103 Added support for RAID and LVM.
f19dbdb7 22104
2b002173 22105 * disk/lvm.c: New file.
22106 * disk/raid.c: Likewise.
22107 * include/grub/lvm.h: Likewise.
f19dbdb7 22108 * include/grub/raid.h: Likewise.
2b002173 22109 * include/grub/util/lvm.h: Likewise.
22110 * include/grub/util/raid.h: Likewise.
22111 * util/lvm.c: Likewise.
22112 * util/raid.c: Likewise.
22113
22114 * include/grub/disk.h (grub_disk_dev_id): Add
22115 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
22116 (grub_disk_get_size): New prototype.
22117 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
22118 returns a partition.
22119 (grub_disk_get_size): New function.
f19dbdb7 22120
2b002173 22121 * kern/i386/pc/init.c (make_install_device): Copy the prefix
22122 verbatim if grub_install_dos_part is -2.
22123
22124 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
22125 and LVM devices.
22126
22127 * util/i386/pc/grub-setup.c (setup): New argument
22128 MUST_EMBED. Force embedding of GRUB when the argument is
22129 true. Close FILE before returning.
22130 (main): Add support for RAID and LVM.
f19dbdb7 22131
2b002173 22132 * conf/common.rmk: Add RAID and LVM modules.
22133 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
22134 util/lvm.c.
22135 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
22136
22137 * kern/misc.c (grub_strstr): New function.
22138 * include/grub/misc.h (grub_strstr): New prototype.
22139
050548d0 221402006-10-10 Tristan Gingold <tristan.gingold@bull.net>
22141
22142 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
22143
da849d2d 221442006-10-05 Tristan Gingold <tristan.gingold@bull.net>
22145
22146 * kern/misc.c (grub_strtoull): Guess the base only if not
22147 specified.
22148
97b2f2ff 221492006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 22150
22151 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
22152 PowerMac support.
22153
97b2f2ff 221542006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 22155
22156 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
22157
22158 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
22159 Remove `flags' argument. All callers changed.
22160 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
22161 (IEEE1275_IHANDLE_INVALID): New variable.
22162 (IEEE1275_CELL_INVALID): New variable.
22163 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22164 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
22165 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
22166 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
22167 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
22168 codes from Open Firmware. All callers updated.
22169 (grub_ieee1275_next_property): Directly return Open Firmware return
22170 code.
22171 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22172 Standardize error checking from `grub_ieee1275_get_property'.
22173 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
22174 `devalias' to `aliases'. Correct comments. Consolidate error paths.
22175
97b2f2ff 221762006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 22177
22178 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
22179 `instance_to_package_args' to `instance_to_path_args'.
22180
22181 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
22182 `grub_ieee1275_chosen'.
22183
22184 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
22185 `grub_ieee1275_interpret'.
22186
97b2f2ff 221872006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 22188
22189 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
22190
97b2f2ff 221912006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 22192
22193 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
22194 (__cmpdi): Likewise.
22195
22196 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
22197 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
22198 `grub_ssize_t'.
22199
02bb8acc 22200 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 22201
22202 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
22203 to type `grub_ssize_t'.
22204 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
22205
7f9a8531 222062006-09-22 Marco Gerards <marco@gnu.org>
22207
22208 * normal/script.c (grub_script_create_cmdmenu): Skip leading
22209 newlines.
22210
b5ef1102 222112006-09-22 Marco Gerards <marco@gnu.org>
22212
22213 * commands/echo.c: New file.
22214
22215 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
22216
22217 * conf/common.rmk (echo_mod_SOURCES): New variable.
22218 (echo_mod_CFLAGS): Likewise.
22219 (echo_mod_LDFLAGS): Likewise.
22220
2cff3677 222212006-09-22 Marco Gerards <marco@gnu.org>
22222
22223 * normal/main.c (get_line): Malloc memory instead of using
22224 preallocated memory. Removed the arguments `cmdline' and
22225 `max_len'. Updated all callers.
22226
6ba4688b 222272006-09-22 Marco Gerards <marco@gnu.org>
22228
22229 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
22230 (normal_mod_DEPENDENCIES): Likewise.
22231
22232 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
22233 (normal_mod_DEPENDENCIES): Likewise.
22234
22235 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
22236
e02ac02c 222372006-09-22 Johan Rydberg <jrydberg@gnu.org>
22238
22239 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
22240 programs.
22241 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
22242 (normal_mod_DEPENDENCIES): Likewise.
22243 * conf/i386-pc.mk: Regenerate.
22244 * conf/i386-efi.mk: Likewise
22245 * conf/common.mk: Likewise.
22246 * conf/powerpc-ieee1275.mk: Likewise.
22247 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 22248
8d252e44 222492006-09-22 Robert Millan <rmh@aybabtu.com>
22250
22251 Sync with i386 version.
22252 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
22253 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
22254
209bf7ac 222552006-09-21 Robert Millan <rmh@aybabtu.com>
22256
22257 Import from GRUB Legacy (lib/device.c):
22258 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
22259 (init_device_map) [__linux__]: Add support for I2O devices.
22260
6b146090 222612006-09-14 Marco Gerards <marco@gnu.org>
22262
22263 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
22264 `-melf_i386'.
22265
e38600a8 222662006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 22267
22268 * util/i386/pc/grub-install.in: Skip menu.lst when removing
22269 /boot/grub/*.lst.
78fa1790 22270
2952da5d 22271 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 22272
2952da5d 22273 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
22274 before adding it to device.map.
22275
01b82a64 222762006-08-15 Johan Rydberg <jrydberg@gnu.org>
22277
fe6b695a 22278 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 22279 compiles a file; using the -MD option.
22280 * conf/common.mk: Regenerate.
22281 * conf/i386-pc.mk: Likewise.
22282 * conf/i386-efi.mk: Likewise.
22283 * conf/powerpc-ieee1275.mk: Likewise.
22284 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 22285
1064790d 222862006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
22287
22288 Move the prototypes of grub_setjmp and grub_longjmp to
22289 cpu/setjmp.h, so that each architecture may specify different
22290 attributes.
f19dbdb7 22291
1064790d 22292 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
22293 (grub_longjmp): Likewise.
22294 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
22295 (grub_longjmp): Likewise.
22296 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
22297 (grub_longjmp): Likewise.
22298
22299 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
22300 [!GRUB_UTIL] (grub_longjmp): Removed.
22301
29dda3ed 223022006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
22303
22304 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
22305 "color!" method does not return any value.
22306
ad2a06ed 223072006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22308
22309 * include/grub/bitmap.h: New file.
22310
22311 * include/grub/i386/pc/vbeutil.h: Likewise.
22312
22313 * video/bitmap.c: Likewise.
22314
22315 * video/readers/tga.c: Likewise.
22316
22317 * video/i386/pc/vbeutil.c: Likewise.
22318
22319 * commands/videotest.c: Code cleanup and updated to reflect to new
22320 video API.
22321
22322 * term/gfxterm.c: Likewise.
22323
22324 * video/video.c: Likewise.
22325
22326 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
22327 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
22328 (bitmap_mod_SOURCES): New entry.
22329 (bitmap_mod_CFLAGS): Likewise.
22330 (bitmap_mod_LDFLAGS): Likewise.
22331 (tga_mod_SOURCES): Likewise.
22332 (tga_mod_CFLAGS): Likewise.
22333 (tga_mod_LDFLAGS): Likewise.
22334
22335 * include/grub/video.h (grub_video_blit_operators): New enum type.
22336 (grub_video_render_target): Changed as forward declaration and moved
22337 actual definition to be video driver specific.
22338 (grub_video_adapter.blit_bitmap): Added blitting operator.
22339 (grub_video_adapter.blit_render_target): Likewise.
22340 (grub_video_blit_bitmap): Likewise.
22341 (grub_video_blit_render_target): Likewise.
22342
22343 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
22344 driver specific render target definition.
22345 (grub_video_vbe_map_rgba): Added driver internal helper.
22346 (grub_video_vbe_unmap_color): Updated to use
22347 grub_video_i386_vbeblit_info.
22348 (grub_video_vbe_get_video_ptr): Likewise.
22349
22350 * include/grub/i386/pc/vbeblit.h
22351 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
22352 grub_video_i386_vbeblit_info.
22353 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
22354 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
22355 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
22356 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
22357 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
22358 (grub_video_i386_vbeblit_index_index): Likewise.
22359 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
22360 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
22361 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
22362 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
22363 operator.
22364 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
22365 operator.
22366
22367 * video/i386/pc/vbeblit.c: Updated to reflect changes on
22368 include/grub/i386/pc/vbeblit.h.
22369
22370 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
22371 Updated to use grub_video_i386_vbeblit_info.
22372 (grub_video_i386_vbefill_R8G8B8): Likewise.
22373 (grub_video_i386_vbefill_index): Likewise.
22374 (grub_video_i386_vbefill): Added generic filler.
22375
22376 * video/i386/pc/vbefill.c: Updated to reflect changes on
22377 include/grub/i386/pc/vbefill.h.
22378
22379 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22380 grub_video_i386_vbeblit_info.
22381 (grub_video_vbe_unmap_color): Likewise.
22382 (grub_video_vbe_blit_glyph): Likewise.
22383 (grub_video_vbe_scroll): Likewise.
22384 (grub_video_vbe_draw_pixel): Removed function.
22385 (grub_video_vbe_get_pixel): Likewise.
22386 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22387 updated code to use it.
22388 (common_blitter): Added common blitter for render target and bitmap.
22389 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22390 (grub_video_vbe_blit_render_target): Likewise.
22391
bc8c036d 223922006-07-30 Johan Rydberg <jrydberg@gnu.org>
22393
22394 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22395 is in text mode if there is no console control protocol instance
22396 available.
22397
684a8eff 223982006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22399
22400 * include/grub/video.h: Code cleanup.
22401
22402 * include/grub/i386/pc/vbe.h: Likewise.
22403
22404 * video/i386/pc/vbe.c: Likewise.
22405
22406 * video/i386/pc/vbeblit.c: Likewise.
22407
22408 * video/i386/pc/vbefill.c: Likewise.
22409
22410 * video/video.c: Likewise. Also added more comments.
22411
5915059b 224122006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22413
22414 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22415 (struct grub_biosdisk_dap): Likewise.
22416
22417 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22418 linkage settings for all functions.
22419
90ce5d56 224202006-07-12 Marco Gerards <marco@gnu.org>
22421
22422 * configure.ac (--enable-mm-debug): Fix typo.
22423
22424 * genkernsyms.sh.in: Use proper quoting for `CC'.
22425
43e7f879 224262006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22427
22428 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22429 (normal_mod_ASFLAGS): Remove "-m32".
22430
4889bdec 224312006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22432
22433 * util/misc.c: Include config.h.
22434 [!HAVE_MEMALIGN]: Do not include malloc.h.
22435 (grub_memalign): Use posix_memalign, if present. Then, use
22436 memalign, if present. Otherwise, emit an error.
22437
22438 * util/grub-emu.c: Do not include malloc.h.
22439
22440 * include/grub/util/misc.h: Include unistd.h. This is required for
22441 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22442 D. Eades III <hde@foobar-qux.org>.
22443
22444 * configure.ac (AC_GNU_SOURCE): Added.
22445 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22446 type.
22447
fd39d4da 224482006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22449
22450 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22451 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22452
b786f3b5 224532006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22454
22455 * include/grub/types.h (grub_host_addr_t): Rename to
22456 grub_target_addr_t.
22457 (grub_host_off_t): Rename to grub_target_off_t.
22458 (grub_host_size_t): Rename to grub_target_size_t.
22459 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22460 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22461
22462 * include/grub/kernel.h (struct grub_module_header): Change type
22463 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22464 (grub_module_info): Likewise.
f19dbdb7 22465
051988bb 224662006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22467
22468 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22469 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22470 Velazquez <jesus.velazquez@gmail.com>.
22471
deae281b 224722006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22473
22474 Count partitions from 1 instead of 0 in the string representation
22475 of partitions. Still use 0-based internally.
f19dbdb7 22476
deae281b 22477 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22478 (sun_partition_map_iterate): Use grub_partition_t instead of
22479 struct grub_partition *. Cast DESC->START_CYLINDER to
22480 grub_uint64_t after converting the endian.
22481 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22482 (sun_partition_map_get_name): Add 1 to P->INDEX.
22483
22484 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22485 PCDATA->DOS_PART.
22486 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22487
22488 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22489 zero instead of one.
22490 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22491 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22492
22493 * partmap/apple.c (apple_partition_map_iterate): Change the type
22494 of POS to unsigned.
22495 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22496 (apple_partition_map_get_name): Add 1 into P->INDEX.
22497
22498 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22499 of POS to unsigned.
22500 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22501 calculate the offset of a partition.
22502 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22503 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22504
22505 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22506 SECTOR to grub_disk_addr_t.
22507 (acorn_partition_map_iterate): Likewise.
22508 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22509 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22510 top.
22511 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22512
22513 * kern/i386/pc/init.c (make_install_device): Add 1 into
22514 GRUB_INSTALL_DOS_PART.
22515
22516 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22517 conditional.
22518
524a1e6a 225192006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22520
22521 Clean up the code to support 64-bit addressing in disks and
22522 files. This change is not enough for filesystems yet.
f19dbdb7 22523
524a1e6a 22524 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22525 type of "start" to grub_uint64_t.
22526 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22527 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22528 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22529 convert addresses.
22530
22531 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22532 to grub_disk_addr_t.
22533
22534 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22535 string.
22536
22537 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22538
22539 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22540 to char *.
22541
22542 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22543
22544 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22545
22546 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22547
22548 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22549 to grub_off_t, to detect an error from grub_file_seek.
22550 (grub_multiboot_load_elf32): Likewise.
22551
22552 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22553 maximum unsigned long value when an overflow is detected.
22554 (grub_strtoull): New function.
22555 (grub_divmod64): Likewise.
22556 (grub_lltoa): use grub_divmod64.
22557
22558 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22559 grub_disk_addr_t.
22560 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22561 the pointer to next character. Use grub_strtoull instead of
22562 grub_strtoul.
22563 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22564 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22565 respectively.
22566
fe6b695a 22567 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 22568 return value is signed.
22569 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22570 test if OFFSET is less than zero, as OFFSET is unsigned now.
22571
22572 * kern/disk.c (struct grub_disk_cache): Change the type of
22573 "sector" to grub_disk_addr_t.
22574 (grub_disk_cache_get_index): Change the type of SECTOR to
22575 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22576 unsigned after shifting.
22577 (grub_disk_cache_invalidate): Change the type of SECTOR to
22578 grub_disk_addr_t.
22579 (grub_disk_cache_unlock): Likewise.
22580 (grub_disk_cache_store): Likewise.
22581 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22582 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22583 grub_disk_addr_t and grub_uint64_t, respectively.
22584 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22585 body, as the value of OFFSET is tweaked by
22586 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22587 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22588 respectively.
22589 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22590 body, as the value of OFFSET is tweaked by
22591 grub_disk_check_range. Change the types of LEN and N to
22592 grub_size_t.
22593
22594 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22595 and "saved_offset" to grub_off_t.
22596 (test_header): Cast BUF to char *.
22597 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22598 to char *.
22599 (grub_gzio_read): Change the types of OFFSET and SIZE to
22600 grub_off_t and grub_size_t, respectively.
22601
22602 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22603 Removed.
22604 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22605 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22606 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22607 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22608 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22609
22610 * include/grub/types.h (grub_off_t): Unconditionally set to
22611 grub_uint64_t.
22612 (grub_disk_addr_t): Changed to grub_uint64_t.
22613
22614 * include/grub/partition.h (struct grub_partition): Change the
22615 types of "start", "len" and "offset" to grub_disk_addr_t,
22616 grub_uint64_t and grub_disk_addr_t, respectively.
22617 (grub_partition_get_start): Return grub_disk_addr_t.
22618 (grub_partition_get_len): Return grub_uint64_t.
22619
22620 * include/grub/misc.h (grub_strtoull): New prototype.
22621 (grub_divmod64): Likewise.
22622
22623 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22624 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22625 grub_off_t, respectively.
22626 All callers and references changed.
22627
22628 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22629 grub_size_t in "read".
22630 All callers and references changed.
22631
22632 * include/grub/file.h (struct grub_file): Change the types of
22633 "offset" and "size" to grub_off_t and grub_off_t,
22634 respectively. Change the type of SECTOR to grub_disk_addr_t in
22635 "read_hook".
22636 (grub_file_read): Change the type of LEN to grub_size_t.
22637 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22638 grub_off_t.
22639 (grub_file_size): Return grub_off_t.
22640 (grub_file_tell): Likewise.
22641 All callers and references changed.
22642
22643 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22644 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22645 "write".
22646 (struct grub_disk): Change the type of "total_sectors" to
22647 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 22648 "read_hook".
524a1e6a 22649 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22650 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22651 (grub_disk_write): Likewise.
22652 All callers and references changed.
22653
22654 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22655 char * for grub_strncmp to silence gcc.
22656 (grub_iso9660_mount): Likewise.
22657 (grub_iso9660_mount): Likewise.
22658 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22659 return statement.
22660 (grub_iso9660_iterate_dir): Likewise.
22661 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22662
22663 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22664 LEN to grub_disk_addr_t and grub_size_t, respectively.
22665
22666 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22667
22668 * fs/jfs.c (grub_jfs_read_file): Likewise.
22669
22670 * fs/minix.c (grub_jfs_read_file): Likewise.
22671
22672 * fs/sfs.c (grub_jfs_read_file): Likewise.
22673
22674 * fs/ufs.c (grub_jfs_read_file): Likewise.
22675
22676 * fs/xfs.c (grub_jfs_read_file): Likewise.
22677
22678 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22679 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22680 respectively.
22681
22682 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22683 BLKNR to -1 instead of returning GRUB_ERRNO.
22684 (grub_ext2_read_file): Change the types of SECTOR and
22685 LEN to grub_disk_addr_t and grub_size_t, respectively.
22686
22687 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22688 LEN to grub_disk_addr_t and grub_size_t, respectively.
22689
22690 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22691 grub_file_read.
22692
22693 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22694 string. Do not cast SECTOR explicitly.
22695
22696 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22697 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22698 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22699 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22700 over 2TB and LBA mode is not supported, raise an error.
22701 (get_safe_sectors): New function.
22702 (grub_biosdisk_read): Use get_safe_sectors.
22703 (grub_biosdisk_write): Likewise.
22704
22705 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22706 (grub_efidisk_write): Likewise.
22707
22708 * disk/loopback.c (delete_loopback): Cosmetic changes.
22709 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22710 correctly.
22711 (grub_loopback_open): Likewise.
22712 (grub_loopback_read): Likewise. Also, change the type of POS to
22713 grub_off_t, and fix the usage of grub_memset.
22714
22715 * commands/i386/pc/play.c: Include grub/machine/time.h.
22716
22717 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22718 print FILE->SIZE.
22719
22720 * commands/configfile.c: Include grub/env.h.
22721
22722 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22723 GRUB_ERRNO directly instead. Change the type of POS to
22724 grub_off_t. Follow the coding standard.
22725
22726 * commands/blocklist.c: Include grub/partition.h.
22727 (grub_cmd_blocklist): Return an error if the underlying device is
22728 not a disk. Take the starting sector of a partition into account,
22729 if a partition is used.
22730
22731 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22732 a length field.
22733 (lba_mode): Support 64-bit addresses.
22734 (chs_mode): Likewise.
22735 (copy_buffer): Adapted to the new offsets of a length field and a
22736 segment field.
22737 (blocklist_default_start): Allocate 64-bit space.
22738
22739 * boot/i386/pc/boot.S (force_lba): Removed.
22740 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 22741 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 22742 space.
22743 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22744 is useless.
22745 (lba_mode): Refactored to support a 64-bit address. More size
22746 optimization.
22747 (setup_sectors): Likewise.
22748
53af98ad 227492006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22750
22751 * DISTLIST: Added include/grub/i386/linux.h. Removed
22752 include/grub/i386/pc/linux.h
22753
22754 * configure.ac (AC_INIT): Bumped to 1.94.
22755
22756 * config.guess: Updated from gnulib.
22757 * config.sub: Likewise.
22758 * install-sh: Likewise.
22759 * mkinstalldirs: Likewise.
22760
b4c1940a 227612006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22762
22763 * conf/common.rmk (grub_modules_init.lst): Depended on
22764 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22765 MODSRCFILES.
22766
22767 * genmk.rb (PModule::rule): Reverted the previous change.
22768
cfca1cfd 227692006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22770
22771 * conf/common.rmk (grub_modules_init.lst): Depends on
22772 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22773 that the target does not exist before producing.
22774 (grub_modules_init.h): Remove the target before generating.
22775 (grub_emu_init.c): Likewise.
22776
22777 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22778
aa6d7826 227792006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22780
22781 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22782 for the target-specific tests. Make sure that we also have the
22783 up-to-date target variables for those tests.
22784
26c607b9 227852006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22786
22787 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22788 (PModule::rule): Likewise.
22789
0162321a 227902006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22791
22792 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22793 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22794 target-specific flags should be prefixed.
22795 (PModule::rule): Likewise.
22796
6c826348 227972006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22798
22799 * configure.ac (CMP): Check if cmp is available explicitly.
22800
b977bf01 228012006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22802
22803 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22804 (target_cpu): New variable.
22805 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 22806
b977bf01 22807 * util/i386/pc/grub-install.in (host_cpu): Removed.
22808 (target_cpu): New variable.
22809 (pkglibdir): Use target_cpu instead of host_cpu.
22810
22811 * util/genmoddep.c: Removed.
f19dbdb7 22812
b977bf01 22813 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22814 instead of GRUB_HOST_SIZEOF_VOID_P.
22815 * kern/dl.c: Likewise.
22816
22817 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22818 ...
22819 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22820 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22821 (GRUB_TARGET_SIZEOF_LONG): ... this.
22822 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22823 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22824 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22825 to ...
22826 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22827 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22828 (GRUB_TARGET_SIZEOF_LONG): ... this.
22829 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22830 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22831 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22832 to ...
22833 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22834 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22835 (GRUB_TARGET_SIZEOF_LONG): ... this.
22836 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22837 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22838
22839 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22840 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22841 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22842 instead of GRUB_HOST_SIZEOF_LONG.
22843 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22844 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22845 GRUB_CPU_WORDS_BIGENDIAN.
22846 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22847 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22848 grub_host_ssize_t.
22849
22850 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22851 (genmoddep_SOURCES): Likewise.
22852 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22853 (genmoddep_SOURCES): Likewise.
22854 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22855 (genmoddep_SOURCES): Likewise.
22856 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22857 Likewise.
22858 (genmoddep_SOURCES): Likewise.
22859
22860 * genmoddep.awk: New file.
22861
22862 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22863 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22864 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22865 (PModule::rule): Likewise.
22866 (Program::rule): Likewise.
22867 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22868 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22869 respectively.
22870
22871 * configure.ac: Rewritten intensively to use host and target
22872 instead of build and host, respectively.
22873
22874 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22875 (host_cpu): Removed.
22876 (target_cpu): New variable.
22877 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22878 (BUILD_CC): Removed.
22879 (BUILD_CFLAGS): Likewise.
22880 (BUILD_CPPFLAGS): Likewise.
22881 (TARGET_CC): New variable.
22882 (TARGET_CFLAGS): Likewise.
22883 (TARGET_CPPFLAGS): Likewise.
22884 (TARGET_LDFLAGS): Likewise.
22885 (AWK): Likewise.
22886 (include): Use target_cpu instead of host_cpu.
22887 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 22888
b977bf01 22889 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22890
f09771a1 228912006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22892
22893 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22894 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22895 field 'false' to 'exec_on_false'.
22896 (grub_script_create_cmdif): Renamed argument names to reflect above
22897 changes.
22898
22899 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22900
22901 * normal/script.c (grub_script_create_cmdif): Likewise.
22902
118f4fb3 229032006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22904
22905 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22906 top.
22907 (grub_hfsplus_btree_recptr): Likewise.
22908 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22909 FILEBLOCK both to pass a block number and store next block
22910 number.
22911 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22912 overflow file correctly. Specify errors appropriately, because
22913 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22914 grub_hfsplus_btree_recptr to get the pointer to a found key.
22915 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22916 is found.
22917
22918 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22919 linux.mod.
22920 (_linux_mod_SOURCES): New variable.
22921 (_linux_mod_CFLAGS): Likewise.
22922 (_linux_mod_LDFLAGS): Likewise.
22923 (linux_mod_SOURCES): Likewise.
22924 (linux_mod_CFLAGS): Likewise.
22925 (linux_mod_LDFLAGS): Likewise.
22926
22927 * DISTLIST: Added loader/i386/efi/linux.c,
22928 loader/i386/efi/linux_normal.c and
22929 include/grub/i386/efi/loader.h.
22930
22931 * loader/i386/efi/linux.c: New file.
22932 * loader/i386/efi/linux_normal.c: Likewise.
22933 * include/grub/i386/efi/loader.h: Likewise.
22934
89a7d726 229352006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22936
22937 * commands/blocklist.c: New file.
22938
22939 * DISTLIST: Added commands/blocklist.c.
22940
22941 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 22942 color for the background, and a darker color for the foreground.
89a7d726 22943 (grub_console_checkkey): Return READ_KEY.
22944 (grub_console_cls): Set the background to
22945 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22946
22947 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22948
22949 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22950 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22951
22952 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22953 prototype.
22954
22955 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22956 BG. The spec is wrong again.
22957
22958 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22959 prototype.
22960 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22961
22962 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22963 commands/blocklist.c.
22964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 22965
89a7d726 22966 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22967 (blocklist_mod_SOURCES): New variable.
22968 (blocklist_mod_CFLAGS): Likewise.
22969 (blocklist_mod_LDFLAGS): Likewise.
22970
75c8f258 229712006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22972
22973 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22974 duplication.
22975 (lba_mode): Use %eax more intensively to reduce the code size.
22976
da2eb181 229772006-05-20 Marco Gerards <marco@gnu.org>
22978
22979 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22980
22981 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22982 for `menuentry'.
22983 (script): Accept leading newlines.
22984 (newlines): New rule to describe 0 or more newlines.
22985 (commands): Accept `command' with trailing newline. Fixed the
22986 order in which arguments were passed to `grub_script_add_cmd'.
22987 Accept commands separated by newlines.
22988 (function): Changed to accept newlines.
22989 (menuentry) Rewritten.
22990
22991 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22992 front of the list, instead of to the end.
22993
577b4050 229942006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22995
22996 * util/i386/pc/grub-install.in (bindir): New variable.
22997 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22998 Shaver <lbgwjl@gmail.com>.
22999
0d6e1189 230002006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
23001
23002 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
23003 grub/machine/linux.h
23004 * loader/i386/pc/linux.c: Likewise.
23005
23006 * include/grub/i386/pc/linux.h: Moved to ...
23007 * include/grub/i386/linux.h: ... here.
23008
23009 * include/grub/i386/linux.h (struct linux_kernel_params): New
23010 struct.
f19dbdb7 23011
31b86e9f 230122006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
23013
23014 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
23015 checking.
23016 (grub_video_vbe_blit_glyph): Likewise.
23017 (grub_video_vbe_blit_bitmap): Likewise.
23018 (grub_video_vbe_blit_render_target): Likewise.
23019
83b984de 230202006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
23021
23022 * configure.ac (--with-platform): Properly quote the square
23023 brackets.
23024
5f0413bd 230252006-05-08 Marco Gerards <marco@gnu.org>
23026
23027 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
23028 this...
23029 (kernel_elf_HEADERS): ...to this. Updated all users.
23030 (grubof_symlist.c): Renamed from this...
23031 (kernel_elf_symlist.c): ...to this. Updated all users.
23032 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23033 (grubof_SOURCES): Renamed from this...
23034 (kernel_elf_SOURCES): ...to this.
23035 (grubof_HEADERS): Renamed from this...
23036 (kernel_elf_HEADERS): ...to this.
23037 (grubof_CFLAGS): Renamed from this...
23038 (kernel_elf_CFLAGS): ...to this.
23039 (grubof_ASFLAGS): Renamed from this...
23040 (kernel_elf_ASFLAGS): ...to this.
23041 (grubof_LDFLAGS): Renamed from this...
23042 (kernel_elf_LDFLAGS): ...to this.
23043
23044 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
23045 this...
23046 (kernel_elf_HEADERS): ...to this. Updated all users.
23047 (grubof_symlist.c): Renamed from this...
23048 (kernel_elf_symlist.c): ...to this. Updated all users.
23049 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23050 (grubof_SOURCES): Renamed from this...
23051 (kernel_elf_SOURCES): ...to this.
23052 (grubof_HEADERS): Renamed from this...
23053 (kernel_elf_HEADERS): ...to this.
23054 (grubof_CFLAGS): Renamed from this...
23055 (kernel_elf_CFLAGS): ...to this.
23056 (grubof_ASFLAGS): Renamed from this...
23057 (kernel_elf_ASFLAGS): ...to this.
23058 (grubof_LDFLAGS): Renamed from this...
23059 (kernel_elf_LDFLAGS): ...to this.
23060
23061 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
23062 `kernel.elf' instead of `grubof'.
23063
05568c2e 230642006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
23065
23066 Add --with-platform to configure. Use pkglibdir instead of
23067 pkgdatadir. This is reported by Roger Leigh.
23068
23069 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
23070 (host_vendor): Likewise.
23071 (host_os): Likewise.
23072 (pkgdatadir): Likewise.
23073 (platform): New variable.
23074 (pkglibdir): Likewise.
23075 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 23076
05568c2e 23077 * util/i386/pc/grub-install.in (datadir): Removed.
23078 (host_vendor): Likewise.
23079 (host_os): Likewise.
23080 (pkgdatadir): Likewise.
23081 (platform): New variable.
23082 (pkglibdir): Likewise.
23083 Use PKGLIBDIR instead of PKGDATADIR.
23084
23085 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
23086 instead of GRUB_DATADIR.
23087 (main): Likewise.
23088 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23089 (main): Likewise.
23090 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23091 (main): Likewise.
23092
23093 * configure.ac (--with-platform): New option.
23094 Use PLATFORM instead of HOST_VENDOR to specify a platform.
23095
23096 * Makefile.in: Include a makefile based on PLATFORM instead of
23097 HOST_VENDOR.
23098 (pkgdatadir): Not appended by the machine type.
23099 (pkglibdir): Appended by the machine type.
23100 (host_vendor): Removed.
23101 (platform): New variable.
23102 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
23103 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
23104 (uninstall): Likewise.
23105
4e93851c 231062006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
23107
23108 Use the environment context in the menu. Remove the commands
23109 "default" and "timeout", and use variables instead.
f19dbdb7 23110
4e93851c 23111 * normal/menu.c: Include grub/env.h.
23112 (print_entry): Cast TITLE to silence gcc.
23113 (get_timeout): New function.
23114 (set_timeout): Likewise.
23115 (get_entry_number): Likewise.
23116 (run_menu): Use a default entry, a fallback entry and a timeout
23117 in the environment variables "default", "fallback" and
23118 "timeout". Also, tweak the default entry if it is not within the
23119 current menu entries.
23120 (grub_menu_run): Use a fallback entry in the environment variable
23121 "fallback".
23122
23123 * normal/main.c (read_config_file): Do not initialize
23124 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
23125 NEWMENU->TIMEOUT.
23126 (grub_normal_execute): Use a data slot to store the menu.
23127
23128 * include/grub/normal.h (struct grub_menu): Removed default_entry,
23129 fallback_entry and timeout.
23130 (struct grub_menu_list): Removed.
23131 (grub_menu_list_t): Likewise.
23132 (struct grub_context): Likewise.
23133 (grub_context_t): Likewise.
23134 (grub_context_get): Likewise.
23135 (grub_context_get_current_menu): Likewise.
23136 (grub_context_push_menu): Likewise.
23137 (grub_context_pop_menu): Likewise.
23138 (grub_default_init): Likewise.
23139 (grub_default_fini): Likewise.
23140 (grub_timeout_init): Likewise.
23141 (grub_timeout_fini): Likewise.
23142
23143 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
23144 and timeout.mod.
23145 (normal_mod_SOURCES): Removed normal/context.c.
23146
23147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
23148 commands/default.c, commands/timeout.c and normal/context.c.
23149 (normal_mod_SOURCES): Removed normal/context.c.
23150
23151 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
23152 commands/timeout.c and normal/context.c.
23153 (normal_mod_SOURCES): Removed normal/context.c.
23154
23155 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
23156 commands/default.c, commands/timeout.c and normal/context.c.
23157 (normal_mod_SOURCES): Removed normal/context.c.
23158
23159 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
23160 timeout.mod.
23161 (default_mod_SOURCES): Removed.
23162 (default_mod_CFLAGS): Likewise.
23163 (default_mod_LDFLAGS): Likewise.
23164 (timeout_mod_SOURCES): Removed.
23165 (timeout_mod_CFLAGS): Likewise.
23166 (timeout_mod_LDFLAGS): Likewise.
23167
23168 * DISTLIST: Removed commands/default.c, commands/timeout.c and
23169 normal/context.c.
23170
23171 * commands/default.c: Removed.
23172 * commands/timeout.c: Likewise.
23173 * normal/context.c: Likewise.
23174
1eb9cc1d 231752006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
23176
23177 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
23178
385bd9c1 231792006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
23180
23181 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
23182 "next" to "prev" for readability.
23183 (struct grub_env_sorted_var): New struct.
23184 (grub_env_context): Renamed to ...
23185 (initial_context): ... this.
23186 (grub_env_var_context): Renamed to ...
23187 (current_context): ... this.
23188 (grub_env_find): Look only at CURRENT_CONTEXT.
23189 (grub_env_context_open): Rewritten to copy exported variables from
23190 previous context.
23191 (grub_env_context_close): Rewritten according to the new
23192 scheme. Also, add an assertion to prevent the initial context from
23193 removed.
23194 (grub_env_insert): Removed the code for the sorted list.
23195 (grub_env_remove): Likewise.
23196 (grub_env_export): Simply mark the variable with
23197 GRUB_ENV_VAR_GLOBAL.
23198 (grub_env_set): A cosmetic change for naming consistency.
23199 (grub_env_get): Likewise.
23200 (grub_env_unset): Likewise.
23201 (grub_env_iterate): Rewritten to sort variables within this
23202 function.
23203 (grub_register_variable_hook): Fixed for naming consistency. Call
23204 grub_env_find again, only if NAME is not found at the first time.
23205 (mangle_data_slot_name): New function.
23206 (grub_env_set_data_slot): Likewise.
23207 (grub_env_get_data_slot): Likewise.
23208 (grub_env_unset_data_slot): Likewise.
23209
23210 * include/grub/env.h (grub_env_var_type): New enum.
23211 (GRUB_ENV_VAR_LOCAL): New constant.
23212 (GRUB_ENV_VAR_GLOBAL): Likewise.
23213 (GRUB_ENV_VAR_DATA): Likewise.
23214 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
23215 "type".
23216 (grub_env_set): Replace VAR with NAME for consistency.
23217 (grub_register_variable_hook): Likewise.
23218 (grub_env_export): Specify the name of the argument.
23219 (grub_env_set_data_slot): New prototype.
23220 (grub_env_get_data_slot): Likewise.
23221 (grub_env_unset_data_slot): Likewise.
23222
7f362539 232232006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23224
23225 Extend the loader so that GRUB can accept a loader which comes
23226 back to GRUB when a loaded image exits. Also, this change adds
23227 support for a chainloader on EFI.
f19dbdb7 23228
7f362539 23229 * term/efi/console.c: Include grub/misc.h.
23230 (grub_console_checkkey): Display a scan code on the top for
23231 debugging. This will be removed once the EFI port gets stable.
23232 Correct the scan code mapping.
23233
23234 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
23235 allocate memory from larger regions, in order to reduce the number
23236 of allocated regions. Otherwise, the MacOSX loader panics.
23237 (filter_memory_map): Avoid less than 1MB for compatibility with
23238 other loaders.
23239 (add_memory_regions): Allocate from the tail of a region, if
23240 possible, to avoid allocating a region near to 1MB, for the MacOSX
23241 loader.
23242
23243 * kern/efi/init.c (grub_efi_set_prefix): Specify
23244 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
23245
23246 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
23247 argument IMAGE_HANDLE and specify it to get a loaded image.
23248 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
23249 grub_efi_get_loaded_image.
fe6b695a 23250 (grub_efi_get_filename): Divide the length by the size of
7f362539 23251 grub_efi_char16_t.
23252 (grub_efi_get_device_path): New function.
23253 (grub_efi_print_device_path): Print End Device Path nodes. Divide
23254 the length by the size of grub_efi_char16_t for a file path device
23255 path node.
23256
23257 * kern/loader.c (grub_loader_noreturn): New variable.
23258 (grub_loader_set): Accept a new argument NORETURN. Set
23259 GRUB_LOADER_NORETURN to NORETURN.
23260 All callers changed.
23261 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
23262 grub_machine_fini.
23263
23264 * include/grub/efi/efi.h (grub_efi_get_device_path): New
23265 prototype.
23266 (grub_efi_get_loaded_image): Take an argument to specify an image
23267 handle.
23268
23269 * include/grub/loader.h (grub_loader_set): Added one more argument
23270 NORETURN.
23271
23272 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
23273 instead of grub_efi_open_protocol.
23274 (grub_efidisk_get_device_name): Likewise.
23275 (grub_efidisk_close): Print a newline.
23276 (grub_efidisk_get_device_handle): Fixed to use
23277 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
23278 GRUB_EFI_DEVICE_PATH_TYPE.
23279
23280 * disk/efi/efidisk.c (device_path_guid): Moved to ...
23281 * kern/efi/efi.c (device_path_guid): ... here.
23282
23283 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
23284 chain.mod.
23285 (kernel_mod_HEADERS): Added efi/disk.h.
23286 (_chain_mod_SOURCES): New variable.
23287 (_chain_mod_CFLAGS): Likewise.
23288 (_chain_mod_LDFLAGS): Likewise.
23289 (chain_mod_SOURCES): Likewise.
23290 (chain_mod_CFLAGS): Likewise.
23291 (chain_mod_LDFLAGS): Likewise.
23292
23293 * DISTLIST: Added include/grub/efi/chainloader.h,
23294 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
23295
23296 * include/grub/efi/chainloader.h: New file.
23297 * loader/efi/chainloader.c: Likewise.
23298 * loader/efi/chainloader_normal.c: Likewise.
23299
c0111d6e 233002006-04-30 Marco Gerards <marco@gnu.org>
23301
23302 * commands/configfile.c (grub_cmd_source): New function.
23303 (GRUB_MOD_INIT): Register the commands `source' and `.'.
23304 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
23305
df5341da 233062006-04-30 Marco Gerards <marco@gnu.org>
23307
23308 * normal/execute.c (grub_script_execute_cmd): Change the return
23309 type to `grub_err_t'. Correctly return the error.
23310 (grub_script_execute_cmdline): In case a command line is not a
23311 command or a function, try to interpret it as an assignment.
23312
f85934bd 233132006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23314
23315 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
23316 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
23317 skip a node whose name is obviously invalid as UTF-16,
23318 i.e. contains a NUL character. Stop the iteration when the last
23319 directory entry is found. Instead of using the return value of
23320 grub_hfsplus_btree_iterate_node, store the value in RET and use
23321 it, because the iterator can be stopped by the last directory
23322 entry.
23323
8f8a2cf8 233242006-04-30 Marco Gerards <marco@gnu.org>
23325
23326 * include/grub/env.h (grub_env_export): New prototype. Reported
23327 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
23328
a27e84ce 233292006-04-30 Marco Gerards <marco@gnu.org>
23330
23331 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
23332 size of the extents in a catalog file record.
23333
eaef0553 233342006-04-29 Marco Gerards <marco@gnu.org>
23335
23336 * commands/configfile.c (grub_cmd_configfile): Execute the
23337 configfile within its own context.
23338
23339 * include/grub/env.h (grub_env_context_open): New prototype.
23340 (grub_env_context_close): Likewise.
23341
23342 * kern/env.c (grub_env): Removed.
23343 (grub_env_sorted): Likewise.
23344 (grub_env_context): New variable.
23345 (grub_env_var_context): Likewise.
23346 (grub_env_find): Search both the active context and the global
23347 context.
23348 (grub_env_context_open): New function.
23349 (grub_env_context_close): Likewise.
23350 (grub_env_insert): Likewise.
23351 (grub_env_remove): Likewise.
23352 (grub_env_export): Likewise.
23353 (grub_env_set): Changed to use helper functions to avoid code
23354 duplication.
23355 (grub_env_iterate): Rewritten so both the current context and the
23356 global context are being used.
23357
23358 * normal/command.c (export_command): New function.
23359 (grub_command_init): Register the `export' function.
23360
7b455f4d 233612006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
23362
23363 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
23364 explicitly to suppress gcc's warnings.
23365 * fs/fat.c (grub_fat_find_dir): Likewise.
23366 (grub_fat_label): Likewise.
23367 * fs/xfs.c (grub_xfs_read_inode): Likewise.
23368 (grub_xfs_mount): Likewise.
23369 (grub_xfs_label): Likewise.
23370 * fs/affs.c (grub_affs_mount): Likewise.
23371 (grub_affs_label): Likewise.
23372 (grub_affs_iterate_dir): Likewise.
23373 * fs/sfs.c (grub_sfs_mount): Likewise.
23374 (grub_sfs_iterate_dir): Likewise.
23375 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
23376 * fs/hfs.c (grub_hfs_mount): Likewise.
23377 (grub_hfs_cmp_catkeys): Likewise.
23378 (grub_hfs_find_dir): Likewise.
23379 (grub_hfs_dir): Likewise.
23380 (grub_hfs_label): Likewise.
23381 * fs/jfs.c (grub_jfs_mount): Likewise.
23382 (grub_jfs_opendir): Likewise.
23383 (grub_jfs_getent): Likewise.
23384 (grub_jfs_lookup_symlink): Likewise.
23385 (grub_jfs_label): Likewise.
23386 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23387 (grub_hfsplus_iterate_dir): Likewise.
23388 (grub_hfsplus_btree_iterate_node): Made static.
23389
23390 * util/grub-emu.c (prefix): New variable.
23391 (grub_machine_set_prefix): New function.
23392 (main): Do not set the environment variable "prefix" here. Only
23393 set PREFIX, which is used later by grub_machine_set_prefix.
23394
23395 * include/grub/video.h: Do not include grub/symbol.h.
23396 (grub_video_register): Not exported. This symbol is not defined in
23397 the kernel.
23398 (grub_video_unregister): Likewise.
23399 (grub_video_iterate): Likewise.
23400 (grub_video_setup): Likewise.
23401 (grub_video_restore): Likewise.
23402 (grub_video_get_info): Likewise.
23403 (grub_video_get_blit_format): Likewise.
23404 (grub_video_set_palette): Likewise.
23405 (grub_video_get_palette): Likewise.
23406 (grub_video_set_viewport): Likewise.
23407 (grub_video_get_viewport): Likewise.
23408 (grub_video_map_color): Likewise.
23409 (grub_video_map_rgb): Likewise.
23410 (grub_video_map_rgba): Likewise.
23411 (grub_video_fill_rect): Likewise.
23412 (grub_video_blit_glyph): Likewise.
23413 (grub_video_blit_bitmap): Likewise.
23414 (grub_video_blit_render_target): Likewise.
23415 (grub_video_scroll): Likewise.
23416 (grub_video_swap_buffers): Likewise.
23417 (grub_video_create_render_target): Likewise.
23418 (grub_video_delete_render_target): Likewise.
23419 (grub_video_set_active_render_target): Likewise.
23420
23421 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23422 Undefined.
23423 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23424
23425 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23426 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23427 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23428 instead of $(srcdir)/genkernsyms.sh.
23429
23430 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23431 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23432 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23433 instead of $(srcdir)/genkernsyms.sh.
23434
23435 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23436 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23437 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23438 instead of $(srcdir)/genkernsyms.sh.
23439
23440 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23441 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23442 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23443 instead of $(srcdir)/genkernsyms.sh.
23444
23445 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23446 genkernsyms.sh.
23447
23448 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23449 genkernsyms.sh.
23450 (gensymlist.sh): New target.
23451 (genkernsyms.sh): Likewise.
23452
23453 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23454 genkernsyms.sh.in and gensymlist.sh.in.
23455
23456 * genkernsyms.sh: Removed.
23457 * gensymlist.sh: Likewise.
f19dbdb7 23458
7b455f4d 23459 * genkernsyms.sh.in: New file.
23460 * gensymlist.sh.in: Likewise.
23461
1885bb27 234622006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23463
23464 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23465 clobber "prefix", since we may have already set it manually.
23466
71538dff 234672006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23468
23469 * kern/misc.c (abort): New alias for grub_abort.
23470
2965c7cc 234712006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23472
23473 A new machine-specific function "grub_machine_set_prefix" is
23474 defined. This is called after loading modules, so that a prefix
23475 initialization can use modules. Also, this change adds an
23476 intensive debugging feature for the memory manager via the
23477 configure option "--enable-mm-debug".
f19dbdb7 23478
2965c7cc 23479 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23480 PART.LEN.
23481
23482 * kern/sparc64/ieee1275/init.c (abort): Removed.
23483 (grub_stop): Likewise.
23484 (grub_exit): New function.
23485 (grub_set_prefix): Renamed to ...
23486 (grub_machine_set_prefix): ... this.
23487 (grub_machine_init): Do not call grub_set_prefix.
23488
23489 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23490 (grub_machine_set_prefix): ... this.
23491 (grub_machine_init): Do not call grub_set_prefix.
23492
23493 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23494 (grub_machine_init): Do not set the prefix here.
23495
23496 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23497
23498 * kern/efi/init.c: Include grub/mm.h.
23499 (grub_efi_set_prefix): New function.
23500
23501 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23502 (grub_efi_get_filename): New function.
23503 (grub_print_device_path): Renamed to ...
23504 (grub_efi_print_device_path): ... this.
23505
23506 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23507 [MM_DEBUG] (grub_realloc): Likewise.
23508 [MM_DEBUG] (grub_free): Likewise.
23509 [MM_DEBUG] (grub_memalign): Likewise.
23510 [MM_DEBUG] (grub_mm_debug): New variable.
23511 [MM_DEBUG] (grub_debug_malloc): New function.
23512 [MM_DEBUG] (grub_debug_free): New function.
23513 [MM_DEBUG] (grub_debug_realloc): New function.
23514 [MM_DEBUG] (grub_debug_memalign): New function.
23515
23516 * kern/misc.c (grub_abort): Print a newline to distinguish
23517 the message.
23518
23519 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23520 grub_set_root_dev after loading modules. This is necessary when
23521 setting a prefix depends on modules.
23522
23523 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23524 (grub_efi_print_device_path): ... this.
23525 (grub_efi_get_filename): New prototype.
23526 (grub_efi_set_prefix): Likewise.
23527
23528 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23529 and grub/disk.h.
23530 (grub_efidisk_get_device_handle): New prototype.
23531 (grub_efidisk_get_device_name): Likewise.
23532
23533 * include/grub/mm.h: Include config.h.
23534 (MM_DEBUG): Removed.
23535 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23536 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23537 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23538 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23539 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23540 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23541 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23542 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23543 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23544
23545 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23546
23547 * disk/efi/efidisk.c: Include grub/partition.h.
23548 (iterate_child_devices): New function.
23549 (add_device): First, compare only last device path nodes, so that
23550 devices are sorted by the types.
23551 (grub_efidisk_get_device_handle): New function.
23552 (grub_efidisk_get_device_name): Likewise.
23553
23554 * configure.ac (--enable-mm-debug): New option to enable the
23555 memory manager debugging feature. This makes the binary much
23556 bigger, so is disabled by default.
23557
9cacaa17 235582006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23559
23560 Use grub_abort instead of grub_stop, and grub_exit must be
23561 define in each architecture now. Also, this change adds support
23562 for EFI disks.
f19dbdb7 23563
9cacaa17 23564 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23565 (grub_getkey): New function.
23566 (grub_term_get_current): Likewise.
23567
23568 * util/i386/pc/grub-setup.c: Include grub/term.h.
23569 (grub_getkey): New function.
23570 (grub_term_get_current): Likewise.
23571
23572 * util/misc.c (grub_stop): Renamed to ...
23573 (grub_exit): ... this.
23574
23575 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23576 (grub_exit): ... this.
23577 (grub_machine_init): Use grub_abort instead of abort.
23578 (grub_stop): Removed.
23579
23580 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23581 abort.
23582
23583 * kern/i386/pc/startup.S (grub_exit): New function.
23584 (cold_reboot): New label.
23585
23586 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23587 (grub_efi_init): Call grub_efidisk_init.
23588 (grub_efi_fini): Call grub_efidisk_fini.
23589
23590 * kern/efi/efi.c: Include grub/mm.h.
23591 (grub_efi_console_control_guid): Renamed to ...
23592 (console_control_guid): ... this.
23593 (grub_efi_loaded_image_guid): Renamed to ...
23594 (loaded_image_guid): ... this.
23595 (grub_efi_locate_handle): New function.
23596 (grub_efi_open_protocol): Likewise.
23597 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23598 GRUB_EFI_CONSOLE_CONTROL_GUID.
23599 (grub_efi_exit): Removed.
23600 (grub_stop): Likewise.
23601 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23602 (grub_exit): New function.
23603 (grub_print_device_path): Likewise.
23604
23605 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23606 (grub_enter_rescue_mode): Register "exit".
23607
23608 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23609 (grub_abort): New function.
23610
23611 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23612
23613 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23614
23615 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23616
23617 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23618 (grub_print_device_path): New prototype.
23619 (grub_efi_locate_handle): Likewise.
23620 (grub_efi_open_protocol): Likewise.
23621
23622 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23623 * disk/efi/efidisk.c: Likewise.
23624
23625 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23626
23627 * include/grub/efi/console_control.h
23628 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23629
23630 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23631 last 8 bytes as an array.
23632 (GRUB_EFI_DISK_IO_GUID): New macro.
23633 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23634 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23635 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23636 grub_uint8_t.
23637 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23638 (struct grub_efi_device_path): Rename the member "sub_type" to
23639 "subtype".
23640 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23641 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23642 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23643 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23644 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23645 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23646 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23647 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23648 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23649 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23650 (struct grub_efi_pci_device_path): New structure.
23651 (grub_efi_pci_device_path_t): New type.
23652 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23653 (struct grub_efi_pccard_device_path): New structure.
23654 (grub_efi_pccard_device_path_t): New type.
23655 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23656 (struct grub_efi_memory_mapped_device_path): New structure.
23657 (grub_efi_memory_mapped_device_path_t): New type.
23658 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23659 (struct grub_efi_vendor_device_path): New structure.
23660 (grub_efi_vendor_device_path_t): New type.
23661 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23662 (struct grub_efi_controller_device_path): New structure.
23663 (grub_efi_controller_device_path_t): New type.
23664 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23665 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23666 (struct grub_efi_acpi_device_path): New structure.
23667 (grub_efi_acpi_device_path_t): New type.
23668 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23669 (struct grub_efi_expanded_acpi_device_path): New structure.
23670 (grub_efi_expanded_acpi_device_path_t): New type.
23671 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23672 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23673 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23674 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23675 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23676 (struct grub_efi_atapi_device_path): New structure.
23677 (grub_efi_atapi_device_path_t): New type.
23678 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23679 (struct grub_efi_fibre_channel_device_path): New structure.
23680 (grub_efi_fibre_channel_device_path_t): New type.
23681 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23682 (struct grub_efi_1394_device_path): New structure.
23683 (grub_efi_1394_device_path_t): New type.
23684 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23685 (struct grub_efi_usb_device_path): New structure.
23686 (grub_efi_usb_device_path_t): New type.
23687 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23688 (struct grub_efi_usb_class_device_path): New structure.
23689 (grub_efi_usb_class_device_path_t): New type.
23690 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23691 (struct grub_efi_i2o_device_path): New structure.
23692 (grub_efi_i2o_device_path_t): New type.
23693 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23694 (struct grub_efi_mac_address_device_path): New structure.
23695 (grub_efi_mac_address_device_path_t): New type.
23696 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23697 (struct grub_efi_ipv4_device_path): New structure.
23698 (grub_efi_ipv4_device_path_t): New type.
23699 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23700 (struct grub_efi_ipv6_device_path): New structure.
23701 (grub_efi_ipv6_device_path_t): New type.
23702 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23703 (struct grub_efi_infiniband_device_path): New structure.
23704 (grub_efi_infiniband_device_path_t): New type.
23705 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23706 (struct grub_efi_uart_device_path): New structure.
23707 (grub_efi_uart_device_path_t): New type.
23708 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23709 (struct grub_efi_vendor_messaging_device_path): New structure.
23710 (grub_efi_vendor_messaging_device_path_t): New type.
23711 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23712 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23713 (struct grub_efi_hard_drive_device_path): New structure.
23714 (grub_efi_hard_drive_device_path_t): New type.
23715 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23716 (struct grub_efi_cdrom_device_path): New structure.
23717 (grub_efi_cdrom_device_path_t): New type.
23718 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23719 (struct grub_efi_vendor_media_device_path): New structure.
23720 (grub_efi_vendor_media_device_path_t): New type.
23721 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23722 (struct grub_efi_file_path_device_path): New structure.
23723 (grub_efi_file_path_device_path_t): New type.
23724 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23725 (struct grub_efi_protocol_device_path): New structure.
23726 (grub_efi_protocol_device_path_t): New type.
23727 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23728 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23729 (struct grub_efi_bios_device_path): New structure.
23730 (grub_efi_bios_device_path_t): New type.
23731 (struct grub_efi_disk_io): New structure.
23732 (grub_efi_disk_io_t): New type.
23733 (struct grub_efi_block_io_media): New structure.
23734 (grub_efi_block_io_media_t): New type.
23735 (struct grub_efi_block_io): New structure.
23736 (grub_efi_block_io_t): New type.
23737
23738 * include/grub/misc.h (grub_stop): Removed.
23739 (grub_exit): New prototype.
23740 (grub_abort): Likewise.
23741
23742 * include/grub/disk.h (enum grub_disk_dev_id): Added
23743 GRUB_DISK_DEVICE_EFIDISK_ID.
23744
23745 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23746 disk/efi/efidisk.c.
23747 (kernel_syms.lst): Remove the target if an error occurs.
23748
49986a9f 237492006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23750
23751 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23752 as it was simply too buggy.
23753
970d3b8a 237542006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23755
23756 * kern/misc.c (grub_lltoa): New function.
23757 (grub_vsprintf): Added support for the long long suffix,
23758 i.e. "ll".
23759
ff04ec24 237602006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23761
23762 * Makefile.in (LDFLAGS): Add variable.
23763 (LD): Remove variable.
23764 * configure.ac: Add -m32 to LDFLAGS.
23765 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23766 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23767 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23768 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23769 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23770 variables.
23771 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23772 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23773 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23774
37e5e1a4 237752006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23776
23777 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23778 length for unknown glyph.
23779
c352d8dd 237802006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23781
2eab1c0d 23782 Add support for pre-loaded modules into the EFI port.
f19dbdb7 23783
2eab1c0d 23784 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23785 completely. Accept one more argument DIR. The caller has changed.
23786
23787 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23788
23789 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23790 (grub_efi_loaded_image_guid): New variable.
23791 (grub_efi_get_loaded_image): New function.
23792 (grub_arch_modules_addr): Likewise.
23793
23794 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23795 prototype.
23796
23797 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23798 (struct grub_efi_loaded_image): New structure.
23799 (grub_efi_loaded_image_t): New type.
23800
238012006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 23802
c352d8dd 23803 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23804 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23805 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23806
6d01d6b4 238072006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23808
23809 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23810
976a4ea0 238112006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23812
23813 * DISTLIST: Added include/grub/efi/console.h,
23814 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23815 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23816
23817 * include/grub/efi/console.h: New file.
23818 * include/grub/efi/time.h: Likewise.
23819 * include/grub/i386/efi/kernel.h: Likewise.
23820 * kern/efi/init.c: Likewise.
23821 * kern/efi/mm.c: Likewise.
23822 * term/efi/console.c: Likewise.
f19dbdb7 23823
976a4ea0 23824 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23825 (grub_stop): Removed.
23826 (grub_get_rtc): Likewise.
23827 (grub_machine_init): Simply call grub_efi_init.
23828 (grub_machine_fini): Call grub_efi_fini.
23829
23830 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23831 (grub_efi_output_string): Removed.
23832 (grub_efi_stall): New function.
23833 (grub_stop): Likewise.
23834 (grub_get_rtc): Likewise.
23835
23836 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23837 (grub_efi_stall): New prototype.
23838 (grub_efi_allocate_pages): Likewise.
23839 (grub_efi_free_pages): Likewise.
23840 (grub_efi_get_memory_map): Likewise.
23841 (grub_efi_mm_init): Likewise.
23842 (grub_efi_mm_fini): Likewise.
23843 (grub_efi_init): Likewise.
23844 (grub_efi_fini): Likewise.
23845
23846 * include/grub/i386/efi/time.h: Do not include
23847 grub/symbol.h. Include grub/efi/time.h.
23848 (GRUB_TICKS_PER_SECOND): Removed.
23849 (grub_get_rtc): Likewise.
23850
23851 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23852 Added padding. The EFI spec is buggy.
23853 (GRUB_EFI_BLACK): New macro.
23854 (GRUB_EFI_BLUE): Likewise.
23855 (GRUB_EFI_GREEN): Likewise.
23856 (GRUB_EFI_CYAN): Likewise.
23857 (GRUB_EFI_RED): Likewise.
23858 (GRUB_EFI_MAGENTA): Likewise.
23859 (GRUB_EFI_BROWN): Likewise.
23860 (GRUB_EFI_LIGHTGRAY): Likewise.
23861 (GRUB_EFI_BRIGHT): Likewise.
23862 (GRUB_EFI_DARKGRAY): Likewise.
23863 (GRUB_EFI_LIGHTBLUE): Likewise.
23864 (GRUB_EFI_LIGHTGREEN): Likewise.
23865 (GRUB_EFI_LIGHTCYAN): Likewise.
23866 (GRUB_EFI_LIGHTRED): Likewise.
23867 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23868 (GRUB_EFI_YELLOW): Likewise.
23869 (GRUB_EFI_WHITE): Likewise.
23870 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23871 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23872 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23873 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23874 (GRUB_EFI_BACKGROUND_RED): Likewise.
23875 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23876 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23877 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23878 (GRUB_EFI_TEXT_ATTR): Likewise.
23879
23880 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23881 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23882 (kernel_mod_HEADERS): Added efi/time.h.
23883
83709125 238842006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23885
23886 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23887 include/grub/efi/api.h, include/grub/efi/console_control.h,
23888 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23889 include/grub/i386/efi/time.h, kern/efi/efi.c,
23890 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23891 and util/i386/efi/grub-mkimage.c.
23892
23893 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23894
23895 * genmk.rb (PModule#rule): Do not export symbols if
23896 #{prefix}_EXPORTS is set to "no".
23897
23898 * conf/i386-efi.mk: New file.
23899 * conf/i386-efi.rmk: Likewise.
23900 * include/grub/efi/api.h: Likewise.
23901 * include/grub/efi/console_control.h: Likewise.
23902 * include/grub/efi/efi.h: Likewise.
23903 * include/grub/efi/pe32.h: Likewise.
23904 * include/grub/i386/efi/time.h: Likewise.
23905 * kern/efi/efi.c: Likewise.
23906 * kern/i386/efi/init.c: Likewise.
23907 * kern/i386/efi/startup.S: Likewise.
23908 * util/i386/efi/grub-mkimage.c: Likewise.
23909
239102006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 23911
23912 * include/grub/script.h: Include <grub/parser.h> and
23913 "grub_script.tab.h".
23914 (struct grub_lexer_param): New struct.
23915 (struct grub_parser_param): Likewise.
23916 (grub_script_create_arglist): Pass the state in an argument.
23917 (grub_script_add_arglist): Likewise.
23918 (grub_script_create_cmdline): Likewise.
23919 (grub_script_create_cmdblock): Likewise.
23920 (grub_script_create_cmdif): Likewise.
23921 (grub_script_create_cmdmenu): Likewise.
23922 (grub_script_add_cmd): Likewise.
23923 (grub_script_arg_add): Likewise.
23924 (grub_script_lexer_ref): Likewise.
23925 (grub_script_lexer_deref): Likewise.
23926 (grub_script_lexer_record_start): Likewise.
23927 (grub_script_lexer_record_stop): Likewise.
23928 (grub_script_mem_record): Likewise.
23929 (grub_script_mem_record_stop): Likewise.
23930 (grub_script_malloc): Likewise.
23931 (grub_script_yylex): Likewise.
23932 (grub_script_yyparse): Likewise.
23933 (grub_script_yyerror): Likewise.
23934 (grub_script_yylex): Likewise.
23935 (grub_script_lexer_init): Return the state.
23936
23937 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23938 (grub_script_lexer_done): Likewise.
23939 (grub_script_lexer_getline): Likewise.
23940 (grub_script_lexer_refs): Likewise.
23941 (script): Likewise.
23942 (newscript): Likewise.
23943 (record): Likewise.
23944 (recording): Likewise.
23945 (recordpos): Likewise.
23946 (recordlen): Likewise.
23947 (grub_script_lexer_init): Return the state instead of setting
23948 global variables.
23949 (grub_script_lexer_ref): Use the newly added argument for state
23950 instead of globals.
23951 (grub_script_lexer_deref): Likewise.
23952 (grub_script_lexer_record_start): Likewise.
23953 (grub_script_lexer_record_stop): Likewise.
23954 (recordchar): Likewise.
23955 (nextchar): Likewise.
23956 (grub_script_yylex2): Likewise.
23957 (grub_script_yylex): Likewise.
23958 (grub_script_yyerror): Likewise.
23959
23960 * normal/parser.y (func_mem): Removed variable.
23961 (menu_entry): Likewise.
23962 (err): Likewise.
23963 (%lex-param): New parser option.
23964 (%parse-param): Likewise.
23965 (script): Always return the AST.
23966 (argument): Pass the state around.
23967 (arguments): Likewise.
23968 (grubcmd): Likewise.
23969 (commands): Likewise.
23970 (function): Likewise.
23971 (menuentry): Likewise.
23972 (if_statement): Likewise.
23973 (if): Likewise.
23974
23975 * normal/script.c (grub_script_memused): Removed variable.
23976 (grub_script_parsed): Likewise.
23977 (grub_script_malloc): Added a state argument. Use that instead of
23978 global variables.
23979 (grub_script_mem_record): Likewise.
23980 (grub_script_mem_record_stop): Likewise.
23981 (grub_script_arg_add): Likewise.
23982 (grub_script_add_arglist): Likewise.
23983 (grub_script_create_cmdline): Likewise.
23984 (grub_script_create_cmdif): Likewise.
23985 (grub_script_create_cmdmenu): Likewise.
23986 (grub_script_add_cmd): Likewise.
23987 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 23988
e2a8c904 239892006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 23990
23991 * normal/command.c (grub_command_init): Remove the title command.
23992
23993 * normal/lexer.c (grub_script_yylex): Renamed from this...
23994 (grub_script_yylex2): ... to this.
23995 (grub_script_yylex): New function. Temporary
23996 introduced to filter some tokens.
23997 (grub_script_yyerror): Print a newline.
23998
23999 * normal/main.c (read_config_file): Output information about the
24000 lines that contain errors. Wait for a key after all lines have
24001 been processed. Don't return an empty menu.
24002
24003 * normal/parser.y (func_mem): Don't initialize.
24004 (menu_entry): Likewise.
24005 (err): New variable.
24006 (script): Don't return anything when an error was encountered.
24007 (ws, returns): Removed rules.
24008 (argument): Disabled concatenated variable support.
24009 (arguments): Remove explicit separators.
24010 (grubcmd): Likewise.
24011 (function): Likewise.
24012 (menuentry): Likewise.
24013 (if): Likewise.
24014 (commands): Likewise. Add error handling.
24015
24016 * normal/script.c (grub_script_create_cmdline): If
24017 `grub_script_parsed' is 0, assume the parser encountered an error.
24018
c9a86192 240192006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
24020
24021 * configure.ac: Add support for EFI. Fix the typo
24022 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
24023
70f3b243 240242006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24025
24026 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
24027 foreign multibyte characters should be shown correctly.
24028
65f201ad 240292006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24030
24031 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
24032 calculation.
24033 (read_config_file): Made it to close file before returning.
24034
b4b93674 240352006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
24036
24037 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
24038 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
24039 video/i386/pc/vbefill.c.
24040
24041 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
24042 video/i386/pc/vbefill.c.
24043
24044 * include/grub/video.h (grub_video_blit_format): New enum.
24045 (grub_video_mode_info): Added new member blit_format.
24046 (grub_video_get_blit_format): New function prototype.
24047
24048 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
24049 function prototype.
24050 (grub_video_vbe_map_rgb): Likewise.
24051 (grub_video_vbe_unmap_color): Likewise.
24052
24053 * include/grub/i386/pc/vbeblit.h: New file.
24054
24055 * include/grub/i386/pc/vbefill.h: New file.
24056
24057 * video/video.c (grub_video_get_blit_format): New function.
24058 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
24059 (grub_video_vbe_map_rgb): Likewise.
24060 (grub_video_vbe_unmap_color): Likewise.
24061
24062 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
24063 optimized fills.
24064 (grub_video_vbe_blit_render_target): Changed to use more optimized
24065 blits.
24066 (grub_video_vbe_setup): Added detection for optimized settings.
24067 (grub_video_vbe_create_render_target): Likewise.
24068
24069 * video/i386/pc/vbeblit.c: New file.
24070
24071 * video/i386/pc/vbefill.c: New file.
24072
c2379b9c 240732006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
24074
24075 * font/manager.c (grub_font_get_glyph): Removed font fixup from
24076 here...
24077
24078 * util/unifont2pff.rb: ... and moved it to here. Improved argument
24079 parsing to support both hex and dec ranges. If filename was missing
24080 show usage information.
24081
bd0d7896 240822006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
24083
24084 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
24085 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
24086
24087 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
24088 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
24089 (video_mod_SOURCES): Added.
24090 (video_mod_CFLAGS): Likewise.
24091 (video_mod_LDFLAGS): Likewise.
24092 (gfxterm_mod_SOURCES): Likewise.
24093 (gfxterm_mod_CFLAGS): Likewise.
24094 (gfxterm_mod_LDFLAGS): Likewise.
24095 (videotest_mod_SOURCES): Likewise.
24096 (videotest_mod_CFLAGS): Likewise.
24097 (videotest_mod_LDFLAGS): Likewise.
24098 (vesafb_mod_SOURCES): Removed.
24099 (vesafb_mod_CFLAGS): Likewise.
24100 (vesafb_mod_LDFLAGS): Likewise.
24101 (vga_mod_SOURCES): Likewise.
24102 (vga_mod_CFLAGS): Likewise.
24103 (vga_mod_LDFLAGS): Likewise.
24104
24105 * commands/videotest.c: New file.
24106
24107 * font/manager.c (fill_with_default_glyph): Modified to use
24108 grub_font_glyph.
24109 (grub_font_get_glyph): Likewise.
24110 (fontmanager): Renamed from this...
24111 (font_manager): ... to this.
24112
24113 * include/grub/font.h (grub_font_glyph): Added new structure.
24114 (grub_font_get_glyph): Modified to use grub_font_glyph.
24115
24116 * include/grub/misc.h (grub_abs): Added as inline function.
24117
24118 * include/grub/video.h: New file.
24119
24120 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
24121 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
24122 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
24123 (grub_vbe_get_controller_info): Renamed from this...
24124 (grub_vbe_bios_get_controller_info): ... to this.
24125 (grub_vbe_get_mode_info): Renamed from this...
24126 (grub_vbe_bios_get_mode_info): ... to this.
24127 (grub_vbe_set_mode): Renamed from this...
24128 (grub_vbe_bios_set_mode): ... to this.
24129 (grub_vbe_get_mode): Renamed from this...
24130 (grub_vbe_bios_get_mode): ... to this.
24131 (grub_vbe_set_memory_window): Renamed from this...
24132 (grub_vbe_bios_set_memory_window): ... to this.
24133 (grub_vbe_get_memory_window): Renamed from this...
24134 (grub_vbe_bios_get_memory_window): ... to this.
24135 (grub_vbe_set_scanline_length): Renamed from this...
24136 (grub_vbe_set_scanline_length): ... to this.
24137 (grub_vbe_get_scanline_length): Renamed from this...
24138 (grub_vbe_bios_get_scanline_length): ... to this.
24139 (grub_vbe_set_display_start): Renamed from this...
24140 (grub_vbe_bios_set_display_start): ... to this.
24141 (grub_vbe_get_display_start): Renamed from this...
24142 (grub_vbe_bios_get_display_start): ... to this.
24143 (grub_vbe_set_palette_data): Renamed from this...
24144 (grub_vbe_bios_set_palette_data): ... to this.
24145 (grub_vbe_set_pixel_rgb): Removed.
24146 (grub_vbe_set_pixel_index): Likewise.
24147
24148 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
24149 from this...
24150 (grub_vbe_bios_get_controller_info): ... to this.
24151 (grub_vbe_get_mode_info): Renamed from this...
24152 (grub_vbe_bios_get_mode_info): ... to this.
24153 (grub_vbe_set_mode): Renamed from this...
24154 (grub_vbe_bios_set_mode): ... to this.
24155 (grub_vbe_get_mode): Renamed from this...
24156 (grub_vbe_bios_get_mode): ... to this.
24157 (grub_vbe_set_memory_window): Renamed from this...
24158 (grub_vbe_bios_set_memory_window): ... to this.
24159 (grub_vbe_get_memory_window): Renamed from this...
24160 (grub_vbe_bios_get_memory_window): ... to this.
24161 (grub_vbe_set_scanline_length): Renamed from this...
24162 (grub_vbe_set_scanline_length): ... to this.
24163 (grub_vbe_get_scanline_length): Renamed from this...
24164 (grub_vbe_bios_get_scanline_length): ... to this.
24165 (grub_vbe_set_display_start): Renamed from this...
24166 (grub_vbe_bios_set_display_start): ... to this.
24167 (grub_vbe_get_display_start): Renamed from this...
24168 (grub_vbe_bios_get_display_start): ... to this.
24169 (grub_vbe_set_palette_data): Renamed from this...
24170 (grub_vbe_bios_set_palette_data): ... to this.
24171 (grub_vbe_bios_get_controller_info): Fixed problem with registers
24172 getting corrupted after calling it. Added more pushes and pops.
24173 (grub_vbe_bios_set_mode): Likewise.
24174 (grub_vbe_bios_get_mode): Likewise.
24175 (grub_vbe_bios_get_memory_window): Likewise.
24176 (grub_vbe_bios_set_scanline_length): Likewise.
24177 (grub_vbe_bios_get_scanline_length): Likewise.
24178 (grub_vbe_bios_get_display_start): Likewise.
24179 (grub_vbe_bios_set_palette_data): Likewise.
24180
24181 * normal/cmdline.c (cl_set_pos): Refresh the screen.
24182 (cl_insert): Likewise.
24183 (cl_delete): Likewise.
24184
24185 * term/gfxterm.c: New file.
24186
24187 * term/i386/pc/vesafb.c: Removed file.
24188
24189 * video/video.c: New file.
24190
24191 * video/i386/pc/vbe.c (real2pm): Added new function.
24192 (grub_video_vbe_draw_pixel): Likewise.
24193 (grub_video_vbe_get_video_ptr): Likewise.
24194 (grub_video_vbe_get_pixel): Likewise
24195 (grub_video_vbe_init): Likewise.
24196 (grub_video_vbe_fini): Likewise.
24197 (grub_video_vbe_setup): Likewise.
24198 (grub_video_vbe_get_info): Likewise.
24199 (grub_video_vbe_set_palette): Likewise.
24200 (grub_video_vbe_get_palette): Likewise.
24201 (grub_video_vbe_set_viewport): Likewise.
24202 (grub_video_vbe_get_viewport): Likewise.
24203 (grub_video_vbe_map_color): Likewise.
24204 (grub_video_vbe_map_rgb): Likewise.
24205 (grub_video_vbe_map_rgba): Likewise.
24206 (grub_video_vbe_unmap_color): Likewise.
24207 (grub_video_vbe_fill_rect): Likewise.
24208 (grub_video_vbe_blit_glyph): Likewise.
24209 (grub_video_vbe_blit_bitmap): Likewise.
24210 (grub_video_vbe_blit_render_target): Likewise.
24211 (grub_video_vbe_scroll): Likewise.
24212 (grub_video_vbe_swap_buffers): Likewise.
24213 (grub_video_vbe_create_render_target): Likewise.
24214 (grub_video_vbe_delete_render_target): Likewise.
24215 (grub_video_vbe_set_active_render_target): Likewise.
24216 (grub_vbe_set_pixel_rgb): Remove function.
24217 (grub_vbe_set_pixel_index): Likewise.
24218 (index_color_mode): Remove static variable.
24219 (active_mode): Likewise.
24220 (framebuffer): Likewise.
24221 (bytes_per_scan_line): Likewise.
24222 (grub_video_vbe_adapter): Added new static variable.
24223 (framebuffer): Likewise.
24224 (render_target): Likewise.
24225 (initial_mode): Likewise.
24226 (mode_in_use): Likewise.
24227 (mode_list): Likewise.
24228
5f97350b 242292006-03-10 Marco Gerards <marco@gnu.org>
24230
24231 * configure.ac (AC_INIT): Bumped to 1.93.
24232
24233 * DISTLIST: Added `include/grub/hfs.h'.
24234
a3c5c6f8 242352006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
24236
24237 * boot/i386/pc/boot.S (general_error): Before looping, try INT
24238 18H, which might help the BIOS falling back to next boot media.
24239
6de53d26 242402006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
24241
24242 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
24243 Poe Chen <poe.poechen@gmail.com>.
24244
77c4a393 242452006-01-17 Marco Gerards <marco@gnu.org>
24246
24247 * include/grub/normal.h: Include <grub/script.h>.
24248 (grub_command_list): Removed struct.
24249 (grub_command_list_t): Removed type.
24250 (grub_menu_entry): Remove members `num' and `command_list'. Add
24251 members `commands' and `sourcecode'.
24252 * include/grub/script.h: Add inclusion guards.
24253 (grub_script_cmd_menuentry): New struct.
24254 (grub_script_execute_menuentry): New prototype.
24255 (grub_script_lexer_record_start): Likewise.
24256 (grub_script_lexer_record_stop): Likewise.
24257 * normal/execute.c (grub_script_execute_menuentry): New function.
24258 * normal/lexer.c (record, recording, recordpos, recordlen): New
24259 variables.
24260 (grub_script_lexer_record_start): New function.
24261 (grub_script_lexer_record_stop): Likewise.
24262 (recordchar): Likewise.
24263 (nextchar): Likewise.
24264 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
24265 2048 as the buffer size. Add the tokens `menuentry' and `@'.
24266 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
24267 (current_menu): New variable.
24268 (free_menu): Mainly rewritten.
24269 (grub_normal_menu_addentry): New function.
24270 (read_config_file): Rewritten.
24271 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 24272 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 24273 the menu entry.
24274 (run): Mainly rewritten.
24275 * normal/parser.y (menu_entry): New variable.
24276 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
24277 (menuentry): New rule.
24278 (command): Add `menuentry'.
24279 (if_statement): Allow additional returns before `fi'.
24280 * normal/script.c (grub_script_create_cmdmenu): New function.
24281
144f1f98 242822006-01-03 Marco Gerards <marco@gnu.org>
24283
24284 * INSTALL: GNU Bison is required.
24285 * configure.ac: Rewritten the test to detect Bison.
24286 * Makefile.in (YACC): New variable. Reported by Xun Sun
24287 <xun.sun.cn@gmail.com>.
24288
af4b2d89 242892006-01-03 Marco Gerards <marco@gnu.org>
24290
24291 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
24292 the HFS+ filesystem to filesystem blocks.
24293 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
24294 GCC warning is silenced.
24295
15643b71 242962006-01-03 Marco Gerards <marco@gnu.org>
24297
24298 * partmap/apple.c (apple_partition_map_iterate): Convert the data
24299 read from disk from big endian to host byte order.
24300
00905879 243012006-01-03 Hollis Blanchard <hollis@penguinppc.org>
24302
24303 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
24304 documentation.
24305 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
24306 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
24307 embedded HFS+ filesystem.
24308 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
24309 (grub_hfs_sblock): Move from here...
24310 * include/grub/hfs.h: To here... New file.
24311 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
24312 documentation.
24313 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
24314 New macros.
24315 (grub_hfsplus_volheader): Change type of member `magic' to
24316 `grub_uint16_t'.
24317 (grub_hfsplus_data): Add new member `embedded_offset'.
24318 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
24319 returned block.
24320 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
24321 Calculate the offset.
24322
8899bc3e 243232005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24324
24325 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
24326 Removed.
24327 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
24328
ae8c0277 243292005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24330
24331 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
24332 ENV->NAME is NULL after allocating ENV->VALUE.
24333
07084456 243342005-12-25 Marco Gerards <marco@gnu.org>
24335
24336 * kern/env.c (grub_env_set): Rewritten the error handling code.
24337
4750f5f1 243382005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24339
24340 * geninit.sh: Made more robust, and more portable.
24341
50214199 243422005-12-25 Marco Gerards <marco@gnu.org>
24343
24344 Add support for Apple HFS+ filesystems.
f19dbdb7 24345
50214199 24346 * fs/hfsplus.c: New file.
24347
24348 * DISTLIST: Added `fs/hfsplus.c'.
24349
24350 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
24351 (hfsplus_mod_SOURCES): New variable.
24352 (hfsplus_mod_CFLAGS): Likewise.
24353 (hfsplus_mod_LDFLAGS): Likewise.
24354 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
24355 (grub_setup_SOURCES): Likewise.
24356 (grub_mkdevicemap_SOURCES): Likewise.
24357 (grub_emu_SOURCES): Likewise.
24358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24359
24360 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
24361
24362 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
24363
befaed6c 243642005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24365
24366 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
24367 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
24368 include/grub/parser.h, include/grub/script.h, kern/parser.c,
24369 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
24370 normal/lexer.c, normal/parser.y, normal/script.c, and
24371 partmap/gpt.c.
24372 Removed kern/sparc64/cache.c.
24373
24374 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
24375 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
24376 grub_emu_init.c.
24377
24378 * configure.ac (AC_INIT): Bumped to 1.92.
24379
6a124103 243802005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24381
24382 * kern/err.c (grub_error_push): Added new function to support error
24383 stacks.
24384 (grub_error_pop): Likewise.
24385 (grub_error_stack_items): New local variable to support error stacks.
24386 (grub_error_stack_pos): Likewise.
24387 (grub_error_stack_assert): Likewise.
24388 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24389 stack depth.
24390 (grub_print_error): Added support to print errors from error stack.
24391
24392 * include/grub/err.h (grub_error_push): Added function prototype.
24393 (grub_error_pop): Likewise.
24394
be973c1b 243952005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24396
24397 * configure.ac: Accept `powerpc64' as host_cpu.
24398 (amd64): Rename to `biarch32'.
24399
24400 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24401 non-cacheline-aligned addresses.
24402
24403 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24404 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24405 if `size' is non-zero.
24406
b04216ab 244072005-12-03 Marco Gerards <mgerards@xs4all.nl>
24408
24409 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24410 and `cd' to make sure the filename is not prefixed with a
24411 directory name.
24412 (pkgdata_MODULES): Add `gpt.mod'.
24413 (gpt_mod_SOURCES): New variable.
24414 (gpt_mod_CFLAGS): Likewise.
24415 (gpt_mod_LDFLAGS): Likewise.
24416
24417 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24418
24419 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24420 New macro.
24421
24422 * partmap/gpt.c: New file.
24423
24424 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24425 GPT partition map is detected.
24426
41730ed9 244272005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24428
24429 * commands/i386/pc/play.c: New file.
24430 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24431 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24432 macros.
f19dbdb7 24433
95dc3643 244342005-11-27 Marco Gerards <mgerards@xs4all.nl>
24435
24436 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24437 ((unused))' to silence gcc warning.
24438
1569ec51 244392005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24440
24441 * configure.ac: Correct `AC_PROG_YACC' test.
24442
9abde152 244432005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24444
24445 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24446 check before installing files.
24447
44b83271 244482005-11-22 Mike Small <smallm@panix.com>
24449
24450 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24451 number regex so multidigit numbers are recognized correctly.
24452
244532005-11-22 Mike Small <smallm@panix.com>
24454
24455 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24456 debugging message before attempting to claim memory.
24457 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24458 multiple addresses in case of failure.
24459
9c12956b 244602005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24461
24462 * term/tparm.c (get_space): Remove empty `if' statement.
24463
24464 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24465
24466 * kern/parser.c (check_varstate): Rename `state' to 's'.
24467
aeaf81d9 244682005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24469
24470 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24471 variable definitions to the beginning of each function. Sort stack
24472 variables by size.
24473 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24474 `buf' argument to `char *'.
24475
79bbb63f 244762005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24477
24478 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24479 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 24480 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 24481 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24482 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24483 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24484 configfile.mod, search.mod, gzio.mod and test.mod.
24485 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24486 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24487 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24488 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24489 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24490 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24491 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24492 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24493 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24494 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24495 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24496 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24497 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24498 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24499 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24500 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24501 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24502 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24503 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24504 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24505 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24506 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24507 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24508
24509 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24510 `grep --include'.
24511 (pkgdata_MODULES): Add test.mod.
24512
233b1628 245132005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24514
24515 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24516 appending to variables with "+=".
24517 (PModule): Use full pathname to generate *.lst filenames.
24518
24519 * Makefile.in: Fixed list rules moved from genmk.rb.
24520 (.DELETE_ON_ERROR): New special target.
24521 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24522
24523 * conf/i386-pc.rmk: Include conf/common.mk.
24524 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 24525 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 24526 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24527 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24528 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24529 configfile.mod, search.mod, gzio.mod and test.mod.
24530 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24531 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24532 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24533 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24534 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24535 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24536 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24537 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24538 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24539 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24540 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24541 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24542 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24543 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24544 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24545 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24546 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24547 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24548 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24549 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24550 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24551 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24552 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24553 here...
24554 * conf/common.rmk: ... to here. New file.
24555
24556 * conf/common.mk: New file.
24557
16f820c8 245582005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24559
24560 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24561 (grub_script.tab.c): ... here.
24562
24563 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24564 (grub_script.tab.c): ... here.
24565
24566 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24567 (grub_script.tab.c): ... here.
24568
24569 * normal/command.c (grub_command_find): Fixed a memory leak of
24570 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24571
63ba1554 245722005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24573
24574 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24575 "@" which marks the start of a comment on ARM.
24576 (VARIABLE): Likewise.
24577
7f67dc13 245782005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24579
79bbb63f 24580 Add support for Linux/ADFS partition tables.
7f67dc13 24581
24582 * partmap/acorn.c: New file.
24583
24584 * include/grub/acorn_filecore.h: Likewise.
24585
24586 * DISTLIST: Added `partmap/acorn.c' and
24587 `include/grub/acorn_filecore.h'.
f19dbdb7 24588
7f67dc13 24589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24590 `partmap/acorn.c'.
24591 (pkgdata_MODULES): Add `acorn.mod'.
24592 (acorn_mod_SOURCES): New variable.
24593 (acorn_mod_CFLAGS): Likewise.
24594
24595 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24596 `partmap/acorn.c'.
24597 (pkgdata_MODULES): Add `acorn.mod'.
24598 (acorn_mod_SOURCES): New variable.
24599 (acorn_mod_CFLAGS): Likewise.
24600
24601 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24602 (pkgdata_MODULES): Add `acorn.mod'.
24603 (acorn_mod_SOURCES): New variable.
24604 (acorn_mod_CFLAGS): Likewise.
24605 (acorn_mod_LDFLAGS): Likewise.
24606
24607 * include/types.h (grub_disk_addr_t): New typedef.
24608
6d099807 246092005-11-13 Marco Gerards <mgerards@xs4all.nl>
24610
24611 * geninit.sh: New file.
24612
24613 * geninitheader.sh: Likewise.
24614
24615 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24616 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24617 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24618 * commands/configfile.c (grub_configfile_init)
24619 (grub_configfile_fini): Likewise.
24620 * commands/default.c (grub_default_init, grub_default_fini):
24621 Likewise.
24622 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24623 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24624 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24625 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24626 Likewise.
24627 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24628 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24629 Likewise.
24630 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 24631 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 24632 Likewise.
24633 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24634 Likewise.
fe6b695a 24635 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 24636 Likewise.
24637 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24638 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24639 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24640 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24641 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24642 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24643 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24644 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24645 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24646 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24647 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24648 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24649 * partmap/amiga.c (grub_amiga_partition_map_init)
24650 (grub_amiga_partition_map_fini): Likewise.
24651 * partmap/apple.c (grub_apple_partition_map_init)
24652 (grub_apple_partition_map_fini): Likewise.
24653 * partmap/pc.c (grub_pc_partition_map_init)
24654 (grub_pc_partition_map_fini): Likewise.
24655 * partmap/sun.c (grub_sun_partition_map_init,
24656 grub_sun_partition_map_fini): Likewise.
24657 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24658 Likewise.
24659
24660 * util/grub-emu.c: Include <grub_modules_init.h>.
24661 (main): Don't initialize and de-initialize any modules directly,
24662 use `grub_init_all' and `grub_fini_all' instead.
24663
24664 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24665 `grub_vesafb_mod_init'.
24666 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24667 all users.
24668 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24669 `grub_vga_mod_init'. Updated all users.
24670 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 24671
6d099807 24672 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24673 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24674 rules.
24675
24676 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24677 Generate a function to initialize the module in utilities.
24678 Updated all callers.
24679 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24680 initialize the module in utilities. Updated all callers.
24681
9046bcf0 246822005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24683
24684 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24685 escape sequence and a literal ^L to clear the screen.
24686
24687 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24688 when returning from Open Firmware.
24689
d13ea639 246902005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24691
24692 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24693 (grub_ofconsole_height): Likewise.
24694 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24695 manually insert a '\n'.
24696 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24697 `grub_ofconsole_height'. Return early if these are already set.
24698
a8fcf206 246992005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24700
24701 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24702 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24703 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24704 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24705 and `normal/script.c'.
24706 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24707 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24708 (test_mod_SOURCES): New variable.
24709 (test_mod_CFLAGS): Likewise.
24710 (test_mod_LDFLAGS): Likewise.
24711 (pkgdata_MODULES): Add `test.mod'.
24712 (grub_script.tab.c): New rule.
24713 (grub_script.tab.h): Likewise.
24714
b6b32745 247152005-11-07 Marco Gerards <mgerards@xs4all.nl>
24716
24717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24718 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24719 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24720 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24721 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24722 (test_mod_SOURCES): New variable.
24723 (test_mod_CFLAGS): Likewise.
24724 (pkgdata_MODULES): Add `test.mod'.
24725 (grub_script.tab.c): New rule.
24726 (grub_script.tab.h): Likewise.
24727
daac212a 247282005-11-06 Marco Gerards <mgerards@xs4all.nl>
24729
24730 Add initial scripting support.
24731
24732 * commands/test.c: New file.
24733 * include/grub/script.h: Likewise.
24734 * normal/execute.c: Likewise.
24735 * normal/function.c: Likewise.
24736 * normal/lexer.c: Likewise.
24737 * normal/parser.y: Likewise.
24738 * normal/script.c: Likewise.
24739
24740 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 24741
daac212a 24742 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24743 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24744 `normal/function.c' and `normal/script.c'.
24745 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24746 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 24747 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24748 variables.
daac212a 24749 (pkgdata_MODULES): Add `test.mod'.
24750 (grub_script.tab.c): New rule.
24751 (grub_script.tab.h): Likewise.
24752
24753 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24754
24755 * include/grub/normal.h (grub_test_init): New prototype.
24756 (grub_test_fini): Likewise.
f19dbdb7 24757
daac212a 24758 * normal/command.c: Include <grub/script.h>.
24759 (grub_command_execute): Rewritten.
f19dbdb7 24760
daac212a 24761 * util/grub-emu.c (main): Call `grub_test_init' and
24762 `grub_test_fini'.
24763
77500b2b 247642005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24765
24766 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24767 to 0.
24768 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24769 there are no pending characters.
24770
e45deb9e 247712005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24772
24773 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24774 `grub_strndup' to drop device arguments. Replace unnecessary
24775 `grub_strndup' with `grub_strdup'.
24776
4ce32619 247772005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24778
24779 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24780 `debug' environment variable has been set.
24781
247822005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 24783
4ce32619 24784 * Makefile.in (install-local): Use $(DATA).
24785 (uninstall): Likewise.
24786 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24787 (sbin_UTILITIES): ... to here.
24788 (sbin_SCRIPTS): New variable.
24789 (grub_install_SOURCES): New variable.
24790 * util/powerpc/ieee1275/grub-install.in: New file.
24791 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24792 variable.
24793 (add_segments): Call `grub_util_get_path'.
24794
25fe6f03 247952005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24796
24797 From Timothy Baldwin:
24798 * commands/ls.c (grub_ls_list_files): Close FILE with
24799 grub_file_close.
24800 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24801
04ccf3ec 248022005-10-24 Marco Gerards <mgerards@xs4all.nl>
24803
24804 * include/grub/parser.h: New file.
24805
24806 * kern/parser.c: Likewise.
24807
24808 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24809 (grub_setup_SOURCES): Likewise.
24810 (grub_probefs_SOURCES): Likewise.
24811 (grub_emu_SOURCES): Likewise.
24812 (kernel_img_HEADERS): Add `parser.h'.
24813
24814 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24815 (grub_emu_SOURCES): Add `kern/parser.c'.
24816 (grubof_SOURCES): Likewise.
24817
24818 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24819 (grubof_SOURCES): Add `kern/parser.c'.
24820
24821 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24822
24823 * kern/misc.c (grub_split_cmdline): Removed function.
24824
24825 * kern/rescue.c: Include <grub/parser.h>.
24826 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24827 of `grub_split_cmdline'.
24828
24829 * normal/command.c: Include <grub/parser.h>.
24830 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24831 of `grub_split_cmdline'.
24832
24833 * normal/completion.c: Include <grub/parser.h>.
24834 (cmdline_state): New variable.
24835 (iterate_dir): End the filename with a quote depending on the
24836 command line state.
24837 (get_state): new function.
24838 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24839 split the arguments and determine the current argument. When the
24840 argument string is not quoted, escape all spaces.
24841
6d8f4b0e 248422005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24843
24844 * normal/sparc64/setjmp.S: New file.
24845
15cf03ed 248462005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24847
24848 * include/grub/sparc64/libgcc.h: New file.
24849 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24850 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24851 normal/sparc64/setjmp.c.
24852
03e8661a 248532005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24854
24855 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24856 * kern/sparc64/cache.S: New file.
24857 * kern/sparc64/cache.c: Removed.
24858 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24859 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24860 -mtune=ultrasparc.
24861 (COMMON_LDFLAGS): Add -melf64_sparc.
24862 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24863 (grubof_SOURCES): Use cache.S instead of cache.c.
24864 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24865 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24866 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24867 commented though.
24868 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24869 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24870 (linux_mod_CFLAGS): Commented out.
24871 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24872 out because module isn't built.
24873 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24874 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24875 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24876 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24877 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24878 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24879 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24880 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24881 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24882 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24883 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24884 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24885 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24886 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24887
34eeec8a 248882005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24889
24890 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24891 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24892 longer, because HFS should not be used on PC.
24893
708367a3 248942005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24895
24896 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24897 consistently within the loop.
24898
6fa1251a 248992005-10-15 Marco Gerards <mgerards@xs4all.nl>
24900
24901 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24902 directory can not be read.
24903
4801580b 249042005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24905
24906 * configure.ac (AC_INIT): Increase the version number to 1.91.
24907
24908 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24909 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24910 term/i386/pc/serial.c.
24911
219ad426 249122005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24913
24914 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24915 file size must be permitted.
24916
24917 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24918 between %ah and %al.
24919
688e5699 249202005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24921
24922 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24923 grub_uint64_t.
24924 Call the hook with a NUL-terminated filename.
24925 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24926 grub_cpu_to_be32.
24927
24928 * kern/term.c (cursor_state): New variable.
24929 (grub_term_set_current): Reset the cursor state on a new
24930 terminal.
24931 (grub_setcursor): Rewritten to use CURSOR_STATE.
24932 (grub_getcursor): New function.
24933
24934 * include/grub/term.h (grub_getcursor): New prototype.
24935
24936 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24937 integers on ARM. Reported by Timothy Baldwin
24938 <T.E.Baldwin99@members.leeds.ac.uk>.
24939
bb34586c 249402005-10-11 Marco Gerards <mgerards@xs4all.nl>
24941
24942 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24943 allocated.
24944 (grub_sfs_dir): Likewise.
24945
9a909877 249462005-10-09 Marco Gerards <mgerards@xs4all.nl>
24947
24948 Add support for the SFS filesystem.
24949
24950 * fs/sfs.c: New file.
24951
24952 * DISTLIST: Added `fs/sfs.c'.
24953
24954 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24955 (grub_probefs_SOURCES): Likewise.
24956 (grub_emu_SOURCES): Likewise.
24957 (pkgdata_MODULES): Add `sfs.mod'.
24958 (sfs_mod_SOURCES): New variable.
24959 (sfs_mod_CFLAGS): Likewise.
24960 (sfs_mod_LDFLAGS): Likewise.
24961
24962 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24963 (pkgdata_MODULES): Add `sfs.mod'.
24964 (sfs_mod_SOURCES): New variable.
24965 (sfs_mod_CFLAGS): Likewise.
24966
24967 * util/grub-emu.c (main): Call `grub_sfs_init' and
24968 `grub_sfs_fini'.
24969
24970 * include/grub/fs.h (grub_sfs_init): New prototype.
24971 (grub_sfs_fini): Likewise.
24972
57bdbde3 249732005-10-07 Marco Gerards <mgerards@xs4all.nl>
24974
24975 Add support for the AFFS filesystem.
24976
24977 * fs/affs.c: New file.
24978
24979 * DISTLIST: Added `fs/affs.c'.
24980
24981 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24982 (grub_probefs_SOURCES): Likewise.
24983 (grub_emu_SOURCES): Likewise.
24984 (pkgdata_MODULES): Add `affs.mod'.
24985 (affs_mod_SOURCES): New variable.
24986 (affs_mod_CFLAGS): Likewise.
24987 (affs_mod_LDFLAGS): Likewise.
24988
24989 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24990 (pkgdata_MODULES): Add `affs.mod'.
24991 (affs_mod_SOURCES): New variable.
24992 (affs_mod_CFLAGS): Likewise.
24993
24994 * util/grub-emu.c (main): Call `grub_affs_init' and
24995 `grub_affs_fini'.
24996
24997 * include/grub/fs.h (grub_affs_init): New prototype.
24998 (grub_affs_fini): Likewise.
24999
047b67e0 250002005-10-01 Marco Gerards <mgerards@xs4all.nl>
25001
25002 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
25003
59b8208a 250042005-10-01 Marco Gerards <mgerards@xs4all.nl>
25005
25006 * configure.ac: Accept `x86_64' as host_cpu. In that case add
25007 `-m32' to CFLAGS.
25008
25009 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
25010 linking.
f19dbdb7 25011
59b8208a 25012 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
25013 (COMMON_LDFLAGS): New variable.
25014 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
25015 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
25016 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
25017 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
25018 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
25019 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
25020 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
25021 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
25022 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
25023 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
25024 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25025 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25026 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
25027 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
25028 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
25029 variables.
25030 (normal_mod_ASFLAGS): Add `-m32'.
25031
25032 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
25033 (grub_host_size_t, grub_host_ssize_t): New types.
25034 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 25035 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 25036 `GRUB_HOST_SIZEOF_VOID_P'.
25037
25038 * include/grub/kernel.h (struct grub_module_header): Type of
25039 member offset changed to `grub_host_off_t'. Type of member size
25040 changed to `grub_host_size_t'.
25041 (struct grub_module_info): Type of member offset changed to
25042 `grub_host_off_t'. Type of member size changed to
25043 `grub_host_size_t'.
25044
b4093103 250452005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
25046
25047 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 25048
b4093103 25049 * kern/i386/pc/startup.S (multiboot_header): New label.
25050 (multiboot_entry): Likewise.
25051 (multiboot_trampoline): Likewise.
25052
25053 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25054 Increased to 0x4A0.
25055
25056 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
25057 put parentheses after a question mark.
25058 [!GRUB_UTIL] (my_mod): New variable.
25059
25060 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
25061
b2499b29 250622005-09-28 Marco Gerards <mgerards@xs4all.nl>
25063
25064 Adds support for the XFS filesystem. Btrees are not supported
25065 yet.
25066
25067 * fs/xfs.c: New file.
25068
25069 * DISTLIST: Added `fs/xfs.c'.
25070
25071 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
25072 (grub_probefs_SOURCES): Likewise.
25073 (grub_emu_SOURCES): Likewise.
25074 (pkgdata_MODULES): Add `xfs.mod'.
25075 (xfs_mod_SOURCES): New variable.
25076 (xfs_mod_CFLAGS): Likewise.
25077
25078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
25079 (pkgdata_MODULES): Add `xfs.mod'.
25080 (xfs_mod_SOURCES): New variable.
25081 (xfs_mod_CFLAGS): Likewise.
25082
25083 * util/grub-emu.c (main): Call `grub_xfs_init' and
25084 `grub_xfs_fini'.
25085
25086 * include/grub/fs.h (grub_xfs_init): New prototype.
25087 (grub_xfs_fini): Likewise.
25088
f19dbdb7 25089
83d37a62 250902005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
25091
25092 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
25093 color modes, allow greater than 16 colors to be configured as
25094 a default palette.
25095
47d2d65e 250962005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25097
25098 * normal/completion.c (complete_arguments): Add the qualifier
25099 const into OPTIONS.
25100
25101 From Omniflux <omniflux+lists@omniflux.com>:
25102 * include/grub/terminfo.h: New file.
25103 * include/grub/tparm.h: Likewise.
25104 * include/grub/i386/pc/serial.h: Likewise.
25105 * term/terminfo.c: Likewise.
25106 * term/tparm.c: Likewise.
25107 * term/i386/pc/serial.c: Likewise.
25108 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
25109 serial.mod.
25110 (terminfo_mod_SOURCES): New variable.
25111 (terminfo_mod_CFLAGS): Likewise.
25112 (serial_mod_SOURCES): Likewise.
25113 (serial_mod_CFLAGS): Likewise.
25114
48b671ff 251152005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
25116
25117 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
25118 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
25119 and kern/powerpc/ieee1275/cmain.c, respectively.
25120
25121 * boot/powerpc/ieee1275/crt0.S: Moved to ...
25122 * kern/powerpc/ieee1275/crt0.S: ... here.
25123
25124 * boot/powerpc/ieee1275/cmain.c: Moved to ...
25125 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 25126
48b671ff 25127 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
25128 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
25129 instead of boot/powerpc/ieee1275/crt0.S and
25130 boot/powerpc/ieee1275/cmain.c, respectively.
25131
25132 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
25133 sectors. It was not used anyway.
25134
09fc77a7 251352005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25136
25137 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
25138 `unused parameter' warning.
25139
003789c7 251402005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25141
25142 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
25143 function.
25144 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
25145 getcharwidth.
25146
67f44c86 251472005-08-28 Marco Gerards <metgerards@student.han.nl>
25148
25149 * include/grub/normal.h (enum grub_completion_type): Added
25150 `GRUB_COMPLETION_TYPE_ARGUMENT'.
25151
25152 * normal/cmdline.c (print_completion): Handle
25153 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
25154 * normal/menu_entry.c (store_completion): Likewise.
25155
25156 * normal/completion.c (complete_arguments): New function.
25157 (grub_normal_do_completion): Call `complete_arguments' when the
25158 current words start with a dash.
25159
0b5abe02 251602005-08-27 Marco Gerards <metgerards@student.han.nl>
25161
25162 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
25163 `gzio.mod' instead of `io.mod').
25164
d9864ee1 251652005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
25166
25167 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
25168 (DISTDIRS): Added io and video.
25169 Rewrite the search routine to make an output consistently.
25170
25171 * DISTLIST: Added conf/sparc64-ieee1275.mk,
25172 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
25173 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
25174 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
25175 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
25176 util/powerpc/ieee1275/misc.c.
f19dbdb7 25177
d9864ee1 25178 * include/grub/gzio.h: New file.
25179 * io/gzio.c: Likewise.
f19dbdb7 25180
d9864ee1 25181 * kern/file.c (grub_file_close): Call grub_device_close only if
25182 FILE->DEVICE is not NULL.
25183
25184 * include/grub/mm.h [!NULL] (NULL): New macro.
25185
25186 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
25187
25188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
25189 (pkgdata_MODULES): Added gzio.mod.
25190 (gzio_mod_SOURCES): New variable.
25191 (gzio_mod_CFLAGS): Likewise.
25192
25193 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
25194 (pkgdata_MODULES): Added gzio.mod.
25195 (gzio_mod_SOURCES): New variable.
25196 (gzio_mod_CFLAGS): Likewise.
25197
25198 * commands/cat.c: Include grub/gzio.h.
25199 (grub_cmd_cat): Use grub_gzfile_open instead of
25200 grub_file_open.
f19dbdb7 25201
d9864ee1 25202 * commands/cmp.c: Include grub/gzio.h.
25203 (grub_cmd_cmp): Use grub_gzfile_open instead of
25204 grub_file_open.
25205
25206 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
25207 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
25208 grub_file_open.
25209 (grub_rescue_cmd_module): Likewise.
25210
fa46f4b5 252112005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25212
25213 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
25214 kern/sparc64/ieee1275/init.c because it contains _start.
25215 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
25216
e9211b5d 252172005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25218
25219 * configure.ac: Add support for sparc64 host with ieee1275
25220 firmware.
25221 * configure: Generated from configure.ac.
25222 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
25223 instead of int.
25224 (grub_ofdisk_read): Likewise.
25225 (grub_ofdisk_open): Use %p to print pointer values, and cast the
25226 pointers as (void *) to remove a warning.
25227 (grub_ofdisk_close): Likewise.
25228 (grub_ofdisk_read): Likewise.
25229 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
25230 returns, so make it return void to remove a warning.
25231 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
25232 Corresponding prototype change.
25233 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
25234 values, and cast the pointers as (void *) to remove a warning.
25235 (grub_mm_dump): Likewise.
25236 * conf/sparc64-ieee1275.mk: New file.
25237 * conf/sparc64-ieee1275.rmk: Likewise.
25238 * include/grub/sparc64/setjmp.h: Likewise.
25239 * include/grub/sparc64/types.h: Likewise.
25240 * include/grub/sparc64/ieee1275/console.h: Likewise.
25241 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25242 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25243 * include/grub/sparc64/ieee1275/time.h: Likewise.
25244 * kern/sparc64/cache.c: Likewise.
25245 * kern/sparc64/dl.c: Likewise.
25246 * kern/sparc64/ieee1275/init.c: Likewise.
25247 * kern/sparc64/ieee1275/openfw.c: Likewise.
25248
385c6a92 252492005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25250
25251 * util/console.c (grub_ncurses_putchar): If C is greater than
25252 0x7f, set C to a question mark.
25253 (grub_ncurses_getcharwidth): New function.
25254 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
25255 getcharwidth.
25256
25257 * normal/menu.c (print_entry): Made aware of Unicode. First,
25258 convert TITLE to UCS-4, and predict the cursor position by
25259 grub_getcharwidth.
25260
25261 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
25262 const to SRC.
25263 * kern/misc.c (grub_utf16_to_utf8): Likewise.
25264
16ccb8b1 252652005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25266
25267 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
25268 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25269 grub_strcat.
25270
25271 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
25272 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25273 grub_strcpy and grub_strlen. Take it into account that a space
25274 character is inserted as a delimiter.
25275
6a85ce79 252762005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25277
25278 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 25279 invalid magic in the error.
6a85ce79 25280
25281 * commands/search.c: New file.
f19dbdb7 25282
6a85ce79 25283 * util/grub-emu.c (main): Call grub_search_init and
25284 grub_search_fini.
25285
25286 * kern/rescue.c (grub_rescue_print_disks): Removed.
25287 (grub_rescue_print_devices): New function.
25288 (grub_rescue_cmd_ls): Use grub_device_iterate with
25289 grub_rescue_print_devices instead of grub_disk_dev_iterate with
25290 grub_rescue_print_disks.
25291
25292 * kern/partition.c (grub_partition_iterate): Return the result of
25293 PARTMAP->ITERATE instead of GRUB_ERRNO.
25294
25295 * kern/device.c: Include grub/partition.h.
25296 (grub_device_iterate): New function.
25297
25298 * include/grub/partition.h (grub_partition_iterate): Return int
25299 instead of grub_err_t.
25300
25301 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
25302 prototype.
25303 [GRUB_UTIL] (grub_search_fini): Likewise.
25304
25305 * include/grub/device.h (grub_device_iterate): New prototype.
25306
25307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25308 commands/search.c.
25309 (pkgdata_MODULES): Added search.mod.
25310 (search_mod_SOURCES): New variable.
25311 (search_mod_CFLAGS): Likewise.
25312
25313 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
25314 (pkgdata_MODULES): Added search.mod.
25315 (search_mod_SOURCES): New variable.
25316 (search_mod_CFLAGS): Likewise.
25317
25318 * commands/ls.c (grub_ls_list_disks): Renamed to ...
25319 (grub_ls_list_devices): ... this, and use grub_device_iterate.
25320 All callers changed.
25321
25322 * DISTLIST: Added commands/search.c.
25323
ef095434 253242005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25325
25326 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
25327 conversion.
25328 (grub_getcharwidth): New function.
25329
25330 * kern/misc.c (grub_utf8_to_ucs4): New function.
25331
25332 * include/grub/term.h (struct grub_term): Added a new member
25333 "getcharwidth".
25334 (grub_getcharwidth): New prototype.
25335
25336 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
25337
25338 * term/i386/pc/console.c (map_char): New function. Segregated from
25339 grub_console_putchar.
25340 (grub_console_putchar): Use map_char.
25341 (grub_console_getcharwidth): New function.
25342 (grub_console_term): Specified grub_console_getcharwidth as
25343 getcharwidth.
25344
25345 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
25346 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
25347
25348 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
25349 GRUB_ERRNO.
25350 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
25351 on grub_strtoul completely.
25352 (write_char): Declare local variables in the beginning of the
25353 function.
25354 (grub_vesafb_getcharwidth): New function.
25355 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
25356 getcharwidth.
25357
1f0a95e4 253582005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
25359
25360 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
25361 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
25362 commands/i386/pc/vbetest.c.
25363
25364 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
25365 call grub_vbe_get_controller_info again, because the returned
25366 information is volatile.
25367 (grub_vbe_set_video_mode): Mostly rewritten.
25368 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
25369 grub_vbe_status_t correctly.
25370 (grub_vbe_get_video_mode_info): Likewise.
25371 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
25372 several if statements.
25373
25374 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
25375 * commands/i386/pc/vbeinfo.c: ... this.
25376
25377 * commands/i386/pc/vbe_test.c: Renamed to ...
25378 * commands/i386/pc/vbetest.c: ... this.
25379
25380 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25381 ...
25382 (grub_cmd_vbeinfo): ... this. Save video modes before
25383 iterating. Skip a video mode, if it is not available, not enough
25384 information is given or it is monochrome. Show the memory
25385 model. Leave the interpretation of MODEVAR to grub_strtoul
25386 completely.
25387 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25388 (GRUB_MOD_FINI): Likewise.
25389
25390 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25391 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25392 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25393 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25394 grub_strtoul completely.
25395 (real2pm): Removed.
25396 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25397 (GRUB_MOD_FINI): Likewise.
25398
25399 * normal/misc.c: Include grub/mm.h.
25400
25401 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25402 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25403 (vbe_list_modes_mod_SOURCES): Removed.
25404 (vbe_list_modes_mod_CFLAGS): Likewise.
25405 (vbe_test_mod_SOURCES): Likewise.
25406 (vbe_test_mod_CFLAGS): Likewise.
25407 (vbeinfo_mod_SOURCES): New variable.
25408 (vbeinfo_mod_CFLAGS): Likewise.
25409 (vbetest_mod_SOURCES): Likewise.
25410 (vbetest_mod_CFLAGS): Likewise.
25411
992ffbbe 254122005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25413
25414 * normal/misc.c: New file.
25415
25416 * DISTLIST: Added normal/misc.c.
f19dbdb7 25417
992ffbbe 25418 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25419 DISK to HOOK. Call HOOK with DISK.
25420 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25421 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25422 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25423
25424 * normal/menu_entry.c (struct screen): Added a new member
25425 "completion_shown".
25426 (completion_buffer): New global variable.
25427 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25428 (store_completion): New function.
25429 (complete): Likewise.
25430 (clear_completions): Likewise.
25431 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25432 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25433 a tab, call complete.
25434
25435 * normal/completion.c (disk_dev): Removed.
25436 (print_simple_completion): Likewise.
25437 (print_partition_completion): Likewise.
25438 (print_func): New global variable.
25439 (add_completion): Do not take the arguments WHAT or PRINT any
25440 longer. Added a new argument TYPE. Instead of printing directly,
25441 call PRINT_FUNC if not NULL.
25442 All callers changed.
25443 (complete_device): Use a local variable DEV instead of
25444 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25445 (grub_normal_do_completion): Take a new argument HOOK. Do not
25446 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25447 empty string, return NULL instead.
25448 All callers changed.
25449
25450 * normal/cmdline.c (print_completion): New function.
25451
25452 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25453 to HOOK.
25454 All callers changed.
25455
25456 * kern/disk.c (grub_print_partinfo): Removed.
25457
25458 * include/grub/partition.h (struct grub_partition_map): Add a new
25459 argument DISK into HOOK of ITERATE.
25460 (grub_partition_iterate): Add a new argument DISK to HOOK.
25461
25462 * include/grub/normal.h (enum grub_completion_type): New enum.
25463 (grub_completion_type_t): New type.
25464 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25465 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25466 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25467 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25468 (grub_normal_do_completion): Added a new argument HOOK.
25469 (grub_normal_print_device_info): New prototype.
25470
25471 * include/grub/disk.h (grub_print_partinfo): Removed.
25472
25473 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25474 (normal_mod_SOURCES): Likewise.
25475 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25476 (normal_mod_SOURCES): Likewise.
25477
25478 * commands/ls.c (grub_ls_list_disks): Use
25479 grub_normal_print_device_info instead of grub_print_partinfo. Free
25480 PNAME.
25481 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25482 duplicating the code.
25483
0bd41162 254842005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25485
25486 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 25487 follow GCS more precisely.
25488 * commands/i386/pc/vbe_test.c: Likewise.
25489 * include/grub/i386/pc/vbe.h: Likewise.
25490 * term/i386/pc/vesafb.c: Likewise.
25491 * video/i386/pc/vbe.c: Likewise.
0bd41162 25492
6323696a 254932005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25494
25495 * DISTLIST: Added term/i386/pc/vesafb.c
25496 DISTLIST: Added video/i386/pc/vbe.c
25497 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25498 DISTLIST: Added commands/i386/pc/vbe_test.c.
25499 * commands/i386/pc/vbe_list_modes.c: New file.
25500 * commands/i386/pc/vbe_test.c: Likewise.
25501 * term/i386/pc/vesafb.c: Likewise.
25502 * video/i386/pc/vbe.c: Likewise.
25503 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25504 (grub_vbe_probe) Added prototype.
25505 (grub_vbe_set_video_mode) Likewise.
25506 (grub_vbe_get_video_mode) Likewise.
25507 (grub_vbe_get_video_mode_info) Likewise.
25508 (grub_vbe_set_pixel_rgb) Likewise.
25509 (grub_vbe_set_pixel_index) Likewise.
25510 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25511 (pkgdata_MODULES): Added vesafb.mod.
25512 (pkgdata_MODULES): Added vbe_list_modes.mod.
25513 (pkgdata_MODULES): Added vbe_test.mod.
25514 (vbe_mod_SOURCES): Added.
25515 (vbe_mod_CFLAGS): Likewise.
25516 (vesafb_mod_SOURCES): Likewise.
25517 (vesafb_mod_CFLAGS): Likewise.
25518 (vbe_list_modes_mod_SOURCES): Likewise.
25519 (vbe_list_modes_mod_CFLAGS): Likewise.
25520 (vbe_test_mod_SOURCES): Likewise.
25521 (vbe_test_mod_CFLAGS): Likewise.
25522
0a74e62f 255232005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25524
0a74e62f 25525 * normal/command.c (grub_command_execute): If INTERACTIVE is
25526 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25527 CMDLINE. Disable the pager if INTERACTIVE is true.
25528 All callers are changed.
25529
25530 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25531 before reading a config file.
25532 * normal/main.c (read_config_file): Even if a command is not
25533 found, register it if it is within an entry.
25534
25535 * util/grub-emu.c: Include sys/types.h and unistd.h.
25536 (options): Added --hold.
25537 (struct arguments): Added a new member "hold".
25538 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25539 missing.
25540 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25541 cleared by a debugger, if it is not zero.
25542
25543 * include/grub/normal.h (grub_command_execute): Add an argument
25544 INTERACTIVE.
25545
e51f85ae 255462005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25547
25548 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25549
e9c6f39b 255502005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25551
25552 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25553 program with another one, because the old one didn't detect a bug
25554 in gcc-3.4. Always use regparm 2, because the new test is still
25555 not enough for gcc-4.0. Someone must investigate a simple test
25556 case which detects a bug in gcc-4.0.
25557
8de3495c 255582005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25559
25560 * DISTLIST: Added normal/completion.c.
25561
25562 * normal/completion.c: New file.
f19dbdb7 25563
8de3495c 25564 * term/i386/pc/console.c (grub_console_getwh): New function.
25565 (grub_console_term): Assign grub_console_getwh to getwh.
25566
25567 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25568 function is defined in normal/completion.c as
25569 grub_normal_do_completion.
25570 (grub_cmdline_get): Use grub_normal_do_completion instead of
25571 grub_tab_complete.
25572
25573 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25574 returns non-zero, otherwise return 0.
25575 (grub_partition_iterate): First, probe the partition map. Then,
25576 call ITERATE only for this partition map.
25577
25578 * kern/misc.c (grub_strncmp): Rewritten.
25579
25580 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25581 returns non-zero. Otherwise return 0.
25582
25583 * include/grub/partition.h (grub_partition_map_iterate): Return
25584 int instead of void.
25585
25586 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25587
25588 * include/grub/misc.h (grub_strncmp): Change the type of N to
25589 grub_size_t.
25590
25591 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25592 of void.
25593
25594 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 25595 unsigned explicitly before comparing it with I.
8de3495c 25596
25597 * kern/main.c (grub_env_write_root): Add the attribute unused into
25598 VAR.
25599
25600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25601 normal/completion.c.
25602 (normal_mod_SOURCES): Likewise.
25603 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25604 (normal_mod_SOURCES): Likewise.
25605
25606 * normal/command.c (grub_iterate_commands): If ITERATE returns
25607 non-zero, return one immediately.
25608
e85e144b 256092005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25610
25611 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25612 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25613 descriptions.
25614 (grub_vbe_get_controller_info): New function.
25615 (grub_vbe_get_mode_info): Likewise.
25616 (grub_vbe_set_mode): Likewise.
25617 (grub_vbe_get_mode): Likewise.
25618 (grub_vbe_set_memory_window): Likewise.
25619 (grub_vbe_get_memory_window): Likewise.
25620 (grub_vbe_set_scanline_length): Likewise.
25621 (grub_vbe_get_scanline_length): Likewise.
25622 (grub_vbe_set_display_start): Likewise.
25623 (grub_vbe_get_display_start): Likewise.
25624 (grub_vbe_set_palette_data): Likewise.
25625 * include/grub/i386/pc/vbe.h: New file.
25626
c46153d2 256272005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25628
25629 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25630 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25631 * DISTLIST: Likewise.
25632 * kern/ieee1275/of.c: Moved to ...
25633 * kern/ieee1275/ieee1275.c: ... here.
25634
0cb90c45 256352005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25636
25637 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25638 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25639 Pass 0 as `end' parameter to grub_strtoul().
25640
a19fb360 256412005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25642
25643 * include/grub/powerpc/ieee1275/console.h: Do not include
25644 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25645 ifdef.
25646 (grub_console_cur_color): Remove i386-specific prototype.
25647 (grub_console_real_putchar): Likewise.
25648 (grub_console_checkkey): Likewise.
25649 (grub_console_getkey): Likewise.
25650 (grub_console_getxy): Likewise.
25651 (grub_console_gotoxy): Likewise.
25652 (grub_console_cls): Likewise.
25653 (grub_console_setcursor): Likewise.
25654 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25655 Include <grub/machine/console.h>.
25656 * term/ieee1275/ofconsole.c: Likewise.
25657
4ac9bd04 256582005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25659
25660 * Makefile.in (LIBLZO): New variable.
25661
25662 * configure.ac: Check for LZO version 2.
25663
25664 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25665 lzo/lzo1x.h instead of lzo1x.h.
25666
25667 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25668 of -llzo.
25669
25670 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25671 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25672
25673 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25674 copying the data from PARTITION to P.
25675
f4917dfd 256762005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25677
25678 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25679 negative, unload the module.
25680
25681 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25682 map is "pc_partition_map" but not "pc".
25683 (usage): Fix the description. The options are --boot-image and
25684 --core-image but not --boot-file or --core-file.
25685 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25686 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25687 DEFAULT_DIRECTORY.
25688
25689 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25690 --core-file. Specify INSTALL_DEVICE as an argument.
25691
25692 * util/console.c: Include config.h.
25693 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25694 [HAVE_NCURSES_H]: Include ncurses.h.
25695 [HAVE_CURSES_H]: Include curses.h.
25696 [!A_NORMAL] (A_NORMAL): Defined as zero.
25697 [!A_STANDOUT] (A_STANDOUT): Likewise.
25698
25699 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25700 -lncurses.
25701 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25702
25703 * configure.ac: Check for curses libraries and headers.
25704
25705 * Makefile.in (LIBCURSES): New variable.
25706
25707 * genmk.rb (Script::rule): Set the executable bits.
25708
25709 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25710 name of the PC partition map is "pc_partition_map" but not "pc".
25711
0e143073 257122005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25713
25714 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25715 (modules): Likewise.
25716 (usage): Added descriptions for --modules and --grub-probefs.
25717 Handle --modules and --grub-probefs. Save the arguments in MODULES
25718 and GRUB_PROBEFS, respectively.
25719 Auto-detect a filesystem module against GRUBDIR. If the result is
25720 empty and modules are not specified explicitly, abort the
25721 installation. Add the result to MODULES.
25722
25723 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25724 disk/powerpc/ieee1275/ofdisk.c,
25725 include/grub/powerpc/ieee1275/init.h and
25726 term/powerpc/ieee1275/ofconsole.c.
25727 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25728 term/ieee1275/ofconsole.c.
25729
25730 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25731
25732 * COPYING: Upgraded to the latest version. Only the address of the
25733 FSF office has changed.
f19dbdb7 25734
efd6e6d5 257352005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25736
25737 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25738 kern/ieee1275.c with kern/ieee1275/of.c.
25739
25740 * kern/ieee1275.c: Moved to ...
25741 * kern/ieee1275/of.c: ... here.
25742
8ceafda2 257432005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25744
25745 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 25746 readability.
8ceafda2 25747
25748 * config.guess: Updated to the latest version from gnulib.
25749 * config.sub: Likewise.
25750 * install.sh: Likewise.
25751 * mkinstalldirs: Likewise.
25752
25753 * include/grub/console.h: Removed. This file is arch-specific. Do
25754 not put this in include/grub.
25755
25756 * include/grub/i386/pc/console.h: Resurrected.
25757
25758 * util/console.c: Include grub/machine/console.h instead of
25759 grub/console.h.
25760 * util/grub-emu.c: Likewise.
25761
267f6cd9 257622005-08-04 Marco Gerards <metgerards@student.han.nl>
25763
25764 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25765 hardcoded value.
f19dbdb7 25766
267f6cd9 25767 From Vincent Pelletier <subdino2004@yahoo.fr>
25768 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25769 Redefined to use grub_getwh.
25770 (grub_term): New member named getwh.
25771 (grub_getwh): New prototype.
25772 * kern/term.c (grub_getwh): New function.
25773 * term/i386/pc/console.c (grub_console_getwh): New function.
25774 (grub_console_term): New member `getwh'.
25775 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25776 (grub_vga_term): New member `getwh'.
0b5abe02 25777 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 25778 grub_ssize_t.
25779 (grub_ofconsole_getw): New function.
25780 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25781 (grub_ofconsole_term): New field named getwh and new initial
25782 value.
25783
3be7266d 257842005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25785
25786 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25787 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25788 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25789 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25790 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25791 of <grub/machine/ieee1275.h>.
25792 * commands/ieee1275/reboot.c: Likewise.
25793 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25794 * kern/ieee1275.c: ... to here. All users updated. Change all
25795 parameter structs to use new type `grub_ieee1275_cell_t'.
25796 * term/powerpc/ieee1275/ofconsole.c: Move ...
25797 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25798 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25799 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25800 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25801 to return int.
25802 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25803 Remove unused prototypes. All users updated.
25804 * include/grub/powerpc/ieee1275/console.h: Removed.
25805 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25806 `grub_ieee1275_cell_t'.
25807 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25808 Cast comparisons with -1 to the correct type.
25809 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25810 type to match `grub_ieee1275_entry_fn'.
25811
8b5f3938 258122005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25813
25814 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25815
25816 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25817 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25818 partmap/sun.c.
25819 (grub_probefs_SOURCES): New variable.
25820
25821 * util/i386/pc/grub-probefs.c: New file.
25822
25823 * util/i386/pc/grub-setup.c (main): Call
25824 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25825 grub_hfs_init and grub_jfs_init to initialize the system. Call
25826 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25827 grub_pc_partition_map_fini to finish the system.
25828
ea409713 258292005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25830
25831 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25832 function.
25833 (grub_multiboot_load_elf32): Likewise.
25834 (grub_multiboot_is_elf64): Likewise.
25835 (grub_multiboot_load_elf64): Likewise.
25836 (grub_multiboot_load_elf): Likewise.
25837 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25838 an ELF32 or ELF64 file.
25839 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25840
25841 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25842 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25843 NULL before calling FS->LABEL.
25844 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25845 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25846 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25847 before calling FS->LABEL.
25848
141a288b 258492005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25850
25851 * util/i386/pc/grub-install.in (datadir): New variable.
25852 (libdir): Removed.
25853 (pkgdatadir): New variable.
25854 (pkglibdir): Removed.
25855
0d5f8a54 258562005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25857
25858 * DISTLIST: Added util/i386/pc/grub-install.in.
25859
25860 * util/i386/pc/grub-install.in: New file.
25861
25862 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25863 (grub_install_SOURCES): Likewise.
25864
25865 * genmk.rb: Added support for scripts.
25866 (Script): New class.
25867 (scripts): New variable.
25868
25869 * Makefile.in (install-local): Install sbin_SCRIPTS by
25870 INSTALL_SCRIPT.
25871 (uninstall): Remove sbin_SCRIPTS.
25872
25873 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25874 device, try to get a GRUB device by
25875 grub_util_biosdisk_get_grub_dev.
25876 Free DEST_DEV.
25877
25878 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25879 description for --device-map.
25880
5f968e1e 258812005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25882
25883 Change the semantics of variable hooks. They now return strings
25884 instead of error values.
f19dbdb7 25885
5f968e1e 25886 * util/i386/pc/grub-setup.c: Include grub/env.h.
25887 (setup): Use grub_device_set_root instead of grub_env_set.
25888
25889 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25890 grub_env_get instead of grub_device_set_root and
25891 grub_device_get_root, respectively.
25892
25893 * kern/main.c (grub_env_write_root): New function.
25894 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25895 grub_env_set instead of grub_device_set_root.
25896
25897 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25898 many variables.
25899 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25900 rather than calling ENV->WRITE_HOOK afterwards.
25901 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25902 passing a pointer of a pointer.
25903 (grub_register_variable_hook): Change the types of "read_hook" and
25904 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25905 respectively.
25906 Allocate the default empty string on the heap, because this string
25907 may be freed later.
25908
25909 * kern/device.c: Include grub/env.h.
25910 (grub_device_set_root): Removed.
25911 (grub_device_get_root): Likewise.
25912 (grub_device_open): Use grub_env_get instead of
25913 grub_device_get_root.
25914
25915 * include/grub/env.h (grub_env_read_hook_t): New type.
25916 (grub_env_write_hook_t): Likewise.
25917 (grub_env_var): Change the types of "read_hook" and "write_hook"
25918 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25919 (grub_register_variable_hook): Likewise.
25920
25921 * include/grub/device.h (grub_device_set_root): Removed.
25922 (grub_device_set_root): Likewise.
25923
25924 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25925 make sure that DIRNAME terminates with '/', so that
25926 grub_fat_find_dir will fail if PATH is not a directory.
25927
25928 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25929 from DIRNAME.
25930 Use the qualifier auto for print_files and print_files_long.
25931 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25932 as a regular file.
25933 Put a newline only if there is no error.
25934 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25935 used.
25936
896f0afd 259372005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25938
25939 * kern/partition.c (grub_partition_probe): Initialize PART to
25940 NULL. Otherwise, when no partition map is registered, this returns
25941 a garbage.
25942
b28b81b2 259432005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25944
25945 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25946 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25947 valid.
25948
5f3607e0 259492005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25950
25951 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25952 information on each device, if it does not have partitions. Print
25953 "Device" instead of "Disk", because this function is not specific
25954 to disk devices.
25955
25956 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25957 static to ensure that it is put on the memory rather than a
25958 register.
25959
502c87e8 259602005-07-17 Yoshinori Okuji <okuji@enbug.org>
25961
25962 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25963 (grub_cat_init): Likewise.
25964 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25965 (options): Likewise.
25966 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25967 (grub_configfile_init): Likewise.
25968 * font/manager.c (GRUB_MOD_INIT): Likewise.
25969 * commands/help.c (GRUB_MOD_INIT): Likewise.
25970 (grub_help_init): Likewise.
25971 * normal/command.c (grub_command_init): Likewise.
25972 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25973 * disk/loopback.c (grub_loop_init): Likewise.
25974 (GRUB_MOD_INIT): Likewise.
25975 * commands/ls.c (grub_ls_init): Likewise.
25976 (GRUB_MOD_INIT): Likewise.
25977 (options): Likewise.
25978 * commands/boot.c (grub_boot_init): Likewise.
25979 (GRUB_MOD_INIT): Likewise.
25980 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25981 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25982 (GRUB_MOD_INIT): Likewise.
25983 * commands/cmp.c (grub_cmp_init): Likewise.
25984 (GRUB_MOD_INIT): Likewise.
25985
25986 * normal/arg.c: Use <> instead of "" to include header files.
25987 (SHORT_ARG_HELP): New macro.
25988 (SHORT_ARG_USAGE): Likewise.
25989 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25990 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25991 descriptions.
25992 (find_short): Check if C is 'h' or 'u' explicitly.
25993 (grub_arg_show_help): Use space characters instead of tabs. Treat
25994 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25995 are shown with --help and --usage only if they are not used for
25996 the command itself.
25997 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25998 'h' and 'u'.
25999
26000 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
26001 const into "longarg". Change the type of "shortarg" to int.
26002
f806d18e 260032005-07-17 Yoshinori Okuji <okuji@enbug.org>
26004
26005 * boot/i386/pc/boot.S (boot_drive_check): New label.
26006
26007 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
26008 macro.
26009
26010 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
26011 which do not pass a boot drive correctly. Copied from GRUB Legacy.
26012
e293232b 260132005-07-17 Yoshinori Okuji <okuji@enbug.org>
26014
26015 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
26016 When turning off Gate A20, skip the check and return immediately,
26017 because this is not fatal usually.
26018
ebedfd00 260192005-07-17 Yoshinori Okuji <okuji@enbug.org>
26020
26021 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
26022 be 0x7C00 instead of 0x8000.
26023
26024 * boot/i386/pc/pxeboot.S: Rewritten.
26025
26026 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
26027 EXT_C.
26028 (gate_a20_check_state): Read a byte from 0x108000. Invert the
26029 result.
26030
654fc59f 260312005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
26032
26033 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
26034 robustness. This routine now supports a BIOS call and System
26035 Control Port A to modify the gate A20.
26036
26037 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26038 Increased to 0x440.
26039
09f9923f 260402005-07-12 Hollis Blanchard <hollis@penguinppc.org>
26041
26042 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
26043 device path and resulting ihandle.
26044 (grub_ofdisk_close): dprintf the ihandle being closed.
26045 (grub_ofdisk_read): dprintf function parameters.
26046 * kern/mm.c (grub_mm_init_region): Likewise.
26047 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
26048 (grub_linux_boot): dprintf the Linux entry point, initrd address and
26049 size, and boot arguments.
26050 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
26051 before loading into memory.
26052 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
26053 before loading into memory.
26054
7ef504d8 260552005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
26056
26057 * kern/mm.c: Added much documentation.
26058 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
26059 8, set to 5 instead of 8.
26060
e0f050c2 260612005-07-10 Yoshinori Okuji <okuji@enbug.org>
26062
26063 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
26064
26065 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
26066 (grub_mkdevicemap_SOURCES): New variable.
26067
26068 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
26069 lib/device.c of GRUB Legacy.
26070
7224189a 260712005-07-10 Yoshinori Okuji <okuji@enbug.org>
26072
26073 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
26074 instead of PATH is NULL.
26075
68c864eb 260762005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
26077
26078 * commands/cmp.c (BUFFER_SIZE): New macro.
26079 (grub_cmd_cmp): Close the right file at the right time. Compare
26080 only data just read. Don't report files of different size as
26081 identical. Dynamically allocate buffers. Move variable
26082 declarations at the beginning of function.
26083
e6f3e614 260842005-07-09 Yoshinori Okuji <okuji@enbug.org>
26085
26086 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
26087 reverse.
26088
f8f1559a 260892004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
26090
26091 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
26092 when backspace is pressed at beginning of line.
26093
39c9d41d 260942005-07-03 Yoshinori Okuji <okuji@enbug.org>
26095
26096 * DISTLIST: Added genfslist.sh.
26097
26098 * normal/main.c (fs_module_list): New variable.
26099 (autoload_fs_module): New function.
26100 (read_fs_list): Likewise.
26101 (grub_normal_execute): Call read_fs_list.
26102
26103 * kern/fs.c (grub_fs_autoload_hook): New variable.
26104 (grub_fs_probe): Added support for auto-loading.
26105
26106 * include/grub/normal.h (struct grub_fs_module_list): New struct.
26107 (grub_fs_module_list_t): New type.
26108
26109 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
26110 (grub_fs_autoload_hook): New prototype.
26111
26112 * genfslist.sh: New file.
f19dbdb7 26113
39c9d41d 26114 * genmk.rb: Added a rule to generate a filesystem list.
26115
121c1d83 261162005-06-30 Marco Gerards <metgerards@student.han.nl>
26117
26118 * configure.ac: Fix the test for cross-compiling.
26119
26120 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
26121 define GRUB_UTIL anymore.
26122
26123 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
26124 so this function works on other systems than just big endian.
26125 (load_modules): Likewise.
26126 (add_segments): Likewise.
26127
e75d76e1 261282005-06-23 Hollis Blanchard <hollis@penguinppc.org>
26129
26130 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
26131 contains `l' modifier, get a long from va_arg().
26132
50b5a0a7 261332005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
26134
26135 * kern/mm.c (grub_free): If the next free block which is being
26136 merged is the first free block, set the first block to the block
26137 being freed.
26138 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
26139
89371b20 261402005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26141
26142 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
26143 `grub_ieee1275_chosen'.
26144
168d6e58 261452005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26146
26147 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
26148 (grub_ieee1275_chosen): New variable.
26149 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
26150 `chosen'.
26151 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
26152 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26153 Rename first argument to `phandle' for consistency.
26154 (grub_ieee1275_get_property_length): Likewise.
26155 (grub_ieee1275_next_property): Likewise. Change type of first argument
26156 to grub_ieee1275_phandle_t.
26157 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
26158 Move export next to declaration.
26159 (grub_ieee1275_chosen): New variable.
26160 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
26161 Correct cosmetic typo.
26162 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
26163 `grub_ieee1275_chosen'.
26164 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
26165 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
26166 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
26167 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
26168 `grub_ieee1275_chosen'.
26169
ca5baa3f 261702005-05-10 Hollis Blanchard <hollis@penguinppc.org>
26171
26172 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
26173 /chosen/bootargs.
26174 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
26175 /chosen/bootargs as "variable=value" pairs.
26176
708b345f 261772005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
26178
26179 * include/grub/misc.h (grub_dprintf): New macro.
26180 (grub_real_dprintf): New prototype.
26181 (grub_strword): Likewise.
26182 (grub_iswordseparator): Likewise.
26183 * kern/misc.c (grub_real_dprintf): New function.
26184 (grub_strword): Likewise.
26185 (grub_iswordseparator): Likewise.
26186
f4c5e67c 261872005-04-30 Hollis Blanchard <hollis@penguinppc.org>
26188
26189 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
26190 (roundup): Remove macro.
26191 (grub_ieee1275_flags): Make static.
26192 (grub_ieee1275_realmode): Remove.
26193 (grub_ieee1275_test_flag): New function.
26194 (grub_ieee1275_set_flag): Likewise.
26195 (find_options): Rename to `grub_ieee1275_find_options'; update
26196 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
26197 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
26198 (cmain): New prototype.
26199 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
26200 `grub_ieee1275_flags' directly.
26201 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
26202 machine/biosdisk.h.
26203 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
26204 Don't include grub/machine/init.h.
26205 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
26206 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26207 Remove prototype.
26208 (grub_ieee1275_realmode): Likewise.
26209 (grub_ieee1275_flag): New enum.
26210 (grub_ieee1275_test_flag): New prototype.
26211 (grub_ieee1275_set_flag): New prototype.
26212 * include/grub/powerpc/ieee1275/init.h: Remove file.
26213 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
26214 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
26215 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
26216 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
26217 comment.
26218 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
26219 `grub_ieee1275_test_flag'.
26220 (grub_ieee1275_encode_devname): Likewise.
26221
ed16607e 262222005-04-21 Hollis Blanchard <hollis@penguinppc.org>
26223
26224 * include/grub/powerpc/ieee1275/ieee1275.h
26225 (grub_ieee1275_encode_devname): New prototype.
26226 (grub_ieee1275_get_filename): Likewise.
26227 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
26228 function.
26229 (grub_set_prefix): Likewise.
26230 (grub_machine_init): Call grub_set_prefix.
26231 * kern/powerpc/ieee1275/openfw.c: Fix typos.
26232 (grub_parse_type): New enum.
26233 (grub_ieee1275_get_devargs): New function.
26234 (grub_ieee1275_get_devname): Likewise.
26235 (grub_ieee1275_parse_args): Likewise.
26236 (grub_ieee1275_get_filename): Likewise.
26237 (grub_ieee1275_encode_devname): Likewise.
26238
be369920 262392005-03-30 Marco Gerards <metgerards@student.han.nl>
26240
26241 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
26242 `grub_loader_unset'.
26243
a5ce3a4a 262442005-03-26 Hollis Blanchard <hollis@penguinppc.org>
26245
26246 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
26247 instead of grub_ieee1275_interpret.
26248 (grub_halt_init): New function.
26249 (grub_halt_fini): Likewise.
26250 (GRUB_MOD_INIT): Correct message grammar.
26251 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
26252 instead of grub_ieee1275_interpret.
26253 (grub_reboot_init): New function.
26254 (grub_reboot_fini): Likewise.
26255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
26256 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
26257 util/i386/pc/misc.c with commands/ieee1275/halt.c,
26258 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
26259 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
26260 function.
26261 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
26262 Add prototype.
26263 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
26264 prototype.
26265 (grub_halt): Likewise.
26266 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
26267 (cmain): Remove __attribute__((unused)).
26268 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
26269 (grub_heap_len): Likewise.
26270 (grub_machine_fini): New function.
26271 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
26272 (grub_halt): Likewise.
26273 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
26274 function.
26275 * util/powerpc/ieee1275/misc.c: New file.
26276
0058f771 262772005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26278
26279 * DISTLIST: New file.
26280 * gendistlist.sh: Likewise.
f19dbdb7 26281
0058f771 26282 * Makefile.in (COMMON_DISTFILES): Removed.
26283 (BOOT_DISTFILES): Likewise.
26284 (CONF_DISTFILES): Likewise.
26285 (DISK_DISTFILES): Likewise.
26286 (FS_DISTFILES): Likewise.
26287 (INCLUDE_DISTFILES): Likewise.
26288 (KERN_DISTFILES): Likewise.
26289 (LOADER_DISTFILES): Likewise.
26290 (TERM_DISTFILES): Likewise.
26291 (UTIL_DISTFILES): Likewise.
26292 (DISTFILES): Likewise.
26293 (uninstall): Uninstall files in $(pkgdata_DATA).
26294 (DISTLIST): New target.
26295 (distdir): Use the contents of the file DISTLIST to get a list of
26296 distributed files.
26297
46b3b8a5 262982005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26299
26300 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
26301 descriptor. This is ported from GRUB Legacy.
26302
26303 * gencmdlist.sh: Added an extra semicolon to make it work with
26304 old sed versions. Reported by Robert Bihlmeyer
26305 <robbe@orcus.priv.at>.
26306
5822ff87 263072005-03-08 Yoshinori Okuji <okuji@enbug.org>
26308
26309 Automatic loading of commands is supported.
f19dbdb7 26310
5822ff87 26311 * normal/main.c (read_command_list): New function.
26312 (grub_normal_execute): Call read_command_list.
26313
26314 * normal/command.c (grub_register_command): Return zero or CMD.
26315 Allocate CMD->NAME from the heap.
26316 Initialize CMD->MODULE_NAME to zero.
26317 Find the same name as well. If the same command is found and it is
26318 a dummy command, overwrite members. If it is not a dummy command,
26319 return zero.
26320 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
26321 (grub_command_find): If a dummy command is found, load a module
26322 and retry to find a command only once.
26323
26324 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
26325 make sure that each command is loaded.
26326
26327 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
26328 macro.
26329 (struct grub_command): Remove const from the member `name'.
26330 Add a new member `module_name'.
26331 (grub_register_command): Return grub_command_t.
26332
26333 * commands/help.c (grub_cmd_help): Call grub_command_find to make
26334 sure that each command is loaded.
26335
26336 * genmk.rb (PModule::rule): Specify a module name without the
26337 suffix ".mod" to gencmdlist.sh.
26338
7b1f4b57 263392005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26340
26341 * gencmdlist.sh: New file.
f19dbdb7 26342
7b1f4b57 26343 * genmk.rb (PModule::rule): Generate a rule for a command list.
26344 Clean command.lst.
26345 Generate command.lst from $(COMMANDFILES).
26346
26347 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
26348 (DATA): Added $(pkgdata_DATA).
26349 (install-local): Install files in $(pkgdata_DATA).
26350
062aaf39 263512005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26352
26353 * term/i386/pc/vga.c (debug_command): Removed.
26354 (GRUB_MOD_INIT): Do not register the command "debug".
26355
26356 From Hollis Blanchard:
26357 * commands/configfile.c: New file.
26358 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26359 commands/configfile.c.
26360 (pkgdata_MODULES): Added configfile.mod.
26361 (configfile_mod_SOURCES): New variable.
26362 (configfile_mod_CFLAGS): Likewise.
26363 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26364 commands/configfile.c.
26365 (pkgdata_MODULES): Added configfile.mod.
26366 (configfile_mod_SOURCES): New variable.
26367 (configfile_mod_CFLAGS): Likewise.
26368 * util/grub-emu.c (main): Call grub_configfile_init and
26369 grub_configfile_fini.
26370 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
26371 prototype.
26372 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 26373
cee01aa6 263742005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26375
26376 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26377 address.
26378
26379 * commands/help.c (grub_cmd_help): Do not print newlines after
26380 the last command in print_command_help.
26381
93f3a1d8 263822005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26383
26384 * commands/default.h: New file.
26385 * commands/timeout.h: Likewise.
26386 * normal/context.c: Likewise.
f19dbdb7 26387
93f3a1d8 26388 * util/misc.c: Do not include sys/times.h.
26389 Include sys/time.h and grub/machine/time.h.
26390 (grub_get_rtc): Rewritten with gettimeofday.
26391
26392 * util/grub-emu.c (main): Call grub_default_init and
26393 grub_timeout_init before grub_normal_init, and call
26394 grub_timeout_fini and grub_default_fini after grub_main.
26395
26396 * util/console.c (grub_ncurses_checkkey): Return the read
26397 character or -1.
26398
26399 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26400 timeouts.
26401
26402 * normal/main.c (read_config_file): Push MENU. If this fails,
26403 print an error and wait for a user input.
26404 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26405 If a menu is empty or an error occurs, pop MENU.
26406 (grub_normal_execute): Pop and free MENU after grub_menu_run
26407 returns.
26408
26409 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26410
26411 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26412 include time.h.
26413 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26414 without GRUB_UTIL.
26415 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26416 time.h.
26417 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26418 without GRUB_UTIL.
26419
26420 * include/grub/normal.h (struct grub_menu_list): New struct.
26421 (grub_menu_list_t): New type.
26422 (struct grub_context): New struct.
26423 (grub_context_t): New type.
26424 (grub_register_command): Got rid of EXPORT_FUNC.
26425 (grub_unregister_command): Likewise.
26426 (grub_context_get): New prototype.
26427 (grub_context_get_current_menu): Likewise.
26428 (grub_context_push_menu): Likewise.
26429 (grub_context_pop_menu): Likewise.
26430 [GRUB_UTIL] (grub_default_init): Likewise.
26431 [GRUB_UTIL] (grub_default_fini): Likewise.
26432 [GRUB_UTIL] (grub_timeout_init): Likewise.
26433 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26434
26435 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26436 commands/timeout.c and normal/context.c.
26437 (pkgdata_MODULES): Added default.mod and timeout.mod.
26438 (normal_mod_SOURCES): Added normal/context.c.
26439 (default_mod_SOURCES): New variable.
26440 (default_mod_CFLAGS): Likewise.
26441 (timeout_mod_SOURCES): Likewise.
26442 (timeout_mod_CFLAGS): Likewise.
26443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26444 conf/i386-pc.rmk.
26445 (pkgdata_MODULES): Added default.mod and timeout.mod.
26446 (normal_mod_SOURCES): Added normal/context.c.
26447 (default_mod_SOURCES): New variable.
26448 (default_mod_CFLAGS): Likewise.
26449 (timeout_mod_SOURCES): Likewise.
26450 (timeout_mod_CFLAGS): Likewise.
26451
26452 * Makefile.in (all-local): Added $(MKFILES).
26453
4ed2e1dd 264542005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26455
26456 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26457 (grub_emu_SOURCES): Likewise.
26458 (pkgdata_MODULES): Add `sun.mod'.
26459 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26461 `partmap/sun.c'.
26462 (pkgdata_MODULES): Add `sun.mod'.
26463 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26464 * include/grub/partition.h (grub_sun_partition_map_init): New
26465 prototype.
26466 (grub_sun_partition_map_fini): Likewise.
26467 * partmap/sun.c: New file.
26468 * util/grub-emu.c (main): Initialize and de-initialize the sun
26469 partitionmap support.
26470
4d4e372e 264712005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26472
26473 This implements an Emacs-like menu entry editor.
f19dbdb7 26474
4d4e372e 26475 * normal/menu_entry.c: New file.
f19dbdb7 26476
4d4e372e 26477 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26478 characters to ASCII.
26479 (saved_char): New variable.
26480 (grub_ncurses_checkkey): Rewritten completely.
26481 (grub_ncurses_getkey): Likewise.
26482 (grub_ncurses_init): Call raw instead of cbreak.
26483
26484 * normal/menu.c (print_entry): Do not put a space.
26485 (init_page): Renamed to ...
26486 (grub_menu_init_page): ... this. All callers changed.
26487 (edit_menu_entry): Removed.
26488 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26489
26490 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26491
26492 * kern/misc.c (grub_vprintf): Call grub_refresh.
26493
26494 * normal/menu.c (DISP_LEFT): Renamed to ...
26495 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26496 * normal/menu.c (DISP_UP): Renamed to ...
26497 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26498 * normal/menu.c (DISP_RIGHT): Renamed to ...
26499 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26500 * normal/menu.c (DISP_DOWN): Renamed to ...
26501 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26502 * normal/menu.c (DISP_HLINE): Renamed to ...
26503 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26504 * normal/menu.c (DISP_VLINE): Renamed to ...
26505 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26506 * normal/menu.c (DISP_UL): Renamed to ...
26507 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26508 * normal/menu.c (DISP_UR): Renamed to ...
26509 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26510 * normal/menu.c (DISP_LL): Renamed to ...
26511 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26512 * normal/menu.c (DISP_LR): Renamed to ...
26513 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26514 * normal/menu.c (TERM_WIDTH): Renamed to ...
26515 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26516 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26517 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26518 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26519 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26520 * normal/menu.c (TERM_MARGIN): Renamed to ...
26521 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26522 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26523 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26524 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26525 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26526 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26527 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26528 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26529 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26530 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26531 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26532 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26533 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26534 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26535 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26536 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26537 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26538 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26539 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26540 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26541 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26542 All callers changed.
26543
26544 * include/grub/normal.h: New prototype.
26545
26546 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26547 normal/menu_entry.c.
26548 (normal_mod_SOURCES): Likewise.
26549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26550 (normal_mod_SOURCES): Likewise.
26551
e6b92c8a 265522005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26553
26554 * include/grub/normal.h (grub_halt_init): New prototype.
26555 (grub_halt_fini): Likewise.
26556 (grub_reboot_init): Likewise.
26557 (grub_reboot_fini): Likewise.
26558
26559 * util/grub-emu.c: Include signal.h.
26560 (main_env): New global variable.
26561 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26562 catch C-c.
26563 (grub_machine_fini): New function.
26564 (main): Call grub_halt_init and grub_reboot_init before
26565 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26566 Call setjmp with MAIN_ENV to go back afterwards.
26567 Call grub_machine_fini right before return.
26568
26569 * include/grub/util/misc.h: Include setjmp.h.
26570 (main_env): New prototype.
26571
26572 * include/grub/kernel.h (grub_machine_fini): New prototype.
26573 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26574 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26575
26576 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26577 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26578 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 26579
e6b92c8a 26580 * util/i386/pc/misc.c: New file.
f19dbdb7 26581
e6b92c8a 26582 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26583 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26584 commands/i386/pc/reboot.c.
26585
c642636f 265862005-02-14 Guillem Jover <guillem@hadrons.org>
26587
26588 * include/grub/dl.h (grub_dl_check_header): New prototype.
26589 (grub_arch_dl_check_header): Change return type to grub_err_t,
26590 remove size parameter and export function. Update all callers.
26591 * kern/dl.c (grub_dl_check_header): New function.
26592 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26593 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26594 are inside the core.
26595 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26596 independent ELF header checks.
26597 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26598 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26599 `grub_dl_check_header' instead of explicit checks. Check for the
26600 ELF type.
26601 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26602 `grub_dl_check_header' instead of explicit checks. Remove arch
26603 specific ELF header checks.
26604
e6b92c8a 26605 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26606 argument SIZE.
26607
5eabe94b 266082005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26609
26610 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26611 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26612
1b14a681 266132005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26614
26615 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 26616 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 26617 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 26618 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 26619 * partmap/amiga.c (amiga_partition_map_iterate): Return
26620 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26621 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26622
aca108aa 266232005-02-01 Guillem Jover <guillem@hadrons.org>
26624
26625 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26626 help info.
26627
c9f9c556 266282005-01-31 Marco Gerards <metgerards@student.han.nl>
26629
26630 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26631 Removed prototype.
26632 (grub_rescue_cmd_linux): New prototype.
26633 (grub_rescue_cmd_initrd): Likewise.
26634 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26635 `bi_rec'.
26636 (grub_linux_release_mem): Release the memory for the initrd.
26637 (grub_load_linux): Renamed from this...
26638 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26639 Changed `entry' not to be static. Loop over memory regions to
26640 find another one when the default fails.
26641 (grub_rescue_cmd_initrd): New function.
26642 (grub_linux_init): Remove function.
26643 (grub_linux_fini): Likewise.
26644 (GRUB_MOD_INIT): Register `initrd'.
26645 (GRUB_MOD_FINI): Unregister `initrd'.
26646 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26647 Function removed.
26648 (grub_linux_normal_fini): Likewise.
26649 (GRUB_MOD_INIT): Register `initrd'.
26650 (GRUB_MOD_FINI): Unregister `initrd'.
26651
990cf3aa 266522005-01-31 Marco Gerards <metgerards@student.han.nl>
26653
26654 * commands/help.c: New file.
26655 * normal/arg.c (show_help): Renamed to...
26656 (grub_arg_show_help): ... this.
26657 * commands/i386/pc/halt.c: New file.
26658 * commands/i386/pc/reboot.c: Likewise.
26659 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26660 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26661 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26662 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26663 variables.
26664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26665 `commands/help.c'.
26666 (pkgdata_MODULES): Add `help.mod'.
26667 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26668 * grub/i386/pc/init.h (grub_reboot): New prototype.
26669 (grub_halt): Likewise.
26670 * include/grub/normal.h (grub_arg_show_help): New prototype.
26671 (grub_help_init): Likewise.
26672 (grub_help_fini): Likewise.
26673 * util/grub-emu.c (main): Initialize and deinitialize the help
26674 command.
26675
26676 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26677
26678 * normal/command.c (grub_command_init): Fixed the description of
26679 the `set' and `unset' commands.
26680
266812005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 26682
26683 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26684 function.
26685 * commands/ieee1275/halt.c: New file.
26686 * commands/ieee1275/reboot.c: Likewise.
26687 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26688 `__attribute__ ((unused))'. Some GCS related fixed.
26689 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26690 (grub_suspend_fini): Likewise.
26691 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26692 and `halt.mod'.
26693 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26694 (halt_mod_CFLAGS): New variables.
26695 * include/grub/powerpc/ieee1275/ieee1275.h
26696 (grub_ieee1275_interpret): New prototype.
26697
1ab09cc7 266982005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26699
26700 * include/grub/misc.h (memmove): New prototype.
26701 (memcpy): Likewise.
26702
8b8cbdb2 267032005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26704
26705 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26706 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26707
e3741a27 267082005-01-22 Marco Gerards <metgerards@student.han.nl>
26709
26710 * kern/misc.c (grub_strndup): Function rewritten.
26711
776bd780 267122005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26713
26714 * normal/menu.c (TERM_WIDTH): Macro redefined.
26715 (TERM_TOP_BORDER_Y): Likewise.
26716 (draw_border): Replaced while-loop by a for-loop. Make the number
26717 of lines consistent with the number of lines displayed in
26718 print_entries. Added a margin below the rectangle.
26719 (print_entry): Make the entry fit in the rectangle.
26720 (print_entries): Display the scroll arrows next to the right
26721 border.
26722
78026bce 267232005-01-21 Marco Gerards <metgerards@student.han.nl>
26724
26725 * fs/minix.c (grub_minix_find_file): Reserve more space for
26726 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26727 `grub_strncpy' to copy `path' into it.
26728
67bbaf0f 267292005-01-21 Marco Gerards <metgerards@student.han.nl>
26730
26731 Add the loopback device, a device via which files can be accessed
26732 as devices.
f19dbdb7 26733
67bbaf0f 26734 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26735 (pkgdata_MODULES): Add loopback.mod.
26736 (loopback_mod_SOURCES): New variable.
26737 (loopback_mod_CFLAGS): Likewise.
26738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26739 `disk/loopback.c'.
26740 (pkgdata_MODULES): Add loopback.mod.
26741 (loopback_mod_SOURCES): New variable.
26742 (loopback_mod_CFLAGS): Likewise.
26743 * disk/loopback.c: new file.
26744 * include/grub/normal.h (grub_loop_init): New prototype.
26745 (grub_loop_fini): New prototype.
26746 * util/grub-emu.c (main): Initialize and de-initialize loopback
26747 support.
26748 * include/grub/disk.h (grub_disk_dev_id): Add
26749 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26750
6f1c18bd 267512005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26752
26753 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26754 function.
26755 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26756 (suspend_mod_SOURCES): New variable.
26757 (suspend_mod_CFLAGS): Likewise.
26758 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26759 New prototype.
26760 * commands/ieee1275/suspend.c: New file.
26761
b38551da 267622005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26763
26764 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 26765 ((unused))' to `__attribute__ ((used))'.
b38551da 26766 (GRUB_MOD_FINI): Likewise.
26767 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26768 * genmk.rb (PModule): Assign space to common symbols when linking
26769 modules.
26770
777aff39 267712005-01-20 Marco Gerards <metgerards@student.han.nl>
26772
26773 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26774 `unsigned' arguments to `grub_size_t'.
26775 (grub_malloc): Likewise.
26776 (grub_realloc): Likewise.
26777 (grub_memalign): Likewise.
26778 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26779 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26780 * util/misc.c (grub_malloc): Likewise.
26781 (grub_realloc): Likewise.
26782 * kern/mm.c (get_header_from_pointer): Change the casts to
26783 `unsigned' into a cast to `grub_size_t'.
26784
26785 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26786 point to `currnode' when `currnode' is changed.
26787
26788 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26789 Schottelius <nico-linux@schottelius.org>.
26790
d0ff18e1 267912005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26792
26793 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26794 (note_path): Remove variable.
26795 (GRUB_IEEE1275_NOTE_NAME): New macro.
26796 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26797 (grub_ieee1275_note_hdr): New structure.
26798 (grub_ieee1275_note_desc): Likewise.
26799 (grub_ieee1275_note): Likewise.
26800 (load_note): Remove `dir' argument. All callers updated. Remove
26801 `note_img' and `path'. Do not load a file from `note_path'.
26802 Initialize a struct grub_ieee1275_note and write that to `out'.
26803 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26804
4ca7004c 268052005-01-05 Marco Gerards <metgerards@student.han.nl>
26806
26807 * util/misc.c (grub_util_read_image): Revert last change. It
26808 called `grub_util_read_at', which seeks from the beginning of the
26809 file.
26810
0b412211 268112005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26812
26813 * TODO: Add note about endianness in grub-mkimage.
26814 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26815 section.
26816 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26817 (grub_mkimage_SOURCES): New target.
26818 * include/grub/kernel.h (grub_start_addr): Remove variable.
26819 (grub_end_addr): Likewise.
26820 (grub_total_module_size): Likewise.
26821 (grub_kernel_image_size): Likewise.
26822 (GRUB_MODULE_MAGIC): New constant.
26823 (grub_module_info): New structure.
26824 (grub_arch_modules_addr): New prototype.
26825 (grub_get_end_addr): Remove prototype.
26826 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26827 * include/grub/powerpc/ieee1275/kernel.h: New file.
26828 * include/grub/util/misc.h (grub_util_get_fp_size): New
26829 prototype.
26830 (grub_util_read_at): Likewise.
26831 (grub_util_write_image_at): Likewise.
26832 * kern/main.c (grub_get_end_addr): Remove function.
26833 (grub_load_modules): Call grub_arch_modules_addr instead of using
26834 grub_end_addr. Look for a grub_module_info struct in memory. Use
26835 the grub_module_info fields instead of calling grub_get_end_addr
26836 as loop conditions. Move grub_add_unused_region code here.
26837 (grub_add_unused_region): Remove function.
26838 * kern/i386/pc/init.c: Include grub/cache.h.
26839 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26840 one call to add_mem_region.
26841 (grub_arch_modules_addr): New function.
26842 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26843 (grub_total_module_size): Likewise.
26844 Include grub/machine/kernel.h.
26845 (grub_arch_modules_addr): New function.
26846 * util/grub-emu.c (grub_end_addr): Remove variable.
26847 (grub_total_module_size): Likewise.
26848 (grub_arch_modules_addr): New function.
26849 * util/misc.c: Include unistd.h.
26850 (grub_util_get_fp_size): New function.
26851 (grub_util_read_at): Likewise.
26852 (grub_util_write_image_at): Likewise.
26853 (grub_util_read_image): Call grub_util_read_at.
26854 (grub_util_write_image): Call grub_util_write_image_at.
26855 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26856 additional memory in kernel_img for a struct grub_module_info.
26857 Fill in that grub_module_info.
26858 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26859
458786f8 268602005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26861
26862 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26863 New function.
26864 * include/grub/powerpc/ieee1275/ieee1275.h
26865 (grub_ieee1275_milliseconds): New prototype.
26866 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26867 Change to 1000.
26868 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26869 grub_ieee1275_milliseconds.
26870
ac507d1b 268712005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26872
26873 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26874 variable.
26875 (find_options): New function.
26876 (cmain): Call find_options.
26877 * include/grub/powerpc/ieee1275/ieee1275.h
26878 (grub_ieee1275_realmode): New extern variable.
26879 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26880 grub_map if grub_ieee1275_realmode is false.
26881
6b8fd1c4 268822004-12-29 Marco Gerards <metgerards@student.han.nl>
26883
26884 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26885 lines are inserted and make it work like readline. Reported by
26886 Vincent Pelletier <subdino2004@yahoo.fr>.
26887
8514a1e0 268882004-12-28 Marco Gerards <metgerards@student.han.nl>
26889
26890 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26891
26892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26893 `kern/powerpc/cache.S'.
26894
924b6140 268952004-12-27 Marco Gerards <metgerards@student.han.nl>
26896
26897 * genmk.rb: Handle the `Program' class in the main loop. Written
26898 by Johan Rydberg <jrydberg@gnu.org>.
26899 (Program): New class.
26900 (programs): New variable.
26901 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26902 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26903 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26904 (help_arch): Function removed.
26905 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26906 `powerpc/libgcc.h' and `loader.h'.
26907 (pkgdata_PROGRAMS): New variable.
26908 (sbin_UTILITIES): Variable removed.
26909 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26910 (grubof_SOURCES): Variable re-defined so it only includes the
26911 core functionality.
26912 (grubof_CFLAGS): Remove `-DGRUBOF'.
26913 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26914 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26915 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26916 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26917 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26918 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26919 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26920 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26921 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26922 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26923 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26924 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26925 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26926 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26927 (pc_mod_CFLAGS): New variables.
26928 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26929 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26930 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26931 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26932 Moved from here...
26933 * include/grub/i386/pc/init.h (grub_os_area_addr)
26934 (rub_os_area_size): ... to here.
26935 * include/grub/powerpc/ieee1275/ieee1275.h
26936 (grub_ieee1275_entry_fn): Export symbol.
26937 * include/grub/powerpc/ieee1275/init.h: New file.
26938 * include/grub/powerpc/libgcc.h: Likewise.
26939 * include/grub/cache.h: Likewise.
26940 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26941 <hollis@penguinppc.org>.
26942 * kern/dl.c: Include <grub/cache.h>.
26943 (grub_dl_flush_cache): New function.
26944 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26945 for this module.
26946 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26947 (grub_console_init): Removed prototypes.
26948 (grub_machine_init): Don't initialize the modules anymore.
26949 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26950 static.
26951 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26952 Macro undef removed.
26953 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26954 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26955 relocation `R_PPC_REL32'. Return an error when the relocation is
26956 unknown.
26957 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26958 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26959 * util/misc.c (grub_arch_sync_caches): Likewise.
26960
e4b47e0c 269612004-12-19 Marco Gerards <metgerards@student.han.nl>
26962
26963 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26964 `symlist.c', add `grubof_symlist.c'.
26965 (symlist.c): Variable removed.
26966 (grubof_HEADERS): Variable added.
26967 (grubof_symlist.c): New target.
26968 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26969 `kernel_img_HEADERS'.
26970 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26971 * kern/powerpc/dl.c: New file.
26972 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26973 Function removed.
26974 (grub_arch_dl_relocate_symbols): Likewise.
26975 (grub_register_exported_symbols): Likewise.
26976
4ceb3636 269772004-12-13 Marco Gerards <metgerards@student.han.nl>
26978
26979 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26980 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26981 to fail instead. Reported by Vincent Pelletier
26982 <subdino2004@yahoo.fr>.
26983
26984 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26985 it is not allocated. Reported by Vincent Pelletier
26986 <subdino2004@yahoo.fr>.
26987
26988 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26989 output so the output looks better.
f19dbdb7 26990
3f1578fe 269912004-12-04 Marco Gerards <metgerards@student.han.nl>
26992
26993 Modulize the partition map support and add support for the amiga
26994 partition map.
f19dbdb7 26995
3f1578fe 26996 * commands/ls.c: Include <grub/partition.h> instead of
26997 <grub/machine/partition.h>.
26998 * kern/disk.c: Likewise.
26999 * kern/rescue.c: Likewise.
27000 * loader/i386/pc/chainloader.c: Likewise.
27001 * normal/cmdline.c: Likewise.
27002 * kern/powerpc/ieee1275/init.c: Likewise.
27003 (grub_machine_init): Call `grub_pc_partition_map_init',
27004 `grub_amiga_partition_map_init' and
27005 `grub_apple_partition_map_init'.
27006 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
27007 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
27008 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
27009 `partition.h' and `pc_partition.h'.
27010 (grub_setup_SOURCES): Remove
27011 `disk/i386/pc/partition.c'. Add `kern/partition.c',
27012 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27013 (grub_emu_SOURCES): Likewise.
27014 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
27015 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
27016 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
27017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27018 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
27019 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27020 (grubof_SOURCES): Likewise.
27021 * disk/i386/pc/partition.c: File removed.
27022 * disk/powerpc/ieee1275/partition.c: Likewise.
27023 * include/grub/powerpc/ieee1275/partition.h: Likewise.
27024 * include/grub/i386/pc/partition.h: Likewise.
27025 * kern/partition.c: New file.
27026 * partmap/amiga.c: Likewise.
27027 * partmap/apple.c: Likewise.
27028 * partmap/pc.c: Likewise.
27029 * include/grub/partition.h: Likewise..
27030 * include/grub/pc_partition.h: Likewise.
27031 * util/grub-emu.c: Include <grub/partition.h> instead of
27032 <grub/machine/partition.h>.
27033 (main): Call `grub_pc_partition_map_init',
27034 `grub_amiga_partition_map_init' and
27035 `grub_apple_partition_map_init' and deinitialize afterwards.
27036 * util/i386/pc/biosdisk.c: Include `#include
27037 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27038 `<grub/machine/partition.h>'.
27039 * util/i386/pc/grub-setup.c: Likewise.
27040 * util/i386/pc/biosdisk.c: Likewise.
27041 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
27042 partition information in case of a PC partition.
27043 * util/i386/pc/grub-setup.c: Include `#include
27044 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27045 `<grub/machine/partition.h>'.
27046 (setup): Only access the PC specific partition information in case
27047 of a PC partition.
27048
0ef4ced9 270492004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 27050
0ef4ced9 27051 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
27052 (grub_longjmp): Likewise.
27053 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
27054 20.
27055 * normal/powerpc/setjmp.S: New file.
27056 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27057 `normal/powerpc/setjmp.S'.
27058 (grubof_CFLAGS): Add `-DGRUBOF'.
27059 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
27060 [GRUB_UTIL && !GRUBOF].
f19dbdb7 27061
19950e29 270622004-11-16 Marco Gerards <metgerards@student.han.nl>
27063
27064 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
27065 property named `name'. Correctly handle the error returned by
27066 `grub_ieee1275_finddevice' if a device can not be opened.
27067
a2fea427 270682004-11-02 Hollis Blanchard <hollis@penguinppc.org>
27069
27070 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
27071 `actual' for negativity.
27072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27073 kern/fshelp.c.
27074
41ea0ea3 270752004-11-01 Marco Gerards <metgerards@student.han.nl>
27076
27077 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
27078 (PAGE_OFFSET): New macro.
27079 (CRTC_ADDR_PORT): Likewise.
27080 (CRTC_DATA_PORT): Likewise.
27081 (START_ADDR_HIGH_REGISTER): Likewise.
27082 (START_ADDR_LOW_REGISTER): Likewise.
27083 (GRAPHICS_ADDR_PORT): Likewise.
27084 (GRAPHICS_DATA_PORT): Likewise.
27085 (READ_MAP_REGISTER): Likewise.
27086 (INPUT_STATUS1_REGISTER): Likewise.
27087 (INPUT_STATUS1_VERTR_BIT): Likewise.
27088 (page): New variable.
27089 (wait_vretrace): New function.
27090 (set_read_map): Likewise.
27091 (set_start_address): Likewise.
27092 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
27093 the right page.
27094 (check_vga_mem): Take the page into account.
27095 (write_char): Likewise.
27096 (write_cursor): Likewise.
27097 (scroll_up): Likewise. Copy the page to the page that is not
27098 shown and switch between both pages.
27099 (grub_vga_putchar): Fix off by one error.
27100 (grub_vga_cls): Wait for the vertical retrace. Take the page into
27101 account.
27102
ad0bd20b 271032004-11-01 Marco Gerards <metgerards@student.han.nl>
27104
27105 Add support for iso9660 (including rockridge).
f19dbdb7 27106
ad0bd20b 27107 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27108 (iso9660_mod_SOURCES): New variable.
27109 (iso9660_mod_CFLAGS): Likewise.
27110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27111 * include/grub/fs.h (grub_iso9660_init): New prototype.
27112 * util/grub-emu.c (main): Call `grub_iso9660_init'.
27113 * fs/iso9660.c: New file.
27114
27115 * include/grub/misc.h (grub_strncat): New prototype.
27116 * kern/misc.c (grub_strncat): New function.
f19dbdb7 27117
ad0bd20b 27118 * fs/hfs.c (grub_hfs_mount): Translate the error
27119 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
27120 * fs/jfs.c (grub_jfs_mount): Likewise.
27121 * fs/ufs.c (grub_ufs_mount): Likewise.
27122
a5477a59 271232004-10-28 Hollis Blanchard <hollis@penguinppc.org>
27124
27125 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
27126 which initialized BAT registers.
27127 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
27128 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27129 Move from here...
27130 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
27131 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27132 ... to here.
27133 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
27134 (grub_mapclaim): Likewise.
27135 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
27136 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
27137 hand.
27138
9304c1f8 271392004-10-19 Hollis Blanchard <hollis@penguinppc.org>
27140
27141 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
27142 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
27143 -ffreestanding and -msoft-float.
27144
86f4ae25 271452004-10-15 Hollis Blanchard <hollis@penguinppc.org>
27146
27147 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
27148 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
27149 set in grub_ieee1275_flags.
27150
38912228 271512004-10-14 Hollis Blanchard <hollis@penguinppc.org>
27152
27153 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
27154 prototype.
27155 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
27156 grub_console_init first.
27157 Change the memory range used for grub_ieee1275_claim and
27158 grub_mm_init_region.
27159 Print an error message if the claim fails.
27160 Include <grub/misc.h>.
27161
d1923dc8 271622004-10-13 Hollis Blanchard <hollis@penguinppc.org>
27163
27164 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
27165 Call grub_children_iterate for device nodes of type `scsi',
27166 `ide', or `ata'.
27167 (grub_ofdisk_open): Remove manual device alias resolution.
27168 Fix memory leak when device cannot be opened.
f19dbdb7 27169 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 27170 (grub_children_iterate): New prototype.
27171 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
27172 New function.
27173 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27174 Return -1 if args.size was -1.
27175
4512e4f3 271762004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27177
27178 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
27179 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
27180 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
27181 Open Firmware's memory for it; claim memory from _start to _end.
27182 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
27183 (_end): New extern.
27184 (_start): Zero BSS from __bss_start to _end.
27185 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
27186 New extern.
27187 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
27188
4d61feb0 271892004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27190
ad0bd20b 27191 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
27192 -1 if args.base was -1.
4d61feb0 27193
026fa2f9 271942004-10-08 Hollis Blanchard <hollis@penguinppc.org>
27195
27196 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
27197 escape sequence instead of a literal ^L. Also call
27198 grub_ofconsole_gotoxy.
27199
9f2220ef 272002004-10-03 Hollis Blanchard <hollis@penguinppc.org>
27201
27202 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
27203 void * arguments to grub_addr_t. All callers updated. Also make
27204 the `result' argument optional.
27205 (grub_ieee1275_release): change void * arguments to grub_addr_t.
27206 All callers updated.
27207
8a572cd7 272082004-09-22 Hollis Blanchard <hollis@penguinppc.org>
27209
27210 * commands/ls.c (grub_ls_list_files): Use the string following the
27211 initial ')', if present, as the filesystem path.
27212 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
27213
27214 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
27215
18aa81f2 272162004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
27217
27218 Make the source code of the menu interface more readable.
f19dbdb7 27219
18aa81f2 27220 * normal/menu.c: Include grub/mm.h.
27221 (TERM_WIDTH): New macro.
27222 (TERM_HEIGHT): Likewise.
27223 (TERM_INFO_HEIGHT): Likewise.
27224 (TERM_MARGIN): Likewise.
27225 (TERM_SCROLL_WIDTH): Likewise.
27226 (TERM_TOP_BORDER_Y): Likewise.
27227 (TERM_LEFT_BORDER_X): Likewise.
27228 (TERM_BORDER_WIDTH): Likewise.
27229 (TERM_MESSAGE_HEIGHT): Likewise.
27230 (TERM_BORDER_HEIGHT): Likewise.
27231 (TERM_NUM_ENTRIES): Likewise.
27232 (TERM_FIRST_ENTRY_Y): Likewise.
27233 (TERM_ENTRY_WIDTH): Likewise.
27234 (TERM_CURSOR_X): Likewise.
27235 (draw_border): Use macros instead of magic numbers.
27236 (print_entry): Likewise.
27237 (print_entries): Likewise.
27238 (run_menu): Likewise. Also, handle the key 'e'.
27239 (run_menu_entry): Ignore empty command lines.
27240 (print_message): Added a new argument EDIT. If EDIT is true,
27241 print a different message.
27242 (init_page): Likewise.
27243 (edit_menu_entry): New function. Not implemented yet.
27244
b47efe30 272452004-09-17 Marco Gerards <metgerards@student.han.nl>
27246
27247 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
27248 can be loaded from normal mode.
f19dbdb7 27249
b47efe30 27250 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
27251 `multiboot.mod'.
27252 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
27253 (multiboot_mod_CFLAGS): New variables.
27254 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 27255 * loader/i386/pc/multiboot_normal.c: Likewise.
27256
b47efe30 27257 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
27258 attribute `unused'.
f19dbdb7 27259
b47efe30 27260 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
27261 `fdiro' to read the mode information from instead of `diro'.
27262
27263 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
27264 looking up a symlink.
27265
27266 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
27267 macro.
27268 * normal/command.c (grub_command_execute): Don't parse the
27269 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
27270 flags of the command.
27271
27272 * normal/menu.c (grub_menu_run): Fix typo.
27273
da75ac71 272742004-09-14 Hollis Blanchard <hollis@penguinppc.org>
27275
27276 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
27277
27278 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
27279 `y + 1' instead of `y - 1'.
27280
27281 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 27282
062b24c2 272832004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
27284
27285 From Hollis Blanchard <hollis@penguinppc.org>:
27286 * kern/misc.c (memmove): New alias for grub_memmove.
27287 (memcmp): New alias for grub_memcmp.
27288 (memset): New alias for grub_memset.
f19dbdb7 27289 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 27290 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 27291 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 27292 (grub_ieee1275_get_property): Likewise.
f19dbdb7 27293
8ddad845 272942004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
27295
27296 Added normal mode command `chainloader' as module chain.mod, which
27297 depends on normal.mod and _chain.mod.
f19dbdb7 27298
8ddad845 27299 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
27300 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
27301 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
27302 Deleted prototype.
27303 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
27304 but arguments parsing moved to ...
27305 (grub_chainloader_cmd): ... here. New function.
27306 * include/grub/i386/pc/chainloader.h: New file.
27307 * loader/i386/pc/chainloader_normal.c: Likewise.
27308
2c1f4ce3 273092004-09-11 Marco Gerards <metgerards@student.han.nl>
27310
27311 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
27312 (grub_mkimage_LDFLAGS): Likewise.
27313 (grub_emu_SOURCES): Likewise.
27314 (kernel_img_HEADERS): Added fshelp.h.
27315 * fs/ext2.c: Include <grub/fshelp.h>.
27316 (FILETYPE_REG): New macro.
27317 (FILETYPE_INO_REG): Likewise.
27318 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
27319 Changed all users.
27320 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
27321 all users.
27322 (grub_fshelp_node): New struct.
27323 (grub_ext2_data): Added member `diropen'. Changed member `inode'
27324 to a pointer.
27325 (grub_ext2_get_file_block): Removed function.
27326 (grub_ext2_read_block): New function.
27327 (grub_ext2_read_file): Replaced parameter `data' by `node'.
27328 This function was written.
27329 (grub_ext2_mount): Read the root inode. Create a diropen struct.
27330 (grub_ext2_find_file): Removed function.
27331 (grub_ext2_read_symlink): New function.
27332 (grub_ext2_iterate_dir): Likewise.
27333 (grub_ext2_open): Rewritten.
27334 (grub_ext2_dir): Rewritten.
27335 * include/grub/fshelp.h: New file.
27336 * fs/fshelp.c: Likewise.
27337
3c52136a 273382004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
27339
27340 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
27341 (print_message): Add a missing newline.
27342 (run_menu): Added timeout support.
27343 (run_menu_entry): New local function.
27344 (grub_menu_run): Added support for booting.
27345
27346 * kern/loader.c (grub_loader_is_loaded): New function.
27347
27348 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
27349 (grub_get_rtc): Exported.
27350
27351 * include/grub/i386/pc/time.h: Include grub/symbol.h.
27352 (grub_get_rtc): Exported.
27353
27354 * include/grub/normal.h (struct grub_command_list): Remove
27355 constant from the member `command'.
27356
27357 * include/grub/loader.h (grub_loader_is_loaded): Declared.
27358
27359 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
27360
27361 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
27362
aa033560 273632004-08-28 Marco Gerards <metgerards@student.han.nl>
27364
27365 Add support for the JFS filesystem.
27366
27367 * fs/jfs.c: New file.
27368 * include/grub/fs.h (grub_jfs_init): New prototype.
27369 (grub_jfs_fini): New prototype.
27370 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
27371 (grub_emu_SOURCES): Likewise.
27372 (pkgdata_MODULES): Add jfs.mod.
27373 (jfs_mod_SOURCES): New variable.
27374 (jfs_mod_CFLAGS): Likewise.
27375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
27376 (grubof_SOURCES): Likewise.
27377 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27378
27379 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27380 endian to the host endian.
27381 (grub_fat_utf16_to_utf8): Move function from there...
27382 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 27383 the endianness of the source string anymore.
aa033560 27384 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27385
94bc45af 273862004-08-24 Marco Gerards <metgerards@student.han.nl>
27387
27388 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27389 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27390 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27391 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 27392
94bc45af 27393 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27394 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27395 for `node_found' and `it_dir'.
27396 (grub_hfs_dir): Add prototype for `dir_hook'.
27397
27398 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27399 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27400 and `indir32' to silence a gcc warning.
27401
27402 * include/grub/fs.h (grub_hfs_init): New prototype.
27403 (grub_hfs_fini): Likewise.
f19dbdb7 27404
27405
97543f08 274062004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27407
27408 Each disk device has its own id now. This is useful to make use
27409 of multiple disk devices.
f19dbdb7 27410
97543f08 27411 * include/grub/disk.h (grub_disk_dev_id): New enum.
27412 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27413 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27414
27415 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27416 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27417
27418 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27419 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27420
27421 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27422 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27423
27424 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27425 "id" which is used by the cache manager.
27426
27427 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27428 of just "GRUB".
27429
64372eb4 274302004-08-18 Marco Gerards <metgerards@student.han.nl>
27431
27432 * fs/hfs.c: New file.
27433 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27434 (grub_emu_SOURCES): Likewise.
27435 (pkgdata_MODULES): Add hfs.mod.
27436 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27437 (grubof_SOURCES): Likewise.
27438 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27439
27440 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27441 * kern/misc.c (grub_strncasecmp): Add function.
27442
cc61b58f 274432004-08-14 Marco Gerards <metgerards@student.han.nl>
27444
27445 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27446 with parentheses.
27447
27448 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27449 (grub_ext2_dir): In case the directory entry type is unknown, read
27450 it from the inode.
27451
0ef123f6 274522004-08-02 Peter Bruin <pjbruin@dds.nl>
27453
27454 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27455 grub_load_linux instead of grub_rescue_cmd_linux as second
27456 argument of grub_rescue_register_command.
27457
27458 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27459
a447c5df 274602004-07-27 Marco Gerards <metgerards@student.han.nl>
27461
27462 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27463 function.
27464 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27465 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27466 `loader/powerpc/ieee1275/linux.c',
27467 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27468 * include/grub/powerpc/ieee1275/ieee1275.h
27469 (grub_ieee1275_release): New prototype.
27470 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27471 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27472 normal, boot, linux and linux_normal.
27473 * loader/powerpc/ieee1275/linux.c: New file.
27474 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27475
5a9e3546 274762004-07-12 Marco Gerards <metgerards@student.han.nl>
27477
27478 * normal/arg.c (grub_arg_parse): Correct error handling after
27479 reallocating the argumentlist (check if `argl' is not null instead
27480 of checking if `args' is not null).
27481 * kern/mm.c (grub_realloc): Return the same pointer when using the
27482 same region, instead of returning the header address.
27483
e15199cb 274842004-07-11 Marco Gerards <metgerards@student.han.nl>
27485
27486 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27487 one block instead of two when looking for the initial partition.
27488 (grub_partition_probe): Initialize the local variable `p' with 0.
27489 Use base 10 for the grub_strtoul call.
27490 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27491 need for one local variable.
27492 (grub_strtoul): Don't add the new value to `num', instead of that
27493 just assign it.
27494
020616c2 274952004-07-11 Marco Gerards <metgerards@student.han.nl>
27496
27497 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27498 (pxeboot_img_SOURCES): New variable.
27499 (pxeboot_img_ASFLAGS): Likewise.
27500 (pxeboot_img_LDFLAGS): Likewise.
27501 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27502 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27503 <lode_leroy@hotmail.com>.
27504
6c51eb64 275052004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27506
27507 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27508 there was no input.
27509
cfb12aff 275102004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27511
27512 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27513 the history buffer logic.
27514
6eabba74 275152004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27516
27517 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27518 (FILETYPE_INO_SYMLINK): New macros.
27519 (grub_ext2_find_file): Check if the node is a directory using the
27520 inode stat information instead of using the filetype in the
27521 dirent. Exclude the first character of an absolute symlink.
27522 (grub_ext2_dir): Mask out the filetype part of the mode member of
27523 the inode.
27524
66e19ef8 275252004-05-24 Marco Gerards <metgerards@student.han.nl>
27526
27527 Add support for UFS version 1 and 2. Add support for the minix
27528 filesystem version 1 and 2, both the variants with 14 and 30 long
27529 filenames.
f19dbdb7 27530
66e19ef8 27531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27532 fs/minix.c.
27533 (grub_emu_SOURCES): Likewise.
27534 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27535 (ufs_mod_SOURCES): New variable.
27536 (ufs_mod_CFLAGS): Likewise.
27537 (minix_mod_SOURCES): Likewise.
27538 (minix_mod_CFLAGS): Likewise.
27539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27540 fs/minix.c.
27541 (grubof_SOURCES): Likewise.
27542 * fs/ufs.c: New file.
27543 * fs/minix.c: New file.
27544 * include/grub/fs.h (grub_ufs_init): New prototype.
27545 (grub_ufs_fini): Likewise.
27546 (grub_minix_init): Likewise.
27547 (grub_minix_fini): Likewise.
27548 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27549 minix fs.
27550
cc2e748a 275512004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27552
27553 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27554 commands/ls.c, commands/terminal.c, commands/boot.c,
27555 commands/cmp.c and commands/cat.c.
27556 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27557
27558 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27559 "env.h"
27560
4b13b216 275612004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27562
27563 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27564 and grub_, respectively. Because the conversion is trivial and
27565 mechanical, I omit the details here. Please refer to the CVS
27566 if you need more information.
27567
6a142551 275682004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27569
27570 * include/pupa: Renamed to ...
27571 * include/grub: ... this.
27572 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27573 * util/i386/pc/grub-mkimage.c: ... this.
27574 * util/i386/pc/pupa-setup.c: Renamed to ...
27575 * util/i386/pc/grub-setup.c: ... this.
27576 * util/pupa-emu.c: Renamed to ...
27577 * util/grub-emu.c: ... this.
27578
e56cdf21 275792004-03-29 Marco Gerards <metgerards@student.han.nl>
27580
27581 Add support for the newworld apple macintosh (PPC). This has been
27582 tested on the powerbook 2000 only. It only adds support for
27583 generic ieee1275 functions, console and disk support. This should
27584 be easy to port to other architectures with support for Open
27585 Firmware.
f19dbdb7 27586
e56cdf21 27587 * configure.ac: Accept the powerpc as host_cpu. In the case of
27588 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27589 specific tests are only executed while building for the i386.
27590 Inverse test for crosscompile.
27591 * genmk.rb (Utility): Allow assembler files.
27592 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27593 * conf/powerpc-ieee1275.rmk: New file.
27594 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27595 * disk/powerpc/ieee1275/partition.c: Likewise.
27596 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27597 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27598 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27599 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27600 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27601 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27602 * include/pupa/powerpc/ieee1275/loader.h
27603 * include/pupa/powerpc/setjmp.h: Likewise.
27604 * include/pupa/powerpc/types.h: Likewise.
27605 * kern/powerpc/ieee1275/init.c: Likewise.
27606 * kern/powerpc/ieee1275/openfw.c: Likewise.
27607 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27608
27609 These files were written by Johan Rydberg
27610 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 27611
e56cdf21 27612 * boot/powerpc/ieee1275/cmain.c: New file.
27613 * boot/powerpc/ieee1275/crt0.S: Likewise.
27614 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27615 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27616
8c8cc205 276172004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27618
27619 * Makefile.in: Update copyright.
27620 * genmodsrc.sh: Likewise.
27621 * gensymlist.sh: Likewise.
27622 * term/i386/pc/vga.c: Indent correctly.
27623
27624 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27625 bugreporting address.
27626 * util/i386/pc/pupa-setup.c (usage): Likewise,
27627 (main): Call pupa_ext2_init and pupa_ext2_fini.
27628
f19dbdb7 27629 * fs/fat.c (log2): Renamed to ...
8c8cc205 27630 (fat_log2): ... this.
27631 All callers changed.
27632 * kern/misc.c (memcpy): Alias to pupa_memmove.
27633 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27634 lvalue cast.
27635 * util/console.c (pupa_ncurses_fini): Return 0.
27636
27637 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27638 Move fail label here.
27639 [__GNU__]: Don't warn when using stat.
27640 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27641 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27642 long int. Use strtol instead of strtoul.
f19dbdb7 27643
db1771cf 276442004-03-14 Marco Gerards <metgerards@student.han.nl>
27645
27646 * commands/boot.c: New file.
27647 * commands/cat.c: Likewise.
27648 * commands/cmp.c: Likewise.
27649 * commands/ls.c: Likewise.
27650 * commands/terminal.c: Likewise.
27651 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27652 (pupa_register_command): Changed interface to match the new
27653 argument parser.
27654 (pupa_command_execute): Changed (almost rewritten) so it uses
27655 pupa_split_command. Added support for setting variables using the
27656 syntax `foo=bar'.
27657 (rescue_command): Changed to work with the new argument parser.
27658 (terminal_command): Moved from here to commands/terminal.c.
27659 (set_command): New function.
27660 (unset_command): New function.
27661 (insmod_command): New function.
27662 (rmmod_command): New function.
27663 (lsmod_command): New function.
27664 (pupa_command_init): Don't initialize the command terminal
27665 anymore. Initialize the commands set, unset, insmod, rmmod and
27666 lsmod.
27667 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27668 (kernel_img_HEADERS): Add arg.h and env.h.
27669 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27670 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27671 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27672 normal/arg.c.
27673 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27674 terminal.mod.
27675 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27676 (boot_mod_SOURCES): New variable.
27677 (terminal_mod_SOURCES): Likewise.
27678 (ls_mod_SOURCES): Likewise.
27679 (cmp_mod_SOURCES): Likewise.
27680 (cat_mod_SOURCES): Likewise.
27681
27682 * normal/arg.c: New file.
27683 * kern/env.c: Likewise.
27684 * include/pupa/arg.h: Likewise.
27685 * include/pupa/env.h: Likewise.
27686 * font/manager.c (font_command): Changed to match argument parsing
27687 interface changes.
27688 (PUPA_MOD_INIT): Likewise.
27689 * hello/hello.c (pupa_cmd_hello): Likewise.
27690 (PUPA_MOD_INIT): Likewise.
27691 * include/pupa/disk.h: Include <pupa/device.h>.
27692 (pupa_print_partinfo): New prototype.
27693 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27694 (pupa_dl_get_prefix): Likewise.
27695 * include/pupa/misc.h: Include <pupa/err.h>.
27696 (pupa_isgraph): New prototype.
27697 (pupa_isdigit): Likewise.
27698 (pupa_split_cmdline): Likewise.
27699 * include/pupa/normal.h: Include <pupa/arg.h>.
27700 (pupa_command): Changed the prototype of the member `func' to
27701 match the argument parsing interface. Added member `options'.
27702 (pupa_register_command): Updated to match function.
27703 (pupa_arg_parse): New prototype.
27704 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27705 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27706 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27707 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27708 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27709 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27710 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27711 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27712 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27713 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27714 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27715 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27716 * kern/disk.c: Include <pupa/file.h>.
27717 (pupa_print_partinfo): New function.
27718 * kern/dl.c: Include <pupa/env.h>.
27719 (pupa_dl_dir): Variable removed.
27720 (pupa_dl_load): Use the environment variable `prefix' instead of
27721 the variable pupa_dl_dir.
27722 (pupa_dl_set_prefix): Function removed.
27723 (pupa_dl_get_prefix): Likewise.
27724 * kern/i386/pc/init.c: Include <pupa/env.h>.
27725 (pupa_machine_init): Use the environment variable `prefix' instead of
27726 using pupa_dl_set_prefix to set the prefix.
27727 * kern/main.c: Include <pupa/env.h>.
27728 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27729 using pupa_dl_get_prefix to get the prefix.
27730 * kern/misc.c: Include <pupa/env.h>.
27731 (pupa_isdigit): New function.
27732 (pupa_isgraph): Likewise.
27733 (pupa_ftoa): Likewise.
27734 (pupa_vsprintf): Added support for printing values of the type
27735 `double'. Make it possible to format variable output when using
27736 formatting like `%1.2%f'.
27737 (pupa_split_cmdline): New function.
27738 * kern/rescue.c: Include <pupa/env.h>.
27739 (next_word): Removed function.
27740 (pupa_rescue_cmd_prefix): Likewise.
27741 (pupa_rescue_cmd_set): New function.
27742 (pupa_rescue_cmd_unset): New function.
27743 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27744 split the command line instead of splitting it here. Added
27745 support for setting variables using the syntax `foo=bar'. Don't
27746 initialize the prefix command anymore. Initialized the set and
27747 unset commands.
27748 * normal/cmdline.c: Include <pupa/env.h>.
27749 (pupa_tab_complete): Added prototypes for print_simple_completion,
27750 print_partition_completion, add_completion, iterate_commands,
27751 iterate_dev, iterate_part and iterate_dir. Moved code to print
27752 partition information from here to kern/disk.c.
fe6b695a 27753 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 27754 * normal/main.c: Include <pupa/env.h>.
27755 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27756 instead of using pupa_dl_get_prefix to get the prefix.
27757 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27758 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27759 warning.
27760 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27761 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27762 ((unused))' to silence a gcc warning.
27763 (pupa_vga_setcolor): Likewise.
27764 (debug_command): Changed to match argument parsing
27765 interface changes.
27766 * util/pupa-emu.c: Include <pupa/env.h>.
27767 (options): Added 0's for unused fields to silence a gcc warning.
27768 (argp): Likewise.
27769 (main): Use the environment variable `prefix' instead of using
27770 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27771 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27772 and terminal.
27773
27774 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27775 * util/misc.c: Include <malloc.h>.
27776 (pupa_malloc): Rewritten so errors are correctly reported.
27777 (pupa_realloc): Likewise.
27778 (pupa_memalign): Likewise.
27779 (pupa_mm_init_region): Declare unused variables with
27780 `__attribute__ ((unused))' to silence a gcc warning.
27781 * normal/i386/setjmp.S: Remove tab at the end of the file to
27782 silence a gcc warning.
27783 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27784 variables with `__attribute__ ((unused))' to silence a gcc
27785 warning.
27786 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27787 local variable i unsigned to silence a gcc warning.
27788
27789 * kern/term.c: Include <pupa/misc.h>.
27790 (pupa_more_lines): New variable.
27791 (pupa_more): Likewise.
27792 (pupa_putcode): When the pager is active pause at the end of every
27793 screen.
27794 (pupa_set_more): New function.
27795 * include/pupa/term.h (pupa_set_more): New prototype.
27796
27797
3b1139cb 277982004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27799
27800 Now this project is GRUB 2 rather than PUPA. The location of
27801 the CVS repository was moved to GRUB's.
f19dbdb7 27802
3b1139cb 27803 * configure.ac: Use bug-grub as the reporting address.
27804 Use GRUB instead of PUPA.
27805 Change the version number to 1.90.
27806
8367695c 278072004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27808
27809 * genkernsyms.sh: Updated copyright information.
27810 * genmk.rb: Likewise.
27811 * genmodsrc.sh: Likewise.
27812 * gensymlist.sh: Likewise.
27813 * boot/i386/pc/boot.S: Likewise.
27814 * boot/i386/pc/diskboot.S: Likewise.
27815 * disk/i386/pc/biosdisk.c: Likewise.
27816 * disk/i386/pc/partition.c: Likewise.
27817 * font/manager.c: Likewise.
27818 * fs/ext2.c: Likewise.
27819 * fs/fat.c: Likewise.
27820 * include/pupa/boot.h: Likewise.
27821 * include/pupa/device.h: Likewise.
27822 * include/pupa/disk.h: Likewise.
27823 * include/pupa/dl.h: Likewise.
27824 * include/pupa/elf.h: Likewise.
27825 * include/pupa/err.h: Likewise.
27826 * include/pupa/file.h: Likewise.
27827 * include/pupa/font.h: Likewise.
27828 * include/pupa/fs.h: Likewise.
27829 * include/pupa/kernel.h: Likewise.
27830 * include/pupa/loader.h: Likewise.
27831 * include/pupa/misc.h: Likewise.
27832 * include/pupa/mm.h: Likewise.
27833 * include/pupa/net.h: Likewise.
27834 * include/pupa/normal.h: Likewise.
27835 * include/pupa/rescue.h: Likewise.
27836 * include/pupa/setjmp.h: Likewise.
27837 * include/pupa/symbol.h: Likewise.
27838 * include/pupa/term.h: Likewise.
27839 * include/pupa/types.h: Likewise.
27840 * include/pupa/i386/setjmp.h: Likewise.
27841 * include/pupa/i386/types.h: Likewise.
27842 * include/pupa/i386/pc/biosdisk.h: Likewise.
27843 * include/pupa/i386/pc/boot.h: Likewise.
27844 * include/pupa/i386/pc/console.h: Likewise.
27845 * include/pupa/i386/pc/init.h: Likewise.
27846 * include/pupa/i386/pc/kernel.h: Likewise.
27847 * include/pupa/i386/pc/linux.h: Likewise.
27848 * include/pupa/i386/pc/loader.h: Likewise.
27849 * include/pupa/i386/pc/memory.h: Likewise.
27850 * include/pupa/i386/pc/multiboot.h: Likewise.
27851 * include/pupa/i386/pc/partition.h: Likewise.
27852 * include/pupa/i386/pc/time.h: Likewise.
27853 * include/pupa/i386/pc/vga.h: Likewise.
27854 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27855 * include/pupa/util/getroot.h: Likewise.
27856 * include/pupa/util/misc.h: Likewise.
27857 * include/pupa/util/resolve.h: Likewise.
27858 * kern/device.c: Likewise.
27859 * kern/disk.c: Likewise.
27860 * kern/dl.c: Likewise.
27861 * kern/err.c: Likewise.
27862 * kern/file.c: Likewise.
27863 * kern/fs.c: Likewise.
27864 * kern/loader.c: Likewise.
27865 * kern/main.c: Likewise.
27866 * kern/misc.c: Likewise.
27867 * kern/mm.c: Likewise.
27868 * kern/rescue.c: Likewise.
27869 * kern/term.c: Likewise.
27870 * kern/i386/dl.c: Likewise.
27871 * kern/i386/pc/init.c: Likewise.
27872 * kern/i386/pc/lzo1x.S: Likewise.
27873 * kern/i386/pc/startup.S: Likewise.
27874 * loader/i386/pc/chainloader.c: Likewise.
27875 * loader/i386/pc/linux.c: Likewise.
27876 * loader/i386/pc/multiboot.c: Likewise.
27877 * normal/cmdline.c: Likewise.
27878 * normal/command.c: Likewise.
27879 * normal/main.c: Likewise.
27880 * normal/menu.c: Likewise.
27881 * normal/i386/setjmp.S: Likewise.
27882 * term/i386/pc/console.c: Likewise.
27883 * term/i386/pc/vga.c: Likewise.
27884 * util/console.c: Likewise.
27885 * util/genmoddep.c: Likewise.
27886 * util/misc.c: Likewise.
27887 * util/pupa-emu.c: Likewise.
27888 * util/resolve.c: Likewise.
27889 * util/unifont2pff.rb: Likewise.
27890 * util/i386/pc/biosdisk.c: Likewise.
27891 * util/i386/pc/getroot.c: Likewise.
27892 * util/i386/pc/pupa-mkimage.c: Likewise.
27893 * util/i386/pc/pupa-setup.c: Likewise.
27894
e6eced71 278952004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27896
27897 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27898 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27899 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27900 reading and reset it after reading.
27901 (pupa_ext2_close): Return PUPA_ERR_NONE.
27902
27903 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27904 Correct value.
27905 (struct linux_kernel_header): Add kernel_version and
27906 initrd_addr_max.
27907 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27908 pupa_file_read succeeds.
27909 (pupa_rescue_cmd_initrd): Implement.
27910
5aded270 279112003-12-03 Marco Gerards <metgerards@student.han.nl>
27912
27913 * fs/ext2.c (pupa_ext2_label): New function.
27914 (pupa_ext2_fs): Added label.
27915 * fs/fat.c (pupa_fat_label): New function.
27916 (pupa_fat_fs): Added label.
27917 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27918
27919 * kern/misc.c (pupa_strndup): New function.
27920 * include/pupa/misc.h (pupa_strndup): New prototype.
27921
27922 * include/pupa/normal.h: Include <pupa/err.h>.
27923 (pupa_set_history): New prototype.
27924 (pupa_iterate_commands): New prototype.
27925 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27926 <pupa/disk.h>, <pupa/file.h>.
27927 (hist_size): New variable.
27928 (hist_lines): Likewise.
27929 (hist_end): Likewise.
27930 (hist_used): Likewise.
27931 (pupa_set_history): New function.
27932 (pupa_history_get): Likewise.
27933 (pupa_history_add): Likewise.
27934 (pupa_history_replace): Likewise.
27935 (pupa_tab_complete): Likewise.
27936 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27937 completion shows partitionnames while completing partitions, this
27938 feature was suggested by Jeff Bailey.
27939 * normal/command.c (pupa_iterate_commands): New function.
27940 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27941 (pupa_normal_init): Initialize history buffer.
27942 (PUPA_MOD_INIT): Likewise.
27943 (pupa_normal_fini): Free the history buffer.
27944 (PUPA_MOD_FINI): Likewise.
27945
27946 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27947 key.
27948
27949 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27950 * configure.ac [i386]: Check for regparam bug.
27951 (NESTED_FUNC_ATTR) [! i386]: Defined.
27952
1f7315a3 279532003-11-17 Marco Gerards <metgerards@student.han.nl>
27954
27955 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27956 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27957 (pupa_emu_SOURCES): New variable.
27958 (pupa_emu_LDFLAGS): Likewise.
27959 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27960 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27961 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27962 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27963 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27964 (pupa_jmp_buf): New typedef.
27965 (pupa_setjmp) [PUPA_UTIL]: New macro.
27966 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27967 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27968 (pupa_refresh): New prototype.
27969 * include/pupa/util/getroot.h: New file.
27970 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27971 it.
27972 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27973 (pupa_rescue_cmd_cat): Likewise.
27974 (pupa_rescue_cmd_ls): Likewise.
27975 (pupa_rescue_cmd_testload): Likewise.
27976 (pupa_rescue_cmd_lsmod): Likewise.
27977 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27978 * normal/menu.c (run_menu): Likewise.
27979 * kern/term.c (pupa_cls): Likewise.
27980 (pupa_refresh): New function.
27981 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27982 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27983 * util/console.c: New file.
f19dbdb7 27984
1f7315a3 27985 * util/i386/pc/getroot.c: New file.
27986 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27987 (pupa_putchar): New function.
27988 (pupa_refresh): Likewise.
27989 (xgetcwd): Function moved to ...
27990 (strip_extra_slashes): Likewise.
27991 (get_prefix): Likewise.
f19dbdb7 27992 * util/i386/pc/getroot.c: ... here.
1f7315a3 27993 (find_root_device): Function moved and renamed to...
27994 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27995 Changed all callers.
27996 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27997 and renamed to...
27998 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27999 Changed all callers.
28000 * util/misc.c (pupa_memalign): New function.
28001 (pupa_mm_init_region): Likewise.
28002 (pupa_register_exported_symbols): Likewise.
28003 (pupa_putchar): Function removed.
28004 * util/pupa-emu.c: New file.
28005
9a5c1ade 280062003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
28007
28008 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
28009 (_multiboot_mod_SOURCES): New variable.
28010 (_multiboot_mod_CFLAGS): Likewise.
28011 * loader/i386/pc/multiboot.c: New file.
28012 * include/pupa/i386/pc/multiboot.h: Likewise.
28013 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
28014 (pupa_multiboot_real_boot): New function.
28015 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
28016 (pupa_multiboot_real_boot): New prototype.
28017 (pupa_rescue_cmd_multiboot): Likewise
28018 (pupa_rescue_cmd_module): Likewise.
28019
28020 * kern/loader.c (pupa_loader_set): Continue when
28021 pupa_loader_unload_func() fails.
28022 (pupa_loader_unset): New function.
28023 * include/pupa/loader.h (pupa_loader_unset): New prototype.
28024
28025 * kern/misc.c (pupa_stpcpy): New function.
28026 * include/pupa/misc.h (pupa_stpcpy): New prototype.
28027
8e72a9c0 280282003-11-12 Marco Gerards <metgerards@student.han.nl>
28029
28030 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
28031 for available extensions.
28032
28033 * include/pupa/i386/pc/time.h: New file.
28034 * kern/disk.c: Include <pupa/machine/time.h>.
28035 (PUPA_CACHE_TIMEOUT): New macro.
28036 (pupa_last_time): New variable.
28037 (pupa_disk_open): Flush the cache when there was a timeout.
28038 (pupa_disk_close): Reset the timer.
28039 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
28040 pupa_currticks.
28041 * util/misc.c: Include <sys/times.h>
28042 (pupa_get_rtc): New function.
28043
c4adbd32 280442003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28045
28046 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
28047 as blocks.
28048 (pupa_ext2_get_file_block): Use blocks member.
28049
28050 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
28051 first block. Return -1 instead of pupa_errno on error.
28052
bfd30f06 280532003-10-27 Marco Gerards <metgerards@student.han.nl>
28054
28055 * README: In the pupa-mkimage example use _chain instead of chain
28056 and ext2 instead of fat.
28057 * TODO: Replace ext2fs with jfs as an example. Add an item for
28058 adding journal playback for ext2fs.
28059 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
28060 (pkgdata_MODULES): Added ext2.mod.
28061 (ext2_mod_SOURCES): New variable.
28062 (ext2_mod_CFLAGS): Likewise.
28063 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
28064 * include/pupa/misc.h (pupa_strncpy): New prototype.
28065 (pupa_strcat): Likewise.
28066 (pupa_strncmp): Likewise.
28067 * kern/misc.c (pupa_strcat): Enable function.
28068 (pupa_strncpy): New function.
28069 (pupa_strncmp): Likewise.
28070 * fs/ext2.c: New file.
f19dbdb7 28071
bfd30f06 28072 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
28073 when the read failed before retrying.
28074 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
28075 (_FILE_OFFSET_BITS): Likewise.
28076 * configure.ac: Added AC_SYS_LARGEFILE.
28077
98d15063 280782003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28079
28080 * genmk.rb (PModule#rule): Make sure to get only symbol names
28081 from the output of nm.
59cad637 28082 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 28083
18d9c7cd 280842003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28085
28086 I forgot to check in these changes for a long time. This adds
28087 incomplete support for VGA console, and this is still very
28088 buggy. Also, a lot of consideration is required for I18N,
28089 UNICODE, and VGA font issues. Therefore, assume that this is
28090 such that "better than nothing".
f19dbdb7 28091
18d9c7cd 28092 * font/manager.c: New file.
28093 * include/pupa/font.h: Likewise.
28094 * include/pupa/i386/pc/vga.h: Likewise.
28095 * term/i386/pc/vga.c: Likewise.
28096 * util/unifont2pff.rb: Likewise.
28097
28098 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
28099 (pkgdata_MODULES): Added vga.mod and font.mod.
28100 (vga_mod_SOURCES): New variables.
28101 (vga_mod_CFLAGS): Likewise.
28102 (font_mod_SOURCES): Likewise.
28103 (font_mod_CFLAGS): Likewise.
28104
28105 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
28106
28107 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 28108 (struct pupa_term): Added init and fini.
18d9c7cd 28109 Changed the argument of putchar to pupa_uint32_t.
28110
28111 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
28112 (pupa_console_real_putchar): New prototype.
28113 (pupa_console_putchar): Removed.
28114 (pupa_console_checkkey): Exported.
28115 (pupa_console_getkey): Likewise.
28116
28117 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
28118 characters.
28119
28120 * kern/term.c (pupa_term_set_current): Rewritten.
28121 (pupa_putchar): Likewise.
28122 (pupa_putcode): New function.
28123
28124 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
28125 (pupa_console_real_putchar): ... this.
28126 (pupa_vga_set_mode): New function.
28127 (pupa_vga_get_font): Likewise.
28128
28129 * normal/command.c: Include pupa/term.h.
28130 (terminal_command): New function.
28131 (pupa_command_init): Register the command "terminal".
28132
28133 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
28134 (DISP_UP): Likewise.
28135 (DISP_RIGHT): Likewise.
28136 (DISP_DOWN): Likewise.
28137 (DISP_HLINE): Likewise.
28138 (DISP_VLINE): Likewise.
28139 (DISP_UL): Likewise.
28140 (DISP_UR): Likewise.
28141 (DISP_LL): Likewise.
28142 (DISP_LR): Likewise.
28143
28144 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 28145
977329f5 281462003-02-08 NIIBE Yutaka <gniibe@m17n.org>
28147
28148 * util/resolve.c (pupa_util_resolve_dependencies): BUG
28149 FIX. Reverse the path_list.
28150
28151 * include/pupa/normal.h: Export pupa_register_command and
28152 pupa_unregister_command.
28153
28154 * hello/hello.c (pupa_cmd_hello): New module.
28155 * conf/i386-pc.rmk: Added hello.mod.
28156
1f5ab428 281572003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
28158
28159 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 28160
1f5ab428 28161 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
28162 (compress_kernel): New variable.
28163 (generate_image): Heavily modified to support compressing a
28164 large part of the core image.
28165
28166 * util/misc.c (pupa_util_read_image): Fix a file descriptor
28167 leak.
28168 (pupa_util_load_image): New function.
28169
28170 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
28171 (pupa_compressed_size): New variable.
28172 (codestart): Enable Gate A20 here.
28173 Decompress the compressed part of the core image.
28174 Rearrange the code to put functions and variables which are
28175 required for initialization in the non-compressed part.
28176 Include lzo1x.S.
28177
28178 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
28179 here.
28180
28181 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
28182
f19dbdb7 28183 * include/pupa/i386/pc/kernel.h
1f5ab428 28184 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
28185 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
28186 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28187 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28188 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
28189
28190 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
28191
28192 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
28193 (Utility#rule): Likewise.
28194
28195 * configure.ac: Check if LZO is available.
28196
ce5bf700 281972003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
28198
28199 * include/pupa/normal.h: New file.
28200 * include/pupa/setjmp.h: Likewise.
28201 * include/pupa/i386/setjmp.h: Likewise.
28202 * normal/cmdline.c: Likewise.
28203 * normal/command.c: Likewise.
28204 * normal/main.c: Likewise.
28205 * normal/menu.c: Likewise.
28206 * normal/i386/setjmp.S: Likewise.
f19dbdb7 28207
ce5bf700 28208 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
28209 (pupa_rescue_cmd_initrd): Likewise.
28210
28211 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
28212 Likewise.
28213
28214 * kern/i386/pc/startup.S (translation_table): New variable.
28215 (translate_keycode): New function.
28216 (pupa_console_getkey): Call translate_keycode.
28217
28218 * kern/rescue.c (attempt_normal_mode): New function.
28219 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
28220 it failed, print a message.
28221
28222 * kern/mm.c (pupa_real_malloc): Print more information when a
28223 free magic is broken.
28224 (pupa_free): If the first free header is not free actually, set
28225 it to P.
28226
28227 * kern/main.c (pupa_load_normal_mode): Just load the module
28228 "normal".
28229 (pupa_main): Don't print the message
28230 "Entering into rescue mode..." here.
28231
28232 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
28233 Declared.
28234 (pupa_rescue_cmd_initrd): Likewise.
28235 (pupa_rescue_cmd_initrd): Likewise.
28236
28237 * include/pupa/symbol.h (FUNCTION): Specify the type.
28238 (VARIABLE): Likewise.
28239
28240 * include/pupa/err.h (pupa_err_t): Added
28241 PUPA_ERR_UNKNOWN_COMMAND.
28242
28243 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
28244 (pupa_dl_get_prefix): Likewise.
28245
28246 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
28247 Added _chain.mod and _linux.mod instead of chain.mod and
28248 linux.mod.
28249 (chain_mod_SOURCES): Renamed to ...
28250 (_chain_mod_SOURCES): ... this.
28251 (chain_mod_CFLAGS): Renamed to ...
28252 (_chain_mod_CFLAGS): ... this.
28253 (linux_mod_SOURCES): Renamed to ...
28254 (_linux_mod_SOURCES): ... this.
28255 (linux_mod_CFLAGS): Renamed to ...
28256 (_linux_mod_CFLAGS): ... this.
28257 (normal_mod_SOURCES): New variable.
28258 (normal_mod_CFLAGS): Likewise.
28259 (normal_mod_ASFLAGS): Likewise.
28260
282612003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
28262
28263 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
28264 possible.
28265
fe6b695a 28266 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 28267 recursively.
28268 (pupa_dl_unref): Unrefer depending modules recursively.
28269 Don't call pupa_dl_unload implicitly, because PUPA can crash if
28270 a module is unloaded before one depending on that module is
28271 unloaded.
28272 (pupa_dl_unload): Unload depending modules explicitly,
28273 if possible.
28274
c04da074 282752003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
28276
28277 * include/pupa/i386/pc/linux.h: New file.
28278 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 28279
c04da074 28280 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
28281 Removed.
28282 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
28283 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
28284 of PUPA_CHAINLOADER_BOOT_SECTOR.
28285
28286 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
28287 (pupa_linux_prot_size): New variable.
28288 (pupa_linux_tmp_addr): Likewise.
28289 (pupa_linux_real_addr): Likewise.
28290 (pupa_linux_boot_zimage): New function.
28291 (pupa_linux_boot_bzimage): Likewise.
28292
28293 * kern/i386/pc/init.c (struct mem_region): New structure.
28294 (MAX_REGIONS): New macro.
28295 (mem_regions): New variable.
28296 (num_regions): Likewise.
28297 (pupa_os_area_addr): Likewise.
28298 (pupa_os_area_size): Likewise.
28299 (pupa_lower_mem): Likewise.
28300 (pupa_upper_mem): Likewise.
28301 (add_mem_region): New function.
28302 (compact_mem_regions): Likewise.
28303 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
28304 the size of the conventional memory and that of so-called upper
28305 memory (before the first memory hole).
28306 Instead of adding each found region to free memory, use
28307 add_mem_region and add them after removing overlaps.
28308 Also, add only 1/4 of the upper memory to free memory. The rest
28309 is used for loading OS images. Maybe this is ad hoc, but this
28310 makes it much easier to relocate OS images when booting.
28311
28312 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
28313 (pupa_enter_rescue_mode): Don't register initrd and module.
28314
28315 * kern/mm.c: Include pupa/dl.h.
28316
28317 * kern/main.c: Include pupa/file.h and pupa/device.h.
28318
28319 * kern/loader.c (pupa_loader_load_module_func): Removed.
28320 (pupa_loader_load_module): Likewise.
28321
28322 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
28323 ``.o''.
28324
28325 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
28326 (pupa_linux_tmp_addr): Likewise.
28327 (pupa_linux_real_addr): Likewise.
28328 (pupa_linux_boot_zimage): Likewise.
28329 (pupa_linux_boot_bzimage): Likewise.
28330
28331 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
28332 (pupa_upper_mem): Likewise.
28333 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
28334 module is too dangerous.
28335
28336 * include/pupa/loader.h (pupa_os_area_addr): Declared.
28337 (pupa_os_area_size): Likewise.
28338 (pupa_loader_set): Remove the first argument. Loader doesn't
28339 manage modules or initrd any longer.
28340 (pupa_loader_load_module): Removed.
28341
28342 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
28343 (linux_mod_SOURCES): New variable.
28344 (linux_mod_CFLAGS): Likewise.
28345
a13f9237 283462003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
28347
28348 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
28349 the length of a blocklist correctly.
28350
28351 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
28352 Use ioctl only if the OS file is a block device.
28353 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
28354 not very useful for normal files.
28355
28356 * kern/main.c (pupa_set_root_dev): New function.
28357 (pupa_load_normal_mode): Likewise.
28358 (pupa_main): Call those above.
28359
28360 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
28361 pupa_uint16_t.
28362
28363 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
28364
a5ffe966 283652003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28366
28367 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
28368 (setup): Configure the installed partition information and the
28369 dl prefix.
28370
28371 * loader/i386/pc/chainloader.c (my_mod): New variable.
28372 (pupa_chainloader_unload): New function.
28373 (pupa_rescue_cmd_chainloader): Refer itself.
28374 (PUPA_MOD_INIT): Save its own module in MY_MOD.
28375
28376 * kern/i386/pc/startup.S (install_partition): Removed.
28377 (version_string): Likewise.
28378 (config_file): Likewise.
28379 (pupa_install_dos_part): New variable.
28380 (pupa_install_bsd_part): Likewise.
28381 (pupa_prefix): Likewise.
28382 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28383
28384 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28385 and pupa/misc.h.
28386 (make_install_device): New function.
28387 (pupa_machine_init): Set the dl prefix.
28388
28389 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28390 (buf): Renamed to ...
28391 (linebuf): ... this.
28392 (pupa_rescue_cmd_prefix): New function.
28393 (pupa_rescue_cmd_insmod): Likewise.
28394 (pupa_rescue_cmd_rmmod): Likewise.
28395 (pupa_rescue_cmd_lsmod): Likewise.
28396 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28397 rmmod and lsmod.
28398
28399 * kern/mm.c (pupa_memalign): If failed even after invalidating
28400 disk caches, unload unneeded modules and retry.
28401
28402 * kern/misc.c (pupa_memmove): New function.
28403 (pupa_memcpy): Removed.
28404 (pupa_strcpy): New function.
28405 (pupa_itoa): Made static.
28406
28407 * kern/dl.c (pupa_dl_iterate): New function.
28408 (pupa_dl_ref): Likewise.
28409 (pupa_dl_unref): Likewise.
28410 (pupa_dl_unload): Return if succeeded or not.
28411 (pupa_dl_unload_unneeded): New function.
28412 (pupa_dl_unload_all): Likewise.
28413 (pupa_dl_init): Renamed to ...
28414 (pupa_dl_set_prefix): ... this.
28415 (pupa_dl_get_prefix): New function.
28416
28417 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28418 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28419 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28420 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28421 (pupa_install_dos_part): Declared.
28422 (pupa_install_bsd_part): Likewise.
28423 (pupa_prefix): Likewise.
28424 (pupa_boot_drive): Likewise.
28425
28426 * include/pupa/types.h: Fix a typo.
28427
28428 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28429 pupa_memmove.
28430 (pupa_memmove): Declared.
28431 (pupa_strcpy): Likewise.
28432
28433 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28434 pupa_mod_init takes one argument, its own module.
28435 (pupa_dl_unload_unneeded): Declared.
28436 (pupa_dl_unload_all): Likewise.
28437 (pupa_dl_ref): Likewise.
28438 (pupa_dl_unref): Likewise.
28439 (pupa_dl_iterate): Likewise.
28440 (pupa_dl_init): Renamed to ...
28441 (pupa_dl_set_prefix): ... this.
28442 (pupa_dl_get_prefix): Declared.
28443
28444 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 28445 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 28446 unloaded.
28447 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28448 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28449
28450 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28451 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28452
012d7999 284532003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28454
28455 * util/i386/pc/pupa-setup.c (setup): Define the internal
28456 function find_first_partition_start at the top level, because GCC
28457 3.0.x cannot compile internal functions in deeper scopes
28458 correctly.
28459 (find_root_device): Use lstat instead of stat.
28460 Don't follow symbolic links.
28461 Fix the path-constructing code.
28462
28463 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28464 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28465 by a BLKGETSIZE ioctl first, because block devices don't fill
28466 the member st_mode of the structure stat on Linux.
28467 [__linux__] (linux_find_partition): Use a temporary buffer
28468 REAL_DEV for the working space. Copy it to DEV before returning.
28469 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28470 buffer cache consistent.
28471 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28472 strncmp. The previous value was merely wrong.
28473 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28474
28475 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28476 FAT size is 12. The previous value was merely wrong.
28477
28478 * kern/main.c (pupa_main): Don't split the starting message from
28479 newlines.
28480
28481 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28482 LF, because BIOS goes crazy about character attributes in this
28483 case.
28484
1cc73a62 284852003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28486
28487 * include/i386/pc/util/biosdisk.h: New file.
28488 * util/i386/pc/biosdisk.c: Likewise.
28489 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 28490
1cc73a62 28491 * Makefile.in (INCLUDE_DISTFILES): Added
28492 include/pupa/i386/pc/util/biosdisk.h.
28493 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28494 directory util/i386/pc.
28495 (install-local): Added a rule for sbin_UTILITIES.
28496 (uninstall): Likewise.
28497
28498 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28499
28500 * util/misc.c (xrealloc): New function.
28501 (pupa_malloc): Likewise.
28502 (pupa_free): Likewise.
28503 (pupa_realloc): Likewise.
28504 (pupa_stop): Likewise.
28505 (pupa_putchar): Likewise.
28506
28507 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28508
28509 * include/pupa/util/misc.h (xrealloc): Declared.
28510
28511 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28512 macro.
28513 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28514 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28515
28516 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28517 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28518
28519 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28520 way should be implemented.
28521 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28522
28523 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28524 the size of NAME for safety.
28525 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28526 0x88.
28527
28528 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28529 (pupa_setup_SOURCES): Likewise.
28530
28531 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28532
08b70fe8 285332002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28534
28535 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28536 bunch of pushl's from pusha, because this destroys the return
28537 value.
28538
62ddcc8f 285392002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28540
28541 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28542 This means that any missing prototypes could be fatal. Also, you
28543 must take care when writing assembly code. See the comments at
28544 the beginning of startup.S, for more details.
f19dbdb7 28545
62ddcc8f 28546 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28547 compilation mechanism.
28548 (pupa_chainloader_real_boot): Likewise.
28549 (pupa_biosdisk_rw_int13_extensions): Likewise.
28550 (pupa_biosdisk_rw_standard): Likewise.
28551 (pupa_biosdisk_check_int13_extensions): Likewise.
28552 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28553 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28554 (pupa_get_memsize): Likewise.
28555 (pupa_get_mmap_entry): Likewise.
28556 (pupa_console_putchar): Likewise.
28557 (pupa_console_setcursor): Likewise.
28558 (pupa_getrtsecs): Use pushl instead of push.
28559
28560 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28561 memory instead of the stack for a mmap entry, because some
28562 BIOSes may ignore the maximum size and overflow.
28563
28564 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28565
28566 * genmk.rb (PModule#rule): Compile automatically generated
28567 sources with module-specific CFLAGS as well as other sources.
28568
9962ed99 285692002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28570
28571 * configure.ac: Check ld.
28572 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28573 respectively, before checking endianness and sizes.
28574
28575 * Makefile.in (LD): New variable.
f19dbdb7 28576
abdfc3c5 285772002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28578
28579 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28580
6a161fa9 285812002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28582
28583 * Changelog: New file.
28584