]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Cirrus 5446 and Bochs video cards support.
[grub2.git] / ChangeLog
1 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Cirrus 5446 and Bochs video cards support.
4
5 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
6 video_bochs.mod
7 (video_cirrus_mod_SOURCES): New variable.
8 (video_cirrus_mod_CFLAGS): Likewise.
9 (video_cirrus_mod_LDFLAGS): Likewise.
10 (video_bochs_mod_SOURCES): Likewise.
11 (video_bochs_mod_CFLAGS): Likewise.
12 (video_bochs_mod_LDFLAGS): Likewise.
13 * include/grub/vga.h: New file.
14 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
15 (grub_video_fb_set_page_t): New type.
16 (grub_video_fb_setup): New prototype.
17 (grub_video_fb_swap_buffers): Likewise.
18 (grub_video_fb_get_info_and_fini): Likewise.
19 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20 (CRTC_DATA_PORT): Likewise.
21 (CRTC_CURSOR): Likewise.
22 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23 (CRTC_CURSOR_ADDR_LOW): Likewise.
24 (CRTC_CURSOR_DISABLE): Likewise.
25 (update_cursor): Use grub_vga_cr_write.
26 (grub_vga_text_setcursor): Likewise.
27 * video/bochs.c: New file.
28 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
29 (palette): Likewise.
30 (palette_size): Likewise.
31 (framebuffer): New variable.
32 (grub_video_fb_init): Use 'framebuffer'.
33 (grub_video_fb_fini): Likewise.
34 (grub_video_fb_get_info): Likewise.
35 (grub_video_fb_get_palette): Likewise.
36 (grub_video_fb_set_palette): Likewise.
37 (grub_video_fb_set_viewport): Likewise.
38 (grub_video_fb_get_viewport): Likewise.
39 (grub_video_fb_map_color): Likewise.
40 (grub_video_fb_map_rgb): Likewise.
41 (grub_video_fb_map_rgba): Likewise.
42 (grub_video_fb_unmap_color): Likewise.
43 (grub_video_fb_unmap_color_int): Likewise.
44 (grub_video_fb_fill_rect): Likewise.
45 (grub_video_fb_blit_bitmap): Likewise.
46 (grub_video_fb_blit_render_target): Likewise.
47 (grub_video_fb_scroll): Likewise.
48 (grub_video_fb_create_render_target): Likewise.
49 (grub_video_fb_doublebuf_blit_init): Likewise.
50 (grub_video_fb_set_active_render_target): Handle doublebuffering.
51 (doublebuf_pageflipping_update_screen): New function.
52 (doublebuf_pageflipping_init): Likewise.
53 (grub_video_fb_setup): Likewise.
54 (grub_video_fb_swap_buffers): Likewise.
55 (grub_video_fb_get_info_and_fini): Likewise.
56 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
57 All users updated.
58 (doublebuf_pageflipping_commit): Restructured into ...
59 (doublebuf_pageflipping_set_page): ... this.
60 (doublebuf_pageflipping_update_screen): Removed.
61 (doublebuf_pageflipping_init): Likewise.
62 (double_buffering_init): Likewise.
63 (grub_video_vbe_setup): Use grub_video_fb_setup.
64 (grub_video_vbe_swap_buffers): Removed.
65 (grub_video_vbe_set_active_render_target): Likewise.
66 (grub_video_vbe_get_active_render_target): Likewise.
67 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
68 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
69 grub_video_fb_set_active_render_target and
70 grub_video_fb_get_active_render_target.
71 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
72 (SEQUENCER_DATA_PORT): Likewise.
73 (MAP_MASK_REGISTER): Likewise.
74 (CRTC_ADDR_PORT): Likewise.
75 (CRTC_DATA_PORT): Likewise.
76 (START_ADDR_HIGH_REGISTER): Likewise.
77 (START_ADDR_LOW_REGISTER): Likewise.
78 (GRAPHICS_ADDR_PORT): Likewise.
79 (GRAPHICS_DATA_PORT): Likewise.
80 (READ_MAP_REGISTER): Likewise.
81 (INPUT_STATUS1_REGISTER): Likewise.
82 (INPUT_STATUS1_VERTR_BIT): Likewise.
83 (get_map_mask): Use grub_vga_sr_read.
84 (set_map_mask): Use grub_vga_sr_write.
85 (set_read_map): Use grub_vga_gr_write.
86 (set_start_address): Use grub_vga_cr_write.
87 * video/sm712.c (framebuffer): Remove leftover fields.
88
89 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
90
91 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
92 setting GRUB_VIDEO_BACKEND. Make it available as a user override
93 instead. Replace the gfxterm backend check with a check that
94 ${GRUB_PREFIX}/video.lst is non-empty.
95 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
96 again.
97 (load_video): New generated function. Call it before loading
98 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
99 * util/grub.d/10_linux.in (linux_entry): Call load_video.
100 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
101 * docs/grub.texi (Simple configuration): Document
102 GRUB_VIDEO_BACKEND.
103
104 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
105
106 Use video functions in linux and xnu loaders.
107
108 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
109 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
110 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
111 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
112 loader/i386/pc/linux.c.
113 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
114 (find_line_len): Removed.
115 (find_framebuf): Likewise.
116 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
117 * loader/i386/efi/xnu.c: Removed.
118 * loader/i386/pc/xnu.c: Moved from here...
119 * loader/i386/xnu.c: ...here.
120
121 Enable priorities in video drivers.
122
123 * include/grub/video.h (grub_video_adapter_prio_t): New type.
124 (grub_video_adapter): New field prio.
125 (grub_video_register): Respect prio when inserting.
126 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
127 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
128 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
129 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
130 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
131 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
132 * video/sm712.c (grub_video_sm712_adapter): Likewise.
133
134 Fix SDL driver ID.
135
136 * include/grub/video.h (grub_video_driver_id_t): New value
137 GRUB_VIDEO_DRIVER_SDL.
138 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
139
140 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
141
142 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
143 argument to printf.
144 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
145
146 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
147
148 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
149 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
150
151 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
152
153 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
154 directly, and recommend grub-install instead.
155 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
156
157 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
158
159 Fix i386-pc prefix handling with nested partitions (Debian bug
160 #585068). Note that the case where the core image is booted using
161 multiboot and relocated from its original location still requires
162 more work.
163
164 * kern/i386/pc/init.c (make_install_device): If the prefix starts
165 with "(,", fill the boot drive in between those two characters, but
166 expect that a full partition specification including partition map
167 names will follow.
168 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
169 specified, write a prefix without the drive name but including a
170 full partition specification.
171
172 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
173
174 * util/grub-mkconfig.in: Ignore non-option arguments, for
175 compatibility with older versions (before 2010-06-12) which did the
176 same. In particular, this makes it easier to ship an update-grub
177 wrapper which is compatible with that used with GRUB Legacy (Debian
178 bug #586056).
179
180 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
181
182 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
183 for manual page generation.
184
185 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
186
187 * po/POTFILES: Remove leftover commands/handler.c.
188
189 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
190
191 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
192 left this script non-functional.
193
194 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
195
196 * docs/man/grub-emu.h2m: New file.
197
198 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
199
200 * docs/grub.texi (Commands): Document reduced command set in rescue
201 mode.
202 (cpuid): New section.
203
204 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
205
206 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
207 new partition naming style.
208 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
209
210 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
211
212 Add "-o grub.iso" like cmdline options support.
213
214 * util/grub-install.in: Improve cmdline option parsing.
215 * util/grub-mkconfig.in: Likewise.
216 * util/grub-mkrescue.in: Likewise.
217 * util/grub-reboot.in: Likewise.
218 * util/grub-set-default.in: Likewise.
219 * util/i386/efi/grub-install.in: Likewise.
220 * util/ieee1275/grub-install.in: Likewise.
221 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
222
223 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
224
225 * .bzrignore: Ignore 41_custom.
226
227 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
228
229 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
230
231 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
232
233 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
234 prototype declarations.
235
236 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
237 generating fs, partmap, and video lists.
238 * include/grub/fs.h (grub_fs_register): Omit prototype if
239 GRUB_LST_GENERATOR is defined.
240 * include/grub/partition.h (grub_partition_map_register): Likewise.
241 * include/grub/video.h (grub_video_register): Likewise.
242
243 2010-06-12 Javier Martín <lordhabbit@gmail.com>
244
245 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
246
247 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
248
249 * util/grub-mkrescue.in: Support --xorriso argument.
250
251 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
254 Suggested by: Thomas Schmitt.
255
256 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
259 Suggested by: Thomas Schmitt.
260
261 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
262
263 custom.cfg support.
264
265 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
266 * util/grub.d/41_custom.in: New file.
267
268 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
269
270 * util/grub-mkrescue.in (make_image): Remove sh module, which has
271 been merged back into normal.
272
273 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
274
275 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
276 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
277
278 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
279
280 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
281 when generating manual pages.
282 * docs/man/grub-bin2h.h2m: New file.
283 * docs/man/grub-editenv.h2m: New file.
284 * docs/man/grub-fstest.h2m: New file.
285 * docs/man/grub-install.h2m: New file.
286 * docs/man/grub-macho2img.h2m: New file.
287 * docs/man/grub-mkconfig.h2m: New file.
288 * docs/man/grub-mkdevicemap.h2m: New file.
289 * docs/man/grub-mkfont.h2m: New file.
290 * docs/man/grub-mkimage.h2m: New file.
291 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
292 * docs/man/grub-mkrelpath.h2m: New file.
293 * docs/man/grub-mkrescue.h2m: New file.
294 * docs/man/grub-ofpathname.h2m: New file.
295 * docs/man/grub-pe2elf.h2m: New file.
296 * docs/man/grub-probe.h2m: New file.
297 * docs/man/grub-reboot.h2m: New file.
298 * docs/man/grub-script-check.h2m: New file.
299 * docs/man/grub-set-default.h2m: New file.
300 * docs/man/grub-setup.h2m: New file.
301
302 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
303
304 Use FOR_* macros instead of *_iterate whenever possible.
305
306 * commands/handler.c: Removed.
307 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
308 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
309 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
310 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
311 (grub_probe_SOURCES): Remove kern/parser.c.
312 (util/grub-script-check.c_DEPENDENCIES): Removed.
313 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
314 and grub_script_check_init.c.
315 (grub_script_check_init.lst): Removed.
316 (grub_script_check_init.h): Likewise.
317 (grub_script_check_init.c): Likewise.
318 (pkglib_MODULES): Remove handler.mod and sh.mod.
319 (handler_mod_SOURCES): Removed.
320 (handler_mod_CFLAGS): Likewise.
321 (handler_mod_LDFLAGS): Likewise.
322 (normal_mod_SOURCES): Remove normal/handler.c.
323 Add script/main.c, script/script.c, script/execute.c,
324 script/function.c, script/lexer.c, grub_script.tab.c
325 and grub_script.yy.c.
326 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
327 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
328 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
329 (grub_setup_SOURCES): Remove kern/parser.c.
330 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
331 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
332 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
333 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
334 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
335 (grub_setup_SOURCES): Remove kern/parser.c.
336 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
337 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
338 * include/grub/command.h (grub_command_iterate): Removed.
339 (FOR_COMMANDS): New macro.
340 * include/grub/dl.h (grub_dl): New member next.
341 (grub_dl_iterate): Removed.
342 (grub_dl_head): New variable declaration.
343 (FOR_DL_MODULES): New macro.
344 * include/grub/fs.h: Include list.h.
345 (grub_fs): Make next first element.
346 (grub_fs_list): New variable declaration.
347 (grub_fs_register): Make inline.
348 (grub_fs_unregister): Likewise.
349 (grub_fs_iterate): Removed.
350 (FOR_FILESYSTEMS): New macro.
351 * include/grub/handler.h: Removed.
352 * include/grub/list.h (grub_list_hook_t): Removed.
353 (grub_list_test_t): Likewise.
354 (grub_list_pop): Likewise.
355 (grub_list_iterate): Likewise.
356 (grub_list_insert): Likewise.
357 (FOR_LIST_ELEMENTS): New macro.
358 * include/grub/parser.h (grub_parser_class): Removed.
359 (grub_parser_register): Likewise.
360 (grub_parser_unregister): Likewise.
361 (grub_parser_get_current): Likewise.
362 (grub_parser_set_current): Likewise.
363 (grub_register_rescue_parser): Likewise.
364 (grub_rescue_parse_line): New function.
365 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
366 * include/grub/script_sh.h (grub_script_function_list): New variable
367 declaration.
368 (FOR_SCRIPT_FUNCTIONS): New macro.
369 (grub_script_function_iterate): Removed.
370 (grub_normal_parse_line): New prototype.
371 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
372 (FOR_DISABLED_TERM_INPUTS): Likewise.
373 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
374 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
375 * include/grub/video.h (grub_video_adapter): Move 'next' to first
376 element.
377 (grub_video_register): Inline.
378 (grub_video_unregister): Likewise.
379 (grub_video_adapter_list): New variable declaration.
380 (grub_video_iterate): Removed.
381 (FOR_VIDEO_ADAPTERS): New macro.
382 * kern/dl.c (grub_dl_list): Removed. All users updated.
383 (grub_dl_iterate): Removed.
384 * kern/fs.c (grub_fs_list): Make global.
385 (grub_fs_register): Removed.
386 (grub_fs_unregister): Likewise.
387 (grub_fs_iterate): Likewise.
388 * kern/handler.c: Removed.
389 * kern/list.c (grub_list_pop): Removed.
390 (grub_list_iterate): Likewise.
391 (grub_list_insert): Likewise.
392 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
393 (grub_prio_list_insert): Don't use grub_list_insert.
394 * kern/main.c (grub_register_rescue_parser): Don't call
395 grub_register_rescue_parser.
396 * kern/parser.c (grub_parser_class): Removed.
397 (grub_parser_execute): Use grub_rescue_parse_line.
398 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
399 (grub_rescue_parser): Removed.
400 (grub_register_rescue_parser): Likewise.
401 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
402 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
403 (grub_auth_check_authentication): Likewise.
404 * normal/completion.c (iterate_command): Removed.
405 (grub_normal_do_completion): Use FOR_COMMANDS.
406 * normal/handler.c: Removed.
407 * normal/main.c (read_config_file): Remove parser changing.
408 (grub_normal_execute): Don't call read_handler_list.
409 (grub_normal_read_line_real): Statically allocate prompt.
410 (grub_cmdline_run): Use grub_normal_parse_line.
411 (GRUB_MOD_FINI): Don't call free_handler_list.
412 * normal/menu_entry.c (run): Likewise.
413 * script/function.c (grub_script_function_list): Make global.
414 (grub_script_function_iterate): Removed.
415 * script/main.c (grub_normal_parse_line): Make global.
416 (grub_sh_parser): Removed.
417 (GRUB_MOD_INIT): Likewise.
418 (GRUB_MOD_FINI): Likewise.
419 * tests/lib/functional_test.c (grub_functional_test): Use
420 FOR_LIST_ELEMENTS.
421 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
422 (grub_test_run): Use FOR_LIST_ELEMENTS.
423 * tests/lib/unit_test.c (main): Likewise.
424 * util/deviceiter.c (grub_util_iterate_devices): Don't use
425 grub_list_pop.
426 * util/grub-fstest.c (grub_term_input_class): Removed.
427 (grub_term_output_class): Likewise.
428 * util/grub-probe.c: Likewise.
429 * util/i386/pc/grub-setup.c: Likewise.
430 * util/sparc64/ieee1275/grub-setup.c: Likewise.
431 * util/grub-script-check.c (main): Don't call grub_init_all and
432 grub_fini_all.
433 * video/video.c (grub_video_adapter_list): Make global.
434 (grub_video_register): Removed.
435 (grub_video_unregister): Likewise.
436 (grub_video_iterate): Likewise.
437
438 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
439
440 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
441 reported by Henrique Ferreiro.
442
443 2010-06-09 Robert Millan <rmh@gnu.org>
444
445 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
446 ones, when both are available.
447
448 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
449
450 Make --version uniform and avoid hard-coded program name.
451
452 * util/grub-mkimage.c (main): Use `program_name' instead of
453 hard-coded string.
454 * util/i386/pc/grub-setup.c (main): Likewise.
455 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
456 * util/grub-install.in: Save the basename of $0 in $self, and use the
457 latter in informational messages. Use the same format for --version
458 as the binary programs.
459 * util/grub-mkconfig.in: Likewise.
460 * util/grub-mkrescue.in: Likewise.
461 * util/grub-reboot.in: Likewise.
462 * util/grub-set-default.in: Likewise.
463 * util/i386/efi/grub-install.in: Likewise.
464 * util/ieee1275/grub-install.in: Likewise.
465 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
466
467 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
468
469 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
470 embedding area. Use <= instead of == when checking for non-emptiness.
471
472 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
473
474 * configure.ac: Add `.' to the directories searched for unifont.
475
476 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
477
478 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
479 grub_script.yy.h.
480
481 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
482
483 * docs/grub.texi (History): Expand to cover GRUB 2.
484 (Serial terminal): Refer to `terminal_input' and `terminal_output'
485 commands, not `terminal'.
486 (serial): Likewise.
487 (terminal_input): New section.
488 (terminal_output): New section.
489 (uppermem): New section (stub).
490 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
491
492 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
493
494 * docs/grub.texi (Security): Menu entries are unrestricted by
495 default, not restricted to superusers as I had previously thought.
496 Reword to account for this.
497
498 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
499
500 * kern/emu/misc.c (device_mapper_null_log): New function.
501 (grub_device_mapper_supported): New function.
502 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
503 prototype.
504 * kern/emu/hostdisk.c (find_partition_start): Check whether
505 device-mapper is supported before trying to use it.
506 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
507
508 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
509
510 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
511 (File name syntax): Likewise.
512 (help): --all is no longer supported in GRUB 2. Be more precise
513 about pattern matching.
514
515 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
516
517 * normal/completion.c (grub_normal_do_completion): When completing
518 arguments to "set" and the current word contains an equals sign,
519 skip to after the equals sign before starting completion.
520
521 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
522
523 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
524
525 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
526
527 * docs/grub.texi (Network): New section.
528 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
529 `(nd)' as in GRUB Legacy.
530 (pxe_unload): New section.
531
532 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
533
534 * docs/grub.texi (Troubleshooting): `echo' is not usually available
535 in the rescue shell, so recommend using `set' instead. Thanks,
536 Jordan Uggla.
537
538 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
539
540 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
541 (password): New section.
542 (password_pbkdf2): New section.
543 (search): New section.
544 (Security): New section.
545 (Troubleshooting): New section, currently very incomplete.
546 (Invoking grub-mkpasswd-pbkdf2): New section.
547 (Internals): New section, currently very incomplete.
548
549 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
550
551 * util/grub.d/00_header.in: Add some more quoting (of
552 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
553 work again.
554 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
555
556 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
557
558 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
559 to `count', fixing variable shadowing that broke the -c option.
560
561 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
562
563 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
564 in case they contain spaces.
565
566 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
567
568 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
569 "part_" to partmap module names, in line with grub-install.
570 Reported by: Jindřich Makovička (Debian bug #584426).
571
572 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
573
574 * util/grub-mkimage.c: Make target-related error messages slightly
575 more helpful; -O talks about "format". Explicitly point to the use
576 of -O if no target is specified.
577 Reported by: Didier Raboud (Debian bug #584415).
578
579 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
580
581 * INSTALL: Document several build requirements for optional features
582 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
583
584 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
585
586 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
587 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
588 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
589
590 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
591
592 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
593 Thanks to Jordan Uggla for spotting this.
594
595 2010-06-02 Aleš Nesrsta <starous@volny.cz>
596
597 Finally make USB usable.
598
599 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
600 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
601 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
602 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
603 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
604 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
605 (GRUB_OHCI_FSMPS): Likewise.
606 (GRUB_OHCI_PERIODIC_START): Likewise.
607 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
608 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
609 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
610 (GRUB_OHCI_SET_PORT_RESET): Likewise.
611 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
612 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
613 (grub_ohci_transaction): Likewise.
614 (grub_ohci_transfer): Improve condition detection algorithms.
615 Handle toggle property. Program the transactions correctly.
616 Improve error handling. Various important fixups.
617 (grub_ohci_portstatus): Put register writes in right order.
618 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
619 (grub_uhci_transfer): Don't show "failed" message on success.
620 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
621 array.
622 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
623 determine its size.
624 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
625 before initialization is completed. Use IN direction for empty
626 transfers. Use last_trans and compute toggle.
627 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
628 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
629 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
630 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
631 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
632 (grub_usb_device): Increase toggle to 256.
633 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
634 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
635 GRUB_USBMS_SUBCLASS_SFF8070.
636 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
637 (grub_scsi_inquiry): New member page and alloc_length.
638 (grub_scsi_request_sense): New structure.
639 (grub_scsi_request_sense_data): Likewise.
640 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
641 control.
642 * disk/scsi.c (grub_scsi_request_sense): New function.
643 (grub_scsi_test_unit_ready): Likewise.
644 (grub_scsi_inquiry): Fill new fields.
645 (grub_scsi_read_capacity): Likewise.
646 (grub_scsi_read10): Add request sense at the end.
647 (grub_scsi_read12): Likewise.
648 (grub_scsi_write10): Likewise.
649 (grub_scsi_write12): Likewise.
650 (grub_scsi_open): Add Test Unit Ready.
651 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
652 Support additional subclasses. Con't clear halt yet. Activate the
653 proper config. Calculate LUNs correctly.
654 (grub_usbms_transfer): Various important fixups.
655
656 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
659 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
660 (grub_ohci_fini_hw): New function.
661 (grub_ohci_restore_hw): Likewise.
662 (GRUB_MOD_INIT(ohci)): Register preboot hook.
663 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
664 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
665
666 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
667
668 Dedicated DMA allocations.
669
670 * bus/pci.c (grub_memalign_dma32): New function
671 (grub_dma_free): Likewise.
672 (grub_dma_get_virt): Likewise.
673 (grub_dma_get_phys): Likewise.
674 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
675 (grub_ohci_pci_iter): Use dma32_alloc.
676 (grub_ohci_transfer): Likewise.
677 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
678 (grub_usb_bulk_readwrite): Likewise.
679 * include/grub/pci.h: Add declarations.
680
681 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
682
683 CS5536 support.
684
685 * bus/cs5536.c: New file.
686 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
687 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
688 (cs5536_mod_SOURCES): New variable.
689 (cs5536_mod_CFLAGS): Likewise.
690 (cs5536_mod_LDFLAGS): Likewise.
691 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
692 machine/pci.h.
693 (kernel_img_SOURCES): Add bus/cs5536.c.
694 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
695 usb_keyboard.mod.
696 (usb_mod_SOURCES): New variable.
697 (usb_mod_CFLAGS): New variable.
698 (usb_mod_LDFLAGS): New variable.
699 (usbtest_mod_SOURCES): New variable.
700 (usbtest_mod_CFLAGS): New variable.
701 (usbtest_mod_LDFLAGS): New variable.
702 (ohci_mod_SOURCES): New variable.
703 (ohci_mod_CFLAGS): New variable.
704 (ohci_mod_LDFLAGS): New variable.
705 (usbms_mod_SOURCES): New variable.
706 (usbms_mod_CFLAGS): New variable.
707 (usbms_mod_LDFLAGS): New variable.
708 (usb_keyboard_mod_SOURCES): New variable.
709 (usb_keyboard_mod_CFLAGS): New variable.
710 (usb_keyboard_mod_LDFLAGS): New variable.
711 * include/grub/smbus.h: New file.
712 * include/grub/cs5536.h: New file.
713
714 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
715
716 * util/grub.d/00_header.in: Add safety check to make sure that
717 ${locale_dir} exists before trying to probe it.
718
719 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
720
721 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
722 per the GNU Coding Standards; this is now too obscure to be worth
723 documenting.
724 (QNX): Likewise.
725 (chainloader): Remove cross-reference to `SCO UnixWare'.
726
727 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
728
729 * docs/grub.texi (Chain-loading): New section.
730 (DOS/Windows): New section, borrowed from GRUB Legacy with details
731 adjusted for GRUB 2.
732 (SCO UnixWare): Likewise.
733 (QNX): Likewise.
734 (chainloader): Add reference to `Block list syntax'.
735 (drivemap): New section.
736 (parttool): New section.
737
738 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
739
740 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
741 the grub shell'.
742 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
743 (Installing GRUB using grub-install): Remove reference to the grub
744 shell; mention `grub-mkimage' and `grub-setup' instead.
745 (Invoking grub-install): Likewise.
746 (Interface): Add reference to `Menu entry editor'.
747 (serial): Remove `--device' option.
748
749 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
750
751 * docs/grub.texi (Configuration): New section, documenting
752 configuration file generation using grub-mkconfig. I've left a slot
753 for documenting the full shell scripting format but have not yet
754 started on writing that up.
755 (Invoking grub-mkconfig): New section.
756
757 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
758
759 * docs/grub.texi (direntry): Remove grub-terminfo reference.
760 (GNU GRUB manual): Likewise.
761 (General commands): Update description of `terminfo' for GRUB 2.
762
763 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
764
765 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
766 (GRUB_MOD_INIT): Fix capitalisation.
767 * docs/grub.texi (Command-line and menu entry commands): Document
768 gettext and gptsync commands.
769
770 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
771
772 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
773 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
774
775 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
776
777 Add btrfs probing support, currently only in the single-device case.
778
779 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
780 function.
781 (grub_guess_root_device): Call find_root_device_from_mountinfo
782 before looking in /dev.
783
784 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
787 GRUB_DISK_SIZE_UNKNOWN.
788 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
789
790 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
791
792 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
793 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
794 corrupted or not synced properly.
795
796 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
799 Reported by: Seth Goldberg.
800
801 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
802
803 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
804 addition of dest.
805 Reported by: Seth Goldberg.
806
807 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
810 Reported by: Seth Goldberg.
811
812 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
815 64-bit address as signed on MIPS.
816
817 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
818
819 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
820 to the empty string.
821
822 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
823
824 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
825
826 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
827 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
828 * kern/misc.c (__enable_execute_stack): Disable on
829 GRUB_MACHINE_EMU.
830
831 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
832
833 Make grub-probe work with symbolic links under /dev/mapper as well
834 as with real block devices. The Linux world seems to be (at best)
835 in transition here, and GRUB shouldn't get caught in the middle.
836
837 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
838 /dev/mapper.
839
840 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
841
842 * util/grub-script-check.c (main): Ensure defined behaviour on empty
843 input files (in which case exit zero).
844
845 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
846
847 * kern/emu/misc.c (canonicalize_file_name): realpath can still
848 return NULL for various reasons even if it has a maximum-length
849 buffer: for example, there might be a symlink loop, or the path
850 might exceed PATH_MAX. If this happens, return NULL.
851
852 2010-05-27 Robert Millan <rmh@gnu.org>
853
854 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
855 partmap module to handle cross-partmap setups.
856 Reported by Orestes Mas. Gràcies!
857
858 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
859
860 * util/grub-mkrescue.in: Initialise override_dir rather than
861 assuming that it's unset or empty in the environment.
862
863 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
864
865 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
866 variable index into p_index to suppress a warning with -Wshadow.
867
868 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
869
870 * INSTALL: Added flex >= 2.5.35 requirement.
871
872 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
875
876 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
877
878 cmostest support.
879
880 * commands/i386/cmostest.c: New file.
881 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
882 (cmostest_mod_SOURCES): New variable.
883 (cmostest_mod_CFLAGS): Likewise.
884 (cmostest_mod_LDFLAGS): Likewise.
885 * conf/i386-pc.rmk: Likewise.
886 * docs/grub.texi (Vendor power-on keys): New section.
887 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
888 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
889 and GRUB_BUTTON_CMOS_ADDRESS.
890 * util/grub.d/00_header.in: Handle powering-on by separate button.
891
892 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
895 Removed drawing_scrollbar argument. All users updated
896 Fixes #29792.
897 Reported by Jo Shields
898
899 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
902 buffer since gfxterm handles double repaint.
903
904 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
905
906 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
907 * term/gfxterm.c (real_scroll): Likewise.
908
909 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
912 before calling BIOS.
913
914 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * include/grub/i18n.h: Always enable grub_gettext.
917
918 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
921 partition naming style.
922
923 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
924
925 * util/grub-mkconfig.in: Fix handling of -o so that it works when
926 not the first option.
927
928 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
929
930 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
931
932 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
933
934 * util/misc.c: Move inclusion of <limits.h> to ...
935 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
936
937 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
938
939 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
940 Fix merge error in NetBSD code.
941 (find_partition_start) [__NetBSD__]: Likewise.
942
943 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
944
945 Fix grub-mkrescue usage unit testing.
946
947 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
948
949 2010-05-18 Christian Franke <franke@computer.org>
950
951 * util/grub.d/10_windows.in: Use path names instead of
952 drive letters to prevent warning from Cygwin 1.7.
953 Add drivemap command to menuentry if needed.
954
955 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
956
957 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
958 gnumach and gnumach.gz.
959
960 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * include/grub/i18n.h (gettext): Inline instead of using #define.
963 (grub_gettext): Likewise.
964 (_): Likewise.
965
966 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
967
968 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
969 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
970 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
971 (main): Add a slash after pkglibdirroot.
972
973 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * util/grub-install.in: Add missing "in" keyword.
976
977 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
980 Reported by: Seth Goldberg.
981
982 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
985
986 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
987
988 * configure.ac: Check for Linux device-mapper support.
989
990 * util/hostdisk.c (device_is_mapped): New function.
991 (find_partition_start): New function, partly broken out from
992 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
993 device-mapper support added.
994 (linux_find_partition): Use find_partition_start.
995 (convert_system_partition_to_system_disk): Add `st' argument.
996 Support Linux /dev/mapper/* devices if device-mapper support is
997 available; only DM-RAID devices are understood at present.
998 (find_system_device): Add `st' argument. Pass it to
999 convert_system_partition_to_system_disk.
1000 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1001 find_system_device and convert_system_partition_to_system_disk. Use
1002 find_partition_start.
1003
1004 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1005 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1006 * util/deviceiter.c [__linux__]: Define MINOR.
1007 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1008 * util/mkdevicemap.c (grub_putchar): New function.
1009 (grub_getkey): New function.
1010 (grub_refresh): New function.
1011 (main): Set debug=all if -v -v is used.
1012
1013 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1014
1015 Fix build with non-GNU libcs.
1016
1017 * util/misc.c (canonicalize_file_name): Move to ...
1018 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1019 grub_make_system_path_relative_to_its_root.
1020
1021 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1022
1023 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1024 we handle finding grub-mkimage. Default to finding grub-mkimage in
1025 ${bindir} with program_transform_name applied, and provide a
1026 --grub-mkimage option to override this.
1027
1028 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 Remove grub-mkisofs.
1031
1032 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1033 (grub_mkisofs_SOURCES): Removed.
1034 (grub_mkisofs_CFLAGS): Removed.
1035 * util/mkisofs/defaults.h: Removed.
1036 * util/mkisofs/eltorito.c: Likewise.
1037 * util/mkisofs/exclude.h: Likewise.
1038 * util/mkisofs/hash.c: Likewise.
1039 * util/mkisofs/include/: Likewise.
1040 * util/mkisofs/include/fctldefs.h: Likewise.
1041 * util/mkisofs/include/mconfig.h: Likewise.
1042 * util/mkisofs/include/prototyp.h: Likewise.
1043 * util/mkisofs/include/statdefs.h: Likewise.
1044 * util/mkisofs/iso9660.h: Likewise.
1045 * util/mkisofs/joliet.c: Likewise.
1046 * util/mkisofs/match.c: Likewise.
1047 * util/mkisofs/match.h: Likewise.
1048 * util/mkisofs/mkisofs.c: Likewise.
1049 * util/mkisofs/mkisofs.h: Likewise.
1050 * util/mkisofs/msdos_partition.h: Likewise.
1051 * util/mkisofs/multi.c: Likewise.
1052 * util/mkisofs/name.c: Likewise.
1053 * util/mkisofs/rock.c: Likewise.
1054 * util/mkisofs/tree.c: Likewise.
1055 * util/mkisofs/write.c: Likewise.
1056
1057 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 Unify grub-mkimage accross platforms.
1060
1061 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1062 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1063 (grub_mkelfimage_SOURCES): Removed.
1064 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1065 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1066 (bin_UTILITIES): Add grub-mkimage.
1067 (grub_mkimage_SOURCES): New variable.
1068 (kernel_img_HEADERS): Remove machine/kernel.h.
1069 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1070 (pkglib_PROGRAMS): Add kernel.img.
1071 (kernel_img_HEADERS): Add machine/kernel.h.
1072 (kernel_img_FORMAT): Removed.
1073 (bin_UTILITIES): Remove grub-mkimage.
1074 (grub_mkimage_SOURCES): Removed.
1075 (grub_mkimage_CFLAGS): Likewise.
1076 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1077 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1078 (pkglib_PROGRAMS): Add kernel.img.
1079 (bin_UTILITIES): Remove grub-mkimage.
1080 (grub_mkimage_SOURCES): Removed.
1081 (grub_mkimage_CFLAGS): Likewise.
1082 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1083 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1084 (pkglib_PROGRAMS): Add kernel.img.
1085 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1086 (pkglib_PROGRAMS): Add kernel.img.
1087 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1088 (grub_mkimage_SOURCES): Removed.
1089 (grub_mkimage_CFLAGS): Likewise.
1090 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1091 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1092 (pkglib_PROGRAMS): Add kernel.img.
1093 (bin_UTILITIES): Remove grub-mkimage.
1094 (grub_mkimage_SOURCES): Removed.
1095 (grub_mkimage_CFLAGS): Likewise.
1096 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1097 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1098 (grub_mkimage_SOURCES): Removed.
1099 (grub_mkimage_CFLAGS): Likewise.
1100 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1101 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1102 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1103 (grub_pe32_optional_header): ... this.
1104 (grub_pe64_optional_header): ... and this. All users updated.
1105 (GRUB_PE32_PE32_MAGIC): Split into ..
1106 (GRUB_PE32_PE32_MAGIC): .. this.
1107 (GRUB_PE32_PE64_MAGIC): .. and this.
1108 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1109 * include/grub/elf.h (PT_GNU_STACK): New definition.
1110 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1111 * include/grub/i386/efi/kernel.h: Likewise.
1112 * include/grub/i386/kernel.h: Likewise.
1113 * include/grub/i386/pc/kernel.h: Likewise.
1114 * include/grub/i386/qemu/boot.h: Likewise.
1115 * include/grub/mips/kernel.h: Likewise.
1116 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1117 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1118 * include/grub/powerpc/kernel.h: Likewise.
1119 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1120 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1121 * include/grub/sparc64/kernel.h: Likewise.
1122 * include/grub/x86_64/efi/kernel.h: Likewise.
1123 * include/grub/x86_64/kernel.h: Likewise.
1124 * include/grub/offsets.h: New file.
1125 * include/grub/kernel.h (grub_module_info): Split into ...
1126 (grub_module_info32): ... this.
1127 (grub_module_info64): ... and this.
1128 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1129 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1130 (grub_boot_blocklist): Moved from here ...
1131 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1132 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1133 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1134 * include/grub/types.h (grub_target_to_host16): Removed.
1135 (grub_target_to_host32): Likewise.
1136 (grub_target_to_host64): Likewise.
1137 (grub_host_to_target16): Likewise.
1138 (grub_host_to_target32): Likewise.
1139 (grub_host_to_target64): Likewise.
1140 (grub_host_to_target_addr): Likewise.
1141
1142 Support grub-mkrescue for efi, coreboot and qemu.
1143
1144 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1145 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1146 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1147 * util/grub-mkrawimage.c: Moved from here ...
1148 * util/grub-mkimage.c: ... here. All users updated.
1149 (ALIGN_ADDR): Use image_target.
1150 (TARGET_NO_FIELD): New const.
1151 (image_target_desc): New type.
1152 (image_targets): New array.
1153 (grub_target_to_host64): Use image_target.
1154 (grub_target_to_host32): Likewise.
1155 (grub_target_to_host16): Likewise.
1156 (grub_host_to_target64): Likewise.
1157 (grub_host_to_target32): Likewise.
1158 (grub_host_to_target16): Likewise.
1159 (grub_host_to_target_addr): Likewise.
1160 (generate_image): Handle multiimage.
1161 (main): Require -O parameter. All users updated.
1162 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1163 util/efi/grub-mkimage.c
1164 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1165 New option --rom-directory.
1166 Use xorriso.
1167 * util/i386/efi/grub-mkimage.c: Removed.
1168 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1169 (grub_target_to_host32): Likewise.
1170 (grub_target_to_host64): Likewise.
1171 (grub_host_to_target16): Likewise.
1172 (grub_host_to_target32): Likewise.
1173 (grub_host_to_target64): Likewise.
1174 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1175 (grub_target_to_host32): Likewise.
1176 (grub_target_to_host64): Likewise.
1177 (grub_host_to_target16): Likewise.
1178 (grub_host_to_target32): Likewise.
1179 (grub_host_to_target64): Likewise.
1180
1181 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1182
1183 Source tree is reorganized for emu build.
1184
1185 * include/grub/util/console.h: Move from here...
1186 * include/grub/emu/console.h: ...to here.
1187 * include/grub/util/getroot.h: Move from here...
1188 * include/grub/emu/getroot.h: ...to here.
1189 * include/grub/util/hostdisk.h: Move from here...
1190 * include/grub/emu/hostdisk.h: ...to here.
1191 * util/console.c: Move from here...
1192 * kern/emu/console.c: ...to here.
1193 * util/getroot.c: Move from here...
1194 * kern/emu/getroot.c: ...to here.
1195 * util/grub-emu.c: Move from here...
1196 * kern/emu/main.c: ...to here.
1197 * util/hostdisk.c: Move from here...
1198 * kern/emu/hostdisk.c: ...to here.
1199 * util/hostfs.c: Move from here...
1200 * kern/emu/hostfs.c: ...to here.
1201 * util/mm.c: Move from here...
1202 * kern/emu/mm.c: ...to here.
1203 * util/pci.c: Move from here...
1204 * bus/emu/pci.c: ...to here.
1205 * util/sdl.c: Move from here...
1206 * video/emu/sdl.c: ...to here.
1207 * util/time.c: Move from here...
1208 * kern/emu/time.c: ...to here.
1209 * util/usb.c: Move from here...
1210 * bus/usb/emu/usb.c: ...to here.
1211
1212 * include/grub/emu/misc.h: New header for grub-emu functions.
1213 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1214
1215 * conf/any-emu.rmk: Rule updates for above renames.
1216 * conf/common.rmk: Likewise.
1217 * conf/i386-pc.rmk: Likewise.
1218 * conf/i386-qemu.rmk: Likewise.
1219 * conf/mips.rmk: Likewise.
1220 * conf/sparc64-ieee1275.rmk: Likewise.
1221 * conf/x86-efi.rmk: Likewise.
1222
1223 * disk/lvm.h: #include updates for above renames.
1224 * util/grub-mkrelpath.c: Likewise.
1225 * util/grub-probe.c: Likewise.
1226 * util/i386/pc/grub-setup.c: Likewise.
1227 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1228 * kern/emu/console.c: Likewise.
1229 * kern/emu/getroot.c: Likewise.
1230 * kern/emu/hostdisk.c: Likewise.
1231 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1232
1233 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1234 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1235 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1236 * util/misc.c: Remove grub-emu functions.
1237
1238 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 Fix gfxmenu crash.
1241 Reported by: Thorsten Grützmacher.
1242
1243 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1244 timeout hook.
1245 (circprog_set_property): Register and unregister timeout hook.
1246 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1247 (label_destroy): Free template. and unregister hook.
1248 (label_set_state): New function.
1249 (label_set_property): Handle templates and hooks.
1250 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1251 timeout hook.
1252 (progress_bar_set_property): Register and unregister timeout hook.
1253 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1254 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1255 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1256 (update_timeout_visit): Removed.
1257 (update_timeouts): New function.
1258 (redraw_timeouts): Likewise.
1259 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1260 (grub_gfxmenu_clear_timeout): Likewise.
1261 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1262 (grub_gfxmenu_timeout_notify): Likewise.
1263 (grub_gfxmenu_timeout_notifications): New external variable.
1264 (grub_gfxmenu_timeout_register): New function.
1265 (grub_gfxmenu_timeout_unregister): Likewise.
1266
1267 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 Transform (broken) vga terminal into (working) vga video driver.
1270
1271 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1272 video/i386/pc/vga.c.
1273 * include/grub/video.h (grub_video_driver_id):
1274 Add GRUB_VIDEO_DRIVER_VGA.
1275 * term/i386/pc/vga.c: Renamed to ...
1276 * video/i386/pc/vga.c: ...this
1277 (DEBUG_VGA): Removed.
1278 (CHAR_WIDTH): Likewise.
1279 (CHAR_HEIGHT): Likewise.
1280 (TEXT_WIDTH): Likewise.
1281 (TEXT_HEIGHT): Likewise.
1282 (DEFAULT_FG_COLOR): Likewise.
1283 (DEFAULT_BG_COLOR): Likewise.
1284 (colored_char): Likewise.
1285 (xpos): Likewise.
1286 (ypos): Likewise.
1287 (cursor_state): Likewise.
1288 (fg_color): Likewise.
1289 (bg_color): Likewise.
1290 (text_buf): Likewise.
1291 (page): Likewise.
1292 (font): Likewise.
1293 (framebuffer): New variable.
1294 (set_read_map): Disabled.
1295 (setup): New variable.
1296 (is_target): Likewise.
1297 (grub_vga_mod_init): Likewise.
1298 (grub_vga_mod_fini): Likewise.
1299 (check_vga_mem): Likewise.
1300 (write_char): Likewise.
1301 (write_cursor): Likewise.
1302 (scroll_up): Likewise.
1303 (grub_vga_putchar): Likewise.
1304 (grub_vga_getcharwidth): Likewise.
1305 (grub_vga_getwh): Likewise.
1306 (grub_vga_getxy): Likewise.
1307 (grub_vga_gotoxy): Likewise.
1308 (grub_vga_cls): Likewise.
1309 (grub_vga_setcolorstate): Likewise.
1310 (grub_vga_setcursor): Likewise.
1311 (grub_video_vga_init): New function.
1312 (grub_video_vga_setup): Likewise.
1313 (grub_video_vga_fini): Likewise.
1314 (update_target): Likewise.
1315 (grub_video_vga_blit_bitmap): Likewise.
1316 (grub_video_vga_blit_render_target): Likewise.
1317 (grub_video_vga_set_active_render_target): Likewise.
1318 (grub_video_vga_get_active_render_target): Likewise.
1319 (grub_video_vga_swap_buffers): Likewise.
1320 (grub_video_vga_set_palette): Likewise.
1321 (grub_video_vga_get_info_and_fini): Likewise.
1322 (grub_vga_term): Removed.
1323 (grub_video_vga_adapter): New variable.
1324 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1325 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1326
1327 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * video/readers/jpeg.c: Indented.
1330
1331 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 Various jpeg cleanups.
1334
1335 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1336 (grub_jpeg_decode_quan_table): Use sizeof.
1337 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1338
1339 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1340
1341 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1342 tables. Ignore non-last ac bit.
1343 (grub_jpeg_decode_quan_table): Likewise.
1344
1345 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1348 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1349 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1350 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1351 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1352 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1353
1354 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1357 error.
1358
1359 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1362
1363 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1366 condition.
1367
1368 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1371 part.
1372
1373 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1376 pointers.
1377
1378 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1381
1382 2010-05-01 Christian Franke <franke@computer.org>
1383
1384 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1385 Remove broken Cygwin path conversion.
1386 * util/misc.c: [__CYGWIN__] Add include and define.
1387 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1388 for Cygwin 1.7.
1389 (make_system_path_relative_to_its_root): Simplify loop, replace early
1390 return by break.
1391 [__CYGWIN__] Add conversion to win32 path.
1392 Include "/" case in trailing slash removal.
1393
1394 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1397 Reported by: Seth Goldberg
1398
1399 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 * commands/help.c (grub_cmd_help): Fix a typo.
1402 Reported by: Seth Goldberg
1403
1404 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1407 name and add N_.
1408 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1409 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1410 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1411 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1412 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1413 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1414 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1415 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1416 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1417 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1418 * normal/context.c (GRUB_MOD_INIT): Likewise.
1419 * normal/main.c (GRUB_MOD_INIT): Likewise.
1420 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1421 * term/serial.c (GRUB_MOD_INIT): Likewise.
1422 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1423
1424 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1427 extra == 0.
1428
1429 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * commands/iorw.c: New file.
1432 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1433 (iorw_mod_SOURCES): New variable.
1434 (iorw_mod_CFLAGS): Likewise.
1435 (iorw_mod_LDFLAGS): Likewise.
1436
1437 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 Hotkey support
1440
1441 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1442 * normal/main.c (hotkey_aliases): New variable.
1443 (grub_normal_add_menu_entry): Parse "--hotkey".
1444 * normal/menu_text.c (run_menu): Handle hotkeys.
1445
1446 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * kern/i386/coreboot/init.c (grub_machine_init): Call
1449 grub_machine_mmap_init on qemu.
1450
1451 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 * boot/i386/qemu/boot.S: Add a missing .code16.
1454
1455 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 Use LBIO on coreboot.
1458
1459 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1460 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1461 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1462 New declaration.
1463 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1464 grub_machine_mmap_init on coreboot.
1465 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1466 GRUB_LINUXBIOS_MEMBER_LINK.
1467 (grub_machine_mmap_iterate): Fix declaration.
1468 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1469
1470 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 Split coreboot and multiboot ports.
1473
1474 * conf/i386-multiboot.rmk: New file.
1475 * configure.ac: Add multiboot port.
1476 * include/grub/i386/multiboot/boot.h: New file.
1477 * include/grub/i386/multiboot/console.h: Likewise.
1478 * include/grub/i386/multiboot/init.h: Likewise.
1479 * include/grub/i386/multiboot/kernel.h: Likewise.
1480 * include/grub/i386/multiboot/loader.h: Likewise.
1481 * include/grub/i386/multiboot/memory.h: Likewise.
1482 * include/grub/i386/multiboot/serial.h: Likewise.
1483 * include/grub/i386/multiboot/time.h: Likewise.
1484 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1485 * loader/multiboot.c: Likewise.
1486 * loader/multiboot_mbi2.c: Likewise.
1487 * util/grub-mkrescue.in: Generate multiboot rescue.
1488
1489 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1492
1493 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 Merge handling of input and output terminals. Fix a hang.
1496
1497 * commands/terminal.c (abstract_terminal): New struct.
1498 (handle_command): New function. Based on grub_cmd_terminal_input.
1499 (grub_cmd_terminal_input): Use handle_command.
1500 (grub_cmd_terminal_output): Use handle_command.
1501
1502 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1503
1504 Fix comment handling.
1505
1506 * tests/grub_script_comments.in: New testcase.
1507 * conf/tests.rmk: Rules for new testcase.
1508 * script/yylex.l: Updated flex rules.
1509
1510 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1511
1512 * docs/grub.texi (play): Document that zero pitches produce rests.
1513 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1514 if argc is 1.
1515
1516 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1519 autogen issues.
1520
1521 2010-04-26 Christian Franke <franke@computer.org>
1522
1523 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1524 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1525 (grub_get_prefix): Remove function.
1526 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1527 make_system_path_relative_to_its_root ().
1528 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1529
1530 2010-04-24 Christian Franke <franke@computer.org>
1531
1532 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1533 (kernel_img_LDFLAGS): Remove -static-libgcc.
1534
1535 2010-04-24 Christian Franke <franke@computer.org>
1536
1537 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1538 and CHECK_END_SYMBOL if grub-emu is built.
1539 Unset TARGET_OBJ2ELF if grub-emu is built
1540 without module support.
1541
1542 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1543
1544 Nilfs2 support.
1545
1546 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1547 (grub_fstest_SOURCES): Likewise.
1548 (pkglib_MODULES): Add nilfs2.mod.
1549 (nilfs2_mod_SOURCES): New variable.
1550 (nilfs2_mod_CFLAGS): Likewise.
1551 (nilfs2_mod_LDFLAGS): Likewise.
1552 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1553 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1554 * fs/nilfs2.c: New file.
1555
1556 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1559 is not supported.
1560
1561 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1562
1563 Add grub-mkconfig support for NetBSD.
1564
1565 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1566 * util/grub-mkconfig.in: export new NetBSD specific variables.
1567 * po/POTFILES-shell: added 10_netbsd.in.
1568 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1569
1570 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1571
1572 Fix emu build with grub-emu-pci and grub-emu-modules.
1573
1574 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1575 functions.
1576 * include/grub/libpciaccess.h: New file.
1577 * conf/any-emu.rmk: Update kernel headers for emu build.
1578
1579 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1582
1583 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1586
1587 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1590 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1591 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1592 util/ieee1275/ofpath.c.
1593 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1594 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1595 * include/grub/sparc64/ieee1275/boot.h
1596 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1597 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1598 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1599 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1600 const char *.
1601 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1602 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1603 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1604 install.
1605
1606 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1607
1608 * util/grub-mkconfig.in: Corrected two == equality tests.
1609 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1610 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1611 expect a number appended to it.
1612 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1613 expects a number appended to it.
1614
1615 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1618
1619 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * util/hostdisk.c (make_device_name): Change to new partition naming.
1622
1623 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1626
1627 2010-04-17 Christian Franke <franke@computer.org>
1628
1629 * Makefile.in: Add missing localedir setting.
1630
1631 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1632
1633 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1634 mistake in r2156. Noticed by Anthony Fok.
1635
1636 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1637 @localedir@.
1638 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1639
1640 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1641
1642 Fix a spurious, uninitialized variable warning.
1643
1644 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1645 Initialize variable, shdr.
1646 (grub_freebsd_load_elfmodule): Likewise.
1647 (grub_freebsd_load_elf_meta): Likewise.
1648
1649 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1650
1651 Fix for escaped dollar in double quoted strings.
1652
1653 * script/yylex.l: Updated flex rules.
1654 * conf/tests.rmk: Rule for new testcase.
1655 * tests/grub_script_dollar.in: New testcase.
1656
1657 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1658 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1659
1660 Enclose all translated strings in grub.cfg in single quotes, and
1661 escape them appropriately (Ubuntu bug #552921).
1662
1663 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1664 * util/grub.d/10_hurd.in: Use it.
1665 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1666 * util/grub.d/10_linux.in (linux_entry): Likewise.
1667
1668 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 Fix cygwin compilation.
1671
1672 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1673 * include/grub/misc.h (__register_frame_info)
1674 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1675 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1676 * kern/misc.c (__register_frame_info)
1677 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1678 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1679
1680 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1683
1684 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 Unify libgcc processing.
1687
1688 * Makefile.in (kernel_img_LDFLAGS): New variable.
1689 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1690 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1691 overwriting.
1692 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1693 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1694 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1695 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1696 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1697 overwriting. Remove -lgcc and -static-libgcc
1698 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1699 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1700 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1701 (kernel_img_LDFLAGS): Append instead of overwriting.
1702 Remove -lgcc and -static-libgcc
1703 * conf/sparc64-ieee1275.rmk: Likewise.
1704 * include/grub/powerpc/libgcc.h: Move to ...
1705 * include/grub/libgcc.h: .. this.
1706 * include/grub/libgcc.h: Don't export most of the function on x86.
1707 (__bswapsi2): New export.
1708 (__bswapdi2): Likewise.
1709 * include/grub/mips/libgcc.h: Removed.
1710 * include/grub/sparc64/libgcc.h: Likewise.
1711
1712 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1715 disk_info_msg (conflicts with gettexting into languages with cases).
1716
1717 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1718
1719 Add grub-probe support for NetBSD.
1720
1721 * util/getroot.c (find_root_device): Convert block device to
1722 character device on NetBSD.
1723 * util/probe.c (probe): Require character device on NetBSD.
1724 * util/hostdisk.c: NetBSD specific headers.
1725 (configure_device_driver): new function to tune device driver
1726 parameters (currently only for NetBSD floppy driver).
1727 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1728 via disklabel ioctl).
1729 (open_device): call configure_device_driver on NetBSD.
1730 (convert_system_partition_to_system_disk): NetBSD specific code.
1731 (device_is_wholedisk): Likewise.
1732 (grub_util_biosdisk_get_grub_dev): Likewise.
1733 (make_device_name): Fixed a typo in bsd_part_str.
1734 * configure.ac: check for opendisk() and getrawpartition() on
1735 NetBSD and set LIBUTIL.
1736 * Makefile.in: add LIBUTIL to LIBS.
1737
1738 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1739
1740 Documentation fix.
1741
1742 * util/grub-script-check.c: Better help message.
1743
1744 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1745
1746 Fix FreeBSD build.
1747
1748 * configure.ac: Flex version check.
1749 * conf/common.rmk: Add -Wno-error to sh.mod.
1750 * script/yylex.l: Remove all #pragma.
1751
1752 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1755 prototype.
1756 Reported by: Seth Goldberg.
1757
1758 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1761 Rename "module" to "module2".
1762 Reported by: Seth Goldberg.
1763
1764 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1767 EXPORT_FUNC.
1768 Reported by: Seth Goldberg.
1769
1770 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * lib/posix_wrap/locale.h: Add missing file.
1773 Reported by: Seth Goldberg.
1774
1775 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 grub-emu module load support.
1778
1779 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1780 NO_DYNAMIC_MODULES switched to this.
1781 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1782 (CFLAGS): Likewise.
1783 * conf/any-emu.rmk: Generate symlist.
1784 (kernel_img_HEADERS): Add util/datetime.h.
1785 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1786 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1787 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1788 kern/$(target_cpu)/cache.S.
1789 * configure.ac (grub-emu-modules): New option.
1790 * genmk.rb: Handle multiple source lists.
1791 * include/grub/sdl.h: New file.
1792 * include/grub/libusb.h: Likewise.
1793 * util/grub-emu.c (main): Hanle (host) root.
1794 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1795 GRUB_ERR_UNKNOWN_DEVICE.
1796 * util/misc.c: Move mm functions to ...
1797 * util/mm.c: ... here. All users updated.
1798
1799 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1802 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1803 missing files.
1804 (maintainer-clean): Remove libgcrypt-grub.
1805
1806 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1809
1810 2010-04-09 EFI Coder <eficoder@hotmail.com>
1811
1812 * normal/menu_text.c (print_message): Clean up the message and show
1813 the Fn information when on EFI
1814 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1815
1816 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1819 All users updated.
1820 * normal/crypto.c (read_crypto_list): Likewise.
1821 * normal/dyncmd.c (read_command_list): Likewise.
1822 * normal/term.c (read_terminal_list): Likewise.
1823 * normal/main.c (read_lists): Use explicit prefix.
1824 (read_lists_hook): Use read_lists.
1825 (grub_normal_execute): Likewise.
1826
1827 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1830 Reported by: Thomas Schmitt.
1831 Add -no-emul-boot to grub-mkisofs parameters.
1832
1833 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1834
1835 * font/font.c: Indented.
1836
1837 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1838
1839 Elif support to GRUB script (by Deepak Vankadaru).
1840
1841 * tests/grub_script_if.in: New testcase.
1842 * conf/tests.rmk: Rule for new testcase.
1843 * script/parser.y: Grammar rules for elif.
1844
1845 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1846
1847 While and until loops support to GRUB script.
1848
1849 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1850 (grub_script_create_cmdwhile): New function prototype.
1851 (grub_script_execute_cmdwhile): New function prototype.
1852 * script/execute.c (grub_script_execute_cmdwhile): New function.
1853 * script/parser.y (command): New commands.
1854 (whilecmd): New grammar rule.
1855 (untilcmd): New grammar rule.
1856 * script/script.c (grub_script_create_cmdwhile): New function.
1857 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1858 function.
1859
1860 * tests/grub_script_while1.in: New testcase.
1861 * conf/tests.rmk: Rule for new testcase.
1862
1863 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1864
1865 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1866 as *.jpg.
1867
1868 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
1869
1870 GRUB_BACKGROUND support.
1871
1872 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1873 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1874
1875 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 Load fonts and modules for gfxmenu in grub-mkconfig.
1878 Idea by: Mario Vazquez
1879
1880 * util/grub.d/00_header.in: Load pf2 and image modules.
1881
1882 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1883
1884 grub-mkconfig multiple terminal support.
1885
1886 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1887 * util/grub.d/00_header.in: Likewise.
1888
1889 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1892 we use cd $(srcdir).
1893
1894 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
1895
1896 * util/grub.d/10_linux.in: Only use the first word of
1897 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1898 spaces in GRUB_DISTRIBUTOR.
1899 * util/grub.d/10_kfreebsd.in: Likewise.
1900 * util/grub.d/10_hurd.in: Likewise.
1901
1902 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1903
1904 Fix unit testing framework for Qemu 0.12.
1905
1906 * tests/util/grub-shell.in: Remove -serial stdio option.
1907
1908 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 POSIX header file wrappers.
1911
1912 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1913 equivalents.
1914 * lib/posix_wrap/ctype.h: Likewise.
1915 * lib/posix_wrap/errno.h: Likewise.
1916 * lib/posix_wrap/langinfo.h: Likewise.
1917 * lib/posix_wrap/limits.h: Likewise.
1918 * lib/posix_wrap/localcharset.h: Likewise.
1919 * lib/posix_wrap/stdint.h: Likewise.
1920 * lib/posix_wrap/stdio.h: Likewise.
1921 * lib/posix_wrap/stdlib.h: Likewise.
1922 * lib/posix_wrap/string.h: Likewise.
1923 * lib/posix_wrap/sys/types.h: Likewise.
1924 * lib/posix_wrap/unistd.h: Likewise.
1925 * lib/posix_wrap/wchar.h: Likewise.
1926 * lib/posix_wrap/wctype.h: Likewise.
1927 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1928 (grub_script.yy.h): Likewise.
1929 * script/yylex.l: Remove POSIX emulation #defines.
1930 * Makefile.in (POSIX_CFLAGS): New variable.
1931 (GNULIB_UTIL_CFLAGS): Likewise.
1932
1933 Regexp support.
1934
1935 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1936 (regexp_mod_SOURCES): New variable.
1937 (regexp_mod_CFLAGS): Likewise.
1938 (regexp_mod_LDFLAGS): Likewise.
1939 * commands/regexp.c: New file.
1940 * gnulib/regcomp.c: New file. Imported from gnulib.
1941 * gnulib/regex.c: Likewise.
1942 * gnulib/regex_internal.c: Likewise.
1943 * gnulib/regex_internal.h: Likewise.
1944 * gnulib/regexec.c: Likewise.
1945 * gnulib/regex.h: Likewise.
1946
1947 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
1950 unsupported video mode types.
1951
1952 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
1955
1956 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
1959 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
1960
1961 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 Remove unused grub_vga_get_font.
1964
1965 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
1966 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
1967
1968 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1969
1970 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
1971 * include/grub/misc.h: Likewise.
1972
1973 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1974
1975 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
1976 for which failure is fatal.
1977
1978 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1979
1980 * util/grub-install.in: Use mkdir -p to create grub directory.
1981 * util/i386/efi/grub-install.in: Likewise.
1982 * util/ieee1275/grub-install.in: Likewise.
1983
1984 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1985
1986 * Makefile.in (LEX): new variable.
1987
1988 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1989
1990 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
1991 `=' and added double quotes on operands of this equality test.
1992
1993 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * Makefile.in (uninstall): Remove a leftover debug echo.
1996 Reported by: Grégoire Sutre
1997
1998 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 MIPS multiboot2 support.
2001
2002 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2003 (multiboot2_mod_SOURCES): New variable.
2004 (multiboot2_mod_CFLAGS): Likewise.
2005 (multiboot2_mod_LDFLAGS): Likewise.
2006 (multiboot2_mod_ASFLAGS): Likewise.
2007 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2008 definition.
2009 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2010 (MULTIBOOT_MBI_REGISTER): Likewise.
2011 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2012 (MULTIBOOT_ELF32_MACHINE): Likewise.
2013 (MULTIBOOT_ELF64_MACHINE): Likewise.
2014 * include/grub/mips/multiboot.h: New file.
2015 * include/grub/video.h (grub_video_driver_id): New type
2016 GRUB_VIDEO_DRIVER_SM712.
2017 (grub_video_get_info_and_fini): Export.
2018 (grub_video_get_palette): Likewise.
2019 (grub_video_get_driver_id): Likewise.
2020 * include/multiboot2.h: Resynced with spec.
2021 * loader/i386/multiboot.c: Moved from here ...
2022 * loader/multiboot.c: ... here. All users updated.
2023 (grub_multiboot_boot): Use platform-specific macros.
2024 * loader/i386/multiboot_elfxx.c: Moved from here ...
2025 * loader/multiboot_elfxx.c: ... here. All users updated.
2026 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2027 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2028 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2029
2030 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 Import gnulib argp module.
2033
2034 * gnulib/argp-ba.c: New file.
2035 * gnulib/argp-eexst.c: Likewise.
2036 * gnulib/argp-fmtstream.c: Likewise.
2037 * gnulib/argp-fmtstream.h: Likewise.
2038 * gnulib/argp-fs-xinl.c: Likewise.
2039 * gnulib/argp-help.c: Likewise.
2040 * gnulib/argp-namefrob.h: Likewise.
2041 * gnulib/argp-parse.c: Likewise.
2042 * gnulib/argp-pin.c: Likewise.
2043 * gnulib/argp-pv.c: Likewise.
2044 * gnulib/argp-pvh.c: Likewise.
2045 * gnulib/argp-version-etc.c: Likewise.
2046 * gnulib/argp-version-etc.h: Likewise.
2047 * gnulib/argp-xinl.c: Likewise.
2048 * gnulib/argp.h: Likewise.
2049
2050 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 * kern/device.c (grub_device_iterate): Clear errors after failed
2053 opening device.
2054
2055 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2058 returned by firmware.
2059
2060 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2063 compilation on coreboot and qemu
2064
2065 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2066
2067 * include/multiboot2.h: Resync with spec.
2068
2069 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 Multiboot2 tag support
2072
2073 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2074 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2075 Remove loader/multiboot_loader.c.
2076 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2077 (grub_multiboot2_real_boot): Likewise.
2078 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2079 (grub_get_multiboot_mmap_count): New proto.
2080 (grub_fill_multiboot_mmap): Likewise.
2081 (grub_multiboot_set_video_mode): Likewise.
2082 (grub_multiboot_set_console): Likewise.
2083 (grub_multiboot_load): Likewise.
2084 (grub_multiboot_load_elf): Likewise.
2085 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2086 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2087 * include/multiboot.h: Resynced with specification.
2088 * include/multiboot2.h: Resynced with specification.
2089 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2090 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2091 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2092 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2093 users updated.
2094 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2095 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2096 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2097 Removed.
2098 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2099 Moved from here...
2100 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2101 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2102 Moved from here...
2103 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2104 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2105 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2106 All users updated.
2107 * loader/i386/multiboot_mbi2.c: New file.
2108
2109 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2110
2111 Resync with gnulib.
2112
2113 * Makefile.in (GNULIB_CFLAGS): New variable.
2114 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2115 (grub_script_check_CFLAGS): New variable.
2116 * gnulib/alloca.h: Resync with gnulib.
2117 * gnulib/error.c: Likewise.
2118 * gnulib/error.h: Likewise.
2119 * gnulib/fnmatch.c: Likewise.
2120 * gnulib/fnmatch_loop.c: Likewise.
2121 * gnulib/getdelim.c: Likewise.
2122 * gnulib/getline.c: Likewise.
2123 * gnulib/getopt.c: Likewise.
2124 * gnulib/getopt1.c: Likewise.
2125 * gnulib/getopt_int.h: Likewise.
2126 * gnulib/gettext.h: Likewise.
2127 * gnulib/progname.c: Likewise.
2128 * gnulib/progname.h: Likewise.
2129
2130 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2131
2132 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2133 which is the case with --disabled-nls.
2134
2135 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2136 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2137 * util/misc.c: Likewise.
2138 * util/mkisofs/mkisofs.c: Likewise.
2139 * util/mkisofs/mkisofs.h: Likewise.
2140
2141 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 Simplify Apple CC support.
2144
2145 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2146 Add 0 byte at the end not to have a symbol with empty target.
2147 * mmap/i386/pc/mmap_helper.S: Likewise.
2148 * genmk.rb: Ignore errors 2030 and 2050.
2149 * kern/i386/pc/startup.S: Use LOCAL when possible.
2150
2151 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2152
2153 Testcase and the fix for final semicolon on cmdline.
2154
2155 * tests/grub_script_final_semicolon.in: New testcase.
2156 * conf/tests.rmk: Rules for the new testcase.
2157 * script/parser.y: Grammar fix.
2158
2159 2010-03-26 BVK Chaitanya <bvk@localhost>
2160
2161 Blank lines testcase for GRUB script.
2162
2163 * tests/grub_script_blanklines.in: New testcase.
2164 * conf/tests.rmk: Rules for the new testcase.
2165
2166 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 Don't use __FILE__.
2169
2170 * genmk.rb: Add -DGRUB_FILE to all C targets.
2171 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2172 * include/grub/list.h: Likewise.
2173 * include/grub/misc.h: Likewise.
2174 * include/grub/mm.h: Likewise.
2175 * include/grub/test.h: Likewise.
2176 * kern/mm.c: Likewise.
2177 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2178
2179 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 Sunpc partitions support.
2182
2183 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2184 (grub_fstest_SOURCES): Likewise.
2185 (pkglib_MODULES): Add part_sunpc.mod.
2186 (part_sunpc_mod_SOURCES): New variable.
2187 (part_sunpc_mod_CFLAGS): Likewise.
2188 (part_sunpc_mod_LDFLAGS): Likewise.
2189 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2190 * partmap/sunpc.c: New file.
2191
2192 2010-03-26 BVK Chaitanya <bvk@localhost>
2193
2194 For loop support to GRUB script.
2195
2196 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2197 (grub_script_create_cmdfor): New function prototype.
2198 (grub_script_execute_cmdfor): New function prototype.
2199 * script/execute.c (grub_script_execute_cmdfor): New function.
2200 * script/parser.y (command): New for command.
2201 (forcmd): New grammar rule.
2202 * script/script.c (grub_script_create_cmdfor): New function.
2203 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2204 function.
2205 * tests/grub_script_for1.in: New testcase.
2206 * conf/tests.rmk: Rules for new testcase.
2207
2208 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 Nested partitions
2211
2212 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2213 'partition' is NULL, grub_partition_get_start already does that.
2214 * commands/loadenv.c (check_blocklists): Likewise.
2215 (write_blocklists): Likewise.
2216 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2217 (grub_fstest_SOURCES): Likewise.
2218 (pkglib_MODULES): Add part_bsd.mod.
2219 (part_bsd_mod_SOURCES): New variable.
2220 (part_bsd_mod_CFLAGS): Likewise.
2221 (part_bsd_mod_LDFLAGS): Likewise.
2222 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2223 (grub_emu_SOURCES): Likewise.
2224 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2225 * include/grub/bsdlabel.h: New file.
2226 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2227 'get_name'.
2228 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2229 (grub_partition_map_list): New variable.
2230 (grub_partition_map_register): Inline.
2231 (grub_partition_map_unregister): Likewise.
2232 (FOR_PARTITION_MAPS): New macro.
2233 (grub_partition_map_iterate): Removed.
2234 (grub_partition_get_start): Handle nested partitions.
2235 * include/grub/msdos_partition.h: Remove bsd-related entries.
2236 (grub_pc_partition): Remove.
2237 * kern/disk.c (grub_disk_close): Free partition data.
2238 (grub_disk_adjust_range): Handle nested partitions.
2239 * kern/partition.c (grub_partition_map_probe): New function.
2240 (grub_partition_probe): Parse name to number, handle subpartitions.
2241 (get_partmap): New function.
2242 (grub_partition_iterate): Handle subpartitions.
2243 (grub_partition_get_name): Likewise.
2244 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2245 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2246 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2247 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2248 Set 'number'.
2249 (acorn_partition_map_probe): Remove.
2250 (acorn_partition_map_get_name): Likewise.
2251 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2252 Set 'number'.
2253 Set 'index' to 0 since there can be only one partition entry per sector.
2254 (amiga_partition_map_probe): Remove.
2255 (amiga_partition_map_get_name): Likewise.
2256 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2257 Set 'number'.
2258 Set 'offset' and 'index' to real positions of partitions.
2259 (apple_partition_map_probe): Remove.
2260 (apple_partition_map_get_name): Likewise.
2261 * partmap/bsdlabel.c: New file.
2262 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2263 Set 'number'.
2264 Allocate 'data' so it can be correctly freed.
2265 Set 'index' to offset inside sector.
2266 (gpt_partition_map_probe): Remove.
2267 (gpt_partition_map_get_name): Likewise.
2268 * partmap/msdos.c (grub_partition_parse): Remove.
2269 (pc_partition_map_iterate): Don't force raw access.
2270 Set 'number'.
2271 Make 'ext_offset' a local variable.
2272 (pc_partition_map_probe): Remove.
2273 (pc_partition_map_get_name): Remove.
2274 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2275 Set 'number'.
2276 (sun_partition_map_probe): Remove.
2277 (sun_partition_map_get_name): Likewise.
2278 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2279 (grub_pcpart_type): Likewise.
2280 * util/hostdisk.c (open_device): Handle new numbering scheme.
2281 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2282 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2283 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2284 * util/grub-install.in: Insert all subpartition modules.
2285 * util/ieee1275/grub-install.in: Likewise.
2286
2287 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2288
2289 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2290 grammar.
2291
2292 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2293
2294 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2295
2296 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2297
2298 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2299 match where 'make install' puts them.
2300 * util/i386/efi/grub-install.in: Likewise.
2301
2302 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2303
2304 * .bzrignore: Add gentrigtables, grub-script-check,
2305 grub_script_check_init.c, grub_script_check_init.h, and
2306 trigtables.c.
2307
2308 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * kern/parser.c: Indented.
2311
2312 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2315
2316 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2319 alpha_mask_size == 0 case.
2320
2321 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2322
2323 GRUB shell lexer and parser improvements.
2324
2325 * conf/any-emu.rmk: Build rule updates.
2326 * conf/common.rmk: Likewise.
2327 * conf/i386-coreboot.rmk: Likewise.
2328 * conf/i386-efi.rmk: Likewise.
2329 * conf/i386-ieee1275.rmk: Likewise.
2330 * conf/i386-pc.rmk: Likewise.
2331 * conf/powerpc-ieee1275.rmk: Likewise.
2332 * conf/x86_64-efi.rmk: Likewise.
2333
2334 * configure.ac: Configure check for flex.
2335
2336 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2337 types.
2338 (grub_lexer_param): Struct member updates.
2339 (grub_parser_param): Likewise.
2340 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2341 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2342 (grub_script_lexer_init): Prototype update.
2343 (grub_script_lexer_record_start): Likewise.
2344 (grub_script_lexer_record_stop): Likewise.
2345 (grub_script_lexer_yywrap): New function prototype.
2346 (grub_script_lexer_fini): Likewise.
2347 (grub_script_execute_argument_to_string): Removed by...
2348 (grub_script_execute_argument_to_argv): ...better version.
2349
2350 * script/execute.c (ROUND_UPTO): New macro.
2351 (grub_script_execute_cmdline): Out of memory fixes.
2352 (grub_script_execute_menuentry): Likewise.
2353 (grub_script_execute_argument_to_string): Removed. Update all
2354 users by...
2355 (grub_script_execute_argument_to_argv): ...better version.
2356 * script/function.c (grub_script_function_create): Use
2357 grub_script_execute_argument_to_argv instead of
2358 grub_script_execute_argument_to_string.
2359
2360 * script/lexer.c (check_varstate): Removed.
2361 (check_textstate): Removed.
2362 (grub_script_lexer_record_start): Likewise.
2363 (grub_script_lexer_record_stop): Likewise.
2364 (recordchar): Replaced with...
2365 (grub_script_lexer_record): ...new function.
2366 (nextchar): Removed.
2367 (grub_script_lexer_init): Rewritten.
2368 (grub_script_yylex): Rewritten.
2369 (append_newline): New function.
2370 (grub_script_lexer_yywrap): New function.
2371 (grub_script_lexer_fini): New function.
2372 (grub_script_yyerror): Sets error flag.
2373
2374 * script/yylex.l: New file.
2375 (grub_lexer_yyfree): Wrapper for flex yyffre.
2376 (grub_lexer_yyalloc): Likewise.
2377 (grub_lexer_yyrealloc): Likewise.
2378 * script/parser.y: Refactored.
2379
2380 * script/script.c (grub_script_arg_add): Out of memory fixes.
2381 (grub_script_add_arglist): Likewise.
2382 (grub_script_create_cmdline): Likewise.
2383 (grub_script_create_cmdmenu): Likewise.
2384 (grub_script_add_cmd): Likewise.
2385 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2386 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2387 unnecessary code.
2388
2389 * tests/grub_script_echo1.in: New testcase.
2390 * tests/grub_script_vars1.in: New testcase.
2391 * tests/grub_script_echo_keywords.in: New testcase.
2392
2393 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2394
2395 Remove some redundancy in build system.
2396
2397 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2398 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2399 (TARGET_LDFLAGS): Add -nostdlib.
2400 (TARGET_IMG_LDFLAGS): Likewise.
2401 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2402 anything since mmap isn't available.
2403 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2404 Add util/time.c.
2405 (pkglib_MODULES): Remove reboot.mod.
2406 (reboot_mod_SOURCES): Removed.
2407 (reboot_mod_CFLAGS): Likewise.
2408 (reboot_mod_LDFLAGS): Likewise.
2409 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2410 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2411 (DEFSYMFILES): Add kernel_syms.lst.
2412 (kernel_img_HEADERS): Add common headers.
2413 (symlist.c): New target.
2414 (kernel_syms.lst): Likewise.
2415 (pkglib_MODULES): Add memdisk.mod.
2416 (memdisk_mod_SOURCES): New variable.
2417 (memdisk_mod_CFLAGS): Likewise.
2418 (memdisk_mod_LDFLAGS): Likewise.
2419 (pkglib_MODULES): Add reboot.mod.
2420 (reboot_mod_SOURCES): New variable.
2421 (reboot_mod_CFLAGS): Likewise.
2422 (reboot_mod_LDFLAGS): Likewise.
2423 (pkglib_MODULES): Add date.mod.
2424 (date_mod_SOURCES): New variable.
2425 (date_mod_CFLAGS): Likewise.
2426 (date_mod_LDFLAGS): Likewise.
2427 (pkglib_MODULES): Add datehook.mod.
2428 (datehook_mod_SOURCES): New variable.
2429 (datehook_mod_CFLAGS): Likewise.
2430 (datehook_mod_LDFLAGS): Likewise.
2431 (pkglib_MODULES): Add lsmmap.mod.
2432 (lsmmap_mod_SOURCES): New variable.
2433 (lsmmap_mod_CFLAGS): Likewise.
2434 (lsmmap_mod_LDFLAGS): Likewise.
2435 (pkglib_MODULES): Add boot.mod.
2436 (boot_mod_SOURCES): New variable.
2437 (boot_mod_CFLAGS): Likewise.
2438 (boot_mod_LDFLAGS): Likewise.
2439 * conf/i386-coreboot.rmk: Removed redundant parts.
2440 * conf/i386-ieee1275.rmk: Likewise.
2441 * conf/i386-pc.rmk: Likewise.
2442 * conf/mips-yeeloong.rmk: Likewise.
2443 * conf/mips.rmk: Likewise.
2444 * conf/powerpc-ieee1275.rmk: Likewise.
2445 * conf/sparc64-ieee1275.rmk: Likewise.
2446 * conf/x86_64-efi.rmk: Likewise.
2447 * conf/i386-coreboot.rmk: Moved qemu parts ..
2448 * conf/i386-qemu.rmk: ... here
2449 * conf/i386-efi.rmk: Moved common parts to...
2450 * conf/x86-efi.rmk: ... here.
2451 * conf/i386.rmk: Added modules common to all x86 variants.
2452 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2453 * disk/memdisk.c: Remove grub/machine/kernel.h.
2454 * gensymlist.sh.in: Include symbol.h.
2455 * hook/datehook.c: Correct module name.
2456 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2457 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2458 * include/grub/i386/efi/serial.h: New file.
2459 * include/grub/x86_64/efi/serial.h: Likewise.
2460 * util/time.c: Likewise.
2461 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2462
2463 2010-03-14 Colin King <colin.king@ubuntu.com>
2464 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2465
2466 Shrink the pre-partition-table part of boot.img by eight bytes.
2467
2468 * boot/i386/pc/boot.S (ERR): New macro.
2469 (chs_mode): Use ERR.
2470 (geometry_error): Likewise.
2471 (hd_probe_error): Remove. This is only used once, so we wrwite
2472 it inline instead.
2473 (read_error): Instead of printing read_error_string, just set up
2474 %si and fall through to ...
2475 (error_message): ... this new function, also used by ERR.
2476
2477 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2478
2479 Speed up consecutive hostdisk operations on the same device.
2480
2481 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2482 (grub_util_biosdisk_open): Initialise disk->data.
2483 (struct linux_partition_cache): New structure.
2484 (linux_find_partition): Cache partition start positions; these are
2485 expensive to compute on every read and write.
2486 (open_device): Cache open file descriptor in disk->data, so that we
2487 don't have to reopen it and flush the buffer cache for consecutive
2488 operations on the same device.
2489 (grub_util_biosdisk_close): New function.
2490 (grub_util_biosdisk_dev): Set `close' member.
2491
2492 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2493 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2494 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2495 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2496 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2497
2498 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 Compile parts of grub-emu as modules.
2501
2502 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2503 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2504 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2505 (all-local): Add $(GRUB_EMU).
2506 (install-local): Install $(GRUB_EMU).
2507 (uninstall): Uninstall $(GRUB_EMU).
2508 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2509 * kern/dl.c: Likewise.
2510 * commands/sleep.c: Not include machine/time.h.
2511 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2512 (COMMON_CFLAGS): Likewise.
2513 (sbin_UTILITIES): Remove grub-emu.
2514 (grub_emu_SOURCES): Removed.
2515 (kernel_img_RELOCATABLE): New variable.
2516 (pkglib_PROGRAMS): Add kernel.img.
2517 (kernel_img_SOURCES): New variable
2518 (kernel_img_CFLAGS): Likewise.
2519 (kernel_img_LDFLAGS): Likewise.
2520 (TARGET_NO_STRIP): Likewise.
2521 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2522 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2523 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2524 (grub-emu): New target.
2525 (GRUB_EMU): New variable.
2526 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2527 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2528 * loader/xnu.c: Likewise.
2529 * include/grub/pci.h: Likewise.
2530 * genemuinit.sh: New file.
2531 * genemuinitheader.sh: Likewise.
2532 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2533 Support TARGET_NO_DYNAMIC_MODULES.
2534 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2535 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2536 * disk/loopback.c: Likewise.
2537 * font/font_cmd.c: Likewise.
2538 * partmap/acorn.c: Likewise.
2539 * partmap/amiga.c: Likewise.
2540 * partmap/apple.c: Likewise.
2541 * partmap/gpt.c: Likewise.
2542 * partmap/msdos.c: Likewise.
2543 * partmap/sun.c: Likewise.
2544 * parttool/msdospart.c: Likewise.
2545 * term/gfxterm.c: Likewise.
2546 * video/bitmap.c: Likewise.
2547 * video/readers/jpeg.c: Likewise.
2548 * video/readers/png.c: Likewise.
2549 * video/readers/tga.c: Likewise.
2550 * video/video.c: Likewise.
2551 * util/grub-emu.c (read_command_list): Removed.
2552 (main): Don't call util_init_nls.
2553 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2554 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2555
2556 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2559 date.mod, datehook.mod.
2560 (datetime_mod_SOURCES): New variable.
2561 (datetime_mod_CFLAGS): Likewise.
2562 (datetime_mod_LDFLAGS): Likewise.
2563 (date_mod_SOURCES): Likewise.
2564 (date_mod_CFLAGS): Likewise.
2565 (date_mod_LDFLAGS): Likewise.
2566 (datehook_mod_SOURCES): Likewise.
2567 (datehook_mod_CFLAGS): Likewise.
2568 (datehook_mod_LDFLAGS): Likewise.
2569 * conf/sparc64-ieee1275.rmk: Likewise.
2570 * lib/ieee1275/datetime.c: New file.
2571
2572 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2575 (ieee1275_fb_mod_SOURCES): New variable.
2576 (ieee1275_fb_mod_CFLAGS): Likewise.
2577 (ieee1275_fb_mod_LDFLAGS): Likewise.
2578 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2579 New proto.
2580 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2581 (HEAP_MAX_ADDR): Likewise.
2582 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2583 type.
2584 Correct stop condition.
2585 (grub_ieee1275_devices_iterate): New function.
2586 * video/ieee1275.c: New file.
2587
2588 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2589
2590 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2591
2592 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2593 as scratch.
2594 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2595 SCRATCH_PAD_DISKBOOT as scratch.
2596 (bootit): Pass Openfirmware pointer in %o4.
2597 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2598 of 0x200000.
2599 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2600 with util/grub-mkrawimage.c.
2601 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2602 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2603 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2604 (grub_aout_load) [GRUB_UTIL]: Likewise.
2605 * include/grub/kernel.h (grub_modules_get_end): New proto.
2606 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2607 (SCRATCH_PAD_BOOT): New definition.
2608 (SCRATCH_PAD_DISKBOOT): Likewise.
2609 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2610 * include/grub/sparc64/ieee1275/ieee1275.h
2611 (grub_ieee1275_original_stack): New variable
2612 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2613 New definition
2614 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2615 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2616 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2617 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2618 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2619 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2620 (grub_platform_image_format_t): New type.
2621 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2622 * kern/main.c (grub_modules_get_end)
2623 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2624 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2625 (codestart): Switch stacks.
2626 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2627 variable.
2628 (grub_heap_init): Use grub_modules_get_end.
2629 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2630 stack.
2631 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2632 (main): Likewise.
2633 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2634
2635 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2636
2637 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2638
2639 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2640
2641 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2642 bug #559005).
2643
2644 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * genmoddep.awk: Output all missing symbols and not only first.
2647
2648 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * NEWS: Put the date of 1.98 release.
2651
2652 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2655 ft2build.h.
2656
2657 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2660 completition in the middle of string.
2661
2662 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 * util/grub-mkrescue.in: Use mktemp with explicit template.
2665
2666 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2669
2670 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2673 right pointer.
2674
2675 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 Fix FreeBSD compilation.
2678
2679 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2680 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2681
2682 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2683
2684 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2685
2686 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2689
2690 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2693
2694 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2695
2696 Support relative image path in theme file.
2697
2698 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2699 (image_set_property): Handle theme_dir and relative path.
2700
2701 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * configure.ac: Alias amd64 to x86_64.
2704
2705 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2706
2707 * NEWS: mention multiboot on EFI.
2708
2709 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 * kern/main.c (grub_load_modules): Handle errors from init functions of
2712 embeded modules.
2713
2714 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2715
2716 * normal/autofs.c (autoload_fs_module): Handle errors.
2717
2718 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 Disable linux.mod on qemu-mips since it's not functional and leads
2721 to compilation failure.
2722
2723 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2724 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2725 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2726 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2727 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2728 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2729 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2730 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2731 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2732 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2733 Reported by: BVK Chaitanya
2734
2735 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2736
2737 * INSTALL: Add gettext as a dependency and add qemu to a new section
2738 "Prerequisites for make-check".
2739
2740 2010-03-04 Christian Franke <franke@computer.org>
2741
2742 * util/grub-pe2elf.c: Add missing include "progname.h".
2743
2744 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 * normal/crypto.c (read_crypto_list): Fix a typo.
2747 Reported by: Seth Goldberg.
2748
2749 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2750
2751 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
2752 Reported by: Seth Goldberg.
2753
2754 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2757 ascii.bitmaps.
2758
2759 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2760
2761 * genmk.rb: Remove terminal*.lst in make clean.
2762 Reported by: Seth Goldberg.
2763
2764 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 * util/i386/efi/grub-install.in: Copy gettext files.
2767
2768 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2771
2772 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2773
2774 Wait for user entry basing on presence of output rather than on errors.
2775
2776 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2777 (grub_install_newline_hook): Likewise.
2778 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2779 * normal/menu.c (show_menu): Check line_counter to determine presence
2780 of output.
2781 * normal/term.c (grub_normal_line_counter): New variable.
2782 (grub_normal_get_line_counter): New function.
2783 (grub_install_newline_hook): Likewise.
2784
2785 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2788
2789 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * configure.ac: Update version to 1.98.
2792
2793 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * util/grub.d/10_linux.in (linux_entry): Don't default to
2796 gfxpayload=keep if Linux doesn't support video handover.
2797
2798 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 Don't compile video modules on yeeloong since video subsystem is part
2801 of kernel.
2802
2803 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2804 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2805 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2806 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2807 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2808 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2809 * include/grub/bitmap_scale.h: Likewise.
2810 * include/grub/bufio.h: Likewise.
2811 * include/grub/font.h: Likewise.
2812 * include/grub/gfxterm.h: Likewise.
2813 * include/grub/video.h: Likewise.
2814 * include/grub/vbe.h: Don't include video_fb.h.
2815 * video/i386/pc/vbe.c: Include video_fb.h.
2816 * commands/i386/pc/vbetest.c: Include video.h.
2817
2818 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2819
2820 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2821 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2822 default entry if GRUB_SAVEDEFAULT=true. This allows using
2823 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2824 saving a new default on every boot.
2825
2826 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2829 * normal/term.c (read_terminal_list): Likewise.
2830 * normal/main.c (grub_normal_init_page): Likewise.
2831 (grub_normal_read_line_real): Likewise.
2832
2833 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2834
2835 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2836 memory leak.
2837 Reported by: Seth Goldberg.
2838
2839 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2840
2841 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2842 duplicate declaration of `start'.
2843
2844 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2847 filename.
2848 Reported by: Georgy Buranov
2849
2850 2010-02-20 Carles Pina i Estany <carles@pina.cat>
2851
2852 * util/grub-mkrawimage.c (usage): Change string formatting to
2853 improve gettext.
2854
2855 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2856
2857 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2858 backspace keys.
2859
2860 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2863 Reported by: Michael Suchanek.
2864
2865 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2866
2867 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2868 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2869
2870 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 Remove any reference to non-free fonts.
2873
2874 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2875 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2876 uses non-free components.
2877 * font/font.c (grub_font_get_name): Remove example name.
2878 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2879 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2880 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2881 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2882
2883 2010-02-16 Georgy Buranov <gburanov@gmail.com>
2884
2885 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2886
2887 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2890 Double divisor.
2891 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2892 features.
2893 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2894
2895 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2898
2899 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2900
2901 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2902 * docs/grub.texi (Command-line and menu entry commands): Document play
2903 command.
2904
2905 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2906
2907 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2908 parse arguments as inline tempo and notes. Move code for playing notes
2909 to...
2910 (play): ... new function.
2911
2912 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2913
2914 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2915 grub_uint16_t instead of short.
2916 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2917 disk from little endian to cpu endianness.
2918
2919 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2920
2921 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2922 GRUB_TICKS_PER_SECOND instead of 120.
2923
2924 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2927 escape sequence after \e.
2928
2929 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2932 non-ASCII characters.
2933
2934 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2937 set root in single quotes to prevent \, from being unescaped.
2938
2939 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 Prevent unknown commands from stopping menuentry execution.
2942
2943 * script/execute.c (grub_script_execute_cmdline): Print error after
2944 unknown command.
2945
2946 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
2949 Reported by: Pavel Pisa.
2950
2951 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
2954
2955 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 Merge grub_ieee1275_map_physical into grub_map and rename to
2958 grub_ieee1275_map
2959
2960 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
2961 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
2962 Remove.
2963 * kern/ieee1275/openfw.c (grub_map): Rename to ...
2964 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
2965 necessary.
2966 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
2967
2968 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
2971 opening and not after.
2972
2973 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
2976 constants.
2977
2978 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
2981 (alloc_phys): Use ALIGN_UP instead of align_addr.
2982
2983 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
2986
2987 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
2990
2991 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
2994 verbose dprintf.
2995
2996 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 Fix over-4GiB seek on sparc64.
2999
3000 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3001 Replace pos_i and pos_lo with pos. All users updated.
3002 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3003 New constant.
3004 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3005 Likewise.
3006 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3007 and pos_lo.
3008
3009 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * util/grub-mkrawimage.c (main): Call set_program_name.
3012
3013 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 Properly align 64-bit targets.
3016
3017 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3018 (generate_image): Use ALIGN_ADDR.
3019
3020 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 Properly create cross-endian images.
3023
3024 * include/grub/types.h (grub_host_to_target_addr): New macro
3025 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3026
3027 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3030
3031 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3034
3035 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3036 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3037 (grub_linux_boot): Divide by 64K when on VESA.
3038
3039 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 Support GRUB_GFXPAYLOAD_LINUX.
3042
3043 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3044 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3045
3046 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3049 to show messages instead of discarding them.
3050 Process errors after executing command and not before. Keep old method
3051 too as precaution.
3052
3053 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * configure.ac: Check for ft2build.h.
3056
3057 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3060
3061 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 * genkernsyms.sh.in: Use TARGET_CC.
3064
3065 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3066
3067 * NEWS: Update.
3068
3069 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * include/grub/multiboot2.h: Remove leftover file.
3072 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3073 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3074
3075 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3076
3077 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3078
3079 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 Fix warnings in grub-emu when compiling with maximum warning options.
3082
3083 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3084 (grub_arch_modules_addr): Return 0 and not NULL.
3085 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3086 (xstrdup): Use newstr instead of dup.
3087 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3088 of disk to dsk to avoid shadowing.
3089 (find_free_slot): Fix prototype.
3090 * util/getroot.c (grub_util_is_dmraid): Make static.
3091 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3092 Add missing prototype.
3093 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3094
3095 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3098 appropriately.
3099
3100 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3103 code out.
3104
3105 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3108 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3109 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3110 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3111 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3112 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3113
3114 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 * include/grub/err.h (grub_err_printf): Don't export.
3117
3118 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3121
3122 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3125 * kern/misc.c (grub_gettext_dummy): Make static.
3126
3127 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3130 by non-valid ones.
3131 * kern/term.c (grub_putchar): Likewise.
3132
3133 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3136 buggy hook call and memory leak.
3137
3138 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3141
3142 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3145
3146 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3149 modevar.
3150 Return grub_errno on allocation error.
3151
3152 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3155
3156 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3157
3158 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3159 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3160
3161 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3162
3163 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3164 non-pxe disk.
3165 (grub_pxefs_open): Likewise.
3166
3167 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3168
3169 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3170 * util/grub.d/10_kfreebsd.in: Likewise.
3171 * util/grub.d/10_linux.in: Likewise.
3172
3173 2010-02-06 Colin D Bennett <colin@gibibit.com>
3174
3175 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3176 (gfxmenu_mod_SOURCES): New variable.
3177 (gfxmenu_mod_CFLAGS): Likewise.
3178 (gfxmenu_mod_LDFLAGS): Likewise.
3179 * include/grub/term.h (grub_term_set_current_output): Declare
3180 argument as const.
3181 * docs/gfxmenu-theme-example.txt: New file.
3182 * gfxmenu/gfxmenu.c: Likewise.
3183 * gfxmenu/gui_box.c: Likewise.
3184 * gfxmenu/gui_canvas.c: Likewise.
3185 * gfxmenu/gui_circular_progress.c: Likewise.
3186 * gfxmenu/gui_image.c: Likewise.
3187 * gfxmenu/gui_label.c: Likewise.
3188 * gfxmenu/gui_list.c: Likewise.
3189 * gfxmenu/gui_progress_bar.c: Likewise.
3190 * gfxmenu/gui_string_util.c: Likewise.
3191 * gfxmenu/gui_util.c: Likewise.
3192 * gfxmenu/icon_manager.c: Likewise.
3193 * gfxmenu/model.c: Likewise.
3194 * gfxmenu/named_colors.c: Likewise.
3195 * gfxmenu/theme_loader.c: Likewise.
3196 * gfxmenu/view.c: Likewise.
3197 * gfxmenu/widget-box.c: Likewise.
3198 * include/grub/gfxmenu_model.h: Likewise.
3199 * include/grub/gfxmenu_view.h: Likewise.
3200 * include/grub/gfxwidgets.h: Likewise.
3201 * include/grub/gui.h: Likewise.
3202 * include/grub/gui_string_util.h: Likewise.
3203 * include/grub/icon_manager.h: Likewise.
3204
3205 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Agglomerate scrolling in gfxterm.
3208
3209 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3210 (grub_virtual_screen_setup): Initialise 'total_screen'.
3211 (write_char): Split to ...
3212 (paint_char): ... this ...
3213 (write_char): ... and this.
3214 (paint_char): Handle delayed scrolling.
3215 (draw_cursor): Likewise.
3216 (scroll_up): Split to ...
3217 (real_scroll): ... this ...
3218 (scroll_up): ... and this.
3219 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3220 characters.
3221 (grub_gfxterm_refresh): Call real_scroll.
3222
3223 2010-02-06 Colin D Bennett <colin@gibibit.com>
3224
3225 * include/grub/misc.h (grub_iscntrl): New inline function.
3226 (grub_isalnum): Likewise.
3227 (grub_strtol): Likewise.
3228
3229 2010-02-06 Colin D Bennett <colin@gibibit.com>
3230
3231 * normal/menu_text.c (get_entry_number): Move from here ...
3232 * normal/menu.c (get_entry_number): ... moved here.
3233 * include/grub/menu.h (grub_menu_get_default_entry_index):
3234 New prototype.
3235 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3236 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3237 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3238 (grub_menu_viewer_should_return): Likewise.
3239 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3240 * normal/menu_text.c (run_menu): Enable menu switching.
3241 * normal/menu_viewer.c (should_return): New variable.
3242 (menu_viewer_changed): Likewise.
3243 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3244 (grub_menu_viewer_should_return): New function.
3245 (menuviewer_write_hook): Likewise.
3246 (grub_menu_viewer_init): Likewise.
3247
3248 2010-02-06 Colin D Bennet <colin@gibibit.com>
3249 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 Support for gfxterm in a window.
3252
3253 * include/grub/gfxterm.h: New file.
3254 * include/grub/video.h (struct grub_video_rect): New declaration.
3255 (grub_video_rect_t): Likewise.
3256 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3257 (refcount): New variable.
3258 (render_target): Likewise.
3259 (window): Likewise.
3260 (repaint_callback): Likewise.
3261 (grub_virtual_screen_setup): Use 'render_target'.
3262 (init_window): New function.
3263 (grub_gfxterm_init_window): Likewise.
3264 (grub_gfxterm_init): Check reference counter.
3265 Use init_window.
3266 (destroy_window): New function.
3267 (grub_gfxterm_destroy_window): Likewise.
3268 (grub_gfxterm_fini): Check reference counter.
3269 Use destroy_window.
3270 (redraw_screen_rect): Restore viewport.
3271 Use 'render_target' and 'window'.
3272 Call 'repaint_callback'.
3273 (write_char): Use 'render_target'.
3274 (draw_cursor): Likewise.
3275 (scroll_up): Restore viewport.
3276 Use 'render_target' and 'window'.
3277 Call 'repaint_callback'.
3278 (grub_gfxterm_cls): Likewise.
3279 (grub_gfxterm_refresh): Use 'window'.
3280 (grub_gfxterm_set_repaint_callback): New function.
3281 (grub_gfxterm_background_image_cmd): Use 'window'.
3282 (grub_gfxterm_get_term): New function.
3283 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3284
3285 2010-02-06 Colin D Bennett <colin@gibibit.com>
3286
3287 Bitmap scaling support.
3288
3289 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3290 (bitmap_scale_mod_SOURCES): New variable.
3291 (bitmap_scale_mod_CFLAGS): Likewise.
3292 (bitmap_scale_mod_LDFLAGS): Likewise.
3293 * include/grub/bitmap_scale.h: New file.
3294 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3295 (background_image_cmd_options): New variable.
3296 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3297 (cmd): Rename and change type to ...
3298 (background_image_cmd_handle): ... this. All users updated.
3299 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3300 * video/bitmap_scale.c: New file.
3301
3302 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 SDL support.
3305
3306 * Makefile.in (LIBSDL): New variable.
3307 (enable_grub_emu_sdl): Likewise.
3308 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3309 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3310 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3311 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3312 * util/sdl.c: New file.
3313
3314 2010-02-06 Colin D Bennett <colin@gibibit.com>
3315 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3316
3317 Double buffering support.
3318
3319 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3320 * include/grub/video.h: Update comment.
3321 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3322 New type.
3323 (grub_video_fb_doublebuf_blit_init): New prototype.
3324 * term/gfxterm.c (scroll_up): Support double buffering.
3325 (grub_gfxterm_refresh): Likewise.
3326 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3327 (grub_video_fb_doublebuf_blit_init): Likewise.
3328 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3329 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3330 'displayed_page', 'render_page' and 'update_screen'.
3331 (grub_video_vbe_fini): Free offscreen buffer.
3332 (doublebuf_pageflipping_commit): New function.
3333 (doublebuf_pageflipping_update_screen): Likewise.
3334 (doublebuf_pageflipping_init): Likewise.
3335 (double_buffering_init): Likewise.
3336 (grub_video_vbe_setup): Enable doublebuffering.
3337 (grub_video_vbe_swap_buffers): Implement.
3338 (grub_video_vbe_set_active_render_target): Handle double buffering.
3339 (grub_video_vbe_get_active_render_target): Likewise.
3340 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3341 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3342 (grub_video_vbe_enable_double_buffering): Likewise.
3343 (grub_video_vbe_swap_buffers): Use update_screen.
3344 (grub_video_set_mode): Use double buffering.
3345
3346 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3347
3348 * maintainance/gentrigtables.py: Remove.
3349 * lib/trig.c: Likewise.
3350
3351 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3352
3353 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3354 `trigtables.c'.
3355 (trigtables.c): New rule.
3356 (gentrigtables): Likewise.
3357 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3358
3359 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3360
3361 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3362 integer constants.
3363
3364 2010-02-06 Colin D Bennet <colin@gibibit.com>
3365
3366 Trigonometry support.
3367
3368 * include/grub/trig.h: New file.
3369 * lib/trig.c: Likewise.
3370 * maintainance/gentrigtables.py: Likewise.
3371 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3372 (trig_mod_SOURCES): New variable.
3373 (trig_mod_CFLAGS): Likewise.
3374 (trig_mod_LDFLAGS): Likewise.
3375
3376 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3379 disk devices.
3380
3381 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3384 error.
3385
3386 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * util/hostdisk.c (open_device): Don't use partition device when reading
3389 before the partition.
3390 (grub_util_biosdisk_read): Don't read from partition and before the
3391 partition in single operation.
3392 (grub_util_biosdisk_write): Don't write to partition and before the
3393 partition in single operation.
3394
3395 2010-02-03 Torsten Landschoff <torsten@debian.org>
3396
3397 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3398 last sectors.
3399
3400 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3403 CDROM reads.
3404 (grub_biosdisk_write): Refuse to write to CDROM.
3405
3406 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3409
3410 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * font/font.c (find_glyph): Check that bmp_idx is available before
3413 using it.
3414 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3415 with (font == NULL).
3416
3417 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3418
3419 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3420
3421 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3422
3423 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3424 * util/grub-script-check.c (getline): Fix empty lines case.
3425
3426 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3427
3428 * Makefile.in (check): Exit with fail status when one of the tests
3429 fails.
3430 * tests/example_functional_test.c (example_test): Fix reversed assert.
3431 * tests/example_unit_test.c (example_test): Likewise.
3432
3433 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3434
3435 * util/grub.d/10_linux.in: This script does not use any of the
3436 contents of gettext.sh, only the external command `gettext', so stop
3437 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3438 the same prefix as GRUB.)
3439 * util/grub.d/10_kfreebsd.in: Likewise.
3440
3441 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3444 of the line.
3445
3446 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3449 last sectors.
3450
3451 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3454 having a 4KiB and not 32KiB buffer size.
3455
3456 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3457
3458 * util/hostfs.c: Include `<errno.h>'.
3459 (grub_hostfs_read): Handle errors from fseeko() and fread().
3460
3461 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3462
3463 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3464 loop when using read hooks on files whose size isn't sector-aligned.
3465
3466 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3467
3468 Remove unused parameter.
3469
3470 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3471 (grub_iso9660_open): Remove initialization of `data->length'.
3472
3473 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3474
3475 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3476 memleak conditions.
3477
3478 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3479
3480 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3481 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3482
3483 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3484
3485 * util/bin2h.c (usage): Fix warning (space after backslash).
3486
3487 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3488
3489 * font/font.c: Include `grub/fontformat.h.
3490 Remove font file format constants.
3491 (grub_font_load): Use the new macros.
3492 * include/grub/fontformat.h: New file.
3493 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3494 (write_font_pf2): Use the new macros.
3495
3496 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3497
3498 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3499 does.
3500
3501 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3502
3503 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3504
3505 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3506 (_start): Macroify `0x7F'.
3507
3508 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3509 (make_install_device): Use "(pxe)" as fallback prefix when booting
3510 via PXE.
3511
3512 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * configure.ac: Reset LIBS after check for libgcc symbols.
3515
3516 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3517
3518 * util/hostdisk.c (open_device): Add trailing newline to debug
3519 message.
3520
3521 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3522
3523 * configure.ac: Check for `limits.h'.
3524 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3525
3526 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3527
3528 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3529 capitalize error strings.
3530
3531 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3532
3533 * util/grub.d/10_hurd.in: Add a recovery mode.
3534
3535 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * configure.ac: Check for libgcc symbols with -nostdlib.
3538
3539 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3540
3541 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3542
3543 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3546 stack since heap may be unavailable at that point.
3547 (grub_ofconsole_gotoxy): Likewise.
3548
3549 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * configure.ac: Check for _restgpr_14_x.
3552 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3553 and _savegpr_* prototypes.
3554
3555 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3556
3557 Use generic grub_reboot() for i386-efi.
3558
3559 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3560 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3561 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3562
3563 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3566 presence of "prefix" variable as it breaks when normal.mod is
3567 embedded.
3568
3569 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3572 stack since heap is unavailable at that point.
3573
3574 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3577 (grub_freebsd_bootinfo): Rewritten.
3578 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3579
3580 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3583
3584 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3585
3586 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3587 domain now.
3588
3589 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3590
3591 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3592 around for handling "/" to the correct fix. Fix a memory leak. Use
3593 xstrdup instead of strdup.
3594
3595 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3598
3599 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3602
3603 * font/font.c (struct grub_font): New member 'bmp_idx'.
3604 (font_init): Initialise 'bmp_idx'.
3605 (load_font_index): Fill 'bmp_idx'.
3606 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3607
3608 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3611 unnecessary calls.
3612
3613 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 Move context handling out of the kernel.
3616
3617 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3618 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3619 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3620 * conf/i386-efi.rmk: Likewise.
3621 * conf/i386-ieee1275.rmk: Likewise.
3622 * conf/i386-pc.rmk: Likewise.
3623 * conf/powerpc-ieee1275.rmk: Likewise.
3624 * conf/sparc64-ieee1275.rmk: Likewise.
3625 * conf/x86_64-efi.rmk: Likewise.
3626 * include/grub/env.h: Include grub/menu.h.
3627 (grub_env_var_type): Removed.
3628 (grub_env_var): Replaced field 'type' with 'global'.
3629 (grub_env_find): New prototype.
3630 (grub_env_context_open): Remove EXPORT_FUNC.
3631 (grub_env_context_close): Likewise.
3632 (grub_env_export): Likewise.
3633 (grub_env_set_data_slot): Removed.
3634 (grub_env_get_data_slot): Likewise.
3635 (grub_env_unset_data_slot): Likewise.
3636 (grub_env_unset_menu): New prototype.
3637 (grub_env_set_menu): Likewise.
3638 (grub_env_get_menu): Likewise.
3639 * include/grub/env_private.h: New file.
3640 * include/grub/normal.h (grub_context_init): New prototype.
3641 (grub_context_fini): Likewise.
3642 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3643 * normal/context.c (grub_cmd_export): ... to here.
3644 * kern/env.c: Include env_private.h.
3645 (HASHSZ): Moved to include/grub/env_private.h.
3646 (grub_env_context): Likewise.
3647 (grub_env_sorted_var): Likewise.
3648 (current_context): Renamed from this ...
3649 (grub_current_context): ...to this. 'static' removed. All users updated.
3650 (grub_env_find): Removed 'static'.
3651 (grub_env_context_open): Moved to normal/context.c.
3652 (grub_env_context_close): Likewise.
3653 (grub_env_export): Likewise.
3654 (mangle_data_slot_name): Removed.
3655 (grub_env_set_data_slot): Likewise.
3656 (grub_env_get_data_slot): Likewise.
3657 (grub_env_unset_data_slot): Likewise.
3658 * kern/main.c (grub_set_root_dev): Don't export root.
3659 It will be done later.
3660 (grub_main): Don't export prefix.
3661 It will be done later.
3662 * normal/context.c: New file.
3663 * normal/main.c (free_menu): Use grub_env_unset_menu.
3664 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3665 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3666 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3667 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3668
3669 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 setpci support.
3672
3673 * commands/setpci.c: New file.
3674 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3675 (setpci_mod_SOURCES): New variable.
3676 (setpci_mod_CFLAGS): Likewise.
3677 (setpci_mod_LDFLAGS): Likewise.
3678
3679 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 Byte-addressable PCI configuration space.
3682
3683 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3684 dword address.
3685 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3686 GRUB_PCI_REG_CACHELINE.
3687 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3688 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3689 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3690 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3691 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3692 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3693 grub_pci_make_address.
3694 (lock_rom_area): Likewise.
3695 * commands/lspci.c (grub_lspci_iter): Use macroses
3696 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3697 of grub_pci_make_address.
3698 * disk/ata.c (grub_ata_pciinit): Likewise.
3699 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3700 (GRUB_PCI_REG_VENDOR): Likewise.
3701 (GRUB_PCI_REG_DEVICE): Likewise.
3702 (GRUB_PCI_REG_COMMAND): Likewise.
3703 (GRUB_PCI_REG_STATUS): Likewise.
3704 (GRUB_PCI_REG_REVISION): Likewise.
3705 (GRUB_PCI_REG_CLASS): Likewise.
3706 (GRUB_PCI_REG_CACHELINE): Likewise.
3707 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3708 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3709 (GRUB_PCI_REG_BIST): Likewise.
3710 (GRUB_PCI_REG_ADDRESSES): Likewise.
3711 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3712 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3713 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3714 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3715 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3716 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3717 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3718 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3719 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3720 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3721 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3722 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3723 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3724 (GRUB_PCI_REG_MIN_GNT): Likewise.
3725 (GRUB_PCI_REG_MAX_LAT): Likewise.
3726 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3727 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3728 * video/efi_uga.c (find_framebuf): Likewise.
3729 * video/sm712.c (grub_video_sm712_setup): Likewise.
3730 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3731 space.
3732
3733 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3734
3735 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3736 can be reliably determined to be supported.
3737
3738 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3739
3740 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3741 that VESA is supported.
3742 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3743 supported.
3744
3745 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3748
3749 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3750
3751 * util/misc.c (make_system_path_relative_to_its_root): Work around
3752 special-casing of "/", as previous incarnation of this routine did.
3753
3754 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 Fix any-emu compilation.
3757
3758 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3759 * grub_bin2h_SOURCES: New variable.
3760
3761 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3762
3763 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3764
3765 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3766
3767 * util/grub.d/00_header.in: Fix handling of locale_dir.
3768
3769 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3772 as possible unifont location (Gentoo).
3773 Reported by: Alexander Brüning
3774
3775 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3776
3777 Don't try to generate lists for kernel.img.
3778
3779 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3780 (pkglib_MODULES): Remove kernel.img.
3781 (kernel_img_EXPORTS): Removed.
3782 (kernel_img_RELOCATABLE): New variable.
3783 * conf/x86_64-efi.rmk: Likewise.
3784 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3785
3786 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3789 grub_xasprintf or grub_snprintf.
3790 (grub_vsprintf): Likewise.
3791 (grub_snprintf): New proto.
3792 (grub_vsnprintf): Likewise.
3793 (grub_xasprintf): Likewise.
3794 (grub_xvasprintf): Likewise.
3795 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3796 (grub_sprintf): Removed.
3797 (grub_vsnprintf): New function.
3798 (grub_snprintf): Likewise.
3799 (grub_xvasprintf): Likewise.
3800 (grub_xasprintf): Likewise.
3801 (grub_vsprintf): Renamed to ...
3802 (grub_vsnprintf_real): ...this. New argument max_len.
3803
3804 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3805
3806 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3807 fix grub-script-check warning.
3808
3809 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 * include/grub/font.h (grub_font_load): Fix prototype.
3812
3813 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3816
3817 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * include/grub/x86_64/at_keyboard.h: New file.
3820
3821 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3822
3823 * loader/mips/linux.c: Include missing grub/i18n.h.
3824
3825 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3826
3827 * normal/menu.c (notify_execution_failure): Clarify error message.
3828
3829 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3830
3831 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3832 return value (and revert all return statements). Update users.
3833
3834 2010-01-20 Dan Merillat <debian@dan.merillat.org>
3835
3836 * kern/device.c (grub_device_iterate): Allocate new part_ent
3837 structure based on sizeof (*p) rather than sizeof (p->next), to
3838 account for structure padding.
3839
3840 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3841 disk is NULL, which might happen for LVM physical volumes with no
3842 LVM signature.
3843
3844 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3845
3846 * loader/mips/linux.c (grub_cmd_initrd)
3847 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3848
3849 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3850
3851 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3852 (grub_video_video_init, grub_video_bitmap_init)
3853 (grub_font_manager_init, grub_term_gfxterm_init)
3854 (grub_at_keyboard_init): New extern declarations.
3855 (grub_machine_init): Initialize gfxterm and at_keyboard.
3856
3857 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3858
3859 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3860 `gfxterm.mod' into core image.
3861
3862 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3863 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3864 (kernel_img_FORMAT): Copy to ...
3865
3866 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3867 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3868 (kernel_img_FORMAT): ... here, and ...
3869
3870 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3871 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3872 (kernel_img_FORMAT): ... here.
3873
3874 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3875 and input (at_keyboard) terminals in kernel.
3876 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3877
3878 (pkglib_MODULES): Remove `pci.mod'.
3879 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3880 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3881 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3882 (at_keyboard_mod_LDFLAGS): Remove variables.
3883
3884 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
3885
3886 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3887
3888 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3889
3890 * include/grub/mips/libgcc.h: Only export symbols for functions
3891 that libgcc provides.
3892
3893 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 MIPS support.
3896
3897 * bus/bonito.c: New file.
3898 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3899 GRUB_PCI_NUM_DEVICES.
3900 * term/i386/pc/serial.c: Move to ...
3901 * term/serial.c: ... here. All users updated.
3902 * util/i386/pc/grub-mkimage.c: Move to ...
3903 * util/grub-mkrawimage.c: ... here. All users updated.
3904 * term/i386/pc/at_keyboard.c: Move to ...
3905 * term/at_keyboard.c: ... here. All users updated.
3906 * conf/mips-qemu-mips.rmk: New file.
3907 * conf/mips-yeeloong.rmk: Likewise.
3908 * conf/mips.rmk: Likewise.
3909 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3910 mipsel-qemu-mips.
3911 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3912 to port addresses.
3913 (grub_ata_pciinit): Support CS5536.
3914 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3915 * font/font_cmd.c (loadfont_command): Open file before passing it to
3916 grub_font_load.
3917 (pseudo_file_read): New function.
3918 (pseudo_file_close): Likewise.
3919 (pseudo_fs): New structure.
3920 (load_font_module): New function.
3921 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3922 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3923 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3924 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3925 * include/grub/i386/at_keyboard.h: Split into ...
3926 * include/grub/at_keyboard.h: ... this ...
3927 * include/grub/i386/at_keyboard.h: ... and this.
3928 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3929 New prototype.
3930 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3931 updated.
3932 (grub_elf64_size): Likewise.
3933 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3934 filename.
3935 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3936 * include/grub/i386/coreboot/serial.h: Rewritten.
3937 * include/grub/i386/ieee1275/serial.h: Include
3938 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3939 * include/grub/i386/pc/serial.h: Moved from here ...
3940 * include/grub/serial.h: ... to here. All users updated.
3941 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3942 (GRUB_PCI_NUM_BUS): Likewise.
3943 (GRUB_PCI_NUM_DEVICES): Likewise.
3944 (grub_pci_device_map_range): Add missing volatile keyword.
3945 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
3946 * include/grub/mips/at_keyboard.h: New file.
3947 * include/grub/mips/cache.h: Likewise.
3948 * include/grub/mips/io.h: Likewise.
3949 * include/grub/mips/kernel.h: Likewise.
3950 * include/grub/mips/libgcc.h: Likewise.
3951 * include/grub/mips/pci.h: Likewise.
3952 * include/grub/mips/qemu-mips/boot.h: Likewise.
3953 * include/grub/mips/qemu-mips/kernel.h: Likewise.
3954 * include/grub/mips/qemu-mips/loader.h: Likewise.
3955 * include/grub/mips/qemu-mips/memory.h: Likewise.
3956 * include/grub/mips/qemu-mips/serial.h: Likewise.
3957 * include/grub/mips/qemu-mips/time.h: Likewise.
3958 * include/grub/mips/relocator.h: Likewise.
3959 * include/grub/mips/time.h: Likewise.
3960 * include/grub/mips/types.h: Likewise.
3961 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
3962 * include/grub/mips/yeeloong/boot.h: Likewise.
3963 * include/grub/mips/yeeloong/kernel.h: Likewise.
3964 * include/grub/mips/yeeloong/loader.h: Likewise.
3965 * include/grub/mips/yeeloong/memory.h: Likewise.
3966 * include/grub/mips/yeeloong/pci.h: Likewise.
3967 * include/grub/mips/yeeloong/serial.h: Likewise.
3968 * include/grub/mips/yeeloong/time.h: Likewise.
3969 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
3970 * kern/elf.c (grub_elf32_size): New parameter. All users
3971 updated.
3972 (grub_elf64_size): Likewise.
3973 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
3974 Load modules before saying "Welcome to GRUB!".
3975 Call grub_refresh after saying "Welcome to GRUB!".
3976 * kern/mips/cache.S: New file.
3977 * kern/mips/cache_flush.S: Likewise.
3978 * kern/mips/dl.c: Likewise.
3979 * kern/mips/init.c: Likewise.
3980 * kern/mips/qemu-mips/init.c: Likewise.
3981 * kern/mips/startup.S: Likewise.
3982 * kern/mips/yeeloong/init.c: Likewise.
3983 * kern/term.c (grub_putcode): Handle NULL terminal.
3984 (grub_getcharwidth): Likewise.
3985 (grub_getkey): Likewise.
3986 (grub_checkkey): Likewise.
3987 (grub_getkeystatus): Likewise.
3988 (grub_getxy): Likewise.
3989 (grub_getwh): Likewise.
3990 (grub_gotoxy): Likewise.
3991 (grub_cls): Likewise.
3992 (grub_setcolorstate): Likewise.
3993 (grub_setcolor): Likewise.
3994 (grub_getcolor): Likewise.
3995 (grub_refresh): Likewise.
3996 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
3997 (write_jump): Add hatch nop.
3998 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
3999 * lib/mips/setjmp.S: New file.
4000 * loader/mips/linux.c: Likewise.
4001 * term/i386/pc/at_keyboard.c: Move from here ...
4002 * term/at_keyboard.c: ... to here.
4003 * term/i386/pc/serial.c: Moved from here ...
4004 * term/serial.c: ... to here. All users updated.
4005 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4006 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4007 (serial_translate_key_sequence): Avoid deadlock.
4008 (grub_serial_getkey): Handle backspace.
4009 (grub_serial_putchar): Fix newline handling.
4010 * util/i386/pc/grub-mkimage.c: Move from here ...
4011 * util/grub-mkrawimage.c: ... to here. All users updated.
4012 (generate_image): New parameters 'font_path' and 'format'.
4013 Support embedding font.
4014 Use grub_host_to_target* instead of grub_cpu_to_le*.
4015 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4016 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4017 (options): New option "--font".
4018 (usage): Likewise.
4019 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4020 (main): Handle "--font".
4021 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4022 (grub_virtual_screen_setup): Set bg_color_display.
4023 (redraw_screen_rect): Use bg_color_display instead of incorrect
4024 bg_color.
4025 (grub_gfxterm_cls): Likewise.
4026 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4027 Support embedding config file.
4028 (add_segments): Likewise.
4029 (options): New option "--config".
4030 (main): Handle "--config".
4031 * video/sm712.c: New file.
4032
4033 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4034
4035 Fix parallel builds.
4036
4037 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4038 font.c depend on ascii.h).
4039
4040 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4041
4042 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4043
4044 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4045
4046 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4047 By default: disabled.
4048 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4049 parameter.
4050
4051 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4052
4053 * font/font.c: Update copyright years.
4054 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4055
4056 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4057
4058 * font/font.c: Include `ascii.h'.
4059 (ASCII_BITMAP_SIZE): New macro.
4060 (ascii_font_glyph): Define.
4061 (ascii_glyph_lookup): New function.
4062 (grub_font_get_string_width): Change comment. If glyph not found, use
4063 ascii_glyph_lookup.
4064 (grub_font_get_glyph_with_fallback): If glyph not available returns
4065 ascii_glyph_lookup.
4066 * util/grub-mkfont.c (file_formats): New enum.
4067 (options): Add `ascii-bitmaps' new option.
4068 (usage): Add `asii-bitmaps' new option.
4069 (write_font_ascii_bitmap): New function.
4070 (write_font): Rename to ...
4071 (write_font_p2): ... this. Remove print_glyphs call.
4072 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4073 used. Call print_glyphs.
4074 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4075
4076 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4077
4078 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4079 (grub_bin2h_SOURCES): New variable.
4080 * util/bin2h.c: New file.
4081
4082 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * include/multiboot.h: Resynced with spec.
4085 * include/multiboot2.h: Likewise.
4086 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4087 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4088
4089 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4090
4091 * include/grub/term.h (grub_term_register_input,
4092 grub_term_register_output): Check return of terminal init()
4093 routines, and abort if errors are raised.
4094
4095 * commands/terminal.c: Update copyright year.
4096
4097 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4098
4099 * commands/terminal.c (grub_cmd_terminal_input)
4100 (grub_cmd_terminal_output): Check return of terminal init()
4101 routines, and abort if errors are raised.
4102
4103 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * include/grub/i386/bsd.h: Fix include pathes.
4106
4107 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 Add missing *BSD copyright headers.
4110
4111 * include/grub/aout.h: Add BSD licence.
4112 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4113 * include/grub/i386/freebsd_linker.h: ... here,
4114 * include/grub/i386/freebsd_reboot.h: ... here,
4115 * include/grub/i386/netbsd_bootinfo.h: ... here,
4116 * include/grub/i386/netbsd_reboot.h: ... here,
4117 * include/grub/i386/openbsd_bootarg.h: ... here,
4118 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4119 licence to each file.
4120
4121 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4122
4123 * acinclude.m4: Remove `nop' assembly instruction; it's not
4124 implemented by all architectures.
4125
4126 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4127
4128 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4129 ELILO. This is no longer necessary.
4130
4131 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4132
4133 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4134
4135 * util/grub-script-check.c: grub-script-check tool.
4136 * conf/common.rmk: Make rules for grub-script-check.
4137
4138 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4139
4140 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4141 spotting it back in 2008. Shame on me for forgetting he did.
4142
4143 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4144
4145 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4146
4147 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4148 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4149 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4150 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4151 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4152 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4153
4154 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4155
4156 * include/grub/test.h: Add license header.
4157 * tests/example_functional_test.c: Likewise.
4158 * tests/example_unit_test.c: Likewise.
4159 * tests/lib/functional_test.c: Likewise.
4160 * tests/lib/test.c: Likewise.
4161 * tests/lib/unit_test.c: Likewise.
4162
4163 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 Use flag-based instead of hook-based video mode selection and "auto"
4166 keyword.
4167
4168 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4169 (grub_video_set_mode): Changed prototype. All users updated.
4170 (grub_video_check_mode_flag): New inline function.
4171 * video/video.c (parse_modespec): New function.
4172 (grub_video_set_mode): Parse flags and keywords.
4173
4174 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4175
4176 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4177 fprintf call.
4178
4179 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4180
4181 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4182
4183 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4184
4185 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4186 string.
4187 * util/grub-emu.c (usage): Likewise.
4188 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4189 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4190 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4191 * util/i386/pc/grub-setup.c (usage): Likewise.
4192
4193 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4194
4195 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4196 the message.
4197 (grub_util_info): Likewise.
4198 (grub_util_error): Likewise.
4199 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4200 and/or new lines in `grub_util_warna', `grub_util_info',
4201 `grub_util_error' calls.
4202 * util/getroot.c: Likewise.
4203 * util/grub-editenv.c: Likewise.
4204 * util/grub-emu.c: Likewise.
4205 * util/grub-fstest.c: Likewise.
4206 * util/grub-mkdevicemap.c: Likewise.
4207 * util/grub-mkfont.c: Likewise.
4208 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4209 * util/grub-mkrelpath.c: Likewise.
4210 * util/grub-pe2elf.c: Likewise.
4211 * util/grub-probe.c: Likewise.
4212 * util/hostdisk.c: Likewise.
4213 * util/i386/efi/grub-mkimage.c: Likewise.
4214 * util/i386/pc/grub-mkimage.c: Likewise.
4215 * util/i386/pc/grub-setup.c: Likewise.
4216 * util/ieee1275/ofpath.c: Likewise.
4217 * util/mkisofs/eltorito.c: Likewise.
4218 * util/mkisofs/rock.c: Likewise.
4219 * util/mkisofs/write.c: Likewise.
4220 * util/raid.c: Likewise.
4221 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4222 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4223
4224 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 Enable multiboot on non-pc.
4227
4228 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4229 multiboot.mod and multiboot2.mod to ...
4230 * conf/i386.rmk (pkglib_MODULES): ... here.
4231 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4232 Moved to ...
4233 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4234 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4235 Moved to ...
4236 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4237 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4238 Moved to ...
4239 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4240 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4241 Moved to ...
4242 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4243 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4244 relocator.mod.
4245 (ata_mod_SOURCES): Removed.
4246 (ata_mod_CFLAGS): Likewise.
4247 (ata_mod_LDFLAGS): Likewise.
4248 (relocator_mod_SOURCES): Removed.
4249 (relocator_mod_CFLAGS): Likewise.
4250 (relocator_mod_ASFLAGS): Likewise.
4251 (relocator_mod_LDFLAGS): Likewise.
4252 Include i386.mk.
4253 * include/grub/x86_64/multiboot.h: New file.
4254 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4255 Terminate EFI.
4256
4257 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4258
4259 Video multiboot support.
4260
4261 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4262 New prototype.
4263 * include/multiboot.h: Resynced with multiboot specification.
4264 * include/multiboot2.h: Likewise.
4265 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4266 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4267 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4268 (HAS_VGA_TEXT): Likewise.
4269 (accepts_video): New variable.
4270 (grub_multiboot_set_accepts_video): New function.
4271 (grub_multiboot_get_mbi_size): Account for video structures.
4272 (set_video_mode): New function.
4273 (retrieve_video_parameters): Likewise.
4274 (grub_multiboot_make_mbi): Fill video fields.
4275
4276 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4277
4278 Video driver ids.
4279
4280 * include/grub/video.h (grub_video_driver_id): New type.
4281 (grub_video_adapter): New member 'id'. All users updated.
4282 (grub_video_get_driver_id): New proto.
4283 * video/video.c (grub_video_get_driver_id): New function.
4284
4285 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4286
4287 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4288 `var=val'.
4289
4290 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4291
4292 * normal/cmdline.c (print_completion): Gettextizze.
4293
4294 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4295
4296 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4297
4298 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4299
4300 * gettext/gettext.c (grub_gettext_translate): Push and pop
4301 grub_errno.
4302 (grub_gettext_delete_list): Change comment style.
4303 * kern/err.c (grub_error): Gettextizze.
4304 (grub_fatal): Gettextizze.
4305
4306 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4307
4308 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4309 (grub_linux16_real_boot): ... this.
4310 * kern/i386/loader.S: Likewise.
4311 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4312 (grub_linux16_boot): New function. Switches to text mode and calls
4313 grub_linux16_real_boot().
4314
4315 * loader/i386/bsd.c: Include `<grub/video.h>'.
4316 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4317 text mode before calling grub_unix_real_boot().
4318
4319 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4320 (grub_multiboot_boot): Switch to text mode before calling
4321 grub_relocator32_boot().
4322
4323 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4324 (grub_chainloader_boot): Switch to text mode before calling
4325 grub_chainloader_real_boot().
4326
4327 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4328 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4329
4330 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4331 non-empty value.
4332
4333 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4334 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4335
4336 * util/grub.d/00_header.in: Define a "savedefault" function for use
4337 in menu entries.
4338 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4339
4340 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4341 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4342
4343 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4344 saved_entry if boot_once is unset.
4345 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4346 previous saved entry (i.e. grub-reboot).
4347
4348 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4349
4350 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4351
4352 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4353
4354 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4355 `var=val'.
4356 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4357
4358 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4359
4360 * util/grub-reboot.in: Fix --version output.
4361 * util/grub-set-default.in: Likewise.
4362
4363 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4364
4365 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4366 blocks.
4367
4368 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4369
4370 * util/grub.d/00_header.in: Quote the value assigned to `default',
4371 in case it contains spaces.
4372
4373 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4374
4375 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4376 `save_default_entry' call from the macosx case to the linux case.
4377
4378 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4379 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4380
4381 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4382 in `chosen' environment variable.
4383 * normal/menu_text.c (get_entry_number): Check if the variable
4384 matches the title of a menu entry.
4385 (run_menu): Pass menu to get_entry_number.
4386
4387 * util/grub-reboot.in: New file.
4388 * util/grub-set-default.in: New file.
4389 * conf/common.rmk (grub-reboot): New utility.
4390 (grub-set-default): New utility.
4391
4392 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4393 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4394 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4395 move it to `saved_entry' for the next boot. Load environment on
4396 initialisation.
4397 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4398 * util/grub.d/10_hurd.in: Likewise.
4399 * util/grub.d/10_linux.in (linux_entry): Likewise.
4400 * util/grub.d/10_windows.in: Likewise.
4401 * util/grub.d/30_os-prober.in: Likewise.
4402
4403 * util/grub-install.in: Create environment block.
4404 * util/i386/efi/grub-install.in: Likewise.
4405 * util/ieee1275/grub-install.in: Likewise.
4406 * util/sparc64/ieee1275/grub-install.in: Likewise.
4407
4408 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4409
4410 Unit testing framework for GRUB.
4411
4412 * Makefile.in: Test framework build rules for 'make check'.
4413 * conf/tests.rmk: Build rules for individual tests and framework.
4414
4415 * include/grub/test.h: Header file for whitebox tests.
4416 * tests/lib/functional_test.c: Framework support for whitebox
4417 functional tests.
4418 * tests/lib/test.c: Common whitebox testing code for unit and
4419 functional tests.
4420 * tests/lib/unit_test.c: Framework support for whitebox unit
4421 tests.
4422
4423 * tests/util/grub-shell-tester.in: Support utility for grub-script
4424 tests.
4425 * tests/util/grub-shell.in: Utility to execute grub-script
4426 commands in a Qemu instance.
4427
4428 * tests/example_functional_test.c: Example whitebox functional
4429 test.
4430 * tests/example_grub_script_test.in: Example grub-script test.
4431 * tests/example_scripted_test.in: Example scripted test.
4432 * tests/example_unit_test.c: Example whitebox unit test.
4433
4434 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4437 Add loader/i386/multiboot_mbi.c.
4438 (multiboot2_mod_SOURCES): Likewise.
4439 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4440 (multiboot2_mod_SOURCES): Likewise.
4441 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4442 (grub_multiboot_make_mbi): Likewise.
4443 (grub_multiboot_free_mbi): Likewise.
4444 (grub_multiboot_init_mbi): Likewise.
4445 (grub_multiboot_add_module): Likewise.
4446 (grub_multiboot_set_bootdev): Likewise.
4447 * loader/i386/multiboot.c (mbi): Removed.
4448 (mbi_dest): Likewise.
4449 (alloc_mbi): New variable.
4450 (grub_multiboot_payload_size): Removed. All users updated.
4451 (grub_multiboot_pure_size): New variable.
4452 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4453 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4454 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4455 (grub_fill_multiboot_mmap): Likewise.
4456 (grub_multiboot_get_bootdev): Likewise.
4457 (grub_multiboot): Use multiboot_mbi functions.
4458 * loader/i386/multiboot_mbi.c: New file.
4459
4460 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4463 it would result in module crash.
4464
4465 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4468 (grub_ofconsole_getwh): Split to ...
4469 (grub_ofconsole_getwh): ... this.
4470 (grub_ofconsole_dimensions): ...and this.
4471 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4472
4473 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4474
4475 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4476
4477 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * loader/i386/pc/multiboot2.c: Removed stalled file.
4480
4481 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4484 Reported by: Grégoire Sutre
4485
4486 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4487
4488 * util/misc.c (canonicalize_file_name): New function.
4489 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4490 instead of realpath().
4491
4492 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4493
4494 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4495 and make it clearer that it's optional. Based on confusion
4496 witnessed on IRC.
4497
4498 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4499
4500 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4501 in premature implicit newline.
4502
4503 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4506 which resulted in garbled command line at the end of screen.
4507
4508 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4509
4510 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4511 initialization with similar approach as with other Linux loaders.
4512
4513 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4514
4515 Fix i386-ieee1275 build.
4516
4517 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4518 and grub_term_height() for video_{width,height} initialization.
4519
4520 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4521
4522 Fix grub-emu build.
4523
4524 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4525
4526 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4527 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4528
4529 Support for multiple terminals.
4530
4531 * Makefile.in (pkglib_DATA): terminal.lst.
4532 (terminal.lst): New target.
4533 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4534 (GRUB_MOD_INIT(handler)): Likewise.
4535 (GRUB_MOD_FINI(handler)): Likewise.
4536 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4537 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4538 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4539 (grub_cmd_sleep): Use grub_term_save_pos.
4540 * commands/terminal.c: New file.
4541 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4542 commands/terminal.c and lib/charset.c.
4543 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4544 (pkglib_MODULES): Add terminal.mod.
4545 (terminal_mod_SOURCES): New variable.
4546 (terminal_mod_CFLAGS): Likewise.
4547 (terminal_mod_LDFLAGS): Likewise.
4548 * genhandlerlist.sh: Don't handle terminals.
4549 * genmk.rb: Generate terminal-*.lst.
4550 * genterminallist.sh: New file.
4551 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4552 (grub_is_valid_utf8): Likewise.
4553 (grub_utf8_to_ucs4_alloc): Likewise.
4554 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4555 (grub_menu_register_viewer): Changed argument.
4556 (grub_menu_try_text): New proto.
4557 (grub_gfxmenu_try_hook): New declaration.
4558 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4559 (grub_menu_init_page): Additional argument term.
4560 (grub_normal_init_page): Likewise.
4561 (grub_cmdline_get): Arguments simplified.
4562 (grub_utf8_to_ucs4_alloc): Removed.
4563 (grub_print_ucs4): Additional argument term.
4564 (grub_getstringwidth): Likewise.
4565 (grub_print_message_indented): Likewise.
4566 (grub_menu_text_register_instances): New proto.
4567 (grub_show_menu): Likewise.
4568 (read_terminal_list): Likewise.
4569 (grub_set_more): Likewise.
4570 * include/grub/parser.h: Include handler.h.
4571 * include/grub/reader.h: Rewritten.
4572 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4573 (GRUB_TERM_WIDTH): Changed to function.
4574 (GRUB_TERM_HEIGHT): Likewise.
4575 (GRUB_TERM_BORDER_WIDTH): Likewise.
4576 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4577 (GRUB_TERM_NUM_ENTRIES): Likewise.
4578 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4579 (GRUB_TERM_CURSOR_X): Likewise.
4580 (grub_term_input_class): Likewise.
4581 (grub_term_output_class): Likewise.
4582 (grub_term_outputs_disabled): New declaration.
4583 (grub_term_inputs_disabled): Likewise.
4584 (grub_term_outputs): Likewise.
4585 (grub_term_inputs): Likewise.
4586 (grub_term_register_input): Rewritten.
4587 (grub_term_register_output): Likewise.
4588 (grub_term_unregister_input): Likewise.
4589 (grub_term_unregister_output): Likewise.
4590 (FOR_ACTIVE_TERM_INPUTS): New macro.
4591 (FOR_DISABLED_TERM_INPUTS): Likewise.
4592 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4593 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4594 * include/grub/terminfo.h: Add oterm argument to all protypes.
4595 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4596 Use grub_rescue_run.
4597 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4598 All users updated.
4599 * kern/reader.c: Removed. All users updated.
4600 * kern/rescue_reader.c (grub_rescue_init): Removed.
4601 (grub_rescue_reader): Likewise.
4602 (grub_register_rescue_reader): Likewise.
4603 (grub_rescue_run): New function based on kern/reader.c.
4604 * kern/term.c: Adapted for multiterm.
4605 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4606 (grub_is_valid_utf8): Likewise.
4607 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4608 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4609 right terminal.
4610 * loader/i386/linux.c (grub_linux_boot): Likewise.
4611 * normal/auth.c (grub_username_get): New function.
4612 (grub_auth_check_authentication): Use grub_username_get.
4613 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4614 * normal/color.c: Adapt for multiterm.
4615 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4616 (grub_normal_init_page): Additional argument term.
4617 (read_lists): Call read_terminal_lists.
4618 (grub_enter_normal_mode): Call grub_cmdline_run.
4619 Handle grub_normal_exit_level.
4620 (grub_cmd_normal): Make reentrant.
4621 (grub_cmd_normal_exit): New function.
4622 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4623 * normal/menu.c: Adapt for multiterm.
4624 * normal/menu_entry.c: Likewise.
4625 * normal/menu_text.c: Likewise.
4626 * normal/menu_viewer.c: Removed. All users updated.
4627 * normal/term.c: New file.
4628 * util/console.c: Change order of includes to workaround a bug in
4629 ncurses headers.
4630 * term/terminfo.c: New argument oterm on all exported functions.
4631 All users updated.
4632 * util/grub-editenv.c (grub_term_input_class): Removed.
4633 (grub_term_output_class): Likewise.
4634
4635 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4636
4637 Make loader output a bit more user-friendly.
4638
4639 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4640 is being loaded. Likewise for the Hurd.
4641
4642 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4643 that kernel of FreeBSD ${version} is being loaded.
4644
4645 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4646 grub_dprintf().
4647 (grub_cmd_initrd): Likewise.
4648 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4649 that Linux ${version} is being loaded. Likewise for initrd.
4650
4651 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4652
4653 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4654
4655 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4656
4657 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4658 (GRUB_MOD_INIT): Gettextizze.
4659 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4660 (GRUB_MOD_INIT): Gettextizze.
4661 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4662 (grub_cmd_linux): Capitalise Linux.
4663 (GRUB_MOD_INIT): Gettextizze.
4664 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4665 (grub_cmd_linux): Capitalise Linux.
4666 (GRUB_MOD_INIT): Gettextizze.
4667 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4668 (grub_cmd_linux): Capitalise Linux.
4669 (GRUB_MOD_INIT): Gettextizze.
4670 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4671 (GRUB_MOD_INIT): Gettextizze.
4672 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4673 (grub_cmd_linux): Capitalise Linux.
4674 (GRUB_MOD_INIT): Gettextizze.
4675 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4676 (grub_cpu_xnu_init): Gettextizze.
4677 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4678 (GRUB_MOD_INIT): Gettextizze.
4679 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4680 (GRUB_MOD_INIT): Gettextizze.
4681 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4682 (grub_linux_load64): Capitalise Linux.
4683 (GRUB_MOD_INIT): Gettextizze.
4684 * loader/xnu.c: Include `<grub/i18n.h>'.
4685 (GRUB_MOD_INIT): Gettextizze.
4686 * po/POTFILES: Add `loader/efi/appleloader.c',
4687 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4688 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4689 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4690 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4691 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4692 and `loader/xnu.c'.
4693
4694 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4695
4696 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4697
4698 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4699
4700 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4701 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4702 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4703
4704 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4705
4706 Reset Multiboot 2 support. New loader implements the draft in
4707 /branches/multiboot2 and shares as much code as possible with the
4708 production Multiboot 1 implementation.
4709
4710 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4711 * loader/multiboot2.c: Likewise.
4712 * loader/i386/multiboot_helper.S: Likewise.
4713 * include/multiboot2.h: Replace with latest version from the draft
4714 in /branches/multiboot2.
4715
4716 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4717 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4718 and `loader/multiboot2.c'.
4719 (pkglib_MODULES): Add `multiboot2.mod'.
4720 (multiboot2_mod_SOURCES): New variable.
4721 (multiboot2_mod_LDFLAGS): Likewise.
4722 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4723
4724 * conf/i386-pc.rmk: Likewise.
4725
4726 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4727 (multiboot_mod_SOURCES): Remove variable.
4728 (multiboot_mod_LDFLAGS): Likewise.
4729 (multiboot_mod_CFLAGS): Likewise.
4730
4731 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4732 `<multiboot2.h>' instead of `<multiboot.h>'.
4733 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4734 (MULTIBOOT_HEADER_MAGIC): New macros.
4735
4736 * loader/multiboot_loader.c (module_version_status): Remove variable.
4737 (find_multi_boot2_header): Remove function.
4738 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4739 logic. Always check for the Multiboot version we're compiling for.
4740 (grub_cmd_module_loader): Likewise.
4741 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4742 command instead of `multiboot'.
4743
4744 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4745
4746 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4747 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4748 all users.
4749
4750 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4751 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 Fix breakage introduced with previous commit.
4754
4755 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4756 commands.
4757 * normal/handler.c (read_handler_list): Revert part of previous commit
4758 affecting this file.
4759 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4760 (grub_normal_execute): ... here.
4761
4762 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4763
4764 Merge prefix-redefinition-fix branch.
4765
4766 * normal/autofs.c (read_fs_list): Make function capable of being
4767 run multiple times, gracefuly replacing the previous data
4768 structures.
4769 * normal/dyncmd.c (read_command_list): Likewise.
4770 * normal/handler.c (read_handler_list): Likewise.
4771 * normal/main.c (read_lists): New function. Calls all the
4772 list reading functions.
4773 (grub_normal_execute): Use read_lists() instead of calling all
4774 list reading functions explicitly. Register read_lists() as a
4775 variable hook attached to ${prefix}.
4776
4777 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 Merge crypto branch.
4780
4781 * Makefile.in (pkglib_DATA): Add crypto.lst.
4782 (crypto.lst): New target.
4783 * commands/hashsum.c: New file.
4784 * commands/password.c (check_password): Use grub_crypto_memcmp.
4785 * commands/password_pbkdf2.c: New file.
4786 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4787 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4788 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4789 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4790 -I$(srcdir)/lib/libgcrypt_wrap.
4791 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4792 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4793 password_pbkdf2.mod.
4794 (crypto_mod_SOURCES): New variable.
4795 (crypto_mod_CFLAGS): Likewise.
4796 (crypto_mod_LDFLAGS): Likewise.
4797 (hashsum_mod_SOURCES): New variable.
4798 (hashsum_mod_CFLAGS): Likewise.
4799 (hashsum_mod_LDFLAGS): Likewise.
4800 (pbkdf2_mod_SOURCES): New variable.
4801 (pbkdf2_mod_CFLAGS): Likewise.
4802 (pbkdf2_mod_LDFLAGS): Likewise.
4803 (password_pbkdf2_mod_SOURCES): New variable.
4804 (password_pbkdf2_mod_CFLAGS): Likewise.
4805 (password_pbkdf2_mod_LDFLAGS): Likewise.
4806 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4807 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4808 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4809 Include conf/gcry.rmk.
4810 * include/grub/auth.h: Rewritten.
4811 * include/grub/crypto.h: New file.
4812 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4813 * include/grub/normal.h (read_crypto_list): New prototype.
4814 * lib/crypto.c: New file.
4815 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4816 * lib/pbkdf2.c: Likewise.
4817 * normal/auth.c (grub_auth_strcmp): Removed.
4818 (grub_iswordseparator): Likewise.
4819 (grub_auth_strword): Likewise.
4820 (is_authenticated): Use grub_strword.
4821 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4822 and grub_strword. Pass entered password to authentication callback.
4823 * normal/crypto.c: New file.
4824 * normal/main.c: Call read_crypto_list.
4825 * util/grub-mkpasswd-pbkdf2.c: New file.
4826 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4827
4828 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4829
4830 Fix descent and ascent calculation.
4831
4832 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4833 (options): New option "asce".
4834 (usage): Likewise.
4835 (add_char): Ignore invalid glyphs for descent calculation.
4836 Calculate ascent from actual content.
4837 (print_glyphs): Use 'asce'.
4838 (write_font): Likewise. Allow ascent override.
4839 (main): Handle "asce" option.
4840
4841 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4842
4843 * kern/err.c: Include `<grub/i18n.h>'.
4844 (grub_print_error): Add full stop. Gettextizze.
4845 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4846 (grub_bsd_load_elf): Capitalise ELF.
4847 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4848 (grub_cmd_freebsd_module): Likewise.
4849 (grub_cmd_freebsd_module_elf): Likewise.
4850 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4851
4852 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4853
4854 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4855 * commands/search_file.c (HELP_MESSAGE): New macro.
4856 * commands/search_label.c (HELP_MESSAGE): Likewise.
4857 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4858 * po/POTFILES: Add `commands/search_file.c',
4859 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4860 `commands/search.c'.
4861
4862 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4863
4864 * config.rpath: Update from Gnulib.
4865
4866 2010-01-05 Yves Blusseau <blusseau@zetam.org>
4867
4868 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4869
4870 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4871
4872 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4873
4874 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4875
4876 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4877 arguments to fread so that we get a return value in bytes, rather
4878 than something that will normally be rounded down to 0.
4879 Adjust error handling to avoid producing garbage when size_t is not
4880 the same size as long long.
4881
4882 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4883
4884 * util/mkisofs/write.c (padblock_write): Check return value of
4885 fread.
4886
4887 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4888
4889 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4890 floppy images now.
4891
4892 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4893
4894 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4895
4896 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4897 instead of manual alignment.
4898 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4899 verbose). Avoid attempts to read past end of the device
4900 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4901 but GRUB_DISK_CACHE_SIZE may exceed that).
4902
4903 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4904
4905 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4906 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4907 it to upper layer.
4908
4909 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4912 New constant.
4913 (grub_efi_piwg_device_path): New structure
4914 (grub_efi_piwg_device_path_t): New type.
4915 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4916 (devpath_1): Transform to a structure. All users updated.
4917 (devpath_2): Likewise.
4918 (devpath_3): Likewise.
4919 (devpath_4): Likewise.
4920 (devpath_5): Likewise.
4921
4922 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 * loader/efi/appleloader.c: Restored. Update all users.
4925
4926 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4927
4928 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4929
4930 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4931 (struct boot_blocklist): Move from here ...
4932 * include/grub/i386/pc/boot.h [ASM_FILE]
4933 (struct grub_boot_blocklist): ... to here. Update all users.
4934 (setup): Only initialize `start' member of `first_block'
4935 structure. Add assert() calls to verify the other members.
4936
4937 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4938 (generate_image): Fix broken blocklist length initialization.
4939 Add assert() call to verify blocklist `segment' field.
4940
4941 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4942
4943 * loader/efi/appleloader.c: Remove. Update all users.
4944
4945 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4946
4947 * boot/i386/pc/boot.S: Update copyright year.
4948 * boot/i386/pc/cdboot.S: Likewise.
4949 * boot/i386/pc/diskboot.S: Likewise.
4950 * boot/i386/pc/lnxboot.S: Likewise.
4951 * boot/i386/pc/pxeboot.S: Likewise.
4952 * bus/pci.c: Likewise.
4953 * commands/cmp.c: Likewise.
4954 * commands/help.c: Likewise.
4955 * commands/hexdump.c: Likewise.
4956 * commands/i386/pc/halt.c: Likewise.
4957 * commands/i386/pc/play.c: Likewise.
4958 * commands/i386/pc/vbeinfo.c: Likewise.
4959 * commands/ls.c: Likewise.
4960 * commands/test.c: Likewise.
4961 * disk/dmraid_nvidia.c: Likewise.
4962 * disk/i386/pc/biosdisk.c: Likewise.
4963 * disk/ieee1275/nand.c: Likewise.
4964 * disk/ieee1275/ofdisk.c: Likewise.
4965 * disk/lvm.c: Likewise.
4966 * disk/raid.c: Likewise.
4967 * disk/raid6_recover.c: Likewise.
4968 * disk/scsi.c: Likewise.
4969 * fs/affs.c: Likewise.
4970 * fs/cpio.c: Likewise.
4971 * fs/ext2.c: Likewise.
4972 * fs/hfs.c: Likewise.
4973 * fs/iso9660.c: Likewise.
4974 * fs/ntfs.c: Likewise.
4975 * fs/sfs.c: Likewise.
4976 * fs/udf.c: Likewise.
4977 * fs/ufs.c: Likewise.
4978 * fs/xfs.c: Likewise.
4979 * gencmdlist.sh: Likewise.
4980 * genmk.rb: Likewise.
4981 * include/grub/disk.h: Likewise.
4982 * include/grub/efi/api.h: Likewise.
4983 * include/grub/efi/efi.h: Likewise.
4984 * include/grub/efi/pe32.h: Likewise.
4985 * include/grub/elf.h: Likewise.
4986 * include/grub/fs.h: Likewise.
4987 * include/grub/i386/at_keyboard.h: Likewise.
4988 * include/grub/i386/pc/memory.h: Likewise.
4989 * include/grub/i386/pc/vbe.h: Likewise.
4990 * include/grub/i386/pci.h: Likewise.
4991 * include/grub/i386/tsc.h: Likewise.
4992 * include/grub/ieee1275/ieee1275.h: Likewise.
4993 * include/grub/ntfs.h: Likewise.
4994 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
4995 * include/grub/sparc64/libgcc.h: Likewise.
4996 * include/grub/symbol.h: Likewise.
4997 * include/grub/types.h: Likewise.
4998 * include/multiboot2.h: Likewise.
4999 * io/gzio.c: Likewise.
5000 * kern/device.c: Likewise.
5001 * kern/disk.c: Likewise.
5002 * kern/efi/efi.c: Likewise.
5003 * kern/efi/mm.c: Likewise.
5004 * kern/elf.c: Likewise.
5005 * kern/file.c: Likewise.
5006 * kern/i386/dl.c: Likewise.
5007 * kern/i386/pc/init.c: Likewise.
5008 * kern/i386/pc/startup.S: Likewise.
5009 * kern/ieee1275/ieee1275.c: Likewise.
5010 * kern/ieee1275/init.c: Likewise.
5011 * kern/main.c: Likewise.
5012 * kern/mm.c: Likewise.
5013 * kern/powerpc/dl.c: Likewise.
5014 * kern/sparc64/dl.c: Likewise.
5015 * kern/x86_64/dl.c: Likewise.
5016 * lib/hexdump.c: Likewise.
5017 * loader/efi/appleloader.c: Likewise.
5018 * loader/i386/ieee1275/linux.c: Likewise.
5019 * loader/i386/pc/chainloader.c: Likewise.
5020 * loader/i386/pc/linux.c: Likewise.
5021 * loader/i386/pc/multiboot2.c: Likewise.
5022 * loader/ieee1275/multiboot2.c: Likewise.
5023 * loader/multiboot2.c: Likewise.
5024 * loader/multiboot_loader.c: Likewise.
5025 * loader/powerpc/ieee1275/linux.c: Likewise.
5026 * normal/completion.c: Likewise.
5027 * normal/menu_entry.c: Likewise.
5028 * partmap/apple.c: Likewise.
5029 * util/grub.d/10_hurd.in: Likewise.
5030 * util/hostfs.c: Likewise.
5031 * video/readers/png.c: Likewise.
5032
5033 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5034
5035 * include/grub/misc.h (GNUC_PREREQ): New macro.
5036 (ATTRIBUTE_ERROR): New macro.
5037 * include/grub/list.h (grub_bad_type_cast_real): Use
5038 ATTRIBUTE_ERROR.
5039
5040 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5041
5042 * normal/menu_text.c (print_message): Change messages.
5043
5044 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5045
5046 * normal/menu_entry.c (store_completion): Gettextizze.
5047
5048 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5049
5050 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5051
5052 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5053
5054 * po/POTFILES: Sort correctly.
5055
5056 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5057
5058 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5059 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5060 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5061 full stop.
5062 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5063 summary. Gettextizze the strings.
5064 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5065 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5066 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5067 full stop.
5068 (GRUB_MOD_INIT): Remove command name from summary.
5069 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5070 summary.
5071 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5072 * term/i386/pc/serial.c (options): Add full stops.
5073 (GRUB_MOD_INIT): Remove command name from the summary.
5074
5075 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5076
5077 * commands/acpi.c: Gettextizze help strings and/or options. Include
5078 `grub/i18n.h' if needed.
5079 * commands/blocklist.c: Likewise.
5080 * commands/boot.c: Likewise.
5081 * commands/cat.c: Likewise.
5082 * commands/cmp.c: Likewise.
5083 * commands/configfile.c: Likewise.
5084 * commands/crc.c: Likewise.
5085 * commands/date.c: Likewise.
5086 * commands/echo.c: Likewise.
5087 * commands/efi/fixvideo.c: Likewise.
5088 * commands/efi/loadbios.c: Likewise.
5089 * commands/gptsync.c: Likewise.
5090 * commands/halt.c: Likewise.
5091 * commands/handler.c: Likewise.
5092 * commands/hdparm.c: Likewise.
5093 * commands/hexdump.c: Likewise.
5094 * commands/i386/cpuid.c: Likewise.
5095 * commands/i386/pc/drivemap.c: Likewise.
5096 * commands/i386/pc/halt.c: Likewise.
5097 * commands/i386/pc/pxecmd.c: Likewise.
5098 * commands/i386/pc/vbeinfo.c: Likewise.
5099 * commands/i386/pc/vbetest.c: Likewise.
5100 * commands/ieee1275/suspend.c: Likewise.
5101 * commands/keystatus.c: Likewise.
5102 * commands/loadenv.c: Likewise.
5103 * commands/ls.c: Likewise.
5104 * commands/lsmmap.c: Likewise.
5105 * commands/lspci.c: Likewise.
5106 * commands/memrw.c: Likewise.
5107 * commands/minicmd.c: Likewise.
5108 * commands/parttool.c: Likewise.
5109 * commands/password.c: Likewise.
5110 * commands/probe.c: Likewise.
5111 * commands/read.c: Likewise.
5112 * commands/reboot.c: Likewise.
5113 * commands/search.c: Likewise.
5114 * commands/sleep.c: Likewise.
5115 * commands/test.c: Likewise.
5116 * commands/true.c: Likewise.
5117 * commands/usbtest.c: Likewise.
5118 * commands/videotest.c: Likewise.
5119 * commands/xnu_uuid.c: Likewise.
5120 * disk/loopback.c: Likewise.
5121 * hello/hello.c: Likewise.
5122 * loader/i386/bsd.c: Likewise.
5123 * term/i386/pc/serial.c: Likewise.
5124 * po/POTFILES: Add new files.
5125
5126 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5127
5128 * term/i386/pc/at_keyboard.c
5129 (keyboard_controller_wait_untill_ready): Rename to ...
5130 (keyboard_controller_wait_until_ready): ... this. Update all users.
5131
5132 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5133
5134 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5135 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5136 string using string width.
5137 * normal/menu_text.c (grub_print_message_indented): Use
5138 grub_print_spaces and not print_spaces.
5139 (print_timeout): Likewise.
5140 (print_spaces): Move to...
5141 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5142
5143 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5144
5145 Import from Gnulib.
5146
5147 * gnulib/getdelim.c: New file.
5148 * gnulib/getline.c: Likewise.
5149
5150 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5151
5152 * include/grub/list.h (grub_assert_fail): Removed.
5153 (grub_bad_type_cast_real): New function.
5154 (grub_bad_type_cast): New macro.
5155 (GRUB_AS_LIST): Use grub_bad_type_cast.
5156 (GRUB_AS_LIST_P): Likewise.
5157 (GRUB_AS_NAMED_LIST): Likewise.
5158 (GRUB_AS_NAMED_LIST_P): Likewise.
5159 (GRUB_AS_PRIO_LIST): Likewise.
5160 (GRUB_AS_PRIO_LIST_P): Likewise.
5161 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5162
5163 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5166 Fix syntax error.
5167
5168 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5169
5170 * configure.ac: Check for TARGET_CFLAGS initialization before we
5171 initialize it ourselves (sigh).
5172 Move a few modifications to TARGET_CFLAGS to be unconditional
5173 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5174 eh_frame)
5175
5176 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5177 * term/i386/pc/at_keyboard.c
5178 (keyboard_controller_wait_untill_ready): Likewise.
5179 (keyboard_controller_led): Rename `led_status' paramter to avoid
5180 name conflict.
5181
5182 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5183
5184 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5185 quotes.
5186
5187 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5190
5191 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * normal/menu_text.c (grub_print_message_indented): Prevent
5194 past-the-end-of-array dereference.
5195
5196 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5199 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5200
5201 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5202
5203 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5204 * normal/main.c (grub_normal_read_line): Remove a space from the
5205 default prompt.
5206
5207 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5208
5209 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5210 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5211 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5212 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5213 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5214 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5215 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5216
5217 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5218
5219 * video/readers/jpeg.c (cmd): Declare.
5220 (grub_cmd_jpegtest): Use `grub_command_t' type.
5221 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5222 Assign to `cmd'.
5223 (GRUB_MOD_FINI): Use `cmd' to unregister.
5224 * video/readers/png.c (cmd): Declare.
5225 (grub_cmd_pngtest): Use `grub_command_t' type.
5226 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5227 Assign to `cmd'.
5228 (GRUB_MOD_FINI): Use `cmd' to unregister.
5229 * video/readers/tga.c (cmd): Declare.
5230 (grub_cmd_tgatest): Use `grub_command_t' type.
5231 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5232 Assign to `cmd'.
5233 (GRUB_MOD_FINI): Use `cmd' to unregister.
5234
5235 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5236
5237 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5238 stops.
5239 * kern/corecmd.c (grub_register_core_commands): Likewise.
5240 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5241 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5242 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5243 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5244 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5245 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5246 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5247 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5248 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5249 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5250 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5251 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5252 * normal/handler.c (insert_handler): Likewise.
5253 * normal/main.c (GRUB_MOD_INIT): Likewise.
5254 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5255
5256 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5257
5258 * commands/help.c (grub_cmd_help): Print the command name before the
5259 summary.
5260 (GRUB_MOD_INIT): Remove command name from the summary.
5261 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5262 string as summary.
5263 * lib/arg.c (find_long): Print the command name before the summary.
5264 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5265 summary.
5266 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5267 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5268 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5269 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5270 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5271 * commands/date.c (GRUB_MOD_INIT): Likewise.
5272 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5273 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5274 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5275 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5276 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5277 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5278 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5279 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5280 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5281 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5282 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5283 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5284 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5285 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5286 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5287 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5288 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5289 * commands/password.c (GRUB_MOD_INIT): Likewise.
5290 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5291 * commands/read.c (GRUB_MOD_INIT): Likewise.
5292 * commands/search.c (GRUB_MOD_INIT): Likewise.
5293 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5294 * commands/test.c (GRUB_MOD_INIT): Likewise.
5295 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5296 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5297 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5298 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5299 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5300 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5301 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5302 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5303 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5304 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5305 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5306 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5307 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5308 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5309
5310 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 Use search command for preliminar UUID search.
5313
5314 * commands/search.c: Split into ...
5315 * commands/search_wrap.c: ...this
5316 * commands/search.c: ...and this.
5317 * commands/search_file.c: New file.
5318 * commands/search_label.c: New file.
5319 * commands/search_uuid.c: New file.
5320 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5321 Add commands/search_wrap.c, commands/search_file.c,
5322 commands/search_label.c and commands/search_uuid.c.
5323 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5324 (search_mod_SOURCES): Set to commands/search_wrap.c.
5325 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5326 search_label.mod.
5327 (search_fs_file_mod_SOURCES): New variable.
5328 (search_fs_file_mod_CFLAGS): Likewise.
5329 (search_fs_file_mod_LDFLAGS): Likewise.
5330 (search_label_mod_SOURCES): Likewise.
5331 (search_label_mod_CFLAGS): Likewise.
5332 (search_label_mod_LDFLAGS): Likewise.
5333 (search_fs_uuid_mod_SOURCES): New variable.
5334 (search_fs_uuid_mod_CFLAGS): Likewise.
5335 (search_fs_uuid_mod_LDFLAGS): Likewise.
5336 (fs_file_mod_SOURCES): Removed.
5337 (fs_file_mod_CFLAGS): Likewise.
5338 (fs_file_mod_LDFLAGS): Likewise.
5339 (fs_uuid_mod_SOURCES): Removed.
5340 (fs_uuid_mod_CFLAGS): Likewise.
5341 (fs_uuid_mod_LDFLAGS): Likewise.
5342 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5343 Set to util/grub-install.in.
5344 * disk/fs_file.c: Removed.
5345 * disk/fs_uuid.c: Likewise.
5346 * include/grub/search.h: New file.
5347 * util/grub-install.in: Handle sparc64.
5348 Create and use load.cfg.
5349 * util/sparc64/ieee1275/grub-install.in: Removed.
5350
5351 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5354 Ignore return status if CF is cleared.
5355 (grub_biosdisk_get_diskinfo_standard): Likewise.
5356
5357 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5358
5359 * term/i386/pc/at_keyboard.c
5360 (keyboard_controller_wait_untill_ready): New function.
5361 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5362 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5363 for keyboard polling, rather than duplicate the same loop. This
5364 saves a few bytes in code size.
5365
5366 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 Support for (pxe[:server[:gateway]]) syntax and
5369 use environment variable for PXE.
5370
5371 * commands/i386/pc/pxecmd.c (options): Removed.
5372 (print_ip): Removed.
5373 (grub_cmd_pxe): Removed
5374 (grub_cmd_pxe_unload): New function.
5375 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5376 (grub_pxe_your_ip): Made static.
5377 (grub_pxe_default_server_ip): Likewise.
5378 (grub_pxe_default_gateway_ip): Likewise.
5379 (grub_pxe_blksize): Likewise.
5380 (parse_ip): New function.
5381 (grub_pxe_open): Support server and gateway specification.
5382 (grub_pxe_close): Free disk->data.
5383 (grub_pxefs_open): Use disk->data.
5384 (grub_pxefs_read): Likewise.
5385 (grub_env_write_readonly): New function.
5386 (set_mac_env): Likewise.
5387 (set_env_limn_ro): Likewise.
5388 (parse_dhcp_vendor): Likewise.
5389 (grub_pxe_detect): Set the environment variables.
5390 (set_ip_env): New function.
5391 (write_ip_env): Likewise.
5392 (grub_env_write_pxe_default_server): Likewise.
5393 (grub_env_write_pxe_default_gateway): Likewise.
5394 (grub_env_write_pxe_blocksize): Likewise.
5395 (GRUB_MOD_INIT(pxe)): Set environment variables.
5396 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5397 (grub_pxe_mac_addr_t): ... this. All users updated.
5398 (grub_pxe_your_ip): Removed.
5399 (grub_pxe_server_ip): Likewise.
5400 (grub_pxe_gateway_ip): Likewise.
5401 (grub_pxe_blksize): Likewise.
5402
5403 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5404
5405 * commands/help.c: Include `<grub/i18n.h>'.
5406 (grub_cmd_help): Gettextizze.
5407 (GRUB_MOD_INIT): Likewise.
5408 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5409 (GRUB_MOD_INIT): Gettextizze.
5410 * commands/search.c: Include `<grub/i18n.h>'.
5411 (options): Gettextizze.
5412 (GRUB_MOD_INIT): Gettextizze.
5413 * lib/arg.c: Include `<grub/i18n.h>'.
5414 (help_options): Gettextizze.
5415 (find_long): Likewise.
5416 (grub_arg_show_help): Likewise.
5417 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5418 (read_command_list): Gettextizze.
5419 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5420 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5421
5422 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5423
5424 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5425 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5426 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5427 (led_status): New variable.
5428 (keyboard_controller_led): New function.
5429 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5430 update led status for caps lock, num lock and scroll lock.
5431
5432 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5433
5434 * util/hostdisk.c (open_device): Fix a comment.
5435
5436 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5437
5438 * util/grub-install.in (host_os): New variable.
5439 * util/i386/efi/grub-install.in (host_os): Likewise.
5440
5441 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5442
5443 * util/mkisofs/write.c (padblock_write): Abort when given an
5444 excedingly large embed image, instead of silently truncating it.
5445
5446 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5447
5448 * include/multiboot.h: Indentation fixes.
5449
5450 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5451
5452 * include/multiboot.h (struct multiboot_aout_symbol_table)
5453 (struct multiboot_elf_section_header_table): New structure
5454 declarations (stolen from GRUB Legacy).
5455 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5456 table information.
5457
5458 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5459 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5460 type aliases.
5461
5462 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5463
5464 * include/multiboot.h: Make comments src2texi-friendly.
5465
5466 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5467
5468 For consistency with [multiboot]/docs/boot.S.
5469
5470 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5471 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5472 (MULTIBOOT_MAGIC2): Rename from this ...
5473 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5474
5475 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5476
5477 * include/multiboot.h: Remove `<grub/types.h>'.
5478 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5479 types. Update all users.
5480
5481 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5482
5483 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5484 `couldn't' and `can not' by `cannot'.
5485 * commands/i386/pc/drivemap.c: Likewise.
5486 * disk/ata.c: Likewise.
5487 * disk/ieee1275/nand.c: Likewise.
5488 * fs/affs.c: Likewise.
5489 * fs/fat.c: Likewise.
5490 * fs/hfs.c: Likewise.
5491 * fs/hfsplus.c: Likewise.
5492 * fs/iso9660.c: Likewise.
5493 * fs/jfs.c: Likewise.
5494 * fs/minix.c: Likewise.
5495 * fs/reiserfs.c: Likewise.
5496 * fs/sfs.c: Likewise.
5497 * fs/udf.c: Likewise.
5498 * fs/ufs.c: Likewise.
5499 * fs/xfs.c: Likewise.
5500 * loader/powerpc/ieee1275/linux.c: Likewise.
5501 * loader/sparc64/ieee1275/linux.c: Likewise.
5502 * util/grub-probe.c: Likewise.
5503 * util/misc.c: Likewise.
5504
5505 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5506
5507 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5508 grub_errno calls.
5509 * commands/acpi.c: Likewise.
5510 * commands/blocklist.c: Likewise.
5511 * commands/efi/loadbios.c: Likewise.
5512 * commands/i386/pc/drivemap.c: Likewise.
5513 * commands/loadenv.c: Likewise.
5514 * commands/memrw.c: Likewise.
5515 * commands/password.c: Likewise.
5516 * commands/videotest.c: Likewise.
5517 * disk/ata.c: Likewise.
5518 * disk/ata_pthru.c: Likewise.
5519 * disk/dmraid_nvidia.c: Likewise.
5520 * disk/ieee1275/nand.c: Likewise.
5521 * disk/ieee1275/ofdisk.c: Likewise.
5522 * disk/loopback.c: Likewise.
5523 * disk/lvm.c: Likewise.
5524 * disk/mdraid_linux.c: Likewise.
5525 * disk/raid.c: Likewise.
5526 * disk/raid6_recover.c: Likewise.
5527 * disk/scsi.c: Likewise.
5528 * efiemu/main.c: Likewise.
5529 * efiemu/mm.c: Likewise.
5530 * efiemu/pnvram.c: Likewise.
5531 * efiemu/symbols.c: Likewise.
5532 * font/font.c: Likewise.
5533 * fs/cpio.c: Likewise.
5534 * fs/hfsplus.c: Likewise.
5535 * fs/iso9660.c: Likewise.
5536 * fs/jfs.c: Likewise.
5537 * fs/minix.c: Likewise.
5538 * fs/ntfs.c: Likewise.
5539 * fs/ntfscomp.c: Likewise.
5540 * fs/reiserfs.c: Likewise.
5541 * fs/ufs.c: Likewise.
5542 * fs/xfs.c: Likewise.
5543 * gettext/gettext.c: Likewise.
5544 * include/grub/auth.h: Likewise.
5545 * kern/elf.c: Likewise.
5546 * kern/file.c: Likewise.
5547 * kern/ieee1275/init.c: Likewise.
5548 * kern/ieee1275/mmap.c: Likewise.
5549 * kern/ieee1275/openfw.c: Likewise.
5550 * kern/powerpc/dl.c: Likewise.
5551 * kern/sparc64/dl.c: Likewise.
5552 * lib/arg.c: Likewise.
5553 * loader/i386/bsd.c: Likewise.
5554 * loader/i386/bsdXX.c: Likewise.
5555 * loader/i386/efi/linux.c: Likewise.
5556 * loader/i386/efi/xnu.c: Likewise.
5557 * loader/i386/ieee1275/linux.c: Likewise.
5558 * loader/i386/linux.c: Likewise.
5559 * loader/i386/multiboot.c: Likewise.
5560 * loader/i386/pc/linux.c: Likewise.
5561 * loader/i386/pc/multiboot2.c: Likewise.
5562 * loader/i386/xnu.c: Likewise.
5563 * loader/ieee1275/multiboot2.c: Likewise.
5564 * loader/macho.c: Likewise.
5565 * loader/machoXX.c: Likewise.
5566 * loader/multiboot2.c: Likewise.
5567 * loader/multiboot_loader.c: Likewise.
5568 * loader/powerpc/ieee1275/linux.c: Likewise.
5569 * loader/sparc64/ieee1275/linux.c: Likewise.
5570 * loader/xnu.c: Likewise.
5571 * loader/xnu_resume.c: Likewise.
5572 * mmap/i386/pc/mmap.c: Likewise.
5573 * normal/menu_viewer.c: Likewise.
5574 * partmap/acorn.c: Likewise.
5575 * partmap/amiga.c: Likewise.
5576 * partmap/apple.c: Likewise.
5577 * script/lexer.c: Likewise.
5578 * term/gfxterm.c: Likewise.
5579 * term/i386/pc/serial.c: Likewise.
5580 * term/i386/pc/vga.c: Likewise.
5581 * term/ieee1275/ofconsole.c: Likewise.
5582 * term/terminfo.c: Likewise.
5583 * video/bitmap.c: Likewise.
5584 * video/efi_gop.c: Likewise.
5585 * video/efi_uga.c: Likewise.
5586 * video/fb/video_fb.c: Likewise.
5587 * video/i386/pc/vbe.c: Likewise.
5588 * video/readers/tga.c: Likewise.
5589 * video/video.c: Likewise.
5590
5591 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5592
5593 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5594 * commands/lspci.c: Likewise.
5595 * commands/probe.c: Likewise.
5596 * commands/xnu_uuid.c: Likewise.
5597 * conf/i386-coreboot.rmk: Likewise.
5598 * conf/i386-efi.rmk: Likewise.
5599 * conf/i386-ieee1275.rmk: Likewise.
5600 * conf/i386-pc.rmk: Likewise.
5601 * conf/powerpc-ieee1275.rmk: Likewise.
5602 * conf/sparc64-ieee1275.rmk: Likewise.
5603 * conf/x86_64-efi.rmk: Likewise.
5604 * fs/i386/pc/pxe.c: Likewise.
5605 * gettext/gettext.c: Likewise.
5606 * include/grub/efi/graphics_output.h: Likewise.
5607 * include/grub/i386/pc/memory.h: Likewise.
5608 * kern/env.c: Likewise.
5609 * kern/i386/qemu/startup.S: Likewise.
5610 * lib/i386/pc/biosnum.c: Likewise.
5611 * lib/i386/relocator.c: Likewise.
5612 * lib/i386/relocator_asm.S: Likewise.
5613 * lib/relocator.c: Likewise.
5614 * loader/i386/bsd.c: Likewise.
5615 * loader/i386/multiboot.c: Likewise.
5616 * loader/i386/pc/chainloader.c: Likewise.
5617 * loader/i386/xnu.c: Likewise.
5618 * loader/xnu.c: Likewise.
5619 * normal/main.c: Likewise.
5620 * normal/menu_text.c: Likewise.
5621 * util/getroot.c: Likewise.
5622 * util/grub-mkconfig_lib.in: Likewise.
5623 * util/grub.d/00_header.in: Likewise.
5624 * util/i386/pc/grub-mkimage.c: Likewise.
5625 * util/mkisofs/eltorito.c: Likewise.
5626 * util/mkisofs/exclude.h: Likewise.
5627 * util/mkisofs/hash.c: Likewise.
5628 * util/mkisofs/iso9660.h: Likewise.
5629 * util/mkisofs/joliet.c: Likewise.
5630 * util/mkisofs/mkisofs.c: Likewise.
5631 * util/mkisofs/mkisofs.h: Likewise.
5632 * util/mkisofs/multi.c: Likewise.
5633 * util/mkisofs/name.c: Likewise.
5634 * util/mkisofs/rock.c: Likewise.
5635 * util/mkisofs/tree.c: Likewise.
5636 * util/mkisofs/write.c: Likewise.
5637 * video/efi_gop.c: Likewise.
5638
5639 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5640
5641 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5642 size counting.
5643
5644 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5645
5646 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5647 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5648
5649 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5652 (GRUB_MOD_INIT(memrw)): Update help line.
5653
5654 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5657 Use grub_extcmd_t. All users updated.
5658 (options): New variable.
5659 (grub_cmd_read): Restructure for readability. Support "-v" option.
5660 (grub_cmd_write): Restructure for readability.
5661
5662 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5663
5664 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5665
5666 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5667
5668 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5669 with the actual contents of the correspondending make variable.
5670 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5671 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5672 specifying `*.lst' and `efiemu??.o'
5673
5674 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5675
5676 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5677 after function name.
5678 Noticed by Rene Engelhard <rene@debian.org>.
5679
5680 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5681
5682 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5683 (options): New variable.
5684 (iospace): Likewise.
5685 (grub_lspci_iter): List IO spaces if "-i" was given.
5686 (grub_cmd_lspci): Parse options.
5687 (GRUB_MOD_INIT(lspci)): Use extcmd.
5688 (GRUB_MOD_FINI(lspci)): Likewise.
5689
5690 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5691
5692 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5693 `function' keyword.
5694 Patch by Tony Mancill <tmancill@debian.org>.
5695
5696 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5699 (grub_uhci_portstatus): Likewise.
5700 (grub_uhci_portstatus): Add necessary delay.
5701 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5702
5703 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5704
5705 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5706 (GRUB_MOD_INIT): Likewise.
5707 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5708 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5709 * commands/echo.c (options): Fix capitalizations and/or full stops.
5710 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5711 (enable_rom_area): Likewise.
5712 (GRUB_MOD_INIT): Likewise.
5713 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5714 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5715 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5716 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5717 * commands/hexdump.c (options): Likewise.
5718 * commands/i386/cpuid.c (options): Likewise.
5719 (GRUB_MOD_INIT): Likewise.
5720 * commands/i386/pc/drivemap.c (options): Likewise.
5721 (GRUB_MOD_INIT): Likewise.
5722 * commands/i386/pc/halt (options): Likewise.
5723 (GRUB_MOD_INIT): Likewise.
5724 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5725 * commands/i386/pc/pxecmd.c (options): Likewise.
5726 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5727 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5728 * commands/keystatus.c (options): Likewise.
5729 (GRUB_MOD_INIT): Likewise.
5730 * commands/loadenv.c (options): Likewise.
5731 * commands/ls.c (options): Likewise.
5732 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5733 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5734 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5735 * commands/parttool.c (helpmsg): Likewise.
5736 * commands/probe.c (options): Likewise.
5737 * commands/read.c (GRUB_MOD_INIT): Likewise.
5738 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5739 * commands/search.c (options): Likewise.
5740 * commands/sleep.c (options): Likewise.
5741 * commands/test.c (GRUB_MOD_INIT): Likewise.
5742 * commands/true.c (GRUB_MOD_INIT): Likewise.
5743 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5744 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5745 * lib/arg.c (help_options): Likewise.
5746 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5747 `$(XGETTEXT)'.
5748 * po/POTFILES: Add `commands/loadenv.c'.
5749
5750 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
5751
5752 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
5753 instead of specifying them explicit.
5754
5755 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5756
5757 * NEWS: Add grub-probe support for GNU/Hurd.
5758
5759 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5760
5761 * NEWS: gettext was added after 1.97.
5762
5763 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5764
5765 * util/mkisofs/msdos_partition.h: New file (based on
5766 include/grub/msdos_partition.h).
5767 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5768 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5769 (ld_options, main): Recognize --protective-msdos-label.
5770 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5771 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5772 (padblock_write): If `use_protective_msdos_label' is set, patch a
5773 protective DOS-style label in the output image.
5774
5775 * util/grub-mkrescue.in: Use --protective-msdos-label.
5776
5777 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5778
5779 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5780 boot.
5781
5782 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5783
5784 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5785 variables.
5786 (ld_options, main): Recognize `--embedded-boot'.
5787 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5788 declarations.
5789 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5790 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5791 (padblock_write): Likewise. Rewrite to support embedded boot image.
5792
5793 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5794 for BIOS-based disk boot instead of only ElTorito.
5795
5796 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5797
5798 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5799 build (not needed for bootstrap).
5800
5801 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5802
5803 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5804 from i386-pc build (not needed for bootstrap).
5805 Rewrite a pair of strings.
5806
5807 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5808
5809 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5810
5811 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5814
5815 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5816
5817 * kern/env.c (grub_env_context_open): Mark exported variable for
5818 reexport.
5819
5820 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5821
5822 * kern/env.c (grub_env_export): Create nonexistent variables before
5823 exporting.
5824
5825 2009-12-20 Carles Pina i Estany <carles@pina.cat>
5826
5827 * include/grub/auth.h: Include `<grub/i18n.h>'.
5828 (GRUB_GET_PASSWORD): Gettextizze string.
5829 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5830 menu_text.c.
5831 (grub_utf8_to_ucs4_alloc): Fix indentation.
5832 (grub_print_ucs4): Likewise.
5833 (grub_getstringwidth): Likewise.
5834 (print_message_indented): New declaration.
5835 * normal/auth.c: Include `<grub/i18n.h>'.
5836 (grub_auth_check_authentication): Gettexttize string.
5837 * normal/cmdline.c: Include `<grub/i18n.h>'.
5838 (grub_cmdline_get): Gettextizze.
5839 * normal/color.c: Include `<grub/i18n.h>'.
5840 (grub_parse_color_name_pair): Gettexttize strings.
5841 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5842 string (use `print_message_indented').
5843 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5844 `include/grub/normal.h'.
5845 (print_message_indented): Renamed to ...
5846 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5847 used in normal/main.c).
5848 (print_message): Use `grub_print_message_indented' instead of
5849 `print_message_indented'.
5850 (print_timeout): Likewise.
5851 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5852 (grub_normal_print_device_info): Gettexttize strings.
5853 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5854
5855 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5858 of arguments. Return number of tokens and not arguments. All users
5859 updated.
5860
5861 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5862
5863 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5864 non-MSDOS paritions.
5865
5866 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5867
5868 * include/grub/types.h (UNUSED): Removed since it conflicts with
5869 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5870 Reported by Grégoire Sutre.
5871
5872 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5873
5874 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5875 (grub_print_ucs4_alloc): Likewise.
5876 (grub_getstringwidth): Likewise.
5877 * normal/main.c (grub_normal_init_page): Gettextize version string.
5878 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5879 (getstringwidth): Renamed to ...
5880 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5881 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5882 (grub_print_ucs4): Remove `static' qualifer (now used in
5883 normal/main.c).
5884 * po/POTFILES: Add normal/main.c.
5885
5886 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5887
5888 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5889 (print_message_indented): Add `margin_left' and `margin_right'
5890 parameters.
5891 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5892 strings.
5893 (print_timeout): Use `print_message_indented' to print the message.
5894 Deletes `second_stage' parameter.
5895 (run_menu): Update `print_timeout' calls.
5896
5897 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 Fix console palette on OpenFirmware.
5900
5901 * term/ieee1275/ofconsole.c (MAX): Removed.
5902 (colors): Redone based on VGA palette.
5903 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5904 colors are supported.
5905 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5906
5907 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 Fix potential EfiEmu double prepare.
5910
5911 * efiemu/main.c (prepared): New variable
5912 (grub_efiemu_unload): Set prepare to '0'.
5913 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5914
5915 set_virtual_address_map support.
5916
5917 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5918 prototype.
5919 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5920 prototype.
5921 (grub_efiemu_crc32): Likewise.
5922 (grub_efiemu_crc64): Likewise.
5923 (grub_efiemu_set_virtual_address_map): Likewise.
5924 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5925 New definition.
5926 (grub_autoefi_set_virtual_address_map): Likewise.
5927 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5928 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5929 Restructure flow to accomodate it.
5930 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5931 (grub_efiemu_crc): Recompute CRC32.
5932 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5933 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5934 * efiemu/symbols.c (relocated_handle): New variable.
5935 (grub_efiemu_free_syms): Free relocated_handle.
5936 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5937 (grub_efiemu_write_sym_markers): New function.
5938 (grub_efiemu_set_virtual_address_map): Likewise.
5939
5940 Newer XNU parameters.
5941
5942 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5943 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5944 (grub_xnu_fill_devicetree): New prototype.
5945 (grub_xnu_heap_real_start): New variable.
5946 * loader/xnu.c (get_name_ptr): New function.
5947 (grub_xnu_load_driver): Fill namelen and name.
5948
5949 64-bit xnu support.
5950
5951 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
5952 and 'loader/macho64.c'.
5953 * conf/i386-pc.rmk: Likewise.
5954 * conf/x86_64-efi.rmk: Likewise.
5955 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
5956 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
5957 * include/grub/macho.h (grub_macho_segment64): New structure.
5958 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
5959 (grub_macho_size32): ... to this.
5960 (grub_macho32_get_entry_point): Renamed from ...
5961 (grub_macho_get_entry_point32): ... to this.
5962 (grub_macho_contains_macho64): New prototype.
5963 (grub_macho_size64): Likewise.
5964 (grub_macho_get_entry_point64): Likewise.
5965 (grub_macho32_load): Renamed from ...
5966 (grub_macho_load32): ... to this.
5967 (grub_macho32_filesize): Renamed from ...
5968 (grub_macho_filesize32): ... to this.
5969 (grub_macho32_readfile): Renamed from ...
5970 (grub_macho_readfile32): ... to this.
5971 (grub_macho_filesize64): New prototype.
5972 (grub_macho_readfile64): Likewise.
5973 (grub_macho_parse32): Likewise.
5974 (grub_macho_parse64): Likewise.
5975 * loader/macho.c: Split into ...
5976 * loader/machoXX.c: ... and this. Replace 32 with XX.
5977 * loader/macho32.c: New file.
5978 * loader/macho64.c: Likewise.
5979 * loader/xnu.c (grub_xnu_is_64bit): New variable.
5980 (grub_cmd_xnu_kernel): Make 32-bit only.
5981 (grub_cmd_xnu_kernel64): New function.
5982 (grub_xnu_load_driver): Support Mach-O 64.
5983 (grub_cmd_xnu_mkext): Likewise.
5984 * util/grub.d/30_os-prober.in (osx_entry): New function.
5985 Generate entries for 64-bit boot too.
5986
5987 Eliminate ad-hoc tree format in XNU and EfiEmu.
5988
5989 * efiemu/main.c (grub_efiemu_prepare): Update comment.
5990 * efiemu/pnvram.c: Rewritten to use environment variables.
5991 All users updated.
5992
5993 Inline utf16_to_utf8.
5994
5995 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
5996 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
5997 All users updated.
5998 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
5999
6000 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6001 * commands/usbtest.c (grub_usb_get_string): ... move here.
6002 (usb_print_str): Fix error handling.
6003 * include/grub/usb.h (grub_usb_get_string): Remove.
6004
6005 UTF-8 to UTF-16 transformation.
6006
6007 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6008 (charset_mod_SOURCES): New variable.
6009 (charset_mod_CFLAGS): Likewise.
6010 (charset_mod_LDFLAGS): Likewise.
6011 * include/grub/utf.h: New file.
6012 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6013
6014 Support for device properties.
6015
6016 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6017 (grub_xnu_devprop_device_header): Likewise.
6018 (grub_xnu_devprop_device_descriptor): Likewise.
6019 (grub_xnu_devprop_add_device): New prototype.
6020 (grub_xnu_devprop_remove_device): Likewise.
6021 (grub_xnu_devprop_remove_property): Likewise.
6022 (grub_xnu_devprop_add_property_utf8): Likewise.
6023 (grub_xnu_devprop_add_property_utf16): Likewise.
6024 (grub_cpu_xnu_init): Likewise.
6025 (grub_cpu_xnu_fini): Likewise.
6026 (grub_cpu_xnu_unload): Likewise.
6027 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6028 (property_descriptor): Likewise.
6029 (devices): New variable.
6030 (grub_xnu_devprop_remove_property): New function.
6031 (grub_xnu_devprop_add_device): Likewise.
6032 (grub_xnu_devprop_remove_device): Likewise.
6033 (grub_xnu_devprop_add_property): Likewise.
6034 (grub_xnu_devprop_add_property_utf8): Likewise.
6035 (grub_xnu_devprop_add_property_utf16): Likewise.
6036 (hextoval): Likewise.
6037 (grub_cpu_xnu_fill_devprop): Likewise.
6038 (grub_cmd_devprop_load): Likewise.
6039 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6040 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6041 (cmd_devprop_load): New variable.
6042 (grub_cpu_xnu_init): New function.
6043 (grub_cpu_xnu_fini): Likewise.
6044 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6045 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6046 (grub_cmd_xnu_devtree): Likewise.
6047 (hextoval): New function.
6048 (unescape): Likewise.
6049 (grub_xnu_fill_devicetree): Likewise.
6050
6051 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6052 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6053
6054 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 Workaround for broken ATI VBE.
6057
6058 * video/i386/pc/vbe.c (last_set_mode): New variable.
6059 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6060 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6061 (grub_video_vbe_setup): Don't check for reserved flag.
6062
6063 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6064
6065 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6066 the `find' command.
6067
6068 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 UUID support for HFS.
6071
6072 * fs/hfs.c (grub_hfs_uuid): New function.
6073 (grub_hfs_fs): New value .uuid.
6074 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6075
6076 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6077
6078 Fix a segfault with parsing unknown long options.
6079
6080 * util/grub-mkrelpath.c (options): Zero terminate it.
6081
6082 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6083
6084 * include/grub/misc.h (grub_puts): New declaration.
6085 (grub_puts_): Likewise.
6086 * kern/misc.c (grub_puts): New definition.
6087 (grub_puts_): Likewise.
6088
6089 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6090
6091 * util/grub-probe.c (probe): Improve error message.
6092
6093 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6094
6095 * loader/i386/multiboot_elfxx.c
6096 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6097 initialization.
6098
6099 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 Relocator framework
6102
6103 * loader/i386/xnu_helper.S: Removed. All users updated.
6104 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6105 (relocator_mod_SOURCES): New variable.
6106 (relocator_mod_CFLAGS): Likewise.
6107 (relocator_mod_LDFLAGS): Likewise.
6108 (relocator_mod_ASFLAGS): Likewise.
6109 * conf/x86_64.rmk: Likewise.
6110 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6111 (grub_multiboot_payload_entry_offset): Likewise.
6112 (grub_multiboot_forward_relocator): Likewise.
6113 (grub_multiboot_forward_relocator_end): Likewise.
6114 (grub_multiboot_backward_relocator): Likewise.
6115 (grub_multiboot_backward_relocator_end): Likewise.
6116 (grub_multiboot_payload_eip): New variable.
6117 (grub_multiboot_payload_orig): Likewise.
6118 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6119 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6120 * include/grub/i386/memory.h
6121 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6122 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6123 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6124 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6125 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6126 * include/grub/i386/relocator.h: New file.
6127 * include/grub/x86_64/relocator.h: Likewise.
6128 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6129 (XNU_RELOCATOR): New macro.
6130 (grub_xnu_launcher_start): Remove.
6131 (grub_xnu_launcher_end): Likewise.
6132 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6133 (grub_xnu_heap_real_start): Remove.
6134 (grub_xnu_heap_start): Change to void *. All users updated.
6135 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6136 * lib/i386/relocator.c: New file.
6137 * lib/i386/relocator_asm.S: Likewise.
6138 * lib/i386/relocator_backward.S: Likewise.
6139 * lib/mips/relocator.c: Likewise.
6140 * lib/mips/relocator_asm.S: Likewise.
6141 * lib/relocator.c: Likewise.
6142 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6143 (entry): Removed.
6144 (playground): Likewise.
6145 (grub_multiboot_payload_orig): New variable.
6146 (grub_multiboot_payload_dest): Likewise.
6147 (grub_multiboot_payload_size): Likewise.
6148 (grub_multiboot_payload_eip): Likewise.
6149 (grub_multiboot_payload_esp): Likewise.
6150 (grub_multiboot_boot): Use grub_relocator32_boot.
6151 (grub_multiboot_unload): Free relocators.
6152 (grub_multiboot): Setup stack. Use relocators.
6153 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6154 (grub_multiboot_load_elfXX): Use relocators.
6155 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6156 (grub_multiboot_payload_size): Likewise.
6157 (grub_multiboot_payload_dest): Likewise.
6158 (grub_multiboot_payload_entry_offset): Likewise.
6159 (grub_multiboot_forward_relocator): Likewise.
6160 (grub_multiboot_backward_relocator): Likewise.
6161 (grub_multiboot_real_boot): Likewise.
6162 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6163 (grub_xnu_entry_point): Likewise.
6164 (grub_xnu_arg1): Likewise.
6165 (grub_xnu_stack): Likewise.
6166 (grub_xnu_launch): Removed.
6167 (grub_xnu_boot_resume): New function.
6168 (grub_xnu_boot): Use relocators.
6169 * loader/i386/xnu_helper.S: Removed.
6170 * loader/xnu.c (grub_xnu_heap_start): New variable.
6171 (grub_xnu_heap_size): Likewise.
6172 (grub_xnu_heap_malloc): Use relocators.
6173 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6174
6175 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6178 anything.
6179
6180 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6181
6182 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6183 GRUB_ERR_NONE before calling grub_env_set.
6184
6185 2009-12-12 Robert Millan <rmh@aybabtu.com>
6186
6187 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6188 * genmk.rb (video): New variable.
6189 (CLEANFILES, VIDEOFILES): Add #{video}.
6190 (#{video}): New target rule.
6191 * genvideolist.sh: New file.
6192 * Makefile.in (pkglib_DATA): Add video.lst.
6193 (video.lst): New target rule.
6194 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6195 `video.lst'.
6196 * util/grub.d/30_os-prober.in: Replace `vbe' with
6197 ${GRUB_VIDEO_BACKEND}.
6198
6199 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6200
6201 * THANKS: Add David Miller.
6202
6203 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 libpciaccess support.
6206
6207 * Makefile.in (LIBPCIACCESS): New variable.
6208 (enable_grub_emu_pci): Likewise.
6209 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6210 util/pci.c and commands/lspci.c.
6211 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6212 * configure.ac (grub-emu-pci): New option.
6213 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6214 (grub_pci_device_unmap_range): Likewise.
6215 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6216 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6217 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6218 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6219 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6220 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6221 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6222 * include/grub/pciutils.h: New file.
6223 * util/pci.c: Likewise.
6224
6225 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6226
6227 * util/misc.c: Don't include <errno.h> twice.
6228
6229 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6230
6231 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6232 name in an error message.
6233 (grub_biosdisk_rw): Likewise.
6234
6235 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 Eliminate NTFS 4Gib barrier.
6238
6239 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6240 (read_run_data): Likewise.
6241 (grub_ntfs_read_run_list): Likewise.
6242 (grub_ntfs_read_block): Likewise.
6243 (grub_ntfs_iterate_dir): Likewise.
6244 (read_mft): Likewise.
6245 (read_data): Likewise.
6246 Use COM_LOG_LEN.
6247 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6248 to avoid 64-bit division
6249 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6250 (grub_ntfs_rlst): Use grub_disk_addr_t.
6251
6252 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 Eliminate grub-fstest 4Gib barrier.
6255
6256 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6257 (read_file): Fix error reporting.
6258
6259 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 Eliminate hexdump 4Gib barrier.
6262
6263 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6264 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6265
6266 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6269 Fixes amarsh bug.
6270
6271 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6272
6273 Remove miscellaneous files in distclean target.
6274
6275 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6276
6277 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6278
6279 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6280 if they're already set. This resolves the conflict between my
6281 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6282 fixing the --grub-probe option again.
6283 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6284 change on 2009-10-06, so that we now once again source
6285 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6286
6287 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6288
6289 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6290 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6291 `util/devicemap.c'.
6292
6293 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6294
6295 * include/grub/misc.h (grub_printf_): New declaration.
6296 * kern/misc.c (grub_printf_): New definition.
6297 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6298 instead of `grub_printf' and `_'.
6299 * normal/menu_entry.c (store_completion): Likewise.
6300 (run): Likewise.
6301 (grub_menu_entry_run): Likewise.
6302 * normal/menu_text.c (grub_wait_after_message): Likewise.
6303 (notify_booting): Likewise.
6304 (notify_fallback): Likewise.
6305 (notify_execution_failure): Likewise.
6306
6307 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6308
6309 * configure.ac: Check for vasprintf.
6310 * util/misc.c (asprintf): Move allocation from here ...
6311 (vasprintf): ... to here. New function.
6312 (xasprintf): New function.
6313 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6314 prototypes.
6315 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6316 * util/grub-mkfont.c (write_font): Likewise.
6317 * util/grub-probe.c (probe): Likewise.
6318 * util/hostdisk.c (make_device_name): Likewise.
6319
6320 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6321
6322 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6323 anything even prefixed with 'cdrom' as a cdrom.
6324
6325 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6326
6327 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6328 mount points.
6329
6330 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6331
6332 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6333 grub_gettext_msg_list.
6334 (grub_gettext_gettranslation_from_position): Return const char *
6335 and not char *.
6336 (grub_gettext_translate): Add the translated strings into a list,
6337 returns from the list if existing there.
6338 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6339 (grub_gettext_delete_list): Delete the list.
6340 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6341 lang environment variable is changed.
6342 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6343
6344 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 Rename kernel.mod to kernel.img.
6347
6348 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6349 (kernel_mod_EXPORTS): Rename to ...
6350 (kernel_img_EXPORTS): ... this.
6351 (kernel_mod_SOURCES): Rename to ...
6352 (kernel_img_SOURCES): ... this.
6353 (kernel_mod_HEADERS): Rename to ...
6354 (kernel_img_HEADERS): ... this. All users updated.
6355 (kernel_mod_CFLAGS): Rename to ...
6356 (kernel_img_CFLAGS): ... this.
6357 (kernel_mod_ASFLAGS): Rename to ...
6358 (kernel_img_ASFLAGS): ... this.
6359 (kernel_mod_LDFLAGS): Rename to ...
6360 (kernel_img_LDFLAGS): ... this.
6361 * conf/x86_64-efi.rmk: Likewise.
6362 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6363 (read_kernel_image): ... this. All users updated.
6364 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6365
6366 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6367
6368 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6369 (print_spaces): New function.
6370 (grub_print_ucs4): New function.
6371 (getstringwidth): New function.
6372 (print_message_indented): New function.
6373 (print_message): Gettexttize strings using print_message_indented.
6374 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6375 width.
6376 (get_entry_number): Gettextize and uses dynamic terminal width.
6377 (notify_booting, notify_fallback, notify_execution_failure):
6378 Gettextize.
6379 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6380 string.
6381 (run): Likewise.
6382 (grub_menu_entry_run): Likewise.
6383 * PO/POTFILES: Add normal/menu_entry.c.
6384
6385 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6388
6389 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6390
6391 * util/grub-install.in: Install gettext .mo files.
6392 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6393
6394 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6395
6396 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6397 grub_dprintf.
6398
6399 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6400
6401 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6402 non-firmware-dependant one in realmode.S takes precedence.
6403
6404 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6405
6406 * commands/halt.c: Replace misc arch-specific headers with
6407 `<grub/misc.h>'.
6408 * commands/reboot.c: Likewise.
6409 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6410 `<grub/misc.h>'.
6411 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6412 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6413 (kernel_img_SOURCES): ... to here.
6414
6415 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6416 * include/grub/i386/pc/init.h: Likewise.
6417 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6418 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6419
6420 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6421
6422 * include/grub/i386/halt.h: Remove.
6423 * include/grub/i386/reboot.h: Likewise.
6424
6425 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6426
6427 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6428
6429 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6430 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6431 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6432 "progname.h"
6433 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6434 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6435 (usage): Add missing comma in printf.
6436
6437 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6438
6439 Use the same reboot approach on i386 coreboot and qemu as we do on
6440 BIOS.
6441
6442 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6443 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6444 * kern/i386/reboot.c: Remove.
6445 * include/grub/i386/reboot.h (grub_reboot): Export function.
6446 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6447 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6448 0xf000:0xfff0 instead of 0xffff:0x0000.
6449 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6450 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6451
6452 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6453
6454 Fix $srcdir != $objdir build.
6455
6456 * Makefile.in (po/%.po): Rewrite as ...
6457 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6458
6459 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6460
6461 Fix GNU/Hurd grub-install crash.
6462 * util/grub-probe.c (probe): Try to access `path' only when it is not
6463 NULL.
6464
6465 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6466
6467 Correct module naming.
6468
6469 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6470 (GRUB_MOD_INIT(efi_uga)): ... to this
6471 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6472 (GRUB_MOD_FINI(efi_uga)): ... to this
6473 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6474 (GRUB_MOD_INIT(efi_gop)): ... to this
6475 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6476 (GRUB_MOD_FINI(efi_gop)): ... to this
6477
6478 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6479
6480 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6481 translatable.
6482 (usage): Translate `arg' strings using gettext().
6483 Thanks to Jordi Mallach for the suggestion.
6484
6485 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 GOP support. Based on patch from Bean
6488 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6489
6490 * video/efi_gop.c: New file.
6491 * include/grub/efi/graphics_output.h: Likewise.
6492 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6493 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6494 variables.
6495 * conf/x86_64-efi.rmk: Likewise.
6496
6497 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 Rename efi_fb to efi_uga.
6500
6501 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6502 'efi_uga.mod'.
6503 (efi_fb_mod_SOURCES): Rename this ...
6504 (efi_uga_mod_SOURCES): ... to this.
6505 (efi_fb_mod_CFLAGS): Rename this ...
6506 (efi_uga_mod_CFLAGS): ... to this.
6507 (efi_fb_mod_LDFLAGS): Rename this ...
6508 (efi_uga_mod_LDFLAGS): ... to this.
6509 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6510 'efi_uga.mod'.
6511 (efi_fb_mod_SOURCES): Rename this ...
6512 (efi_uga_mod_SOURCES): ... to this.
6513 (efi_fb_mod_CFLAGS): Rename this ...
6514 (efi_uga_mod_CFLAGS): ... to this.
6515 (efi_fb_mod_LDFLAGS): Rename this ...
6516 (efi_uga_mod_LDFLAGS): ... to this.
6517 * video/efi_fb.c: Move this ...
6518 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6519
6520 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6521
6522 * po/README: New file. Explain our PO file workflow.
6523
6524 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6525
6526 * po/ChangeLog: Remove. Move relevant entries back to ...
6527 * ChangeLog: ... here.
6528 * po/ca.po: Remove (now handled by TLP).
6529 * po/id.po: Likewise.
6530 * po/zh_CN.po: Likewise.
6531 * Makefile.in (LINGUAS): Initialize in a way that supports
6532 empty set.
6533
6534 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6535
6536 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6537 reliing on po/LINGUAS.
6538 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6539 (po/%.po): ... this.
6540
6541 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6542
6543 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6544 (main): Use `program_name' instead of nonexistent `progname'.
6545
6546 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6547
6548 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6549 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6550
6551 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6552
6553 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6554 commit.
6555 * conf/i386-efi.rmk: Likewise.
6556 * conf/i386-ieee1275.rmk: Likewise.
6557 * conf/powerpc-ieee1275.rmk: Likewise.
6558 * conf/sparc64-ieee1275.rmk: Likewise.
6559 * conf/x86_64-efi.rmk: Likewise.
6560
6561 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6562
6563 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6564
6565 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6566
6567 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6568
6569 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6570
6571 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6572 (grub_mkdevicemap_SOURCES): New variable.
6573 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6574 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6575 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6576 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6577 (grub_mkdevicemap_SOURCES): Remove.
6578 * conf/i386-efi.rmk: Likewise.
6579 * conf/i386-ieee1275.rmk: Likewise.
6580 * conf/i386-pc.rmk: Likewise.
6581 * conf/powerpc-ieee1275.rmk: Likewise.
6582 * conf/sparc64-ieee1275.rmk: Likewise.
6583 * conf/x86_64-efi.rmk: Likewise.
6584 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6585 (usage): Fix strings to use `program_name'.
6586 (main): Initialize gettext.
6587 * util/grub-editenv.c: Likewise.
6588 * util/grub-emu.c: Likewise.
6589 * util/grub-fstest.c: Likewise.
6590 * util/grub-mkdevicemap.c: Likewise.
6591 * util/grub-mkfont.c: Likewise.
6592 * util/grub-mkrelpath.c: Likewise.
6593 * util/grub-pe2elf.c: Likewise.
6594 * util/grub-probe.c: Likewise.
6595 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6596 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6597 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6598
6599 * util/misc.c: Include `"progname.h"'.
6600 (progname): Remove variable.
6601 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6602
6603 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6604
6605 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6606 printf and print a newline after the menuentry header line.
6607 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6608
6609 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6610
6611 autoconf >= 2.60 support $(localedir).
6612
6613 * INSTALL: Note that autoconf 2.60 is required.
6614 * configure.ac (AC_PREREQ): Bump to 2.60.
6615 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6616 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6617
6618 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6619
6620 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6621 aclocal is run.
6622
6623 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6624
6625 * normal/main.c (grub_normal_read_line): Fix off-by-one
6626 buffer overflow.
6627
6628 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6629
6630 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6631 "parser.grub" in grub_command_execute() call.
6632
6633 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6634
6635 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6636 * conf/i386-efi.rmk: Likewise.
6637 * conf/i386-ieee1275.rmk: Likewise.
6638 * conf/i386-pc.rmk: Likewise.
6639 * conf/powerpc-ieee1275.rmk: Likewise.
6640 * conf/sparc64-ieee1275.rmk: Likewise.
6641 * conf/x86_64-efi.rmk: Likewise.
6642 * gettext/gettex.c: Include <grub/i18n.h>.
6643 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6644 here ...
6645 * include/grub/i18n.h: ... to here
6646 * include/grub/i18n.h: ... to here.
6647 * kern/misc.c: Include <grub/i18n.h>
6648 (grub_gettext_dummy): Move above user.
6649
6650 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6651
6652 * util/Makefile.in (install-local): Convert a `for' into a normal
6653 shell expansion.
6654
6655 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6656
6657 * autogen.sh: Add automake call.
6658 * config.guess: Remove.
6659 * config.sub: Likewise.
6660 * install-sh: Likewise.
6661
6662 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6663
6664 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6665
6666 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6667
6668 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6669 function to a normal shell `for'.
6670
6671 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6672
6673 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6674
6675 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6676
6677 * util/grub-mkrelpath.c: New file.
6678 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6679 (grub_mkrelpath_SOURCES): New variable.
6680 * include/grub/util/misc.h: New function prototype.
6681 * util/misc.c (make_system_path_relative_to_its_root): New function.
6682
6683 * util/grub-mkconfig_lib.in (bindir): New variable.
6684 (grub_mkrelpath): Likewise.
6685 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6686
6687 * util/probe.c (probe): Make the file path relative to its root.
6688 Change a info message to use the GRUB path. Enable again the
6689 check if we can read the file with GRUB facilities.
6690
6691 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6692 to its root.
6693
6694 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6695
6696 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6697 platform.
6698
6699 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6700
6701 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6702 strncmp().
6703
6704 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6705
6706 * util/getroot.c (grub_util_is_dmraid): New function.
6707 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6708 devices as normal ones, not as LVM.
6709
6710 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6711
6712 * conf/common.rmk: Add grub-gettext_lib target and updates
6713 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6714 LDFLAGS.
6715 * gettext/gettext.c: New file. (Reads mo files).
6716 * include/grub/file.h (grub_file_pread): New prototype.
6717 * include/grub/i18n.h (_): New prototype.
6718 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6719 prototypes.
6720 * kern/misc.c (grub_gettext_dummy): New function.
6721 * normal/menu_text.c: Include <grub/i18n.h>.
6722 * normal/menu_text.c (print_timeout): Gettexttize string.
6723 * normal/menu_text.c (print_message): Gettexttize string.
6724 * po/POTFILES: Add `normal/menu_text.c'.
6725 * po/ca.po: Add new translations.
6726 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6727 gettext module and defines locale_dir and lang in grub.cfg.
6728 * NEWS: Add gettext support.
6729
6730 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6731
6732 * util/hostdisk.c: Include `<grub/i18n.h>'.
6733 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6734 (make_device_name): Rewrite using asprintf.
6735 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6736 (find_system_device): If a device is not found, generate one just
6737 by reusing the OS path name.
6738 (read_device_map): Make it permissible for device.map not to exist.
6739
6740 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6741
6742 * script/sh/execute.c: Move from here ...
6743 * script/execute.c: ... to here. Update all users.
6744 * script/sh/function.c: Move from here ...
6745 * script/function.c: ... to here. Update all users.
6746 * script/sh/lexer.c: Move from here ...
6747 * script/lexer.c: ... to here. Update all users.
6748 * script/sh/main.c: Move from here ...
6749 * script/main.c: ... to here. Update all users.
6750 * script/sh/parser.y: Move from here ...
6751 * script/parser.y: ... to here. Update all users.
6752 * script/sh/script.c: Move from here ...
6753 * script/script.c: ... to here. Update all users.
6754
6755 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6756
6757 * configure.ac: Detect all `emu' platforms. Define
6758 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6759 --enable-grub-emu logic. Disable include/grub/machine
6760 symlink on `emu' platforms.
6761
6762 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6763 * gensymlist.sh.in: Likewise.
6764
6765 * include/grub/i386/coreboot/machine.h: Remove file.
6766 * include/grub/i386/efi/machine.h: Likewise.
6767 * include/grub/i386/ieee1275/machine.h: Likewise.
6768 * include/grub/i386/pc/machine.h: Likewise.
6769 * include/grub/i386/qemu/machine.h: Likewise.
6770 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6771 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6772 * include/grub/x86_64/efi/machine.h: Likewise.
6773
6774 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6775 * commands/halt.c: Likewise.
6776 * commands/reboot.c: Likewise.
6777 * include/grub/autoefi.h: Likewise.
6778 * include/grub/i386/at_keyboard.h: Likewise.
6779 * include/grub/i386/kernel.h: Likewise.
6780 * include/grub/i386/loader.h: Likewise.
6781 * include/grub/i386/pc/memory.h: Likewise.
6782 * kern/dl.c: Likewise.
6783 * kern/i386/coreboot/init.c: Likewise.
6784 * loader/i386/bsd.c: Likewise.
6785 * loader/i386/linux.c: Likewise.
6786 * loader/multiboot_loader.c: Likewise.
6787 * term/i386/pc/serial.c: Likewise.
6788 * term/usb_keyboard.c: Likewise.
6789
6790 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6791 `<grub/machine/machine.h>'
6792 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6793 * util/misc.c: Remove `<grub/machine/machine.h>' and
6794 `<grub/machine/time.h>'.
6795
6796 * Makefile.in (enable_grub_emu): Remove variable.
6797 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6798
6799 * conf/any-emu.rmk: New file.
6800 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6801 (grub_emu_init.c): Move from here ...
6802 * conf/any-emu.rmk: ... to here.
6803
6804 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6805 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6806 * conf/any-emu.rmk: ... to here.
6807
6808 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6809
6810 * include/grub/parser.h (grub_parser_register): Document need
6811 of `name' parameter.
6812 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6813 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6814 "sh" to "grub".
6815
6816 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6817
6818 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6819 `$(XGETTEXT)'.
6820 * include/grub/i18n.h (N_): New macro.
6821 * util/mkisofs/mkisofs.h: Likewise.
6822 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6823 around N_().
6824 (usage): Use gettext() to translate help strings when printing them.
6825
6826 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6827
6828 Based on patch from Bean
6829 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6830
6831 * video/efi_fb.c: New file.
6832 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6833 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6834 variables.
6835 * conf/x86_64-efi.rmk: Likewise.
6836
6837 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6838
6839 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6840 * util/i386/pc/grub-setup.c: Likewise.
6841
6842 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6843
6844 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6845 <hurd/fs.h>
6846 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6847 file_get_storage_info to implement grub_guess_root_device.
6848
6849 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6850
6851 * Makefile.in (target): Use make's builtin $(shell) function
6852 instead of calling directly $(SHELL) to create the locale directories,
6853 inside the $(foreach) function.
6854
6855 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6856
6857 * util/grub-mkrescue.in: Print an error and usage if output option
6858 has not been given.
6859
6860 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6861
6862 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6863 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6864 root and /boot are on different devices.
6865
6866 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6867
6868 Fix build for srcdir != objdir.
6869
6870 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6871 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6872 $(srcdir).
6873 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6874 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6875 reference for input.
6876
6877 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6878
6879 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6880 or hardlinking it). Remove -J option, Joliet is not compatible with
6881 multiple source directories.
6882
6883 2009-11-21 Carles Pina i Estany <carles@pina.cat>
6884 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6885
6886 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6887 (process_input_dir): New function. Process an arbitrary input
6888 directory.
6889 Misc adjustments to support both "override mode" and system-wide mode.
6890
6891 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6892
6893 * configure.ac (UNIFONT_BDF): Rename to ...
6894 (FONT_SOURCE): ... this. Update all users.
6895
6896 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6897
6898 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6899 to the list of unifont files to look for.
6900
6901 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6902
6903 Patch from Joe Auricchio <jauricchio@gmail.com>
6904 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6905 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6906 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6907
6908 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6909
6910 * Makefile.in (install-local): Add a missing backslash.
6911
6912 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6913
6914 * include/grub/x86_64/io.h: New file.
6915
6916 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6917
6918 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6919 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6920 Include `"progname.h"'.
6921 (main): Initialize gettext.
6922 * util/i386/pc/grub-setup.c: Gettexttize.
6923 * util/i386/pc/grub-mkimage.c: Likewise.
6924
6925 * Makefile.in (po/*.po): Redefine as ...
6926 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6927
6928 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6929
6930 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6931
6932 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6933 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6934 (program_name): Remove.
6935 (main): Initialize gettext support.
6936 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6937 Include `<libintl.h>'.
6938 (_): New macro.
6939
6940 * util/mkisofs/eltorito.c: Gettexttize.
6941 * util/mkisofs/joliet.c: Likewise.
6942 * util/mkisofs/mkisofs.c: Likewise.
6943 * util/mkisofs/multi.c: Likewise.
6944 * util/mkisofs/rock.c: Likewise.
6945 * util/mkisofs/tree.c: Likewise.
6946 * util/mkisofs/write.c: Likewise.
6947
6948 * po/POTFILES: Update with new files.
6949
6950 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6951
6952 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
6953 * util/mkisofs/iso9660.h: Likewise.
6954 * util/mkisofs/joliet.c: Likewise.
6955 * util/mkisofs/mkisofs.c: Likewise.
6956 * util/mkisofs/mkisofs.h: Likewise.
6957 * util/mkisofs/rock.c: Likewise.
6958 * util/mkisofs/tree.c: Likewise.
6959 * util/mkisofs/write.c: Likewise.
6960
6961 * util/mkisofs/eltorito.c (rcsid): Remove.
6962 * util/mkisofs/hash.c: Likewise.
6963 * util/mkisofs/joliet.c: Likewise.
6964 * util/mkisofs/name.c: Likewise.
6965 * util/mkisofs/rock.c: Likewise.
6966 * util/mkisofs/tree.c: Likewise.
6967 * util/mkisofs/write.c: Likewise.
6968
6969 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6970
6971 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
6972 instead of static allocation.
6973 * util/mkisofs/match.h: Likewise.
6974
6975 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6976
6977 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
6978 and `util/grub.d/10_linux.in'.
6979 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
6980 translatable Shell files.
6981
6982 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6983
6984 * Makefile.in ($(srcdir)/aclocal.m4): New target.
6985
6986 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6987
6988 * INSTALL: Document Automake is needed for bootstrap.
6989 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
6990 * util/grub.d/10_kfreebsd.in (bindir): New variable.
6991 Add gettext initialization.
6992 (kfreebsd_entry): Make menuentry output translatable.
6993
6994 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6995
6996 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
6997 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
6998 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
6999 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7000 (LINGUAS): Auto-generate using `po/LINGUAS'.
7001 * po/LINGUAS: New file.
7002
7003 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7004
7005 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7006 other things).
7007 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7008 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7009 bindtextdomain() calls for gettext initialization.
7010
7011 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7012
7013 * gnulib/progname.c: New file (imported from Gnulib).
7014 * gnulib/progname.h: Likewise.
7015 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7016 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7017 (usage): Replace `progname' with `program_name'.
7018 (main): Use set_program_name() for program name initialization.
7019
7020 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7021
7022 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7023 from here ...
7024 * Makefile.in (CPPFLAGS): ... to here.
7025
7026 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7027
7028 * aclocal.m4: Move from here ...
7029 * acinclude.m4: ... to here.
7030 * autogen.sh: Add call to `aclocal'.
7031 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7032
7033 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7034
7035 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7036 (LINGUAS): New variable.
7037 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7038 (install-local): Install MO files.
7039 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7040 * include/grub/i18n.h: New file.
7041 * po/POTFILES: New file.
7042 * po/ca.po: New file.
7043 * util/grub.d/10_linux.in (bindir): New variable.
7044 Add gettext initialization.
7045 (linux_entry): Make menuentry output translatable.
7046 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7047 (usage): Make --help output translatable.
7048 (main): Initialize gettext.
7049
7050 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7051
7052 * import_gcry.py: New file (written by Vladimir with minor
7053 adjustments).
7054 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7055 ciphers.
7056 * INSTALL: Document that Python is required for bootstrap.
7057
7058 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7059
7060 Import ciphers from libgcrypt 1.4.4.
7061
7062 * lib/libgcrypt/cipher/ChangeLog
7063 * lib/libgcrypt/cipher/ac.c
7064 * lib/libgcrypt/cipher/arcfour.c
7065 * lib/libgcrypt/cipher/bithelp.h
7066 * lib/libgcrypt/cipher/blowfish.c
7067 * lib/libgcrypt/cipher/camellia-glue.c
7068 * lib/libgcrypt/cipher/camellia.c
7069 * lib/libgcrypt/cipher/camellia.h
7070 * lib/libgcrypt/cipher/cast5.c
7071 * lib/libgcrypt/cipher/cipher.c
7072 * lib/libgcrypt/cipher/crc.c
7073 * lib/libgcrypt/cipher/des.c
7074 * lib/libgcrypt/cipher/dsa.c
7075 * lib/libgcrypt/cipher/ecc.c
7076 * lib/libgcrypt/cipher/elgamal.c
7077 * lib/libgcrypt/cipher/hash-common.c
7078 * lib/libgcrypt/cipher/hash-common.h
7079 * lib/libgcrypt/cipher/hmac-tests.c
7080 * lib/libgcrypt/cipher/md.c
7081 * lib/libgcrypt/cipher/md4.c
7082 * lib/libgcrypt/cipher/md5.c
7083 * lib/libgcrypt/cipher/primegen.c
7084 * lib/libgcrypt/cipher/pubkey.c
7085 * lib/libgcrypt/cipher/rfc2268.c
7086 * lib/libgcrypt/cipher/rijndael-tables.h
7087 * lib/libgcrypt/cipher/rijndael.c
7088 * lib/libgcrypt/cipher/rmd.h
7089 * lib/libgcrypt/cipher/rmd160.c
7090 * lib/libgcrypt/cipher/rsa.c
7091 * lib/libgcrypt/cipher/seed.c
7092 * lib/libgcrypt/cipher/serpent.c
7093 * lib/libgcrypt/cipher/sha1.c
7094 * lib/libgcrypt/cipher/sha256.c
7095 * lib/libgcrypt/cipher/sha512.c
7096 * lib/libgcrypt/cipher/tiger.c
7097 * lib/libgcrypt/cipher/twofish.c
7098 * lib/libgcrypt/cipher/whirlpool.c
7099
7100 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7101
7102 Fix build for systems without error().
7103
7104 * gnulib/error.c: New file (imported from Gnulib).
7105 * gnulib/error.h: Likewise.
7106 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7107 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7108 (this variable is now used by error()).
7109
7110 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7111
7112 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7113 instead of relying that char is signed.
7114
7115 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7118 blocksize different from specified.
7119 (grub_pxefs_read): Likewise.
7120
7121 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7122
7123 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7124
7125 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7126 (grub_ata_readwrite): Likewise. Update 2 format strings.
7127 (grub_atapi_read): Likewise.
7128
7129 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7130 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7131 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7132 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7133 (ata_mod_LDFLAGS): Move from here ...
7134 * conf/i386.rmk: ... to here ...
7135 * conf/x86_64-efi.rmk: ... and here.
7136 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7137 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7138
7139 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7140
7141 Relicense multiboot.h, with RMS' blessing.
7142
7143 * include/multiboot.h: Change to X11 license.
7144
7145 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7146
7147 Support --version in grub-mkisofs.
7148
7149 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7150 (OPTION_VERSION): New macro.
7151 (ld_options): Recognize --version.
7152 (usage): Move `program_name' from here ...
7153 (program_name): ... to here. Add `static' qualifier.
7154 (main): Recognize `OPTION_VERSION'.
7155
7156 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7157
7158 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7159 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7160
7161 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7162
7163 Fix help2man generation for mkisofs.
7164
7165 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7166 (usage): Send output to stdout (rather than stderr).
7167
7168 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7169
7170 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7171 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7172 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7173 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7174 (bin_SCRIPTS): Add `grub-mkfloppy'.
7175 (grub_mkfloppy_SOURCES): New variable.
7176
7177 * util/grub-mkrescue.in: New file.
7178 * util/i386/pc/grub-mkfloppy.in: New file.
7179
7180 * util/i386/coreboot/grub-mkrescue.in: Remove.
7181 * util/i386/pc/grub-mkrescue.in: Remove.
7182
7183 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7184
7185 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7186 from here ...
7187 * include/multiboot.h (struct multiboot_header): ... to here. Update
7188 all users.
7189 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7190 from here ...
7191 * include/multiboot.h (struct multiboot_info): ... to here. Update
7192 all users.
7193 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7194 from here ...
7195 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7196 Update all users.
7197 * include/grub/multiboot.h (struct grub_mod_list): Move
7198 from here ...
7199 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7200 Update all users.
7201
7202 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7203
7204 * include/multiboot2.h (multiboot_word): Rename from this ...
7205 (multiboot2_word): ... to this. Update all users.
7206 (multiboot_header): Rename from this ...
7207 (multiboot2_header): ... to this. Update all users.
7208 (multiboot_tag_header): Rename from this ...
7209 (multiboot2_tag_header): ... to this. Update all users.
7210 (multiboot_tag_start): Rename from this ...
7211 (multiboot2_tag_start): ... to this. Update all users.
7212 (multiboot_tag_name): Rename from this ...
7213 (multiboot2_tag_name): ... to this. Update all users.
7214 (multiboot_tag_module): Rename from this ...
7215 (multiboot2_tag_module): ... to this. Update all users.
7216 (multiboot_tag_memory): Rename from this ...
7217 (multiboot2_tag_memory): ... to this. Update all users.
7218 (multiboot_tag_unused): Rename from this ...
7219 (multiboot2_tag_unused): ... to this. Update all users.
7220 (multiboot_tag_end): Rename from this ...
7221 (multiboot2_tag_end): ... to this. Update all users.
7222
7223 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7224
7225 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7226 this platform we should support Multiboot1 first.
7227
7228 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7229 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7230 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7231
7232 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7233
7234 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7235 of write calls (converting them to fwrite() if they aren't already).
7236 (get_torito_desc): Likewise.
7237 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7238
7239 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7240
7241 * util/i386/pc/grub-install.in: Move from here ...
7242 * util/grub-install.in: ... to here. Update all users.
7243
7244 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7245
7246 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7247
7248 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7249
7250 Support for El Torito without floppy emulation.
7251
7252 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7253 (init_boot_catalog): Improve error handling.
7254 (get_torito_desc): Don't use floppy emulation unless requested by
7255 user. Patch boot information table when requested via
7256 `-boot-info-table'.
7257 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7258 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7259 (use_boot_info_table): New variables.
7260 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7261 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7262 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7263 `--eltorito-emul-floppy'.
7264 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7265 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7266 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7267 (use_boot_info_table, get_731): New prototypes.
7268 * util/mkisofs/write.c (get_731): New function.
7269
7270 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7271
7272 Fix the generation of the man page.
7273
7274 * util/pc/i386/grub-install.in: Source
7275 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7276
7277 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7278
7279 Large file support for grub-mkisofs.
7280
7281 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7282 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7283 (session_start): Upgrade type to `uint64_t'. Update all users.
7284 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7285 (struct directory_entry): Upgrade type of `starting_block' and
7286 `size' to `uint64_t'. Update all users.
7287 (struct deferred): Remove unused structure.
7288 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7289 Update all users.
7290 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7291 file is larger than `UINT32_MAX'.
7292 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7293 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7294 return value.
7295 (struct deferred_write): Upgrade type of `extent' and `size' to
7296 `uint64_t'. Update all users.
7297 (last_extent_written): Upgrade type to `uint64_t'. Update all
7298 users.
7299 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7300 Update all users. Upgrade type of `remain' to `int64_t' and
7301 `use' to `size_t'. Use error() to handle fread() errors.
7302 (write_files): Rely on write_one_file() rather than calling
7303 xfwrite() directly.
7304
7305 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7306
7307 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7308
7309 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7310
7311 * util/mkisofs/fnmatch.c: Remove.
7312 * util/mkisofs/getopt1.c: Likewise.
7313 * util/mkisofs/getopt.c: Likewise.
7314 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7315 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7316 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7317 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7318 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7319
7320 * configure.ac: Detect `mingw32msvc' host_os.
7321 Check for lstat(), getuid() and getgid().
7322
7323 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7324 instances of `u_char' with `uint8_t'.
7325
7326 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7327 [!HAVE_GETUID] (getuid): New function (stub).
7328 [!HAVE_GETGID] (getgid): Likewise.
7329 [!HAVE_LSTAT] (lstat): Likewise.
7330 [!S_IROTH] (S_IROTH): New macro (dummy).
7331 [!S_IRGRP] (S_IRGRP): Likewise.
7332
7333 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7334
7335 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7336 conditional expression).
7337
7338 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7339
7340 Import from Gnulib.
7341
7342 * gnulib/fnmatch.c: New file.
7343 * gnulib/fnmatch.h: Likewise.
7344 * gnulib/fnmatch_loop.c: Likewise.
7345 * gnulib/getopt.c: Likewise.
7346 * gnulib/getopt.h: Likewise.
7347 * gnulib/getopt1.c: Likewise.
7348 * gnulib/getopt_int.h: Likewise.
7349 * gnulib/gettext.h: Likewise.
7350
7351 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7352
7353 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7354 * normal/handler.c (read_handler_list): Likewise.
7355
7356 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7357
7358 Misc cleanup.
7359
7360 * kern/command.c (grub_register_command_prio): Use
7361 grub_zalloc() instead of explicitly zeroing data.
7362 * kern/list.c: Include `<grub/mm.h>'.
7363 (grub_named_list_find): Replace `0' with `NULL'.
7364 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7365 (fs_module_list): Change type to `grub_named_list_t'. Update all
7366 users.
7367 * normal/dyncmd.c (read_command_list): Add space between function
7368 call and parenthesis.
7369 * normal/handler.c (read_handler_list): Likewise.
7370
7371 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7372
7373 * normal/auth.c (punishment_delay): Moved from here ...
7374 (grub_auth_strcmp): ... to here (inside function).
7375
7376 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7377
7378 * include/grub/list.h (struct grub_named_list): Remove `const'
7379 qualifier from `name'.
7380 (struct grub_prio_list): Likewise.
7381
7382 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7383
7384 * normal/auth.c: Include `<grub/time.h>'.
7385 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7386
7387 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7388
7389 * normal/auth.c (punishment_delay): New variable.
7390 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7391 (grub_auth_check_authentication): Punish failed login attempts with
7392 an incremental (2^N) delay.
7393
7394 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7395
7396 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7397 path with $(srcdir).
7398
7399 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7402
7403 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7404
7405 * util/i386/coreboot/grub-mkrescue.in: New file.
7406 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7407 variables.
7408
7409 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7410 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7411 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7412 requirements.
7413 * util/mkisofs/defaults.h: New file.
7414 * util/mkisofs/eltorito.c: Likewise.
7415 * util/mkisofs/exclude.h: Likewise.
7416 * util/mkisofs/fnmatch.c: Likewise.
7417 * util/mkisofs/getopt.c: Likewise.
7418 * util/mkisofs/getopt1.c: Likewise.
7419 * util/mkisofs/hash.c: Likewise.
7420 * util/mkisofs/include/fctldefs.h: Likewise.
7421 * util/mkisofs/include/mconfig.h: Likewise.
7422 * util/mkisofs/include/prototyp.h: Likewise.
7423 * util/mkisofs/include/statdefs.h: Likewise.
7424 * util/mkisofs/iso9660.h: Likewise.
7425 * util/mkisofs/joliet.c: Likewise.
7426 * util/mkisofs/match.c: Likewise.
7427 * util/mkisofs/match.h: Likewise.
7428 * util/mkisofs/mkisofs.c: Likewise.
7429 * util/mkisofs/mkisofs.h: Likewise.
7430 * util/mkisofs/multi.c: Likewise.
7431 * util/mkisofs/name.c: Likewise.
7432 * util/mkisofs/rock.c: Likewise.
7433 * util/mkisofs/tree.c: Likewise.
7434 * util/mkisofs/write.c: Likewise.
7435
7436 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7437
7438 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7439 being insecure.
7440
7441 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7442
7443 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7444 `grub-mkimage' (and use $0 when possible).
7445
7446 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7447
7448 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7449 error message for excessively large memory map.
7450
7451 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7452
7453 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7454 executable bit.
7455
7456 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7457
7458 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7459 message for coreboot users.
7460
7461 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7462
7463 Fix build with GNU gold.
7464
7465 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7466 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7467 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7468 link addresses.
7469 * aclocal.m4: Likewise.
7470
7471 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7472
7473 * configure.ac (AC_PREREQ): Bump to 2.59d.
7474 * INSTALL: Make it more clear when Autoconf and Ruby are
7475 needed and when to run `./autogen.sh'.
7476
7477 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7478
7479 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7480 OSes.
7481
7482 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7483
7484 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7485
7486 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7487
7488 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7489 giving it to GNU Mach.
7490
7491 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7492
7493 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7494 GNU partition number to get internal GRUB partition number.
7495
7496 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7497
7498 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7499 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7500
7501 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7502
7503 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7504 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7505 case.
7506
7507 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7508
7509 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7510
7511 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7512
7513 Fix build problem.
7514
7515 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7516 `-isystem=$(srcdir)/include'.
7517
7518 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7519
7520 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7521 checked (grub-install doesn't currently rely on it).
7522
7523 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7524
7525 Revert SVN r2660.
7526
7527 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7528 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7529 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7530 * conf/i386-ieee1275.rmk: Likewise.
7531 * conf/i386-pc.rmk: Likewise.
7532 * conf/powerpc-ieee1275.rmk: Likewise.
7533 * conf/sparc64-ieee1275.rmk: Likewise.
7534 * conf/x86_64-efi.rmk: Likewise.
7535
7536 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7537
7538 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7539
7540 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7541
7542 * include/grub/misc.h: Stop checking for APPLE_CC.
7543
7544 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7545
7546 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7547 doesn't cause an infinite call loop.
7548
7549 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7550
7551 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7552 strings.
7553
7554 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7555
7556 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7557 variable.
7558 * Makefile.in: Likewise.
7559
7560 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7561
7562 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7563
7564 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7565
7566 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7567
7568 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7569
7570 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7571
7572 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7573
7574 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7575 from here ...
7576 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7577
7578 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7579
7580 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7581 in $(MAKEINFO) invocation. This makes it clear in output that
7582 errors are being ignored.
7583
7584 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7585
7586 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7587 from here ...
7588 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7589 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7590 * conf/i386-ieee1275.rmk: Likewise.
7591 * conf/i386-pc.rmk: Likewise.
7592 * conf/powerpc-ieee1275.rmk: Likewise.
7593 * conf/sparc64-ieee1275.rmk: Likewise.
7594 * conf/x86_64-efi.rmk: Likewise.
7595
7596 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7597
7598 * util/grub-editenv.c (main): If only a command is given, use
7599 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7600 (usage): FILENAME is now optional and has a default.
7601
7602 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7603
7604 Improve grub-mkconfig performance when there are several menu
7605 entries on a single filesystem.
7606
7607 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7608 prepare_grub_to_access_device.
7609 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7610 * util/grub.d/30_os-prober.in: Likewise.
7611
7612 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7613
7614 * util/grub.d/10_freebsd.in: Remove.
7615 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7616 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7617
7618 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7619
7620 * docs/grub.cfg: Fix example usage of *BSD loaders.
7621
7622 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7623
7624 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7625 grub_util_error() call.
7626
7627 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7628
7629 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7630 `reserved_first_sector' member.
7631 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7632 `reserved_first_sector' to 1.
7633 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7634 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7635 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7636 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7637 filesystems which begin at first sector.
7638 (options): New option --skip-fs-probe.
7639 (main): Handle --skip-fs-probe and pass it to setup().
7640
7641 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7642
7643 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7644 (memset): Fix function prototype.
7645
7646 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7647 2009-10-25 Vasily Averin <vvs@parallels.com>
7648
7649 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7650 `dirent.direntlen == 0'.
7651
7652 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7653
7654 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7655 `cpio'.
7656 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7657
7658 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7659
7660 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7661 `__trampoline_setup' and `__ucmpdi2'.
7662 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7663 that libgcc provides.
7664
7665 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7666
7667 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7668 * include/grub/sparc64/libgcc.h (memset): Likewise.
7669 * include/grub/misc.h (memset, memcmp): New function prototypes.
7670
7671 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7672
7673 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7674 `cpio'.
7675 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7676
7677 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7678
7679 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7680 * docs/grub.cfg: Compensate for recent change in multiboot
7681 loader (since 2009-08-14 it won't pass filename to payload).
7682 * util/grub.d/10_hurd.in: Likewise.
7683
7684 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7685
7686 * config.guess: Update to latest version from config git
7687 repository.
7688 * config.sub: Likewise.
7689
7690 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7691
7692 Fix build on sparc64.
7693
7694 * configure.ac: Perform checks for libgcc symbols before
7695 adding `-nostdlib' to LDFLAGS.
7696
7697 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7698
7699 Let user specify OpenBSD root device.
7700
7701 * loader/i386/bsd.c (openbsd_root): New variable.
7702 (openbsd_opts): New option 'root'.
7703 (OPENBSD_ROOT_ARG): New macro.
7704 (grub_openbsd_boot): Use 'openbsd_root'.
7705 (grub_cmd_openbsd): Fill 'openbsd_root'.
7706
7707 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7708
7709 * NEWS: Misc adjustments.
7710
7711 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7712
7713 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7714
7715 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7716
7717 * configure.ac: Bump version to 1.97.
7718
7719 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7720
7721 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7722 -mno-3dnow on x86 architectures. Some toolchains enable these
7723 features by default, but they rely on registers that aren't enabled
7724 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7725
7726 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7727
7728 Make entry text a bit more readable.
7729
7730 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7731
7732 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7735
7736 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7737
7738 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7739 operations.
7740
7741 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7742
7743 * configure.ac: Add missing dollar.
7744
7745 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7746
7747 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7748
7749 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7750 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7751 exports.
7752 * include/grub/sparc64/libgcc.h: Likewise. Use
7753 preprocessor conditionals.
7754
7755 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7756
7757 * conf/common.rmk (grub-dumpbios): Remove rule.
7758 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7759 * util/grub-dumpbios.in: Remove file.
7760
7761 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7762
7763 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7764 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7765
7766 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7767 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7768 users.
7769
7770 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7771 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7772 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7773 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7774 users.
7775
7776 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7777
7778 * term/tparm.c: Switch to GPLv3.
7779
7780 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7781
7782 * include/grub/i386/cpuid.h: Add header protection.
7783
7784 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7785
7786 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7787
7788 * include/grub/i386/cpuid.h: New file.
7789 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7790 (has_longmode): Rename to ...
7791 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7792 `static' attribute.
7793 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7794 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7795 on a CPU that doesn't implement AMD64 instruction set.
7796
7797 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7798
7799 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7800 that version.texi is rebuilt on version number changes.
7801
7802 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7803
7804 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7805 Fixes bug #27602.
7806
7807 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7808
7809 * util/i386/pc/grub-install.in: Source
7810 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7811 that the --grub-probe option will work.
7812 * util/sparc64/ieee1275/grub-install.in: Likewise.
7813
7814 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7815
7816 * configure.ac: Bump version to 1.97~beta4.
7817
7818 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7819
7820 Resync grub-mkdevicemap in x86_64-efi.
7821
7822 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7823 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7824 `util/devicemap.c'.
7825
7826 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
7827
7828 * util/grub-editenv.c (create_envblk_file): Write new block with a
7829 .new suffix and then rename it into place, to ensure atomic
7830 creation.
7831
7832 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7833
7834 Do not automatically install headers.
7835
7836 * Makefile.in (include_DATA): Remove. Update all users.
7837
7838 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7839
7840 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7841 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7842
7843 * util/osdetect.lua: Remove.
7844 * script/lua/lauxlib.c: Likewise.
7845 * script/lua/ldebug.c: Likewise.
7846 * script/lua/grub_main.c: Likewise.
7847 * script/lua/lauxlib.h: Likewise.
7848 * script/lua/ldebug.h: Likewise.
7849 * script/lua/ltablib.c: Likewise.
7850 * script/lua/liolib.c: Likewise.
7851 * script/lua/lstrlib.c: Likewise.
7852 * script/lua/lualib.h: Likewise.
7853 * script/lua/ldo.c: Likewise.
7854 * script/lua/ldump.c: Likewise.
7855 * script/lua/ldo.h: Likewise.
7856 * script/lua/loslib.c: Likewise.
7857 * script/lua/lundump.c: Likewise.
7858 * script/lua/grub_lib.c: Likewise.
7859 * script/lua/ldblib.c: Likewise.
7860 * script/lua/lundump.h: Likewise.
7861 * script/lua/lmem.c: Likewise.
7862 * script/lua/grub_lib.h: Likewise.
7863 * script/lua/lmathlib.c: Likewise.
7864 * script/lua/lstate.c: Likewise.
7865 * script/lua/ltm.c: Likewise.
7866 * script/lua/lvm.c: Likewise.
7867 * script/lua/lmem.h: Likewise.
7868 * script/lua/lstate.h: Likewise.
7869 * script/lua/ltm.h: Likewise.
7870 * script/lua/ltable.c: Likewise.
7871 * script/lua/lvm.h: Likewise.
7872 * script/lua/llex.c: Likewise.
7873 * script/lua/lgc.c: Likewise.
7874 * script/lua/grub_lua.h: Likewise.
7875 * script/lua/loadlib.c: Likewise.
7876 * script/lua/lfunc.c: Likewise.
7877 * script/lua/lopcodes.c: Likewise.
7878 * script/lua/lparser.c: Likewise.
7879 * script/lua/ltable.h: Likewise.
7880 * script/lua/llex.h: Likewise.
7881 * script/lua/lgc.h: Likewise.
7882 * script/lua/lfunc.h: Likewise.
7883 * script/lua/lbaselib.c: Likewise.
7884 * script/lua/lopcodes.h: Likewise.
7885 * script/lua/lparser.h: Likewise.
7886 * script/lua/lzio.c: Likewise.
7887 * script/lua/linit.c: Likewise.
7888 * script/lua/lobject.c: Likewise.
7889 * script/lua/llimits.h: Likewise.
7890 * script/lua/lstring.c: Likewise.
7891 * script/lua/lzio.h: Likewise.
7892 * script/lua/lapi.c: Likewise.
7893 * script/lua/lcode.c: Likewise.
7894 * script/lua/lua.h: Likewise.
7895 * script/lua/lobject.h: Likewise.
7896 * script/lua/lstring.h: Likewise.
7897 * script/lua/lapi.h: Likewise.
7898 * script/lua/lcode.h: Likewise.
7899 * script/lua/luaconf.h: Likewise.
7900
7901 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
7902
7903 * docs/grub.texi (Command-line and menu entry commands): Document
7904 date and echo commands.
7905
7906 2009-09-24 Pavel Roskin <proski@gnu.org>
7907
7908 * include/grub/kernel.h (struct grub_module_header): Remove
7909 `grub_module_header_types'. Make `type' unsigned. Make `size'
7910 32-bit on all platforms.
7911 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7912 8-bit field. Use grub_host_to_target32() for `size'.
7913 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7914 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7915 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7916
7917 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7918
7919 Fix "lost keypress" bug in at_keyboard.
7920
7921 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7922 Checks for readyness of input buffer (without flushing it).
7923 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7924 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7925
7926 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7927
7928 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7929 size check within GRUB_MACHINE_PCBIOS section.
7930
7931 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7932
7933 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7934 return value.
7935 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7936 KEYBOARD_ISREADY check.
7937 (grub_at_keyboard_checkkey): Rename to ...
7938 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7939 Remove gratuitous cast.
7940
7941 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
7942
7943 * configure.ac: Call AC_PROG_MKDIR_P.
7944 * Makefile.in (docs/stamp-vti): Create docs directory. Create
7945 version.texi in $(builddir) rather than $(srcdir).
7946 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
7947 to makeinfo's @include search path.
7948
7949 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7950
7951 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
7952
7953 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7954
7955 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
7956 for `*.dpkg-new'.
7957
7958 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
7959
7960 Build info documentation. Some code borrowed from Automake.
7961
7962 * configure.ac: Check for makeinfo.
7963 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
7964 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
7965 docs/version.texi.
7966 (MOSTLYCLEANFILES): Add vti.tmp.
7967 (docs/version.texi, docs/stamp-vti): Update automatically.
7968 (docs/grub.info): Build info documentation. Use --force and ignore
7969 errors for now.
7970 (all-local): Add $(INFOS).
7971 (install-local): Install info files.
7972 (uninstall): Uninstall info files.
7973 * docs/version.texi: Remove from revision control. This file is
7974 automatically generated on build now.
7975 * gendistlist.sh: Add `*.info'.
7976
7977 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7978
7979 * kern/term.c: Fix indentation.
7980
7981 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7982
7983 * util/hostdisk.c: Fix a comment.
7984
7985 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
7986
7987 Fix regression introduced in r2539.
7988
7989 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
7990 to 0xA1.
7991
7992 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
7993
7994 * util/grub.d/30_os-prober.in: Don't throw away stderr from
7995 os-prober. Under normal operation, it does not print anything to
7996 stderr; if it does, we need to debug it, and throwing away stderr
7997 makes that excessively difficult.
7998
7999 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8000
8001 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8002
8003 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8004
8005 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8006 AC_LANG_PROGRAM from autoconf.
8007 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8008 prototypes (fixes warning).
8009
8010 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8011 `--disable-werror' was used.
8012
8013 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8014
8015 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8016 uninitialized `lastaddr'.
8017
8018 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8021
8022 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8023
8024 * commands/test.c (get_fileinfo): Return immediately if
8025 grub_fs_probe fails.
8026
8027 2009-09-14 José Martínez <xosemp@gmail.com>
8028
8029 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8030
8031 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8032
8033 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8034 output.
8035
8036 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8037
8038 * configure.ac: Remove --enable-grub-pe2elf. Only build
8039 grub-pe2elf when needed by the build system itself.
8040 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8041
8042 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8043
8044 * configure.ac: Bump version to 1.97~beta3.
8045 * docs/version.texi: Likewise.
8046
8047 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8048
8049 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8050 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8051 from here ...
8052 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8053 (grub_linux_setup_video): ... to here (with some adjustments).
8054
8055 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8056
8057 Fix memory corruption issue (spotted by Colin Watson).
8058
8059 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8060 causing returned size to be stored in an incorrect memory location.
8061 Fix use of uninitialized value when storing the returned size.
8062
8063 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8064
8065 Change clean rules to properly remove files
8066
8067 * genmk.rb: add new clean rules
8068 * Makefile.in (clean): add the new targets
8069 (mostlyclean): likewise
8070
8071 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8072
8073 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8074 to grub_uint64_t.
8075 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8076 non-resident files.
8077
8078 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8079
8080 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8081 part of bug #27349.
8082
8083 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8084
8085 * util/grub-mkconfig.in: Make the created config mode 400 and
8086 print a warning if it fails.
8087
8088 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8089
8090 * util/grub.d/40_custom.in: Ask user to type custom entries below
8091 comment, rather than below 'exec tail' line.
8092
8093 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8094
8095 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8096 visible in grub.cfg.
8097
8098 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8099
8100 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8101 file.
8102
8103 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8104
8105 * docs/grub.cfg: Add an example menu entry for memtest86+.
8106
8107 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8108
8109 * config.guess: Update to latest version from config git.
8110 * config.sub: Likewise.
8111
8112 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8113
8114 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8115 unknown-command case. Fixes bug #27320.
8116
8117 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8118
8119 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8120 `help' if the command exists.
8121
8122 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8123
8124 * INSTALL: Require GCC 4.1.3 or later.
8125
8126 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8127
8128 * Makefile.in (RMKFILES): add i386-qemu.rmk
8129 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8130 $(srcdir)/stamp-h.in
8131
8132 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8133
8134 * util/grub-probe.c (probe): Comment out buggy codepath, which
8135 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8136 should be re-enabled after 1.97.
8137
8138 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8139
8140 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8141 find searches for.
8142
8143 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8146 unnecessary calls to grub_error.
8147
8148 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8149
8150 * NEWS: Mention `keystatus' and Unicode fonts.
8151
8152 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8153
8154 * configure.ac: Bump version to 1.97~beta2.
8155 * docs/version.texi: Likewise.
8156
8157 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8158
8159 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8160 containing unwind information in some cases where it previously did
8161 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8162 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8163 discussion.
8164
8165 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8166
8167 Embedding loadenv module into grub-emu
8168
8169 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8170 commands/loadenv.c
8171 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8172 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8173 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8175 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8176 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8177
8178 2009-09-03 Magnus Granberg <zorry@ume.nu>
8179
8180 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8181 include -fPIE in the default specs.
8182 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8183 to TARGET_CFLAGS.
8184
8185 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8186
8187 * INSTALL: Note that GNU Bison 2.3 or later is required.
8188
8189 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8190
8191 * kern/i386/pc/startup.S: Fix typo.
8192
8193 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8196 according to GCS.
8197
8198 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8199
8200 * docs/grub.texi (Naming convention): Describe one-based partition
8201 numbering.
8202 (Device syntax): Likewise.
8203 (File name syntax): Likewise.
8204 (Block list syntax): Likewise.
8205 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8206 menu.lst.
8207 (File name syntax): Likewise.
8208 (Command-line and menu entry commands): Document acpi, blocklist,
8209 crc, export, insmod, keystatus, ls, set, and unset commands.
8210
8211 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8212
8213 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8214 to avoid implying that only one of --shift, --ctrl, or --alt may be
8215 used.
8216
8217 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8218
8219 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8220 rather than comparing against S_IFREG, which will almost never work.
8221
8222 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8223
8224 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8225 (write_blocklists): Likewise.
8226
8227 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8228
8229 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8230 argument to grub_printf.
8231
8232 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8233
8234 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8235 non GNU test.
8236
8237 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8238
8239 * kern/file.c (grub_file_read): Spelling fix
8240
8241 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8242
8243 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8244 loading of headers in some cases.
8245
8246 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8247
8248 * configure.ac: Bump version to 1.97~beta1.
8249 * docs/version.texi: Likewise.
8250
8251 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8252
8253 * include/grub/i386/xnu.h: Add license header.
8254 include grub/err.h explicitly.
8255
8256 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8257
8258 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8259 to `ufs' in the vfs.root.mountfrom kernel parameter.
8260
8261 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8262
8263 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8264
8265 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8266 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8267
8268 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8269 `ARRAY_SIZE' macro.
8270
8271 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 * kern/file.c (grub_file_read): Check offset.
8274 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8275 * fs/jfs.c (grub_jfs_read_file): Likewise.
8276 * fs/ntfs.c (grub_ntfs_read): Likewise.
8277 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8278 * fs/minix.c (grub_minix_read_file): Correct offset check.
8279 * fs/ufs.c (grub_ufs_read_file): Likewise.
8280
8281 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8282
8283 * term/i386/pc/console.c (bios_data_area): Cast
8284 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8285
8286 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8287
8288 1-bit optimised blitters.
8289
8290 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8291 prototype.
8292 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8293 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8294 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8295 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8296 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8297 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8298 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8299 function.
8300 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8301 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8302 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8303 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8304 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8305 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8306 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8307 when possible.
8308 * video/video.c (grub_video_get_blit_format): Return
8309 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8310
8311 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8312
8313 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8314 the first argument to grub_printf.
8315
8316 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8317 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8318
8319 Add `getkeystatus' terminal method. Add a new `keystatus' command
8320 to query it.
8321
8322 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8323 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8324 modifier key bitmasks.
8325 (struct grub_term_input): Add `getkeystatus' member.
8326 (grub_getkeystatus): Add prototype.
8327 * kern/term.c (grub_getkeystatus): New function.
8328
8329 * include/grub/i386/pc/memory.h
8330 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8331 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8332 Data Area layout.
8333 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8334 (grub_console_term_input): Set `getkeystatus' member.
8335 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8336 constants.
8337 (grub_usb_keyboard_getreport): Likewise.
8338 (grub_usb_keyboard_checkkey): Likewise.
8339 (grub_usb_keyboard_getkeystatus): New function.
8340 (grub_usb_keyboard_term): Set `getkeystatus' member.
8341
8342 * commands/keystatus.c: New file.
8343 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8344 (keystatus_mod_SOURCES): New variable.
8345 (keystatus_mod_CFLAGS): Likewise.
8346 (keystatus_mod_LDFLAGS): Likewise.
8347 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8348 commands/keystatus.c.
8349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8350 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8351 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8353 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8354 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8355
8356 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8357
8358 Split befs.mod and afs.mod into *_be.mod and *.mod
8359
8360 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8361 (grub_fstest_SOURCES): Likewise.
8362 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8363 (afs_be_mod_SOURCES): New variable.
8364 (afs_be_mod_CFLAGS): Likewise.
8365 (afs_be_mod_LDFLAGS): Likewise.
8366 (befs_be_mod_SOURCES): Likewise.
8367 (befs_be_mod_CFLAGS): Likewise.
8368 (befs_be_mod_LDFLAGS): Likewise.
8369 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8370 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8371 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8372 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8373 (grub_emu_SOURCES): Likewise.
8374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8375 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8376 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8377 * fs/afs_be.c: New file.
8378 * fs/befs_be.c: New file.
8379 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8380 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8381 (U16): Replaced with ...
8382 (grub_afs_to_cpu16): ...this. All users updated.
8383 (U32): Replaced with ...
8384 (grub_afs_to_cpu32): ...this. All users updated.
8385 (U64): Replaced with ...
8386 (grub_afs_to_cpu64): ...this. All users updated.
8387 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8388 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8389 (grub_afs_validate_sblock): Check only one endianness.
8390 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8391 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8392 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8393 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8394 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8395 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8396 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8397 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8398
8399 2009-08-26 Bean <bean123ch@gmail.com>
8400
8401 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8402 64-bit number.
8403 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8404 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8405 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8406
8407 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 NetBSD memory map support.
8410
8411 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8412 (grub_netbsd_btinfo_mmap_header): New structure.
8413 (grub_netbsd_btinfo_mmap_entry): Likewise.
8414 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8415
8416 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 Enable bsd.mod on coreboot.
8419
8420 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8421 (bsd_mod_SOURCES): New variable.
8422 (bsd_mod_CFLAGS): Likewise.
8423 (bsd_mod_LDFLAGS): Likewise.
8424 (bsd_mod_ASFLAGS): Likewise.
8425 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8426 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8427
8428 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8429
8430 Cleanup NetBSD root support.
8431
8432 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8433 grub_bsd_get_device.
8434 Fix typo.
8435
8436 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8437
8438 * util/grub.d/00_header.in: Move check for the video backend of
8439 gfxterm from here ...
8440 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8441 a suitable video backend.
8442
8443 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 Fix breakage in grub-setup.
8446
8447 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8448 "msdos_partition_map".
8449
8450 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8451
8452 Fix breakage in normal/auth.c.
8453
8454 * normal/auth.c (grub_iswordseparator): New function.
8455
8456 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 Authentication support.
8459
8460 * commands/password.c: New file.
8461 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8462 (password_mod_SOURCES): New variable.
8463 (password_mod_CFLAGS): Likewise.
8464 (password_mod_LDFLAGS): Likewise.
8465 (normal_mod_SOURCES): Add normal/auth.c.
8466 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8467 normal/auth.c.
8468 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8469 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8470 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8472 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8473 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8474 * include/grub/auth.h: New file.
8475 * include/grub/err.h (grub_err_t): New enum value
8476 GRUB_ERR_ACCESS_DENIED.
8477 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8478 'users'.
8479 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8480 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8481 users updated.
8482 * normal/auth.c: New file.
8483 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8484 (grub_cmdline_run): Don't allow to go to command line without
8485 authentication.
8486 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8487 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8488 menuentry without superuser rights.
8489 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8490 user isn't a superuser.
8491
8492 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 Save space by inlining misc.c functions.
8495
8496 * kern/misc.c (grub_iswordseparator): Made static.
8497 * kern/misc.c (grub_strcat): Moved from here ...
8498 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8499 * kern/misc.c (grub_strncat): Moved from here ...
8500 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8501 * kern/misc.c (grub_strcasecmp): Moved from here ...
8502 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8503 * kern/misc.c (grub_strncasecmp): Moved from here ...
8504 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8505 * kern/misc.c (grub_isalpha): Moved from here ...
8506 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8507 * kern/misc.c (grub_isdigit): Moved from here ...
8508 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8509 * kern/misc.c (grub_isgraph): Moved from here ...
8510 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8511 * kern/misc.c (grub_tolower): Moved from here ...
8512 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8513
8514 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 * script/sh/function.c (grub_script_function_find): Cut error message
8517 not to flood terminal.
8518 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8519 limit.
8520 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8521
8522 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8523
8524 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8525 `report' grub_uint8_t *.
8526 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8527 Use a 50-millisecond timeout rather than just repeating
8528 grub_usb_keyboard_getreport 50 times.
8529 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8530
8531 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 Rename *_partition_map to part_*
8534
8535 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8536 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8537 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8538 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8539 All users updated.
8540 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8541 All users updated.
8542 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8543 * util/grub-probe.c (probe_partmap): Don't transform partition name
8544 to get module name.
8545
8546 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8547
8548 Fix OpenBSD and NetBSD support.
8549
8550 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8551 memory address conflict.
8552 (OPENBSD_MMAP_ACPI): New definition.
8553 (OPENBSD_MMAP_NVS): Likewise.
8554 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8555 and OPENBSD_MMAP_NVS.
8556 Add memory map terminator
8557 Explicit cast when calling grub_unix_real_boot.
8558 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8559
8560 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8561
8562 Let user specify NetBSD root device.
8563
8564 * loader/i386/bsd.c (netbsd_root): New variable.
8565 (netbsd_opts): New option 'root'.
8566 (NETBSD_ROOT_ARG): New macro.
8567 (grub_netbsd_boot): Use 'netbsd_root'.
8568 (grub_bsd_unload): Free 'netbsd_root'.
8569 (grub_cmd_netbsd): Fill 'netbsd_root'.
8570
8571 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 Support for 64-bit NetBSD.
8574
8575 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8576 point when booting non-FreeBSD.
8577
8578 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 Support --no-smp and --no-acpi for NetBSD.
8581
8582 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8583 (NETBSD_AB_NOACPI): Likewise.
8584 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8585 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8586
8587 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8588
8589 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8590 errors.
8591 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8592 errors. Call grub_error when needed.
8593
8594 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * commands/search.c (search_fs): Try searching without autoload first.
8597 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8598 filesystem module explicitly for faster booting.
8599
8600 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8601
8602 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8603
8604 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8605
8606 * util/grub.d/30_os-prober.in: Disable os-prober if
8607 `GRUB_DISABLE_OS_PROBER' was set to true.
8608
8609 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8610
8611 * partmap/pc.c: Rename to ...
8612 * partmap/msdos.c: ... this. Update all users.
8613 (grub_pc_partition_map): Rename to ...
8614 (grub_msdos_partition_map): ... this. Update all users.
8615
8616 * parttool/pcpart.c: Rename to ...
8617 * parttool/msdospart.c: ... this. Update all users.
8618
8619 * include/grub/pc_partition.h: Rename to ...
8620 * include/grub/msdos_partition.h: ... this. Update all users.
8621 (grub_pc_partition_bsd_entry): Rename to ...
8622 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8623 (grub_pc_partition_disk_label): Rename to ...
8624 (grub_msdos_partition_disk_label): ... this. Update all users.
8625 (grub_pc_partition_entry): Rename to ...
8626 (grub_msdos_partition_entry): ... this. Update all users.
8627 (grub_pc_partition_mbr): Rename to ...
8628 (grub_msdos_partition_mbr): ... this. Update all users.
8629 (grub_pc_partition): Rename to ...
8630 (grub_msdos_partition): ... this. Update all users.
8631 (grub_pc_partition_is_empty): Rename to ...
8632 (grub_msdos_partition_is_empty): ... this. Update all users.
8633 (grub_pc_partition_is_extended): Rename to ...
8634 (grub_msdos_partition_is_extended): ... this. Update all users.
8635 (grub_pc_partition_is_bsd): Rename to ...
8636 (grub_msdos_partition_is_bsd): ... this. Update all users.
8637
8638 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8639 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8640 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8641 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8642 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8643 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8644 (gpt_mod_LDFLAGS): Rename to ...
8645 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8646 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8647 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8648 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8649 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8650 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8651 (part_gpt_mod_LDFLAGS): ... this.
8652 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8653 `pcpart.mod' to `msdospart.mod'.
8654 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8655 to ...
8656 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8657 (msdospart_mod_LDFLAGS): ... this.
8658
8659 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8660
8661 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8662 (openbsd_opts): Likewise.
8663 (netbsd_opts): Likewise.
8664 (freebsd_flags): Added 0 terminator.
8665 (openbsd_flags): Likewise.
8666 (netbsd_flags): Likewise.
8667 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8668 (grub_cmd_freebsd): Transformed into extended command.
8669 (grub_cmd_openbsd): Likewise.
8670 (grub_cmd_netbsd): Likewise.
8671 (cmd_freebsd): Changed type to grub_extcmd_t.
8672 (cmd_openbsd): Likewise.
8673 (cmd_netbsd): Likewise.
8674 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8675 grub_cmd_openbsd as extended commands.
8676 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8677 cmd_netbsd and cmd_openbsd
8678
8679 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8680
8681 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8682
8683 2009-08-21 Pavel Roskin <proski@gnu.org>
8684
8685 * Makefile.in (install-local): When checking if a file is in the
8686 build directory, use "test -e" to detect symlinks.
8687
8688 * Makefile.in (install-local): Remove all files in
8689 $(DESTDIR)$(pkglibdir) before installing new files there.
8690
8691 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8692
8693 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8694 grub-mkelfimage.
8695
8696 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8697
8698 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8699 explicitly specified by the user.
8700
8701 2009-08-18 Pavel Roskin <proski@gnu.org>
8702
8703 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8704 grub_uint8_t pointer for data.
8705 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8706 Likewise.
8707 * video/fb/fbutil.c: Remove unnecessary casts.
8708
8709 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8710
8711 VBE cleanup.
8712
8713 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8714 (grub_vbe_set_video_mode): Save active mode info
8715 only after setting the mode.
8716 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8717 second argument.
8718
8719 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8720
8721 Rename variables for clarity.
8722
8723 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8724 (active_vbe_mode_info): ... this. All users updated.
8725 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8726 All users updated.
8727 (initial_mode): Rename to ...
8728 (initial_vbe_mode): ... this. All users updated.
8729 (mode_in_use): Rename to ..
8730 (vbe_mode_in_use): ... this. All users updated.
8731 (mode_list): Rename to ..
8732 (vbe_mode_list): ... this. All users updated.
8733 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8734 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8735 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8736 'mode_list_size' to 'vbe_mode_list_size'.
8737 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8738 'best_mode_info' to 'best_vbe_mode_info' and
8739 'best_mode' to 'best_vbe_mode'
8740
8741 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8742
8743 Remove duplicate grub_video_fb_get_video_ptr.
8744
8745 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8746 (grub_video_fb_get_video_ptr): ... this.
8747 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8748 * video/fb/fbutil.c: Add comment about addressing.
8749 (get_data_ptr): Rename to ...
8750 (grub_video_fb_get_video_ptr): ... this. All users updated.
8751 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8752
8753 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8754
8755 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8756 grub_dprintf() that was just added.
8757
8758 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8759
8760 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8761 (DEFAULT_VIDEO_MODE): Remove macros.
8762 (grub_linux_boot): Remove assumption that Linux has FB support,
8763 and use "text" as default video mode.
8764
8765 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8768 grub_dprintf.
8769 * fs/fat.c (grub_fat_read_data): Likewise.
8770
8771 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8772
8773 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8774 payload.
8775 (grub_module): Likewise.
8776
8777 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8780 mbi->cmdline but free playground.
8781
8782 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 Handle group offset on UFS1.
8785
8786 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8787 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8788
8789 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8790
8791 Split ufs.mod into ufs1.mod and ufs2.mod.
8792
8793 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8794 (grub_fstest_SOURCES): Likewise.
8795 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8796 (ufs_mod_SOURCES): Remove.
8797 (ufs_mod_CFLAGS): Likewise.
8798 (ufs_mod_LDFLAGS): Likewise.
8799 (ufs1_mod_SOURCES): New variable.
8800 (ufs1_mod_CFLAGS): Likewise.
8801 (ufs1_mod_LDFLAGS): Likewise.
8802 (ufs2_mod_SOURCES): New variable.
8803 (ufs2_mod_CFLAGS): Likewise.
8804 (ufs2_mod_LDFLAGS): Likewise.
8805 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8806 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8807 Likewise.
8808 (grub_emu_SOURCES): Likewise.
8809 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8810 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8811 (grub_setup_SOURCES): Likewise.
8812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8813 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8814 (grub_setup_SOURCES): Likewise.
8815 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8816 Likewise.
8817 * fs/ufs2.c: New file.
8818 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8819
8820 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 Framebuffer split.
8823
8824 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8825 subsystem at the end.
8826 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8827 (video_fb_mod_SOURCES): New variable.
8828 (video_fb_mod_CFLAGS): Likewise.
8829 (video_fb_mod_LDFLAGS): Likewise.
8830 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8831 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8832 * video/i386/pc/vbeblit.c: Moved from here ...
8833 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8834 * video/i386/pc/vbefill.c: Moved from here ...
8835 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8836 * video/i386/pc/vbeutil.c: Moved from here ...
8837 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8838 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8839 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8840 * include/grub/i386/pc/vbefill.h: Moved from here ...
8841 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8842 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8843 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8844 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8845 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8846 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8847 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8848 (grub_video_adapter): Added 'get_info_and_fini'.
8849 (grub_video_get_info_and_fini): New prototype.
8850 (grub_video_set_mode): make modestring const char *.
8851 * loader/i386/linux.c (grub_linux_setup_video): Use
8852 grub_video_get_info_and_fini.
8853 (grub_linux_boot): Move modesetting just before booting.
8854 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8855 grub_video_get_info_and_fini.
8856 * video/i386/pc/vbe.c: Moved framebuffer part ...
8857 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8858 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8859 grub_video_fbstd_colors and grub_video_fb_set_palette.
8860 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8861 grub_video_fb_init.
8862 (grub_video_vbe_fini): Use grub_video_fb_fini.
8863 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8864 render_target and use grub_video_fb_set_active_render_target and
8865 grub_video_fb_set_palette.
8866 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8867 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8868 (grub_video_vbe_adapter): Use framebuffer.
8869 * video/video.c (grub_video_get_info_and_fini): New function.
8870 (grub_video_set_mode): Make modestring const char *.
8871 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8872 values are already initialised.
8873
8874 2009-08-14 Pavel Roskin <proski@gnu.org>
8875
8876 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8877 ABS and APPLE_CC.
8878 * boot/i386/pc/diskboot.S: Likewise.
8879 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8880 sectors allow compilation on MacOSX.
8881 * conf/i386-pc.rmk: Enable unconditional compilation of
8882 lnxboot.img.
8883
8884 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
8885
8886 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8887 * util/grub.d/00_header.in: Enter interruptible sleep if
8888 GRUB_HIDDEN_TIMEOUT is set.
8889
8890 2009-08-13 Yves Blusseau <blusseau@zetam.org>
8891
8892 * include/grub/symbol.h: Add the LOCAL macro.
8893 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8894 starting with "L_".
8895
8896 2009-08-13 Pavel Roskin <proski@gnu.org>
8897
8898 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8899 any modern compilers we support.
8900
8901 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8902 Use local labels starting with "L_" so that Apple assembler
8903 knows they are local.
8904
8905 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8906
8907 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8908 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8909 (bsd_kernel_types): ... this enum.
8910
8911 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8912 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8913 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8914
8915 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8916 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8917 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8918 messages.
8919
8920 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8921
8922 * util/grub-dumpdevtree: Moved from here ...
8923 * util/i386/efi/grub-dumpdevtree: ... to here.
8924 (hexify): New function. Converts a string to its hex version.
8925 Generate hex versions of "efi" and "device-properties" by calling
8926 hexify() on the ASCII strings rather than by hardcoding numbers.
8927
8928 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8929
8930 * fs/jfs.c: Update copyright year.
8931
8932 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8933
8934 * util/grub.d/00_header.in: Fix a comment.
8935 * util/grub.d/10_linux.in: Likewise.
8936 * util/grub.d/10_windows.in: Likewise.
8937 * util/grub.d/10_hurd.in: Likewise.
8938
8939 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8940
8941 * util/grub-mkconfig.in: Allow the user to specify the used font
8942 with GRUB_FONT.
8943
8944 2009-08-08 Pavel Roskin <proski@gnu.org>
8945
8946 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
8947 available, xfs.mod needs it now.
8948
8949 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
8950 the "g" modifier in sed when the intention is to strip something
8951 once. This fixes comparison of kernels with multiple dashes.
8952
8953 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
8954 on it. Add missing space before closing bracket. Fix
8955 misleading formatting.
8956
8957 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8958
8959 * docs/grub.texi: Major overhaul. Remove all sections that are
8960 specific to GRUB Legacy, or mostly composed of Legacy-specific
8961 information.
8962
8963 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8964
8965 * docs/version.texi: New file. Provides version information for
8966 grub.texi.
8967
8968 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8969
8970 * docs/grub.texi: Update CVS information to SVN.
8971 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
8972
8973 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8974
8975 * util/grub-mkconfig.in: Remove a wrong `fi'.
8976
8977 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8978
8979 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
8980 (grub_jfs_uuid): New function.
8981 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
8982
8983 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8984
8985 * util/grub-mkconfig_lib.in (font_path): Move the functionality
8986 of it to ...
8987 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
8988 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
8989
8990 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8991
8992 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
8993 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
8994 Update all users.
8995
8996 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
8997 not just "vmlinu[zx]".
8998 Moved from here ...
8999 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9000 all users.
9001
9002 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9003 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9004 all users.
9005
9006 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9007
9008 * util/grub.d/10_freebsd.in: Use an absolute device path for
9009 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9010
9011 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9012
9013 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9014 handling of multiple abstraction modules.
9015
9016 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9017
9018 Fix a bug resulting in black screen when loading Linux using a
9019 packed video mode.
9020
9021 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9022 function.
9023
9024 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9025 (grub_vbe_bios_getset_dac_palette_width): New function.
9026 (grub_vbe_bios_get_dac_palette_width)
9027 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9028 grub_vbe_bios_getset_dac_palette_width()).
9029
9030 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9031 check for return status.
9032 (grub_vbe_get_video_mode_info): When getting information for a packed
9033 mode (<= 8 bpp), obtain DAC palette width using
9034 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9035 {red,green,blue}_mark_size.
9036
9037 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9038
9039 * commands/search.c (options): Fix help output to match actual code.
9040
9041 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9042
9043 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9044 of homegrown code.
9045
9046 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9047
9048 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9049 on XFS or ReiserFS.
9050
9051 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9052
9053 Support Apple partition map with sector size different from 512 bytes.
9054
9055 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9056 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9057 and 'apart.partmap_size'.
9058
9059 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9060 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9061
9062 Fix cpuid command.
9063
9064 * commands/i386/cpuid.c (options): New variable.
9065 (grub_cmd_cpuid): Return real error.
9066 (GRUB_MOD_INIT(cpuid)): Declare options.
9067
9068 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9071 valid.
9072
9073 2009-07-31 Bean <bean123ch@gmail.com>
9074
9075 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9076 log2_inode.
9077 (grub_fshelp_node): Move inode field to the end.
9078 (grub_xfs_data): Remove inode field.
9079 (grub_xfs_inode_block): Calculate inode size using sblock.
9080 (grub_xfs_inode_offset): Likewise.
9081 (grub_xfs_read_inode): Calculate inode size using sblock.
9082 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9083 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9084 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9085 to match inode size.
9086 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9087 not accessible when data is null.
9088 (grub_xfs_open): Likewise.
9089
9090 2009-07-31 Bean <bean123ch@gmail.com>
9091
9092 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9093 Don't change pv->disk if it's already set.
9094
9095 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9096 (grub_raid_register): ... here.
9097 (grub_raid_rescan): Removed.
9098
9099 * include/grub/raid.h (grub_raid_rescan): Removed.
9100
9101 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9102 (fstest): Replace grub_raid_rescan with module fini function followed
9103 by init function.
9104
9105 * util/grub-probe.c: Add include file <grub/raid.h>.
9106 (probe_raid_level): New function.
9107 (probe): Detect abstraction by walking the disk device, support two
9108 level of abstraction (LVM on RAID) when detecting partition map.
9109
9110 2009-07-31 Pavel Roskin <proski@gnu.org>
9111
9112 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9113 to grub_zalloc(), it was erroneous.
9114 Reported by Bean <bean123ch@gmail.com>
9115
9116 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9119 embedding zone, not only the first one.
9120
9121 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9122
9123 * term/gfxterm.c (clear_char): New function.
9124 (grub_virtual_screen_setup): Use clear_char.
9125 (scroll_up): Likewise.
9126 (grub_virtual_screen_cls): Likewise.
9127
9128 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9129
9130 * util/deviceiter.c (get_acceleraid_disk_name): New static
9131 function.
9132 (grub_util_iterate_devices): Handle Accelraid devices.
9133 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9134
9135 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9136
9137 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9138 separator for the suggested gfxpayload string (';' collides with the
9139 parser and needs escaping).
9140
9141 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9144 Clear direction flag before jumping to OS.
9145 (grub_multiboot2_real_boot): Likewise.
9146
9147 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9148
9149 * util/i386/pc/grub-install: Fix parsing of --disk-module
9150 option.
9151
9152 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9153
9154 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9155 when embedding.
9156
9157 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9158
9159 * util/grub-mkconfig.in (package_version): New variable.
9160 Use it do display the version.
9161
9162 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9163
9164 * kern/file.c (grub_file_open): Revert to previous check with
9165 grub_errno.
9166
9167 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9168
9169 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9170 from help line. It's out of sync with code.
9171
9172 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9175 entries on failed boot.
9176
9177 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9178
9179 * kern/file.c (grub_file_open): Fix an error check.
9180
9181 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9182
9183 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9184 partition map couldn't be identified.
9185
9186 2009-07-23 Pavel Roskin <proski@gnu.org>
9187
9188 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9189 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9190 case of little endian words becomes just an optimization.
9191 Respect const modifier.
9192 (md5_final): Use code that doesn't depend on endianness.
9193
9194 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9195 to avoid loss of upper bits if align is unsigned and shorter
9196 than addr.
9197
9198 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9199
9200 UUID support for UFS
9201
9202 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9203 (grub_ufs_uuid): New function.
9204 (grub_ufs_fs): add .uuid
9205
9206 2009-07-21 Pavel Roskin <proski@gnu.org>
9207
9208 * kern/dl.c (grub_dl_check_header): Make static.
9209
9210 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9211
9212 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9213 add drivemap for Vista. It breaks Windows 7.
9214
9215 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9218 128 bytes
9219
9220 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 Add BFS support
9223
9224 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9225 (grub_fstest_SOURCES): Likewise.
9226 (pkglib_MODULES): Add befs.mod.
9227 (befs_mod_SOURCES): New variable.
9228 (befs_mod_CFLAGS): Likewise.
9229 (befs_mod_LDFLAGS): Likewise.
9230 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9231 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9232 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9233 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9234 (grub_setup_SOURCES): Likewise.
9235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9236 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9237 (grub_setup_SOURCES): Likewise.
9238 * fs/befs.c: New file.
9239 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9240 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9241 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9242 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9243 (B_KEY_INDEX_ALIGN): New declaration.
9244 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9245 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9246 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9247 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9248 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9249 (grub_afs_mount) [MODE_BFS]: Likewise.
9250 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9251 (grub_afs_fs): Use GRUB_AFS_FSNAME
9252 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9253 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9254 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9255 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9256
9257 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9258
9259 * util/getroot.c (find_root_device): Add support for MacOSX.
9260 * util/hostdisk.c: Likewise.
9261
9262 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 * font/font.c (find_glyph): Check whether a font is present to avoid
9265 segmentation fault.
9266
9267 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9268
9269 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9270
9271 2009-07-20 Pavel Roskin <proski@gnu.org>
9272
9273 * configure.ac: Trim excessively wordy excuses.
9274
9275 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 Add symlink, mtime and label support to AtheFS.
9278
9279 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9280 (grub_afs_iterate_dir): Handle symlinks.
9281 (grub_afs_open): Use grub_afs_read_symlink.
9282 (grub_afs_dir): Likewise.
9283 Pass mtime.
9284 (grub_afs_label): New function.
9285 (grub_afs_fs): Add grub_afs_label.
9286 (grub_afs_read_symlink): New function.
9287
9288 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 Fix AtheFS support.
9291
9292 * fs/afs.c: Fix comments style.
9293 (grub_afs_blockrun): Declare as packed.
9294 (grub_afs_datastream): Likewise.
9295 (grub_afs_bnode): Likewise.
9296 (grub_afs_btree): Likewise.
9297 (grub_afs_sblock): Likewise.
9298 Declare `name' as char.
9299 (grub_afs_inode): Declare as packed.
9300 Change void *vnode to grub_uint32_t unused.
9301 (grub_afs_iterate_dir): Check that key_size is positive.
9302 (grub_afs_mount): Don't read superblock twice.
9303 (grub_afs_dir): Don't free node in case of error,
9304 grub_fshelp_find_file already handles this.
9305 (grub_afs_open): Likewise.
9306
9307 2009-07-19 Pavel Roskin <proski@gnu.org>
9308
9309 * Makefile.in: Remove LIBLZO and enable_lzo.
9310 * conf/i386-pc.rmk: Remove lzo support.
9311 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9312 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9313 support.
9314 * kern/i386/pc/lzo1x.S: Remove.
9315 * kern/i386/pc/startup.S: Remove lzo support.
9316 * util/i386/pc/grub-mkimage.c: Likewise.
9317
9318 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9319
9320 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9321 * fs/xfs.c (grub_xfs_dir): Likewise.
9322 * fs/afs.c (grub_afs_dir): Likewise.
9323 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9324 (grub_iso9660_open): Likewise.
9325 * fs/jfs.c (grub_jfs_open): Likewise.
9326 * fs/ext2.c (grub_ext2_dir): Likewise.
9327 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9328 * script/sh/lexer.c (grub_script_yylex): Likewise.
9329
9330 2009-07-16 Pavel Roskin <proski@gnu.org>
9331
9332 * configure.ac: Never add "-c" to CFLAGS.
9333
9334 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9335
9336 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9337 grub_cv_cc_efiemu should be used.
9338
9339 * configure.ac: Typo fixes.
9340
9341 * kern/mm.c (grub_zalloc): New function.
9342 (grub_debug_zalloc): Likewise.
9343 * include/grub/mm.h: Declare grub_zalloc() and
9344 grub_debug_zalloc().
9345 * util/misc.c (grub_zalloc): New function.
9346 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9347 instead of grub_malloc(), remove unneeded initializations.
9348 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9349 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9350 * commands/parttool.c (grub_cmd_parttool): Likewise.
9351 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9352 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9353 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9354 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9355 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9356 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9357 (grub_cmd_efiemu_pnvram): Likewise.
9358 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9359 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9360 (grub_iso9660_iterate_dir): Likewise.
9361 * fs/jfs.c (grub_jfs_opendir): Likewise.
9362 * fs/ntfs.c (list_file): Likewise.
9363 (grub_ntfs_mount): Likewise.
9364 * kern/disk.c (grub_disk_open): Likewise.
9365 * kern/dl.c (grub_dl_load_core): Likewise.
9366 * kern/elf.c (grub_elf_file): Likewise.
9367 * kern/env.c (grub_env_context_open): Likewise.
9368 (grub_env_set): Likewise.
9369 (grub_env_set_data_slot): Likewise.
9370 * kern/file.c (grub_file_open): Likewise.
9371 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9372 * loader/i386/multiboot.c (grub_module): Likewise.
9373 * loader/xnu.c (grub_xnu_create_key): Likewise.
9374 (grub_xnu_create_value): Likewise.
9375 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9376 (read_config_file): Likewise.
9377 * normal/menu_entry.c (make_screen): Likewise.
9378 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9379 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9380 * script/sh/script.c (grub_script_parse): Likewise.
9381 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9382 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9383 * video/readers/png.c (grub_png_output_byte): Likewise.
9384 (grub_video_reader_png): Likewise.
9385
9386 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 Enable all targets that can be built by default
9389
9390 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9391 grub-mkfont and grub-fstest if they can be built
9392
9393 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9394
9395 Fix hang and segmentation fault in grub-emu-usb
9396
9397 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9398 * util/usb.c (grub_libusb_devices): likewise
9399 (grub_libusb_init): rename to ...
9400 (GRUB_MOD_INIT (libusb)):...this
9401 (grub_libusb_fini): rename to ..
9402 (GRUB_MOD_FINI (libusb)):...this
9403 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9404 * include/grub/disk.h (grub_raid_init): removed, it's useless
9405 (grub_raid_fini): likewise
9406 (grub_lvm_init): likewise
9407 (grub_lvm_fini): likewise
9408 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9409 by grub_init_all
9410
9411 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9412
9413 Fix libusb
9414
9415 * Makefile.in (LIBUSB): new macro
9416 * genmk.rb (Utility/print_tail): new method
9417 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9418 (top level): call util.print_tail at the end.
9419
9420 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9421
9422 Make FreeBSD accept zpool.cache
9423
9424 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9425 type is /boot/zfs/zpool.cache
9426
9427 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 Fix 64-bit efiemu
9430
9431 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9432 correct wrong typedef
9433 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9434
9435 2009-07-15 Pavel Roskin <proski@gnu.org>
9436
9437 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9438 * kern/disk.c (struct grub_disk_cache): Likewise.
9439
9440 * commands/probe.c (options): Typo fix.
9441
9442 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9443 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9444 accordingly.
9445 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9446
9447 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9448 the end of "Error" to make the message more readable.
9449
9450 * boot/i386/pc/boot.S (kernel_segment): Remove.
9451 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9452 for destination.
9453
9454 * boot/i386/pc/boot.S (boot_version): Remove.
9455 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9456 Remove.
9457
9458 * include/grub/i386/pc/boot.h: Sort all offsets.
9459 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9460 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9461 * boot/i386/pc/boot.S: Assert location of every offset listed in
9462 include/grub/i386/pc/boot.h.
9463
9464 2009-07-13 Pavel Roskin <proski@gnu.org>
9465
9466 * include/grub/i386/coreboot/machine.h: Rename
9467 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9468 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9469 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9470
9471 * kern/dl.c: Force native word size to suppress warnings when
9472 compiling grub-emu.
9473
9474 * kern/device.c (grub_device_iterate): Change struct part_ent to
9475 hold the name, not a pointer to it. Use one grub_malloc() per
9476 partition, not two. Free partition_name if grub_malloc() fails.
9477 Set ents to NULL only before grub_partition_iterate() is called.
9478
9479 2009-07-11 Bean <bean123ch@gmail.com>
9480
9481 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9482 childname.
9483
9484 2009-07-10 Bean <bean123ch@gmail.com>
9485 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9486
9487 * kern/ieee1275/openfw.c (grub_children_iterate)
9488 (grub_devalias_iterate): Fix size evaluation for property or path
9489 strings, which was broken since r2132.
9490
9491 2009-07-07 Pavel Roskin <proski@gnu.org>
9492
9493 * commands/search.c (search_file): Merge into ...
9494 (search_fs): ... this. Accept search type as argument.
9495 (grub_cmd_search): Pass search type to search_fs().
9496
9497 * include/grub/util/console.h: New file.
9498 * util/console.c: Use it instead of grub/machine/console.h.
9499 * util/grub-emu.c: Likewise.
9500
9501 * lib/arg.c (find_long_option): Remove.
9502 (find_long): Add `len' argument, make `s' const char *.
9503 (grub_arg_parse): Parse long options in place, not in a
9504 temporary buffer.
9505
9506 2009-07-06 Pavel Roskin <proski@gnu.org>
9507
9508 * commands/search.c (search_fs): Fix potential NULL pointer
9509 dereference.
9510
9511 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9512 function pointer.
9513
9514 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9515
9516 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9517 comparison.
9518
9519 2009-07-05 Pavel Roskin <proski@gnu.org>
9520
9521 * include/grub/i386/linux.h (struct linux_kernel_params):
9522 Restore padding3, it's still needed.
9523
9524 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9525 FreeBSD.
9526 * util/osdetect.lua: Likewise.
9527
9528 2009-07-05 Bean <bean123ch@gmail.com>
9529
9530 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9531
9532 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9533 (grub_lua_getenv): Likewise.
9534 (grub_lua_setenv): Likewise.
9535 (save_errno): New function.
9536 (push_result): Likewise.
9537 (grub_lua_enum_device): Likewise.
9538 (grub_lua_enum_file): Likewise.
9539 (grub_lua_file_open): Likewise.
9540 (grub_lua_file_close): Likewise.
9541 (grub_lua_file_seek): Likewise.
9542 (grub_lua_file_read): Likewise.
9543 (grub_lua_file_getline): Likewise.
9544 (grub_lua_file_getsize): Likewise.
9545 (grub_lua_file_getpos): Likewise.
9546 (grub_lua_file_eof): Likewise.
9547 (grub_lua_file_exist): Likewise.
9548 (grub_lua_add_menu): Likewise.
9549
9550 * script/lua/grub_lua.h (isupper): New inline function.
9551 (islower): Likewise.
9552 (ispunct): Likewise.
9553 (isxdigit): Likewise.
9554 (strcspn): Change to normal function.
9555 (strpbkr): New function declaration.
9556 (memchr): Likewise.
9557
9558 * script/lua/grub_main.c (scan_str): New function.
9559 (strcspn): Likewise.
9560 (strpbrk): Likewise.
9561 (memchr): Likewise.
9562
9563 * script/lua/linit.c (lualibs): Enable the string library.
9564
9565 * util/osdetect.lua: New file.
9566
9567 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9568
9569 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9570 `capabilities' member.
9571
9572 2009-07-02 Pavel Roskin <proski@gnu.org>
9573
9574 * genparttoollist.sh: Add missing newline at the end.
9575
9576 2009-07-01 Pavel Roskin <proski@gnu.org>
9577
9578 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9579
9580 * util/hostdisk.c (open_device): Remove `const' from
9581 `sysctl_size', as sysctlbyname() can change it (in this case it
9582 doesn't actually happen).
9583
9584 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9585 using signed long int constants.
9586
9587 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9588 constant to avoid a warning on FreeBSD.
9589
9590 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9591 where it's needed.
9592
9593 * Makefile.in: Install include/grub/machine symlink.
9594
9595 * Makefile.in: When installing symlinks, use "cp -fR", which
9596 works on FreeBSD and MacOSX.
9597 From Yves Blusseau <cl7m42e02@sneakemail.com>
9598
9599 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9600 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9601
9602 * util/misc.c: Move grub_reboot() and grub_halt() ...
9603 * util/grub-emu.c: ... here. Make main_env static.
9604 * include/grub/util/misc.h: Remove main_env.
9605
9606 * kern/mm.c: Use correct format to print size_t.
9607
9608 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9609 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9610 * kern/powerpc/dl.c: Likewise.
9611 * kern/sparc64/dl.c: Likewise.
9612 * kern/x86_64/dl.c: Likewise.
9613
9614 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9615
9616 Fix grub-emu build on sparc64-ieee1275.
9617
9618 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9620
9621 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9622
9623 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9624 (grub_reboot, grub_halt): New functions.
9625
9626 * util/i386/pc/misc.c: Delete. Update all users.
9627 * util/sparc64/ieee1275/misc.c: Likewise.
9628 * util/powerpc/ieee1275/misc.c: Likewise.
9629
9630 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9631
9632 * conf/i386.rmk (setjmp_mod_SOURCES)
9633 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9634 * conf/common.rmk (setjmp_mod_SOURCES)
9635 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9636 to use $(target_cpu).
9637 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9638 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9639 * conf/powerpc-ieee1275.rmk: Likewise.
9640 * conf/sparc64-ieee1275.rmk: Likewise.
9641
9642 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9643 $(target_cpu) for kern/$(target_cpu)/dl.c.
9644 * conf/i386-efi.rmk: Likewise.
9645 * conf/i386-ieee1275.rmk: Likewise.
9646 * conf/x86_64-efi.rmk: Likewise.
9647 * conf/i386-coreboot.rmk: Likewise.
9648 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9649 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9650 kern/$(target_cpu)/cache.S.
9651 * conf/sparc64-ieee1275.rmk: Likewise.
9652
9653 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9654
9655 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9656 type to `grub_uint8_t', and adjust `padding9' accordingly.
9657
9658 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9659
9660 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9661
9662 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9663 assembly in final jump, using register constraints.
9664
9665 (grub_linux_boot): For text mode, initialize `have_vga' using
9666 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9667
9668 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9669 right before the final jump.
9670
9671 Set `video_mode' to 0x3.
9672
9673 Document initialization of `video_page', `video_mode' and
9674 `video_ega_bx'.
9675
9676 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9677
9678 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9679 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9680 and set GRUB_LINUX_FLAG_QUIET appropriately.
9681
9682 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9683
9684 Fix build on Debian / sparc.
9685
9686 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9687
9688 2009-06-28 Pavel Roskin <proski@gnu.org>
9689
9690 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9691 fix a warning.
9692
9693 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9694
9695 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9696
9697 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9698 `err'.
9699
9700 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9701
9702 Revert r2338.
9703
9704 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9705 file can't be opened. grub_file_open() is already supposed to set
9706 grub_errno / grub_errmsg appropriately.
9707 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9708
9709 2009-06-27 Pavel Roskin <proski@gnu.org>
9710 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9711
9712 * include/grub/dl.h: Include grub/elf.h.
9713 (struct grub_dl): Add symtab field.
9714 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9715 GRUB_MODULES_MACHINE_READONLY.
9716 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9717 of the header for read-only modules.
9718 (grub_dl_unload): Free mod->symtab for read-only modules.
9719 * kern/i386/dl.c: Use mod->symtab.
9720 * kern/powerpc/dl.c: Likewise.
9721 * kern/sparc64/dl.c: Likewise.
9722 * kern/x86_64/dl.c: Likewise.
9723
9724 * conf/i386-qemu.rmk: New file.
9725 * kern/i386/qemu/startup.S: Likewise.
9726 * kern/i386/qemu/mmap.c: Likewise.
9727 * boot/i386/qemu/boot.S: Likewise.
9728 * include/grub/i386/qemu/time.h: Likewise.
9729 * include/grub/i386/qemu/serial.h: Likewise.
9730 * include/grub/i386/qemu/kernel.h: Likewise.
9731 * include/grub/i386/qemu/console.h: Likewise.
9732 * include/grub/i386/qemu/boot.h: Likewise.
9733 * include/grub/i386/qemu/init.h: Likewise.
9734 * include/grub/i386/qemu/machine.h: Likewise.
9735 * include/grub/i386/qemu/loader.h: Likewise.
9736 * include/grub/i386/qemu/memory.h: Likewise.
9737
9738 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9739 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9740 [qemu] (pkglib_IMAGES): Add `boot.img'.
9741 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9742 [qemu] (boot_img_FORMAT): New variables.
9743 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9744 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9745 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9746 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9747 [qemu] (kernel_img_FORMAT): New variables.
9748
9749 * configure.ac: Recognise `i386-qemu'.
9750
9751 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9752 (for no compression).
9753 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9754 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9755 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9756 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9757 ifdefs).
9758
9759 2009-06-27 Pavel Roskin <proski@gnu.org>
9760
9761 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9762 read.
9763 * efiemu/prepare32.c: Likewise.
9764 * efiemu/prepare64.c: Likewise.
9765
9766 2009-06-26 Pavel Roskin <proski@gnu.org>
9767
9768 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9769 * include/grub/elf.h: Define symbols without "32" or "64" based
9770 on GRUB_TARGET_WORDSIZE.
9771 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9772 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9773 ELF definitions.
9774 * efiemu/loadcore64.c: Likewise.
9775 * loader/i386/bsd32.c: Likewise.
9776 * loader/i386/bsd64.c: Likewise.
9777 * kern/dl.c: Remove own ELF definitions.
9778 * util/i386/efi/grub-mkimage.c: Likewise.
9779
9780 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9781
9782 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9783 segment 0x0 unconditionally, because the reference generated by
9784 GAS is an absolute address.
9785
9786 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9787
9788 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9789 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9790
9791 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9792
9793 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9794 indexes. Check for -f explicitly.
9795 (search_file): Improve error message.
9796 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
9797
9798 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9799
9800 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9801 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9802
9803 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9804
9805 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9806 * conf/i386-ieee1275.rmk: Likewise.
9807 * conf/i386-coreboot.rmk: Likewise.
9808
9809 * kern/i386/pc/startup.S (grub_stop): Remove function.
9810 * kern/i386/ieee1275/startup.S: Likewise.
9811 * kern/i386/coreboot/startup.S: Likewise.
9812 * kern/i386/misc.S (grub_stop): New function.
9813
9814 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9815
9816 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9817 * kern/i386/realmode.S (real_to_prot): ... to here.
9818
9819 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9820
9821 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9822 with `kernel.img'.
9823 (kernel_elf_SOURCES): Rename to ...
9824 (kernel_img_SOURCES): ... this.
9825 (kernel_elf_HEADERS): Rename to ...
9826 (kernel_img_HEADERS): ... this. Update all users.
9827 (kernel_elf_ASFLAGS): Rename to ...
9828 (kernel_img_ASFLAGS): ... this.
9829 (kernel_elf_CFLAGS): Rename to ...
9830 (kernel_img_CFLAGS): ... this.
9831 (kernel_elf_LDFLAGS): Rename to ...
9832 (kernel_img_LDFLAGS): ... this.
9833 * conf/i386-coreboot.rmk: Likewise.
9834 * conf/powerpc-ieee1275.rmk: Likewise.
9835
9836 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9837 with "kernel.img".
9838
9839 2009-06-21 Pavel Roskin <proski@gnu.org>
9840
9841 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9842 to match nested functions.
9843 * loader/sparc64/ieee1275/linux.c: Likewise.
9844
9845 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9846
9847 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9848
9849 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9850 all i386 platforms.
9851
9852 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9853
9854 Fix asm file handling on ELF, and remove workarounds.
9855
9856 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
9857 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
9858 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9859 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9860
9861 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 Load BSD ELF modules
9864
9865 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9866 and loader/i386/bsd64.c
9867 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9868 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9869 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9870 (grub_freebsd_load_elfmodule32): New declaration
9871 (grub_freebsd_load_elfmoduleobj64): Likewise
9872 (grub_freebsd_load_elf_meta32): Likewise
9873 (grub_freebsd_load_elf_meta64): Likewise
9874 (grub_freebsd_add_meta): Likewise
9875 (grub_freebsd_add_meta_module): Likewise
9876 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9877 (grub_freebsd_add_meta_module): Likewise and move module-specific
9878 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9879 (grub_cmd_freebsd): Add elf-kernel specific parts
9880 based on grub_freebsd_add_meta_module
9881 (grub_cmd_freebsd_module): Add type parsing moved from
9882 grub_freebsd_add_meta_module
9883 (grub_cmd_freebsd_module_elf): New function
9884 (cmd_freebsd_module_elf): New variable
9885 (GRUB_MOD_INIT): Register freebsd_module_elf
9886 * loader/i386/bsd32.c: New file
9887 * loader/i386/bsd64.c: Likewise
9888 * loader/i386/bsdXX.c: Likewise
9889 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9890 (grub_elf64_load): Likewise
9891 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9892 All users updated
9893 (grub_elf64_load_hook_t): Likewise
9894
9895 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
9896
9897 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9898 variable.
9899 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9900 don't write a menu entry for recovery mode.
9901
9902 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9903
9904 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9905 after it's no longer needed.
9906
9907 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9908
9909 * include/grub/i386/loader.h (grub_linux_prot_size)
9910 (grub_linux_tmp_addr, grub_linux_real_addr)
9911 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9912 GRUB_MACHINE_PCBIOS.
9913 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9914 common grub_util_info() call to ...
9915 (generate_image): ... here.
9916 Fix use of uninitialized memory, comparison of signed with
9917 unsigned integers and memory leak.
9918 Remove bogus module address message.
9919
9920 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9923 grub_raid_register
9924 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9925
9926 2009-06-19 Pavel Roskin <proski@gnu.org>
9927
9928 * configure.ac: Remove stray AC_MSG_CHECKING.
9929
9930 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9931
9932 * disk/scsi.c (grub_scsi_open): use continue instead of big if
9933
9934 2009-06-18 Pavel Roskin <proski@gnu.org>
9935
9936 * conf/common.rmk: Add fs_file.mod.
9937 * disk/fs_file.c: New file.
9938 * include/grub/disk.h (enum grub_disk_dev_id): Add
9939 GRUB_DISK_DEVICE_FILE_ID.
9940
9941 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 Fix build with Apple's toolchain. Part 2
9944
9945 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
9946 a fake start
9947
9948 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 Fix build with Apple's toolchain. Part 1
9951
9952 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
9953 for long calls
9954 * configure.ac: remove a leftover AC_MSG_RESULT
9955 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
9956 Apple's toolchain
9957
9958 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 Fix warnings
9961
9962 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
9963 (decomp_block): initialize ch
9964 use grub_memcpy instead of memcpy
9965
9966 2009-06-17 Pavel Roskin <proski@gnu.org>
9967
9968 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
9969 version, use declarations needed to use vga_text as the startup
9970 console.
9971
9972 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
9973 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
9974 the kernel.
9975 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
9976 and grub_at_keyboard_fini(), it's done on module load and
9977 unload.
9978
9979 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
9980
9981 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
9982 file can't be found.
9983 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9984
9985 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 Fix newline handling
9988
9989 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
9990 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
9991 (grub_script_yylex): don't segfault on unterminated script
9992 newline terminates command and variable
9993
9994 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 avoid double grub_adjust_range call. Bug reported by David Simner
9997
9998 * kern/disk.c (grub_disk_write): change to raw disk access before
9999 calling disk_read
10000
10001 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10002
10003 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10004 spaces, for the benefit of help2man.
10005 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10006
10007 2009-06-16 Pavel Roskin <proski@gnu.org>
10008
10009 * kern/i386/halt.c: Include grub/machine/init.h.
10010 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10011
10012 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10013
10014 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10015 drivemap menuentry.
10016
10017 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10018
10019 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10020 `echo' command.
10021
10022 2009-06-16 Pavel Roskin <proski@gnu.org>
10023
10024 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10025 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10026 save %dx, we only need %dl and we never change it.
10027 * boot/i386/pc/cdboot.S: Don't set the root drive.
10028 * boot/i386/pc/pxeboot.S: Likewise.
10029 * include/grub/i386/pc/boot.h: Remove
10030 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10031 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10032 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10033 * kern/i386/pc/init.c (make_install_device): Remove references
10034 to grub_root_drive.
10035 * kern/i386/pc/startup.S: Likewise.
10036 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10037
10038 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 xnu_uuid command
10041
10042 * commands/xnu_uuid.c: new file
10043 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10044 (xnu_uuid_mod_SOURCES): new variable
10045 (xnu_uuid_mod_CFLAGS): likewise
10046 (xnu_uuid_mod_LDFLAGS): likewise
10047 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10048 * conf/i386-ieee1275.rmk: likewise
10049 * conf/i386-pc.rmk: likewise
10050 * conf/powerpc-ieee1275.rmk: likewise
10051 * conf/sparc64-ieee1275.rmk: likewise
10052 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10053
10054 2009-06-16 Pavel Roskin <proski@gnu.org>
10055
10056 * configure.ac: Avoid '==' in test command, it's not portable.
10057
10058 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 Probe command
10061
10062 * commands/probe.c: new file
10063 * conf/common.rmk (pkglib_MODULES): add probe.mod
10064 (probe_mod_SOURCES): new variable
10065 (probe_mod_CFLAGS): likewise
10066 (probe_mod_LDFLAGS): likewise
10067 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10068 * conf/i386-ieee1275.rmk: likewise
10069 * conf/i386-pc.rmk: likewise
10070 * conf/powerpc-ieee1275.rmk: likewise
10071 * conf/sparc64-ieee1275.rmk: likewise
10072
10073 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10074
10075 Fix handling of string like \"hello\" and "a
10076 b"
10077
10078 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10079 (grub_script_yylex): fix parsing of quoting, escaping and newline
10080
10081 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10084 handling
10085
10086 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10087
10088 * util/grub-mkconfig.in: Fix parsing of --output option.
10089
10090 2009-06-12 Pavel Roskin <proski@gnu.org>
10091
10092 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10093 genmk.rb don't need to be generated or installed.
10094
10095 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 * commands/i386/pc/drivemap_int13h.S: add more comments
10098
10099 2009-06-11 Pavel Roskin <proski@gnu.org>
10100
10101 * Makefile.in (uninstall): Uninstall manuals.
10102
10103 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10104 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10105 and update-grub_lib in two places.
10106 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10107
10108 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10109 a compiler warning.
10110
10111 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10112 `entry_lo' to fix variable shadowing.
10113
10114 2009-06-11 Christian Franke <franke@computer.org>
10115
10116 * kern/misc.c (__enable_execute_stack): Add missing return type
10117 to prevent gcc warning.
10118
10119 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10120
10121 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10122
10123 2009-06-11 Pavel Roskin <proski@gnu.org>
10124
10125 * Makefile.in: Don't rely on any scripts being executable.
10126 Always use $(SHELL) to run shell scripts.
10127
10128 * configure.ac: Always define ___main if using -nostdlib. This
10129 fixes tests on Cygwin.
10130
10131 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10132
10133 UDF fix
10134
10135 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10136 is in bytes and not in blocks
10137
10138 2009-06-11 Pavel Roskin <proski@gnu.org>
10139
10140 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10141 warning.
10142
10143 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10144
10145 * util/grub.d/30_os-prober.in: Fix a comment. Source
10146 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10147 to set the root device. Place drivemap command in the generated
10148 chain entry.
10149
10150 2009-06-11 Pavel Roskin <proski@gnu.org>
10151
10152 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10153 have long been resolved.
10154
10155 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10156
10157 * util/grub.d/10_linux.in: Capitalise "Linux".
10158
10159 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10160
10161 2009-06-11 Pavel Roskin <proski@gnu.org>
10162
10163 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10164 fix a gcc warning and ensure that the function won't ever exit.
10165
10166 * kern/i386/ieee1275/init.c: Add missing prototype for
10167 grub_stop_floppy().
10168
10169 * loader/ieee1275/multiboot2.c [__i386__]: Include
10170 grub/cpu/multiboot.h.
10171
10172 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10173 casts to short - they are not portable and cause warnings. Fix
10174 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10175
10176 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 Drivemap fixes
10179
10180 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10181 new function
10182 (grub_get_root_biosnumber_saved): new variable
10183 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10184 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10185 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10186 %dx after the call if necessary
10187 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10188 (boot_mod_SOURCES): remove
10189 (boot_mod_CFLAGS): remove
10190 (boot_mod_LDFLAGS): remove
10191 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10192 (boot_mod_SOURCES): new variable
10193 (boot_mod_CFLAGS): likewise
10194 (boot_mod_LDFLAGS): likewise
10195 * conf/i386-efi.rmk: likewise
10196 * conf/i386-ieee1275.rmk: likewise
10197 * conf/i386-pc.rmk: likewise
10198 * conf/powerpc-ieee1275.rmk: likewise
10199 * conf/sparc64-ieee1275.rmk: likewise
10200 * conf/x86_64-efi.rmk: likewise
10201 * include/grub/i386/pc/biosnum.h: new file
10202 * lib/i386/pc/biosnum.c: likewise
10203 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10204 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10205 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10206
10207 2009-06-10 Pavel Roskin <proski@gnu.org>
10208
10209 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10210 Use separate variables. Read only the file size at the end, but
10211 not the checksum that we don't use.
10212
10213 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10214 Adjust all callers.
10215
10216 * kern/ieee1275/openfw.c: Remove libc includes.
10217 * kern/ieee1275/cmain.c: Likewise.
10218 * include/grub/ieee1275/ieee1275.h: Likewise.
10219
10220 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10221 compiler warnings.
10222
10223 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10224
10225 * Makefile.in: Remove all trailing whitespace.
10226 * conf/i386-pc.rmk: Likewise.
10227 * conf/powerpc-ieee1275.rmk: Likewise.
10228 * conf/sparc64-ieee1275.rmk: Likewise.
10229 * docs/grub.texi: Likewise.
10230 * docs/texinfo.tex: Likewise.
10231 * disk/fs_uuid.c: Likewise.
10232 * disk/lvm.c: Likewise.
10233 * disk/scsi.c: Likewise.
10234 * disk/ata.c: Likewise.
10235 * disk/ieee1275/ofdisk.c: Likewise.
10236 * disk/i386/pc/biosdisk.c: Likewise.
10237 * disk/host.c: Likewise.
10238 * disk/raid.c: Likewise.
10239 * disk/efi/efidisk.c: Likewise.
10240 * disk/usbms.c: Likewise.
10241 * disk/memdisk.c: Likewise.
10242 * disk/loopback.c: Likewise.
10243 * kern/powerpc/dl.c: Likewise.
10244 * kern/device.c: Likewise.
10245 * kern/dl.c: Likewise.
10246 * kern/sparc64/dl.c: Likewise.
10247 * kern/ieee1275/ieee1275.c: Likewise.
10248 * kern/term.c: Likewise.
10249 * kern/fs.c: Likewise.
10250 * kern/i386/dl.c: Likewise.
10251 * kern/i386/pc/startup.S: Likewise.
10252 * kern/i386/pc/init.c: Likewise.
10253 * kern/i386/pc/mmap.c: Likewise.
10254 * kern/i386/pc/lzo1x.S: Likewise.
10255 * kern/i386/ieee1275/init.c: Likewise.
10256 * kern/i386/realmode.S: Likewise.
10257 * kern/i386/tsc.c: Likewise.
10258 * kern/partition.c: Likewise.
10259 * kern/corecmd.c: Likewise.
10260 * kern/file.c: Likewise.
10261 * kern/efi/efi.c: Likewise.
10262 * kern/efi/init.c: Likewise.
10263 * kern/efi/mm.c: Likewise.
10264 * kern/main.c: Likewise.
10265 * kern/err.c: Likewise.
10266 * kern/env.c: Likewise.
10267 * kern/disk.c: Likewise.
10268 * kern/generic/millisleep.c: Likewise.
10269 * kern/generic/rtc_get_time_ms.c: Likewise.
10270 * kern/misc.c: Likewise.
10271 * kern/parser.c: Likewise.
10272 * genmk.rb: Likewise.
10273 * configure.ac: Likewise.
10274 * boot/i386/pc/diskboot.S: Likewise.
10275 * boot/i386/pc/pxeboot.S: Likewise.
10276 * boot/i386/pc/boot.S: Likewise.
10277 * boot/i386/pc/lnxboot.S: Likewise.
10278 * boot/i386/pc/cdboot.S: Likewise.
10279 * parttool/pcpart.c: Likewise.
10280 * video/readers/tga.c: Likewise.
10281 * video/video.c: Likewise.
10282 * video/bitmap.c: Likewise.
10283 * lib/envblk.c: Likewise.
10284 * lib/i386/setjmp.S: Likewise.
10285 * fs/xfs.c: Likewise.
10286 * fs/afs.c: Likewise.
10287 * fs/fat.c: Likewise.
10288 * fs/ntfs.c: Likewise.
10289 * fs/udf.c: Likewise.
10290 * fs/affs.c: Likewise.
10291 * fs/iso9660.c: Likewise.
10292 * fs/hfs.c: Likewise.
10293 * fs/fshelp.c: Likewise.
10294 * fs/ext2.c: Likewise.
10295 * fs/jfs.c: Likewise.
10296 * fs/reiserfs.c: Likewise.
10297 * fs/hfsplus.c: Likewise.
10298 * fs/minix.c: Likewise.
10299 * fs/cpio.c: Likewise.
10300 * fs/sfs.c: Likewise.
10301 * fs/ufs.c: Likewise.
10302 * efiemu/prepare.c: Likewise.
10303 * efiemu/loadcore_common.c: Likewise.
10304 * efiemu/runtime/efiemu.sh: Likewise.
10305 * efiemu/runtime/efiemu.S: Likewise.
10306 * efiemu/runtime/efiemu.c: Likewise.
10307 * efiemu/pnvram.c: Likewise.
10308 * efiemu/main.c: Likewise.
10309 * efiemu/i386/pc/cfgtables.c: Likewise.
10310 * efiemu/i386/loadcore64.c: Likewise.
10311 * efiemu/i386/loadcore32.c: Likewise.
10312 * efiemu/loadcore.c: Likewise.
10313 * efiemu/symbols.c: Likewise.
10314 * efiemu/mm.c: Likewise.
10315 * include/grub/autoefi.h: Likewise.
10316 * include/grub/datetime.h: Likewise.
10317 * include/grub/term.h: Likewise.
10318 * include/grub/hfs.h: Likewise.
10319 * include/grub/lvm.h: Likewise.
10320 * include/grub/i386/tsc.h: Likewise.
10321 * include/grub/i386/linux.h: Likewise.
10322 * include/grub/i386/xnu.h: Likewise.
10323 * include/grub/i386/efiemu.h: Likewise.
10324 * include/grub/i386/pc/biosdisk.h: Likewise.
10325 * include/grub/i386/pc/memory.h: Likewise.
10326 * include/grub/i386/pc/vbe.h: Likewise.
10327 * include/grub/parttool.h: Likewise.
10328 * include/grub/video.h: Likewise.
10329 * include/grub/memory.h: Likewise.
10330 * include/grub/fs.h: Likewise.
10331 * include/grub/partition.h: Likewise.
10332 * include/grub/xnu.h: Likewise.
10333 * include/grub/efi/api.h: Likewise.
10334 * include/grub/efi/pe32.h: Likewise.
10335 * include/grub/efi/memory.h: Likewise.
10336 * include/grub/multiboot.h: Likewise.
10337 * include/grub/usbdesc.h: Likewise.
10338 * include/grub/multiboot2.h: Likewise.
10339 * include/grub/acpi.h: Likewise.
10340 * include/grub/efiemu/efiemu.h: Likewise.
10341 * include/grub/disk.h: Likewise.
10342 * include/grub/ieee1275/ieee1275.h: Likewise.
10343 * include/grub/net.h: Likewise.
10344 * include/grub/machoload.h: Likewise.
10345 * include/grub/macho.h: Likewise.
10346 * include/multiboot.h: Likewise.
10347 * genmoddep.awk: Likewise.
10348 * normal/main.c: Likewise.
10349 * normal/menu_entry.c: Likewise.
10350 * normal/menu_viewer.c: Likewise.
10351 * normal/completion.c: Likewise.
10352 * normal/cmdline.c: Likewise.
10353 * normal/misc.c: Likewise.
10354 * normal/datetime.c: Likewise.
10355 * bus/usb/usbtrans.c: Likewise.
10356 * bus/usb/ohci.c: Likewise.
10357 * bus/usb/uhci.c: Likewise.
10358 * bus/usb/usb.c: Likewise.
10359 * mmap/efi/mmap.c: Likewise.
10360 * mmap/i386/pc/mmap_helper.S: Likewise.
10361 * mmap/i386/pc/mmap.c: Likewise.
10362 * mmap/i386/mmap.c: Likewise.
10363 * mmap/i386/uppermem.c: Likewise.
10364 * mmap/mmap.c: Likewise.
10365 * commands/acpi.c: Likewise.
10366 * commands/echo.c: Likewise.
10367 * commands/blocklist.c: Likewise.
10368 * commands/loadenv.c: Likewise.
10369 * commands/usbtest.c: Likewise.
10370 * commands/boot.c: Likewise.
10371 * commands/parttool.c: Likewise.
10372 * commands/search.c: Likewise.
10373 * commands/cat.c: Likewise.
10374 * commands/i386/pc/play.c: Likewise.
10375 * commands/i386/pc/drivemap.c: Likewise.
10376 * commands/i386/pc/vbeinfo.c: Likewise.
10377 * commands/i386/pc/acpi.c: Likewise.
10378 * commands/i386/pc/vbetest.c: Likewise.
10379 * commands/ls.c: Likewise.
10380 * commands/cmp.c: Likewise.
10381 * commands/test.c: Likewise.
10382 * commands/efi/acpi.c: Likewise.
10383 * commands/gptsync.c: Likewise.
10384 * commands/help.c: Likewise.
10385 * partmap/amiga.c: Likewise.
10386 * partmap/apple.c: Likewise.
10387 * partmap/acorn.c: Likewise.
10388 * partmap/pc.c: Likewise.
10389 * partmap/sun.c: Likewise.
10390 * partmap/gpt.c: Likewise.
10391 * script/sh/lexer.c: Likewise.
10392 * script/sh/function.c: Likewise.
10393 * font/font.c: Likewise.
10394 * font/font_cmd.c: Likewise.
10395 * loader/powerpc/ieee1275/linux.c: Likewise.
10396 * loader/efi/chainloader.c: Likewise.
10397 * loader/multiboot_loader.c: Likewise.
10398 * loader/macho.c: Likewise.
10399 * loader/i386/multiboot.c: Likewise.
10400 * loader/i386/linux.c: Likewise.
10401 * loader/i386/pc/linux.c: Likewise.
10402 * loader/i386/pc/multiboot2.c: Likewise.
10403 * loader/i386/pc/chainloader.c: Likewise.
10404 * loader/i386/pc/xnu.c: Likewise.
10405 * loader/i386/bsd_trampoline.S: Likewise.
10406 * loader/i386/efi/linux.c: Likewise.
10407 * loader/i386/multiboot_elfxx.c: Likewise.
10408 * loader/i386/bsd_helper.S: Likewise.
10409 * loader/i386/bsd.c: Likewise.
10410 * loader/i386/linux_trampoline.S: Likewise.
10411 * loader/i386/xnu_helper.S: Likewise.
10412 * loader/i386/xnu.c: Likewise.
10413 * loader/i386/bsd_pagetable.c: Likewise.
10414 * loader/i386/multiboot_helper.S: Likewise.
10415 * loader/xnu.c: Likewise.
10416 * loader/xnu_resume.c: Likewise.
10417 * io/gzio.c: Likewise.
10418 * term/efi/console.c: Likewise.
10419 * term/terminfo.c: Likewise.
10420 * term/ieee1275/ofconsole.c: Likewise.
10421 * term/i386/pc/serial.c: Likewise.
10422 * term/i386/pc/vesafb.c: Likewise.
10423 * term/i386/pc/vga.c: Likewise.
10424 * term/usb_keyboard.c: Likewise.
10425 * term/gfxterm.c: Likewise.
10426 * aclocal.m4: Likewise.
10427 * util/lvm.c: Likewise.
10428 * util/grub.d/30_os-prober.in: Likewise.
10429 * util/grub.d/10_hurd.in: Likewise.
10430 * util/console.c: Likewise.
10431 * util/grub-macho2img.c: Likewise.
10432 * util/grub-probe.c: Likewise.
10433 * util/hostfs.c: Likewise.
10434 * util/i386/pc/grub-mkimage.c: Likewise.
10435 * util/i386/pc/grub-setup.c: Likewise.
10436 * util/i386/efi/grub-mkimage.c: Likewise.
10437 * util/grub-mkconfig.in: Likewise.
10438 * util/raid.c: Likewise.
10439 * util/resolve.c: Likewise.
10440 * util/grub-mkdevicemap.c: Likewise.
10441 * util/grub-emu.c: Likewise.
10442 * util/getroot.c: Likewise.
10443 * util/hostdisk.c: Likewise.
10444 * util/usb.c: Likewise.
10445 * util/grub-editenv.c: Likewise.
10446 * util/misc.c: Likewise.
10447
10448 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10449
10450 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10451 `genparttoollist.sh'.
10452 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10453 Add `*.sh' to the list find searches for and change `mdate.sh'
10454 to `mdate-sh'.
10455
10456 2009-06-10 Pavel Roskin <proski@gnu.org>
10457
10458 * include/grub/multiboot2.h: Provide compatibility defines for
10459 multiboot2.h.
10460 * include/multiboot2.h: Include stdint.h only if needed, using
10461 angle brackets.
10462 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10463 grub/multiboot2.h.
10464 * loader/ieee1275/multiboot2.c: Likewise.
10465 * loader/multiboot2.c: Likewise.
10466 * loader/multiboot_loader.c: Likewise.
10467
10468 * configure.ac: Use -nostdlib when probing for the target. It
10469 should not be required to have libc for the target.
10470
10471 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10472 they fail without libc headers for the target.
10473 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10474 exports.
10475 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10476 preprocessor conditionals.
10477
10478 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10479 build system doesn't need to be aware of the tar.c internals.
10480
10481 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10482
10483 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10484
10485 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10486
10487 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10488 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10489
10490 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10491
10492 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10493 aren't available if ata.mod gets used.
10494
10495 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10496
10497 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10498 initialising controller.
10499 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10500
10501 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10502
10503 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10504 to choose between ata and biosdisk module on i386-pc.
10505
10506 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10507
10508 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10509 Subclass and Programming Interface fields in terms of the 3 byte
10510 Class Code register.
10511 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10512
10513 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10514 interface is OHCI. Add grub_dprintf for symmetry with
10515 bus/usb/uhci.c.
10516 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10517 interface is UHCI. Add interf variable for programming
10518 interface. Print interface with class/subclass.
10519
10520 * bus/usb/ohci.c: Set interf with correct field.
10521
10522 * bus/usb/uhci.c: Remove unneeded doubled lines.
10523 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10524 Remove whitespace inside comment.
10525
10526 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10527
10528 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10529 as fallback an equivalent option without depth.
10530
10531 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10532
10533 Not fail if unable to retrieve C/H/S on LBA disks
10534
10535 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10536 if unable to retrieve C/H/S on LBA disks
10537
10538 2009-06-08 Pavel Roskin <proski@gnu.org>
10539
10540 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10541 about aliasing.
10542
10543 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10544
10545 * Makefile.in (uninstall): Remove all $lib_DATA files.
10546
10547 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10548
10549 Bugfix: install on partitionless device
10550
10551 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10552 is a whole disk
10553
10554 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10555
10556 * Makefile.in (uninstall): Remove all $include_DATA files.
10557
10558 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10559
10560 * commands/true.c: New file. Implement the true and false commands.
10561 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10562 (true_mod_SOURCES): New variable.
10563 (true_mod_CFLAGS): Likewise.
10564 (true_mod_LDFLAGS): Likewise.
10565
10566 2009-06-05 Colin D Bennett <colin@gibibit.com>
10567
10568 Optimized font character lookup using binary search instead of linear
10569 search. Fonts now are required to have the character index ordered by
10570 code point.
10571
10572 * font/font.c (load_font_index): Verify that fonts have ordered
10573 character indices.
10574 (find_glyph): Use binary search instead of linear search to find a
10575 character in a font.
10576
10577 2009-06-05 Michael Scherer <misc@mandriva.org>
10578
10579 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10580 uses case sensitive btree.
10581 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10582 only for case insensitive filesystems.
10583
10584 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10587 * conf/common.rmk (search_mod_CFLAGS): likewise
10588
10589 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10592 compensate a compiler bug
10593
10594 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10595
10596 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10597 instead of '\b'
10598
10599 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10600
10601 Definitions for creating asm symbols with Apple's CC
10602
10603 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10604 [APPLE_CC] (VARIABLE): likewise
10605
10606 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 Disable lnxboot.img when compiled
10609 with Apple's CC
10610
10611 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10612 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10613 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10614 [! APPLE_CC] (CODE_LENG): skip
10615 [! APPLE_CC] (setup_sects): likewise
10616 [! APPLE_CC]: skip filling
10617
10618 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10619
10620 Address in trampolines based on 32-bit registers when compiled
10621 with Apple's CC
10622
10623 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10624 for addresses
10625 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10626
10627 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10630
10631 * kern/misc.c [APPLE_CC] (memcpy): new function
10632 [APPLE_CC] (memmove): likewise
10633 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10634 (memcpy): define alias conditionally on !APPLE_CC
10635 (memset): likewise
10636 (abort): likewise
10637 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10638 APPLE_CC are defined
10639 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10640 (grub_assert_fail): make prototype conditional
10641
10642 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10645
10646 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10647 grub-macho2img
10648 (CLEANFILES): add grub-macho2img
10649 (grub_macho2img_SOURCES): new variable
10650 * kern/i386/pc/startup.S (bss_start): new variable
10651 (bss_end): likewise
10652 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10653 * util/grub-macho2img.c: new file
10654
10655 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 Use objconv when compiling with Apple's CC
10658
10659 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10660 (efiemu64.o): likewise
10661 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10662 when compiling with Apple's CC
10663 (efiemu64_s.o): likewise
10664 * configure.ac: check for objconv when compiling with Apple's CC
10665 * genmk.rb: use objconv for modules when compiled with Apple's CC
10666
10667 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10668
10669 Define segment as well as section when compiling with
10670 Apple's CC
10671
10672 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10673 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10674 (efiemu_convert_pointer): likewise
10675 (efiemu_set_virtual_address_map): likewise
10676 (efiemu_convert_pointer): likewise
10677 (efiemu_getcrc32): likewise
10678 (init_crc32_table): likewise
10679 (reflect): likewise
10680 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10681 (GRUB_MOD_DEP): likewise
10682
10683 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 Allow a compilation without -mcmodel=large
10686
10687 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10688 when compiled without -mcmodel=large
10689 (filter_memory_map): remove memory post 4 GiB when compiled
10690 without -mcmodel=large
10691 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10692 TARGET_CFLAGS when -mcmodel=large isn't supported
10693
10694 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10695
10696 Remove nested functions in efiemu core
10697
10698 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10699
10700 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10703
10704 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10705 temporary storage
10706 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10707 using Apple's CC
10708 (grub_cpu_is_tsc_supported): likewise
10709 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10710
10711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 Absolute addressing through constant with Apple's cc
10714
10715 * kern/i386/pc/startup.S: Define necessary constants
10716 and address through it when using ABS with Apple's CC
10717 * boot/i386/pc/diskboot.S: likewise
10718 * boot/i386/pc/boot.S: likewise
10719 * boot/i386/pc/lnxboot.S: likewise
10720 * boot/i386/pc/cdboot.S: likewise
10721 * mmap/i386/pc/mmap_helper.S: likewise
10722 * commands/i386/pc/drivemap_int13h.S: likewise
10723
10724 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10725
10726 Check if compiler is apple cc
10727
10728 * Makefile.in (ASFLAGS): new variable
10729 (TARGET_ASFLAGS): likewise
10730 (TARGET_MODULE_FORMAT): likewise
10731 (TARGET_APPLE_CC): likewise
10732 (OBJCONV): likewise
10733 (TARGET_IMG_CFLAGS): likewise
10734 (TARGET_CPPFLAGS): add includedir
10735 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10736 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10737 Check for linker script only if compiler isn't Apple's CC
10738 (TARGET_MODULE_FORMAT): set
10739 (TARGET_APPLE_CC): likewise
10740 (TARGET_ASFLAGS): likewise
10741 (ASFLAGS): likewise
10742 Check for objcopy only if compiler isn't Apple's CC
10743 Check for BSS symbol only if compiler isn't Apple's CC
10744 * genmk.rb: adapt nm options if we use Apple's utils
10745 * aclocal.m4 (grub_apple_cc): new test
10746 (grub_apple_target_cc): likewise
10747
10748 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 Simplify sed expressions and improve awk
10751
10752 * Makefile.in (install-local): simplify sed expression
10753 * gencmdlist.sh: likewise
10754 * genmoddep.awk: avoid adding module as a dependency of itself
10755
10756 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 Add missing start symbols
10759
10760 * boot/i386/pc/boot.S: add start
10761 * boot/i386/pc/pxeboot.S: likewise
10762
10763 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 Fix wrong assumptions with grub-mkimage on EFI
10766
10767 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
10768 (relocate_addresses): consider both r_addend and value at offset
10769 (make_mods_section): zerofill modinfo and header
10770 (convert_elf): write prefix here
10771
10772 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 Use .asciz instead of .string
10775
10776 * i386/pc/diskboot.S: use .asciz instead of .string
10777 * i386/pc/boot.S: likewise
10778 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10779 (GRUB_MOD_NAME): likewise
10780
10781 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10782
10783 gfxpayload support
10784
10785 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10786 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10787 (grub_video_setup): remove
10788 (grub_video_set_mode): new prototype
10789 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10790 (vid_mode): remove
10791 (linux_vesafb_res): compile only on PCBIOS
10792 (grub_linux_boot): support gfxpayload
10793 * loader/i386/pc/xnu.c (video_hook): new function
10794 (grub_xnu_set_video): support gfxpayload
10795 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10796 (DEFAULT_VIDEO_HEIGHT): likewise
10797 (DEFAULT_VIDEO_FLAGS): likewise
10798 (DEFAULT_VIDEO_MODE): new definition
10799 (video_hook): new function
10800 (grub_gfxterm_init): use grub_video_set_mode
10801 * util/grub.d/30_os-prober.in: remove explicit modesetting before
10802 loading xnu
10803 * video/video.c (grub_video_setup): removed
10804 (grub_video_set_mode): new function based on grub_gfxterm_init and
10805 grub_video_setup
10806
10807 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 Avoid calling biosdisk in drivemap
10810
10811 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10812 (revparse_biosdisk): likewise
10813 (list_mappings): derive name from id directly
10814 (grub_cmd_drivemap): use tryparse_diskstring
10815
10816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10817
10818 Script fixes
10819
10820 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10821 (grub_lexer_param): add tokenonhold
10822 (grub_script_create_cmdline): remove cmdline. All callers updated
10823 (grub_script_function_create): make functionname
10824 grub_script_arg. All callers updated
10825 (grub_script_execute_argument_to_string): new prototype
10826 * kern/parser.c (state_transitions): reorder
10827 (grub_parser_cmdline_state): fix a bug and make more compact
10828 * script/sh/execute.c (grub_script_execute_argument_to_string):
10829 make global
10830 (grub_script_execute_cmdline): use new format
10831 * script/sh/function.c (grub_script_function_create): make functionname
10832 grub_script_arg. All callers updated
10833 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
10834 (grub_script_yylex): remove
10835 (grub_script_yylex2): renamed to ...
10836 (grub_script_yylex): ...renamed
10837 parse the expressions like a${b}c
10838 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10839 (GRUB_PARSER_TOKEN_VAR): remove
10840 (GRUB_PARSER_TOKEN_NAME): likewise
10841 ("if"): declare as typeless
10842 ("while"): likewise
10843 ("function"): likewise
10844 ("else"): likewise
10845 ("then"): likewise
10846 ("fi"): likewise
10847 (text): remove
10848 (argument): likewise
10849 (script): accept empty scripts and make exit on error
10850 (arguments): use GRUB_PARSER_TOKEN_ARG
10851 (function): likewise
10852 (command): move error handling to script
10853 (menuentry): move grub_script_lexer_ref before
10854 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
10855 argument. All callers updated
10856
10857 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10858
10859 Prevent GRUB from probing floppies during boot.
10860
10861 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10862 * commands/search.c (options): Add --no-floppy.
10863 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10864 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10865 --no-floppy when searching for UUIDs.
10866
10867 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10868
10869 Simplify the code duplication in commands/search.c.
10870
10871 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10872 (search_fs): ... this. Update all users.
10873
10874 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
10875
10876 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10877
10878 2009-05-28 Pavel Roskin <proski@gnu.org>
10879
10880 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10881 Remove the original symlink explicitly.
10882
10883 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10884 just one slash. That's how grub_fshelp_find_file() does it.
10885
10886 2009-05-26 Pavel Roskin <proski@gnu.org>
10887
10888 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10889 to `str'.
10890
10891 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10892 possibly unused.
10893
10894 2009-05-25 Christian Franke <franke@computer.org>
10895
10896 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10897 register.
10898 (grub_atapi_identify): Add wait after drive select.
10899 (grub_ata_identify): Do more strict status register check before
10900 calling grub_atapi_identify (). Suppress error message if status
10901 register is 0x00 after command failure. Add status register
10902 check after PIO read to avoid bogus identify due to stuck DRQ.
10903 Thanks to Pavel Roskin for testing.
10904 (grub_device_initialize): Remove unsafe status register check.
10905 Thanks to 'phcoder' for problem report and patch.
10906 Prevent sign extension in debug message.
10907
10908 2009-05-23 Colin D Bennett <colin@gibibit.com>
10909
10910 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10911 definition file, and functions defined in `normal/menu.c' have had
10912 their prototypes moved to `include/grub/menu.h' for consistency.
10913
10914 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10915 from normal.h.
10916 (grub_menu_get_entry): Likewise.
10917 (grub_menu_get_timeout): Likewise.
10918 (grub_menu_set_timeout): Likewise.
10919 (grub_menu_execute_entry): Likewise.
10920 (grub_menu_execute_with_fallback): Likewise.
10921 (grub_menu_entry_run): Likewise.
10922
10923 * include/grub/normal.h: Re-ordered and grouped function
10924 prototypes by file that the function is defined in.
10925 (grub_menu_execute_callback): Removed; moved to menu.h.
10926 (grub_menu_get_entry): Likewise.
10927 (grub_menu_get_timeout): Likewise.
10928 (grub_menu_set_timeout): Likewise.
10929 (grub_menu_execute_entry): Likewise.
10930 (grub_menu_execute_with_fallback): Likewise.
10931 (grub_menu_entry_run): Likewise.
10932 (grub_menu_addentry): Renamed from this ...
10933 (grub_normal_add_menu_entry): ... to this.
10934
10935 * normal/main.c (grub_menu_addentry): Renamed from this ...
10936 (grub_normal_add_menu_entry): ... to this.
10937
10938 * script/sh/execute.c (grub_script_execute_menuentry): Update
10939 reference to renamed grub_menu_addentry function.
10940
10941 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
10942
10943 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10944
10945 2009-05-22 Pavel Roskin <proski@gnu.org>
10946
10947 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
10948 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
10949 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
10950 compiling for the i386 targets, but not for the utilities.
10951
10952 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
10953 to grub_uint8_t.
10954 (grub_root_drive): Likewise.
10955 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
10956 remove alignment.
10957 (grub_root_drive): Change size to byte.
10958 (grub_start_addr): Remove.
10959 (grub_end_addr): Likewise.
10960 (grub_apm_bios_info): Likewise.
10961
10962 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
10963
10964 * normal/i386: Remove.
10965 * normal/powerpc: Likewise.
10966 * normal/sparc64: Likewise.
10967 * normal/x86_64: Likewise.
10968
10969 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
10972 * loader/i386/linux_trampoline.S: Fix indentation
10973 * loader/i386/xnu_helper.S: Likewise
10974
10975 2009-05-18 Colin D Bennett <colin@gibibit.com>
10976
10977 Display error messages when parsing a Lua statement fails.
10978 Previously, executing a syntactically invalid statement like
10979 ")foo" or "bar;" would silently fail.
10980
10981 * script/lua/grub_main.c (handle_lua_error): New function.
10982 (grub_lua_parse_line): Improved reporting of Lua parser and
10983 execution errors.
10984
10985 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10986
10987 Remove -Werror which causes build to fail on some systems
10988
10989 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
10990 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
10991 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
10992
10993 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10994
10995 trampoline for linux on 64-bit platform
10996
10997 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
10998 loader/i386/efi/linux_trampoline.S
10999 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11000 declaration
11001 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11002 here
11003 * loader/i386/linux_trampoline.S: moved here
11004 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11005 trampoline
11006 (jumpvector): removed
11007 (grub_linux_trampoline_start): new declaration
11008 (grub_linux_trampoline_end): likewise
11009 (grub_linux_boot): use trampoline when on 64-bit platform
11010 * loader/i386/linux.c: likewise
11011
11012 2009-05-16 Pavel Roskin <proski@gnu.org>
11013
11014 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11015 const to avoid a warning.
11016 (grub_lua_setenv): Likewise.
11017 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11018 lmsg to fix a warning.
11019
11020 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11021
11022 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11023 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11024 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11025 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11026 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11027 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11028 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11029 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11030
11031 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11032
11033 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11034
11035 2009-05-16 Bean <bean123ch@gmail.com>
11036
11037 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11038 (lua_mod_SOURCES): New variable.
11039 (lua_mod_CFLAGS): Likewise.
11040 (lua_mod_LDFLAGS): Likewise.
11041
11042 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11043 (setjmp_mod_SOURCES): New variable.
11044 (setjmp_mod_CFLAGS): Likewise.
11045 (setjmp_LDFLAGS): Likewise.
11046
11047 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11048 (setjmp_mod_SOURCES): New variable.
11049 (setjmp_mod_CFLAGS): Likewise.
11050 (setjmp_LDFLAGS): Likewise.
11051
11052 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11053 (setjmp_mod_SOURCES): New variable.
11054 (setjmp_mod_CFLAGS): Likewise.
11055 (setjmp_LDFLAGS): Likewise.
11056
11057 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11058 (setjmp_mod_SOURCES): New variable.
11059 (setjmp_mod_CFLAGS): Likewise.
11060 (setjmp_LDFLAGS): Likewise.
11061
11062 * normal/i386/setjmp.S: Moved from here ...
11063 * lib/i386/setjmp.S: ... Moved here
11064 * normal/x86_64/setjmp.S: Moved from here ...
11065 * lib/x86_64/setjmp.S: ... Moved here
11066 * normal/powerpc/setjmp.S: Moved from here ...
11067 * lib/powerpc/setjmp.S: ... Moved here
11068 * normal/sparc64/setjmp.S: Moved from here ...
11069 * lib/sparc64/setjmp.S: ... Moved here
11070
11071 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11072 returns_twice in mingw.
11073
11074 * script/lua/grub_lib.c: New file.
11075 * script/lua/grub_lib.h: Likewise.
11076 * script/lua/grub_lua.h: Likewise.
11077 * script/lua/grub_main.c: Likewise.
11078 * script/lua/lapi.c: Likewise.
11079 * script/lua/lapi.h: Likewise.
11080 * script/lua/lauxlib.c: Likewise.
11081 * script/lua/lauxlib.h: Likewise.
11082 * script/lua/lbaselib.c: Likewise.
11083 * script/lua/lcode.c: Likewise.
11084 * script/lua/lcode.h: Likewise.
11085 * script/lua/ldblib.c: Likewise.
11086 * script/lua/ldebug.c: Likewise.
11087 * script/lua/ldebug.h: Likewise.
11088 * script/lua/ldo.c: Likewise.
11089 * script/lua/ldo.h: Likewise.
11090 * script/lua/ldump.c: Likewise.
11091 * script/lua/lfunc.c: Likewise.
11092 * script/lua/lfunc.h: Likewise.
11093 * script/lua/lgc.c: Likewise.
11094 * script/lua/lgc.h: Likewise.
11095 * script/lua/linit.c: Likewise.
11096 * script/lua/liolib.c: Likewise.
11097 * script/lua/llex.c: Likewise.
11098 * script/lua/llex.h: Likewise.
11099 * script/lua/llimits.h: Likewise.
11100 * script/lua/lmathlib.c: Likewise.
11101 * script/lua/lmem.c: Likewise.
11102 * script/lua/lmem.h: Likewise.
11103 * script/lua/loadlib.c: Likewise.
11104 * script/lua/lobject.c: Likewise.
11105 * script/lua/lobject.h: Likewise.
11106 * script/lua/lopcodes.c: Likewise.
11107 * script/lua/lopcodes.h: Likewise.
11108 * script/lua/loslib.c: Likewise.
11109 * script/lua/lparser.c: Likewise.
11110 * script/lua/lparser.h: Likewise.
11111 * script/lua/lstate.c: Likewise.
11112 * script/lua/lstate.h: Likewise.
11113 * script/lua/lstring.c: Likewise.
11114 * script/lua/lstring.h: Likewise.
11115 * script/lua/lstrlib.c: Likewise.
11116 * script/lua/ltable.c: Likewise.
11117 * script/lua/ltable.h: Likewise.
11118 * script/lua/ltablib.c: Likewise.
11119 * script/lua/ltm.c: Likewise.
11120 * script/lua/ltm.h: Likewise.
11121 * script/lua/lua.h: Likewise.
11122 * script/lua/luaconf.h: Likewise.
11123 * script/lua/lualib.h: Likewise.
11124 * script/lua/lundump.c: Likewise.
11125 * script/lua/lundump.h: Likewise.
11126 * script/lua/lvm.c: Likewise.
11127 * script/lua/lvm.h: Likewise.
11128 * script/lua/lzio.c: Likewise.
11129 * script/lua/lzio.h: Likewise.
11130
11131 2009-05-16 Bean <bean123ch@gmail.com>
11132
11133 * include/grub/kernel.h (grub_module_header_types): Add type
11134 OBJ_TYPE_CONFIG.
11135
11136 * kern/main.c (grub_load_config): New function.
11137 (grub_main): Call grub_load_config to read boot config.
11138
11139 * grub-mkimage (generate_image): New parameter config_path.
11140 (options): New option --config.
11141 (main): Parse --config option, and pass it to generate_image.
11142
11143 2009-05-14 Christian Franke <franke@computer.org>
11144
11145 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11146 This fixes build on Cygwin.
11147
11148 2009-05-14 Pavel Roskin <proski@gnu.org>
11149
11150 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11151 jump. This saves two bytes, so the typical case of 2 swapped
11152 drives would fit 32 bytes.
11153
11154 2009-05-13 Pavel Roskin <proski@gnu.org>
11155
11156 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11157 grub_uint32_t to avoid a warning.
11158
11159 * loader/i386/linux.c (allocate_pages): When assigning
11160 real_mode_mem, cast through grub_size_t to fix a warning. The
11161 code already makes sure that the value would fit a pointer.
11162 (grub_linux_setup_video): Cast render_target->data to
11163 grub_size_t to fix a warning.
11164
11165 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11166
11167 * commands/i386/pc/drivemap.c: New file - implement drivemap
11168 command.
11169 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11170 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11171
11172 2009-05-13 Pavel Roskin <proski@gnu.org>
11173
11174 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11175 embedding_area_exists.
11176
11177 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11178
11179 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11180 it easier to understand / work with.
11181 Improve warning messages for cases where there's no embedding area,
11182 or when it is too small (or core.img too large).
11183
11184 2009-05-13 Pavel Roskin <proski@gnu.org>
11185
11186 * loader/i386/pc/multiboot2.c: Add necessary includes for
11187 grub_multiboot2_real_boot().
11188
11189 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11190 PX record is always little-endian. We only need the lower 2
11191 bytes of the mode.
11192
11193 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11194 facilitate code reuse.
11195 (grub_cpio_mount): Use "struct head", not a char buffer. This
11196 fixes a warning reported by gcc 4.4.
11197
11198 * kernel/disk.c (grub_disk_read): Use void pointer for the
11199 buffer.
11200 (grub_disk_write): Use const void pointer for the buffer.
11201 Adjust all callers. Remove unnecessary casts.
11202
11203 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11204
11205 * util/i386/pc/grub-install.in: Update copyright year.
11206
11207 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 gptsync
11210
11211 * commands/gptsync.c: new file
11212 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11213 (gptsync_mod_SOURCES): new variable
11214 (gptsync_mod_CFLAGS): likewise
11215 (gptsync_mod_LDFLAGS): likewise
11216 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11217 new definition
11218 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11219 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11220 * conf/i386-ieee1275.rmk: likewise
11221 * conf/i386-pc.rmk: likewise
11222 * conf/powerpc-ieee1275.rmk: likewise
11223
11224 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 Fixed grub-emu
11227
11228 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11229 (grub_dl_ref): likewise
11230
11231 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11232
11233 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11234 split in two functions (one for msdos and one for gpt).
11235
11236 2009-05-08 Pavel Roskin <proski@gnu.org>
11237
11238 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11239 not modified.
11240
11241 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11242 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11243 Initialize them with -1. Add sanity check for bad1. Eliminate
11244 nerr variable.
11245
11246 2009-05-08 David S. Miller <davem@davemloft.net>
11247
11248 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11249
11250 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11251
11252 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11253 existence.
11254
11255 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11256
11257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11258 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11259
11260 2009-05-05 David S. Miller <davem@davemloft.net>
11261
11262 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11263
11264 2009-05-05 Pavel Roskin <proski@gnu.org>
11265
11266 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11267 of grub_dl_ref() and grub_dl_unref().
11268 * commands/parttool.c: Remove preprocessor conditionals around
11269 grub_dl_ref() and grub_dl_unref().
11270 * fs/affs.c: Likewise.
11271 * fs/afs.c: Likewise.
11272 * fs/cpio.c: Likewise.
11273 * fs/ext2.c: Likewise.
11274 * fs/fat.c: Likewise.
11275 * fs/hfs.c: Likewise.
11276 * fs/hfsplus.c: Likewise.
11277 * fs/iso9660.c: Likewise.
11278 * fs/jfs.c: Likewise.
11279 * fs/minix.c: Likewise.
11280 * fs/ntfs.c: Likewise.
11281 * fs/reiserfs.c: Likewise.
11282 * fs/sfs.c: Likewise.
11283 * fs/udf.c: Likewise.
11284 * fs/ufs.c: Likewise.
11285 * fs/xfs.c: Likewise.
11286 * include/grub/dl.h: Likewise.
11287 * loader/xnu.c: Likewise.
11288
11289 2009-05-04 Pavel Roskin <proski@gnu.org>
11290
11291 * commands/acpi.c: Remove unused variable my_mod.
11292 * partmap/amiga.c: Likewise.
11293 * partmap/apple.c: Likewise.
11294 * partmap/gpt.c: Likewise.
11295 * partmap/pc.c: Likewise.
11296 * partmap/sun.c: Likewise.
11297 * term/gfxterm.c: Likewise.
11298 * term/i386/pc/vesafb.c: Likewise.
11299 * term/i386/pc/vga.c: Likewise.
11300
11301 2009-05-04 David S. Miller <davem@davemloft.net>
11302
11303 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11304 pointer args to grub_ieee1275_get_property().
11305
11306 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11307
11308 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11309 devices, and do not traverse down under controller nodes.
11310
11311 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11312 (grub_ofdisk_open): Use it to un-escape "," characters.
11313 * kern/disk.c (find_part_sep): New.
11314 (grub_disk_open): Use it to find the first non-escaped ','
11315 character in the disk name.
11316 * util/ieee1275/devicemap.c (escape_of_path): New.
11317 (grub_util_emit_devicemap_entry): Use it.
11318 * util/sparc64/ieee1275/grub-install.in: Update script to
11319 strip partition specifiers properly by not triggering on
11320 '\' escaped ',' characters.
11321
11322 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11323
11324 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11325 to 0x300.
11326 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11327 resolutions.
11328 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11329 on documentation from Wikipedia).
11330
11331 2009-05-04 Pavel Roskin <proski@gnu.org>
11332
11333 * disk/ata.c: Spelling fixes.
11334 * disk/raid.c: Likewise.
11335 * disk/usbms.c: Likewise.
11336 * disk/dmraid_nvidia.c: Likewise.
11337 * kern/ieee1275/openfw.c: Likewise.
11338 * kern/ieee1275/init.c: Likewise.
11339 * kern/ieee1275/cmain.c: Likewise.
11340 * boot/i386/pc/cdboot.S: Likewise.
11341 * video/readers/png.c: Likewise.
11342 * video/i386/pc/vbe.c: Likewise.
11343 * fs/udf.c: Likewise.
11344 * fs/hfs.c: Likewise.
11345 * fs/reiserfs.c: Likewise.
11346 * efiemu/runtime/efiemu.c: Likewise.
11347 * efiemu/main.c: Likewise.
11348 * efiemu/mm.c: Likewise.
11349 * include/grub/elf.h: Likewise.
11350 * include/grub/xnu.h: Likewise.
11351 * include/grub/usbdesc.h: Likewise.
11352 * include/grub/usb.h: Likewise.
11353 * include/grub/script_sh.h: Likewise.
11354 * include/grub/lib/LzmaEnc.h: Likewise.
11355 * include/grub/efiemu/efiemu.h: Likewise.
11356 * include/grub/command.h: Likewise.
11357 * normal/menu.c: Likewise.
11358 * normal/main.c: Likewise.
11359 * normal/datetime.c: Likewise.
11360 * bus/usb/uhci.c: Likewise.
11361 * mmap/i386/uppermem.c: Likewise.
11362 * mmap/mmap.c: Likewise.
11363 * commands/acpi.c: Likewise.
11364 * commands/test.c: Likewise.
11365 * partmap/apple.c: Likewise.
11366 * font/font.c: Likewise.
11367 * loader/sparc64/ieee1275/linux.c: Likewise.
11368 * loader/macho.c: Likewise.
11369 * loader/i386/bsd_trampoline.S: Likewise.
11370 * loader/i386/bsd.c: Likewise.
11371 * loader/xnu.c: Likewise.
11372 * term/i386/pc/vesafb.c: Likewise.
11373 * term/usb_keyboard.c: Likewise.
11374 * util/resolve.c: Likewise.
11375 * util/getroot.c: Likewise.
11376
11377 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11378
11379 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11380
11381 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11382
11383 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11384 build error.
11385
11386 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11387
11388 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11389 parameter only available on BIOS.
11390
11391 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 Removed wrong semicolon in declaration
11394
11395 * grub/misc.h (grub_dprintf): remove semicolon
11396
11397 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11398
11399 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11400 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11401 is done by grub_cmd_linux() now).
11402 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11403 restore video to text mode.
11404 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11405 indicates lack of "vga=" parameter. "vga=0" is mapped to
11406 `GRUB_LINUX_VID_MODE_NORMAL'.
11407
11408 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11409
11410 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11411 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11412 and `normal/script.c'. Add `kern/rescue_reader.c',
11413 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11414 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11415 `grub_script.tab.c'.
11416
11417 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11418 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11420 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11421 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11422
11423 * Makefile.in: Remove duplicated 2008 in Copyright line.
11424
11425 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11426
11427 * util/misc.c (grub_util_warn): New function. Emits a warning
11428 unconditionally.
11429 * include/grub/util/misc.h (grub_util_warn): New declaration.
11430
11431 * util/i386/pc/grub-install.in: Understand --force and pass it down
11432 to grub-setup.
11433
11434 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11435 down to setup().
11436 (setup): Improve error messages and add warnings when requested to
11437 install in odd layouts. Refuse to install using blocklists unless
11438 --force was set.
11439
11440 2009-05-04 martin f. krafft <madduck@madduck.net>
11441
11442 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11443
11444 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11445
11446 Updated copyright year
11447
11448 * fs/hfsplus.c: updated copyright year
11449
11450 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 HFS+ UUID
11453
11454 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11455 in the space previously used by unused3
11456 (grub_hfsplus_uuid): new function
11457 (grub_hfsplus_fs): added uuid field
11458
11459 2009-05-03 Pavel Roskin <proski@gnu.org>
11460
11461 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11462 suppress warnings. It's no longer needed.
11463 * disk/host.c: Likewise.
11464 * disk/ata_pthru.c: Likewise.
11465 * disk/loopback.c: Likewise.
11466 * hook/datehook.c: Likewise.
11467 * parttool/pcpart.c: Likewise.
11468 * fs/i386/pc/pxe.c: Likewise.
11469 * fs/ntfscomp.c: Likewise.
11470 * efiemu/main.c: Likewise.
11471 * mmap/mmap.c: Likewise.
11472 * commands/crc.c: Likewise.
11473 * commands/hexdump.c: Likewise.
11474 * commands/hdparm.c: Likewise.
11475 * commands/acpi.c: Likewise.
11476 * commands/echo.c: Likewise.
11477 * commands/minicmd.c: Likewise.
11478 * commands/blocklist.c: Likewise.
11479 * commands/memrw.c: Likewise.
11480 * commands/loadenv.c: Likewise.
11481 * commands/usbtest.c: Likewise.
11482 * commands/lsmmap.c: Likewise.
11483 * commands/boot.c: Likewise.
11484 * commands/parttool.c: Likewise.
11485 * commands/configfile.c: Likewise.
11486 * commands/search.c: Likewise.
11487 * commands/ieee1275/suspend.c: Likewise.
11488 * commands/cat.c: Likewise.
11489 * commands/i386/pc/pxecmd.c: Likewise.
11490 * commands/i386/pc/play.c: Likewise.
11491 * commands/i386/pc/halt.c: Likewise.
11492 * commands/i386/pc/vbeinfo.c: Likewise.
11493 * commands/i386/pc/vbetest.c: Likewise.
11494 * commands/lspci.c: Likewise.
11495 * commands/date.c: Likewise.
11496 * commands/handler.c: Likewise.
11497 * commands/ls.c: Likewise.
11498 * commands/test.c: Likewise.
11499 * commands/cmp.c: Likewise.
11500 * commands/efi/loadbios.c: Likewise.
11501 * commands/efi/fixvideo.c: Likewise.
11502 * commands/halt.c: Likewise.
11503 * commands/help.c: Likewise.
11504 * commands/reboot.c: Likewise.
11505 * hello/hello.c: Likewise.
11506 * script/sh/main.c: Likewise.
11507 * loader/xnu.c: Likewise.
11508 * term/terminfo.c: Likewise.
11509 * term/i386/pc/serial.c: Likewise.
11510 * term/usb_keyboard.c: Likewise.
11511
11512 2009-05-03 David S. Miller <davem@davemloft.net>
11513
11514 * normal/menu.c: Include grub/parser.h
11515
11516 2009-05-03 Pavel Roskin <proski@gnu.org>
11517
11518 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11519 not char*.
11520 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11521 Suggested by Javier Martín <lordhabbit@gmail.com>
11522
11523 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11524 efiemu??.o doesn't exist.
11525 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11526 copying.
11527
11528 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11529
11530 FreeBSD 64-bit support
11531
11532 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11533 and loader/i386/bsd_trampoline.S
11534 (bsd_mod_ASFLAGS): new variable
11535 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11536 (FREEBSD_MODTYPE_KERNEL64): likewise
11537 (grub_bsd64_trampoline_start): likewise
11538 (grub_bsd64_trampoline_end): likewise
11539 (grub_bsd64_trampoline_selfjump): likewise
11540 (grub_bsd64_trampoline_gdt): likewise
11541 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11542 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11543 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11544 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11545 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11546 of "attrib" member
11547 * loader/i386/bsd_pagetable.c: new file
11548 * loader/i386/bsd_trampoline.S: likewise
11549 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11550 (ALIGN_VAR): likewise
11551 (entry_hi): new variable
11552 (kern_end_mdofs): likewise
11553 (is_64bit): likewise
11554 (grub_freebsd_add_meta): use ALIGN_VAR
11555 (grub_e820_mmap): new declaration
11556 (grub_freebsd_add_mmap): new function
11557 (grub_freebsd_add_meta_module): support 64 bit kernels
11558 (grub_freebsd_list_modules): use ALIGN_VAR
11559 (gdt_descriptor): new declaration
11560 (grub_freebsd_boot): support 64 bit kernels
11561 (grub_bsd_elf64_hook): new function
11562 (grub_bsd_load_elf): support elf64
11563
11564 2009-05-03 Bean <bean123ch@gmail.com>
11565
11566 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11567 after we get the result of if statement.
11568
11569 2009-05-03 Bean <bean123ch@gmail.com>
11570
11571 * Makefile.in (enable_efiemu): New variable.
11572
11573 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11574 set.
11575 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11576 path.
11577 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11578 path, add -mno-red-zone option.
11579 (efiemu64_s.o): Likewise.
11580 (efiemu64.o): Use macro $^ for source file.
11581
11582 * configure.ac (--enable-efiemu): New option.
11583
11584 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11585
11586 xnu support
11587
11588 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11589 (pkglib_MODULES): add xnu.mod
11590 (xnu_mod_SOURCES): new variable
11591 (xnu_mod_CFLAGS): likewise
11592 (xnu_mod_LDFLAGS): likewise
11593 (xnu_mod_ASFLAGS): likewise
11594 * conf/i386-pc.rmk: likewise
11595 * conf/x86_64-efi.rmk: likewise
11596 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11597 new declaration
11598 * include/grub/i386/macho.h: new file
11599 * include/grub/i386/xnu.h: likewise
11600 * include/grub/macho.h: likewise
11601 * include/grub/machoload.h: likewise
11602 * include/grub/x86_64/macho.h: likewise
11603 * include/grub/x86_64/xnu.h: likewise
11604 * include/grub/xnu.h: likewise
11605 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11606 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11607 * loader/i386/efi/xnu.c: new file
11608 * loader/i386/pc/xnu.c: likewise
11609 * loader/i386/xnu.c: likewise
11610 * loader/i386/xnu_helper.S: likewise
11611 * loader/macho.c: likewise
11612 * loader/xnu.c: likewise
11613 * loader/xnu_resume.c: likewise
11614 * util/grub-dumpdevtree: likewise
11615 * include/grub/i386/pit.h: include grub/err.h
11616 (grub_pit_wait): export
11617 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11618
11619 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 Efiemu
11622
11623 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11624 _linux_efi, linux_efi.
11625 new files in grub-emu
11626 new targets efiemu32.o and efiemu64.o
11627 * loader/linux_normal_efiemu.c: likewise
11628 * loader/i386/efi/linux.c: added preliminary efiemu support
11629 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11630 files to copy
11631 * include/grub/autoefi.h: new file
11632 * include/grub/i386/efiemu.h: likewise
11633 * include/grub/i386/pc/efiemu.h: likewise
11634 * include/grub/efi/api.h: add LL suffix when necessary
11635 new definitions relating to tables
11636 * include/grub/efiemu/efiemu.h: new file
11637 * include/grub/efiemu/runtime.h: likewise
11638 * efiemu/prepare.c: likewise
11639 * efiemu/loadcore_common.c: likewise
11640 * efiemu/loadcore64.c: likewise
11641 * efiemu/runtime/efiemu.sh: likewise
11642 * efiemu/runtime/efiemu.S: likewise
11643 * efiemu/runtime/efiemu.c: likewise
11644 * efiemu/runtime/config.h: likewise
11645 * efiemu/prepare32.c: likewise
11646 * efiemu/main.c: likewise
11647 * efiemu/modules/pnvram.c: likewise
11648 * efiemu/modules/i386: likewise
11649 * efiemu/modules/i386/pc: likewise
11650 * efiemu/modules/acpi.c: likewise
11651 * efiemu/i386/pc/cfgtables.c: likewise
11652 * efiemu/i386/loadcore64.c: likewise
11653 * efiemu/i386/loadcore32.c: likewise
11654 * efiemu/prepare64.c: likewise
11655 * efiemu/loadcore.c: likewise
11656 * efiemu/symbols.c: likewise
11657 * efiemu/mm.c: likewise
11658 * efiemu/loadcore32.c: likewise
11659
11660 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 ACPI spoofing
11663
11664 * commands/acpi.c: new file
11665 * commands/i386/pc/acpi.c: likewise
11666 * commands/efi/acpi.c: likewise
11667 * include/grub/acpi.h: likewise
11668 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11669 (acpi_mod_SOURCES): new variable
11670 (acpi_mod_CFLAGS): likewise
11671 (acpi_mod_LDFLAGS): likewise
11672 * conf/i386-efi.rmk: likewise
11673 * conf/x86_64-efi.rmk: likewise
11674
11675 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 Missing part from mmap patch
11678
11679 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11680 (grub_mmap_unregister)
11681 (grub_mmap_free_and_unregister): use grub_mmap_register
11682
11683 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11684
11685 Mmap services
11686
11687 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11688 * loader/i386/linux.c (find_mmap_size): likewise
11689 (allocate_pages): likewise
11690 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11691 (grub_fill_multiboot_mmap): likewise
11692 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11693 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11694 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11695 (OPENBSD_MMAP_RESERVED): likewise
11696 * include/grub/i386/pc/memory.h: include grub/memory.h
11697 (grub_lower_mem): removed
11698 (grub_upper_mem): likewise
11699 (GRUB_MACHINE_MEMORY_ACPI): new definition
11700 (GRUB_MACHINE_MEMORY_NVS): likewise
11701 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11702 (GRUB_MACHINE_MEMORY_HOLE): likewise
11703 (grub_machine_mmap_register): likewise
11704 (grub_machine_mmap_unregister): likewise
11705 (grub_machine_get_upper): likewise
11706 (grub_machine_get_lower): likewise
11707 (grub_machine_get_post64): likewise
11708 * include/grub/i386/efi/memory.h: new file
11709 * include/grub/x86_64/efi/memory.h: likewise
11710 * include/grub/efi/memory.h: likewise
11711 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11712 (mmap_mod_SOURCES): new variable
11713 (mmap_mod_LDFLAGS): likewise
11714 (mmap_mod_ASFLAGS): likewise
11715 * conf/i386-coreboot.rmk: likewise
11716 * conf/i386-ieee1275.rmk: likewise
11717 * conf/i386-efi.rmk: likewise
11718 * conf/x86_64-efi.rmk: likewise
11719 * include/grub/types.h (UINT_TO_PTR): new macro
11720 (PTR_TO_UINT32): likewise
11721 (PTR_TO_UINT64): likewise
11722 * include/grub/memory.h: new file
11723 * mmap/i386/pc/mmap.c: likewise
11724 * mmap/i386/pc/mmap_helper.S: likewise
11725 * mmap/i386/uppermem.c: likewise
11726 * mmap/mmap.c: likewise
11727 * mmap/efi/mmap.c: likewise
11728 * kern/i386/coreboot/init.c (grub_machine_init): don't use
11729 grub_upper_mem
11730 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11731 (grub_upper_mem): likewise
11732 (grub_machine_init): don't use grub_upper_mem,
11733 make grub_lower_mem local
11734 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11735 grub_mmap_iterate and grub_mmap_get_upper
11736 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11737
11738 2009-05-02 Bean <bean123ch@gmail.com>
11739
11740 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11741 script/sh/parser.y.
11742 (pkglib_MODULES): Add normal.mod and sh.mod.
11743 (normal_SOURCES): New variable.
11744 (normal_mod_CFLAGS): Likewise.
11745 (normal_mod_LDFLAGS): Likewise.
11746 (sh_mod_SOURCES): Likewise.
11747 (sh_mod_CFLAGS): Likewise.
11748 (sh_mod_LDFLAGS): Likewise.
11749
11750 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11751 script/sh/lexer.c_DEPENDENCIES.
11752 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11753 kern/rescue_reader.c and kern/rescue_parser.c.
11754 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11755 (grub_emu_SOURCES): Change source files.
11756 (pkglib_MODULES): Remove normal.mod.
11757 (normal_SOURCES): Removed.
11758 (normal_mod_CFLAGS): Likewise.
11759 (normal_mod_LDFLAGS): Likewise.
11760 * conf/i386-coreboot.rmk: Likewise.
11761 * conf/i386-efi.rmk: Likewise.
11762 * conf/i386-ieee1276.rmk: Likewise.
11763 * conf/powerpc-ieee1275.rmk: Likewise.
11764 * conf/sparc64-ieee1275.rmk: Likewise.
11765 * conf/x86_64-efi.rmk: Likewise.
11766
11767 * include/grub/command.h (grub_command_execute): New inline function.
11768
11769 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11770
11771 * include/grub/normal.h: Remove <grub/setjmp.h>.
11772 (grub_fs_module_list): Moved to normal/autofs.c.
11773 (grub_exit_env): Removed.
11774 (grub_command_execute): Likewise.
11775 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11776 parameter script.
11777 (read_command_list): New function declaration.
11778 (read_fs_list): Likewise.
11779
11780 * include/parser.h: Include <grub/reader.h>.
11781 (grub_parser_split_cmdline): Change type of getline parameter.
11782 (grub_parser): New structure.
11783 (grub_parser_class): New variable.
11784 (grub_parser_execute): New function declaration.
11785 (grub_register_rescue_parser): Likewise.
11786 (grub_parser_register): New inline function.
11787 (grub_parser_unregister): Likewise.
11788 (grub_parser_get_current): Likewise.
11789 (grub_parser_set_current): Likewise.
11790
11791 * include/grub/reader.h: New file.
11792 * kern/reader.c: Likewise.
11793 * kern/rescue_parser.c: Likewise.
11794 * kern/rescue_reader.c: Likewise.
11795 * normal/autofs.c: Likewise.
11796 * normal/dyncmd.c: Likewise.
11797
11798 * include/grub/rescue.h: Removed.
11799 * normal/command.h: Likewise.
11800
11801 * include/grub/script.h: Moved to ...
11802 * include/grub/script_sh.h: ... Moved here.
11803 * normal/execute.c: Moved to ...
11804 * script/sh/execute.c: ... Moved here.
11805 * normal/function.c: Moved to ...
11806 * script/sh/function.c: ... Moved here.
11807 * normal/lexer.c: Moved to ...
11808 * script/sh/lexer.c: ... Moved here.
11809 * normal/parser.y: Moved to ...
11810 * script/sh/parser.y: ... Moved here.
11811 * normal/script.c: Moved to ...
11812 * script/sh/script.c: ... Moved here.
11813
11814 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11815 <grub/reader.h>.
11816 (grub_exit_env): Removed.
11817 (fs_module_list): Moved to normal/autofs.c.
11818 (grub_file_getline): Don't handle comment here.
11819 (free_menu): Skip removed field entry->commands.
11820 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11821 script parameter.
11822 (read_config_file): Removed nested parameter, change getline function.
11823 (grub_enter_normal_mode): Removed.
11824 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11825 (read_command_list): Likewise.
11826 (autoload_fs_module): Moved to normal/autofs.c.
11827 (read_fs_list): Likewise.
11828 (reader_nested): New variable.
11829 (grub_normal_execute): Run parser.sh to switch to sh parser.
11830 (grub_cmd_rescue): Removed.
11831 (cmd_normal): Removed.
11832 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11833 rescue command.
11834 (grub_cmdline_run): New function.
11835 (grub_normal_reader_init): Likewise.
11836 (grub_normal_read_line): Likewise.
11837 (grub_env_write_pager): Likewise.
11838 (cmdline): New variable.
11839 (grub_normal_reader): Likewise.
11840 (GRUB_MOD_INIT): Register normal reader and set as current, register
11841 pager hook, register normal command with grub_register_command_prio,
11842 so that it won't show up in command.lst.
11843 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11844 grub_fs_autoload_hook.
11845
11846 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11847 (grub_menu_execute_entry): Replace grub_script_execute with
11848 grub_parser_execute, change parameter to grub_command_execute.
11849
11850 * normal/menu_text.c: Remove <grub/script.h>.
11851
11852 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11853 and <grub/parser.h>.
11854 (run): Change editor_getline to use new parser interface. Change
11855 parameter to grub_command_execute.
11856
11857 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11858 <grub/reader.h> and <grub/parser.h>.
11859 (grub_load_normal_mode): Execute normal command.
11860 (grub_main): Call grub_register_core_commands,
11861 grub_register_rescue_parser and grub_register_rescue_reader, use
11862 grub_reader_loop to enter input loop.
11863
11864 * kern/parser.c (grub_parser_split_cmdline): Change type of
11865 getline parameter.
11866 (grub_parser_class): New variable.
11867 (grub_parser_execute): New function.
11868
11869 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11870 * loader/multiboot2.c: Likewise.
11871 * loader/sparc64/ieee1275/linux.c: Likewise.
11872
11873 * util/grub-emu.c (read_command_list): New dummy function.
11874
11875 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11876
11877 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11878 count to 16 for CCISS and IDA.
11879
11880 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11881
11882 * normal/menu_text.c (grub_wait_after_message): Print a newline
11883 after waiting for user input.
11884
11885 * loader/i386/linux.c: Include `<grub/normal.h>'.
11886 (grub_cmd_linux): Improve the error message about `ask' mode, by
11887 waiting for user input so it's not missed (we can do this, since
11888 user requested interaction).
11889
11890 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11891
11892 Added missing lst to grub-mkrescue
11893
11894 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11895 and ${input_dir}/parttool.lst
11896
11897 2009-04-30 David S. Miller <davem@davemloft.net>
11898
11899 * util/hostdisk.c (device_is_wholedisk): New function.
11900 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11901 zero only if device_is_wholedisk() returns true.
11902
11903 * util/hostdisk.c (convert_system_partition_to_system_disk):
11904 Handle virtual disk devices named /dev/vdiskX as found on sparc
11905 and powerpc.
11906
11907 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11908 lettered partition specifier is found, convert to numbered.
11909
11910 2009-04-29 David S. Miller <davem@davemloft.net>
11911
11912 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11913 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11914
11915 * normal/command.c: Add missing newline at end of file.
11916
11917 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11918 warnings.
11919 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11920 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11921 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11922 ihandles have a 32-bit type but need to be stored in a "void *".
11923
11924 2009-04-28 Pavel Roskin <proski@gnu.org>
11925
11926 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11927 not disk. Adjust all dependencies.
11928 (grub_fs_uuid_close): Use grub_device_close(), not
11929 grub_disk_close().
11930
11931 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11932 parent's partition, don't copy it by reference, as it gets freed
11933 on close.
11934
11935 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 Preboot hooks support
11938
11939 * commands/boot.c (struct grub_preboot_t): new declaration
11940 (preboots_head): new variable
11941 (preboots_tail): likewise
11942 (grub_loader_register_preboot_hook): new function
11943 (grub_loader_unregister_preboot_hook): likewise
11944 (grub_loader_set): launch preboot hooks
11945 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
11946 (grub_loader_register_preboot_hook): new declaration
11947 (grub_loader_unregister_preboot_hook): likewise
11948
11949 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 Warning fix
11952
11953 * disk/scsi.c (grub_scsi_open): added missing cast when
11954 calling grub_dprintf
11955
11956 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 Bug and warning fixes
11959
11960 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
11961 declaration
11962 * commands/test.c (test_parse): fixed bug with file tests and corrected
11963 declaration of find_file
11964
11965 2009-04-26 Pavel Roskin <proski@gnu.org>
11966
11967 * Makefile.in: Don't install empty manual pages if help2man is
11968 missing. Use help2man option for output, not shell redirection.
11969
11970 2009-04-26 David S. Miller <davem@davemloft.net>
11971
11972 * util/grub-mkdevicemap.c (make_device_map): Add missing
11973 NESTED_FUNC_ATTR to process_device().
11974
11975 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11976
11977 Test command
11978
11979 * commands/test.c: rewritten to use bash-like test
11980
11981 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 Parttool autoloading and improvements
11984
11985 * Makefile.in (pkglib_DATA): add parttool.lst
11986 (parttool.lst): new target
11987 * genmk.rb: generate parttool-*
11988 (CLEANFILES): add #{parttool}
11989 (PARTTOOLFILES): new variable
11990 * genparttoollist.sh: new file
11991 * parttool/pcpart.c (grub_pcpart_boot): more feedback
11992 (grub_pcpart_type): likewise
11993 * commands/parttool.c (helpmsg): new variable
11994 (grub_cmd_parttool): output help if not enough arguments are supplied
11995 autoload modules
11996 (GRUB_MOD_INIT(parttool)): use helpmsg
11997
11998 2009-04-24 David S. Miller <davem@davemloft.net>
11999
12000 Avoiding opening same device multiple times in device iterator.
12001
12002 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12003 and use it to build a list of partitions in iterate_disk() and
12004 iterate_partition().
12005
12006 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12007 on disk->data.
12008
12009 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12010 grub_devalias_iterate() result instead of unconditional 0.
12011 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12012 Also, capture hook return value, either directly or via
12013 grub_children_iterate(), and propagate to caller.
12014 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12015 grub_children_iterate): Return value is now 'int' instead of
12016 'grub_err_t'.
12017 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12018 like a proper iterator, stopping when hooks return non-zero.
12019 (grub_devalias_iterate): Likewise.
12020
12021 2009-04-23 David S. Miller <davem@davemloft.net>
12022
12023 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12024
12025 2009-04-22 David S. Miller <davem@davemloft.net>
12026
12027 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12028 is larger than address_cells, use that value for address_cells too.
12029
12030 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12031 IEEE1275_MAX_PATH_LEN): Define.
12032 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12033 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12034 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12035 'devtype'. Explicitly NULL terminate devalias expansion.
12036
12037 * util/sparc64/ieee1275/misc.c: New file.
12038 * util/sparc64/ieee1275/grub-setup.c: New file.
12039 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12040 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12041 * util/sparc64/ieee1275/grub-install.in: New file.
12042 * util/ieee1275/ofpath.c: New file.
12043 * util/ieee1275/devicemap.c: New file.
12044 * util/devicemap.c: New file.
12045 * util/deviceiter.c: New file.
12046 * kern/sparc64/ieee1275/init.c: New file.
12047 * include/grub/util/ofpath.h: New file.
12048 * include/grub/util/deviceiter.h: New file.
12049 * util/grub-mkdevicemap.c: Include deviceiter.h.
12050 Implement using grub_util_emit_devicemap_entry and
12051 grub_util_iterate_devices.
12052 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12053 util/devicemap.c into grub-mkdevicemap
12054 * conf/i386-efi.rmk: Likewise.
12055 * conf/i386-ieee1275.rmk: Likewise.
12056 * conf/i386-pc.rmk: Likewise.
12057 * conf/powerpc-ieee1275.rmk: Likewise.
12058 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12059 images and installation utilities. Build kernel as image
12060 instead of as elf binary. Use common rules as much as possible.
12061
12062 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12063
12064 Correct GPT definition
12065
12066 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12067 of "attrib" member
12068
12069 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12070
12071 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12072
12073 2009-04-19 David S. Miller <davem@davemloft.net>
12074
12075 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12076 (grub_rescue_cmd_linux): Rename to...
12077 (grub_cmd_linux): and fix prototype.
12078 (grub_rescue_cmd_initrd): Rename to...
12079 (grub_cmd_initrd): and fix prototype.
12080 (cmd_linux, cmd_initrd): New.
12081 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12082 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12083
12084 2009-04-17 Pavel Roskin <proski@gnu.org>
12085
12086 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12087 format.
12088 (grub_ohci_transfer): Likewise.
12089
12090 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12091
12092 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12093 return without a value. Fix inconsistent indentation.
12094
12095 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12096 match struct grub_fs.
12097
12098 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12099 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12100 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12101 * commands/lspci.c (grub_lspci_iter): Likewise.
12102
12103 2009-04-16 Bean <bean123ch@gmail.com>
12104
12105 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12106 value.
12107
12108 2009-04-15 Pavel Roskin <proski@gnu.org>
12109
12110 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12111 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12112 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12113 definitions.
12114
12115 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12116
12117 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12118 that no multiple data or metadata areas are supported and `Unknown
12119 metadata header'.
12120
12121 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12122
12123 Move loader out of the kernel
12124
12125 * kern/loader.c: moved to ...
12126 * commands/boot.c: ... moved here
12127 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12128 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12129 * include/grub/kernel.h (grub_machine_fini): export
12130 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12131 (grub_loader_set): likewise
12132 (grub_loader_unset): likewise
12133 (grub_loader_boot): likewise
12134 * conf/common.rmk: new module boot.mod
12135 (pkglib_MODULES): add boot.mod
12136 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12137 (grub_emu_SOURCES): likewise
12138 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12139 (grub_emu_SOURCES): likewise
12140 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12141 (grub_emu_SOURCES): likewise
12142 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12143 (grub_emu_SOURCES): likewise
12144 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12145 (grub_emu_SOURCES): likewise
12146 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12147 (grub_emu_SOURCES): likewise
12148 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12149 (grub_emu_SOURCES): likewise
12150
12151 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12152
12153 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12154
12155 * kern/misc.c (grub_itoa): Removed function
12156 (grub_ltoa): likewise
12157 (grub_vsprintf): use grub_lltoa
12158
12159 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 Restore grub-emu
12162
12163 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12164 * conf/i386-coreboot.rmk: likewise
12165 * conf/i386-ieee1275.rmk: likewise
12166 * conf/powerpc-ieee1275.rmk: likewise
12167
12168 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12169
12170 * INSTALL: Add that `./autogen.sh' needs to be run before
12171 `./configure.'.
12172
12173 2009-04-14 Bean <bean123ch@gmail.com>
12174
12175 * Makefile.in (pkglib_DATA): Add handler.lst.
12176 (handler.lst): New rule.
12177
12178 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12179 * conf/i386-coreboot.rmk: Likewise.
12180 * conf/i386-ieee1275.rmk: Likewise.
12181 * conf/i386-efi.rmk: Likewise.
12182 * conf/x86_64-efi.rmk: Likewise.
12183 * conf/powerpc-ieee1275.rmk: Likewise.
12184 * conf/sparc64-ieee1275.rmk: Likewise.
12185
12186 * genhandlerlist.sh: New file.
12187
12188 * genmk.rb: Add rules to generate handler.lst.
12189
12190 * include/grub/normal.h (grub_file_getline): New function definition.
12191 (read_handler_list): Likewise.
12192 (free_handler_list): Likewise.
12193
12194 * include/grub/term.h (grub_term_register_input): Add name parameter
12195 for auto generation of handler.lst.
12196 (grub_term_register_output): Likewise.
12197
12198 * normal/handler.c: New file.
12199
12200 * normal/main.c (get_line): Renamed to grub_file_getline.
12201 (read_config_file): Use the newly renamed grub_file_getline.
12202 (read_command_list): Likewise.
12203 (read_fs_list): Likewise.
12204 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12205 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12206
12207 * term/efi/console.c (grub_console_init): Add name parameter for auto
12208 generation of handler.lst.
12209 * term/gfxterm.c: Likewise.
12210 * term/i386/pc/at_keyboard.c: Likewise.
12211 * term/i386/pc/console.c: Likewise.
12212 * term/i386/pc/serial.c: Likewise.
12213 * term/i386/pc/vesafb.c: Likewise.
12214 * term/i386/pc/vga.c: Likewise.
12215 * term/i386/pc/vga_text.c: Likewise.
12216 * term/ieee1275/ofconsole.c: Likewise.
12217 * term/usb_keyboard.c: Likewise.
12218
12219 2009-04-14 Bean <bean123ch@gmail.com>
12220
12221 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12222 properly with null character.
12223
12224 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12225
12226 * configure: Remove.
12227 * config.h.in: Likewise.
12228 * stamp-h.in: Likewise.
12229 * DISTLIST: Likewise.
12230 * conf/common.mk: Likewise.
12231 * conf/i386-coreboot.mk: Likewise.
12232 * conf/i386-efi.mk: Likewise.
12233 * conf/i386-ieee1275.mk: Likewise.
12234 * conf/i386.mk: Likewise.
12235 * conf/i386-pc.mk: Likewise.
12236 * conf/powerpc-ieee1275.mk: Likewise.
12237 * conf/sparc64-ieee1275.mk: Likewise.
12238 * conf/x86_64-efi.mk: Likewise.
12239
12240 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12241 develop on GRUB.
12242
12243 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12244 David S. Miller <davem@davemloft.net>
12245
12246 * util/hostdisk.c (make_device_name): Fix buffer length
12247 calculations.
12248
12249 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12250
12251 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12252 <sys/param.h> and <sys/sysctl.h>.
12253 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12254 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12255 opening the device and reset them afterwards.
12256
12257 2009-04-13 Pavel Roskin <proski@gnu.org>
12258
12259 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12260 Reported by John Stanley <jpsinthemix@verizon.net>
12261
12262 2009-04-13 Robert Millan <rmh@aybabtu.com>
12263
12264 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12265 that name for menuentries when appropriate.
12266
12267 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12268
12269 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12270
12271 2009-04-13 Robert Millan <rmh@aybabtu.com>
12272
12273 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12274 to Linux, simply abort telling the user it's no longer supported.
12275
12276 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12277
12278 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12279 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12280 `freebsd_loadenv' only when devices.hints exist.
12281
12282 2009-04-13 Pavel Roskin <proski@gnu.org>
12283
12284 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12285
12286 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12287
12288 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12289 partition number.
12290 (grub_drive): Likewise.
12291
12292 2009-04-13 David S. Miller <davem@davemloft.net>
12293
12294 * kern/sparc64/ieee1275/ieee1275.c: New file.
12295 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12296 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12297 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12298 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12299 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12300 grub_ieee1275_alloc_physmem): Declare new exported functions.
12301
12302 * include/grub/sparc64/ieee1275/loader.h: New file.
12303 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12304 * include/grub/sparc64/kernel.h: Likewise.
12305 * loader/sparc64/ieee1275/linux.c: Likewise.
12306
12307 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12308 (grub_fstest_SOURCES): Likewise.
12309
12310 * util/hostdisk.c (make_device_name): Do not make any assumptions
12311 about the length of drive names.
12312
12313 * kern/dl.c (grub_dl_load_file): Close file immediately when
12314 we are done using it.
12315
12316 2009-04-12 David S. Miller <davem@davemloft.net>
12317
12318 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12319 values. Noticed by Pavel Roskin.
12320
12321 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12322 target compiler.
12323
12324 * genmk.rb: Add more flexible image type specification, also
12325 pass --strip-unneeded to objcopy.
12326 * conf/i386-pc.rmk: Use *_FORMAT.
12327 * conf/i386-pc.mk: Rebuilt.
12328
12329 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12330 (OFDISK_HASH_SZ): Define.
12331 (ofdisk_hash): New hash table.
12332 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12333 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12334 instead of device phandle which is not unique.
12335
12336 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12337 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12338 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12339 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12340 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12341 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12342 GRUB_KERNEL_MACHINE_DATA_END): Define.
12343 (grub_kernel_image_size, grub_total_module_size): Declare.
12344
12345 2009-04-12 Pavel Roskin <proski@gnu.org>
12346
12347 * configure.ac: Change the logic when we check for target tools.
12348 Do it when the target is specified and it's different from the
12349 specified value of the host.
12350
12351 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12352
12353 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12354 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12355 GNU/kFreeBSD. Check if a device is a character device. Use
12356 DIOCGMEDIASIZE to get the size.
12357 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12358 support for GNU/kFreeBSD.
12359 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12360 is a character device instead of a block device. Add support for
12361 FreeBSD device names.
12362
12363 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12364 is a character device instead of a block device.
12365
12366 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12367 is a character device instead of a block device.
12368
12369 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12370
12371 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12372 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12373 FreeBSD. Check if a device is a character device. Use
12374 DIOCGMEDIASIZE to get the size.
12375 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12376 support for FreeBSD.
12377 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12378 is a character device instead of a block device. Add support for
12379 FreeBSD device names.
12380
12381 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12382 a character device instead of a block device.
12383 (grub_util_check_char_device): New function.
12384
12385 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12386 a character device instead of a block device.
12387
12388 * include/grub/util/getroot.h (grub_util_check_char_device): New
12389 prototype.
12390
12391 2009-04-11 David S. Miller <davem@davemloft.net>
12392
12393 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12394 static libgcc.
12395 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12396 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12397 function, if present.
12398 (__bswapdi2): Likewise.
12399
12400 * include/grub/sparc64/ieee1275/boot.h: New file.
12401 * boot/sparc64/ieee1275/boot.S: Likewise.
12402 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12403
12404 * kern/misc.c (grub_ltoa): New function.
12405 (grub_vsprintf): Use it to format 'long' integers.
12406
12407 2009-04-10 David S. Miller <davem@davemloft.net>
12408
12409 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12410 slots are of type grub_ieee1275_cell_t.
12411 (grub_nand_read): Likewise.
12412 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12413 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12414 macros are used to compare values in arg/ret block of the call.
12415 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12416 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12417 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12418 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12419 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12420 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12421 grub_ieee1275_close, grub_ieee1275_set_property,
12422 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12423 grub_ieee1275_cell_t.
12424 * kern/ieee1275/openfw.c (grub_map): Likewise.
12425 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12426 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12427
12428 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12429 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12430 (grub_devalias_iterate): Likewise.
12431
12432 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12433
12434 UFS improvements
12435
12436 * fs/ufs.c (INODE_NBLOCKS): new definition
12437 (struct grub_ufs_dirent): added fields for non-BSD dirents
12438 (grub_ufs_get_file_block): fixed double indirect handling
12439 (grub_ufs_lookup_symlink): use more robust way to determine whether
12440 symlink is inline
12441 (grub_ufs_find_file): support for non-BSD dirents
12442 (grub_ufs_dir): support for non-BSD dirents
12443
12444 2009-04-10 Bean <bean123ch@gnail.com>
12445
12446 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12447 attribute, otherwise the size would be wrong for i386 platform.
12448
12449 * include/grub/pci.h (grub_pci_read_word): New inline function.
12450 (grub_pci_read_byte): Likewise.
12451 (grub_pci_write): Likewise.
12452 (grub_pci_write_word): Likewise.
12453 (grub_pci_write_byte): Likewise.
12454
12455 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12456
12457 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12458 (find_framebuf): Scan pci to locate the frame buffer address.
12459
12460 * commands/efi/fixvideo.c: New file.
12461
12462 * commands/efi/loadbios.c: Likewise.
12463
12464 * commands/memrw.c: Likewise.
12465
12466 * util/grub-dumpbios.in: Likewise.
12467
12468 * conf/common.rmk (grub-dumpbios): New utility.
12469 (pkglib_MODULES): New module memrw.mod.
12470 (memrw_mod_SOURCE): New macro.
12471 (memrw_mod_CFLAGS): Likewise.
12472 (memrw_mod_LDFLAGS): Likewise.
12473
12474 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12475 fixvideo.mod.
12476 (loadbios_mod_SOURCE): New macro.
12477 (loadbios_mod_CFLAGS): Likewise.
12478 (loadbios_mod_LDFLAGS): Likewise.
12479 (fixvideo_mod_SOURCE): Likewise.
12480 (fixvideo_mod_CFLAGS): Likewise.
12481 (fixvideo_mod_LDFLAGS): Likewise.
12482
12483 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12484 fixvideo.mod.
12485 (loadbios_mod_SOURCE): New macro.
12486 (loadbios_mod_CFLAGS): Likewise.
12487 (loadbios_mod_LDFLAGS): Likewise.
12488 (fixvideo_mod_SOURCE): Likewise.
12489 (fixvideo_mod_CFLAGS): Likewise.
12490 (fixvideo_mod_LDFLAGS): Likewise.
12491
12492 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12493
12494 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12495
12496 2009-04-07 David S. Miller <davem@davemloft.net>
12497
12498 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12499 support for R_SPARC_OLO10 relocations. Fix compile warning for
12500 R_SPARC_WDISP30 case.
12501 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12502
12503 2009-04-06 Pavel Roskin <proski@gnu.org>
12504
12505 * include/grub/misc.h (ARRAY_SIZE): New macro.
12506 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12507 New macro.
12508 * loader/i386/linux.c (allocate_pages): Use free_pages().
12509 (grub_linux_unload): Don't use free_pages().
12510 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12511 wrong index. Treat all other modes as text modes.
12512 (grub_cmd_linux): Initialize vid_mode unconditionally to
12513 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12514
12515 * commands/help.c (print_command_help): Use cmd->prio, not
12516 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12517
12518 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12519
12520 Parttool
12521
12522 * parttool/pcpart.c: new file
12523 * commands/parttool.c: likewise
12524 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12525 (parttool_mod_SOURCES): new variable
12526 (parttool_mod_CFLAGS): likewise
12527 (parttool_mod_LDFLAGS): likewise
12528 (pcpart_mod_SOURCES): likewise
12529 (pcpart_mod_CFLAGS): likewise
12530 (pcpart_mod_LDFLAGS): likewise
12531 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12532 and parttool/pcpart.c
12533 * conf/i386-efi.rmk: likewise
12534 * conf/i386-ieee1275.rmk: likewise
12535 * conf/i386-pc.rmk: likewise
12536 * conf/powerpc-ieee1275.rmk: likewise
12537 * conf/sparc64-ieee1275.rmk: likewise
12538 * conf/x86_64-ieee1275.rmk: likewise
12539
12540 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12541
12542 Support for mtime and further expandability of dir command
12543
12544 * include/grub/lib/datetime.h: moved to ...
12545 * include/grub/datetime.h: ... moved here and added
12546 declaration of grub_unixtime2datetime. All users updated
12547 * include/grub/fs.h: new syntax for dir and mtime functions in
12548 struct grub_fs
12549 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12550 and GRUB_FSHELP_FLAGS_MASK
12551 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12552 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12553 (grub_ext2_mtime): new function
12554 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12555 (grub_hfsplus_mtime): new function
12556 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12557 (GRUB_UFS_ATTR_FILE): likewise
12558 (GRUB_UFS_ATTR_LNK): likewise
12559 (struct grub_ufs_sblock): new fields mtime
12560 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12561 all users updated
12562 (grub_ufs_dir): mtime support
12563 (grub_ufs_mtime): new function
12564 * fs/affs.c (grub_affs_dir): use new dir syntax
12565 * fs/afs.c (grub_afs_dir): likewise
12566 * fs/cpio.c (grub_cpio_dir): likewise
12567 * fs/fat.c (grub_fat_find_dir): likewise
12568 * fs/hfs.c (grub_hfs_dir): likewise
12569 * fs/iso9660.c (grub_iso9660_dir): likewise
12570 * fs/jfs.c (grub_jfs_dir): likewise
12571 * fs/minix.c (grub_minix_dir): likewise
12572 * fs/ntfs.c (grub_ntfs_dir): likewise
12573 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12574 * fs/sfs.c (grub_sfs_dir): likewise
12575 * fs/xfs.c (grub_xfs_dir): likewise
12576 * util/hostfs.c (grub_hostfs_dir): likewise
12577 * lib/datetime.c: moved to ...
12578 * normal/datetime.c: ... moved here
12579 (grub_unixtime2datetime): new function
12580 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12581 * normal/completion.c (iterate_dir): use new dir syntax
12582 * normal/misc.c (grub_normal_print_device_info): tell the
12583 last modification time of a volume
12584 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12585 * conf/common.rmk: added lib/datetime.c to ls.mod
12586 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12587 (normal_mod_SOURCES): likewise
12588 (datetime_mod_SOURCES): Removed lib/datetime.c
12589 * conf/i386-efi.rmk: likewise
12590 * conf/i386-ieee1275.rmk: likewise
12591 * conf/i386-pc.rmk: likewise
12592 * conf/powerpc-ieee1275.rmk: likewise
12593 * conf/sparc64-ieee1275.rmk: likewise
12594 * conf/x86_64-efi.rmk: likewise
12595
12596 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12597
12598 Trim trailing spaces in FAT label and support mtools-like labels
12599
12600 * fs/fat.c (grub_fat_iterate_dir): New function based
12601 on grub_fat_find_dir
12602 (grub_fat_find_dir): use grub_fat_iterate_dir
12603 (grub_fat_label): likewise
12604
12605 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12606
12607 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12608 and command.h
12609 remove extraneous kernel_elf_HEADERS
12610
12611 2009-04-04 Bean <bean123ch@gnail.com>
12612
12613 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12614
12615 * util/misc.c: Likewise.
12616
12617 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12618
12619 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12620 instead of grub_printf.
12621
12622 2009-04-03 Robert Millan <rmh@aybabtu.com>
12623
12624 * loader/i386/linux.c (grub_linux_setup_video): Fill
12625 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12626 values from `mode info' structure instead of hardcoded
12627 values.
12628
12629 2009-04-01 Pavel Roskin <proski@gnu.org>
12630
12631 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12632 unused now.
12633 * genmk.rb: Likewise.
12634 * configure.ac: Likewise.
12635
12636 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12637
12638 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12639 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12640
12641 2009-04-01 David S. Miller <davem@davemloft.net>
12642
12643 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12644 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12645 (grub_setjmp): Mark with 'returns_twice' attribute.
12646 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12647 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12648 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12649
12650 2009-04-01 Robert Millan <rmh@aybabtu.com>
12651
12652 Reapply fix from 2008-07-28 which was accidentally reverted; also
12653 perform the same fix to a similar check in same function.
12654
12655 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12656 with the same number are found, just use issue a warning with
12657 grub_dprintf(), as this error has been reported to be non-fatal.
12658
12659 2009-03-31 Pavel Roskin <proski@gnu.org>
12660
12661 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12662 for cross-compilation.
12663
12664 2009-03-30 Robert Millan <rmh@aybabtu.com>
12665
12666 Fix i386-ieee1275 build.
12667
12668 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12669 Remove declaration.
12670
12671 2009-03-30 Pavel Roskin <proski@gnu.org>
12672
12673 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12674 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12675 zero-terminated, rely only on the strlen value. Fix comparison
12676 of strings differing in length.
12677
12678 2009-03-30 Robert Millan <rmh@aybabtu.com>
12679
12680 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12681 checking for abi version. Improve error messages on BIOS to notify
12682 user about `linux16' command.
12683
12684 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12685
12686 Leak fixes
12687
12688 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12689 in case of collision
12690 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12691
12692 2009-03-29 Robert Millan <rmh@aybabtu.com>
12693
12694 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12695 set `vid_mode' accordingly.
12696 (grub_linux_boot): Process `vid_mode' and set video mode.
12697
12698 2009-03-29 Robert Millan <rmh@aybabtu.com>
12699
12700 * util/grub.d/10_linux.in (linux_entry): New function.
12701 Factorize generation of Linux boot entries.
12702
12703 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12704
12705 Make the format of Environment Block plain text. The boot loader
12706 part is not tested well yet.
12707
12708 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12709 (buffer): Removed.
12710 (envblk): Likewise.
12711 (usage): Remove "info" and "clear". Add "unset". Update the
12712 description of "set", as this does not delete variables any
12713 longer.
12714 (create_envblk_file): Complete rewrite.
12715 (open_envblk_file): Likewise.
12716 (cmd_info): Removed.
12717 (cmd_list): Likewise.
12718 (cmd_set): Likewise.
12719 (cmd_clear): Likewise.
12720 (list_variables): New function.
12721 (write_envblk): Likewise.
12722 (set_variables): Likewise.
12723 (unset_variables): Likewise.
12724 (main): Complete rewrite.
12725
12726 * commands/loadenv.c (buffer): Removed.
12727 (envblk): Likewise.
12728 (open_envblk_file): New function.
12729 (read_envblk_file): Complete rewrite.
12730 (grub_cmd_load_env): Likewise.
12731 (grub_cmd_list_env): Likewise.
12732 (struct blocklist): New struct.
12733 (free_blocklists): New function.
12734 (check_blocklists): Likewise.
12735 (write_blocklists): Likewise.
12736 (grub_cmd_save_env): Complete rewrite.
12737
12738 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12739 a plain text signature.
12740 (GRUB_ENVBLK_MAXLEN): Removed.
12741 (struct grub_envblk): Complete rewrite.
12742 (grub_envblk_find): Removed.
12743 (grub_envblk_insert): Likewise.
12744 (grub_envblk_open): New prototype.
12745 (grub_envblk_set): Likewise.
12746 (grub_envblk_delete): Put const to VALUE.
12747 (grub_envblk_iterate): Put const to NAME and VALUE.
12748 (grub_envblk_close): New prototype.
12749 (grub_envblk_buffer): New inline function.
12750 (grub_envblk_size): Likewise.
12751
12752 * lib/envblk.c: Include grub/mm.h.
12753 (grub_env_find): Removed.
12754 (grub_envblk_open): New function.
12755 (grub_envblk_close): Likewise.
12756 (escaped_value_len): Likewise.
12757 (find_next_line): Likewise.
12758 (grub_envblk_insert): Removed.
12759 (grub_envblk_set): New function.
12760 (grub_envblk_delete): Complete rewrite.
12761 (grub_envblk_iterate): Likewise.
12762
12763 2009-03-28 Robert Millan <rmh@aybabtu.com>
12764
12765 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12766 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12767 variables. Use 16-bit loader.
12768 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12769 loader.
12770 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12771 (grub_linux16_boot): ... this. Update all users.
12772 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12773 (grub_linux_boot): ... this. Update all users.
12774
12775 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12776 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12777 commands to `linux16' and `initrd16'.
12778 (GRUB_MOD_FINI(linux)): Rename to ...
12779 (GRUB_MOD_FINI(linux16)): ... this.
12780
12781 2009-03-24 Pavel Roskin <proski@gnu.org>
12782
12783 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12784 not just for compilation.
12785
12786 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 Move multiboot helper out of kernel
12789
12790 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12791 `loader/i386/multiboot_helper.S'.
12792 * conf/i386-coreboot.rmk: Likewise
12793 * conf/i386-ieee1275.rmk: Likewise
12794
12795 * kern/i386/loader.S: Move multiboot helpers from here...
12796 * loader/i386/multiboot_helper.S: ...moved here
12797 * include/grub/i386/loader.h: Move declarations of multiboot
12798 helpers from here...
12799 * include/grub/i386/multiboot.h: ...moved here
12800 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12801
12802 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12803
12804 * kern/env.c (grub_env_context_open): Added an argument to specify
12805 whether a new context inherits exported variables from current
12806 one. This is useful when making a sandbox to interpret a config
12807 file.
12808 All callers updated.
12809
12810 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12811
12812 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12813
12814 * kern/env.c (grub_env_context_close): Fix memory leaks.
12815
12816 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12817
12818 * normal/main.c (grub_normal_execute): Added an argument
12819 BATCH to specify if an interactive interface should be provided
12820 after reading a config file.
12821 All callers updated.
12822 (read_command_list): Prevent being executed twice.
12823 (read_fs_list): Likewise.
12824
12825 * include/grub/normal.h (grub_normal_execute): Updated the
12826 prototype.
12827
12828 2009-03-22 Pavel Roskin <proski@gno.org>
12829
12830 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12831 _start.
12832 * kern/i386/pc/startup.S: Likewise.
12833 * kern/i386/efi/startup.S: Likewise.
12834 * kern/i386/ieee1275/startup.S: Likewise.
12835 * kern/i386/coreboot/startup.S: Likewise.
12836 * kern/x86_64/efi/startup.S: Likewise.
12837
12838 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12839 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12840 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12841
12842 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12843
12844 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12845
12846 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12847 limit detection.
12848 Use vaddr of correct segment for entry_point.
12849
12850 2009-03-21 Bean <bean123ch@gmail.com>
12851
12852 * commands/blocklist.c: Add include file <grub/command.h>, remove
12853 <grub/normal.h> and <grub/arg.h>.
12854 (grub_cmd_blocklist): Use the new command interface.
12855 (GRUB_MOD_INIT): Likewise.
12856 (GRUB_MOD_FINI): Likewise.
12857 * commands/boot.c: Likewise.
12858 * commands/cat.c: Likewise.
12859 * commands/cmp.c: Likewise.
12860 * commands/configfile.c: Likewise.
12861 * commands/crc.c: Likewise.
12862 * commands/echo.c: Likewise.
12863 * commands/halt.c: Likewise.
12864 * commands/handler.c: Likewise.
12865 * commands/hdparm.c: Likewise.
12866 * commands/help.c: Likewise.
12867 * commands/hexdump.c: Likewise.
12868 * commands/loadenv.c: Likewise.
12869 * commands/ls.c: Likewise.
12870 * commands/lsmmap.c: Likewise.
12871 * commands/lspci.c: Likewise.
12872 * commands/loadenv.c: Likewise.
12873 * commands/read.c: Likewise.
12874 * commands/reboot.c: Likewise.
12875 * commands/search.c: Likewise.
12876 * commands/sleep.c: Likewise.
12877 * commands/test.c: Likewise.
12878 * commands/usbtest.c: Likewise.
12879 * commands/videotest.c: Likewise.
12880 * commands/i386/cpuid.c: Likewise.
12881 * commands/i386/pc/halt.c: Likewise.
12882 * commands/i386/pc/play.c: Likewise.
12883 * commands/i386/pc/pxecmd.c: Likewise.
12884 * commands/i386/pc/vbeinfo.c: Likewise.
12885 * commands/i386/pc/vbetest.c: Likewise.
12886 * commands/ieee1275/suspend.c: Likewise.
12887 * disk/loopback.c: Likewise.
12888 * font/font_cmd.c: Likewise.
12889 * hello/hello.c: Likewise.
12890 * loader/efi/appleloader.c: Likewise.
12891 * loader/efi/chainloader.c: Likewise.
12892 * loader/i386/bsd.c: Likewise.
12893 * loader/i386/efi/linux.c: Likewise.
12894 * loader/i386/ieee1275/linux.c: Likewise.
12895 * loader/i386/linux.c: Likewise.
12896 * loader/i386/pc/chainloader.c: Likewise.
12897 * loader/i386/pc/linux.c: Likewise.
12898 * loader/powerpc/ieee1275/linux.c: Likewise.
12899 * loader/multiboot_loader.c: Likewise.
12900 * term/gfxterm.c: Likewise.
12901 * term/i386/pc/serial.c: Likewise.
12902 * term/terminfo.c: Likewise.
12903
12904 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12905 * term/i386/pc/vga.c: Likewise.
12906 * video/readers/jpeg.c: Likewise.
12907 * video/readers/png.c: Likewise.
12908 * video/readers/tga.c: Likewise.
12909
12910 * util/grub-fstest (cmd_loopback): Removed.
12911 (cmd_blocklist): Likewise.
12912 (cmd_ls): Likewise.
12913 (grub_register_command): Likewise.
12914 (grub_unregister_command): Likewise.
12915 (execute_command): Use grub_command_find to locate command and execute
12916 it.
12917
12918 * include/grub/efi/chainloader.h: Removed.
12919 * loader/efi/chainloader_normal.c: Likewise.
12920 * loader/i386/bsd_normal.c: Likewise.
12921 * loader/i386/pc/chainloader_normal.c: Likewise.
12922 * loader/i386/pc/multiboot_normal.c: Likewise.
12923 * loader/linux_normal.c: Likewise.
12924 * loader/multiboot_loader_normal.c: Likewise.
12925 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12926
12927 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12928 and grub_register_command_p1.
12929
12930 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12931 kern/command.c, lib/arg.c and commands/extcmd.c.
12932 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12933 (minicmd_mod_SOURCES): New variable.
12934 (minicmd_mod_CFLAGS): Likewise.
12935 (minicmd_mod_LDFLAGS): Likewise.
12936 (extcmd_mod_SOURCES): Likewise.
12937 (extcmd_mod_CFLAGS): Likewise.
12938 (extcmd_mod_LDFLAGS): Likewise.
12939 (boot_mod_SOURCES): Removed.
12940 (boot_mod_CFLAGS): Likewise.
12941 (boot_mod_LDFLAGS): Likewise.
12942
12943 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12944 kern/corecmd.c.
12945 (kernel_img_HEADERS): Add command.h.
12946 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
12947 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
12948 and lib/arg.c.
12949 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
12950 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
12951 remove the corresponding normal mode command.
12952 (normal_mod_SOURCES): Remove normal/arg.c.
12953 * conf/i386-coreboot.rmk: Likewise.
12954 * conf/i386-efi.rmk: Likewise.
12955 * conf/i386-ieee1275.rmk: Likewise.
12956 * conf/powerpc-ieee1275.rmk: Likewise.
12957 * conf/x86_64-efi.rmk: Likewise.
12958
12959 * include/grub/arg.h: Move from here ...
12960 * include/grub/lib/arg.h: ... to here.
12961
12962 * normal/arg.c: Move from here ...
12963 * lib/arg.c: ... to here.
12964
12965 * commands/extcmd.c: New file.
12966 * commands/minicmd.c: Likewise.
12967 * include/grub/command.h: Likewise.
12968 * include/grub/extcmd.h: Likewise.
12969 * kern/command.c: Likewise.
12970 * kern/corecmd.c: Likewise.
12971
12972 * kern/list.c (grub_list_iterate): Return int instead of void.
12973 (grub_list_insert): New function.
12974 (grub_prio_list_insert): Likewise.
12975
12976 * kern/rescue.c (grub_rescue_command): Removed.
12977 (grub_rescue_command_list): Likewise.
12978 (grub_rescue_register_command): Likewise.
12979 (grub_rescue_unregister_command): Likewise.
12980 (grub_rescue_cmd_boot): Move to minicmd.c
12981 (grub_rescue_cmd_help): Likewise.
12982 (grub_rescue_cmd_info): Likewise.
12983 (grub_rescue_cmd_boot): Likewise.
12984 (grub_rescue_cmd_testload): Likewise.
12985 (grub_rescue_cmd_dump): Likewise.
12986 (grub_rescue_cmd_rmmod): Likewise.
12987 (grub_rescue_cmd_lsmod): Likewise.
12988 (grub_rescue_cmd_exit): Likewise.
12989 (grub_rescue_print_devices): Moved to corecmd.c.
12990 (grub_rescue_print_files): Likewise.
12991 (grub_rescue_cmd_ls): Likewise.
12992 (grub_rescue_cmd_insmod): Likewise.
12993 (grub_rescue_cmd_set): Likewise.
12994 (grub_rescue_cmd_unset): Likewise.
12995 (attempt_normal_mode): Use grub_command_find to get normal module.
12996 (grub_enter_rescue_mode): Use grub_register_core_commands to register
12997 commands, remove grub_rescue_register_command calls.
12998
12999 * normal/command.c (grub_register_command): Removed.
13000 (grub_unregister_command): Likewise.
13001 (grub_command_find): Likewise.
13002 (grub_iterate_commands): Likewise.
13003 (rescue_command): Likewise.
13004 (export_command): Moved to corecmd.c.
13005 (set_command): Removed.
13006 (unset_command): Likewise.
13007 (insmod_command): Likewise.
13008 (rmmod_command): Likewise.
13009 (lsmod_command): Likewise.
13010 (grub_command_init): Likewise.
13011
13012 * normal/completion.c (iterate_command): Use cmd->prio to check for
13013 active command.
13014 (complete_arguments): Use grub_extcmd_t structure to find options.
13015 (grub_normal_do_completion): Change function grub_iterate_commands to
13016 grub_command_iterate.
13017
13018 * normal/execute.c (grub_script_execute_cmd): No need to parse
13019 argument here.
13020
13021 * normal/main.c (grub_dyncmd_dispatcher): New function.
13022 (read_command_list): Register unload commands as dyncmd.
13023 (grub_cmd_normal): Use new command interface, register rescue,
13024 unregister normal at entry, register normal, unregister rescue at exit.
13025
13026 * include/grub/list.h (grub_list_test_t): New type.
13027 (grub_list_iterate): Return int instead of void.
13028 (grub_list_insert): New function.
13029 (GRUB_AS_NAMED_LIST_P): New macro.
13030 (GRUB_AS_PRIO_LIST): Likewise.
13031 (GRUB_AS_PRIO_LIST_P): Likewise.
13032 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13033 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13034 (grub_prio_list): New structure.
13035 (grub_prio_list_insert): New function.
13036 (grub_prio_list_remove): New inline function.
13037
13038 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13039 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13040 (GRUB_COMMAND_FLAG_MENU): Likewise.
13041 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13042 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13043 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13044 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13045 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13046 (grub_command): Likewise.
13047 (grub_register_command): Likewise.
13048 (grub_command_find): Likewise.
13049 (grub_iterate_commands): Likewise.
13050 (grub_command_init): Likewise.
13051 (grub_arg_parse): Likewise.
13052 (grub_arg_show_help): Likewise.
13053
13054 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13055 (grub_rescue_unregister_command): Likewise.
13056
13057 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13058 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13059 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13060
13061 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13062 grub_rescue_cmd_initrd.
13063 * include/grub/i386/loader.h: Likewise.
13064 * include/grub/x86_64/loader.h: Likewise.
13065
13066 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13067
13068 2009-03-21 Bean <bean123ch@gmail.com>
13069
13070 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13071 instead of stat in mingw environment.
13072
13073 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13074
13075 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13076
13077 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13078 AC_CONFIG_LINKS.
13079
13080 2009-03-21 Bean <bean123ch@gmail.com>
13081
13082 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13083 out of range error.
13084
13085 2009-03-18 Michel Dänzer <michel@daenzer.net>
13086
13087 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13088 checking inode flags for EXT4_EXTENTS_FLAG.
13089
13090 2009-03-18 Robert Millan <rmh@aybabtu.com>
13091
13092 * loader/i386/linux.c: Include `<grub/video.h>' and
13093 `<grub/i386/pc/vbe.h>'..
13094 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13095 (grub_linux32_boot): Attempt to configure video settings with
13096 grub_linux_setup_video().
13097 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13098 to avoid grub_console_fini() which would step out of graphical mode
13099 unconditionally.
13100
13101 2009-03-14 Robert Millan <rmh@aybabtu.com>
13102
13103 Fix build on powerpc.
13104 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13105
13106 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13107
13108 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13109 background image command.
13110
13111 2009-03-12 Colin D Bennett <colin@gibibit.com>
13112
13113 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13114 (grub_gfxterm_putchar): Extract pairs of identical calls to
13115 draw_cursor out of conditional blocks.
13116
13117 2009-03-11 Pavel Roskin <proski@gnu.org>
13118
13119 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13120 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13121
13122 2009-03-11 Robert Millan <rmh@aybabtu.com>
13123
13124 * loader/i386/multiboot_elfxx.c
13125 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13126
13127 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13128
13129 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13130 `kern/handler.c'.
13131
13132 2009-03-11 Robert Millan <rmh@aybabtu.com>
13133
13134 * loader/i386/multiboot.c (code_size): New variable.
13135 (grub_multiboot): Define offsets by adding to `code_size' rather
13136 than subtracting from `grub_multiboot_payload_size'. Provide
13137 4-byte alignment to MBI and others by increasing
13138 `boot_loader_name_length' appropriately.
13139
13140 * loader/i386/multiboot_elfxx.c
13141 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13142
13143 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13144
13145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13146 `fs/ext2.c'.
13147
13148 2009-03-08 Robert Millan <rmh@aybabtu.com>
13149
13150 Make loader/i386/linux.c usable on i386-pc again.
13151
13152 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13153 memory to heap.
13154 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13155 `#error' stanza.
13156
13157 2009-03-07 Bean <bean123ch@gmail.com>
13158
13159 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13160 allocation.
13161
13162 2009-03-06 Robert Millan <rmh@aybabtu.com>
13163
13164 Fix display issue on terminals with screen size other than 80x25
13165 (e.g. gfxterm with resolution higher than 640x480).
13166
13167 * normal/main.c (grub_normal_init_page): Display title text in a
13168 position relative to the center of the terminal instead of relying
13169 on a hardcoded offset.
13170
13171 2009-03-04 Robert Millan <rmh@aybabtu.com>
13172
13173 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13174 installed.
13175
13176 * Makefile.in (host_kernel): New variable.
13177 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13178 scripts instead of just the windows one.
13179 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13180
13181 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13182
13183 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13184 `kern/handler.c'.
13185 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13186 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13187 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13189 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13191
13192 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13193
13194 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13195 or if there's no space for the disk label and print the partition number on a
13196 invalid magic.
13197
13198 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13199
13200 * util/misc.c: Include <time.h>.
13201 (grub_millisleep): New function.
13202
13203 2009-03-04 Bean <bean123ch@gmail.com>
13204
13205 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13206 another option -mno-red-zone.
13207
13208 * commands/handler.c: Change module description.
13209
13210 * kern/handler.c: Add missing space at the end of description line.
13211
13212 * kern/list.c: Likewise.
13213
13214 2009-03-03 Robert Millan <rmh@aybabtu.com>
13215
13216 Move more components to the relocation area, and fix mbi pointer
13217 handling to use the destination rather than the origin (thanks to
13218 Vladimir Serbinenko for spotting).
13219
13220 * loader/i386/multiboot.c (mbi_dest): New variable.
13221 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13222 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13223 relocation area.
13224
13225 2009-03-01 Bean <bean123ch@gmail.com>
13226
13227 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13228 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13229 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13230 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13231
13232 * loader/i386/efi/linux.c (acpi_guid): New variable.
13233 (acpi_guid): Likewise.
13234 (EBDA_SEG_ADDR): New constant.
13235 (LOW_MEM_ADDR): Likewise.
13236 (FAKE_EBDA_SEG): Likewise.
13237 (fake_bios_data): New function.
13238 (grub_linux_boot): Call fake_bios_data.
13239
13240 2009-03-01 Bean <bean123ch@gmail.com>
13241
13242 * commands/terminal.c: Removed.
13243
13244 * commands/handler.c: New file.
13245
13246 * include/grub/list.h: Likewise.
13247
13248 * include/grub/handler.h: Likewise.
13249
13250 * kern/list.c: Likewise.
13251
13252 * kern/handler.c: Likewise.
13253
13254 * kern/term.h: Include header file <grub/handler.h>.
13255 (grub_term_input): Move next field to the beginning.
13256 (grub_term_output): Likewise.
13257 (grub_term_input_class): New variable.
13258 (grub_term_output_class): Likewise.
13259 (grub_term_register_input): Changed to inline function.
13260 (grub_term_register_output): Likewise.
13261 (grub_term_unregister_input): Likewise.
13262 (grub_term_unregister_output): Likewise.
13263 (grub_term_set_current_input): Likewise.
13264 (grub_term_set_current_output): Likewise.
13265 (grub_term_get_current_input): Likewise.
13266 (grub_term_get_current_output): Likewise.
13267 (grub_term_iterate_input): Removed.
13268 (grub_term_iterate_output): Likewise.
13269
13270 * kern/term.c (grub_term_list_input): Removed.
13271 (grub_term_list_output): Likewise.
13272 (grub_term_input_class): New variable.
13273 (grub_term_output_class): Likewise.
13274 (grub_cur_term_input): Change variable as macro.
13275 (grub_cur_term_output): Likewise.
13276 (grub_term_register_input): Removed.
13277 (grub_term_register_output): Likewise.
13278 (grub_term_unregister_input): Likewise.
13279 (grub_term_unregister_output): Likewise.
13280 (grub_term_set_current_input): Likewise.
13281 (grub_term_set_current_output): Likewise.
13282 (grub_term_iterate_input): Likewise.
13283 (grub_term_iterate_output): Likewise.
13284 (grub_term_get_current_input): Likewise.
13285 (grub_term_get_current_output): Likewise.
13286
13287 * util/grub-editenv.c: Include header file <grub/handler.h>.
13288 (grub_term_get_current_input): Removed.
13289 (grub_term_get_current_output): Likewise.
13290 (grub_term_input_class): New variable.
13291 (grub_term_output_class): Likewise.
13292
13293 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13294 (grub_term_get_current_output): Likewise.
13295 (grub_term_input_class): New variable.
13296 (grub_term_output_class): Likewise.
13297
13298 * util/grub-probe.c (grub_term_get_current_input): Removed.
13299 (grub_term_get_current_output): Likewise.
13300 (grub_term_input_class): New variable.
13301 (grub_term_output_class): Likewise.
13302
13303 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13304 (grub_term_get_current_output): Likewise.
13305 (grub_term_input_class): New variable.
13306 (grub_term_output_class): Likewise.
13307
13308 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13309 (terminal_mod_SOURCES): Likewise.
13310 (terminal_mod_CFLAGS): Likewise.
13311 (terminal_mod_LDFLAGS): Likewise.
13312
13313 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13314 handler.c.
13315 (kernel_img_SOURCES): Add list.c and handler.c.
13316 (kernel_img_HEADERS): Add list.h and handler.h.
13317
13318 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13319 handler.c.
13320 (kernel_mod_SOURCES): Add list.c and handler.c.
13321 (kernel_mod_HEADERS): Add list.h and handler.h.
13322
13323 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13324 handler.c.
13325 (kernel_elf_SOURCES): Add list.c and handler.c.
13326 (kernel_elf_HEADERS): Add list.h and handler.h.
13327
13328 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13329 handler.c.
13330 (kernel_elf_SOURCES): Add list.c and handler.c.
13331 (kernel_elf_HEADERS): Add list.h and handler.h.
13332
13333 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13334 handler.c.
13335 (kernel_mod_SOURCES): Add list.c and handler.c.
13336 (kernel_mod_HEADERS): Add list.h and handler.h.
13337
13338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13339 handler.c.
13340 (kernel_elf_SOURCES): Add list.c and handler.c.
13341 (kernel_elf_HEADERS): Add list.h and handler.h.
13342
13343 2009-02-27 Robert Millan <rmh@aybabtu.com>
13344
13345 Factorize elf32 / elf64 code in Multiboot loader. This will
13346 prevent it from getting out of sync again.
13347
13348 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13349 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13350 grub_multiboot_load_elf64): Move from here ...
13351 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13352 grub_multiboot_load_elf): ... to here (new file).
13353
13354 2009-02-27 Robert Millan <rmh@aybabtu.com>
13355
13356 * util/grub.d/10_linux.in: Rename "single-user mode" to
13357 "recovery mode".
13358
13359 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13360
13361 Don't leak in SCSI code.
13362 * disk/scsi.c (grub_scsi_close): free `scsi'.
13363
13364 2009-02-27 Robert Millan <rmh@aybabtu.com>
13365
13366 * loader/i386/pc/multiboot.c: Move from here ...
13367 * loader/i386/multiboot.c: ... to here. Update all users.
13368
13369 2009-02-27 Robert Millan <rmh@aybabtu.com>
13370
13371 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13372 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13373
13374 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13375
13376 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13377 b-tree.
13378
13379 2009-02-27 Robert Millan <rmh@aybabtu.com>
13380
13381 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13382 `0x' qualifier as 0 when base is specified as parameter).
13383
13384 2009-02-24 Bean <bean123ch@gmail.com>
13385
13386 * configure.ac: Check for -mcmodel=large in x86_64 target.
13387
13388 * include/grub/efi/api.h (efi_call_10): New macro.
13389 (efi_wrap_10): New function.
13390
13391 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13392 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13393 (GRUB_PE32_REL_BASED_LOW): Likewise.
13394 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13395 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13396 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13397 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13398 (GRUB_PE32_REL_BASED_REL): Likewise.
13399 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13400 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13401 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13402
13403 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13404 issue.
13405
13406 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13407 (efi_wrap_10): New function.
13408
13409 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13410
13411 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13412 MB/MBP model (NV chipset).
13413 (devdata_devs): Add devpath_5 to the list.
13414
13415 * load/i386/efi/linux.c (video_base): Remove variable.
13416 (RGB_MASK): New macro.
13417 (RGB_MAGIC): Likewise.
13418 (LINE_MIN): Likewise.
13419 (LINE_MAX): Likewise.
13420 (FBTEST_STEP): Likewise.
13421 (FBTEST_COUNT): Likewise.
13422 (fb_list): New variable.
13423 (grub_find_video_card): Remove function.
13424 (find_framebuf): New function.
13425 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13426 line length.
13427
13428 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13429 problem for x86_64.
13430
13431 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13432
13433 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13434
13435 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13436 coding tool name.
13437
13438 2009-02-22 Robert Millan <rmh@aybabtu.com>
13439
13440 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13441 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13442 in our relocation, instead of using it directly from heap. Also
13443 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13444
13445 2009-02-21 Robert Millan <rmh@aybabtu.com>
13446
13447 Implement USB keyboard support (based on patch by Marco Gerards)
13448
13449 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13450 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13451 (usb_keyboard_mod_LDFLAGS): New variables.
13452
13453 * term/usb_keyboard.c: New file.
13454
13455 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13456
13457 Corrected wrong declaration
13458
13459 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13460
13461 2009-02-14 Christian Franke <franke@computer.org>
13462
13463 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13464 (grub_lspci_iter): Print class code and programming interface byte.
13465
13466 2009-02-14 Christian Franke <franke@computer.org>
13467
13468 * gendistlist.sh: Ignore `.svn' directories.
13469
13470 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13471
13472 * fs/fat.c: Add 2009 to Copyright line.
13473
13474 2009-02-14 Christian Franke <franke@computer.org>
13475
13476 * commands/hdparm.c: New file. Provides `hdparm' command
13477 which sends ATA commands via grub_disk_ata_pass_through ().
13478
13479 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13480
13481 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13482 and <grub/cpu/io.h> to include/grub/ata.h.
13483 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13484 (GRUB_CDROM_SECTOR_SIZE): Remove.
13485 (GRUB_ATA_*): Move to include/grub/ata.h.
13486 (GRUB_ATAPI_*): Likewise.
13487 (enum grub_ata_commands): Likewise.
13488 (enum grub_ata_timeout_milliseconds): Likewise.
13489 (struct grub_ata_device): Likewise.
13490 (grub_ata_regset): Likewise.
13491 (grub_ata_regget): Likewise.
13492 (grub_ata_regset2): Likewise.
13493 (grub_ata_regget2): Likewise.
13494 (grub_ata_check_ready): Likewise.
13495 (grub_ata_wait_not_busy): Remove static, exported in
13496 include/grub/ata.h.
13497 (grub_ata_wait_drq): Likewise.
13498 (grub_ata_pio_read): Likewise.
13499
13500 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13501 function for hdparm.mod.
13502
13503 * include/grub/ata.h: New file, contains declarations from
13504 disk/ata.c.
13505 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13506
13507 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13508 (grub_disk_ata_pass_through): New exported variable.
13509
13510 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13511
13512 2009-02-13 Colin D Bennett <colin@gibibit.com>
13513
13514 Support multiple fallback entries, and provide an API to support
13515 executing default+fallback menu entries. Renamed the `terminal' menu
13516 viewer to `text'.
13517
13518 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13519 variable declaration.
13520 (grub_menu_execute_callback): New structure declaration.
13521 (grub_menu_execute_callback_t): New typedef.
13522 (grub_menu_execute_with_fallback): New function declaration.
13523 (grub_menu_get_entry): Likewise.
13524 (grub_menu_get_timeout): Likewise.
13525 (grub_menu_set_timeout): Likewise.
13526
13527 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13528
13529 * normal/menu.c (grub_wait_after_message): Moved to
13530 `normal/menu_text.c'.
13531 (draw_border): Likewise.
13532 (print_message): Likewise.
13533 (print_entry): Likewise.
13534 (print_entries): Likewise.
13535 (grub_menu_init_page): Likewise.
13536 (get_entry_number): Likewise.
13537 (print_timeout): Likewise.
13538 (run_menu): Likewise.
13539 (grub_menu_execute_entry): Likewise.
13540 (show_text_menu): Likewise.
13541 (get_and_remove_first_entry_number): New function.
13542 (grub_menu_execute_with_fallback): Likewise.
13543 (get_entry): Renamed to ...
13544 (grub_menu_get_entry): .. this and made it global.
13545 (get_timeout): Renamed to ...
13546 (grub_menu_get_timeout): ... this and made it global.
13547 (set_timeout): Renamed to ...
13548 (grub_menu_set_timeout): ... this and made it global.
13549 (grub_normal_terminal_menu_viewer): Renamed to ...
13550 (grub_normal_text_menu_viewer): ... this.
13551
13552 * normal/menu_text.c: New file. Extracted text-menu-specific code
13553 from normal/menu.c.
13554
13555 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13556 (normal_mod_SOURCES): Likewise.
13557
13558 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13559 (normal_mod_SOURCES): Likewise.
13560
13561 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13562 (normal_mod_SOURCES): Likewise.
13563
13564 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13565 (normal_mod_SOURCES): Likewise.
13566
13567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13568 (normal_mod_SOURCES): Likewise.
13569
13570 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13571 (normal_mod_SOURCES): Likewise.
13572
13573 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13574 (normal_mod_SOURCES): Likewise.
13575
13576 2009-02-11 Robert Millan <rmh@aybabtu.com>
13577
13578 * util/grub.d/00_header.in: Update old reference to `font' command.
13579
13580 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13581
13582 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13583
13584 Based on patch from Javier Martín.
13585
13586 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13587
13588 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13589 to avoid false positives with FAT.
13590 (grub_fstest_SOURCES): Likewise.
13591 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13592 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13595 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13596 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13597
13598 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13599
13600 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13601 bpb.version_specific.fat12_or_fat16.fstype and
13602 bpb.version_specific.fat32.fstype.
13603
13604 2009-02-08 Robert Millan <rmh@aybabtu.com>
13605
13606 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13607
13608 2009-02-08 Robert Millan <rmh@aybabtu.com>
13609
13610 * Makefile.in (host_os, host_cpu): New variables.
13611 (target_os): Remove. Update all users.
13612
13613 2009-02-08 Marco Gerards <marco@gnu.org>
13614
13615 * Makefile.in (enable_grub_emu_usb): New variable.
13616 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13617 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13618 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13619 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13620 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13621 `usbtest.mod' and `usbms.mod'.
13622 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13623 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13624 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13625 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13626 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13627 variables.
13628
13629 * disk/usbms.c: New file.
13630
13631 * include/grub/usb.h: Likewise.
13632
13633 * include/grub/usbtrans.h: Likewise.
13634
13635 * include/grub/usbdesc.h: Likewise.
13636
13637 * bus/usb/usbtrans.c: Likewise.
13638
13639 * bus/usb/ohci.c: Likewise.
13640
13641 * bus/usb/uhci.c: Likewise.
13642
13643 * bus/usb/usbhub.c: Likewise.
13644
13645 * bus/usb/usb.c: Likewise.
13646
13647 * commands/usbtest.c: Likewise.
13648
13649 * util/usb.c: Likewise.
13650
13651 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13652
13653 * configure.ac: Test for libusb presence.
13654
13655 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13656
13657 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13658
13659 * kern/mm.c: Add more comments.
13660
13661 2009-02-08 Robert Millan <rmh@aybabtu.com>
13662
13663 Patch from Javier Martín.
13664 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13665 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13666
13667 2009-02-08 Robert Millan <rmh@aybabtu.com>
13668
13669 * fs/cpio.c: Split tar functionality to ...
13670 * fs/tar.c: ... here (new file). Update all users.
13671
13672 2009-02-07 Robert Millan <rmh@aybabtu.com>
13673
13674 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13675 backward-incompatible features.
13676
13677 Based on patch from Javier Martín, with some adjustments.
13678
13679 2009-02-07 Michael Scherer <misc@mandriva.org>
13680
13681 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13682
13683 2009-02-07 Robert Millan <rmh@aybabtu.com>
13684
13685 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13686 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13687 after the RAID stuff.
13688
13689 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13690
13691 Fixes problem when running vbetest command as reported by
13692 Vladimir Serbinenko <phcoder@gmail.com>.
13693
13694 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13695
13696 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13697
13698 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13699 /dev/md/NpN style mdraid devices.
13700
13701 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13702
13703 * util/unifont2pff.rb: Remove.
13704
13705 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13706
13707 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13708 `#'.
13709
13710 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13711
13712 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13713 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13714 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13715 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13717 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13719
13720 2009-02-02 Christian Franke <franke@computer.org>
13721
13722 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13723
13724 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13725
13726 * INSTALL: Note that we now require at least autoconf 2.59 and
13727 that LZO is optional.
13728
13729 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13730
13731 Base on patch on bug #24154 created by Tomas Tintera
13732 <trosos@seznam.cz>.
13733
13734 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13735
13736 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13737
13738 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
13739 <bero@arklinux.org>.
13740
13741 * normal/parser.y (script_init): Add missing semicolon.
13742
13743 2009-01-31 Colin D Bennett <colin@gibibit.com>
13744
13745 * normal/main.c: Add include to grub/menu_viewer.h.
13746 (free_menu_entry_classes): Added.
13747 (grub_normal_menu_addentry): Added class property handling.
13748 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13749 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13750
13751 * normal/menu_viewer.c: New file.
13752
13753 * normal/menu.c (run_menu_entry): Renamed to ...
13754 (grub_menu_execute_entry): ... this and made it as global.
13755 (grub_menu_run): Renamed to ...
13756 (show_text_menu): ... this and made it local.
13757 (show_text_menu): Adapt to new function names.
13758 (grub_normal_terminal_menu_viewer): New global variable.
13759
13760 * include/grub/menu.h: New file.
13761
13762 * include/grub/menu_viewer.h: New file.
13763
13764 * include/grub/normal.h: Added include to grub/menu.h.
13765 (grub_menu_entry): Moved to include/grub/menu.h.
13766 (grub_menu_entry_t): Likewise.
13767 (grub_menu): Likewise.
13768 (grub_menu_t): Likewise.
13769 (grub_normal_terminal_menu_viewer): Added.
13770 (grub_menu_execute_entry): Likewise.
13771 (grub_menu_run): Removed.
13772
13773 * DISTLIST: Added include/grub/menu.h.
13774 Added include/grub/menu_viewer.h.
13775 Added normal/menu_viewer.c.
13776
13777 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13778
13779 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13780 arglist for menutitle arguments.
13781
13782 * normal/main.c (grub_normal_menu_addentry): Likewise.
13783
13784 * normal/parser.y (menuentry): Likewise.
13785
13786 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13787
13788 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13789 (grub_script_create_cmdmenu): Likewise.
13790
13791 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13792
13793 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13794 changes.
13795
13796 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13797
13798 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13799
13800 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13801
13802 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13803
13804 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13805
13806 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13807
13808 2009-01-30 Christian Franke <franke@computer.org>
13809
13810 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13811 in option help text.
13812
13813 2009-01-27 Pavel Roskin <proski@gnu.org>
13814
13815 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13816
13817 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13818
13819 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13820
13821 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13822
13823 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13824 unregister function.
13825
13826 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13827
13828 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13829
13830 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13831
13832 * util/grub-mkfont.c (usage): Fix typo.
13833
13834 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13835
13836 2009-01-26 Daniel Mierswa <impulze@impulze.org>
13837
13838 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13839
13840 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13841
13842 * kern/misc.c (grub_strcasecmp): New function.
13843 (grub_strcasecmp): Use grub_size_t instead of int for length.
13844 Fix return value.
13845 * include/grub/misc.h: Update function prototypes.
13846
13847 2009-01-26 Robert Millan <rmh@aybabtu.com>
13848
13849 * configure.ac: Fix cross-compilation check.
13850
13851 2009-01-22 Christian Franke <franke@computer.org>
13852
13853 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13854 (precision) digit string. Allow `.format2' without `format1' (width).
13855 Limit input chars for `%s' output to `format2' if specified. This is
13856 compatible with standard printf ().
13857
13858 2009-01-22 Christian Franke <franke@computer.org>
13859
13860 * disk/ata.c (grub_ata_wait_status): Replace by ...
13861 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13862 other status bits may be invalid while BSY is asserted.
13863 (grub_ata_check_ready): New function.
13864 (grub_ata_cmd): Removed.
13865 (grub_ata_wait_drq): New function.
13866 (grub_ata_strncpy): Remove inline.
13867 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13868 and error check now done by grub_ata_wait_drq ().
13869 (grub_ata_pio_write): Likewise.
13870 (grub_atapi_identify): Set DEV before check for !BSY. Use
13871 grub_ata_wait_drq () to wait for data.
13872 (grub_ata_device_initialize): Add status register check to
13873 detect missing SATA slave devices. Add debug messages.
13874 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13875 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13876 transfer loop by grub_ata_pio_write ().
13877 (grub_ata_identify): Set DEV before check for !BSY. Use
13878 grub_ata_wait_drq () to wait for data.
13879 (grub_ata_setaddress): Set DEV before check for !BSY.
13880 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13881 read/write in one loop. Fix invalid command on write. Fix incomplete
13882 command on (size % batch) == 0. Add missing error check after write of
13883 last block. Add debug messages.
13884 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13885
13886 2009-01-19 Christian Franke <franke@computer.org>
13887
13888 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13889 (GRUB_ATAPI_IREASON_*): Likewise.
13890 (grub_ata_pio_write): Fix timeout error return.
13891 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13892 (grub_atapi_wait_drq): New function.
13893 (grub_atapi_packet): New parameter `size'.
13894 Use grub_atapi_wait_drq () and direct write instead of
13895 grub_ata_pio_write ().
13896 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13897 reads the number of bytes requested by the device for each DRQ
13898 assertion.
13899 (grub_atapi_write): Remove old implementation, return not
13900 implemented instead.
13901
13902 2009-01-19 Christian Franke <franke@computer.org>
13903
13904 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13905 of 512 to calculate data size.
13906 (grub_scsi_read12): Likewise.
13907 (grub_scsi_write10): Likewise.
13908 (grub_scsi_write12): Likewise.
13909 (grub_scsi_read): Adjust size according to blocksize.
13910 Add checks for invalid blocksize and unaligned transfer.
13911
13912 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13913
13914 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13915
13916 * term/gfxterm.c (write_char): Fix background rendering for wide
13917 width glyphs.
13918
13919 2009-01-19 Robert Millan <rmh@aybabtu.com>
13920
13921 * config.guess: Update to latest version from config git.
13922 * config.sub: Likewise.
13923
13924 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
13925
13926 * Makefile.in: Change font compilation to use new grub-mkfont instead
13927 of java version.
13928
13929 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13930 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13931 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13932 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13933 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13934 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13935 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13936 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13937 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13938
13939 2009-01-16 Christian Franke <franke@computer.org>
13940
13941 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13942 (enum grub_ata_timeout_milliseconds): New enum.
13943 (grub_ata_wait_status): Add parameter milliseconds.
13944 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
13945 recovery from timed-out commands.
13946 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
13947 return grub_errno instead of REG_ERROR.
13948 (grub_ata_pio_write): Add parameter milliseconds.
13949 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
13950 Pass milliseconds to grub_ata_wait_status () and
13951 grub_ata_pio_read ().
13952 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
13953 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
13954 grub_ata_wait_status (). Fix IDENTIFY timeout check.
13955 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
13956 It is not suitable for device detection, because DEV bit is ignored,
13957 the command may run too long, and not all devices set the signature
13958 properly.
13959 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
13960 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
13961 Fix device selection, DEV bit must be set first to address the registers
13962 of the correct device.
13963 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
13964 grub_ata_pio_read/write ().
13965 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
13966 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
13967
13968 2009-01-13 Carles Pina i Estany <carles@pina.cat>
13969
13970 * util/grub-editenv.c (main): Use fseeko(), not fseek().
13971
13972 2009-01-13 Bean <bean123ch@gmail.com>
13973
13974 * util/grub-mkfont.c (write_font): forget to remove some debug code.
13975
13976 2009-01-13 Bean <bean123ch@gmail.com>
13977
13978 * Makefile.in: (enable_grub_mkfont): New variable.
13979 (freetype_cflags): Likewise.
13980 (freetype_libs): Likewise.
13981
13982 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
13983 (grub_mkfont_SOURCES): New variable.
13984 (grub_mkfont_CFLAGS): Likewise.
13985 (grub_mkfont_LDFLAGS): Likewise.
13986
13987 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
13988 library if `--enable-grub-mkfont' is requested.
13989 (enable_grub_mkfont): New variable.
13990 (freetype_cflags): Likewise.
13991 (freetype_libs): Likewise.
13992
13993 * util/grub-mkfont.c: New file.
13994
13995 2009-01-12 Christian Franke <franke@computer.org>
13996
13997 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
13998 mode check. Fix setting of compat_use[].
13999
14000 2009-01-10 Robert Millan <rmh@aybabtu.com>
14001
14002 Update a few copyright years which we forgot to do in 2008 (only for
14003 files whose changes made in 2008 were copyright-significant)
14004
14005 * Makefile.in: Add 2008 to Copyright line.
14006 * disk/ieee1275/ofdisk.c: Likewise.
14007 * disk/efi/efidisk.c: Likewise.
14008 * kern/dl.c: Likewise.
14009 * kern/sparc64/ieee1275/init.c: Likewise.
14010 * kern/mm.c: Likewise.
14011 * kern/efi/mm.c: Likewise.
14012 * boot/i386/pc/boot.S: Likewise.
14013 * genfslist.sh: Likewise.
14014 * fs/iso9660.c: Likewise.
14015 * fs/hfs.c: Likewise.
14016 * fs/jfs.c: Likewise.
14017 * fs/minix.c: Likewise.
14018 * fs/ufs.c: Likewise.
14019 * gensymlist.sh.in: Likewise.
14020 * genkernsyms.sh.in: Likewise.
14021 * include/grub/misc.h: Likewise.
14022 * include/grub/types.h: Likewise.
14023 * include/grub/symbol.h: Likewise.
14024 * include/grub/elf.h: Likewise.
14025 * include/grub/kernel.h: Likewise.
14026 * include/grub/disk.h: Likewise.
14027 * include/grub/dl.h: Likewise.
14028 * include/grub/i386/linux.h: Likewise.
14029 * include/grub/i386/pc/biosdisk.h: Likewise.
14030 * include/grub/efi/api.h: Likewise.
14031 * include/grub/efi/pe32.h: Likewise.
14032 * include/grub/util/misc.h: Likewise.
14033 * normal/execute.c: Likewise.
14034 * normal/arg.c: Likewise.
14035 * normal/completion.c: Likewise.
14036 * normal/lexer.c: Likewise.
14037 * normal/parser.y: Likewise.
14038 * normal/misc.c: Likewise.
14039 * commands/i386/pc/vbeinfo.c: Likewise.
14040 * commands/hexdump.c: Likewise.
14041 * commands/terminal.c: Likewise.
14042 * commands/ls.c: Likewise.
14043 * commands/help.c: Likewise.
14044 * partmap/pc.c: Likewise.
14045 * loader/efi/chainloader.c: Likewise.
14046 * loader/multiboot_loader.c: Likewise.
14047 * loader/i386/pc/multiboot2.c: Likewise.
14048 * term/efi/console.c: Likewise.
14049 * term/i386/pc/serial.c: Likewise.
14050 * util/lvm.c: Likewise.
14051 * util/console.c: Likewise.
14052 * util/i386/efi/grub-mkimage.c: Likewise.
14053 * util/raid.c: Likewise.
14054
14055 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14056
14057 * commands/videotest.c: Removed include to grub/machine/memory.h.
14058
14059 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14060 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14061 (video_mod_SOURCES): Removed.
14062 (video_mod_CFLAGS): Likewise.
14063 (video_mod_LDFLAGS): Likewise.
14064 (gfxterm_mod_SOURCES): Likewise.
14065 (gfxterm_mod_CFLAGS): Likewise.
14066 (gfxterm_mod_LDFLAGS): Likewise.
14067 (videotest_mod_SOURCES): Likewise.
14068 (videotest_mod_CFLAGS): Likewise.
14069 (videotest_mod_LDFLAGS): Likewise.
14070 (bitmap_mod_SOURCES): Likewise.
14071 (bitmap_mod_CFLAGS): Likewise.
14072 (bitmap_mod_LDFLAGS): Likewise.
14073 (tga_mod_SOURCES): Likewise.
14074 (tga_mod_CFLAGS): Likewise.
14075 (tga_mod_LDFLAGS): Likewise.
14076 (jpeg_mod_SOURCES): Likewise.
14077 (jpeg_mod_CFLAGS): Likewise.
14078 (jpeg_mod_LDFLAGS): Likewise.
14079 (png_mod_SOURCES): Likewise.
14080 (png_mod_CFLAGS): Likewise.
14081 (png_mod_LDFLAGS): Likewise.
14082
14083 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14084 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14085 (video_mod_SOURCES): Added.
14086 (video_mod_CFLAGS): Likewise.
14087 (video_mod_LDFLAGS): Likewise.
14088 (videotest_mod_SOURCES): Likewise.
14089 (videotest_mod_CFLAGS): Likewise.
14090 (videotest_mod_LDFLAGS): Likewise.
14091 (bitmap_mod_SOURCES): Likewise.
14092 (bitmap_mod_CFLAGS): Likewise.
14093 (bitmap_mod_LDFLAGS): Likewise.
14094 (tga_mod_SOURCES): Likewise.
14095 (tga_mod_CFLAGS): Likewise.
14096 (tga_mod_LDFLAGS): Likewise.
14097 (jpeg_mod_SOURCES): Likewise.
14098 (jpeg_mod_CFLAGS): Likewise.
14099 (jpeg_mod_LDFLAGS): Likewise.
14100 (png_mod_SOURCES): Likewise.
14101 (png_mod_CFLAGS): Likewise.
14102 (png_mod_LDFLAGS): Likewise.
14103 (gfxterm_mod_SOURCES): Likewise.
14104 (gfxterm_mod_CFLAGS): Likewise.
14105 (gfxterm_mod_LDFLAGS): Likewise.
14106
14107 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14108 grub/machine/console.h.
14109
14110 2009-01-04 Jerone Young <jerone@gmail.com>
14111
14112 Make on screen instructions clearer
14113
14114 Based on patch created by Jidanni <jidanni@jidanni.org>
14115
14116 * normal/menu.c: print clearer instructions on the screen
14117
14118 2009-01-02 Colin D Bennett <colin@gibibit.com>
14119
14120 New font engine.
14121
14122 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14123 build system and fixed gfxterm.c to work with different sized fonts.
14124
14125 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14126
14127 * configure: Re-generated.
14128
14129 * DISTLIST: Removed font/manager.c.
14130 Added font/font.c.
14131 Added font/font_cmd.c.
14132
14133 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14134 compilation.
14135
14136 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14137
14138 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14139
14140 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14141
14142 * normal/menu.c: Likewise.
14143
14144 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14145 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14146
14147 * include/grub/font.h: Replaced with new file.
14148
14149 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14150 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14151 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14152 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14153 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14154 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14155 fg_red, fg_green, fg_blue, fg_alpha.
14156 (grub_video_adapter): Removed blit_glyph.
14157 (grub_video_blit_glyph): Removed.
14158
14159 * font/manager.c: Removed file.
14160
14161 * font/font.c: New file.
14162
14163 * font/font_cmd.c: Likewise.
14164
14165 * video/video.c (grub_video_blit_glyph): Removed.
14166
14167 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14168 (grub_video_vbe_map_rgba): Likewise.
14169 (grub_video_vbe_unmap_color_int): Likewise.
14170 (grub_video_vbe_blit_glyph): Removed.
14171 (grub_video_vbe_adapter): Removed blit_glyph.
14172
14173 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14174 (get_pixel): Likewise.
14175 (set_pixel): Likewise.
14176
14177 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14178
14179 * term/gfxterm.c: Adapted to new font engine.
14180
14181 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14182
14183 * term/i386/pc/vga.c: Likewise.
14184
14185 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14186
14187 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14188
14189 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14190
14191 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14192
14193 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14194
14195 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14196
14197 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14198
14199 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14200
14201 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14202
14203 * util/grub.d/00_header.in: Changed to use new loadfont command.
14204
14205 * util/grub-mkconfig_lib.in: Changed font extension.
14206
14207 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14208
14209 * util/getroot.c (grub_util_get_grub_dev): Add support for
14210 /dev/md/dNNpNN style partitionable mdraid devices.
14211
14212 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14213
14214 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14215 at a time limit of the PXE TFTP API correctly.
14216 (grub_pxefs_close): Likewise.
14217
14218 2008-11-29 Robert Millan <rmh@aybabtu.com>
14219
14220 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14221 grub_ata_device_initialize() calls.
14222
14223 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14224
14225 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14226 iteration failed.
14227 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14228
14229 2008-11-28 Robert Millan <rmh@aybabtu.com>
14230
14231 Fix build on powerpc-ieee1275. Based on patch created by
14232 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14233 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14234 `kern/ieee1275/mmap.c'.
14235 * include/grub/powerpc/ieee1275/memory.h: New file.
14236
14237 Provide grub-install on coreboot.
14238 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14239 (grub_install_SOURCES): New variable.
14240 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14241 usable on coreboot.
14242
14243 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14244
14245 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14246 to `grub_term_input_t'.
14247 (grub_term_get_current_output): Change return type to
14248 `grub_term_output_t'.
14249
14250 2008-11-22 Robert Millan <rmh@aybabtu.com>
14251
14252 Fix breakage on coreboot due to declaration mismatch.
14253 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14254 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14255 grub_vga_text_cls().
14256
14257 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14258 comments. Avoid copying one more byte than necessary (just in case).
14259
14260 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14261 to 0x200000 (avoids trouble with some OFW implementations, and matches
14262 with the one in Yaboot).
14263 Reported by Manoel Abranches
14264
14265 2008-11-20 Robert Millan <rmh@aybabtu.com>
14266
14267 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14268 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14269
14270 * util/grub-mkconfig_lib.in (grub_warn): New function.
14271 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14272 warnings, to obtain consistent formatting.
14273 * util/grub.d/00_header.in: Likewise.
14274 * util/update-grub_lib.in: Likewise.
14275
14276 * loader/i386/linux.c (allocate_pages): Fix a warning.
14277 Move comment text to `#error' stanza.
14278
14279 Harmonize ieee1275's grub_available_iterate() with the generic
14280 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14281 build problem on i386-ieee1275):
14282 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14283 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14284 parameter `type'. Update all users of this function.
14285 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14286 `kern/ieee1275/mmap.c'.
14287 * kern/ieee1275/init.c
14288 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14289 with ...
14290 (grub_machine_mmap_iterate): ... this.
14291 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14292 return type to `grub_err_t'. Update all implementations of this
14293 function prototype.
14294 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14295 Likewise.
14296
14297 Add `lsmmap' command (lists firmware-provided memory map):
14298 * commands/lsmmap.c: New file.
14299 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14300 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14301 variables.
14302 * conf/powerpc-ieee1275.rmk: Likewise.
14303 * conf/i386-coreboot.rmk: Likewise.
14304 * conf/i386-ieee1275.rmk: Likewise.
14305
14306 2008-11-19 Robert Millan <rmh@aybabtu.com>
14307
14308 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14309 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14310 constraints to initrd allocation (based on code from
14311 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14312 for Linux to find it.
14313
14314 2008-11-14 Robert Millan <rmh@aybabtu.com>
14315
14316 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14317 order to cope with duplicate slashes.
14318
14319 2008-11-14 Robert Millan <rmh@aybabtu.com>
14320
14321 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14322 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14323 don't want to mess with lower memory, because it is used in the Linux
14324 loader.
14325
14326 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14327 an appropriate place in lower memory, between 0x10000 and 0x90000,
14328 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14329 is in our heap (probably as a result of it being corrupted during
14330 decompression). Add #error instance with comment to explain why this
14331 loader isn't currently usable on PC/BIOS.
14332
14333 2008-11-14 Robert Millan <rmh@aybabtu.com>
14334
14335 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14336 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14337
14338 2008-11-12 Robert Millan <rmh@aybabtu.com>
14339
14340 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14341
14342 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14343 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14344 from here ...
14345 * include/grub/i386/pc/memory.h: ... to here.
14346
14347 2008-11-12 Robert Millan <rmh@aybabtu.com>
14348
14349 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14350 split).
14351
14352 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14353 (grub_console_cur_color, grub_console_real_putchar)
14354 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14355 (grub_console_setcolorstate, grub_console_setcolor)
14356 (grub_console_getcolor): Move from here ...
14357 * include/grub/i386/vga_common.h: ... to here (new file).
14358
14359 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14360 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14361 `<grub/i386/io.h>'.
14362 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14363 `<grub/i386/vga_common.h>'.
14364
14365 2008-11-12 Robert Millan <rmh@aybabtu.com>
14366
14367 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14368 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14369 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14370 variables.
14371 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14372 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14373
14374 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14375 grub_console_init() with call to grub_vga_text_init().
14376 (grub_machine_fini): Replace call to
14377 grub_console_fini() with call to grub_vga_text_fini() and
14378 grub_at_keyboard_fini().
14379
14380 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14381 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14382 (grub_console_setcolorstate, grub_console_setcolor)
14383 (grub_console_getcolor): New function prototypes.
14384
14385 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14386 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14387 (grub_vga_text_setcursor): Static-ize.
14388 (grub_vga_text_term): New structure.
14389 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14390
14391 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14392 (grub_console_cur_color, grub_console_standard_color)
14393 (grub_console_normal_color, grub_console_highlight_color)
14394 (map_char, grub_console_putchar, grub_console_getcharwidth)
14395 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14396 (grub_console_getcolor): Move from here ...
14397 * term/i386/vga_common.c: ... to here (same function names).
14398
14399 2008-11-12 Robert Millan <rmh@aybabtu.com>
14400
14401 Use newly-added Multiboot support in coreboot.
14402
14403 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14404 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14405
14406 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14407 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14408 (codestart): Store the MBI in `startup_multiboot_info' when we're
14409 being loaded using Multiboot.
14410
14411 * kern/i386/coreboot/init.c (grub_machine_init): Move
14412 grub_at_keyboard_init() call to beginning of function (useful for
14413 debugging). Call grub_machine_mmap_init() before attempting to use
14414 grub_machine_mmap_iterate().
14415 (grub_lower_mem, grub_upper_mem): Move from here ...
14416 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14417 here (new file).
14418
14419 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14420 function prototype.
14421
14422 2008-11-12 Robert Millan <rmh@aybabtu.com>
14423
14424 Fix a regression introduced by the at_keyboard.mod split. Because
14425 some terminals are default on some platforms and non-default on
14426 others, the first terminal being registered determines which is
14427 going to be default.
14428
14429 * kern/term.c (grub_term_register_input): If this is the first
14430 terminal being registered, set it as the current one.
14431 (grub_term_register_output): Likewise.
14432
14433 * term/efi/console.c (grub_console_init): Do not call
14434 grub_term_set_current_output() or grub_term_set_current_input().
14435 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14436 * term/i386/pc/console.c (grub_console_init): Likewise.
14437 (grub_console_fini): Do not call grub_term_set_current_input()
14438 (but leave grub_term_set_current_output() to restore text mode).
14439
14440 2008-11-10 Robert Millan <rmh@aybabtu.com>
14441
14442 * util/grub.d/00_header.in: Add backward compatibility check for
14443 versions of terminal.mod that don't understand `terminal_input' or
14444 `terminal_output'.
14445
14446 2008-11-09 Robert Millan <rmh@aybabtu.com>
14447
14448 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14449 `terminal_input' / `terminal_output', not `terminal'.
14450
14451 2008-11-08 Robert Millan <rmh@aybabtu.com>
14452
14453 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14454 (DISTCLEANFILES): Add `build_env.mk'.
14455
14456 2008-11-08 Robert Millan <rmh@aybabtu.com>
14457
14458 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14459 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14460 members. Update all users.
14461 * util/console.c (grub_ncurses_term): Split in ...
14462 (grub_ncurses_term_input): ... this, and ...
14463 (grub_ncurses_term_output): ... this. Update all users.
14464 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14465
14466 2008-11-08 Robert Millan <rmh@aybabtu.com>
14467
14468 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14469 (PKGDATA): Add $(pkgdata_SRCDIR).
14470 (pkglib_BUILDDIR): New variable.
14471 (pkgdata_SRCDIR): New variable.
14472 (build_env.mk): New target.
14473 (include_DATA): New variable.
14474 (install-local): Install $(include_DATA) files in $(includedir).
14475
14476 2008-11-07 Pavel Roskin <proski@gnu.org>
14477
14478 * gendistlist.sh: Use C locale for sorting to ensure consistent
14479 output on all systems.
14480
14481 * util/grub.d/00_header.in: Remove incorrect space before
14482 "serial".
14483
14484 2008-11-07 Robert Millan <rmh@aybabtu.com>
14485
14486 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14487 per specification.
14488 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14489 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14490 (based on find_multi_boot1_header).
14491 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14492 using find_multi_boot2_header(), and abort if neither Multiboot or
14493 Multiboot headers were found.
14494
14495 2008-11-07 Robert Millan <rmh@aybabtu.com>
14496
14497 Modularize at_keyboard.mod:
14498
14499 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14500 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14501 (at_keyboard_mod_LDFLAGS): New variables.
14502
14503 Actual terminal split:
14504
14505 * include/grub/term.h (struct grub_term): Split in ...
14506 (struct grub_term_input): ... this, and ...
14507 (struct grub_term_output): ... this. Update all users.
14508 (grub_term_set_current): Split in ...
14509 (grub_term_set_current_input): ... this, and ...
14510 (grub_term_set_current_output): ... this.
14511 (grub_term_get_current): Split in ...
14512 (grub_term_get_current_input): ... this, and ...
14513 (grub_term_get_current_output): ... this.
14514 (grub_term_register): Split in ...
14515 (grub_term_register_input): ... this, and ...
14516 (grub_term_register_output): ... this.
14517 (grub_term_unregister): Split in ...
14518 (grub_term_unregister_input): ... this, and ...
14519 (grub_term_unregister_output): ... this.
14520 (grub_term_iterate): Split in ...
14521 (grub_term_iterate_input): ... this, and ...
14522 (grub_term_iterate_output): ... this.
14523
14524 * kern/term.c (grub_term_list): Split in ...
14525 (grub_term_list_input): ... this, and ...
14526 (grub_term_list_output): ... this. Update all users.
14527 (grub_cur_term): Split in ...
14528 (grub_cur_term_input): ... this, and ...
14529 (grub_cur_term_output): ... this. Update all users.
14530 (grub_term_set_current): Split in ...
14531 (grub_term_set_current_input): ... this, and ...
14532 (grub_term_set_current_output): ... this.
14533 (grub_term_get_current): Split in ...
14534 (grub_term_get_current_input): ... this, and ...
14535 (grub_term_get_current_output): ... this.
14536 (grub_term_register): Split in ...
14537 (grub_term_register_input): ... this, and ...
14538 (grub_term_register_output): ... this.
14539 (grub_term_unregister): Split in ...
14540 (grub_term_unregister_input): ... this, and ...
14541 (grub_term_unregister_output): ... this.
14542 (grub_term_iterate): Split in ...
14543 (grub_term_iterate_input): ... this, and ...
14544 (grub_term_iterate_output): ... this.
14545
14546 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14547 a check for input and one for output (and only attempt to get keys
14548 from user when input works).
14549
14550 * util/grub-probe.c (grub_term_get_current): Split in ...
14551 (grub_term_get_current_input): ... this, and ...
14552 (grub_term_get_current_output): ... this.
14553 * util/grub-fstest.c: Likewise.
14554 * util/i386/pc/grub-setup.c: Likewise.
14555 * util/grub-editenv.c: Likewise.
14556
14557 Portability adjustments:
14558
14559 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14560 `term/i386/pc/at_keyboard.c'.
14561 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14562 grub_keyboard_controller_init() (now handled by terminal .init).
14563 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14564 grub_at_keyboard_init().
14565 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14566 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14567 at_keyboard.mod via input terminal interface).
14568 * include/grub/i386/coreboot/console.h: Convert into a stub for
14569 `<grub/i386/pc/console.h>'.
14570
14571 Migrate full terminals to new API:
14572
14573 * term/efi/console.c (grub_console_term): Split into ...
14574 (grub_console_term_input): ... this, and ...
14575 (grub_console_term_output): ... this. Update all users.
14576 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14577 (grub_ofconsole_init): Split into ...
14578 (grub_ofconsole_init_input): ... this, and ...
14579 (grub_ofconsole_init_output): ... this.
14580 (grub_ofconsole_term): Split into ...
14581 (grub_ofconsole_term_input): ... this, and ...
14582 (grub_ofconsole_term_output): ... this. Update all users.
14583 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14584 (grub_serial_term_input): ... this, and ...
14585 (grub_serial_term_output): ... this. Update all users.
14586 * term/i386/pc/console.c (grub_console_term): Split into ...
14587 (grub_console_term_input): ... this, and ...
14588 (grub_console_term_output): ... this. Update all users.
14589 (grub_console_term_input): Only enable it on PC/BIOS platform.
14590 (grub_console_init): Remove grub_keyboard_controller_init() call.
14591
14592 Migrate input terminals to new API:
14593
14594 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14595 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14596 i386-specific anyway).
14597 (grub_console_checkkey): Rename to ...
14598 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14599 users.
14600 (grub_keyboard_controller_orig): New variable.
14601 (grub_console_getkey): Rename to ...
14602 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14603 users.
14604 (grub_keyboard_controller_init): Static-ize. Save original
14605 controller value so that it can be restored ...
14606 (grub_keyboard_controller_fini): ... here (new function).
14607 (grub_at_keyboard_term): New structure.
14608 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14609 functions.
14610
14611 Migrate output terminals to new API:
14612
14613 * term/i386/pc/vga.c (grub_vga_term): Change type to
14614 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14615 members. Update all users.
14616 * term/gfxterm.c (grub_video_term): Change type to
14617 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14618 members. Update all users.
14619 * include/grub/i386/pc/console.h (grub_console_checkkey)
14620 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14621 etc).
14622
14623 Migrate `terminal' command and userland tools to new API:
14624
14625 * commands/terminal.c (grub_cmd_terminal): Split into ...
14626 (grub_cmd_terminal_input): ... this, and ...
14627 (grub_cmd_terminal_output): ... this.
14628 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14629 `terminal_input' and `terminal_output'.
14630 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14631 `terminal_input' / `terminal_output' API.
14632 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14633 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14634 provided ${GRUB_TERMINAL}, convert it).
14635
14636 2008-11-04 Robert Millan <rmh@aybabtu.com>
14637
14638 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14639 for FreeBSD.
14640 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14641
14642 2008-11-03 Bean <bean123ch@gmail.com>
14643
14644 * kern/elf.c (grub_elf32_load): Revert to previous code.
14645 (grub_elf64_load): Likewise.
14646
14647 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14648
14649 2008-11-01 Robert Millan <rmh@aybabtu.com>
14650
14651 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14652 (TARGET_CPPFLAGS): Likewise.
14653 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14654
14655 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14656
14657 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14658
14659 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14660
14661 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14662 addition of objects until the code is not going to be able to fail.
14663
14664 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14665
14666 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14667 (add a missing NULL check, and correct them by moving the pointer
14668 operations after the actual check).
14669
14670 2008-10-29 Robert Millan <rmh@aybabtu.com>
14671
14672 * util/i386/pc/grub-install.in: Handle empty string as output from
14673 make_system_path_relative_to_its_root().
14674
14675 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14676
14677 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14678 circular metadata worst case scenario. If the metadata is circular
14679 then copy the wrap in place.
14680 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14681 project lib/format_text/layout.h
14682 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14683
14684 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14685
14686 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14687
14688 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14689
14690 * util/update-grub_lib.in: Mention filename in warning message.
14691
14692 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14693
14694 * NEWS: Update for rename of update-grub to grub-mkconfig.
14695
14696 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14697
14698 * util/update-grub_lib.in: Copy to ...
14699 * util/grub-mkconfig_lib.in: ... this. Update all users.
14700 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14701 * util/update-grub.in: Rename to ...
14702 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14703 option. Add `--output' option to allow users to specify the generated
14704 configuration file. Default to stdout.
14705 (update_grub_dir): Rename to ...
14706 (grub_mkconfig_dir): ... this.
14707 (grub_cfg): Default to an empty string.
14708 * conf/common.rmk (update-grub): Rename to ...
14709 (grub-mkconfig): ... this.
14710 (update-grub_lib): Copy to ...
14711 (grub-mkconfig_lib): ... this.
14712 (update-grub_SCRIPTS): Copy to ...
14713 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14714 (update-grub_DATA): Rename to ...
14715 (grub-mkconfig_DATA): ... this.
14716
14717 2008-09-28 Robert Millan <rmh@aybabtu.com>
14718
14719 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14720 to `modified'. Add the real `created' field.
14721 (grub_iso9660_uuid): Use `modified' rather than `created' for
14722 constructing the UUID.
14723
14724 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14725
14726 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14727 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14728
14729 2008-09-28 Bean <bean123ch@gmail.com>
14730
14731 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14732 Thanks to Christian Franke for finding this bug.
14733
14734 2008-09-25 Robert Millan <rmh@aybabtu.com>
14735
14736 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14737 instances of grub_util_get_disk_name() (see previous commit).
14738
14739 2008-09-25 Robert Millan <rmh@aybabtu.com>
14740
14741 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14742 `util/i386/get_disk_name.c'.
14743 * conf/i386-efi.rmk: Likewise.
14744 * conf/x86_64-efi.rmk: Likewise.
14745 * conf/i386-coreboot.rmk: Likewise.
14746 * conf/i386-ieee1275.rmk: Likewise.
14747 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14748 `util/ieee1275/get_disk_name.c'.
14749 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14750 * util/ieee1275/get_disk_name.c: Remove file.
14751 * util/i386/get_disk_name.c: Remove file.
14752 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14753 "hd%d" for device.map entries, rather than using
14754 grub_util_get_disk_name().
14755
14756 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14757
14758 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14759 warning.
14760 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14761
14762 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14763
14764 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14765 Changed to 0x5100.
14766 (GRUB_TERM_PPAGE): Changed to 0x4900.
14767
14768 2008-09-24 Robert Millan <rmh@aybabtu.com>
14769
14770 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14771 macros (they were i386-pc specific).
14772 * include/grub/sparc64/ieee1275/console.h: Likewise.
14773 * include/grub/efi/console.h: Likewise.
14774
14775 2008-09-22 Bean <bean123ch@gmail.com>
14776
14777 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14778 resident and in attribute list.
14779
14780 * include/grub/ntfs.h (BMP_LEN): Removed.
14781
14782 2008-09-22 Bean <bean123ch@gmail.com>
14783
14784 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
14785 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14786
14787 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14788 error occurs, as grub_disk_open will call grub_disk_close, which will
14789 call p->close (scsi).
14790
14791 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14792
14793 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14794 (AC_PREREQ): Bumped to 2.59.
14795 (AC_TRY_COMPILE): Replace obsolete macro with ...
14796 (AC_COMPILE_IFELSE): ... this.
14797 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14798 (AC_LINK_IFELSE): ... this.
14799
14800 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14801
14802 * autogen.sh: Add a call to `gendistlist.sh'.
14803
14804 2008-09-19 Christian Franke <franke@computer.org>
14805
14806 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14807 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14808 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14809 Export __enable_execute_stack() to modules.
14810 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14811 New function.
14812
14813 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14814
14815 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14816 Sort the list.
14817
14818 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14819
14820 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
14821 #include <grub/util/hostdisk.h>.
14822
14823 2008-09-08 Robert Millan <rmh@aybabtu.com>
14824
14825 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14826 segments when their filesz is zero (grub_file_read() interprets
14827 zero-size as "read until EOF", which results in memory corruption).
14828 Use `lowest_segment' rather than 0 for calculating the current
14829 segment load address.
14830
14831 2008-09-08 Robert Millan <rmh@aybabtu.com>
14832
14833 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14834 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14835 clobbered useful information.
14836
14837 2008-09-08 Robert Millan <rmh@aybabtu.com>
14838
14839 * include/grub/util/biosdisk.h: Move to ...
14840 * include/grub/util/hostdisk.h: ... here. Update all users.
14841 * util/biosdisk.c: Move to ...
14842 * util/hostdisk.c: ... here. Update all users.
14843
14844 2008-09-07 Robert Millan <rmh@aybabtu.com>
14845
14846 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14847 variables.
14848 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14849 and length can be stored directly in the `mbi->mmap_addr' and
14850 `mbi->mmap_length' struct fields.
14851
14852 2008-09-07 Robert Millan <rmh@aybabtu.com>
14853
14854 * conf/i386.rmk: New file. Provides declaration for building
14855 `cpuid.mod'.
14856 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14857 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14858 variables.
14859 Include `conf/i386.mk'.
14860 * conf/i386-efi.rmk: Likewise.
14861 * conf/x86_64-efi.rmk: Likewise.
14862 * conf/i386-coreboot.rmk: Likewise.
14863 * conf/i386-ieee1275.rmk: Likewise.
14864
14865 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14866
14867 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14868 Adds optimization support for BGR based modes.
14869
14870 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14871 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14872 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14873 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14874 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14875 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14876 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14877 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14878 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14879 (grub_video_i386_vbeblit_index_index): Likewise.
14880 (grub_video_i386_vbeblit_replace_directN): Added.
14881 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14882 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14883 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14884 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14885 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14886 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14887 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14888 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14889 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14890 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14891 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14892 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14893 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14894
14895 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14896 (grub_video_i386_vbefill_R8G8B8): Likewise.
14897 (grub_video_i386_vbefill_index): Likewise.
14898 (grub_video_i386_vbefill_direct32): Added.
14899 (grub_video_i386_vbefill_direct24): Likewise.
14900 (grub_video_i386_vbefill_direct16): Likewise.
14901 (grub_video_i386_vbefill_direct8): Likewise.
14902
14903 * include/grub/video.h (grub_video_blit_format): Removed
14904 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14905 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14906 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14907 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14908 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
14909
14910 * video/video.c (grub_video_get_blit_format): Updated to use new
14911 blit formats. Added handling for 16 bit color modes.
14912
14913 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
14914 fillers.
14915 (common_blitter): Updated to use new blitters.
14916
14917 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14918 Removed.
14919 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14920 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14921 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14922 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14923 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14924 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14925 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14926 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14927 (grub_video_i386_vbeblit_index_index): Likewise.
14928 (grub_video_i386_vbeblit_replace_directN): Added.
14929 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14930 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14931 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14932 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14933 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14934 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14935 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14936 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14937 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14938 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14939 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14940 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14941 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14942
14943 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14944 (grub_video_i386_vbefill_R8G8B8): Likewise.
14945 (grub_video_i386_vbefill_index): Likewise.
14946 (grub_video_i386_vbefill_direct32): Added.
14947 (grub_video_i386_vbefill_direct24): Likewise.
14948 (grub_video_i386_vbefill_direct16): Likewise.
14949 (grub_video_i386_vbefill_direct8): Likewise.
14950
14951 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
14952 types.
14953
14954 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
14955 types.
14956
14957 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
14958 blitter types.
14959
14960 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
14961 types.
14962
14963 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14964
14965 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
14966 RAID level 1.
14967
14968 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14969
14970 * fs/iso9660.c (grub_iso9660_date): New structure.
14971 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
14972 (grub_iso9660_uuid): New function.
14973
14974 2008-09-05 Bean <bean123ch@gmail.com>
14975
14976 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
14977
14978 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
14979 insensitive bit for names in Win32 and Win32 & DOS namespace.
14980
14981 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
14982
14983 * include/grub/types.h (LONG_MAX): Likewise.
14984
14985 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14986
14987 * util/getroot.c: Include <config.h>.
14988 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
14989 add support for /dev/md/N devices and handle LVM double dash escaping.
14990
14991 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14992
14993 * config.guess: Update to latest version from config git.
14994 * config.sub: Likewise.
14995
14996 2008-09-03 Robert Millan <rmh@aybabtu.com>
14997
14998 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
14999 `disk->total_sectors'.
15000
15001 2008-09-01 Colin D Bennett <colin@gibibit.com>
15002
15003 * include/grub/normal.h: Fixed incorrect comment for
15004 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15005
15006 2008-09-01 Colin D Bennett <colin@gibibit.com>
15007
15008 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15009 values with defines.
15010
15011 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15012 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15013 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15014 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15015 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15016 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15017 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15018 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15019 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15020 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15021 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15022 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15023 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15024 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15025 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15026 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15027 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15028 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15029 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15030
15031 2008-08-31 Robert Millan <rmh@aybabtu.com>
15032
15033 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15034 declaration.
15035 (grub_multiboot): Fix a few warnings.
15036
15037 2008-08-31 Robert Millan <rmh@aybabtu.com>
15038
15039 * loader/i386/pc/multiboot.c: Update comment not to say that
15040 boot_device support is unimplemented.
15041
15042 2008-08-31 Robert Millan <rmh@aybabtu.com>
15043
15044 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15045 or memory map support are unimplemented.
15046
15047 2008-08-31 Colin D Bennett <colin@gibibit.com>
15048
15049 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15050
15051 2008-08-31 Colin D Bennett <colin@gibibit.com>
15052
15053 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15054 total video memory in 'vbeinfo' output; show color format details for
15055 each video mode.
15056
15057 2008-08-30 Pavel Roskin <proski@gnu.org>
15058
15059 * util/genmoddep.c: Remove for real this time.
15060 * DISTLIST: Remove util/genmoddep.c.
15061
15062 2008-08-30 Robert Millan <rmh@aybabtu.com>
15063
15064 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15065 as required by Multiboot spec (it was already 4-byte aligned, but
15066 only by chance).
15067
15068 2008-08-29 Pavel Roskin <proski@gnu.org>
15069
15070 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15071 * kern/powerpc/ieee1275/startup.S: ... this.
15072 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15073 * DISTLIST: Likewise.
15074
15075 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15076 grub/cpu/kernel.h. Add start label for consistency with other
15077 platforms. Add grub_prefix immediately after start. Add jump
15078 to the code after grub_prefix.
15079 * include/grub/powerpc/kernel.h: Provide valid values for
15080 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15081
15082 2008-08-29 Bean <bean123ch@gmail.com>
15083
15084 * configure.ac: Change host_os to cygwin for mingw.
15085 (asprintf): New check for function.
15086
15087 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15088 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15089
15090 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15091 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15092 sync, sleep and grub_util_get_disk_size for mingw.
15093
15094 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15095 to get size in mingw.
15096 (open_device): Use flag O_BINARY if it's defined.
15097 (find_root_device): Add dummy code for mingw.
15098
15099 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15100 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15101 (get_scsi_disk_name): Return 0 for mingw.
15102
15103 * util/hostfs.c: #include <grub/util/misc.h>.
15104 (grub_hostfs_open): Use "rb" flag to open file, use
15105 grub_util_get_disk_size to get disk size for mingw.
15106
15107 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15108 (asprintf): New function if HAVE_ASPRINTF is not set.
15109 (sync): New function for mingw.
15110 (sleep): Likewise.
15111 (grub_util_get_disk_size): Likewise.
15112
15113 2008-08-28 Pavel Roskin <proski@gnu.org>
15114
15115 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15116 kern/time.c.
15117
15118 2008-08-28 Robert Millan <rmh@aybabtu.com>
15119
15120 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15121
15122 2008-08-28 Robert Millan <rmh@aybabtu.com>
15123
15124 Change find_grub_drive() syntax so it doesn't prevent it from
15125 detecting NULL names as errors.
15126
15127 * util/biosdisk.c (find_grub_drive): Move free slot search code
15128 from here ...
15129 (find_free_slot): ... to here.
15130 (read_device_map): Use find_free_slot() to search for free slots.
15131
15132 2008-08-27 Marco Gerards <marco@gnu.org>
15133
15134 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15135 (scsi_mod_SOURCES): New variable.
15136 (scsi_mod_CFLAGS): Likewise
15137 (scsi_mod_LDFLAGS): Likewise.
15138
15139 * disk/scsi.c: New file.
15140
15141 * include/grub/scsi.h: Likewise.
15142
15143 * include/grub/scsicmd.h: Likewise.
15144
15145 * disk/ata.c: Include <grub/scsi.h>.
15146 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15147 instead.
15148 (grub_ata_iterate): Skip ATAPI devices.
15149 (grub_ata_open): Only handle ATAPI devices.
15150 (struct grub_atapi_read): Removed.
15151 (grub_atapi_readsector): Likewise.
15152 (grub_ata_read): No longer handle ATAPI devices.
15153 (grub_ata_write): Likewise.
15154 (grub_atapi_iterate): New function.
15155 (grub_atapi_read): Likewise.
15156 (grub_atapi_write): Likewise.
15157 (grub_atapi_open): Likewise.
15158 (grub_atapi_close): Likewise.
15159 (grub_atapi_dev): New variable.
15160 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15161 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15162
15163 * include/grub/disk.h (enum grub_disk_dev_id): Add
15164 `GRUB_DISK_DEVICE_SCSI_ID'.
15165
15166 2008-08-26 Robert Millan <rmh@aybabtu.com>
15167
15168 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15169 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15170 descriptive.
15171
15172 2008-08-23 Bean <bean123ch@gmail.com>
15173
15174 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15175 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15176 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15177 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15178 dm_nv.mod.
15179 (raid5rec_mod_SOURCES): New macro.
15180 (raid5rec_mod_CFLAGS): Likewise.
15181 (raid5rec_mod_LDFLAGS): Likewise.
15182 (raid6rec_mod_SOURCES): Likewise.
15183 (raid6rec_mod_CFLAGS): Likewise.
15184 (raid6rec_mod_LDFLAGS): Likewise.
15185 (mdraid_mod_SOURCES): Likewise.
15186 (mdraid_mod_CFLAGS): Likewise.
15187 (mdraid_mod_LDFLAGS): Likewise.
15188 (dm_nv_mod_SOURCES): Likewise.
15189 (dm_nv_mod_CFLAGS): Likewise.
15190 (dm_nv_mod_LDFLAGS): Likewise.
15191
15192 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15193 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15194 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15195
15196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15197 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15198
15199 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15200
15201 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15202
15203 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15204
15205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15206
15207 * disk/raid5_recover.c: New file.
15208
15209 * disk/raid6_recover.c: Likewise.
15210
15211 * disk/mdraid_linux.c: Likewise.
15212
15213 * disk/dmraid_nvidia.c: Likewise.
15214
15215 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15216 ULONG_MAX.
15217
15218 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15219 calculate the size of raid device.
15220 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15221 different layout of raid5.
15222 (grub_raid_scan_device): Remove code specific to mdraid.
15223 (grub_raid_list): New variable.
15224 (free_array): New function.
15225 (grub_raid_register): Likewise.
15226 (grub_raid_unregister): Likewise.
15227 (grub_raid_rescan): Likewise.
15228 (GRUB_MOD_INIT): Don't iterate device here.
15229 (GRUB_MOD_FINI): Use free_array to release resource.
15230
15231 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15232 (grub_raid5_recover_func_t): New function variable type.
15233 (grub_raid6_recover_func_t): Likewise.
15234 (grub_raid5_recover_func): New variable.
15235 (grub_raid6_recover_func): Likewise.
15236 (grub_raid_register): New function.
15237 (grub_raid_unregister): Likewise.
15238 (grub_raid_rescan): Likewise.
15239 (grub_raid_block_xor): Likewise.
15240
15241 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15242 (CMD_CRC): New macro.
15243 (part): Removed.
15244 (read_file): Handle device as well as file.
15245 (cmd_crc): New function.
15246 (fstest): Handle multiple disks.
15247 (options): Remove part, raw and long, add root and diskcount.
15248 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15249 (main): Find the first non option entry and ignore subsequent options,
15250 add handling for the new options, support multiple disks.
15251
15252 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15253
15254 2008-08-23 Bean <bean123ch@gmail.com>
15255
15256 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15257
15258 * genfslist.sh: Ignore kernel.mod.
15259
15260 * genpartmaplist.sh: Likewise.
15261
15262 2008-08-23 Robert Millan <rmh@aybabtu.com>
15263
15264 * util/getroot.c (find_root_device): Skip anything that starts with
15265 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15266
15267 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15268
15269 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15270 * util/grub.d/00_header.in: Allow the administrator to change default
15271 gfxmode via ${GRUB_GFXMODE}.
15272
15273 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15274
15275 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15276
15277 2008-08-21 Robert Millan <rmh@aybabtu.com>
15278
15279 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15280 loader.
15281 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15282 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15283
15284 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15285
15286 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15287 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15288
15289 2008-08-19 Robert Millan <rmh@aybabtu.com>
15290
15291 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15292 (struct grub_virtual_screen): Remove `cursor_color'.
15293 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15294 initialization.
15295 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15296
15297 2008-08-18 Robert Millan <rmh@aybabtu.com>
15298
15299 Unify (identical) linux_normal.c files.
15300 * loader/i386/efi/linux_normal.c: Move from here ...
15301 * loader/linux_normal.c: ... to here. Update all users.
15302 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15303 * loader/i386/ieee1275/linux_normal.c: Likewise.
15304
15305 2008-08-18 Robert Millan <rmh@aybabtu.com>
15306
15307 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15308 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15309 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15310 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15311 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15312 New macros.
15313 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15314 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15315 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15316 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15317 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15318 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15319 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15320 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15321 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15322 portably using grub_getxy().
15323 Replace `-EFI' with `-bzImage' in boot message.
15324
15325 2008-08-17 Robert Millan <rmh@aybabtu.com>
15326
15327 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15328
15329 2008-08-17 Robert Millan <rmh@aybabtu.com>
15330
15331 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15332
15333 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15334 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15335 (grub_machine_mmap_iterate): New function declaration.
15336 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15337 structure.
15338 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15339 macros.
15340
15341 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15342 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15343 Move e820 parsing from here ...
15344 * kern/i386/pc/mmap.c: New file.
15345 (grub_machine_mmap_iterate): ... to here.
15346
15347 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15348 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15349 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15350 (grub_available_iterate): Redeclare to return `void', and redeclare
15351 its hook to use grub_uint64_t as addr and size parameters, and rename
15352 to ...
15353 (grub_machine_mmap_iterate): ... this. Update all users.
15354
15355 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15356 to make it more readable. Rename to ...
15357 (grub_machine_mmap_iterate): ... this.
15358
15359 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15360 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15361 (grub_multiboot): Allocate an extra region after the payload, and fill
15362 it with a Multiboot memory map. Adjust a.out loader to calculate size
15363 with the extra space.
15364 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15365 with the extra space.
15366
15367 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15368
15369 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15370
15371 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15372
15373 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15374 mdate-sh to the list `find' searches for.
15375 * DISTLIST: Regenerated.
15376
15377 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15378
15379 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15380 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15381 genmoddep.awk, gensymlist.sh.in.
15382 (DISTDIRS): Add bus, docs, hook, lib.
15383 * DISTLIST: Regenerated.
15384 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15385
15386 2008-08-16 Robert Millan <rmh@aybabtu.com>
15387
15388 * disk/raid.c (grub_raid_init): Handle/report errors set by
15389 grub_device_iterate().
15390 * disk/lvm.c (grub_lvm_init): Likewise.
15391
15392 2008-08-15 Bean <bean123ch@gmail.com>
15393
15394 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15395 and datehook.mod.
15396 (datetime_mod_SOURCES): New macro.
15397 (datetime_mod_CFLAGS): Likewise.
15398 (datetime_mod_LDFLAGS): Likewise.
15399 (date_mod_SOURCES): Likewise.
15400 (date_mod_CFLAGS): Likewise.
15401 (date_mod_LDFLAGS): Likewise.
15402 (datehook_mod_SOURCES): Likewise.
15403 (datehook_mod_CFLAGS): Likewise.
15404 (datehook_mod_LDFLAGS): Likewise.
15405
15406 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15407 and datehook.mod.
15408 (datetime_mod_SOURCES): New macro.
15409 (datetime_mod_CFLAGS): Likewise.
15410 (datetime_mod_LDFLAGS): Likewise.
15411 (date_mod_SOURCES): Likewise.
15412 (date_mod_CFLAGS): Likewise.
15413 (date_mod_LDFLAGS): Likewise.
15414 (datehook_mod_SOURCES): Likewise.
15415 (datehook_mod_CFLAGS): Likewise.
15416 (datehook_mod_LDFLAGS): Likewise.
15417
15418 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15419 and datehook.mod.
15420 (datetime_mod_SOURCES): New macro.
15421 (datetime_mod_CFLAGS): Likewise.
15422 (datetime_mod_LDFLAGS): Likewise.
15423 (date_mod_SOURCES): Likewise.
15424 (date_mod_CFLAGS): Likewise.
15425 (date_mod_LDFLAGS): Likewise.
15426 (datehook_mod_SOURCES): Likewise.
15427 (datehook_mod_CFLAGS): Likewise.
15428 (datehook_mod_LDFLAGS): Likewise.
15429
15430 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15431 and datehook.mod.
15432 (datetime_mod_SOURCES): New macro.
15433 (datetime_mod_CFLAGS): Likewise.
15434 (datetime_mod_LDFLAGS): Likewise.
15435 (date_mod_SOURCES): Likewise.
15436 (date_mod_CFLAGS): Likewise.
15437 (date_mod_LDFLAGS): Likewise.
15438 (datehook_mod_SOURCES): Likewise.
15439 (datehook_mod_CFLAGS): Likewise.
15440 (datehook_mod_LDFLAGS): Likewise.
15441
15442 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15443 and datehook.mod.
15444 (datetime_mod_SOURCES): New macro.
15445 (datetime_mod_CFLAGS): Likewise.
15446 (datetime_mod_LDFLAGS): Likewise.
15447 (date_mod_SOURCES): Likewise.
15448 (date_mod_CFLAGS): Likewise.
15449 (date_mod_LDFLAGS): Likewise.
15450 (datehook_mod_SOURCES): Likewise.
15451 (datehook_mod_CFLAGS): Likewise.
15452 (datehook_mod_LDFLAGS): Likewise.
15453
15454 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15455
15456 * commands/date.c: New file.
15457
15458 * hook/datehook.c: Likewise.
15459
15460 * include/grub/lib/datetime.h: Likewise.
15461
15462 * include/grub/i386/cmos.h: Likewise.
15463
15464 * lib/datetime.c: Likewise.
15465
15466 * lib/i386/datetime.c: Likewise.
15467
15468 * lib/efi/datetime.c: Likewise.
15469
15470 2008-08-14 Robert Millan <rmh@aybabtu.com>
15471
15472 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15473 (grub_mkelfimage_SOURCES): New variable.
15474 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15475
15476 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15477 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15478 * conf/powerpc-ieee1275.rmk: Likewise.
15479 * conf/i386-ieee1275.rmk: Likewise.
15480
15481 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15482 * kern/i386/coreboot/init.c: Likewise.
15483
15484 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15485 with `<grub/cpu/kernel.h>'.
15486 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15487 to ...
15488 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15489 * kern/i386/coreboot/startup.S: Likewise.
15490
15491 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15492 (GRUB_MOD_GAP): Remove.
15493 * include/grub/powerpc/kernel.h: New file.
15494 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15495 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15496 * include/grub/i386/kernel.h: New file.
15497 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15498 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15499 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15500
15501 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15502 `grub-mkelfimage'.
15503 Use --directory when invoking grub_mkimage.
15504
15505 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15506 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15507 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15508 and GRUB_KERNEL_CPU_PREFIX.
15509
15510 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15511
15512 * include/grub/err.h (grub_err_printf): New function prototype.
15513 * util/misc.c (grub_err_printf): New function.
15514 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15515 grub_printf.
15516 * kern/err.c (grub_print_error): Use grub_err_printf.
15517
15518 2008-08-13 Robert Millan <rmh@aybabtu.com>
15519
15520 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15521
15522 2008-08-13 Robert Millan <rmh@aybabtu.com>
15523
15524 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15525 boot entry.
15526
15527 2008-08-12 Robert Millan <rmh@aybabtu.com>
15528
15529 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15530 of the relocation code from here ...
15531 (grub_multiboot): ... to here.
15532 (forward_relocator, backward_relocator): Move from here ...
15533 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15534 (grub_multiboot_backward_relocator): ... to here.
15535 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15536 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15537 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15538 (grub_multiboot_forward_relocator_end)
15539 (grub_multiboot_backward_relocator)
15540 (grub_multiboot_backward_relocator_end): New variables.
15541
15542 2008-08-12 Bean <bean123ch@gmail.com>
15543
15544 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15545
15546 2008-08-11 Robert Millan <rmh@aybabtu.com>
15547
15548 * kern/i386/linuxbios/startup.S: Move from here ...
15549 * kern/i386/coreboot/startup.S: ... to here.
15550
15551 * kern/i386/linuxbios/init.c: Move from here ...
15552 * kern/i386/coreboot/init.c: ... to here.
15553
15554 * kern/i386/linuxbios/table.c: Move from here ...
15555 * kern/i386/coreboot/mmap.c: ... to here.
15556
15557 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15558
15559 2008-08-11 Robert Millan <rmh@aybabtu.com>
15560
15561 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15562 errors. Leave it to the upper layer to handle them.
15563
15564 2008-08-09 Christian Franke <franke@computer.org>
15565
15566 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15567 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15568 Install `grub.d/10_windows' only on Cygwin.
15569 * configure.ac: Add subst of `target_os'.
15570 Check `target_os' also before setting TARGET_OBJ2ELF.
15571 Add `--enable-grub-pe2elf'.
15572
15573 2008-08-08 Robert Millan <rmh@aybabtu.com>
15574
15575 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15576 (grub_last_time): Change type to grub_uint64_t.
15577 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15578 (grub_disk_close): Likewise.
15579
15580 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15581 (run_menu): Migrate code from to using grub_get_time_ms().
15582
15583 * util/misc.c (grub_get_time_ms): New function.
15584
15585 2008-08-08 Marco Gerards <marco@gnu.org>
15586
15587 * disk/ata.c (grub_ata_regget): Change return type to
15588 `grub_uint8_t'.
15589 (grub_ata_regget2): Likewise.
15590 (grub_ata_wait_status): New function.
15591 (grub_ata_wait_busy): Removed function, updated all users to use
15592 `grub_ata_wait_status'.
15593 (grub_ata_wait_drq): Likewise.
15594 (grub_ata_cmd): New function.
15595 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15596 error handling.
15597 (grub_ata_pio_write): Add error handling.
15598 (grub_atapi_identify): Likewise.
15599 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15600 handling.
15601 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15602 handling. Actually use the detected registers. Reorder the
15603 detection logic such that it is easier to read.
15604 (grub_ata_pciinit): Do not assign the same ID to each controller.
15605 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15606 handling.
15607 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15608
15609 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15610
15611 2008-08-08 Marco Gerards <marco@gnu.org>
15612
15613 * NEWS: Update.
15614
15615 2008-08-07 Bean <bean123ch@gmail.com>
15616
15617 * include/grub/x86_64/pci.h: New file.
15618
15619 2008-08-07 Christian Franke <franke@computer.org>
15620
15621 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15622 (TIMER2_GATE): Likewise.
15623 (grub_pit_wait): Add enable/disable of the timer2 gate
15624 bit of port 0x61. This fixes a possible infinite loop.
15625
15626 2008-08-07 Bean <bean123ch@gmail.com>
15627
15628 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15629 kern/i386/tsc.c and kern/i386/pit.c.
15630
15631 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15632 x86_64 platform.
15633
15634 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15635 <grub/i386/tsc.h>.
15636
15637 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15638
15639 2008-08-07 Bean <bean123ch@gmail.com>
15640
15641 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15642
15643 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15644
15645 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15646 multiple inclusion. Add #include <grub/types.h>.
15647
15648 2008-08-06 Christian Franke <franke@computer.org>
15649
15650 * conf/common.rmk: Build and install `10_windows'.
15651 * util/grub.d/10_windows.in: New script.
15652
15653 2008-08-06 Pavel Roskin <proski@gnu.org>
15654
15655 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15656
15657 2008-08-06 Robert Millan <rmh@aybabtu.com>
15658
15659 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15660 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15661
15662 2008-08-06 Bean <bean123ch@gmail.com>
15663
15664 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15665 (grub_pxefs_fs_int): Remove dummy definition.
15666 (grub_pxefs_open): Use data->block_size to store the current block
15667 size setting.
15668 (grub_pxefs_read): Use block size stored in data->block_size. As the
15669 value of grub_pxe_blksize can be changed after the file is opened.
15670
15671 2008-08-06 Bean <bean123ch@gmail.com>
15672
15673 * fs/i386/pc/pxe.c (curr_file): new variable.
15674 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15675 require the dummy internal file system anymore.
15676 (grub_pxefs_read): Removed.
15677 (grub_pxefs_close): Likewise.
15678 (grub_pxefs_fs_int): Likewise.
15679 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15680 connection when we switch file.
15681 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15682
15683 2008-08-06 Robert Millan <rmh@aybabtu.com>
15684
15685 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15686 `halt.mod'.
15687 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15688 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15689
15690 * kern/i386/halt.c: New file.
15691 * kern/i386/reboot.c: Likewise.
15692 * include/grub/i386/reboot.h: Likewise.
15693 * include/grub/i386/halt.h: Likewise.
15694
15695 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15696 Include `<grub/cpu/halt.h>'.
15697 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15698 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15699
15700 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15701 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15702 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15703 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15704 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15705 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15706 from here ...
15707 * include/grub/i386/at_keyboard.h: ... to here.
15708
15709 2008-08-05 Robert Millan <rmh@aybabtu.com>
15710
15711 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15712 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15713 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15714 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15715 `kern/generic/millisleep.c'.
15716
15717 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15718 instead of grub_get_rtc().
15719 (grub_tsc_init): Initialize `tsc_boot_time'.
15720
15721 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15722 (grub_machine_init): Use grub_tsc_init() rather than
15723 installing an RTC-based handler via grub_install_get_time_ms().
15724
15725 * kern/i386/pit.c: New file.
15726 * include/grub/i386/pit.h: Likewise.
15727
15728 2008-08-05 Bean <bean123ch@gmail.com>
15729
15730 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15731
15732 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15733 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15734 (pxe_mod_SOURCES): New macro.
15735 (pxe_mod_CFLAGS): Likewise.
15736 (pxe_mod_LDFLAGS): Likewise.
15737 (pxecmd_mod_SOURCES): Likewise.
15738 (pxecmd_mod_CFLAGS): Likewise.
15739 (pxecmd_mod_LDFLAGS): Likewise.
15740
15741 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15742 (grub_pxe_call): Likewise.
15743
15744 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15745
15746 * commands/i386/pc/pxecmd.c: New file.
15747
15748 * fs/i386/pc/pxe.c: Likewise.
15749
15750 * include/grub/i386/pc/pxe.h: Likewise.
15751
15752 2008-08-05 Bean <bean123ch@gmail.com>
15753
15754 * util/console.c (grub_console_cur_color): New variable.
15755 (grub_console_standard_color): Likewise.
15756 (grub_console_normal_color): Likewise.
15757 (grub_console_highlight_color): Likewise.
15758 (color_map): Likewise.
15759 (use_color): Likewise.
15760 (NUM_COLORS): New macro.
15761 (grub_ncurses_setcolorstate): Handle color properly.
15762 (grub_ncurses_setcolor): Don't change color here, just remember the
15763 settings, color will be set in grub_ncurses_setcolorstate.
15764 (grub_ncurses_getcolor): New function.
15765 (grub_ncurses_init): Initialize color pairs.
15766 (grub_ncurses_term): New member grub_ncurses_getcolor.
15767
15768 2008-08-05 Colin D Bennett <colin@gibibit.com>
15769
15770 High resolution timer support. Implemented for x86 CPUs using TSC.
15771 Extracted generic grub_millisleep() so it's linked in only as needed.
15772 This requires a Pentium compatible CPU; if the RDTSC instruction is
15773 not supported, then it falls back on the generic grub_get_time_ms()
15774 implementation that uses the machine's RTC.
15775
15776 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15777 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15778 `kern/generic/millisleep.c'.
15779
15780 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15781 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15782
15783 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15784 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15785
15786 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15787
15788 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15789 `kern/generic/millisleep.c'.
15790
15791 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15792
15793 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15794
15795 * kern/generic/rtc_get_time_ms.c: New file.
15796
15797 * kern/generic/millisleep.c: New file.
15798
15799 * kern/misc.c: Don't include
15800 <kern/time.h> anymore.
15801 (grub_millisleep_generic): Removed.
15802
15803 * commands/sleep.c (grub_interruptible_millisleep): Uses
15804 grub_get_time_ms() instead of grub_get_rtc().
15805
15806 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15807 function.
15808 (grub_cpu_is_cpuid_supported): New inline function.
15809 (grub_cpu_is_tsc_supported): New inline function.
15810 (grub_tsc_init): New function prototype.
15811 (grub_tsc_get_time_ms): New function prototype.
15812
15813 * kern/i386/tsc.c (grub_get_time_ms): New file.
15814
15815 * include/grub/time.h: Include <grub/types.h.
15816 (grub_millisleep_generic): Removed.
15817 (grub_get_time_ms): New prototype.
15818 (grub_install_get_time_ms): New prototype.
15819 (grub_rtc_get_time_ms): New prototype.
15820
15821 * kern/time.c (grub_get_time_ms): New function.
15822 (grub_install_get_time_ms): New function.
15823
15824 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15825 <grub/time.h> anymore.
15826 (grub_millisleep): Removed.
15827 (grub_machine_init): Call grub_tsc_init.
15828
15829 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15830 get_time_ms() implementation.
15831
15832 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15833 (ieee1275_get_time_ms): New function.
15834 (grub_machine_init): Install get_time_ms() implementation.
15835
15836 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15837 (grub_machine_init): Call grub_tsc_init().
15838 (grub_millisleep): Removed.
15839
15840 * kern/ieee1275/init.c (grub_millisleep): Removed.
15841 (grub_machine_init): Install ieee1275_get_time_ms()
15842 implementation.
15843 (ieee1275_get_time_ms): New function.
15844 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15845 real work.
15846
15847 2008-08-05 Marco Gerards <marco@gnu.org>
15848
15849 * disk/ata.c: Include <grub/pci.h>.
15850 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15851 (grub_ata_initialize): Rewritten.
15852 (grub_ata_device_initialize): New function.
15853
15854 2008-08-04 Pavel Roskin <proski@gnu.org>
15855
15856 * kern/main.c: Include grub/mm.h.
15857
15858 2008-08-04 Robert Millan <rmh@aybabtu.com>
15859
15860 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15861 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15862 corruption problem).
15863
15864 2008-08-04 Robert Millan <rmh@aybabtu.com>
15865
15866 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15867 warnings introduced in my last commit.
15868
15869 2008-08-03 Robert Millan <rmh@aybabtu.com>
15870
15871 Make PCI available on all i386 architectures.
15872
15873 * include/grub/i386/pc/pci.h: Move from here ...
15874 * include/grub/i386/pci.h: ... to here.
15875
15876 * include/grub/i386/pc/pci.h: Remove.
15877 * include/grub/i386/efi/pci.h: Remove.
15878 * include/grub/x86_64/efi/pci.h: Remove.
15879
15880 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15881 `<grub/cpu/pci.h>'.
15882
15883 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15884 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15885 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15886
15887 * conf/i386-ieee1275.rmk: Likewise.
15888
15889 2008-08-03 Robert Millan <rmh@aybabtu.com>
15890
15891 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15892 (grub_console_setcursor): Make it possible to set cursor off.
15893
15894 2008-08-03 Robert Millan <rmh@aybabtu.com>
15895
15896 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15897 of modules instead of assuming which platform provides what.
15898 * util/update-grub.in: Likewise.
15899
15900 2008-08-03 Robert Millan <rmh@aybabtu.com>
15901
15902 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15903 instead of `grub_install_dos_part' to determine whether a drive needs
15904 to be prepended to prefix (`grub_install_dos_part' is not reliable,
15905 because it can be overridden when loading GRUB via Multiboot).
15906
15907 2008-08-02 Robert Millan <rmh@aybabtu.com>
15908
15909 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15910
15911 2008-08-02 Robert Millan <rmh@aybabtu.com>
15912
15913 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15914 of informational grub_dprintf() calls.
15915
15916 2008-08-02 Robert Millan <rmh@aybabtu.com>
15917
15918 * disk/memdisk.c (memdisk_size): Don't initialize.
15919 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15920
15921 * include/grub/i386/pc/kernel.h
15922 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15923 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15924 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15925 (grub_arch_memdisk_size): Remove.
15926
15927 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15928 field (was only used to transfer a constant). Add `type' field to
15929 support multiple module types.
15930 (grub_module_iterate): New function.
15931
15932 * kern/device.c (grub_device_open): Do not hide error messages
15933 when grub_disk_open() fails. Use grub_print_error() instead.
15934
15935 * kern/i386/pc/init.c (grub_arch_modules_addr)
15936 (grub_arch_memdisk_size): Remove functions.
15937 (grub_arch_modules_addr): Return the module address in high memory
15938 (now that it isn't copied anymore).
15939
15940 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15941 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15942 decompression routine (grub_total_module_size already includes that
15943 now). Don't copy modules back to low memory.
15944
15945 * kern/main.c: Include `<grub/mm.h>'.
15946 (grub_load_modules): Split out (and use) ...
15947 (grub_module_iterate): ... this function, which iterates through
15948 module objects and runs a hook.
15949 Comment out grub_mm_init_region() call, as it would cause non-ELF
15950 modules to be overwritten.
15951
15952 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
15953 the memdisk image in its own region, make it part of the module list.
15954 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
15955 (main): Parse --memdisk|-m option, and pass user-provided path as
15956 parameter to generate_image().
15957 (add_segments): Pass `memdisk_path' down to load_modules().
15958 (load_modules): Embed memdisk image in module section when requested.
15959 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
15960 `header.type' instead of `header.offset'.
15961
15962 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
15963 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
15964 (memdisk_mod_LDFLAGS): New variables.
15965 * conf/i386-coreboot.rmk: Likewise.
15966 * conf/i386-ieee1275.rmk: Likewise.
15967
15968 2008-08-02 Robert Millan <rmh@aybabtu.com>
15969
15970 * loader/i386/pc/multiboot.c (playground, forward_relocator)
15971 (backward_relocator): New variables. Used to allocate and relocate
15972 the payload, respectively.
15973 (grub_multiboot_load_elf32): Load into heap instead of requested
15974 address, install the appropriate relocator code in each bound of
15975 the payload, and set the entry point such that
15976 grub_multiboot_real_boot() will jump to one of them.
15977
15978 * kern/i386/loader.S (grub_multiboot_payload_size)
15979 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15980 (grub_multiboot_payload_entry_offset): New variables.
15981 (grub_multiboot_real_boot): Set cpu context to what the relocator
15982 expects, and jump to the relocator instead of the payload.
15983
15984 * include/grub/i386/loader.h (grub_multiboot_payload_size)
15985 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15986 (grub_multiboot_payload_entry_offset): Export.
15987
15988 2008-08-01 Bean <bean123ch@gmail.com>
15989
15990 * normal/menu_entry.c (editor_getline): Don't return the original
15991 string as result, as it will be released by lexer once it has done
15992 using it.
15993
15994 2008-08-01 Robert Millan <rmh@aybabtu.com>
15995
15996 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
15997 within menuentries, not before them.
15998 util/grub.d/10_hurd.in: Likewise.
15999
16000 2008-08-01 Bean <bean123ch@gmail.com>
16001
16002 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16003 (bufio_mod_SOURCES): New macro.
16004 (bufio_mod_CFLAGS): Likewise.
16005 (bufio_mod_LDFLAGS): Likewise.
16006
16007 * include/grub/bufio.h: New file.
16008
16009 * io/bufio.c: Likewise.
16010
16011 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16012 (grub_video_reader_png): Use grub_buffile_open to open file.
16013
16014 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16015 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16016
16017 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16018 (grub_video_reader_tga): Use grub_buffile_open to open file.
16019
16020 * font/manager.c: Include <grub/bufio.h>.
16021 (add_font): Use grub_buffile_open to open file.
16022
16023 2008-07-31 Robert Millan <rmh@aybabtu.com>
16024
16025 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16026 ELF segments, use a macro for arbitrarily accessing any of them instead
16027 of preparing a pointer that allows access to one at a time.
16028 (grub_multiboot_load_elf64): Likewise.
16029
16030 2008-07-31 Bean <bean123ch@gmail.com>
16031
16032 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16033 GRUB_KERNEL_MACHINE_DATA_END.
16034
16035 2008-07-30 Robert Millan <rmh@aybabtu.com>
16036
16037 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16038 Increase from 0x50 to 0x60.
16039 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16040 use UUIDs to identify the root drive for them. If that's not
16041 possible, abort.
16042 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16043 check, for cross-disk installs.
16044
16045 2008-07-30 Robert Millan <rmh@aybabtu.com>
16046
16047 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16048 is non-empty, use it to set the `prefix' environment variable instead
16049 of the usual approach.
16050 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16051 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16052 environment variable instead of dummy make_install_device().
16053
16054 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16055 (start): Insert a data section, with `grub_prefix' variable.
16056 * kern/i386/linuxbios/startup.S: Likewise.
16057
16058 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16059 New variable reference.
16060 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16061 New macro. Defines offset of `grub_prefix' within startup.S (relative
16062 to `start').
16063 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16064 section within startup.S (relative to `start').
16065 * include/grub/i386/coreboot/kernel.h: Likewise.
16066
16067 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16068 Overwrite grub_prefix with its contents, at the beginning of the
16069 first segment.
16070 (main): Understand -p|--prefix.
16071
16072 2008-07-30 Robert Millan <rmh@aybabtu.com>
16073
16074 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16075
16076 2008-07-30 Robert Millan <rmh@aybabtu.com>
16077
16078 * term/i386/pc/vga_text.c (grub_console_cls): Use
16079 grub_console_gotoxy() to go back to beginning of the screen.
16080 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16081
16082 2008-07-29 Christian Franke <franke@computer.org>
16083
16084 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16085 Add conversion of emulated mount points on Cygwin.
16086
16087 2008-07-29 Christian Franke <franke@computer.org>
16088
16089 * util/update-grub.in: Add a check for admin
16090 group on Cygwin.
16091 Remove old `grub.cfg.new' before creation.
16092 Add `-f' to `mv' to handle the different filesystem
16093 semantics of Windows.
16094
16095 2008-07-29 Bean <bean123ch@gmail.com>
16096
16097 * normal/main.c (get_line): Fix buffer overflow bug.
16098
16099 2008-07-28 Robert Millan <rmh@aybabtu.com>
16100
16101 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16102 (struct grub_apple_header): New struct. Describes the layout of
16103 the partmap header.
16104 (apple_partition_map_iterate): Check the header magic as well as the
16105 partition magic (which was already being checked).
16106
16107 2008-07-28 Pavel Roskin <proski@gnu.org>
16108
16109 * genmk.rb: Add a warning to the beginning of the output that
16110 it's a generated file and should not be edited.
16111
16112 2008-07-28 Robert Millan <rmh@aybabtu.com>
16113
16114 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16115 with the same number are found, just use issue a warning with
16116 grub_dprintf(), as this error has been reported to be non-fatal.
16117
16118 2008-07-27 Robert Millan <rmh@aybabtu.com>
16119
16120 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16121 information.
16122
16123 2008-07-27 Bean <bean123ch@gmail.com>
16124
16125 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16126 (grub_fat_find_dir): Ignore case when comparing filename.
16127
16128 2008-07-27 Bean <bean123ch@gmail.com>
16129
16130 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16131 smallino, as it's more descriptive, and i8count can be confused with
16132 the other field count.
16133 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16134 inode type.
16135
16136 2008-07-27 Bean <bean123ch@gmail.com>
16137
16138 * commands/crc.c: New file.
16139
16140 * lib/crc.c: Likewise.
16141
16142 * include/grub/lib/crc.h: Likewise.
16143
16144 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16145
16146 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16147 (hexdump): Move this function to ...
16148
16149 * lib/hexdump.c: ... here.
16150
16151 * include/grub/hexdump.h: Renamed to ...
16152
16153 * include/grub/lib/hexdump.h: ... this.
16154
16155 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16156
16157 * util/grub-editenv.c: Likewise.
16158
16159 * include/envblk.h: Renamed to ...
16160
16161 * include/lib/envblk.h: ... this.
16162
16163 * util/envblk.c: Renamed to ...
16164
16165 * lib/envblk.c: ... this.
16166
16167 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16168 lib/hexdump.c.
16169 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16170 (pkglib_MODULES): Add crc.mod.
16171 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16172 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16173 (crc_mod_SOURCES): New macro.
16174 (crc_mod_CFLAGS): Likewise.
16175 (crc_mod_LDFLAGS): Likewise.
16176
16177 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16178
16179 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16180
16181 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16182
16183 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16184
16185 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16186
16187 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16188
16189 * commands/help.c: Include <grub/term.h>.
16190 (TERM_WIDTH): Removed. Updated all users.
16191
16192 2008-07-27 Pavel Roskin <proski@gnu.org>
16193
16194 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16195 spurious warnings about a comment within a comment.
16196
16197 2008-07-25 Robert Millan <rmh@aybabtu.com>
16198
16199 * util/getroot.c (find_root_device): Skip devices that match
16200 /dev/dm-[0-9]. This lets the real device be found for any type of
16201 abstraction (LVM, EVMS, RAID..).
16202 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16203 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16204 device is found first, find_root_device() will now skip it.
16205
16206 2008-07-24 Pavel Roskin <proski@gnu.org>
16207
16208 * include/grub/types.h: Use __builtin_bswap32() and
16209 __builtin_bswap64() with gcc 4.3 and newer.
16210
16211 2008-07-24 Christian Franke <franke@computer.org>
16212
16213 * util/i386/pc/grub-install.in: If `--debug' is specified,
16214 pass `--verbose' to grub-setup.
16215 Abort script if make_system_path_relative_to_its_root() fails.
16216
16217 2008-07-24 Bean <bean123ch@gmail.com>
16218
16219 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16220 variable `target_platform' should be `platform'.
16221
16222 2008-07-24 Bean <bean123ch@gmail.com>
16223
16224 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16225 (grub_png_init_fixed_block): New function.
16226 (grub_png_decode_image_data): Handle fixed huffman code compression.
16227
16228 2008-07-24 Bean <bean123ch@gmail.com>
16229
16230 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16231 (grub_pe2elf_SOURCES): New macro.
16232 (CLEANFILES): Add grub-pe2elf.
16233
16234 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16235 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16236 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16237 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16238 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16239 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16240 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16241 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16242 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16243 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16244 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16245 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16246 (GRUB_PE32_DT_FUNCTION): Likewise.
16247 (GRUB_PE32_REL_I386_DIR32): Likewise.
16248 (GRUB_PE32_REL_I386_REL32): Likewise.
16249 (grub_pe32_symbol): New structure.
16250 (grub_pe32_reloc): Likewise.
16251
16252 * util/grub-pe2elf.c: New file.
16253
16254 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16255 start symbol in non pc platform.
16256
16257 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16258
16259 The following patches are from Christian Franke.
16260
16261 * include/grub/dl.h: Remove .previous, gas supports this only
16262 for ELF format.
16263
16264 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16265 Remove .type, gas supports this only for ELF format.
16266
16267 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16268 nullbytes in symbol table. This fixes an infinite loop if table is
16269 zero filled.
16270
16271 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16272 TARGET_IMG_LDFLAGS and EXEEXT.
16273
16274 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16275 TARGET_IMG_LDFLAGS_AC.
16276 (grub_CHECK_STACK_ARG_PROBE): New function.
16277
16278 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16279
16280 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16281
16282 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16283 to set TARGET_IMG_LD* accordingly.
16284 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16285 Add call to grub_CHECK_STACK_ARG_PROBE.
16286 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16287
16288 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16289
16290 * genmk.rb: Add EXEEXT to CLEANFILES.
16291
16292 2008-07-23 Robert Millan <rmh@aybabtu.com>
16293
16294 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16295 define the codes for arrows and lines used for the menu).
16296 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16297 as well.
16298
16299 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16300 fonts, because the latter are too slow.
16301
16302 2008-07-21 Bean <bean123ch@gmail.com>
16303
16304 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16305 a20. Run keyboard test last, as it will cause macbook to halt.
16306
16307 2008-07-18 Pavel Roskin <proski@gnu.org>
16308
16309 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16310 load foreign architecture modules correctly anyway. Keep
16311 support for loading host architecture modules, whether we
16312 compile them or not.
16313
16314 2008-07-17 Pavel Roskin <proski@gnu.org>
16315
16316 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16317 change target_cpu. The compiler default can mismatch target_cpu
16318 in any case.
16319
16320 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16321 * kern/efi/efi.c: Likewise.
16322
16323 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16324 target compiler is functional.
16325 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16326 are set up.
16327
16328 * configure.ac: Default to efi platform for x86_64-apple. Allow
16329 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16330 adjustments from the rest, only do them if target is not
16331 explicitly given. Merge other adjustments with the final sanity
16332 check. Remove an extraneous check for supported CPU. Be
16333 specific which CPU and which platform is not supported.
16334
16335 * configure.ac: Default to pc platform for x86_64.
16336
16337 2008-07-17 Robert Millan <rmh@aybabtu.com>
16338
16339 Partial LinuxBIOS -> Coreboot rename.
16340
16341 * conf/i386-linuxbios.rmk: Renamed to ...
16342 * conf/i386-coreboot.rmk: ... this.
16343 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16344 * configure.ac: Accept "coreboot" as input platform (but maintain
16345 compatibility with "linuxbios").
16346 * include/grub/i386/linuxbios: Renamed to ...
16347 * include/grub/i386/coreboot: ... this.
16348
16349 2008-07-17 Bean <bean123ch@gmail.com>
16350
16351 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16352 (appleldr_mod_SOURCE): New variable.
16353 (appleldr_mod_CFLAGS): Likewise.
16354 (appleldr_mod_LDFLAGS): Likewise.
16355 (pci_mod_SOURCES): Likewise.
16356 (pci_mod_CFLAGS): Likewise.
16357 (pci_mod_LDFLAGS): Likewise.
16358 (lspci_mod_SOURCES): Likewise.
16359 (lspci_mod_CFLAGS): Likewise.
16360 (lspci_mod_LDFLAGS): Likewise.
16361
16362 * conf/x86_64-efi.rmk: New file.
16363
16364 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16365 macro.
16366 (grub_efidisk_write): Likewise.
16367
16368 * include/efi/api.h (efi_call_0): New macro.
16369 (efi_call_1): Likewise.
16370 (efi_call_2): Likewise.
16371 (efi_call_3): Likewise.
16372 (efi_call_4): Likewise.
16373 (efi_call_5): Likewise.
16374 (efi_call_6): Likewise.
16375
16376 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16377 grub_rescue_cmd_chainloader.
16378
16379 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16380 (grub_pe32_optional_header): Change some fields based on i386 or
16381 x86_64 platform.
16382 (GRUB_PE32_PE32_MAGIC): Likewise.
16383
16384 * include/grub/efi/uga_draw.h: New file.
16385
16386 * include/grub/elf.h (STN_ABS): New constant.
16387 (R_X86_64_NONE): Relocation constant for x86_64.
16388 (R_X86_64_64): Likewise.
16389 (R_X86_64_PC32): Likewise.
16390 (R_X86_64_GOT32): Likewise.
16391 (R_X86_64_PLT32): Likewise.
16392 (R_X86_64_COPY): Likewise.
16393 (R_X86_64_GLOB_DAT): Likewise.
16394 (R_X86_64_JUMP_SLOT): Likewise.
16395 (R_X86_64_RELATIVE): Likewise.
16396 (R_X86_64_GOTPCREL): Likewise.
16397 (R_X86_64_32): Likewise.
16398 (R_X86_64_32S): Likewise.
16399 (R_X86_64_16): Likewise.
16400 (R_X86_64_PC16): Likewise.
16401 (R_X86_64_8): Likewise.
16402 (R_X86_64_PC8): Likewise.
16403
16404 * include/grub/i386/efi/pci.h: New file.
16405
16406 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16407 Change it value based on platform.
16408 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16409 (GRUB_E820_RAM): Likewise.
16410 (GRUB_E820_RESERVED): Likewise.
16411 (GRUB_E820_ACPI): Likewise.
16412 (GRUB_E820_NVS): Likewise.
16413 (GRUB_E820_EXEC_CODE): Likewise.
16414 (GRUB_E820_MAX_ENTRY): Likewise.
16415 (grub_e820_mmap): New structure.
16416 (linux_kernel_header): Change the efi field according to different
16417 kernel version, also field from linux_kernel_header.
16418
16419 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16420
16421 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16422 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16423 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16424 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16425 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16426 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16427 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16428 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16429 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16430 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16431
16432 * include/grub/x86_64/efi/kernel.h: New file.
16433
16434 * include/grub/x86_64/efi/loader.h: Likewise.
16435
16436 * include/grub/x86_64/efi/machine.h: Likewise.
16437
16438 * include/grub/x86_64/efi/pci.h: Likewise.
16439
16440 * include/grub/x86_64/efi/time.h: Likewise.
16441
16442 * include/grub/x86_64/linux.h: Likewise.
16443
16444 * include/grub/x86_64/setjmp.h: Likewise.
16445
16446 * include/grub/x86_64/time.h: Likewise.
16447
16448 * include/grub/x86_64/types.h: Likewise.
16449
16450 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16451 GRUB_TARGET_SIZEOF_VOID_P.
16452
16453 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16454 (grub_efi_locate_handle): Likewise.
16455 (grub_efi_open_protocol): Likewise.
16456 (grub_efi_set_text_mode): Likewise.
16457 (grub_efi_stall): Likewise.
16458 (grub_exit): Likewise.
16459 (grub_reboot): Likewise.
16460 (grub_halt): Likewise.
16461 (grub_efi_exit_boot_services): Likewise.
16462 (grub_get_rtc): Likewise.
16463
16464 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16465 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16466 (grub_efi_allocate_pages): Wrap efi calls.
16467 (grub_efi_free_pages): Wrap efi calls.
16468 (grub_efi_get_memory_map): Wrap efi calls.
16469
16470 * kern/x86_64/dl.c: New file.
16471
16472 * kern/x86_64/efi/callwrap.S: Likewise.
16473
16474 * kern/x86_64/efi/startup.S: Likewise.
16475
16476 * loader/efi/appleloader.c: Likewise.
16477
16478 * loader/efi/chainloader.c (cmdline): New variable.
16479 (grub_chainloader_unload): Wrap efi calls.
16480 (grub_chainloader_boot): Likewise.
16481 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16482 command line.
16483
16484 * loader/efi/chainloader_normal.c (chainloader_command):
16485 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16486 command line.
16487
16488 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16489 method.
16490 (grub_e820_add_region): New function.
16491 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16492 booting.
16493 (grub_find_video_card): New function.
16494 (grub_linux_setup_video): New function.
16495 (grub_rescue_cmd_linux): Probe for video information.
16496
16497 * normal/x86_64/setjmp.S: New file.
16498
16499 * term/efi/console.c (map_char): New function.
16500 (grub_console_putchar): Map unicode char.
16501 (grub_console_checkkey): Wrap efi calls.
16502 (grub_console_getkey): Likewise.
16503 (grub_console_getwh): Likewise.
16504 (grub_console_gotoxy): Likewise.
16505 (grub_console_cls): Likewise.
16506 (grub_console_setcolorstate): Likewise.
16507 (grub_console_setcursor): Likewise.
16508
16509 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16510
16511 2008-07-16 Pavel Roskin <proski@gnu.org>
16512
16513 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16514 format strings.
16515
16516 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16517 pointer, not an integer. This fixes a warning and prevents
16518 precision loss on 64-bit systems.
16519 (relocate_addresses): Remove unneeded cast.
16520
16521 2008-07-15 Pavel Roskin <proski@gnu.org>
16522
16523 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16524
16525 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16526
16527 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16528 Fix comparison between signed and unsigned.
16529
16530 * include/grub/i386/ieee1275/console.h: Declare
16531 grub_console_init() and grub_console_fini().
16532
16533 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16534 It's empty and unused.
16535
16536 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16537 beginning to avoid warnings with some compilers.
16538
16539 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16540 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16541
16542 2008-07-14 Pavel Roskin <proski@gnu.org>
16543
16544 * kern/env.c (grub_register_variable_hook): Don't copy empty
16545 string, it leaks memory. Pass "" to grub_env_set(), it should
16546 handle constant strings.
16547
16548 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16549 * commands/cmp.c (grub_cmd_cmp): Likewise.
16550 * kern/dl.c (grub_dl_flush_cache): Likewise.
16551 (grub_dl_load_core): Likewise.
16552 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16553 (grub_elf64_load_phdrs): Likewise.
16554
16555 2008-07-13 Pavel Roskin <proski@gnu.org>
16556
16557 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16558 between signed and unsigned.
16559 (LzmaEnc_Finish): Fix warning about an unused parameter.
16560
16561 2008-07-13 Bean <bean123ch@gmail.com>
16562
16563 * Makefile.in (enable_lzo): New rule.
16564
16565 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16566
16567 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16568
16569 * boot/i386/pc/lnxboot.S: #include <config.h>.
16570
16571 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16572 its value according to the compression algorithm used, lzo or lzma.
16573
16574 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16575 compression algorithm according to configure macro.
16576
16577 * kern/i386/pc/startup.S (codestart): Likewise.
16578
16579 * kern/i386/pc/lzma_decode.S: New file.
16580
16581 * include/grub/lib/LzFind.h: Likewise.
16582
16583 * include/grub/lib/LzHash.h: Likewise.
16584
16585 * include/grub/lib/LzmaDec.h: Likewise.
16586
16587 * include/grub/lib/LzmaEnc.h: Likewise.
16588
16589 * include/grub/lib/LzmaTypes.h: Likewise.
16590
16591 * lib/LzFind.c: Likewise.
16592
16593 * lib/LzmaDec.c: Likewise.
16594
16595 * lib/LzmaEnc.c: Likewise.
16596
16597 2008-07-13 Bean <bean123ch@gmail.com>
16598
16599 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16600 (grub_ext4_extent_header): New structure.
16601 (grub_ext4_extent): Likewise.
16602 (grub_ext4_extent_idx): Likewise.
16603 (grub_ext4_find_leaf): New function.
16604 (grub_ext2_read_block): Handle extents.
16605
16606 2008-07-12 Robert Millan <rmh@aybabtu.com>
16607
16608 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16609
16610 2008-07-11 Robert Millan <rmh@aybabtu.com>
16611
16612 * util/grub.d/40_custom.in: New file. Example on how to add custom
16613 entries to /etc/grub.d.
16614 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16615 40_custom (implicitly, by merging all the grub.d rules).
16616
16617 2008-07-11 Pavel Roskin <proski@gnu.org>
16618
16619 * commands/read.c (grub_getline): Fix invalid memory access.
16620 Don't add newline to the variable value.
16621
16622 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16623 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16624 (serial_hw_get_port): Check validity of the port number.
16625 (grub_cmd_serial): Check return value of serial_hw_get_port().
16626
16627 2008-07-07 Pavel Roskin <proski@gnu.org>
16628
16629 * boot/i386/pc/diskboot.S (notification_string): Replace
16630 "Loading kernel" with just "loading". This is shorter, less
16631 confusing and saves a few bytes for possible future changes.
16632
16633 2008-07-05 Pavel Roskin <proski@gnu.org>
16634
16635 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16636 size for ATAPI devices, they are undefined. Output sector
16637 number in decimal form.
16638
16639 * disk/ata.c: Use named constants for status bits.
16640
16641 2008-07-04 Pavel Roskin <proski@gnu.org>
16642
16643 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16644 grub_addr_t before casting it to the void pointer to fix a
16645 warning. Non-addressable regions are discarded earlier.
16646 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16647 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16648 (check_signature): Don't shadow table_header.
16649 (grub_linuxbios_table_iterate): Cast numeric constants to
16650 grub_linuxbios_table_header_t.
16651 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16652 grub_stop().
16653
16654 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16655 prevent warnings.
16656
16657 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16658 pointer, which can cause warnings. Support 64-bit addresses.
16659
16660 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16661 of sizeof(long). This fixes PowerPC image generation on x86_64.
16662
16663 2008-07-04 Robert Millan <rmh@aybabtu.com>
16664
16665 This fixes a performance issue when pc & gpt partmap iterators
16666 didn't abort iteration even after our hook found what it was
16667 looking for (often causing expensive probes of non-existent drives).
16668
16669 Some callers relied on previous buggy behaviour, since they would
16670 raise an error when their own hooks caused early abortion of its
16671 iteration.
16672
16673 * kern/device.c (grub_device_open): Improve error message.
16674 * disk/lvm.c (grub_lvm_open): Likewise.
16675 * disk/raid.c (grub_raid_open): Likewise.
16676
16677 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16678 when hook requests it, independently of grub_errno.
16679 (pc_partition_map_probe): Do not fail when find_func() caused
16680 early abortion of pc_partition_map_iterate().
16681
16682 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16683 when hook requests it, independently of grub_errno.
16684 (gpt_partition_map_probe): Do not fail when find_func() caused
16685 early abortion of gpt_partition_map_iterate().
16686
16687 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16688 when hook requests it, independently of grub_errno. Do not fail when
16689 part_map_iterate_hook() caused early abortion of p->iterate().
16690
16691 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16692 when grub_partition_iterate() returned with non-zero.
16693
16694 2008-07-03 Pavel Roskin <proski@gnu.org>
16695
16696 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16697 like we do in grub_ata_pio_read().
16698 (grub_ata_readwrite): Always write individual sectors. Fix the
16699 sector count for the remainder.
16700 (grub_ata_write): Enable writing to ATA devices. Correctly
16701 report error for ATAPI devices.
16702
16703 2008-07-02 Pavel Roskin <proski@gnu.org>
16704
16705 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16706 warning.
16707
16708 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16709 for every read sector, we already increment it for the whole
16710 batch. This fixes reading more than 256 sectors at once.
16711
16712 * util/grub-editenv.c (cmd_info): Cast argument to long
16713 explicitly. ptrdiff_t reduces to int on i386.
16714
16715 * util/grub-editenv.c (main): Be specific which parameter is
16716 missing.
16717
16718 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16719 (memdisk): Make memdisk_orig_addr a pointer.
16720
16721 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16722 for file offsets, use grub_off_t instead. Fix printf format
16723 warnings.
16724
16725 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16726 there. Real unexpected warnings should not drown in the noise
16727 about known problems.
16728
16729 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16730 grub_disk_addr_t for memory addresses.
16731
16732 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16733 explicitly to fix a warning.
16734
16735 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16736
16737 * Makefile.in (MODULE_LDFLAGS): New variable.
16738 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16739 the linker accepts --build-id=none.
16740 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16741 MODULE_LDFLAGS.
16742 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16743
16744 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16745 those in Linux XFS code. Provide a way to access 64-bit parent
16746 inode.
16747 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16748 the end of struct grub_xfs_dir_header.
16749
16750 2008-07-02 Bean <bean123ch@gmail.com>
16751
16752 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16753 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16754 and GRUB_IEEE1275_FLAG_NO_ANSI.
16755
16756 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16757 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16758 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16759
16760 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16761 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16762
16763 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16764 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16765
16766 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16767 esc sequence on non ANSI terminal.
16768 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16769
16770 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16771 beginning of file.
16772
16773 2008-07-02 Bean <bean123ch@gmail.com>
16774
16775 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16776 (grub_editenv_SOURCES): New variable.
16777 (pkglib_MODULES): Add loadenv.mod.
16778 (loadenv_mod_SOURCES): New variable.
16779 (loadenv_mod_CFLAGS): Likewise.
16780 (loadenv_mod_LDFLAGS): Likewise.
16781
16782 * include/grub/envblk.h: New file.
16783
16784 * util/envblk.c: New file.
16785
16786 * util/grub-editenv.c: New file.
16787
16788 * commands/loadenv.c: New file.
16789
16790 2008-07-01 Pavel Roskin <proski@gnu.org>
16791
16792 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16793 not unsigned char. This fixes warnings and is consistent with
16794 other tags.
16795
16796 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16797
16798 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16799
16800 * term/tparm.c (analyze): Always set *popcount.
16801
16802 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16803 cast to fix a warning.
16804
16805 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16806 cast to suppress a warning.
16807
16808 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16809 grub_fshelp_read_file() expects.
16810
16811 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16812 write uuid as a 32-bit value in CPU byte order, so declare and
16813 use it as such.
16814
16815 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16816 long if the format specifier expects it.
16817 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16818 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16819 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16820 long to fix a warning.
16821 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16822 grub_dprintf() arguments to fix warnings.
16823
16824 2008-06-30 Pavel Roskin <proski@gnu.org>
16825
16826 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16827 install_bsd_part immediately before core.img is embedded or
16828 modified on disk. This fixes core.img verification if core.img
16829 cannot be embedded.
16830
16831 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16832 core_path to calculate the blocklist.
16833 Patch from Javier Martín <lordhabbit@gmail.com>
16834
16835 2008-06-29 Robert Millan <rmh@aybabtu.com>
16836
16837 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16838 block to disk block.
16839 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16840 Patch from Niels Böhm <bitbucket@arcor.de>
16841
16842 2008-06-29 Robert Millan <rmh@aybabtu.com>
16843
16844 * util/update-grub_lib.in (font_path): Search for fonts in
16845 /boot/grub first, which is more likely to be readable (we aren't
16846 deciding where fonts live, just looking for them).
16847
16848 2008-06-26 Pavel Roskin <proski@gnu.org>
16849
16850 * util/biosdisk.c (read_device_map): Don't leave dead map
16851 entries for devices failing stat() check.
16852
16853 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16854 core_path_dev for the core.img path on the target device.
16855
16856 2008-06-26 Robert Millan <rmh@aybabtu.com>
16857
16858 * disk/fs_uuid.c: New file.
16859 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16860 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16861 (fs_uuid_mod_LDFLAGS): New variables.
16862 * include/grub/disk.h (grub_disk_dev_id): Add
16863 `GRUB_DISK_DEVICE_UUID_ID'.
16864 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16865 implement iterate().
16866
16867 2008-06-26 Robert Millan <rmh@aybabtu.com>
16868
16869 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16870 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16871 Linux image includes no initrd.
16872
16873 2008-06-21 Javier Martín <lordhabbit@gmail.com>
16874
16875 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16876 call to resolve the core image location that effectively appended the
16877 name twice.
16878
16879 2008-06-21 Robert Millan <rmh@aybabtu.com>
16880
16881 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16882 call from here ...
16883
16884 * util/grub.d/10_hurd.in: ... to here ...
16885 * util/grub.d/10_linux.in: ... and here.
16886
16887 2008-06-19 Robert Millan <rmh@aybabtu.com>
16888
16889 * kern/main.c (grub_main): Export `prefix' variable immediately
16890 after it has been set by grub_machine_set_prefix().
16891
16892 2008-06-19 Robert Millan <rmh@aybabtu.com>
16893
16894 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16895 search result when not saving to variable, not the other way around.
16896 When saving to variable, abort iteration as soon as a match is found.
16897
16898 2008-06-19 Robert Millan <rmh@aybabtu.com>
16899
16900 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16901 check for partition that provides /boot/grub. Its logic is flawed,
16902 as it prevents prepare_grub_to_access_device() from being called
16903 multiple times.
16904
16905 2008-06-19 Robert Millan <rmh@aybabtu.com>
16906
16907 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16908 "insmod" command directly when abstraction modules are needed,
16909 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
16910 since it had already been processed).
16911
16912 2008-06-19 Pavel Roskin <proski@gnu.org>
16913
16914 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16915 changed. This is needed in case GRUB_LIBDIR changes.
16916 * conf/i386-ieee1275.rmk: Likewise.
16917 * conf/i386-linuxbios.rmk: Likewise.
16918 * conf/i386-pc.rmk: Likewise.
16919 * conf/powerpc-ieee1275.rmk: Likewise.
16920
16921 2008-06-18 Pavel Roskin <proski@gnu.org>
16922
16923 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16924 kernel_elf_symlist.c to symlist.c for consistency with other
16925 architectures. Update all users.
16926 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16927
16928 2008-06-18 Robert Millan <rmh@aybabtu.com>
16929
16930 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16931 it in prefix.
16932
16933 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16934 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16935 a RAID device, run setup() for all members independently on whether
16936 LVM abstraction is being used.
16937 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16938 If grub-mkimage has set `*install_dos_part == -2', don't override this
16939 value.
16940 Perform *install_dos_part adjustments independently on whether
16941 we're embedding or not.
16942 Clarify error message when image is too big for embedding.
16943 Remove duplicate *install_dos_part stanza.
16944
16945 2008-06-17 Robert Millan <rmh@aybabtu.com>
16946
16947 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
16948 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
16949 variables.
16950 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
16951 values in grub_ofconsole_normal_color and
16952 grub_ofconsole_highlight_color (they're not directly related to
16953 background and foreground).
16954 (grub_ofconsole_setcolorstate): Extract background and foreground
16955 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
16956
16957 2008-06-17 Robert Millan <rmh@aybabtu.com>
16958
16959 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
16960 /boot/grub for the check in last commit, not /boot (they could be
16961 different partitions).
16962
16963 2008-06-16 Robert Millan <rmh@aybabtu.com>
16964
16965 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
16966 asked to setup access for the same partition that provides /boot,
16967 don't bother using UUIDs since our root already has the value we
16968 want.
16969
16970 2008-06-16 Robert Millan <rmh@aybabtu.com>
16971
16972 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
16973 I2O devices.
16974 Patch from Sven Mueller <sven@debian.org>.
16975
16976 2008-06-16 Robert Millan <rmh@aybabtu.com>
16977
16978 * util/update-grub.in: Check for $EUID instead of $UID.
16979 Reported by Vincent Zweije.
16980
16981 2008-06-16 Bean <bean123ch@gmail.com>
16982
16983 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
16984 (grub_ext2_read_block): Likewise.
16985 (grub_ext2_read_inode): Likewise.
16986 (grub_ext2_mount): Likewise.
16987 (grub_ext2_close): Likewise.
16988 (grub_ext3_get_journal): Removed.
16989
16990 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
16991 (grub_reiserfs_read_symlink): Likewise.
16992 (grub_reiserfs_mount): Likewise.
16993 (grub_reiserfs_open): Likewise.
16994 (grub_reiserfs_read): Likewise.
16995 (grub_reiserfs_close): Likewise.
16996 (grub_reiserfs_get_journal): Removed.
16997
16998 * fs/fshelp.c (grub_fshelp_read): Removed.
16999 (grub_fshelp_map_block): Likewise.
17000
17001 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17002 (grub_fshelp_journal): Likewise.
17003 (grub_fshelp_read): Likewise.
17004 (grub_fshelp_map_block): Likewise.
17005
17006 2008-06-16 Pavel Roskin <proski@gnu.org>
17007
17008 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17009 floating point anymore.
17010 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17011
17012 2008-06-15 Pavel Roskin <proski@gnu.org>
17013
17014 * commands/ls.c (grub_ls_list_files): Use integer calculations
17015 for human readable format, avoid floating point use.
17016 * kern/misc.c (grub_ftoa): Remove.
17017 (grub_vsprintf): Remove floating point support.
17018
17019 2008-06-15 Robert Millan <rmh@aybabtu.com>
17020
17021 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17022 devices.
17023 Reported by Max Vozeler.
17024
17025 2008-06-15 Robert Millan <rmh@aybabtu.com>
17026
17027 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17028 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17029 skipped later.
17030 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17031 the beginning of the prefix.
17032
17033 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17034 It is assumed that if we have a memdisk, grub-mkimage has set
17035 grub_prefix to include the "(memdisk)" drive in it.
17036
17037 2008-06-15 Robert Millan <rmh@aybabtu.com>
17038
17039 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17040 Initialize keyboard controller after registering the terminal, so that
17041 grub_printf() can be called from grub_keyboard_controller_init().
17042
17043 2008-06-15 Robert Millan <rmh@aybabtu.com>
17044
17045 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17046 extent-btree which is written as big endian on disk.
17047 Reported by Alain Greppin <al@chilibi.org>.
17048
17049 2008-06-14 Robert Millan <rmh@aybabtu.com>
17050
17051 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17052 * util/i386/pc/grub-install.in (modules): Likewise.
17053
17054 2008-06-13 Pavel Roskin <proski@gnu.org>
17055
17056 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17057
17058 2008-06-13 Bean <bean123ch@gmail.com>
17059
17060 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17061
17062 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17063
17064 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17065 to indicate sparse block.
17066
17067 2008-06-12 Pavel Roskin <proski@gnu.org>
17068
17069 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17070 number, grub_fshelp_read() does it for us.
17071
17072 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17073 linear disk read with journal translation.
17074 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17075 * include/grub/fshelp.h: Declare grub_fshelp_read().
17076
17077 2008-06-09 Pavel Roskin <proski@gnu.org>
17078
17079 * fs/minix.c (grub_minix_mount): Handle error reading
17080 superblock.
17081
17082 2008-06-08 Robert Millan <rmh@aybabtu.com>
17083
17084 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17085 don't append the RAID prefix afterwards.
17086 Reported by Clint Adams.
17087
17088 2008-06-08 Robert Millan <rmh@aybabtu.com>
17089
17090 Based on description from Pavel:
17091 * kern/disk.c (grub_disk_check_range): Rename to ...
17092 (grub_disk_adjust_range): ... this. Add a comment explaining the
17093 tasks performed by this function.
17094
17095 2008-06-08 Robert Millan <rmh@aybabtu.com>
17096
17097 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17098 `num_serial' (for consistency with other variables).
17099 (struct grub_ntfs_data): Add `uuid' member.
17100 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17101 (grub_ntfs_uuid): New function.
17102 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17103
17104 2008-06-07 Pavel Roskin <proski@gnu.org>
17105
17106 * util/biosdisk.c (open_device): Revert last change to the
17107 function, it broke installation. The sector needs to be
17108 different dependent on which device is opened.
17109
17110 2008-06-06 Robert Millan <rmh@aybabtu.com>
17111
17112 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17113 rest of GRUB, and breakage doesn't happen if its value were modified.
17114
17115 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17116 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17117 a constant (same value).
17118 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17119 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17120
17121 2008-06-06 Robert Millan <rmh@aybabtu.com>
17122
17123 * util/biosdisk.c (open_device): Do not modify sector offset when
17124 accessing a partition. kern/disk.c already handles this for us.
17125
17126 2008-06-06 Robert Millan <rmh@aybabtu.com>
17127
17128 * util/grub-emu.c (grub_machine_init): Move code in this function from
17129 here ...
17130 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17131 segfault in case grub_printf() is called).
17132
17133 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17134 grub_probe. Update all users not to explicitly add it again.
17135 (grub_device): New variable; contains corresponding device for grubdir.
17136 (fs_module, partmap_module, devabstraction_module): Pass
17137 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17138 every time.
17139
17140 2008-06-05 Robert Millan <rmh@aybabtu.com>
17141
17142 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17143 is found, print it (same layout as with labels).
17144
17145 2008-06-04 Robert Millan <rmh@aybabtu.com>
17146
17147 * util/biosdisk.c (get_drive): Rename to ...
17148 (find_grub_drive): ... this. Update all users.
17149
17150 (get_os_disk): Rename to ...
17151 (convert_system_partition_to_system_disk): ... this. Update all users.
17152
17153 (find_drive): Rename to ...
17154 (find_system_device): ... this. Update all users.
17155
17156 2008-06-04 Robert Millan <rmh@aybabtu.com>
17157
17158 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17159 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17160 (make_device_map): Likewise.
17161
17162 2008-06-01 Robert Millan <rmh@aybabtu.com>
17163
17164 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17165 before dereferencing it.
17166
17167 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17168 union with fat12/fat16-specific ones. Add some new fields, including
17169 `num_serial' for both versions.
17170 (struct grub_fat_data): Add `uuid' member.
17171 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17172 names. Initialize `data->uuid' using `num_serial'.
17173 (grub_fat_uuid): New function.
17174 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17175
17176 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17177 (grub_reiserfs_uuid): New function.
17178 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17179 member.
17180
17181 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17182 (grub_xfs_uuid): New function.
17183 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17184
17185 2008-06-01 Robert Millan <rmh@aybabtu.com>
17186
17187 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17188 code that is backward compatible with pre-uuid search command.
17189
17190 2008-05-31 Robert Millan <rmh@aybabtu.com>
17191
17192 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17193 floppies after everything else, to ensure floppy drive isn't accessed
17194 unnecessarily (patch from Bean).
17195
17196 2008-05-31 Robert Millan <rmh@aybabtu.com>
17197
17198 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17199 not print device names when we were asked to set a variable.
17200
17201 2008-05-31 Robert Millan <rmh@aybabtu.com>
17202
17203 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17204 using "cursor-on" and "cursor-off" commands (understood at least by
17205 the Open Firmware flavour on OLPC).
17206
17207 2008-05-31 Michael Gorven <michael@gorven.za.net>
17208
17209 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17210 on and off sequences.
17211
17212 2008-05-31 Robert Millan <rmh@aybabtu.com>
17213
17214 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17215 * util/update-grub.in: Likewise.
17216
17217 2008-05-30 Pavel Roskin <proski@gnu.org>
17218
17219 * util/biosdisk.c (linux_find_partition): Simplify logic and
17220 make the code more universal. Keep special processing for
17221 devfs, but use a simple rule for all other devices. If the
17222 device ends with a number, append 'p' and the partition number.
17223 Otherwise, append only the partition number.
17224
17225 2008-05-30 Robert Millan <rmh@aybabtu.com>
17226
17227 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17228 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17229 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17230 the `root' parameter to Linux.
17231
17232 2008-05-30 Robert Millan <rmh@aybabtu.com>
17233
17234 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17235 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17236 --fs_uuid with --fs-uuid.
17237 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17238 all filesystems support them).
17239
17240 2008-05-30 Robert Millan <rmh@aybabtu.com>
17241
17242 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17243 grub_printf() flags, since we're printing in units of 2 bytes.
17244
17245 2008-05-30 Robert Millan <rmh@aybabtu.com>
17246
17247 * util/grub.d/00_header.in: Remove obsolete comment referencing
17248 convert_system_path_to_grub_path().
17249 * util/update-grub.in: Likewise.
17250 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17251 (convert_system_path_to_grub_path): Add a warning message explaining
17252 that this function is deprecated. Rely on is_path_readable_by_grub()
17253 for the readability checks.
17254 (font_path): Use is_path_readable_by_grub() for the readability
17255 check rather than convert_system_path_to_grub_path().
17256
17257 2008-05-30 Robert Millan <rmh@aybabtu.com>
17258
17259 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17260 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17261 converting it first.
17262 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17263 grub.cfg for access to font file, and afterwards call it again to set
17264 the root device.
17265
17266 2008-05-30 Robert Millan <rmh@aybabtu.com>
17267
17268 * commands/search.c (options): Add --fs_uuid option.
17269 (search_fs_uuid): New function.
17270 (grub_cmd_search): Fix --set argument passing.
17271 Use search_fs_uuid() when requested via --fs_uuid.
17272 (grub_search_init): Update help message.
17273 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17274 and redeclare it as an array of 16-bit words.
17275 (grub_ext2_uuid): New function.
17276 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17277 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17278 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17279 (GRUB_DEVICE_BOOT_UUID): New variables.
17280 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17281 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17282 whenever possible.
17283 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17284 just assume `root' variable has the right value.
17285 * util/grub.d/10_linux.in: Likewise.
17286 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17287 via PRINT_FS_UUID.
17288 (main): Recognise `-t fs_uuid' argument.
17289
17290 2008-05-30 Robert Millan <rmh@aybabtu.com>
17291
17292 * util/biosdisk.c (map): Redefine structure to hold information
17293 about GRUB drive name.
17294 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17295 drive names.
17296 (call_hook): Remove.
17297 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17298 member. Assume drive has partitions.
17299 (grub_util_biosdisk_open): Access device names via `.device' struct
17300 member.
17301 (open_device): Likewise.
17302 (find_drive): Likewise.
17303 (read_device_map): Adjust map[] usage to match the new struct
17304 definition. Don't check for duplicates (still possible, but not cheap
17305 anymore).
17306 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17307 (make_device_name): Remove assumption of BIOS-like drive names.
17308
17309 2008-05-30 Pavel Roskin <proski@gnu.org>
17310
17311 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17312 compiling execute.c doesn't need grub_script.tab.h anymore.
17313 (normal/command.c_DEPENDENCIES): Likewise.
17314 (normal/function.c_DEPENDENCIES): Likewise.
17315 * conf/i386-ieee1275.rmk: Likewise.
17316 * conf/i386-linuxbios.rmk: Likewise.
17317 * conf/i386-pc.rmk: Likewise.
17318 * conf/powerpc-ieee1275.rmk: Likewise.
17319 * conf/sparc64-ieee1275.rmk: Likewise.
17320
17321 2008-05-29 Pavel Roskin <proski@gnu.org>
17322
17323 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17324 when scanning metadata for volume group name.
17325
17326 * include/grub/script.h: Don't include grub_script.tab.h. It's
17327 a generated file, which may only be included from the files with
17328 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17329 use union YYSTYPE, as the later allows forward declaration.
17330 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17331
17332 2008-05-29 Robert Millan <rmh@aybabtu.com>
17333
17334 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17335 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17336 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17337 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17338 scan codes.
17339
17340 2008-05-29 Robert Millan <rmh@aybabtu.com>
17341
17342 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17343 control key combinations.
17344
17345 2008-05-29 Robert Millan <rmh@aybabtu.com>
17346
17347 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17348 * util/ieee1275/grub-install.in: ... to here.
17349 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17350 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17351 (grub_install_SOURCES): Likewise.
17352
17353 2008-05-29 Robert Millan <rmh@aybabtu.com>
17354
17355 * fs/affs.c: Update copyright year.
17356 * fs/ext2.c: Likewise.
17357 * fs/fshelp.c: Likewise.
17358 * fs/hfsplus.c: Likewise.
17359 * fs/ntfs.c: Likewise.
17360 * fs/xfs.c: Likewise.
17361 * include/grub/fshelp.h: Likewise.
17362 * util/grub-mkdevicemap.c: Likewise.
17363
17364 2008-05-28 Robert Millan <rmh@aybabtu.com>
17365
17366 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17367 might need to be fatfs to support some firmware implementations
17368 (e.g. OFW or EFI).
17369
17370 2008-05-28 Robert Millan <rmh@aybabtu.com>
17371
17372 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17373 devices.
17374 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17375 (make_device_map): Likewise.
17376
17377 2008-05-20 Bean <bean123ch@gmail.com>
17378
17379 * fs/fshelp.c (grub_fshelp_map_block): New function.
17380 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17381 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17382
17383 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17384 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17385 (grub_fshelp_journal): New structure.
17386 (grub_fshelp_map_block): New function prototype.
17387 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17388 (grub_fshelp_map_block): Likewise.
17389
17390 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17391 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17392 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17393 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17394 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17395 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17396 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17397 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17398 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17399 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17400 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17401 (grub_ext2_sblock): New members for journal support.
17402 (grub_ext3_journal_header): New structure.
17403 (grub_ext3_journal_revoke_header): Likewise.
17404 (grub_ext3_journal_block_tag): Likewise.
17405 (grub_ext3_journal_sblock): Likewise.
17406 (grub_fshelp_node): New members logfile and journal.
17407 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17408 grub_fshelp_map_block to get real block number.
17409 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17410 number.
17411 (grub_ext2_read_inode): Likewise.
17412 (grub_ext3_get_journal): New function.
17413 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17414 (grub_ext2_close): Release memory used by journal.
17415
17416 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17417 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17418 (grub_reiserfs_transaction_header): Renamed to
17419 grub_reiserfs_description_block, replace field data with real_blocks.
17420 (grub_reiserfs_commit_block): New structure.
17421 (grub_reiserfs_data): New member journal.
17422 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17423 number.
17424 (grub_reiserfs_read_symlink): Likewise.
17425 (grub_reiserfs_iterate_dir): Likewise.
17426 (grub_reiserfs_open): Likewise.
17427 (grub_reiserfs_read): Likewise.
17428 (grub_reiserfs_get_journal): New function.
17429 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17430 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17431 using grub_reiserfs_get_journal.
17432 (grub_reiserfs_close): Release memory used by journal.
17433
17434 * fs/affs.c (grub_affs_read_block): Change block type to
17435 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17436
17437 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17438
17439 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17440
17441 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17442
17443 * fs/udf.c (grub_udf_read_block): Change block type to
17444 grub_disk_addr_t. Use type cast to avoid warning.
17445
17446 * fs/xfs.c (grub_xfs_read_block): Likewise.
17447
17448 2008-05-16 Christian Franke <franke@computer.org>
17449
17450 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17451 to ensure that break with ESC will always work.
17452 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17453 Remove ESC from keyboard queue.
17454
17455 2008-05-16 Christian Franke <franke@computer.org>
17456
17457 * util/biosdisk.c: [__CYGWIN__] Add includes.
17458 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17459 (get_os_disk): Move variable declarations to OS specific
17460 parts to avoid warning.
17461 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17462 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17463 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17464 Cygwin.
17465 * util/getroot.c: [__CYGWIN__] Add includes.
17466 (strip_extra_slashes): Fix "/" case.
17467 [__CYGWIN__] (get_win32_path): New function.
17468 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17469 [__CYGWIN__] (find_root_device): Disable.
17470 [__CYGWIN__] (get_bootsec_serial): New function.
17471 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17472 [__linux__] (grub_guess_root_device): Add early returns to simplify
17473 structure.
17474 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17475 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17476 check for Linux only.
17477
17478 2008-05-15 Bean <bean123ch@gmail.com>
17479
17480 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17481 keyboard hang problem in apple's intel mac.
17482
17483 2008-05-09 Robert Millan <rmh@aybabtu.com>
17484
17485 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17486 devices.
17487 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17488 (make_device_map): Likewise.
17489 Reported by Aurelien Jarno <aurel32@debian.org>
17490
17491 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17492
17493 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17494 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17495 (make_device_map): Output entries for xvd type disks.
17496
17497 2008-05-07 Robert Millan <rmh@aybabtu.com>
17498
17499 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17500 devices.
17501 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17502 (make_device_map): Likewise.
17503 Reported by Roland Dreier <rdreier@cisco.com>
17504
17505 2008-05-07 Robert Millan <rmh@aybabtu.com>
17506
17507 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17508 grub_strstr() call. Correct a few mistakes in failure path handling.
17509
17510 2008-05-06 Robert Millan <rmh@aybabtu.com>
17511
17512 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17513 Do not print a trailing slash (therefore, the root directory is an
17514 empty string).
17515 (convert_system_path_to_grub_path): Do not remove trailing slash
17516 from make_system_path_relative_to_its_root() output.
17517
17518 * util/i386/pc/grub-install.in: Add trailing slash to output from
17519 make_system_path_relative_to_its_root().
17520
17521 2008-05-06 Robert Millan <rmh@aybabtu.com>
17522
17523 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17524 ensures that output lines aren't intermangled with those sent to
17525 stderr (via grub_util_info()).
17526 * util/grub-probe.c (grub_refresh): Likewise.
17527 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17528
17529 2008-05-05 Christian Franke <franke@computer.org>
17530
17531 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17532 Add Cygwin device names.
17533 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17534 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17535 (check_device): Return error instead of success on empty name.
17536 (make_device_map): Move label inside linux specific code to
17537 prevent compiler warning.
17538
17539 2008-04-30 Robert Millan <rmh@aybabtu.com>
17540
17541 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17542 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17543 first boot option.
17544 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17545
17546 2008-04-29 Robert Millan <rmh@aybabtu.com>
17547
17548 * docs/grub.cfg: New file (example GRUB configuration).
17549
17550 2008-04-26 Robert Millan <rmh@aybabtu.com>
17551
17552 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17553 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17554 and `disk/ieee1275/nand.c'.
17555
17556 2008-04-25 Bean <bean123ch@gmail.com>
17557
17558 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17559 i386-linuxbios.
17560
17561 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17562 change the buffer size to 4096 for cdrom device.
17563
17564 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17565 and nand.mod.
17566 (_linux_mod_SOURCES): New variable.
17567 (_linux_mod_CFLAGS): Likewise.
17568 (_linux_mod_LDFLAGS): Likewise.
17569 (linux_mod_SOURCES): Likewise.
17570 (linux_mod_CFLAGS): Likewise.
17571 (linux_mod_LDFLAGS): Likewise.
17572 (nand_mod_SOURCES): Likewise.
17573 (nand_mod_CFLAGS): Likewise.
17574 (nand_mod_LDFLAGS): Likewise.
17575
17576 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17577 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17578 type property. (nand device in olpc don't have this property)
17579
17580 * include/grub/disk.h (grub_disk_dev_id): New macro
17581 GRUB_DISK_DEVICE_NAND_ID.
17582
17583 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17584 function prototype.
17585 (grub_rescue_cmd_initrd): Likewise.
17586
17587 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17588 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17589 ofw_cif_handler and ofw_idt, adjust padding number.
17590
17591 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17592 GRUB_MACHINE_IEEE1275 is defined.
17593
17594 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17595 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17596
17597 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17598 on nested function heap_init.
17599 (grub_upper_mem): New variable for i386-ieee1275.
17600 (grub_get_extended_memory): New function for i386-ieee1275.
17601 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17602
17603 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17604 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17605 property.
17606
17607 * loader/i386/ieee1275/linux.c: New file.
17608
17609 * loader/i386/ieee1275/linux_normal.c: New file.
17610
17611 * disk/ieee1275/nand.c: New file.
17612
17613 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17614
17615 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17616 value.
17617 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17618
17619 2008-04-18 Robert Millan <rmh@aybabtu.com>
17620
17621 Restructures early code path on ieee1275 to unify grub_main() as
17622 the first C function that is executed in every platform.
17623
17624 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17625 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17626 cmain().
17627 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17628 * kern/ieee1275/cmain.c (cmain): Rename to ...
17629 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17630 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17631 at the beginning.
17632
17633 2008-04-18 Robert Millan <rmh@aybabtu.com>
17634
17635 * util/update-grub.in: Fix syntax error when setting
17636 `GRUB_PRELOAD_MODULES'.
17637 Reported by Stephane Chazelas <stephane@artesyncp.com>
17638
17639 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17640
17641 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17642 section into account, newer toolchains generate unique build ids
17643 * configure.ac: remove the test for --build-id=none acceptance,
17644 we want build ids to be preserved
17645 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17646 far from other sections don't cause the raw binary images grow
17647 size
17648
17649 2008-04-15 Robert Millan <rmh@aybabtu.com>
17650
17651 * disk/lvm.c: Update copyright year.
17652 * kern/misc.c: Likewise.
17653
17654 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17655
17656 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17657 there is no memory left for physical volume name.
17658
17659 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17660
17661 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17662 volume name mapping to support bigger than 9 character names properly.
17663
17664 2008-04-13 Robert Millan <rmh@aybabtu.com>
17665
17666 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17667 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17668
17669 2008-04-13 Christian Franke <franke@computer.org>
17670
17671 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17672 to create a floppy emulation boot CD when non emulation mode
17673 does not work.
17674 Enable Joliet CD filesystem extension.
17675
17676 2008-04-13 Robert Millan <rmh@aybabtu.com>
17677
17678 * kern/misc.c (grub_strncat): Fix off-by-one error.
17679 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17680
17681 * kern/env.c (grub_env_context_close): Clear current context, not
17682 previous one.
17683 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17684
17685 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17686
17687 2008-04-13 Robert Millan <rmh@aybabtu.com>
17688
17689 Improve robustness when handling LVM.
17690
17691 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17692 (and leave `*p' unmodified).
17693 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17694 through it.
17695 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17696 iterating through it.
17697 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17698 through it.
17699 (grub_lvm_scan_device): Check the return value (and fail gracefully
17700 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17701 Don't assume `vg->pvs != NULL' when iterating through it.
17702
17703 2008-04-13 Robert Millan <rmh@aybabtu.com>
17704
17705 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17706 * genmk.rb (partmap): New variable.
17707 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17708 (#{partmap}): New target rule.
17709 * genpartmaplist.sh: New file.
17710 * Makefile.in (pkglib_DATA): Add partmap.lst.
17711 (partmap.lst): New target rule.
17712 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17713 modules (including all partition maps), instead of preloading them.
17714
17715 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17716
17717 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17718 `linux-boot-prober' (if installed) to detect other operating
17719 systems which are installed on the computer and add them to
17720 the boot menu.
17721 * conf/common.rmk: Build and install 30_os-prober.
17722
17723 2008-04-12 Robert Millan <rmh@aybabtu.com>
17724
17725 * kern/powerpc/ieee1275/init.c: Move from here ...
17726 * kern/ieee1275/init.c: ... to here. Update all users.
17727
17728 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17729 * kern/ieee1275/cmain.c: ... to here. Update all users.
17730
17731 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17732 * kern/ieee1275/openfw.c: ... to here. Update all users.
17733
17734 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17735 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17736
17737 2008-04-10 Pavel Roskin <proski@gnu.org>
17738
17739 * configure.ac: Always use "_cv_" in cache variables for
17740 compatibility with Autoconf 2.62.
17741
17742 2008-04-07 Robert Millan <rmh@aybabtu.com>
17743
17744 Revert grub/machine/init.h addition by Pavel (since it breaks on
17745 i386-ieee1275 and others):
17746 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17747 * util/powerpc/ieee1275/misc.c: Likewise.
17748
17749 2008-04-07 Robert Millan <rmh@aybabtu.com>
17750
17751 * util/grub-probe.c (probe): Improve error message.
17752
17753 2008-04-07 Robert Millan <rmh@aybabtu.com>
17754
17755 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17756 (this prevents the presence of a bogus entry from ruining the whole
17757 thing).
17758
17759 2008-04-06 Pavel Roskin <proski@gnu.org>
17760
17761 * util/biosdisk.c: Include grub/util/biosdisk.h.
17762 * util/grub-fstest.c (execute_command): Make static.
17763 * util/grub-mkdevicemap.c (check_device): Likewise.
17764 * util/i386/pc/misc.c: Include grub/machine/init.h.
17765 * util/powerpc/ieee1275/misc.c: Likewise.
17766 * util/lvm.c: Include grub/util/lvm.h.
17767 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17768 grub/cache.h.
17769 * util/raid.c: Include grub/util/raid.h.
17770 (grub_util_getdiskname): Make static.
17771
17772 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17773 grub_hostfs_fini(), as they are called from grub_init_all() and
17774 grub_fini_all() respectively. This fixes an infinite loop in
17775 grub-fstest due to double registration of hostfs.
17776 Reported by Christian Franke <Christian.Franke@t-online.de>
17777
17778 2008-04-05 Pavel Roskin <proski@gnu.org>
17779
17780 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17781 all 8 functions. Otherwise, probe function 0 only.
17782
17783 2008-04-04 Pavel Roskin <proski@gnu.org>
17784
17785 * commands/lspci.c (grub_lspci_iter): Print the bus number
17786 correctly.
17787
17788 * commands/lspci.c (grub_pci_classes): Fix typos.
17789 (grub_lspci_iter): Don't print func twice. Print vendor ID
17790 before device ID, as it's normally done.
17791
17792 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17793 Fix signedness warnings.
17794 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17795 Likewise.
17796 * util/ieee1275/get_disk_name.c: Include config.h so that
17797 _GNU_SOURCE is defined and getline() is declared. Mark an
17798 unused argument as such. Fix a signedness warning.
17799
17800 2008-04-02 Pavel Roskin <proski@gnu.org>
17801
17802 * genkernsyms.sh.in: Use more robust assignments for CC and
17803 srcdir. Quote srcdir.
17804 * gensymlist.sh.in: Likewise. Assert at the compile time that
17805 the symbol table is not empty.
17806
17807 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17808 * fs/cpio.c (grub_cpio_read): Likewise.
17809
17810 2008-04-01 Pavel Roskin <proski@gnu.org>
17811
17812 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17813 * disk/host.c (grub_host_open): Likewise.
17814 * disk/loopback.c (grub_loopback_open): Likewise.
17815 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17816 disk->id as in disk/host.c, not a multi-character constant.
17817
17818 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17819 later is obsolete, potentially dangerous and sets a bad example.
17820 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17821 * util/misc.c (grub_util_get_image_size): Likewise.
17822
17823 * disk/loopback.c (options): Improve help for "--partitions".
17824
17825 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17826 options to align them with the short options, e.g. "echo -e".
17827
17828 2008-03-31 Bean <bean123ch@gmail.com>
17829
17830 * video/reader/png.c (grub_png_data): New member is_16bit and
17831 image_data.
17832 (grub_png_decode_image_header): Detect 16 bit png image.
17833 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17834 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17835 (grub_video_reader_png): Release memory occupied by image_data.
17836
17837 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17838 4096 bytes.
17839 (grub_nfs_mount): Skip the test for sector per cluster.
17840
17841 * include/grub/ntfs.h (MAX_SPC): Removed.
17842
17843 2008-03-31 Bean <bean123ch@gmail.com>
17844
17845 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17846 (grub_probe_SOURCES): Add fs/afs.c.
17847 (grub_fstest_SOURCES): Likewise.
17848 (afs_mod_SOURCES): New variable.
17849 (afs_mod_CFLAGS): Likewise.
17850 (afs_mod_LDFLAGS): Likewise.
17851
17852 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17853 (grub_emu_SOURCES): Likewise.
17854
17855 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17856
17857 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17858
17859 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17860
17861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17862
17863 * fs/afs.c: New file.
17864
17865 2008-03-30 Pavel Roskin <proski@gnu.org>
17866
17867 * disk/host.c: Include grub/misc.h to fix a warning.
17868 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17869 warnings about implicit declarations.
17870
17871 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17872 variable.
17873 * include/grub/i386/loader.h: Change declaration of
17874 grub_linux_boot() to match what grub_loader_set() expects.
17875 * util/getroot.c (grub_guess_root_device): Return const char* to
17876 fix a warning.
17877 * util/grub-probe.c (probe): Fix a warning about uninitialized
17878 abstraction_name variable.
17879 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17880 second argument as unused to fix a warning.
17881
17882 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17883 missing grub_error() call.
17884
17885 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17886 2.60 and newer uses it to define datadir.
17887
17888 * commands/sleep.c: Fix warning about implicit declaration.
17889 * disk/memdisk.c: Likewise.
17890 * loader/aout.c: Likewise.
17891 * loader/i386/bsd_normal.c: Likewise.
17892 * util/grub-probe.c: Likewise.
17893
17894 * commands/i386/cpuid.c (has_longmode): Make static.
17895 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17896 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17897
17898 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17899 GDT. This is more robust, as %ds can change.
17900 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17901 calling real_to_prot().
17902 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17903
17904 2008-03-28 Pavel Roskin <proski@gnu.org>
17905
17906 * kern/i386/pc/startup.S: Assert that uncompressed functions
17907 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17908 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17909 code, as they push parts of the code (error handlers) beyond
17910 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17911 code as correctness and size.
17912
17913 2008-03-28 Pavel Roskin <proski@gnu.org>
17914
17915 * kern/i386/pc/startup.S
17916 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17917 data block address to the real mode, keep offset minimal. This
17918 works around a bug in AWARD BIOS on old Athlon systems, which
17919 makes CD detection hang.
17920
17921 2008-03-26 Pavel Roskin <proski@gnu.org>
17922
17923 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17924 const.
17925 * include/grub/normal.h: Add grub_parse_color_name_pair()
17926 declaration.
17927
17928 2008-03-24 Bean <bean123ch@gmail.com>
17929
17930 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17931 (cd_count): Removed.
17932 (cd_drive): New variable.
17933 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17934 (grub_biosdisk_call_hook): Likewise.
17935 (grub_biosdisk_iterate): Change cdrom detection method.
17936 (grub_biosdisk_open): Replace cd_start with cd_drive.
17937 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17938 detect cdrom device.
17939
17940 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17941 Removed.
17942 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17943 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17944 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
17945 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
17946 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
17947 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
17948 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
17949 (grub_biosdisk_cdrp): New structure.
17950 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
17951
17952 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
17953
17954 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
17955 device.
17956
17957 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
17958 New function.
17959
17960 2008-03-20 Robert Millan <rmh@aybabtu.com>
17961
17962 Remove 2 TiB limit in ata.mod.
17963 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
17964 (grub_ata_dumpinfo): Print sector count with 0x%llx.
17965 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
17966 grub_uint64_t instead of grub_uint32_t.
17967
17968 2008-03-05 Bean <bean123ch@gmail.com>
17969
17970 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
17971 (grub_multiboot): Set boot device.
17972
17973 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
17974
17975 2008-03-02 Bean <bean123ch@gmail.com>
17976
17977 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
17978 symlink_buffer.
17979
17980 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
17981
17982 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
17983 texinfo.tex.
17984
17985 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
17986 modified.
17987
17988 * docs/fdl.texi: New file.
17989
17990 * docs/mdate-sh: New file. Copied from gnulib.
17991 * docs/texinfo.tex: Likewise.
17992
17993 * config.guess: Updated from gnulib.
17994 * install-sh: Likewise.
17995
17996 2008-02-28 Robert Millan <rmh@aybabtu.com>
17997
17998 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
17999 (aout_mod_SOURCES): New variable.
18000 (aout_mod_CFLAGS): Likewise.
18001 (aout_mod_LDFLAGS): Likewise.
18002
18003 * conf/i386-ieee1275.rmk: Likewise.
18004
18005 2008-02-28 Robert Millan <rmh@aybabtu.com>
18006
18007 * util/update-grub.in: Reorganise terminal validity check. Accept
18008 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18009 Based on suggestion by Franklin PIAT.
18010
18011 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18012
18013 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18014 function.
18015 * util/getroot.c (grub_util_check_block_device): New function that
18016 returns the given argument if it is a block device and returns NULL else.
18017 * util/grub-probe.c (argument_is_device): New variable.
18018 (probe): Promote device_name from a variable to an argument. Receive
18019 device_name from grub_util_check_block_device() if path is NULL and from
18020 grub_guess_root_device() else. Do not free() device_name anymore.
18021 (options): Introduce new parameter '-d, --device'.
18022 (main): Add description of the new parameter to the help screen.
18023 Rename path variable to argument. Set argument_is_device if the '-d'
18024 option is given. Pass argument to probe() depending on
18025 argument_is_device.
18026
18027 2008-02-24 Bean <bean123ch@gmail.com>
18028
18029 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18030 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18031 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18032 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18033 (GRUB_ISO9660_VOLDESC_END): Likewise.
18034 (grub_iso9660_primary_voldesc): New member escape.
18035 (grub_iso9660_data): New member joliet.
18036 (grub_iso9660_convert_string): New function.
18037 (grub_iso9660_mount): Detect joliet extension.
18038 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18039 (grub_iso9660_iso9660_label): Likewise.
18040
18041 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18042 (grub_setup_SOURCES): Add fs/udf.c.
18043 (grub_fstest_SOURCES): Likewise.
18044 (udf_mod_SOURCES): New variable.
18045 (udf_mod_CFLAGS): Likewise.
18046 (udf_mod_LDFLAGS): Likewise.
18047
18048 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18049 (grub_emu_SOURCES): Likewise.
18050
18051 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18052
18053 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18054
18055 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18056
18057 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18058
18059 * fs/udf.c: New file.
18060
18061 2008-02-24 Robert Millan <rmh@aybabtu.com>
18062
18063 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18064 (normal/lexer.c_DEPENDENCIES): New variables.
18065 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18066 (normal/lexer.c_DEPENDENCIES): Likewise.
18067 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18068 (normal/lexer.c_DEPENDENCIES): Likewise.
18069 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18070 (normal/lexer.c_DEPENDENCIES): Likewise.
18071 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18072 (normal/lexer.c_DEPENDENCIES): Likewise.
18073 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18074 (normal/lexer.c_DEPENDENCIES): Likewise.
18075
18076 2008-02-23 Robert Millan <rmh@aybabtu.com>
18077
18078 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18079 since they were intended to be in hex. This didn't break previously
18080 because of a bug in gpt_partition_map_iterate() (see below).
18081
18082 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18083 when checking the validity of GPT header.
18084 Remove `partno', since it always provides the same information as `i'.
18085
18086 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18087
18088 * include/grub/efi/time.h: Fix a wrong comment.
18089
18090 2008-02-19 Pavel Roskin <proski@gnu.org>
18091
18092 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18093 message.
18094
18095 2008-02-19 Bean <bean123ch@gmail.com>
18096
18097 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18098 (aout_mod_SOURCES): New variable.
18099 (aout_mod_CFLAGS): Likewise.
18100 (aout_mod_LDFLAGS): Likewise.
18101 (_bsd_mod_SOURCES): New variable.
18102 (_bsd_mod_CFLAGS): Likewise.
18103 (_bsd_mod_LDFLAGS): Likewise.
18104 (bsd_mod_SOURCES): New variable.
18105 (bsd_mod_CFLAGS): Likewise.
18106 (bsd_mod_LDFLAGS): Likewise.
18107
18108 * include/grub/aout.h: New file.
18109
18110 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18111
18112 * include/grub/i386/bsd.h: New file.
18113
18114 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18115 to make it public.
18116
18117 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18118 function is called, so that it's possible to change it inside the hook.
18119 (grub_elf64_load): Likewise.
18120 (grub_elf_file): Don't close the file if elf header is not found.
18121 (grub_elf_close): Close the file if grub_elf_file fails (The new
18122 grub_elf_file won't close it).
18123 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18124 (grub_elf64_size): Likewise.
18125
18126 * kern/i386/loader.S (grub_unix_real_boot): New function.
18127
18128 * loader/aout.c: New file.
18129
18130 * loader/i386/bsd.c: New file.
18131
18132 * loader/i386/bsd_normal.c: New file.
18133
18134 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18135
18136 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18137 can test other formats.
18138
18139 2008-02-19 Robert Millan <rmh@aybabtu.com>
18140
18141 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18142 (grub_gpt_partition_type_empty): Redefine with macro from
18143 `<grub/gpt_partition.h>'.
18144 (gpt_partition_map_iterate): Adjust partition type comparison.
18145
18146 Export `entry' as partmap-specific `part.data' struct.
18147 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18148
18149 * include/grub/gpt_partition.h (grub_gpt_header)
18150 (grub_gpt_partentry): ... to here (new file).
18151
18152 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18153
18154 (grub_gpt_partition_type_bios_boot): New const variable, defined
18155 with macro from `<grub/gpt_partition.h>'.
18156
18157 (setup): Replace `first_start' with `embed_region', which keeps
18158 track of the embed region (and is partmap-agnostic).
18159
18160 Replace find_first_partition_start() with find_usable_region(),
18161 which finds a usable region for embedding using partmap-specific
18162 knowledge (supports PC/MSDOS and GPT).
18163
18164 Fix all assumptions that the embed region start at sector 1, using
18165 `embed_region.start' from now on. Similarly, use `embed_region.end'
18166 rather than `first_start' to calculate available size.
18167
18168 In grub_util_info() message, replace "into after the MBR" with an
18169 indication of the specific sector our embed region starts at.
18170
18171 2008-02-19 Robert Millan <rmh@aybabtu.com>
18172
18173 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18174 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18175 `commands/reboot.c'.
18176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18177 (halt_mod_SOURCES): Likewise.
18178 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18179 (halt_mod_SOURCES): Likewise.
18180
18181 2008-02-17 Christian Franke <franke@computer.org>
18182
18183 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18184
18185 2008-02-17 Robert Millan <rmh@aybabtu.com>
18186
18187 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18188 set `first_start' to 0 for non-PC/MSDOS partition maps.
18189
18190 2008-02-16 Robert Millan <rmh@aybabtu.com>
18191
18192 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18193 do not assume partition map is PC/MSDOS before performing checks that
18194 are specific to that layout.
18195
18196 2008-02-13 Robert Millan <rmh@aybabtu.com>
18197
18198 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18199 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18200 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18201
18202 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18203
18204 * configure.ac: Only a cosmetic change on the handling of
18205 -fno-stack-protector.
18206
18207 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18208
18209 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18210 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18211 reboot.c.
18212 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18213 (halt_mod_SOURCES): New variable.
18214 (halt_mod_CFLAGS): Likewise.
18215 (halt_mod_LDFLAGS): Likewise.
18216 (reboot_mod_SOURCES): Likewise.
18217 (reboot_mod_CFLAGS): Likewise.
18218 (reboot_mod_LDFLAGS): Likewise.
18219
18220 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18221 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18222 reboot.c.
18223 (halt_mod_SOURCES): Likewise.
18224 (reboot_mod_SOURCES): Likewise.
18225
18226 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18227 commands/i386/pc/reboot.c by commands/reboot.c.
18228 (reboot_mod_SOURCES): Likewise.
18229
18230 * commands/i386/pc/reboot.c: merge this file ...
18231
18232 * commands/ieee1275/reboot.c: ... and this file ...
18233
18234 * commands/reboot.c: ... to this file.
18235 Add some precompiler directive to include the correct header for
18236 each machine.
18237
18238 * commands/ieee1275/halt.c: move this file ...
18239
18240 * commands/halt.c: ... to here.
18241 Add some precompiler directive to include the correct header for
18242 each machine.
18243
18244 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18245 (grub_halt): Likewise.
18246
18247 * kern/efi/efi.c (grub_reboot): New function.
18248 (grub_halt): Likewise.
18249
18250 2008-02-12 Robert Millan <rmh@aybabtu.com>
18251
18252 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18253 /dev (like it is done for /dev/mapper). This doesn't provide support
18254 for EVMS, but at least it is now easy to identify the problem when it
18255 arises.
18256
18257 2008-02-11 Robert Millan <rmh@aybabtu.com>
18258
18259 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18260 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18261 comparing it with -1, not 0.
18262
18263 2008-02-10 Robert Millan <rmh@aybabtu.com>
18264
18265 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18266 `disk/lvm.c'.
18267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18268 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18269
18270 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18271 `disk/lvm.c' to the end of the list.
18272 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18273 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18274
18275 2008-02-10 Robert Millan <rmh@aybabtu.com>
18276
18277 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18278 grub_print_error() instead. This will let user know why we're entering
18279 rescue mode.
18280 Based on suggestions from Sam Morris.
18281
18282 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18283
18284 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18285 on remaining N args, instead of "--" arg N times.
18286
18287 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18288
18289 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18290 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18291 pattern for unknown glyphs.
18292
18293 2008-02-09 Robert Millan <rmh@aybabtu.com>
18294
18295 * configure.ac: Probe for `help2man'.
18296 * Makefile.in (builddir): New variable.
18297 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18298 or otherwise add a few flags/options to it.
18299 (install-local): For every executable utility or script that is
18300 installed, invoke $(HELP2MAN) to install a manpage based on --help
18301 output.
18302
18303 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18304 that it doesn't prevent --help from working in build tree.
18305
18306 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18307 with `bug-grub@gnu.org'.
18308 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18309 * util/update-grub.in (usage): New function.
18310 Implement proper argument check, with support for --help and --version
18311 (as well as existing -y).
18312
18313 2008-02-09 Christian Franke <franke@computer.org>
18314
18315 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18316 avoid overwriting previous output.
18317 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18318
18319 2008-02-09 Robert Millan <rmh@aybabtu.com>
18320
18321 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18322 drawing the menu.
18323
18324 2008-02-09 Robert Millan <rmh@aybabtu.com>
18325
18326 * commands/sleep.c: New file.
18327 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18328 (sleep_mod_SOURCES): New variable.
18329 (sleep_mod_CFLAGS): Likewise.
18330 (sleep_mod_LDFLAGS): Likewise.
18331
18332 2008-02-09 Robert Millan <rmh@aybabtu.com>
18333
18334 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18335 situations in which we can deduce the RAID size and the superblock
18336 doesn't match it.
18337
18338 2008-02-09 Robert Millan <rmh@aybabtu.com>
18339
18340 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18341 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18342 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18343
18344 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18345 and return a grub_diskmemberlist_t composed of physical array members.
18346 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18347
18348 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18349 prototype.
18350 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18351 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18352 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18353
18354 * util/grub-probe.c (probe): Move partmap probing code from here ...
18355 (probe_partmap): ... to here.
18356 (probe): Use probe_partmap() once for the disk we're probing, and
18357 additionally, when such disk contains a memberlist() struct member,
18358 once for each disk that is contained in the structure returned by
18359 memberlist().
18360
18361 2008-02-09 Robert Millan <rmh@aybabtu.com>
18362
18363 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18364 environment variable to 'all' in order to obtain debug output from
18365 non-util/ code.
18366 * util/i386/pc/grub-setup.c (main): Likewise.
18367
18368 2008-02-08 Robert Millan <rmh@aybabtu.com>
18369
18370 * disk/raid.c (grub_raid_scan_device): Check for
18371 `array->device[sb.this_disk.number]' rather than for
18372 `array->device[sb.this_disk.number]->name', since the latter is not
18373 guaranteed to be accessible.
18374
18375 2008-02-08 Robert Millan <rmh@aybabtu.com>
18376
18377 * disk/raid.c: Update copyright.
18378 * fs/cpio.c: Likewise.
18379 * include/grub/raid.h: Likewise.
18380 * loader/i386/pc/multiboot.c: Likewise.
18381 * util/hostfs.c: Likewise.
18382
18383 2008-02-08 Robert Millan <rmh@aybabtu.com>
18384
18385 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18386 to a grub_disk_t array.
18387 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18388 `device[x]'.
18389 (grub_raid_scan_device): Replace `device[x].name' accesses with
18390 `device[x]->name'. Simplify initialization of `array->device[x]'.
18391
18392 2008-02-08 Robert Millan <rmh@aybabtu.com>
18393
18394 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18395 grub_dprintf() calls.
18396 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18397 error message.
18398
18399 2008-02-07 Christian Franke <franke@computer.org>
18400
18401 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18402 instead of fseek and ftell to support large files.
18403 (grub_hostfs_read): Likewise.
18404
18405 2008-02-07 Robert Millan <rmh@aybabtu.com>
18406
18407 Patch from Jeroen Dekkers.
18408 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18409 failure, since successfully reading all array members might not be
18410 required.
18411
18412 2008-02-06 Robert Millan <rmh@aybabtu.com>
18413
18414 * util/grub-probe.c (probe): Simplify partmap probing (with the
18415 assumption that the first word up to the underscore equals to
18416 the module name).
18417
18418 2008-02-06 Christian Franke <franke@computer.org>
18419
18420 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18421 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18422 last block of a cpio or tar stream.
18423 Check for "TRAILER!!!" instead of any empty data
18424 block to detect last block of a cpio stream.
18425 (grub_cpio_dir): Fix constness of variable np.
18426 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18427 cpio or tar trailer is detected. This fixes a crash
18428 on open of a non existing file.
18429
18430 2008-02-05 Bean <bean123ch@gmail.com>
18431
18432 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18433 address of entry.
18434 (grub_multiboot_load_elf64): Likewise.
18435 (grub_multiboot): Initialize mbi structure.
18436
18437 * util/grub-fstest.c: Don't include unused header file script.h.
18438
18439 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18440 of file.
18441 (grub_fstest_SOURCES): Likewise.
18442
18443 2008-02-05 Robert Millan <rmh@aybabtu.com>
18444
18445 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18446 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18447 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18448 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18449
18450 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18451 (translation_table): Replace hardcoded values with macros
18452 provided by `<grub/term.h>'.
18453
18454 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18455 (keyboard_map): Correct/add a few values, with macros provided
18456 by `<grub/term.h>'.
18457 (keyboard_map_shift): Zero values that don't differ from their
18458 `keyboard_map' equivalents.
18459 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18460 Discard the second scan code that is always sent by Caps lock.
18461 Only use `keyboard_map_shift' when it provides a non-zero value,
18462 otherwise fallback to `keyboard_map'.
18463
18464 2008-02-04 Bean <bean123ch@gmail.com>
18465
18466 * Makefile.in (enable_grub_fstest): New variable.
18467
18468 * conf/common.rmk (grub_fstest_init.lst): New rule.
18469 (grub_fstest_init.h): Likewise.
18470 (grub_fstest_init.c): Likewise.
18471 (util/grub-fstest.c_DEPENDENCIES): New variable.
18472 (grub_fstest_SOURCES): Likewise.
18473
18474 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18475
18476 * util/grub-fstest.c: New file.
18477
18478 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18479
18480 Make grub-setup handle a separate root device.
18481
18482 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18483 so that the root device can be compared with the destination
18484 device.
18485 When embedding the core image, if the root and destination devices
18486 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18487 0xFF.
18488 When not embedding, set ROOT_DRIVE to 0xFF.
18489
18490 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18491
18492 Add support for having a grub directory in a different drive. This
18493 is still only the data handling part.
18494
18495 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18496 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18497 (grub_root_drive): New variable.
18498
18499 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18500 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18501 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18502 as it was.
18503
18504 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18505
18506 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18507 macro.
18508 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18509
18510 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18511 is bogus, because PXE booting does not specify any drive
18512 correctly.
18513
18514 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18515 am not sure if this is really correct.
18516
18517 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18518 is always identical to the boot drive when booting from a CD.
18519
18520 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18521 longer.
18522 (root_drive): New variable.
18523 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18524 (setup_sectors): Push %dx right after popping it, because %dh will
18525 be modified later.
18526 (copy_buffer): Restore %dx.
18527
18528 2008-02-03 Robert Millan <rmh@aybabtu.com>
18529
18530 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18531 use `cdboot.img' for cdrom images.
18532
18533 2008-02-03 Robert Millan <rmh@aybabtu.com>
18534
18535 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18536 only setup gfxterm when `font' command has succeeded.
18537
18538 2008-02-03 Robert Millan <rmh@aybabtu.com>
18539
18540 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18541 (grub_rescue_cmd_multiboot_loader)
18542 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18543
18544 2008-02-03 Pavel Roskin <proski@gnu.org>
18545
18546 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18547 %edx and %esi from stack only after grub_gate_a20() is called.
18548 grub_gate_a20() clobbers %edx.
18549
18550 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18551
18552 * configure.ac (AC_INIT): Bumped to 1.96.
18553
18554 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18555 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18556 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18557 video/readers/png.c.
18558
18559 2008-02-03 Bean <bean123ch@gmail.com>
18560
18561 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18562 (cdboot_img_SOURCES): New variable.
18563 (cdboot_img_ASFLAGS): New variable.
18564 (cdboot_img_LDFLAGS): New variable.
18565
18566 * boot/i386/pc/cdboot.S: New file.
18567
18568 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18569 (cd_count): Likewise.
18570 (grub_biosdisk_get_drive): Add support for cd device.
18571 (grub_biosdisk_call_hook): Likewise.
18572 (grub_biosdisk_iterate): Likewise.
18573 (grub_biosdisk_open): Likewise.
18574 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18575 (grub_biosdisk_rw): Support reading from cd device.
18576 (GRUB_MOD_INIT): Iterate cd devices.
18577
18578 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18579 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18580 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18581
18582 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18583
18584 2008-02-02 Robert Millan <rmh@aybabtu.com>
18585
18586 * commands/read.c: New file.
18587 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18588 (read_mod_SOURCES): New variable.
18589 (read_mod_CFLAGS): Likewise.
18590 (read_mod_LDFLAGS): Likewise.
18591
18592 2008-02-02 Robert Millan <rmh@aybabtu.com>
18593
18594 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18595 determining whether menu has to be displayed.
18596
18597 2008-02-02 Marco Gerards <marco@gnu.org>
18598
18599 * bus/pci.c: New file.
18600
18601 * include/grub/pci.h: Likewise.
18602
18603 * include/grub/i386/pc/pci.h: Likewise.
18604
18605 * commands/lspci.c: Likewise.
18606
18607 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18608 `lspci.mod'.
18609 (pci_mod_SOURCES): New variable.
18610 (pci_mod_CFLAGS): Likewise.
18611 (pci_mod_LDFLAGS): Likewise.
18612 (lspci_mod_SOURCES): Likewise.
18613 (lspci_mod_CFLAGS): Likewise.
18614 (lspci_mod_LDFLAGS): Likewise.
18615
18616 2008-02-02 Bean <bean123ch@gmail.com>
18617
18618 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18619 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18620
18621 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18622 (grub_xfs_btree_node): New structure.
18623 (grub_xfs_btree_root): New structure.
18624 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18625 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18626 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18627 (GRUB_XFS_EXTENT_SIZE): Likewise.
18628 (grub_xfs_read_block): Support btree format type.
18629 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18630 Use directory block as basic unit.
18631
18632 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18633
18634 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18635 __attribute__ ((__regparm__ (1))).
18636
18637 2008-02-01 Robert Millan <rmh@aybabtu.com>
18638
18639 Correct a mistake in previous commit.
18640
18641 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18642 top.
18643 (normal/command.c_DEPENDENCIES): New variable.
18644
18645 2008-02-01 Robert Millan <rmh@aybabtu.com>
18646
18647 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18648 top.
18649 (normal/command.c_DEPENDENCIES): New variable.
18650 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18651 * conf/i386-ieee1275.rmk: Likewise.
18652 * conf/i386-linuxbios.rmk: Likewise.
18653 * conf/i386-pc.rmk: Likewise.
18654 * conf/sparc64-ieee1275.rmk: Likewise.
18655 * conf/powerpc-ieee1275.rmk: Likewise.
18656 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18657
18658 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18659
18660 2008-02-01 Robert Millan <rmh@aybabtu.com>
18661
18662 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18663 call at beginning of function.
18664
18665 2008-01-31 Pavel Roskin <proski@gnu.org>
18666
18667 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18668 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18669 (grub_mkrescue_SOURCES): Likewise.
18670 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18671
18672 2008-01-30 Robert Millan <rmh@aybabtu.com>
18673
18674 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18675 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18676 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18677 (grub_probe_SOURCES): ... to here.
18678
18679 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18680 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18681 * conf/i386-ieee1275.rmk: Likewise.
18682 * conf/i386-linuxbios.rmk: Likewise.
18683 * conf/powerpc-ieee1275.rmk: Likewise.
18684
18685 2008-01-30 Tristan Gingold <gingold@free.fr>
18686
18687 * kern/rescue.c: Silently accept empty lines.
18688
18689 2008-01-29 Bean <bean123ch@gmail.com>
18690
18691 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18692 (real_code_2): Code cleanup and change comment style.
18693 (move_memory): Avoid using 32-bit address mode.
18694
18695 2008-01-29 Bean <bean123ch@gmail.com>
18696
18697 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18698 (png_mod_SOURCES): New variable.
18699 (png_mod_CFLAGS): Likewise.
18700 (png_mod_LDFLAGS): Likewise.
18701
18702 * video/readers/png.c: New file.
18703
18704 2008-01-28 Robert Millan <rmh@aybabtu.com>
18705
18706 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18707 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18708 `ifndef GRUB_MOD_GAP' hack.
18709 * util/elf/grub-mkimage.c (add_segments): Likewise.
18710
18711 2008-01-27 Robert Millan <rmh@aybabtu.com>
18712
18713 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18714 `GRUB_MOD_GAP' for platforms in which it's not defined.
18715 * util/elf/grub-mkimage.c (add_segments): Likewise.
18716
18717 2008-01-27 Robert Millan <rmh@aybabtu.com>
18718
18719 Get grub-emu to build again (including parallel builds).
18720
18721 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18722 Split into ...
18723 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18724 (normal/execute.c_DEPENDENCIES): ... this, ...
18725 (grub-emu_DEPENDENCIES): ... and this.
18726
18727 * conf/i386-efi.rmk: Likewise.
18728 * conf/i386-linuxbios.rmk: Likewise.
18729 * conf/i386-ieee1275.rmk: Likewise.
18730 * conf/powerpc-ieee1275.rmk: Likewise.
18731 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18732
18733 2008-01-27 Robert Millan <rmh@aybabtu.com>
18734
18735 * NEWS: Add a few items.
18736
18737 2008-01-27 Robert Millan <rmh@aybabtu.com>
18738
18739 Fix parallel builds with grub-emu. Based on earlier commit for
18740 grub-probe and grub-setup.
18741
18742 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18743 (util/grub-emu.c_DEPENDENCIES): ... this.
18744 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18745 (util/grub-emu.c_DEPENDENCIES): ... this.
18746 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18747 (util/grub-emu.c_DEPENDENCIES): ... this.
18748 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18749 (util/grub-emu.c_DEPENDENCIES): ... this.
18750 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18751 (util/grub-emu.c_DEPENDENCIES): ... this.
18752
18753 2008-01-27 Pavel Roskin <proski@gnu.org>
18754
18755 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18756 to create a gap between _end and the modules added to the image
18757 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18758 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18759 * util/elf/grub-mkimage.c (add_segments): Likewise.
18760
18761 2008-01-26 Pavel Roskin <proski@gnu.org>
18762
18763 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18764 just return an error.
18765
18766 2008-01-26 Bean <bean123ch@gmail.com>
18767
18768 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18769 (grub_reiserfs_get_item): Save offset of the next item.
18770 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18771
18772 2008-01-25 Robert Millan <rmh@aybabtu.com>
18773
18774 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18775 make all filesystem sources appear together (possibly fixing omissions
18776 while at it).
18777 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18778 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18779 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18781
18782 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18783 add `kern/file.c'.
18784 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18785 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18786 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18787 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18788
18789 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18790 (probe): Add a sanity check to make sure of our ability to read
18791 requested files when probing for filesystem type.
18792
18793 * genmk.rb: Update copyright year (2007).
18794
18795 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18796 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18797 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18798 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18799 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18800 : Remove function prototypes.
18801
18802 2008-01-25 Robert Millan <rmh@aybabtu.com>
18803
18804 Revert my previous commits (based on wrong assumption of how grub_errno
18805 works).
18806
18807 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
18808 * kern/file.c (grub_file_open): Likewise.
18809
18810 2008-01-24 Pavel Roskin <proski@gnu.org>
18811
18812 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18813 that hang if GRUB tries to setup colors.
18814 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18815 colors for firmwares that don't support it.
18816 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18817 Recognize Open Hack'Ware, set flags to work around its
18818 limitations.
18819
18820 2008-01-24 Robert Millan <rmh@aybabtu.com>
18821
18822 * kern/file.c (grub_file_open): Do not account previous failures of
18823 unrelated functions when grub_errno is checked for.
18824 Reported by Oleg Strikov.
18825
18826 2008-01-24 Bean <bean123ch@gmail.com>
18827
18828 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18829 (grub_ufs_sblock): New member volume name.
18830 (grub_ufs_find_file): Fix string copy bug.
18831 (grub_ufs_label): Implement this function properly.
18832
18833 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18834 (grub_hfs_iterate_records): Use the correct file number for extents
18835 and catalog file. Fix problem in next index calculation.
18836 (grub_hfs_find_node): Replace recursive function call with loop.
18837 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18838
18839 2008-01-23 Robert Millan <rmh@aybabtu.com>
18840
18841 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18842 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18843 (grub_multiboot2_real_boot): New function prototype.
18844
18845 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18846 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18847
18848 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18849 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18850
18851 2008-01-23 Robert Millan <rmh@aybabtu.com>
18852
18853 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18854 #ifdef'ed out grub_printf().
18855
18856 2008-01-23 Robert Millan <rmh@aybabtu.com>
18857
18858 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18859 grub_dprintf calls, since they make "debug=all" mode unusable.
18860 (grub_console_checkkey): Likewise.
18861
18862 2008-01-23 Robert Millan <rmh@aybabtu.com>
18863
18864 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18865 `term/i386/pc/at_keyboard.c'.
18866 (pkglib_MODULES): Add `serial.mod'.
18867 (serial_mod_SOURCES): New variable.
18868 (serial_mod_CFLAGS): Likewise.
18869 (serial_mod_LDFLAGS): Likewise.
18870
18871 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18872 `<grub/powerpc/ieee1275/console.h>'.
18873 (grub_keyboard_controller_init): New function prototype.
18874 (grub_console_checkkey): Likewise.
18875 (grub_console_getkey): Likewise.
18876
18877 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18878 keyboard on i386.
18879
18880 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18881 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18882
18883 2008-01-23 Robert Millan <rmh@aybabtu.com>
18884
18885 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18886 present, "(memdisk)/boot/grub" becomes the default prefix.
18887
18888 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18889 a memdisk tarball with all the modules. Add --overlay=DIR option that
18890 allows users to overlay additional files into the image.
18891
18892 2008-01-23 Robert Millan <rmh@aybabtu.com>
18893
18894 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18895 and `machine/memory.h'.
18896 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18897 (_multiboot_mod_SOURCES): New variable.
18898 (_multiboot_mod_CFLAGS): Likewise.
18899 (_multiboot_mod_LDFLAGS): Likewise.
18900 (multiboot_mod_SOURCES): Likewise.
18901 (multiboot_mod_CFLAGS): Likewise.
18902 (multiboot_mod_LDFLAGS): Likewise.
18903
18904 * include/grub/i386/ieee1275/loader.h: New file.
18905
18906 * include/grub/i386/ieee1275/machine.h: Likewise.
18907
18908 * include/grub/i386/ieee1275/memory.h: Likewise.
18909
18910 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18911 variable declaration.
18912 (grub_os_area_size): Likewise.
18913
18914 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18915 (grub_lower_mem, grub_upper_mem): New variables.
18916 (grub_stop_floppy): New function (just to make
18917 grub_multiboot2_real_boot() happy).
18918
18919 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18920 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18921 (grub_stop): New function.
18922 Include `"../realmode.S"' and `"../loader.S"'.
18923
18924 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18925 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18926
18927 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18928 rely on grub_multiboot2_real_boot() for final boot.
18929
18930 2008-01-22 Robert Millan <rmh@aybabtu.com>
18931
18932 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18933 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18934 device that doesn't look like an SD card.
18935 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18936 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18937 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18938 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18939 found.
18940
18941 2008-01-22 Robert Millan <rmh@aybabtu.com>
18942
18943 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18944 avoid claiming over our own code.
18945
18946 2008-01-22 Bean <bean123ch@gmail.com>
18947
18948 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
18949 (jpeg_mod_SOURCES): New variable.
18950 (jpeg_mod_CFLAGS): Likewise.
18951 (jpeg_mod_LDFLAGS): Likewise.
18952
18953 * video/readers/jpeg.c : New file.
18954
18955 2008-01-22 Bean <bean123ch@gmail.com>
18956
18957 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
18958 there are no more items.
18959
18960 2008-01-21 Robert Millan <rmh@aybabtu.com>
18961
18962 * kern/mm.c (grub_mm_init_region): Improve debug message.
18963
18964 2008-01-21 Robert Millan <rmh@aybabtu.com>
18965
18966 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
18967 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
18968 address.
18969 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
18970 a C macro.
18971 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
18972 Indicates start of upper memory.
18973 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
18974 (generate_image): Abort when image size is big enough to corrupt
18975 upper memory.
18976
18977 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
18978 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
18979 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18980 instead of hardcoding 0xA0000.
18981 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
18982 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18983 instead of hardcoding 0xA0000.
18984
18985 2008-01-21 Robert Millan <rmh@aybabtu.com>
18986
18987 * disk/memdisk.c (memdisk_size): New variable.
18988 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
18989 `memdisk_size'.
18990 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
18991 image to dynamic memory.
18992 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
18993 `memdisk_size'. Free memdisk block.
18994
18995 2008-01-21 Robert Millan <rmh@aybabtu.com>
18996
18997 Fix detection of very small filesystems (like tar).
18998
18999 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19000 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19001 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19002 a problem with this disk).
19003
19004 2008-01-21 Robert Millan <rmh@aybabtu.com>
19005
19006 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19007 on grub_biosdisk_rw_standard() error.
19008
19009 2008-01-21 Robert Millan <rmh@aybabtu.com>
19010
19011 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19012 recent changes.
19013 * kern/elf.c: Likewise.
19014 * kern/ieee1275/ieee1275.c: Likewise.
19015 * kern/powerpc/ieee1275/openfw.c: Likewise.
19016 * term/ieee1275/ofconsole.c: Likewise.
19017
19018 2008-01-21 Robert Millan <rmh@aybabtu.com>
19019
19020 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19021
19022 * include/grub/kernel.h (grub_arch_memdisk_addr)
19023 (grub_arch_memdisk_size): Moved from here ...
19024
19025 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19026 (grub_arch_memdisk_size): ... to here.
19027
19028 2008-01-21 Robert Millan <rmh@aybabtu.com>
19029
19030 Mostly based on bugfix from Bean.
19031
19032 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19033 attribute with hook() parameter.
19034 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19035 declaration.
19036 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19037 attribute with hook() parameter.
19038 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19039 declaration.
19040
19041 2008-01-21 Robert Millan <rmh@aybabtu.com>
19042
19043 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19044 (pkglib_MODULES): Add `memdisk.mod'.
19045 (memdisk_mod_SOURCES): New variable.
19046 (memdisk_mod_CFLAGS): Likewise.
19047 (memdisk_mod_LDFLAGS): Likewise.
19048
19049 * disk/memdisk.c: New file.
19050
19051 * include/grub/disk.h (grub_disk_dev_id): Add
19052 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19053
19054 * include/grub/i386/pc/kernel.h
19055 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19056 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19057 (grub_kernel_image_size): New variable declaration.
19058 (grub_total_module_size): Likewise.
19059 (grub_memdisk_image_size): Likewise.
19060
19061 * include/grub/i386/pc/memory.h
19062 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19063
19064 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19065 (grub_arch_memdisk_addr): New variable declaration.
19066 (grub_arch_memdisk_size): Likewise.
19067
19068 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19069 (grub_arch_memdisk_size): Likewise.
19070
19071 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19072 (codestart): Replace hardcoded `0x100000' with
19073 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19074
19075 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19076 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19077 not NULL, append the contents of the file it refers to, at the end of
19078 the compressed kernel image. Initialize `grub_memdisk_image_size'
19079 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19080 (options): Add "memdisk"|'m' option.
19081 (main): Parse --memdisk|-m option, and pass user-provided path as
19082 parameter to generate_image().
19083
19084 2008-01-20 Robert Millan <rmh@aybabtu.com>
19085
19086 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19087 grub_dprintf() calls from here ...
19088 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19089
19090 2008-01-20 Robert Millan <rmh@aybabtu.com>
19091
19092 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19093
19094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19095 declaration.
19096 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19097 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19098 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19099 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19100 property).
19101 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19102 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19103
19104 2008-01-19 Robert Millan <rmh@aybabtu.com>
19105
19106 Get rid of confusing function (superseded by
19107 `grub_ieee1275_get_integer_property')
19108 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19109 prototype.
19110 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19111 function.
19112 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19113 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19114 in native endianness from grub_ieee1275_get_integer_property().
19115
19116 2008-01-19 Robert Millan <rmh@aybabtu.com>
19117
19118 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19119 command after "shut-down", since implementations differ on which
19120 the command for halt is.
19121
19122 2008-01-19 Robert Millan <rmh@aybabtu.com>
19123
19124 * include/grub/i386/linuxbios/console.h: Add header protection.
19125 (grub_keyboard_controller_init): New function prototype.
19126 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19127 (KEYBOARD_COMMAND_READ): Likewise.
19128 (KEYBOARD_COMMAND_WRITE): Likewise.
19129 (KEYBOARD_SCANCODE_SET1): Likewise.
19130 (grub_keyboard_controller_write): New function.
19131 (grub_keyboard_controller_read): Likewise.
19132 (grub_keyboard_controller_init): Likewise.
19133
19134 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19135 (grub_console_init): On coreboot/LinuxBIOS, call
19136 grub_keyboard_controller_init().
19137
19138 2008-01-19 Robert Millan <rmh@aybabtu.com>
19139
19140 PowerPC changes provided by Pavel Roskin.
19141
19142 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19143 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19144 don't rely on cmain() doing it.
19145 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19146 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19147
19148 2008-01-16 Robert Millan <rmh@aybabtu.com>
19149
19150 * include/grub/i386/linuxbios/memory.h
19151 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19152 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19153 receive `table_header' as argument. Instead, probe for it in the
19154 known memory ranges where it can be present.
19155 (grub_available_iterate): Do not pass a fixed `table_header' address
19156 to grub_linuxbios_table_iterate().
19157
19158 2008-01-15 Robert Millan <rmh@aybabtu.com>
19159
19160 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19161 * conf/i386-ieee1275.rmk: New file.
19162 * include/grub/i386/ieee1275/console.h: Likewise.
19163 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19164 * include/grub/i386/ieee1275/kernel.h: Likewise.
19165 * include/grub/i386/ieee1275/time.h: Likewise.
19166 * kern/i386/ieee1275/init.c: Likewise.
19167 * kern/i386/ieee1275/startup.S: Likewise.
19168
19169 2008-01-15 Robert Millan <rmh@aybabtu.com>
19170
19171 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19172 when pointers are 32-bit (but still do set it to one when they are
19173 64-bit).
19174
19175 2008-01-15 Robert Millan <rmh@aybabtu.com>
19176
19177 * include/grub/ieee1275/ieee1275.h
19178 (grub_ieee1275_get_integer_property): New function prototype.
19179
19180 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19181 (grub_ieee1275_get_integer_property): New function. Wraps around
19182 grub_ieee1275_get_property() to handle endianness.
19183
19184 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19185 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19186 where appropriate.
19187 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19188 (grub_map): Likewise.
19189 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19190
19191 2008-01-15 Bean <bean123ch@gmail.com>
19192
19193 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19194 (grub_script_execute_cmdline): Reset grub_errno.
19195
19196 * normal/main.c (read_config_file): Reset grub_errno.
19197
19198 * normal/parse.y (script_init): New.
19199 (script): Move function and menuentry here.
19200 (delimiter): New.
19201 (command): Add delimiter at the end of command.
19202 (commands): Adjust to match the new command.
19203 (commandblock): Remove grub_script_lexer_record_start.
19204 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19205 (if): Use the new commands.
19206
19207 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19208
19209 2008-01-15 Robert Millan <rmh@aybabtu.com>
19210
19211 * normal/menu.c (run_menu): Move timeout message from here ...
19212 (print_timeout): ... to here.
19213 (run_menu): Use print_timeout() once during initial draw to print
19214 the whole message, and again in every clock tick to update only
19215 the number of seconds.
19216
19217 2008-01-15 Robert Millan <rmh@aybabtu.com>
19218
19219 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19220 actual size of `available' from grub_ieee1275_get_property(), and
19221 restrict parsing to that bound.
19222
19223 2008-01-15 Christian Franke <franke@computer.org>
19224
19225 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19226 (argp_program_version): Remove variable.
19227 (argp_program_bug_address): Likewise.
19228 (options): Convert from struct argp_option to struct option.
19229 (struct arguments): Remove.
19230 (parse_opt): Remove.
19231 (usage): New function.
19232 (main): Replace struct args members by simple variables.
19233 Replace argp_parse() by getopt_long().
19234 Add switch to evaluate options.
19235 Add missing "(...)" around root_dev in prefix string.
19236
19237 2008-01-14 Robert Millan <rmh@aybabtu.com>
19238
19239 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19240 for grub_ieee1275_exit(), in order to improve portability.
19241
19242 2008-01-14 Robert Millan <rmh@aybabtu.com>
19243
19244 * util/grub.d/10_linux.in (prefix): Define.
19245 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19246
19247 2008-01-13 Pavel Roskin <proski@gnu.org>
19248
19249 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19250 grub_errno if no errors have been detected.
19251
19252 2008-01-12 Robert Millan <rmh@aybabtu.com>
19253
19254 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19255 (grub_util_get_dev_abstraction): New function prototype.
19256
19257 * util/getroot.c: Include `<grub/util/getroot.h>'
19258 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19259 (grub_util_get_dev_abstraction): ... here (new function).
19260
19261 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19262 `PRINT_ABSTRACTION'.
19263 (probe): Probe for abstraction type when requested.
19264 (main): Understand `--target=abstraction'.
19265
19266 * util/i386/efi/grub-install.in: Add abstraction module to core
19267 image when it is found to be necessary.
19268 * util/i386/pc/grub-install.in: Likewise.
19269 * util/powerpc/ieee1275/grub-install.in: Likewise.
19270
19271 * util/update-grub_lib.in (font_path): Return system path without
19272 converting to GRUB path.
19273 * util/update-grub.in: Convert system path returned by font_path()
19274 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19275 abstraction module is needed for loading fonts (if any). Export
19276 that as `GRUB_PRELOAD_MODULES'.
19277 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19278 insmod commands).
19279
19280 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19281
19282 Remove some unused code from reiserfs.
19283
19284 * fs/reiserfs.c (struct grub_reiserfs_key)
19285 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19286 (struct grub_reiserfs_node_body): Removed.
19287 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19288 Likewise.
19289 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19290 Likewise.
19291 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19292 Likewise.
19293 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19294 Likewise.
19295 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19296 Likewise.
19297 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19298 Likewise.
19299 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19300 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19301 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19302
19303 2008-01-10 Robert Millan <rmh@aybabtu.com>
19304
19305 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19306 Determines if a file is garbage left by packaging systems, etc.
19307 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19308 for processing /etc/grub.d scripts.
19309 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19310 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19311 as a condition for processing Linux images.
19312
19313 2008-01-10 Pavel Roskin <proski@gnu.org>
19314
19315 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19316 to compile reiserfs.c on PowerPC.
19317
19318 2008-01-10 Robert Millan <rmh@aybabtu.com>
19319
19320 * kern/device.c (grub_device_iterate): Do not abort device iteration
19321 when one of the devices cannot be opened.
19322 * kern/disk.c (grub_disk_open): Do not account previous failures of
19323 unrelated functions when grub_errno is checked for.
19324
19325 2008-01-08 Robert Millan <rmh@aybabtu.com>
19326
19327 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19328 `! grub_linux_is_bzimage', change order of address comparison to make
19329 it more intuitive, and improve "too big zImage" error message.
19330
19331 2008-01-08 Robert Millan <rmh@aybabtu.com>
19332
19333 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19334 `$(update-grub_DATA)'.
19335 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19336 targets.
19337
19338 2008-01-07 Robert Millan <rmh@aybabtu.com>
19339
19340 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19341 which instruction is modified by grub-setup during installation
19342 (since it wasn't obvious by only looking at this file).
19343
19344 2008-01-07 Robert Millan <rmh@aybabtu.com>
19345
19346 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19347 listing actual TODO items.
19348
19349 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19350
19351 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19352 correctly.
19353 (grub_reiserfs_get_key_offset): Likewise.
19354 (grub_reiserfs_set_key_offset): Likewise.
19355 (grub_reiserfs_set_key_type): Likewise.
19356 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19357
19358 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19359 better to remove the bitfield version completely.
19360
19361 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19362
19363 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19364 allocated from the heap, due to the fshelp implementation.
19365 (grub_reiserfs_dir): Free NODE, due to the same reason.
19366
19367 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19368
19369 Mostly from Vincent Pelletier:
19370
19371 * fs/reiserfs.c: New file.
19372
19373 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19374 (reiserfs_mod_SOURCES): New variable.
19375 (reiserfs_mod_CFLAGS): Likewise.
19376 (reiserfs_mod_LDFLAGS): Likewise.
19377
19378 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19379 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19380 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19381 normal/color.c.
19382
19383 2008-01-06 Robert Millan <rmh@aybabtu.com>
19384
19385 * normal/color.c: Remove `<grub/env.h>'.
19386
19387 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19388
19389 * include/grub/normal.h: Include <grub/env.h>.
19390
19391 2008-01-05 Robert Millan <rmh@aybabtu.com>
19392
19393 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19394 usage example with `(hd0,1)'.
19395 Reported by Samuel Thibault.
19396
19397 2008-01-05 Robert Millan <rmh@aybabtu.com>
19398
19399 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19400 (grub_linux_boot_zimage): Rename to ...
19401 (grub_linux_boot): ... this.
19402 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19403 (grub_linux_boot_zimage): Conditionalize zImage copy.
19404
19405 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19406 (grub_linux_boot_bzimage): Remove prototype.
19407 (grub_linux_boot_zimage): Rename to ...
19408 (grub_linux_boot): ... this.
19409
19410 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19411 (grub_linux_boot): Remove function.
19412
19413 2008-01-05 Robert Millan <rmh@aybabtu.com>
19414
19415 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19416 (grub_env_write_color_highlight): Likewise.
19417 (grub_wait_after_message): Likewise.
19418
19419 * normal/color.c: New file.
19420
19421 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19422 (normal_mod_DEPENDENCIES): Likewise.
19423
19424 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19425 (normal_mod_DEPENDENCIES): Likewise.
19426
19427 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19428 (normal_mod_DEPENDENCIES): Likewise.
19429
19430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19431 (normal_mod_DEPENDENCIES): Likewise.
19432
19433 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19434 for waiting after a message is printed.
19435 * normal/main.c (read_config_file): Likewise.
19436 (grub_normal_init): Register grub_env_write_color_normal() and
19437 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19438 `color_highlight' variables as global.
19439
19440 * normal/menu.c (grub_wait_after_message): New function.
19441 (grub_color_menu_normal): New variable. Replaces ...
19442 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19443 (grub_color_menu_highlight): New variable. Replaces ...
19444 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19445 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19446 `GRUB_TERM_COLOR_STANDARD'.
19447 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19448 `normal_code' and `highlight_code' to `old_color_normal' and
19449 `old_color_highlight', respectively.
19450 (grub_menu_init_page): Update colors when drawing the menu, based on
19451 `menu_color_normal' and `menu_color_highlight' variables.
19452 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19453 a message is printed.
19454
19455 2008-01-05 Robert Millan <rmh@aybabtu.com>
19456
19457 * kern/env.c (grub_env_context_open): Propagate hooks for global
19458 variables to new context.
19459
19460 * kern/main.c (grub_set_root_dev): Export `root' variable.
19461
19462 2008-01-05 Robert Millan <rmh@aybabtu.com>
19463
19464 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19465 discs unconditionally, since udev and others have options to provide
19466 them.
19467
19468 2008-01-05 Robert Millan <rmh@aybabtu.com>
19469
19470 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19471
19472 2008-01-04 Christian Franke <franke@computer.org>
19473
19474 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19475 of eisa_mmap.
19476
19477 2008-01-03 Pavel Roskin <proski@gnu.org>
19478
19479 * kern/i386/linuxbios/init.c: Put "void" to all function
19480 declarations with no arguments.
19481 * kern/powerpc/ieee1275/init.c: Likewise.
19482 * term/i386/pc/at_keyboard.c: Likewise.
19483 * term/i386/pc/vga_text.c: Likewise.
19484 * util/grub-mkdevicemap.c: Likewise.
19485
19486 2008-01-02 Robert Millan <rmh@aybabtu.com>
19487
19488 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19489 message when loaded image is out of bounds.
19490 (grub_multiboot_load_elf64): Likewise.
19491
19492 2008-01-02 Pavel Roskin <proski@gnu.org>
19493
19494 * util/grub.d/10_linux.in: Try version without ".old" when
19495 looking for initrd. It's better to use initrd from the newer
19496 kernel of the same version than no initrd at all.
19497
19498 2008-01-01 Robert Millan <rmh@aybabtu.com>
19499
19500 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19501
19502 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19503
19504 * include/grub/video.h: Added grub_video_unmap_color and
19505 grub_video_get_active_render_target.
19506 (grub_video_adapter): Added unmap_color and get_active_render_target.
19507
19508 * video/video.c: Added grub_video_unmap_color and
19509 grub_video_get_active_render_target.
19510 (grub_video_get_info): Changed method to accept NULL pointer as an
19511 argument to allow detection of active video adapter.
19512
19513 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19514 grub_video_vbe_unmap_color_int.
19515 Added grub_video_vbe_unmap_color and
19516 grub_video_vbe_get_active_render_target.
19517 (grub_video_vbe_adapter): Added unmap_color and
19518 get_active_render_target.
19519
19520 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19521 with grub_video_vbe_unmap_color_int.
19522
19523 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19524 (DEFAULT_NORMAL_COLOR): Likewise.
19525 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19526 (DEFAULT_FG_COLOR): Removed.
19527 (DEFAULT_BG_COLOR): Likewise.
19528 (DEFAULT_CURSOR_COLOR): Changed value.
19529 (grub_virtual_screen): Added standard_color_setting,
19530 normal_color_setting, highlight_color_setting and term_color.
19531 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19532 (bitmap_width): Added.
19533 (bitmap_height): Likewise.
19534 (bitmap): Likewise.
19535 (set_term_color): Likewise.
19536 (grub_virtual_screen_setup): Changed to use new terminal coloring
19537 settings.
19538 (grub_gfxterm_init): Added init for bitmap.
19539 (grub_gfxterm_fini): Added destroy for bitmap.
19540 (redraw_screen_rect): Updated to use background bitmap and new
19541 terminal coloring.
19542 (scroll_up): Added optimization for case when there is no bitmap.
19543 (grub_gfxterm_cls): Fixed to use correct background color.
19544 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19545 coloring.
19546 (grub_virtual_screen_setcolor): Likewise.
19547 (grub_virtual_screen_getcolor): Added.
19548 (grub_gfxterm_background_image_cmd): Likewise.
19549 (grub_video_term): Added setcolor and getcolor.
19550 (MOD_INIT): Added registration of background_image command.
19551 (MOD_TERM): Added unregistration for background_image command.
19552
19553 2007-12-30 Pavel Roskin <proski@gnu.org>
19554
19555 * loader/multiboot_loader.c: Fix multiboot command
19556 unregistration. Fix all typos in the word "multiboot".
19557
19558 2007-12-29 Pavel Roskin <proski@gnu.org>
19559
19560 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19561 support for initrd names used in Fedora.
19562
19563 2007-12-26 Bean <bean123ch@gmail.com>
19564
19565 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19566 (cpio_mod_SOURCES): New variable.
19567 (cpio_mod_CFLAGS): Likewise.
19568 (cpio_mod_LDFLAGS): Likewise.
19569
19570 * fs/cpio.c: New file.
19571
19572 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19573
19574 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19575
19576 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19577
19578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19579
19580 2007-12-25 Robert Millan <rmh@aybabtu.com>
19581
19582 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19583 (grub_getcolor): New function.
19584
19585 * kern/term.c (grub_getcolor): New function.
19586 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19587 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19588 (print_entry): Set normal and highlight colors to
19589 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19590 respectively, before printing and restore them to old
19591 values afterwards.
19592 (grub_menu_init_page): Likewise. Fill an additional colored space
19593 that would otherwise be left blank.
19594
19595 * term/efi/console.c (grub_console_getcolor): New function.
19596 (struct grub_console_term.getcolor): New variable.
19597 * term/i386/pc/console.c (grub_console_getcolor): New function.
19598 (struct grub_console_term.getcolor): New variable.
19599 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19600 (struct grub_console_term.getcolor): New variable.
19601
19602 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19603 (struct grub_console_term.setcolor): Remove variable.
19604 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19605 (struct grub_console_term.setcolor): Remove variable.
19606 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19607 (struct grub_console_term.setcolor): Remove variable.
19608 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19609 (struct grub_console_term.setcolor): Remove variable.
19610
19611 2007-12-25 Robert Millan <rmh@aybabtu.com>
19612
19613 * configure.ac: Search for possible unifont.hex locations, and
19614 define UNIFONT_HEX if found.
19615
19616 * Makefile.in (UNIFONT_HEX): Define variable.
19617 (DATA): Rename to ...
19618 (PKGLIB): ... this. Update all users.
19619 (PKGDATA): New variable.
19620 (pkgdata_IMAGES): Rename to ...
19621 (pkglib_IMAGES): ... this. Update all users.
19622 (pkgdata_MODULES): Rename to ...
19623 (pkglib_MODULES): ... this. Update all users.
19624 (pkgdata_PROGRAMS): Rename to ...
19625 (pkglib_PROGRAMS): ... this. Update all users.
19626 (pkgdata_DATA): Rename to ...
19627 (pkglib_DATA): ... this. Update all users.
19628 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19629 (unicode.pff, ascii.pff): New rules.
19630 (all-local): Add `$(PKGDATA)' dependency.
19631 (install-local): Process `$(PKGDATA)'.
19632
19633 * util/update-grub_lib.in (font_path): Search for *.pff files in
19634 a few more locations, including `${pkgdata}'.
19635
19636 2007-12-23 Robert Millan <rmh@aybabtu.com>
19637
19638 Patch from Bean <bean123ch@gmail.com>:
19639 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19640 `size'.
19641
19642 2007-12-21 Bean <bean123ch@gmail.com>
19643
19644 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19645 (ntfscomp_mod_SOURCES): New variable.
19646 (ntfscomp_mod_CFLAGS): Likewise.
19647 (ntfscomp_mod_LDFLAGS): Likewise.
19648
19649 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19650 (grub_probe_SOURCES): Likewise.
19651 (grub_emu_SOURCES): Likewise.
19652
19653 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19654 (grub_emu_SOURCES): Likewise.
19655
19656 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19657 (grub_emu_SOURCES): Likewise.
19658
19659 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19660 (grub_emu_SOURCES): Likewise.
19661
19662 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19663 (read_run_list): Renamed to grub_ntfs_read_run_list.
19664 (decomp_nextvcn): Moved to ntfscomp.c.
19665 (decomp_getch): Likewise.
19666 (decomp_get16): Likewise.
19667 (decomp_block): Likewise.
19668 (read_block): Likewise.
19669 (read_data): Partially moved to ntfscomp.c.
19670 (fixup): Change unsigned to grub_uint16_t.
19671 (read_mft): Change unsigned long to grub_uint32_t.
19672 (read_attr): Likewise.
19673 (read_data): Likewise.
19674 (read_run_data): Likewise.
19675 (read_run_list): Likewise.
19676 (read_mft): Likewise.
19677
19678 * fs/ntfscomp.c: New file.
19679
19680 * include/grub/ntfs.h: New file.
19681
19682 2007-12-16 Robert Millan <rmh@aybabtu.com>
19683
19684 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19685 IDE disk check, since Linux is known to support 20 IDE disks.
19686 Reported by Colin Watson.
19687
19688 2007-12-15 Bean <bean123ch@gmail.com>
19689
19690 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19691 (lnxboot_img_SOURCES): New variable.
19692 (lnxboot_img_ASFLAGS): Likewise.
19693 (lnxboot_img_LDFLAGS): Likewise.
19694
19695 * boot/i386/pc/lnxboot.S: New file.
19696
19697 2007-11-24 Pavel Roskin <proski@gnu.org>
19698
19699 * configure.ac: Test if '--build-id=none' is supported by the
19700 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19701 objcopy to generate incorrect binary files (binutils
19702 2.17.50.0.18-1 as shipped by Fedora 8).
19703 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19704 linking, so that build ID doesn't break the test.
19705
19706 2007-11-24 Pavel Roskin <proski@gnu.org>
19707
19708 * include/grub/i386/time.h: use "void" in the argument list
19709 of grub_cpu_idle().
19710 * include/grub/powerpc/time.h: Likewise.
19711 * include/grub/sparc64/time.h: Likewise.
19712
19713 2007-11-18 Christian Franke <franke@computer.org>
19714
19715 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19716 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19717 This fixes the problem that function keys did not work in grub-emu.
19718
19719 2007-11-18 Christian Franke <franke@computer.org>
19720
19721 * disk/host.c (grub_host_open): Remove attribute unused from
19722 name parameter. Add check for "host". This fixes the problem
19723 that grub-emu does not find partitions.
19724
19725 2007-11-18 Christian Franke <franke@computer.org>
19726
19727 * util/hostfs.c (is_dir): New function.
19728 (grub_hostfs_dir): Handle missing dirent.d_type case.
19729 (grub_hostfs_read): Add missing fseek().
19730 (grub_hostfs_label): Clear label pointer. This fixes a crash
19731 of grub-emu on "ls (host)".
19732
19733 2007-11-18 Christian Franke <franke@computer.org>
19734
19735 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19736 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19737 to 64 bit boundary by default.
19738
19739 2007-11-18 Bean <bean123ch@gmail.com>
19740
19741 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19742 (hexdump_mod_SOURCES): New variable.
19743 (hexdump_mod_CFLAGS): Likewise.
19744 (hexdump_mod_LDFLAGS): Likewise.
19745
19746 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19747
19748 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19749
19750 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19751
19752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19753
19754 * include/grub/hexdump.h: New file.
19755
19756 * commands/hexdump.c: New file.
19757
19758 2007-11-10 Robert Millan <rmh@aybabtu.com>
19759
19760 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19761 in grub_outb() calls.
19762 (beep_on): Likewise.
19763
19764 2007-11-10 Christian Franke <franke@computer.org>
19765
19766 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19767 (grub_menu_run): Likewise.
19768
19769 2007-11-10 Robert Millan <rmh@aybabtu.com>
19770
19771 * include/grub/i386/efi/machine.h: New file.
19772 * include/grub/i386/linuxbios/machine.h: Likewise.
19773 * include/grub/i386/pc/machine.h: Likewise.
19774 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19775 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19776
19777 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19778 (serial_hw_io_addr): New variable.
19779 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19780 instead of `(unsigned short *) 0x400'.
19781
19782 2007-11-10 Bean <bean123ch@gmail.com>
19783
19784 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19785
19786 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19787
19788 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19789 (vga_mod_SOURCES): Added.
19790 (vga_mod_CFLAGS): Likewise.
19791 (vga_mod_LDFLAGS): Likewise.
19792
19793 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19794 grub_outb() calls.
19795 (set_map_mask): Likewise.
19796 (set_read_map): Likewise.
19797 (set_read_address): Likewise.
19798 (vga_font): Removed variable.
19799 (get_vga_glyph): Removed function.
19800 (invalidate_char): Likewise.
19801 (write_char): Changed to use grub_font_get_glyph() for font
19802 information.
19803 (grub_vga_putchar): Likewise.
19804 (grub_vga_getcharwidth): Likewise.
19805
19806 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19807
19808 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19809 flags.
19810 (pxeboot_img_LDFLAGS): Likewise.
19811 (diskboot_img_LDFLAGS): Likewise.
19812 (kernel_img_LDFLAGS): Likewise.
19813
19814 2007-11-06 Robert Millan <rmh@aybabtu.com>
19815
19816 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19817 in grub_outb() calls.
19818 (serial_hw_init): Likewise.
19819
19820 2007-11-05 Robert Millan <rmh@aybabtu.com>
19821
19822 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19823 spaces. Skip non-regular files.
19824
19825 2007-11-05 Robert Millan <rmh@aybabtu.com>
19826
19827 * kern/disk.c (grub_disk_firmware_fini)
19828 (grub_disk_firmware_is_tainted): New variables.
19829
19830 * include/grub/disk.h (grub_disk_firmware_fini)
19831 (grub_disk_firmware_is_tainted): Likewise.
19832
19833 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19834 (grub_disk_biosdisk_fini): ... to here.
19835 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19836 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19837 is set. Register grub_disk_biosdisk_fini() in
19838 `grub_disk_firmware_fini'.
19839
19840 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19841 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19842 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19843 to finish existing firmware disk interface.
19844
19845 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19846 (ata_mod_SOURCES): New variable.
19847 (ata_mod_CFLAGS): Likewise.
19848 (ata_mod_LDFLAGS): Likewise.
19849
19850 2007-11-05 Robert Millan <rmh@aybabtu.com>
19851
19852 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19853 (grub_ata_wait): Reimplement using grub_millisleep().
19854
19855 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19856 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19857
19858 2007-11-03 Marco Gerards <marco@gnu.org>
19859
19860 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19861 (CRTC_ADDR_PORT): New macro.
19862 (CRTC_DATA_PORT): Likewise.
19863 (CRTC_CURSOR): Likewise.
19864 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19865 (CRTC_CURSOR_ADDR_LOW): Likewise.
19866 (update_cursor): New function.
19867 (grub_console_real_putchar): Call `update_cursor'.
19868 (grub_console_gotoxy): Likewise.
19869 (grub_console_cls): Set the default color when clearing the
19870 screen.
19871 (grub_console_setcursor): Implemented.
19872
19873 2007-11-03 Marco Gerards <marco@gnu.org>
19874
19875 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19876 become activate.
19877 (grub_ata_pio_write): Likewise.
19878
19879 (grub_atapi_identify): Wait after issuing an ATA command.
19880 (grub_atapi_packet): Likewise.
19881 (grub_ata_identify): Likewise.
19882 (grub_ata_readwrite): Likewise.
19883
19884 2007-11-03 Marco Gerards <marco@gnu.org>
19885
19886 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19887 (grub_ata_pio_write): Likewise.
19888 (grub_ata_readwrite): Use `grub_error', instead of
19889 returning `grub_errno'.
19890
19891 2007-11-03 Marco Gerards <marco@gnu.org>
19892
19893 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19894 grub_ata_pio_write once for every single sector, instead of for
19895 multiple sectors.
19896
19897 2007-10-31 Robert Millan <rmh@aybabtu.com>
19898
19899 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19900
19901 * conf/i386-linuxbios.rmk: New file.
19902
19903 * kern/i386/pc/hardware.c: Likewise.
19904 * term/i386/pc/at_keyboard.c: Likewise.
19905 * term/i386/pc/vga_text.c: Likewise.
19906
19907 * include/grub/i386/linuxbios/boot.h: Likewise.
19908 * include/grub/i386/linuxbios/console.h: Likewise.
19909 * include/grub/i386/linuxbios/init.h: Likewise.
19910 * include/grub/i386/linuxbios/kernel.h: Likewise.
19911 * include/grub/i386/linuxbios/loader.h: Likewise.
19912 * include/grub/i386/linuxbios/memory.h: Likewise.
19913 * include/grub/i386/linuxbios/serial.h: Likewise.
19914 * include/grub/i386/linuxbios/time.h: Likewise.
19915
19916 * kern/i386/linuxbios/init.c: Likewise.
19917 * kern/i386/linuxbios/startup.S: Likewise.
19918 * kern/i386/linuxbios/table.c: Likewise.
19919
19920 2007-10-31 Marco Gerards <marco@gnu.org>
19921
19922 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19923 (ata_mod_SOURCES): New variable.
19924 (ata_mod_CFLAGS): Likewise.
19925 (ata_mod_LDFLAGS): Likewise.
19926
19927 * disk/ata.c: New file.
19928
19929 * include/grub/disk.h (grub_disk_dev_id): Add
19930 `GRUB_DISK_DEV_ATA_ID'.
19931
19932 2007-10-31 Robert Millan <rmh@aybabtu.com>
19933
19934 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19935 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19936
19937 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19938 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19939
19940 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19941 `<grub/types.h>'.
19942
19943 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19944
19945 2007-10-27 Robert Millan <rmh@aybabtu.com>
19946
19947 * include/grub/types.h (ULONG_MAX): Define macro.
19948
19949 2007-10-22 Robert Millan <rmh@aybabtu.com>
19950
19951 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
19952 `"../realmode.S"'.
19953 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
19954
19955 2007-10-22 Robert Millan <rmh@aybabtu.com>
19956
19957 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
19958 (pkgdata_MODULES): Add `biosdisk.mod'.
19959 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
19960 variables.
19961
19962 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
19963 (grub_biosdisk_init): Replace with ...
19964 (GRUB_MOD_INIT(biosdisk)): ... this.
19965 (grub_biosdisk_fini): Replace with ...
19966 (GRUB_MOD_FINI(biosdisk)): ... this.
19967
19968 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
19969 (grub_machine_init): Remove call to grub_biosdisk_init().
19970 (grub_machine_fini): Remove call to grub_machine_fini().
19971
19972 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
19973
19974 2007-10-22 Robert Millan <rmh@aybabtu.com>
19975
19976 * include/grub/time.h: New file.
19977 * include/grub/i386/time.h: Likewise.
19978 * include/grub/powerpc/time.h: Likewise.
19979 * include/grub/sparc64/time.h: Likewise.
19980
19981 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
19982 instances to ...
19983 (KERNEL_MACHINE_TIME_HEADER): ... this.
19984 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19985 instances to ...
19986 (KERNEL_MACHINE_TIME_HEADER): ... this.
19987 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19988 instances to ...
19989 (KERNEL_MACHINE_TIME_HEADER): ... this.
19990
19991 * kern/i386/efi/init.c: Include `<grub/time.h>'.
19992 (grub_millisleep): New function.
19993 * kern/i386/pc/init.c: Include `<grub/time.h>'.
19994 (grub_millisleep): New function.
19995 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
19996 Remove `grub/machine/time.h' include.
19997 (grub_millisleep): New function.
19998 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
19999 Remove `grub/machine/time.h' include.
20000 (grub_millisleep): New function.
20001
20002 * include/grub/misc.h (grub_div_roundup): New function.
20003
20004 * kern/misc.c: Include `<grub/time.h>'.
20005 (grub_millisleep_generic): New function.
20006
20007 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20008 Add `time.h'.
20009 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20010 Add `time.h'.
20011 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20012 `machine/time.h'. Add `time.h'.
20013 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20014
20015 2007-10-21 Robert Millan <rmh@aybabtu.com>
20016
20017 * include/grub/misc.h (grub_max): New function.
20018
20019 2007-10-21 Robert Millan <rmh@aybabtu.com>
20020
20021 * util/misc.c (grub_util_info): Call fflush() before returning.
20022
20023 2007-10-20 Robert Millan <rmh@aybabtu.com>
20024
20025 * genmk.rb (Image): Copy `extra_flags' from here ...
20026 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20027
20028 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20029 to `argc' and `args' arguments.
20030
20031 2007-10-17 Robert Millan <rmh@aybabtu.com>
20032
20033 * kern/i386/loader.S: New file.
20034
20035 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20036 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20037 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20038 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20039 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20040 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20041 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20042 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20043 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20044 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20045 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20046 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20047 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20048 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20049
20050 * kern/i386/realmode.S: New file.
20051
20052 * kern/i386/pc/startup.S (protstack): Moved from here ...
20053 * kern/i386/realmode.S (protstack)... to here.
20054 * kern/i386/pc/startup.S (gdt): Moved from here ...
20055 * kern/i386/realmode.S (gdt)... to here.
20056 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20057 * kern/i386/realmode.S (prot_to_real)... to here.
20058
20059 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20060 `kern/i386/realmode.S'.
20061
20062 2007-10-17 Robert Millan <rmh@aybabtu.com>
20063
20064 * include/grub/i386/loader.h: New file.
20065
20066 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20067 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20068 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20069 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20070 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20071 * include/grub/i386/loader.h (grub_linux_prot_size)
20072 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20073 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20074 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20075 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20076
20077 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20078
20079 2007-10-15 Robert Millan <rmh@aybabtu.com>
20080
20081 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20082 filesystem when dev->disk is unset.
20083 Do probe for filesystem even when dev->disk->has_partitions is set.
20084 In case a filesystem is found, always report it.
20085 In case it isn't, if dev->disk->has_partitions is set, report that
20086 a partition table was found instead of reporting that no filesystem
20087 could be identified.
20088
20089 2007-10-12 Robert Millan <rmh@aybabtu.com>
20090
20091 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20092 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20093
20094 * include/grub/types.h (grub_host_to_target16): New macro.
20095 (grub_host_to_target32): Likewise.
20096 (grub_host_to_target64): Likewise.
20097 (grub_target_to_host16): Likewise.
20098 (grub_target_to_host32): Likewise.
20099 (grub_target_to_host64): Likewise.
20100
20101 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20102 Renamed from to ...
20103 (GRUB_MOD_ALIGN): ...this. Update all users.
20104
20105 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20106 grub_host_to_target32.
20107 Replace grub_be_to_cpu32 with grub_target_to_host32.
20108 (load_modules): Likewise.
20109 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20110 Replace grub_be_to_cpu32 with grub_target_to_host32.
20111 Replace grub_cpu_to_be16 with grub_host_to_target16.
20112 Replace grub_cpu_to_be32 grub_host_to_target32.
20113
20114 2007-10-12 Robert Millan <rmh@aybabtu.com>
20115
20116 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20117 * util/elf/grub-mkimage.c: ... here.
20118
20119 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20120 `util/powerpc/ieee1275/grub-mkimage.c'.
20121
20122 2007-10-07 Robert Millan <rmh@aybabtu.com>
20123
20124 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20125 and make it easier to figure out.
20126 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20127 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20128 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20129 leave us with less than HEAP_MIN_SIZE total heap.
20130 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20131
20132 2007-10-03 Robert Millan <rmh@aybabtu.com>
20133
20134 * include/grub/i386/io.h: New file.
20135 * commands/i386/pc/play.c (inb): Removed.
20136 (outb): Removed.
20137 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20138 with grub_outb().
20139 * term/i386/pc/serial.c (inb): Removed.
20140 (outb): Removed.
20141 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20142 with grub_outb().
20143 * term/i386/pc/vga.c (inb): Removed.
20144 (outb): Removed.
20145 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20146 with grub_outb().
20147
20148 2007-10-02 Robert Millan <rmh@aybabtu.com>
20149
20150 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20152 Reported by Marcin Kurek.
20153
20154 2007-09-07 Robert Millan <rmh@aybabtu.com>
20155
20156 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20157 SmartFirmware version updates (as released by Sven Luther), and avoid
20158 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20159 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20160 known broken.
20161
20162 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20163
20164 From Hitoshi Ozeki:
20165 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20166 when merging two regions.
20167
20168 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20169
20170 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20171 * normal/completion.c (grub_normal_do_completion): Likewise.
20172 Reported by Hitoshi Ozeki.
20173
20174 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20175
20176 Do not use devices at boot in chainloading.
20177
20178 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20179 (boot_part_addr): Likewise.
20180 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20181 with BOOT_DRIVE and BOOT_PART_ADDR.
20182 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20183 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20184
20185 2007-08-29 Robert Millan <rmh@aybabtu.com>
20186
20187 Patch from Simon Peter <dn.tlp@gmx.net>:
20188 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20189 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20190 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20191 util/i386/pc/grub-setup.c_DEPENDENCIES.
20192 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20193 util/grub-probe.c_DEPENDENCIES.
20194 * conf/powerpc-ieee1275.rmk: Likewise.
20195
20196 2007-08-28 Robert Millan <rmh@aybabtu.com>
20197
20198 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20199 to tell grub-mkdevicemap how to name devices.
20200 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20201 feature).
20202
20203 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20204 util/i386/get_disk_name.c.
20205 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20206 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20207 util/ieee1275/get_disk_name.c.
20208
20209 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20210
20211 * DISTLIST: Add util/i386/get_disk_name.c and
20212 util/ieee1275/get_disk_name.c.
20213
20214 * util/grub-mkdevicemap.c: Replace device naming logic with
20215 grub_util_get_disk_name() calls.
20216
20217 2007-08-20 Robert Millan <rmh@aybabtu.com>
20218
20219 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20220 (so that it works for both plural and singular quantities).
20221
20222 2007-08-05 Robert Millan <rmh@aybabtu.com>
20223
20224 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20225 so that [xz] isn't taken into account when determining order.
20226
20227 2007-08-02 Marco Gerards <marco@gnu.org>
20228
20229 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20230 `include/multiboot2.h', `include/grub/elfload.h',
20231 `include/multiboot.h', `include/grub/multiboot.h',
20232 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20233 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20234 `kern/elf.c', `loader/multiboot_loader.c',
20235 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20236 `loader/i386/pc/multiboot2.c',
20237 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20238 `util/i386/pc/grub-mkrescue.in'. Remove
20239 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20240 `include/grub/i386/pc/util/biosdisk.h' and
20241 `include/grub/powerpc/ieee1275/multiboot.h'.
20242
20243 2007-08-02 Bean <bean123ch@gmail.com>
20244
20245 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20246 (ntfs_mod_SOURCES): New variable.
20247 (ntfs_mod_CFLAGS): Likewise.
20248 (ntfs_mod_LDFLAGS): Likewise.
20249
20250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20251 (grub_probe_SOURCES): Likewise.
20252 (grub_emu_SOURCES): Likewise.
20253
20254 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20255 (grub_emu_SOURCES): Likewise.
20256
20257 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20258 (grub_emu_SOURCES): Likewise.
20259
20260 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20261
20262 * fs/ntfs.c: New file.
20263
20264 2007-08-02 Bean <bean123ch@gmail.com>
20265
20266 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20267
20268 * file.h (grub_file): Likewise.
20269
20270 * fshelp.h (grub_fshelp_read_file): Likewise.
20271
20272 * util/i386/pc/grub-setup.c (setup): Likewise.
20273 (save_first_sector): Likewise.
20274 (save_blocklists): Likewise.
20275
20276 * fs/affs.c (grub_affs_read_file): Likewise.
20277
20278 * fs/ext2.c (grub_ext2_read_file): Likewise.
20279
20280 * fs/fat.c (grub_fat_read_data): Likewise.
20281
20282 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20283
20284 * fs/hfs.c (grub_hfs_read_file): Likewise.
20285
20286 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20287
20288 * fs/jfs.c (grub_jfs_read_file): Likewise.
20289
20290 * fs/minix.c (grub_minix_read_file): Likewise.
20291
20292 * fs/sfs.c (grub_sfs_read_file): Likewise.
20293
20294 * fs/ufs.c (grub_ufs_read_file): Likewise.
20295
20296 * fs/xfs.c (grub_xfs_read_file): Likewise.
20297
20298 * command/blocklist.c (read_blocklist): Likewise.
20299 (print_blocklist): Likewise.
20300
20301 2007-08-02 Marco Gerards <marco@gnu.org>
20302
20303 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20304 `util/hostfs.c'.
20305
20306 * disk/host.c: New file.
20307
20308 * util/hostfs.c: Likewise.
20309
20310 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20311 return `GRUB_ERR_BAD_FS'.
20312 * fs/sfs.c (grub_sfs_mount): Likewise.
20313 * fs/xfs.c (grub_xfs_mount): Likewise.
20314
20315 * include/grub/disk.h (enum grub_disk_dev_id): Add
20316 `GRUB_DISK_DEVICE_HOST_ID'.
20317
20318 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20319
20320 2007-07-24 Jerone Young <jerone@gmail.com>
20321
20322 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20323 modules for compilation.
20324 * conf/powerpc-ieee1275.rmk: Likewise.
20325
20326 * include/multiboot.h: Move multiboot definitions to one file. Rename
20327 many definitions to not get grub specific.
20328 * include/multiboot2.h: Create header with multiboot 2 definitions.
20329 * include/grub/multiboot.h: Header for grub specific function
20330 prototypes and definitions.
20331 * include/grub/multiboot2.h: Likewise.
20332 * include/grub/multiboot_loader.h: Likewise.
20333 * include/grub/i386/pc/multiboot.h: Removed.
20334 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20335
20336 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20337 and 2 to allow for one multiboot and module commands.
20338 * loader/multiboot2.c: Add multiboot2 functionality.
20339 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20340 and definition names.
20341 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20342 2 functions.
20343 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20344 ieee1275 specific multiboot2 code.
20345
20346 * kern/i386/pc/startup.S: Change headers and definition names for
20347 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20348
20349 2007-07-22 Robert Millan <rmh@aybabtu.com>
20350
20351 * geninitheader.sh: Process file specified in first parameter rather
20352 than hardcoding grub_modules_init.lst.
20353 * geninit.sh: Likewise. Also, construct header name dynamically rather
20354 than hardcoding grub_modules_init.h.
20355
20356 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20357 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20358 grub_probe_init.[ch] and grub_setup_init.[ch].
20359
20360 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20361 grub_modules_init.h with grub_emu_init.h.
20362 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20363 grub_probe_init.[ch] files.
20364 * conf/i386-efi.rmk: Likewise.
20365 * conf/i386-pc.rmk: Likewise.
20366 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20367 grub_setup_init.[ch] files.
20368
20369 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20370 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20371 to initialize modules rather than a list of hardcoded functions.
20372 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20373 grub_init_all() to initialize modules rather than a list of hardcoded
20374 functions.
20375
20376 2007-07-22 Robert Millan <rmh@aybabtu.com>
20377
20378 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20379 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20380
20381 2007-07-22 Robert Millan <rmh@aybabtu.com>
20382
20383 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20384 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20385 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20386 flag when running on SmartFirmware.
20387 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20388 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20389 was set.
20390
20391 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20392 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20393 rather than decreasing it.
20394
20395 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20396 there's not enough space to do it, fail in the same way as when it
20397 can't be done because there are no partitions.
20398
20399 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20400 when nvsetenv failed.
20401
20402 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20403
20404 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20405 because this rule is automatically generated.
20406 (grub-mkrescue): Removed for the same reason as above.
20407
20408 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20409
20410 Migrate to GNU General Public License Version 3.
20411
20412 * COPYING: Replaced with the plain text version of GPLv3.
20413
20414 * config.guess: Updated from gnulib.
20415 * config.sub: Likewise.
20416
20417 * geninit.sh: Output a GPLv3 copyright notice.
20418 * geninitheader.sh: Likewise.
20419 * genmodsrc.sh: Likewise.
20420 * gensymlist.sh.in: Likewise.
20421
20422 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20423 * boot/i386/pc/diskboot.S: Likewise.
20424 * boot/i386/pc/pxeboot.S: Likewise.
20425 * commands/blocklist.c: Likewise.
20426 * commands/boot.c: Likewise.
20427 * commands/cat.c: Likewise.
20428 * commands/cmp.c: Likewise.
20429 * commands/configfile.c: Likewise.
20430 * commands/echo.c: Likewise.
20431 * commands/help.c: Likewise.
20432 * commands/ls.c: Likewise.
20433 * commands/search.c: Likewise.
20434 * commands/terminal.c: Likewise.
20435 * commands/test.c: Likewise.
20436 * commands/videotest.c: Likewise.
20437 * commands/i386/cpuid.c: Likewise.
20438 * commands/i386/pc/halt.c: Likewise.
20439 * commands/i386/pc/play.c: Likewise.
20440 * commands/i386/pc/reboot.c: Likewise.
20441 * commands/i386/pc/vbeinfo.c: Likewise.
20442 * commands/i386/pc/vbetest.c: Likewise.
20443 * commands/ieee1275/halt.c: Likewise.
20444 * commands/ieee1275/reboot.c: Likewise.
20445 * commands/ieee1275/suspend.c: Likewise.
20446 * disk/loopback.c: Likewise.
20447 * disk/lvm.c: Likewise.
20448 * disk/raid.c: Likewise.
20449 * disk/efi/efidisk.c: Likewise.
20450 * disk/i386/pc/biosdisk.c: Likewise.
20451 * disk/ieee1275/ofdisk.c: Likewise.
20452 * font/manager.c: Likewise.
20453 * fs/affs.c: Likewise.
20454 * fs/ext2.c: Likewise.
20455 * fs/fat.c: Likewise.
20456 * fs/fshelp.c: Likewise.
20457 * fs/hfs.c: Likewise.
20458 * fs/hfsplus.c: Likewise.
20459 * fs/iso9660.c: Likewise.
20460 * fs/jfs.c: Likewise.
20461 * fs/minix.c: Likewise.
20462 * fs/sfs.c: Likewise.
20463 * fs/ufs.c: Likewise.
20464 * fs/xfs.c: Likewise.
20465 * hello/hello.c: Likewise.
20466 * include/grub/acorn_filecore.h: Likewise.
20467 * include/grub/arg.h: Likewise.
20468 * include/grub/bitmap.h: Likewise.
20469 * include/grub/boot.h: Likewise.
20470 * include/grub/cache.h: Likewise.
20471 * include/grub/device.h: Likewise.
20472 * include/grub/disk.h: Likewise.
20473 * include/grub/dl.h: Likewise.
20474 * include/grub/elfload.h: Likewise.
20475 * include/grub/env.h: Likewise.
20476 * include/grub/err.h: Likewise.
20477 * include/grub/file.h: Likewise.
20478 * include/grub/font.h: Likewise.
20479 * include/grub/fs.h: Likewise.
20480 * include/grub/fshelp.h: Likewise.
20481 * include/grub/gzio.h: Likewise.
20482 * include/grub/hfs.h: Likewise.
20483 * include/grub/kernel.h: Likewise.
20484 * include/grub/loader.h: Likewise.
20485 * include/grub/lvm.h: Likewise.
20486 * include/grub/misc.h: Likewise.
20487 * include/grub/mm.h: Likewise.
20488 * include/grub/net.h: Likewise.
20489 * include/grub/normal.h: Likewise.
20490 * include/grub/parser.h: Likewise.
20491 * include/grub/partition.h: Likewise.
20492 * include/grub/pc_partition.h: Likewise.
20493 * include/grub/raid.h: Likewise.
20494 * include/grub/rescue.h: Likewise.
20495 * include/grub/script.h: Likewise.
20496 * include/grub/setjmp.h: Likewise.
20497 * include/grub/symbol.h: Likewise.
20498 * include/grub/term.h: Likewise.
20499 * include/grub/terminfo.h: Likewise.
20500 * include/grub/tparm.h: Likewise.
20501 * include/grub/types.h: Likewise.
20502 * include/grub/video.h: Likewise.
20503 * include/grub/efi/api.h: Likewise.
20504 * include/grub/efi/chainloader.h: Likewise.
20505 * include/grub/efi/console.h: Likewise.
20506 * include/grub/efi/console_control.h: Likewise.
20507 * include/grub/efi/disk.h: Likewise.
20508 * include/grub/efi/efi.h: Likewise.
20509 * include/grub/efi/pe32.h: Likewise.
20510 * include/grub/efi/time.h: Likewise.
20511 * include/grub/i386/linux.h: Likewise.
20512 * include/grub/i386/setjmp.h: Likewise.
20513 * include/grub/i386/types.h: Likewise.
20514 * include/grub/i386/efi/kernel.h: Likewise.
20515 * include/grub/i386/efi/loader.h: Likewise.
20516 * include/grub/i386/efi/time.h: Likewise.
20517 * include/grub/i386/pc/biosdisk.h: Likewise.
20518 * include/grub/i386/pc/boot.h: Likewise.
20519 * include/grub/i386/pc/chainloader.h: Likewise.
20520 * include/grub/i386/pc/console.h: Likewise.
20521 * include/grub/i386/pc/init.h: Likewise.
20522 * include/grub/i386/pc/kernel.h: Likewise.
20523 * include/grub/i386/pc/loader.h: Likewise.
20524 * include/grub/i386/pc/memory.h: Likewise.
20525 * include/grub/i386/pc/multiboot.h: Likewise.
20526 * include/grub/i386/pc/serial.h: Likewise.
20527 * include/grub/i386/pc/time.h: Likewise.
20528 * include/grub/i386/pc/vbe.h: Likewise.
20529 * include/grub/i386/pc/vbeblit.h: Likewise.
20530 * include/grub/i386/pc/vbefill.h: Likewise.
20531 * include/grub/i386/pc/vbeutil.h: Likewise.
20532 * include/grub/i386/pc/vga.h: Likewise.
20533 * include/grub/ieee1275/ieee1275.h: Likewise.
20534 * include/grub/ieee1275/ofdisk.h: Likewise.
20535 * include/grub/powerpc/libgcc.h: Likewise.
20536 * include/grub/powerpc/setjmp.h: Likewise.
20537 * include/grub/powerpc/types.h: Likewise.
20538 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20539 * include/grub/powerpc/ieee1275/console.h: Likewise.
20540 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20541 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20542 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20543 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20544 * include/grub/powerpc/ieee1275/time.h: Likewise.
20545 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20546 * include/grub/sparc64/libgcc.h: Likewise.
20547 * include/grub/sparc64/setjmp.h: Likewise.
20548 * include/grub/sparc64/types.h: Likewise.
20549 * include/grub/sparc64/ieee1275/console.h: Likewise.
20550 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20551 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20552 * include/grub/sparc64/ieee1275/time.h: Likewise.
20553 * include/grub/util/biosdisk.h: Likewise.
20554 * include/grub/util/getroot.h: Likewise.
20555 * include/grub/util/lvm.h: Likewise.
20556 * include/grub/util/misc.h: Likewise.
20557 * include/grub/util/raid.h: Likewise.
20558 * include/grub/util/resolve.h: Likewise.
20559 * io/gzio.c: Likewise.
20560 * kern/device.c: Likewise.
20561 * kern/disk.c: Likewise.
20562 * kern/dl.c: Likewise.
20563 * kern/elf.c: Likewise.
20564 * kern/env.c: Likewise.
20565 * kern/err.c: Likewise.
20566 * kern/file.c: Likewise.
20567 * kern/fs.c: Likewise.
20568 * kern/loader.c: Likewise.
20569 * kern/main.c: Likewise.
20570 * kern/misc.c: Likewise.
20571 * kern/mm.c: Likewise.
20572 * kern/parser.c: Likewise.
20573 * kern/partition.c: Likewise.
20574 * kern/rescue.c: Likewise.
20575 * kern/term.c: Likewise.
20576 * kern/efi/efi.c: Likewise.
20577 * kern/efi/init.c: Likewise.
20578 * kern/efi/mm.c: Likewise.
20579 * kern/i386/dl.c: Likewise.
20580 * kern/i386/efi/init.c: Likewise.
20581 * kern/i386/efi/startup.S: Likewise.
20582 * kern/i386/pc/init.c: Likewise.
20583 * kern/i386/pc/lzo1x.S: Likewise.
20584 * kern/i386/pc/startup.S: Likewise.
20585 * kern/ieee1275/ieee1275.c: Likewise.
20586 * kern/powerpc/cache.S: Likewise.
20587 * kern/powerpc/dl.c: Likewise.
20588 * kern/powerpc/ieee1275/cmain.c: Likewise.
20589 * kern/powerpc/ieee1275/crt0.S: Likewise.
20590 * kern/powerpc/ieee1275/init.c: Likewise.
20591 * kern/powerpc/ieee1275/openfw.c: Likewise.
20592 * kern/sparc64/cache.S: Likewise.
20593 * kern/sparc64/dl.c: Likewise.
20594 * kern/sparc64/ieee1275/init.c: Likewise.
20595 * kern/sparc64/ieee1275/openfw.c: Likewise.
20596 * loader/efi/chainloader.c: Likewise.
20597 * loader/efi/chainloader_normal.c: Likewise.
20598 * loader/i386/efi/linux.c: Likewise.
20599 * loader/i386/efi/linux_normal.c: Likewise.
20600 * loader/i386/pc/chainloader.c: Likewise.
20601 * loader/i386/pc/chainloader_normal.c: Likewise.
20602 * loader/i386/pc/linux.c: Likewise.
20603 * loader/i386/pc/linux_normal.c: Likewise.
20604 * loader/i386/pc/multiboot.c: Likewise.
20605 * loader/i386/pc/multiboot_normal.c: Likewise.
20606 * loader/powerpc/ieee1275/linux.c: Likewise.
20607 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20608 * normal/arg.c: Likewise.
20609 * normal/cmdline.c: Likewise.
20610 * normal/command.c: Likewise.
20611 * normal/completion.c: Likewise.
20612 * normal/execute.c: Likewise.
20613 * normal/function.c: Likewise.
20614 * normal/lexer.c: Likewise.
20615 * normal/main.c: Likewise.
20616 * normal/menu.c: Likewise.
20617 * normal/menu_entry.c: Likewise.
20618 * normal/misc.c: Likewise.
20619 * normal/parser.y: Likewise.
20620 * normal/script.c: Likewise.
20621 * normal/i386/setjmp.S: Likewise.
20622 * normal/powerpc/setjmp.S: Likewise.
20623 * normal/sparc64/setjmp.S: Likewise.
20624 * partmap/acorn.c: Likewise.
20625 * partmap/amiga.c: Likewise.
20626 * partmap/apple.c: Likewise.
20627 * partmap/gpt.c: Likewise.
20628 * partmap/pc.c: Likewise.
20629 * partmap/sun.c: Likewise.
20630 * term/gfxterm.c: Likewise.
20631 * term/terminfo.c: Likewise.
20632 * term/efi/console.c: Likewise.
20633 * term/i386/pc/console.c: Likewise.
20634 * term/i386/pc/serial.c: Likewise.
20635 * term/i386/pc/vesafb.c: Likewise.
20636 * term/i386/pc/vga.c: Likewise.
20637 * term/ieee1275/ofconsole.c: Likewise.
20638 * util/biosdisk.c: Likewise.
20639 * util/console.c: Likewise.
20640 * util/genmoddep.c: Likewise.
20641 * util/getroot.c: Likewise.
20642 * util/grub-emu.c: Likewise.
20643 * util/grub-mkdevicemap.c: Likewise.
20644 * util/grub-probe.c: Likewise.
20645 * util/lvm.c: Likewise.
20646 * util/misc.c: Likewise.
20647 * util/raid.c: Likewise.
20648 * util/resolve.c: Likewise.
20649 * util/update-grub.in: Likewise.
20650 * util/update-grub_lib.in: Likewise.
20651 * util/grub.d/00_header.in: Likewise.
20652 * util/grub.d/10_hurd.in: Likewise.
20653 * util/grub.d/10_linux.in: Likewise.
20654 * util/i386/efi/grub-install.in: Likewise.
20655 * util/i386/efi/grub-mkimage.c: Likewise.
20656 * util/i386/pc/grub-install.in: Likewise.
20657 * util/i386/pc/grub-mkimage.c: Likewise.
20658 * util/i386/pc/grub-mkrescue.in: Likewise.
20659 * util/i386/pc/grub-setup.c: Likewise.
20660 * util/i386/pc/misc.c: Likewise.
20661 * util/powerpc/ieee1275/grub-install.in: Likewise.
20662 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20663 * util/powerpc/ieee1275/misc.c: Likewise.
20664 * video/bitmap.c: Likewise.
20665 * video/video.c: Likewise.
20666 * video/i386/pc/vbe.c: Likewise.
20667 * video/i386/pc/vbeblit.c: Likewise.
20668 * video/i386/pc/vbefill.c: Likewise.
20669 * video/i386/pc/vbeutil.c: Likewise.
20670 * video/readers/tga.c: Likewise.
20671
20672 2007-07-02 Robert Millan <rmh@aybabtu.com>
20673
20674 * conf/i386-efi.rmk: Replace obsolete reference to
20675 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20676 with util/getroot.c.
20677 * conf/powerpc-ieee1275.rmk: Likewise.
20678 * conf/sparc64-ieee1275.rmk: Likewise.
20679
20680 * util/grub-emu.c (main): Fix unchecked pointer handling.
20681
20682 2007-07-02 Robert Millan <rmh@aybabtu.com>
20683
20684 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20685 invocation to fail, in order to support partition-less media.
20686
20687 * util/i386/pc/grub-install.in: Likewise.
20688
20689 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20690 which fs or partmap modules are needed (akin to its sister scripts).
20691
20692 Also use grub-probe to get rid of unportable /proc/mounts check.
20693
20694 Print the same informational message that the other scripts do, before
20695 exiting.
20696
20697 2007-06-23 Robert Millan <rmh@aybabtu.com>
20698
20699 * util/update-grub_lib.in (font_path): New function. Determine whether
20700 a font file can be found and, if so, echo the GRUB path to it.
20701
20702 * util/update-grub.in: Handle multiple terminals depending on user
20703 input, platform availability and font file presence. Propagate
20704 variables of our findings to /etc/grub.d/ children.
20705
20706 * util/grub.d/00_header.in: Handle multiple terminals, based on
20707 environment setup by update-grub.
20708
20709 2007-06-23 Robert Millan <rmh@aybabtu.com>
20710
20711 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20712
20713 2007-06-21 Robert Millan <rmh@aybabtu.com>
20714
20715 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20716 indicate end of data section in kernel image.
20717 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20718 GRUB_KERNEL_MACHINE_DATA_END.
20719
20720 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20721 space for it.
20722 * kern/i386/efi/startup.S: Likewise.
20723
20724 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20725 during image generation. Implement --prefix option to override this
20726 patch.
20727 * util/i386/efi/grub-mkimage.c: Likewise.
20728
20729 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20730 code to make path relative to its root into a separate function.
20731
20732 * util/i386/pc/grub-install.in: Use newly provided
20733 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20734 pass the result to grub-install --prefix.
20735
20736 2007-06-13 Robert Millan <rmh@aybabtu.com>
20737
20738 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20739 DEFAULT_DEVICE_MAP.
20740 * util/grub-emu.c: Use above definitions from misc.h instead of
20741 defining them.
20742 * util/grub-mkdevicemap.c: Likewise.
20743 * util/i386/pc/grub-setup.c: Likewise.
20744 * util/grub-probe.c: Likewise.
20745 (probe): Abort with grub_util_error() when either
20746 grub_guess_root_device or grub_util_get_grub_dev fails.
20747
20748 2007-06-12 Robert Millan <rmh@aybabtu.com>
20749
20750 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20751 "pager" assignment.
20752 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20753 "pcdata".
20754 * util/grub-probe.c (probe): Likewise for "drive_name".
20755
20756 2007-06-11 Robert Millan <rmh@aybabtu.com>
20757
20758 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20759 not just the cdrom one.
20760
20761 2007-06-11 Robert Millan <rmh@aybabtu.com>
20762
20763 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20764 Add --pkglibdir=DIR option to override pkglibdir.
20765 Mention --image-type=TYPE in help output.
20766 Fix --grub-mkimage (it was a no-op).
20767 Abort gracefully when no parameter is given.
20768
20769 2007-06-11 Robert Millan <rmh@aybabtu.com>
20770
20771 * util/i386/pc/grub-mkrescue.in: New file.
20772 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20773 * Makefile.in: Handle bin_SCRIPTS.
20774
20775 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20776
20777 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20778 list of video modes.
20779
20780 2007-06-06 Robert Millan <rmh@aybabtu.com>
20781
20782 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20783 file doesn't exist, or if it is in a filesystem grub can't read.
20784
20785 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20786 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20787 header comment to fit in 80 columns when the variables are resolved.
20788
20789 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20790 could be identified by update-grub. Remove redundant check for
20791 unifont.pff existence (since convert_system_path_to_grub_path now
20792 handles that).
20793
20794 2007-06-04 Robert Millan <rmh@aybabtu.com>
20795
20796 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20797
20798 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20799
20800 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20801
20802 2007-06-04 Robert Millan <rmh@aybabtu.com>
20803
20804 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20805
20806 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20807 grub_apple_partition_map_fini.
20808
20809 * util/biosdisk.c
20810 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20811 to access >2 TiB disks).
20812
20813 Print disk->total_sectors with %llu instead of %lu, since this
20814 variable is always 64-bit (prevents wrong disk size from being displayed
20815 on either >2 TiB disk or big-endian CPU).
20816
20817 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20818 into a generic case that supports all (sane) partition maps.
20819
20820 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20821 breaks big-endian.
20822
20823 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20824 and grub_apple_partition_map_fini() after that.
20825
20826 2007-06-01 Robert Millan <rmh@aybabtu.com>
20827
20828 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20829
20830 * util/grub.d/00_header.in: Only enable gfxterm when
20831 convert_system_path_to_grub_path() succeeds.
20832
20833 2007-05-20 Robert Millan <rmh@aybabtu.com>
20834
20835 * util/update-grub_lib.in: New file.
20836 * DISTLIST: Add update-grub_lib.in.
20837 * conf/common.rmk: Generate update-grub_lib and install it in
20838 $(lib_DATA).
20839 * Makefile.in: Add install routine for $(lib_DATA).
20840
20841 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20842 function provided by update-grub_lib to support arbitrary paths of
20843 unifont.pff.
20844 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20845 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20846
20847 2007-05-19 Robert Millan <rmh@aybabtu.com>
20848
20849 * commands/i386/cpuid.c: New module.
20850 * DISTLIST: Add it.
20851 * conf/i386-efi.rmk: Enable cpuid.mod.
20852 * conf/i386-pc.rmk: Likewise.
20853
20854 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20855
20856 * kern/disk.c (grub_disk_read): Check return value of
20857 grub_realloc().
20858
20859 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20860
20861 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20862 arrays.
20863 * disk/raid.c (grub_raid_open): Likewise.
20864
20865 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20866
20867 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20868 stack instead of on the heap.
20869
20870 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20871 before doing a read on it.
20872
20873 * configure.ac: Only use -fno-stack-protector for the target
20874 environment.
20875
20876 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20877
20878 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20879 __attribute_ ((unused)) to mode_type argument.
20880
20881 * util/getroot.c (grub_guess_root_device): Fix #endif.
20882
20883 * kern/misc.c (memcmp): Fix prototype.
20884
20885 * include/grub/partition.h [GRUB_UTIL]
20886 (grub_gpt_partition_map_init): Add prototype.
20887 (grub_gpt_partition_map_fini): Likewise.
20888
20889 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20890 at the right place.
20891
20892 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20893 (grub_fat_read_data): Likewise.
20894 (grub_fat_find_dir): Likewise.
20895
20896 * font/manager.c (find_glyph): Make table a const.
20897 (grub_font_get_glyph): Remove bitmap from if statement.
20898
20899 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20900
20901 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20902 code, first search for device in /dev/mapper, then in /dev.
20903 (grub_util_get_grub_dev): New function.
20904 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20905 prototype.
20906 * util/grub-probe.c (probe): Remove check for RAID, call
20907 grub_util_get_grub_dev() instead of
20908 grub_util_biosdisk_get_grub_dev().
20909 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20910 grub_util_biosdisk_get_grub_dev().
20911 * util/i386/pc/grub-setup.c (main): Likewise.
20912
20913 2007-05-16 Robert Millan <rmh@aybabtu.com>
20914
20915 * DISTLIST: Update for the latest changes.
20916 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20917 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20918 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20919 grub/util/biosdisk.h.
20920 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20921 grub/util/biosdisk.h.
20922
20923 2007-05-16 Robert Millan <rmh@aybabtu.com>
20924
20925 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20926
20927 2007-05-16 Robert Millan <rmh@aybabtu.com>
20928
20929 * util/i386/efi/grub-install.in: New.
20930 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20931 newly added grub-install.
20932 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20933 include.
20934 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20935 grub/util/biosdisk.h.
20936 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20937 grub/util/biosdisk.h.
20938
20939 2007-05-16 Robert Millan <rmh@aybabtu.com>
20940
20941 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20942 * include/grub/util/biosdisk.h: ... here.
20943 * util/i386/pc/biosdisk.c: Moved to ...
20944 * util/biosdisk.c: ... here.
20945 * util/i386/pc/getroot.c: Moved to ...
20946 * util/getroot.c: ... here.
20947 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
20948 * util/grub-mkdevicemap.c: ... here.
20949 * util/i386/pc/grub-probe.c: Moved to ...
20950 * util/grub-probe.c: ... here.
20951
20952 2007-05-15 Robert Millan <rmh@aybabtu.com>
20953
20954 * util/update-grub.in: Remove duplicated line in grub.cfg header
20955 message.
20956
20957 2007-05-13 Robert Millan <rmh@aybabtu.com>
20958
20959 * util/update-grub.in: Fix a few assumptions about the devices holding
20960 /, /boot and /boot/grub being the same.
20961 * util/grub.d/00_header.in: Likewise.
20962 * util/grub.d/10_hurd.in: Likewise.
20963 * util/grub.d/10_linux.in: Likewise.
20964
20965 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
20966 patterns. Use that to define the `.old' suffix as older than `'.
20967
20968 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
20969
20970 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
20971 the grub.cfg header message.
20972
20973 2007-05-11 Robert Millan <rmh@aybabtu.com>
20974
20975 * util/update-grub.in: Create device.map if it doesn't already exist,
20976 before attempting to run grub-probe.
20977 Check for grub-probe and grub-mkdevicemap with the same code
20978 grub-install is using.
20979 Remove test mode.
20980
20981 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
20982
20983 * Makefile.in: Add the datarootdir autoconf variable.
20984
20985 2007-05-09 Robert Millan <rmh@aybabtu.com>
20986
20987 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
20988 fail gracefully if dev->disk->partition == NULL.
20989
20990 2007-05-07 Robert Millan <rmh@aybabtu.com>
20991
20992 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
20993 determine partition map module.
20994 * util/i386/pc/grub-install.in: Use this feature to decide which
20995 partition module to load, instead of hardcoding pc and gpt.
20996
20997 2007-05-07 Robert Millan <rmh@aybabtu.com>
20998
20999 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21000 source directory differs from build directory.
21001
21002 2007-05-05 Robert Millan <rmh@aybabtu.com>
21003
21004 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21005 initialisation.
21006
21007 2007-05-05 Robert Millan <rmh@aybabtu.com>
21008
21009 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21010
21011 2007-05-05 Robert Millan <rmh@aybabtu.com>
21012
21013 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21014 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21015
21016 2007-05-05 Robert Millan <rmh@aybabtu.com>
21017
21018 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21019 (grub_probe_SOURCES): Likewise.
21020 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21021 GPT and initialize dos_part and bsd_part accordingly.
21022 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21023 install_bsd_part.
21024 (main): Activate gpt module for use during partition identification,
21025 and deactivate it afterwards.
21026 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21027 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21028 partition identification, and deactivate it afterwards.
21029
21030 2007-05-05 Robert Millan <rmh@aybabtu.com>
21031
21032 * term/i386/pc/console.c (grub_console_fini): Call
21033 grub_term_set_current() before grub_term_unregister().
21034
21035 2007-05-04 Robert Millan <rmh@aybabtu.com>
21036
21037 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21038 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21039 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21040 and update-grub_DATA.
21041 * conf/common.rmk: Build and install update-grub components.
21042 * conf/common.mk: Regenerate.
21043 * util/update-grub.in: New. Core of update-grub.
21044 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21045 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21046 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21047 * util/grub.d/README: New. Document grub.d directory layout.
21048
21049 2007-05-01 Robert Millan <rmh@aybabtu.com>
21050
21051 * util/grub-emu.c: Move initialization functions
21052 grub_util_biosdisk_init() and grub_init_all() before
21053 grub_util_biosdisk_get_grub_dev(), which relies on them.
21054
21055 2007-04-19 Robert Millan <rmh@aybabtu.com>
21056
21057 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21058 it is used later.
21059
21060 2007-04-18 Jerone Young <jerone@gmail.com>
21061
21062 * kernel/elf.c: Add missing parenthesis for conditional statement
21063 stanza.
21064
21065 2007-04-10 Jerone Young <jerone@gmail.com>
21066
21067 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21068 continue on and look for device node with real device name.
21069
21070 2007-04-10 Jerone Young <jerone@gmail.com>
21071
21072 * configure.ac: Add argument for autoconf to use transformation
21073 ability.
21074 * Makefile.in: Add autoconf package transformation code.
21075 * util/i386/pc/grub-install.in: Likewise.
21076 * util/powerpc/ieee1275/grub-install.in: Likewise.
21077
21078 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21079
21080 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21081 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21082 (EXT2_REVISION): Likewise.
21083 (EXT2_INODE_SIZE): Likewise.
21084 (struct grub_ext2_block_group): Added a missing member
21085 "used_dirs".
21086 (grub_ext2_read_inode): Divide by the inode size in a superblock
21087 instead of 128 to obtain INODES_PER_BLOCK.
21088 Use the macro EXT2_INODE_SIZE instead of directly using
21089 SBLOCK->INODE_SIZE.
21090
21091 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21092
21093 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21094 superblock instead of the structure size to compute an
21095 offset. This fixes the problem that GRUB could not read a
21096 filesystem when inode size is different from 128-byte.
21097
21098 2007-03-05 Marco Gerards <marco@gnu.org>
21099
21100 * normal/main.c (read_config_file): When "menu" is not set, create
21101 an initial context.
21102
21103 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21104
21105 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21106 (HEAP_LIMIT): New macro.
21107 (grub_claim_heap): Claim memory up to `heaplimit'.
21108
21109 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21110
21111 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21112 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21113 (_start): Likewise.
21114 (grub_arch_modules_addr): Return address after `_end'.
21115 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21116 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21117 (add_segments): Calculate `_end' from phdr size and location.
21118 (ALIGN_UP): Moved to ...
21119 * include/grub/misc.h: here.
21120 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21121 New macro.
21122 (GRUB_IEEE1275_MODULE_BASE): Removed.
21123
21124 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21125
21126 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21127 loop boundary.
21128
21129 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21130
21131 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21132 All users updated.
21133 (grub_elf64_load_hook_t): Likewise.
21134 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21135 debug output.
21136
21137 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21138
21139 * kern/mm.c: Update copyright.
21140 (grub_mm_debug): Correct syntax error.
21141 (grub_mm_dump_free): New function.
21142 (grub_debug_free): Call `grub_free'.
21143 * include/grub/mm.h: Update copyright.
21144 (grub_mm_dump_free): Add declaration.
21145
21146 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21147
21148 * include/grub/ieee1275/ieee1275.h: Update copyright.
21149 * kern/powerpc/ieee1275/init.c: Likewise.
21150 * kern/powerpc/ieee1275/openfw.c: Likewise.
21151
21152 * loader/powerpc/ieee1275/linux.c: Likewise.
21153 * include/grub/elfload.h: Likewise.
21154 * kern/elf.c: Likewise.
21155 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21156 callers.
21157 (grub_elf64_load): Likewise.
21158 (grub_elf32_load_segment): Move to a nested function.
21159 (grub_elf64_load_segment): Likewise.
21160
21161 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21162
21163 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21164 prototype.
21165 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21166 (grub_heap_len): Likewise.
21167 (HEAP_SIZE): New macro.
21168 (grub_claim_heap): New function.
21169 (grub_machine_init): Don't claim heap directly. Call
21170 `grub_claim_heap'.
21171 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21172 (grub_available_iterate): New function.
21173
21174 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21175
21176 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21177 * configure.ac: Use it for testing the HOST and TARGET compilers.
21178
21179 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21180
21181 * Makefile.in (enable_grub_emu): New variable.
21182 * configure.ac (--enable-grub-emu): New option.
21183 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21184 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21185 * conf/i386-pc.rmk: Likewise.
21186 * conf/powerpc-ieee1275.rmk: Likewise.
21187 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21188
21189 2006-12-12 Marco Gerards <marco@gnu.org>
21190
21191 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21192
21193 * kern/env.c (grub_env_unset): Don't free the member `value' when
21194 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21195 pointer.
21196
21197 * normal/main.c (current_menu): Removed.
21198 (free_menu): Unset the `menu' environment variable.
21199 (grub_normal_menu_addentry): Make use of the environment variable
21200 `menu', instead of using the global `current_menu'. Allocate
21201 memory for the sourcecode of this entry.
21202 (read_config_file): New argument `nested', changed all callers.
21203 Only in the case of a new context, initialize a new menu. Set the
21204 `menu' environment variable.
21205 (grub_normal_execute): Don't set and unset the environment
21206 variable `menu' here anymore. Only free the menu when leaving the
21207 context.
21208
21209 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21210 leak.
21211
21212 2006-12-11 Marco Gerards <marco@gnu.org>
21213
21214 * normal/menu_entry.c (run): Fix off by one bug so the last line
21215 is executed. Move the loader check to outside the loop.
21216
21217 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21218
21219 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21220
21221 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21222
21223 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21224 the number of sectors. Reported by Andrey Shuvikov
21225 <mr_hyro@yahoo.com>.
21226
21227 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21228
21229 * kern/disk.c (grub_disk_read): When there is a read error, always
21230 try to read only the necessary data.
21231
21232 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21233 disk/raid.c.
21234 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21235 prototype.
21236 [GRUB_UTIL] (grub_raid_fini): Likewise.
21237 [GRUB_UTIL] (grub_lvm_init): Likewise.
21238 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21239 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21240 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21241 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21242 and grub_raid_fini().
21243
21244 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21245
21246 * include/grub/types.h (__unused): Rename to UNUSED.
21247 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21248 (grub_elf64_size): Likewise.
21249
21250 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21251
21252 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21253 grub_error_push and grub_error_pop in the error-handling path.
21254 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21255 length.
21256
21257 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21258
21259 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21260 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21262 (kernel_elf_SOURCES): Likewise.
21263 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21264 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21265 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21266 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21267 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21268 (elf_mod_SOURCES): New variable.
21269 (elf_mod_CFLAGS): Likewise.
21270 (elf_mod_LDFLAGS): Likewise.
21271 * include/grub/types.h (__unused): New macro.
21272 * include/grub/elfload.h: New file.
21273 * kern/elf.c: Likewise.
21274 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21275 (ELF32_LOADMASK): New macro.
21276 (ELF64_LOADMASK): Likewise.
21277 (vmlinux): Removed.
21278 (grub_linux_load32): New function.
21279 (grub_linux_load64): Likewise.
21280 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21281 Use grub_elf_t instead of grub_file_t.
21282
21283 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21284
21285 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21286 `catch_result' to struct set_color_args.
21287
21288 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21289
21290 * normal/menu.c: Include grub/script.h.
21291 * normal/menu_entry.c: Likewise.
21292 * include/grub/normal.h: Do not include grub/script.h.
21293
21294 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21295
21296 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21297
21298 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21299
21300 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21301 disk.
21302 (grub_disk_close): Print debug messages when closing a disk.
21303 (grub_disk_read): Print debug messages when disk read fails.
21304 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21305 filesystem type.
21306 * kern/partition.c: Include misc.h.
21307 (grub_partition_iterate): Print debug messages when detecting
21308 partition type.
21309
21310 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21311
21312 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21313 is negative.
21314 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21315
21316 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21317
21318 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21319 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21320
21321 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21322
21323 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21324 instead of sizeof(lv). Patch by Michael Guntsche.
21325
21326 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21327
21328 * disk/lvm.c: Rename VGS to VG_LIST.
21329 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21330 (grub_lvm_open): Likewise.
21331 Thanks to Michael Guntsche for finding this bug.
21332
21333 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21334
21335 * configure.ac (AC_INIT): Bumped to 1.95.
21336
21337 2006-10-14 Robert Millan <rmh@aybabtu.com>
21338
21339 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21340 with "/dev/.static/dev/md".
21341
21342 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21343
21344 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21345 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21346 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21347 DRIVE_NAME are always freed.
21348
21349 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21350 DOS_PART, as a DOS partition is counted from one instead of zero
21351 now. Reported by Robert Millan.
21352
21353 2006-10-14 Robert Millan <rmh@aybabtu.com>
21354
21355 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21356 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21357 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21358 string returned by grub_guess_root_device.
21359 * util/i386/pc/grub-setup.c: Likewise.
21360 * util/i386/pc/grub-probefs.c: Likewise.
21361
21362 * util/i386/pc/grub-probefs.c: Rename to ...
21363 * util/i386/pc/grub-probe.c: ... this.
21364 * DISTLIST: Remove grub-probefs, add grub-probe.
21365 * conf/i386-efi.rmk: Likewise.
21366 * conf/i386-pc.rmk: Likewise.
21367 * util/i386/pc/grub-install.in: Likewise.
21368
21369 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21370 choose which information we want to print.
21371
21372 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21373
21374 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21375 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21376 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21377 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21378 video/readers/tga.c and video/i386/pc/vbeutil.c.
21379
21380 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21381
21382 Added support for RAID and LVM.
21383
21384 * disk/lvm.c: New file.
21385 * disk/raid.c: Likewise.
21386 * include/grub/lvm.h: Likewise.
21387 * include/grub/raid.h: Likewise.
21388 * include/grub/util/lvm.h: Likewise.
21389 * include/grub/util/raid.h: Likewise.
21390 * util/lvm.c: Likewise.
21391 * util/raid.c: Likewise.
21392
21393 * include/grub/disk.h (grub_disk_dev_id): Add
21394 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21395 (grub_disk_get_size): New prototype.
21396 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21397 returns a partition.
21398 (grub_disk_get_size): New function.
21399
21400 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21401 verbatim if grub_install_dos_part is -2.
21402
21403 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21404 and LVM devices.
21405
21406 * util/i386/pc/grub-setup.c (setup): New argument
21407 MUST_EMBED. Force embedding of GRUB when the argument is
21408 true. Close FILE before returning.
21409 (main): Add support for RAID and LVM.
21410
21411 * conf/common.rmk: Add RAID and LVM modules.
21412 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21413 util/lvm.c.
21414 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21415
21416 * kern/misc.c (grub_strstr): New function.
21417 * include/grub/misc.h (grub_strstr): New prototype.
21418
21419 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21420
21421 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21422
21423 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21424
21425 * kern/misc.c (grub_strtoull): Guess the base only if not
21426 specified.
21427
21428 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21429
21430 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21431 PowerMac support.
21432
21433 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21434
21435 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21436
21437 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21438 Remove `flags' argument. All callers changed.
21439 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21440 (IEEE1275_IHANDLE_INVALID): New variable.
21441 (IEEE1275_CELL_INVALID): New variable.
21442 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21443 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21444 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21445 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21446 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21447 codes from Open Firmware. All callers updated.
21448 (grub_ieee1275_next_property): Directly return Open Firmware return
21449 code.
21450 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21451 Standardize error checking from `grub_ieee1275_get_property'.
21452 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21453 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21454
21455 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21456
21457 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21458 `instance_to_package_args' to `instance_to_path_args'.
21459
21460 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21461 `grub_ieee1275_chosen'.
21462
21463 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21464 `grub_ieee1275_interpret'.
21465
21466 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21467
21468 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21469
21470 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21471
21472 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21473 (__cmpdi): Likewise.
21474
21475 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21476 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21477 `grub_ssize_t'.
21478
21479 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21480
21481 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21482 to type `grub_ssize_t'.
21483 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21484
21485 2006-09-22 Marco Gerards <marco@gnu.org>
21486
21487 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21488 newlines.
21489
21490 2006-09-22 Marco Gerards <marco@gnu.org>
21491
21492 * commands/echo.c: New file.
21493
21494 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21495
21496 * conf/common.rmk (echo_mod_SOURCES): New variable.
21497 (echo_mod_CFLAGS): Likewise.
21498 (echo_mod_LDFLAGS): Likewise.
21499
21500 2006-09-22 Marco Gerards <marco@gnu.org>
21501
21502 * normal/main.c (get_line): Malloc memory instead of using
21503 preallocated memory. Removed the arguments `cmdline' and
21504 `max_len'. Updated all callers.
21505
21506 2006-09-22 Marco Gerards <marco@gnu.org>
21507
21508 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21509 (normal_mod_DEPENDENCIES): Likewise.
21510
21511 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21512 (normal_mod_DEPENDENCIES): Likewise.
21513
21514 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21515
21516 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21517
21518 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21519 programs.
21520 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21521 (normal_mod_DEPENDENCIES): Likewise.
21522 * conf/i386-pc.mk: Regenerate.
21523 * conf/i386-efi.mk: Likewise
21524 * conf/common.mk: Likewise.
21525 * conf/powerpc-ieee1275.mk: Likewise.
21526 * conf/sparc64-ieee1275.mk: Likewise.
21527
21528 2006-09-22 Robert Millan <rmh@aybabtu.com>
21529
21530 Sync with i386 version.
21531 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21532 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21533
21534 2006-09-21 Robert Millan <rmh@aybabtu.com>
21535
21536 Import from GRUB Legacy (lib/device.c):
21537 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21538 (init_device_map) [__linux__]: Add support for I2O devices.
21539
21540 2006-09-14 Marco Gerards <marco@gnu.org>
21541
21542 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21543 `-melf_i386'.
21544
21545 2006-09-14 Robert Millan <rmh@aybabtu.com>
21546
21547 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21548 /boot/grub/*.lst.
21549
21550 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21551
21552 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21553 before adding it to device.map.
21554
21555 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21556
21557 * genmk.rb: Let GCC generate dependencies the first time it
21558 compiles a file; using the -MD option.
21559 * conf/common.mk: Regenerate.
21560 * conf/i386-pc.mk: Likewise.
21561 * conf/i386-efi.mk: Likewise.
21562 * conf/powerpc-ieee1275.mk: Likewise.
21563 * conf/sparc64-ieee1275.mk: Likewise.
21564
21565 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21566
21567 Move the prototypes of grub_setjmp and grub_longjmp to
21568 cpu/setjmp.h, so that each architecture may specify different
21569 attributes.
21570
21571 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21572 (grub_longjmp): Likewise.
21573 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21574 (grub_longjmp): Likewise.
21575 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21576 (grub_longjmp): Likewise.
21577
21578 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21579 [!GRUB_UTIL] (grub_longjmp): Removed.
21580
21581 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21582
21583 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21584 "color!" method does not return any value.
21585
21586 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21587
21588 * include/grub/bitmap.h: New file.
21589
21590 * include/grub/i386/pc/vbeutil.h: Likewise.
21591
21592 * video/bitmap.c: Likewise.
21593
21594 * video/readers/tga.c: Likewise.
21595
21596 * video/i386/pc/vbeutil.c: Likewise.
21597
21598 * commands/videotest.c: Code cleanup and updated to reflect to new
21599 video API.
21600
21601 * term/gfxterm.c: Likewise.
21602
21603 * video/video.c: Likewise.
21604
21605 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21606 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21607 (bitmap_mod_SOURCES): New entry.
21608 (bitmap_mod_CFLAGS): Likewise.
21609 (bitmap_mod_LDFLAGS): Likewise.
21610 (tga_mod_SOURCES): Likewise.
21611 (tga_mod_CFLAGS): Likewise.
21612 (tga_mod_LDFLAGS): Likewise.
21613
21614 * include/grub/video.h (grub_video_blit_operators): New enum type.
21615 (grub_video_render_target): Changed as forward declaration and moved
21616 actual definition to be video driver specific.
21617 (grub_video_adapter.blit_bitmap): Added blitting operator.
21618 (grub_video_adapter.blit_render_target): Likewise.
21619 (grub_video_blit_bitmap): Likewise.
21620 (grub_video_blit_render_target): Likewise.
21621
21622 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21623 driver specific render target definition.
21624 (grub_video_vbe_map_rgba): Added driver internal helper.
21625 (grub_video_vbe_unmap_color): Updated to use
21626 grub_video_i386_vbeblit_info.
21627 (grub_video_vbe_get_video_ptr): Likewise.
21628
21629 * include/grub/i386/pc/vbeblit.h
21630 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21631 grub_video_i386_vbeblit_info.
21632 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21633 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21634 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21635 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21636 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21637 (grub_video_i386_vbeblit_index_index): Likewise.
21638 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21639 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21640 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21641 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21642 operator.
21643 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21644 operator.
21645
21646 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21647 include/grub/i386/pc/vbeblit.h.
21648
21649 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21650 Updated to use grub_video_i386_vbeblit_info.
21651 (grub_video_i386_vbefill_R8G8B8): Likewise.
21652 (grub_video_i386_vbefill_index): Likewise.
21653 (grub_video_i386_vbefill): Added generic filler.
21654
21655 * video/i386/pc/vbefill.c: Updated to reflect changes on
21656 include/grub/i386/pc/vbefill.h.
21657
21658 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21659 grub_video_i386_vbeblit_info.
21660 (grub_video_vbe_unmap_color): Likewise.
21661 (grub_video_vbe_blit_glyph): Likewise.
21662 (grub_video_vbe_scroll): Likewise.
21663 (grub_video_vbe_draw_pixel): Removed function.
21664 (grub_video_vbe_get_pixel): Likewise.
21665 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21666 updated code to use it.
21667 (common_blitter): Added common blitter for render target and bitmap.
21668 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21669 (grub_video_vbe_blit_render_target): Likewise.
21670
21671 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21672
21673 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21674 is in text mode if there is no console control protocol instance
21675 available.
21676
21677 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21678
21679 * include/grub/video.h: Code cleanup.
21680
21681 * include/grub/i386/pc/vbe.h: Likewise.
21682
21683 * video/i386/pc/vbe.c: Likewise.
21684
21685 * video/i386/pc/vbeblit.c: Likewise.
21686
21687 * video/i386/pc/vbefill.c: Likewise.
21688
21689 * video/video.c: Likewise. Also added more comments.
21690
21691 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21692
21693 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21694 (struct grub_biosdisk_dap): Likewise.
21695
21696 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21697 linkage settings for all functions.
21698
21699 2006-07-12 Marco Gerards <marco@gnu.org>
21700
21701 * configure.ac (--enable-mm-debug): Fix typo.
21702
21703 * genkernsyms.sh.in: Use proper quoting for `CC'.
21704
21705 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21706
21707 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21708 (normal_mod_ASFLAGS): Remove "-m32".
21709
21710 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21711
21712 * util/misc.c: Include config.h.
21713 [!HAVE_MEMALIGN]: Do not include malloc.h.
21714 (grub_memalign): Use posix_memalign, if present. Then, use
21715 memalign, if present. Otherwise, emit an error.
21716
21717 * util/grub-emu.c: Do not include malloc.h.
21718
21719 * include/grub/util/misc.h: Include unistd.h. This is required for
21720 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21721 D. Eades III <hde@foobar-qux.org>.
21722
21723 * configure.ac (AC_GNU_SOURCE): Added.
21724 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21725 type.
21726
21727 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21728
21729 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21730 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21731
21732 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21733
21734 * include/grub/types.h (grub_host_addr_t): Rename to
21735 grub_target_addr_t.
21736 (grub_host_off_t): Rename to grub_target_off_t.
21737 (grub_host_size_t): Rename to grub_target_size_t.
21738 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21739 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21740
21741 * include/grub/kernel.h (struct grub_module_header): Change type
21742 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21743 (grub_module_info): Likewise.
21744
21745 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21746
21747 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21748 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21749 Velazquez <jesus.velazquez@gmail.com>.
21750
21751 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21752
21753 Count partitions from 1 instead of 0 in the string representation
21754 of partitions. Still use 0-based internally.
21755
21756 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21757 (sun_partition_map_iterate): Use grub_partition_t instead of
21758 struct grub_partition *. Cast DESC->START_CYLINDER to
21759 grub_uint64_t after converting the endian.
21760 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21761 (sun_partition_map_get_name): Add 1 to P->INDEX.
21762
21763 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21764 PCDATA->DOS_PART.
21765 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21766
21767 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21768 zero instead of one.
21769 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21770 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21771
21772 * partmap/apple.c (apple_partition_map_iterate): Change the type
21773 of POS to unsigned.
21774 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21775 (apple_partition_map_get_name): Add 1 into P->INDEX.
21776
21777 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21778 of POS to unsigned.
21779 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21780 calculate the offset of a partition.
21781 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21782 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21783
21784 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21785 SECTOR to grub_disk_addr_t.
21786 (acorn_partition_map_iterate): Likewise.
21787 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21788 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21789 top.
21790 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21791
21792 * kern/i386/pc/init.c (make_install_device): Add 1 into
21793 GRUB_INSTALL_DOS_PART.
21794
21795 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21796 conditional.
21797
21798 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21799
21800 Clean up the code to support 64-bit addressing in disks and
21801 files. This change is not enough for filesystems yet.
21802
21803 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21804 type of "start" to grub_uint64_t.
21805 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21806 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21807 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21808 convert addresses.
21809
21810 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21811 to grub_disk_addr_t.
21812
21813 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21814 string.
21815
21816 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21817
21818 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21819 to char *.
21820
21821 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21822
21823 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21824
21825 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21826
21827 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21828 to grub_off_t, to detect an error from grub_file_seek.
21829 (grub_multiboot_load_elf32): Likewise.
21830
21831 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21832 maximum unsigned long value when an overflow is detected.
21833 (grub_strtoull): New function.
21834 (grub_divmod64): Likewise.
21835 (grub_lltoa): use grub_divmod64.
21836
21837 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21838 grub_disk_addr_t.
21839 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21840 the pointer to next character. Use grub_strtoull instead of
21841 grub_strtoul.
21842 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21843 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21844 respectively.
21845
21846 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
21847 return value is signed.
21848 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21849 test if OFFSET is less than zero, as OFFSET is unsigned now.
21850
21851 * kern/disk.c (struct grub_disk_cache): Change the type of
21852 "sector" to grub_disk_addr_t.
21853 (grub_disk_cache_get_index): Change the type of SECTOR to
21854 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21855 unsigned after shifting.
21856 (grub_disk_cache_invalidate): Change the type of SECTOR to
21857 grub_disk_addr_t.
21858 (grub_disk_cache_unlock): Likewise.
21859 (grub_disk_cache_store): Likewise.
21860 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21861 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21862 grub_disk_addr_t and grub_uint64_t, respectively.
21863 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21864 body, as the value of OFFSET is tweaked by
21865 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21866 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21867 respectively.
21868 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21869 body, as the value of OFFSET is tweaked by
21870 grub_disk_check_range. Change the types of LEN and N to
21871 grub_size_t.
21872
21873 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21874 and "saved_offset" to grub_off_t.
21875 (test_header): Cast BUF to char *.
21876 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21877 to char *.
21878 (grub_gzio_read): Change the types of OFFSET and SIZE to
21879 grub_off_t and grub_size_t, respectively.
21880
21881 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21882 Removed.
21883 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21884 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21885 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21886 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21887 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21888
21889 * include/grub/types.h (grub_off_t): Unconditionally set to
21890 grub_uint64_t.
21891 (grub_disk_addr_t): Changed to grub_uint64_t.
21892
21893 * include/grub/partition.h (struct grub_partition): Change the
21894 types of "start", "len" and "offset" to grub_disk_addr_t,
21895 grub_uint64_t and grub_disk_addr_t, respectively.
21896 (grub_partition_get_start): Return grub_disk_addr_t.
21897 (grub_partition_get_len): Return grub_uint64_t.
21898
21899 * include/grub/misc.h (grub_strtoull): New prototype.
21900 (grub_divmod64): Likewise.
21901
21902 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21903 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21904 grub_off_t, respectively.
21905 All callers and references changed.
21906
21907 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21908 grub_size_t in "read".
21909 All callers and references changed.
21910
21911 * include/grub/file.h (struct grub_file): Change the types of
21912 "offset" and "size" to grub_off_t and grub_off_t,
21913 respectively. Change the type of SECTOR to grub_disk_addr_t in
21914 "read_hook".
21915 (grub_file_read): Change the type of LEN to grub_size_t.
21916 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21917 grub_off_t.
21918 (grub_file_size): Return grub_off_t.
21919 (grub_file_tell): Likewise.
21920 All callers and references changed.
21921
21922 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21923 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21924 "write".
21925 (struct grub_disk): Change the type of "total_sectors" to
21926 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
21927 "read_hook".
21928 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21929 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21930 (grub_disk_write): Likewise.
21931 All callers and references changed.
21932
21933 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21934 char * for grub_strncmp to silence gcc.
21935 (grub_iso9660_mount): Likewise.
21936 (grub_iso9660_mount): Likewise.
21937 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21938 return statement.
21939 (grub_iso9660_iterate_dir): Likewise.
21940 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21941
21942 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21943 LEN to grub_disk_addr_t and grub_size_t, respectively.
21944
21945 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21946
21947 * fs/jfs.c (grub_jfs_read_file): Likewise.
21948
21949 * fs/minix.c (grub_jfs_read_file): Likewise.
21950
21951 * fs/sfs.c (grub_jfs_read_file): Likewise.
21952
21953 * fs/ufs.c (grub_jfs_read_file): Likewise.
21954
21955 * fs/xfs.c (grub_jfs_read_file): Likewise.
21956
21957 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
21958 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
21959 respectively.
21960
21961 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
21962 BLKNR to -1 instead of returning GRUB_ERRNO.
21963 (grub_ext2_read_file): Change the types of SECTOR and
21964 LEN to grub_disk_addr_t and grub_size_t, respectively.
21965
21966 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
21967 LEN to grub_disk_addr_t and grub_size_t, respectively.
21968
21969 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
21970 grub_file_read.
21971
21972 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
21973 string. Do not cast SECTOR explicitly.
21974
21975 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
21976 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
21977 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
21978 grub_disk_addr_t and grub_size_t, respectively. If the sector is
21979 over 2TB and LBA mode is not supported, raise an error.
21980 (get_safe_sectors): New function.
21981 (grub_biosdisk_read): Use get_safe_sectors.
21982 (grub_biosdisk_write): Likewise.
21983
21984 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
21985 (grub_efidisk_write): Likewise.
21986
21987 * disk/loopback.c (delete_loopback): Cosmetic changes.
21988 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
21989 correctly.
21990 (grub_loopback_open): Likewise.
21991 (grub_loopback_read): Likewise. Also, change the type of POS to
21992 grub_off_t, and fix the usage of grub_memset.
21993
21994 * commands/i386/pc/play.c: Include grub/machine/time.h.
21995
21996 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
21997 print FILE->SIZE.
21998
21999 * commands/configfile.c: Include grub/env.h.
22000
22001 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22002 GRUB_ERRNO directly instead. Change the type of POS to
22003 grub_off_t. Follow the coding standard.
22004
22005 * commands/blocklist.c: Include grub/partition.h.
22006 (grub_cmd_blocklist): Return an error if the underlying device is
22007 not a disk. Take the starting sector of a partition into account,
22008 if a partition is used.
22009
22010 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22011 a length field.
22012 (lba_mode): Support 64-bit addresses.
22013 (chs_mode): Likewise.
22014 (copy_buffer): Adapted to the new offsets of a length field and a
22015 segment field.
22016 (blocklist_default_start): Allocate 64-bit space.
22017
22018 * boot/i386/pc/boot.S (force_lba): Removed.
22019 (boot_drive): Moved to under KERNEL_SECTOR.
22020 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22021 space.
22022 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22023 is useless.
22024 (lba_mode): Refactored to support a 64-bit address. More size
22025 optimization.
22026 (setup_sectors): Likewise.
22027
22028 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22029
22030 * DISTLIST: Added include/grub/i386/linux.h. Removed
22031 include/grub/i386/pc/linux.h
22032
22033 * configure.ac (AC_INIT): Bumped to 1.94.
22034
22035 * config.guess: Updated from gnulib.
22036 * config.sub: Likewise.
22037 * install-sh: Likewise.
22038 * mkinstalldirs: Likewise.
22039
22040 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22041
22042 * conf/common.rmk (grub_modules_init.lst): Depended on
22043 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22044 MODSRCFILES.
22045
22046 * genmk.rb (PModule::rule): Reverted the previous change.
22047
22048 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22049
22050 * conf/common.rmk (grub_modules_init.lst): Depends on
22051 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22052 that the target does not exist before producing.
22053 (grub_modules_init.h): Remove the target before generating.
22054 (grub_emu_init.c): Likewise.
22055
22056 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22057
22058 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22059
22060 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22061 for the target-specific tests. Make sure that we also have the
22062 up-to-date target variables for those tests.
22063
22064 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22065
22066 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22067 (PModule::rule): Likewise.
22068
22069 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22070
22071 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22072 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22073 target-specific flags should be prefixed.
22074 (PModule::rule): Likewise.
22075
22076 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22077
22078 * configure.ac (CMP): Check if cmp is available explicitly.
22079
22080 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22081
22082 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22083 (target_cpu): New variable.
22084 (pkglibdir): Use target_cpu instead of host_cpu.
22085
22086 * util/i386/pc/grub-install.in (host_cpu): Removed.
22087 (target_cpu): New variable.
22088 (pkglibdir): Use target_cpu instead of host_cpu.
22089
22090 * util/genmoddep.c: Removed.
22091
22092 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22093 instead of GRUB_HOST_SIZEOF_VOID_P.
22094 * kern/dl.c: Likewise.
22095
22096 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22097 ...
22098 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22099 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22100 (GRUB_TARGET_SIZEOF_LONG): ... this.
22101 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22102 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22103 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22104 to ...
22105 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22106 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22107 (GRUB_TARGET_SIZEOF_LONG): ... this.
22108 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22109 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22110 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22111 to ...
22112 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22113 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22114 (GRUB_TARGET_SIZEOF_LONG): ... this.
22115 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22116 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22117
22118 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22119 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22120 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22121 instead of GRUB_HOST_SIZEOF_LONG.
22122 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22123 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22124 GRUB_CPU_WORDS_BIGENDIAN.
22125 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22126 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22127 grub_host_ssize_t.
22128
22129 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22130 (genmoddep_SOURCES): Likewise.
22131 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22132 (genmoddep_SOURCES): Likewise.
22133 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22134 (genmoddep_SOURCES): Likewise.
22135 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22136 Likewise.
22137 (genmoddep_SOURCES): Likewise.
22138
22139 * genmoddep.awk: New file.
22140
22141 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22142 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22143 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22144 (PModule::rule): Likewise.
22145 (Program::rule): Likewise.
22146 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22147 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22148 respectively.
22149
22150 * configure.ac: Rewritten intensively to use host and target
22151 instead of build and host, respectively.
22152
22153 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22154 (host_cpu): Removed.
22155 (target_cpu): New variable.
22156 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22157 (BUILD_CC): Removed.
22158 (BUILD_CFLAGS): Likewise.
22159 (BUILD_CPPFLAGS): Likewise.
22160 (TARGET_CC): New variable.
22161 (TARGET_CFLAGS): Likewise.
22162 (TARGET_CPPFLAGS): Likewise.
22163 (TARGET_LDFLAGS): Likewise.
22164 (AWK): Likewise.
22165 (include): Use target_cpu instead of host_cpu.
22166 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22167
22168 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22169
22170 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22171
22172 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22173 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22174 field 'false' to 'exec_on_false'.
22175 (grub_script_create_cmdif): Renamed argument names to reflect above
22176 changes.
22177
22178 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22179
22180 * normal/script.c (grub_script_create_cmdif): Likewise.
22181
22182 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22183
22184 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22185 top.
22186 (grub_hfsplus_btree_recptr): Likewise.
22187 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22188 FILEBLOCK both to pass a block number and store next block
22189 number.
22190 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22191 overflow file correctly. Specify errors appropriately, because
22192 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22193 grub_hfsplus_btree_recptr to get the pointer to a found key.
22194 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22195 is found.
22196
22197 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22198 linux.mod.
22199 (_linux_mod_SOURCES): New variable.
22200 (_linux_mod_CFLAGS): Likewise.
22201 (_linux_mod_LDFLAGS): Likewise.
22202 (linux_mod_SOURCES): Likewise.
22203 (linux_mod_CFLAGS): Likewise.
22204 (linux_mod_LDFLAGS): Likewise.
22205
22206 * DISTLIST: Added loader/i386/efi/linux.c,
22207 loader/i386/efi/linux_normal.c and
22208 include/grub/i386/efi/loader.h.
22209
22210 * loader/i386/efi/linux.c: New file.
22211 * loader/i386/efi/linux_normal.c: Likewise.
22212 * include/grub/i386/efi/loader.h: Likewise.
22213
22214 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22215
22216 * commands/blocklist.c: New file.
22217
22218 * DISTLIST: Added commands/blocklist.c.
22219
22220 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22221 color for the background, and a darker color for the foreground.
22222 (grub_console_checkkey): Return READ_KEY.
22223 (grub_console_cls): Set the background to
22224 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22225
22226 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22227
22228 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22229 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22230
22231 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22232 prototype.
22233
22234 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22235 BG. The spec is wrong again.
22236
22237 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22238 prototype.
22239 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22240
22241 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22242 commands/blocklist.c.
22243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22244
22245 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22246 (blocklist_mod_SOURCES): New variable.
22247 (blocklist_mod_CFLAGS): Likewise.
22248 (blocklist_mod_LDFLAGS): Likewise.
22249
22250 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22251
22252 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22253 duplication.
22254 (lba_mode): Use %eax more intensively to reduce the code size.
22255
22256 2006-05-20 Marco Gerards <marco@gnu.org>
22257
22258 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22259
22260 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22261 for `menuentry'.
22262 (script): Accept leading newlines.
22263 (newlines): New rule to describe 0 or more newlines.
22264 (commands): Accept `command' with trailing newline. Fixed the
22265 order in which arguments were passed to `grub_script_add_cmd'.
22266 Accept commands separated by newlines.
22267 (function): Changed to accept newlines.
22268 (menuentry) Rewritten.
22269
22270 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22271 front of the list, instead of to the end.
22272
22273 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22274
22275 * util/i386/pc/grub-install.in (bindir): New variable.
22276 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22277 Shaver <lbgwjl@gmail.com>.
22278
22279 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22280
22281 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22282 grub/machine/linux.h
22283 * loader/i386/pc/linux.c: Likewise.
22284
22285 * include/grub/i386/pc/linux.h: Moved to ...
22286 * include/grub/i386/linux.h: ... here.
22287
22288 * include/grub/i386/linux.h (struct linux_kernel_params): New
22289 struct.
22290
22291 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22292
22293 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22294 checking.
22295 (grub_video_vbe_blit_glyph): Likewise.
22296 (grub_video_vbe_blit_bitmap): Likewise.
22297 (grub_video_vbe_blit_render_target): Likewise.
22298
22299 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22300
22301 * configure.ac (--with-platform): Properly quote the square
22302 brackets.
22303
22304 2006-05-08 Marco Gerards <marco@gnu.org>
22305
22306 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22307 this...
22308 (kernel_elf_HEADERS): ...to this. Updated all users.
22309 (grubof_symlist.c): Renamed from this...
22310 (kernel_elf_symlist.c): ...to this. Updated all users.
22311 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22312 (grubof_SOURCES): Renamed from this...
22313 (kernel_elf_SOURCES): ...to this.
22314 (grubof_HEADERS): Renamed from this...
22315 (kernel_elf_HEADERS): ...to this.
22316 (grubof_CFLAGS): Renamed from this...
22317 (kernel_elf_CFLAGS): ...to this.
22318 (grubof_ASFLAGS): Renamed from this...
22319 (kernel_elf_ASFLAGS): ...to this.
22320 (grubof_LDFLAGS): Renamed from this...
22321 (kernel_elf_LDFLAGS): ...to this.
22322
22323 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22324 this...
22325 (kernel_elf_HEADERS): ...to this. Updated all users.
22326 (grubof_symlist.c): Renamed from this...
22327 (kernel_elf_symlist.c): ...to this. Updated all users.
22328 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22329 (grubof_SOURCES): Renamed from this...
22330 (kernel_elf_SOURCES): ...to this.
22331 (grubof_HEADERS): Renamed from this...
22332 (kernel_elf_HEADERS): ...to this.
22333 (grubof_CFLAGS): Renamed from this...
22334 (kernel_elf_CFLAGS): ...to this.
22335 (grubof_ASFLAGS): Renamed from this...
22336 (kernel_elf_ASFLAGS): ...to this.
22337 (grubof_LDFLAGS): Renamed from this...
22338 (kernel_elf_LDFLAGS): ...to this.
22339
22340 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22341 `kernel.elf' instead of `grubof'.
22342
22343 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22344
22345 Add --with-platform to configure. Use pkglibdir instead of
22346 pkgdatadir. This is reported by Roger Leigh.
22347
22348 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22349 (host_vendor): Likewise.
22350 (host_os): Likewise.
22351 (pkgdatadir): Likewise.
22352 (platform): New variable.
22353 (pkglibdir): Likewise.
22354 Use PKGLIBDIR instead of PKGDATADIR.
22355
22356 * util/i386/pc/grub-install.in (datadir): Removed.
22357 (host_vendor): Likewise.
22358 (host_os): Likewise.
22359 (pkgdatadir): Likewise.
22360 (platform): New variable.
22361 (pkglibdir): Likewise.
22362 Use PKGLIBDIR instead of PKGDATADIR.
22363
22364 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22365 instead of GRUB_DATADIR.
22366 (main): Likewise.
22367 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22368 (main): Likewise.
22369 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22370 (main): Likewise.
22371
22372 * configure.ac (--with-platform): New option.
22373 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22374
22375 * Makefile.in: Include a makefile based on PLATFORM instead of
22376 HOST_VENDOR.
22377 (pkgdatadir): Not appended by the machine type.
22378 (pkglibdir): Appended by the machine type.
22379 (host_vendor): Removed.
22380 (platform): New variable.
22381 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22382 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22383 (uninstall): Likewise.
22384
22385 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22386
22387 Use the environment context in the menu. Remove the commands
22388 "default" and "timeout", and use variables instead.
22389
22390 * normal/menu.c: Include grub/env.h.
22391 (print_entry): Cast TITLE to silence gcc.
22392 (get_timeout): New function.
22393 (set_timeout): Likewise.
22394 (get_entry_number): Likewise.
22395 (run_menu): Use a default entry, a fallback entry and a timeout
22396 in the environment variables "default", "fallback" and
22397 "timeout". Also, tweak the default entry if it is not within the
22398 current menu entries.
22399 (grub_menu_run): Use a fallback entry in the environment variable
22400 "fallback".
22401
22402 * normal/main.c (read_config_file): Do not initialize
22403 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22404 NEWMENU->TIMEOUT.
22405 (grub_normal_execute): Use a data slot to store the menu.
22406
22407 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22408 fallback_entry and timeout.
22409 (struct grub_menu_list): Removed.
22410 (grub_menu_list_t): Likewise.
22411 (struct grub_context): Likewise.
22412 (grub_context_t): Likewise.
22413 (grub_context_get): Likewise.
22414 (grub_context_get_current_menu): Likewise.
22415 (grub_context_push_menu): Likewise.
22416 (grub_context_pop_menu): Likewise.
22417 (grub_default_init): Likewise.
22418 (grub_default_fini): Likewise.
22419 (grub_timeout_init): Likewise.
22420 (grub_timeout_fini): Likewise.
22421
22422 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22423 and timeout.mod.
22424 (normal_mod_SOURCES): Removed normal/context.c.
22425
22426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22427 commands/default.c, commands/timeout.c and normal/context.c.
22428 (normal_mod_SOURCES): Removed normal/context.c.
22429
22430 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22431 commands/timeout.c and normal/context.c.
22432 (normal_mod_SOURCES): Removed normal/context.c.
22433
22434 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22435 commands/default.c, commands/timeout.c and normal/context.c.
22436 (normal_mod_SOURCES): Removed normal/context.c.
22437
22438 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22439 timeout.mod.
22440 (default_mod_SOURCES): Removed.
22441 (default_mod_CFLAGS): Likewise.
22442 (default_mod_LDFLAGS): Likewise.
22443 (timeout_mod_SOURCES): Removed.
22444 (timeout_mod_CFLAGS): Likewise.
22445 (timeout_mod_LDFLAGS): Likewise.
22446
22447 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22448 normal/context.c.
22449
22450 * commands/default.c: Removed.
22451 * commands/timeout.c: Likewise.
22452 * normal/context.c: Likewise.
22453
22454 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22455
22456 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22457
22458 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22459
22460 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22461 "next" to "prev" for readability.
22462 (struct grub_env_sorted_var): New struct.
22463 (grub_env_context): Renamed to ...
22464 (initial_context): ... this.
22465 (grub_env_var_context): Renamed to ...
22466 (current_context): ... this.
22467 (grub_env_find): Look only at CURRENT_CONTEXT.
22468 (grub_env_context_open): Rewritten to copy exported variables from
22469 previous context.
22470 (grub_env_context_close): Rewritten according to the new
22471 scheme. Also, add an assertion to prevent the initial context from
22472 removed.
22473 (grub_env_insert): Removed the code for the sorted list.
22474 (grub_env_remove): Likewise.
22475 (grub_env_export): Simply mark the variable with
22476 GRUB_ENV_VAR_GLOBAL.
22477 (grub_env_set): A cosmetic change for naming consistency.
22478 (grub_env_get): Likewise.
22479 (grub_env_unset): Likewise.
22480 (grub_env_iterate): Rewritten to sort variables within this
22481 function.
22482 (grub_register_variable_hook): Fixed for naming consistency. Call
22483 grub_env_find again, only if NAME is not found at the first time.
22484 (mangle_data_slot_name): New function.
22485 (grub_env_set_data_slot): Likewise.
22486 (grub_env_get_data_slot): Likewise.
22487 (grub_env_unset_data_slot): Likewise.
22488
22489 * include/grub/env.h (grub_env_var_type): New enum.
22490 (GRUB_ENV_VAR_LOCAL): New constant.
22491 (GRUB_ENV_VAR_GLOBAL): Likewise.
22492 (GRUB_ENV_VAR_DATA): Likewise.
22493 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22494 "type".
22495 (grub_env_set): Replace VAR with NAME for consistency.
22496 (grub_register_variable_hook): Likewise.
22497 (grub_env_export): Specify the name of the argument.
22498 (grub_env_set_data_slot): New prototype.
22499 (grub_env_get_data_slot): Likewise.
22500 (grub_env_unset_data_slot): Likewise.
22501
22502 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22503
22504 Extend the loader so that GRUB can accept a loader which comes
22505 back to GRUB when a loaded image exits. Also, this change adds
22506 support for a chainloader on EFI.
22507
22508 * term/efi/console.c: Include grub/misc.h.
22509 (grub_console_checkkey): Display a scan code on the top for
22510 debugging. This will be removed once the EFI port gets stable.
22511 Correct the scan code mapping.
22512
22513 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22514 allocate memory from larger regions, in order to reduce the number
22515 of allocated regions. Otherwise, the MacOSX loader panics.
22516 (filter_memory_map): Avoid less than 1MB for compatibility with
22517 other loaders.
22518 (add_memory_regions): Allocate from the tail of a region, if
22519 possible, to avoid allocating a region near to 1MB, for the MacOSX
22520 loader.
22521
22522 * kern/efi/init.c (grub_efi_set_prefix): Specify
22523 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22524
22525 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22526 argument IMAGE_HANDLE and specify it to get a loaded image.
22527 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22528 grub_efi_get_loaded_image.
22529 (grub_efi_get_filename): Divide the length by the size of
22530 grub_efi_char16_t.
22531 (grub_efi_get_device_path): New function.
22532 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22533 the length by the size of grub_efi_char16_t for a file path device
22534 path node.
22535
22536 * kern/loader.c (grub_loader_noreturn): New variable.
22537 (grub_loader_set): Accept a new argument NORETURN. Set
22538 GRUB_LOADER_NORETURN to NORETURN.
22539 All callers changed.
22540 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22541 grub_machine_fini.
22542
22543 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22544 prototype.
22545 (grub_efi_get_loaded_image): Take an argument to specify an image
22546 handle.
22547
22548 * include/grub/loader.h (grub_loader_set): Added one more argument
22549 NORETURN.
22550
22551 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22552 instead of grub_efi_open_protocol.
22553 (grub_efidisk_get_device_name): Likewise.
22554 (grub_efidisk_close): Print a newline.
22555 (grub_efidisk_get_device_handle): Fixed to use
22556 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22557 GRUB_EFI_DEVICE_PATH_TYPE.
22558
22559 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22560 * kern/efi/efi.c (device_path_guid): ... here.
22561
22562 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22563 chain.mod.
22564 (kernel_mod_HEADERS): Added efi/disk.h.
22565 (_chain_mod_SOURCES): New variable.
22566 (_chain_mod_CFLAGS): Likewise.
22567 (_chain_mod_LDFLAGS): Likewise.
22568 (chain_mod_SOURCES): Likewise.
22569 (chain_mod_CFLAGS): Likewise.
22570 (chain_mod_LDFLAGS): Likewise.
22571
22572 * DISTLIST: Added include/grub/efi/chainloader.h,
22573 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22574
22575 * include/grub/efi/chainloader.h: New file.
22576 * loader/efi/chainloader.c: Likewise.
22577 * loader/efi/chainloader_normal.c: Likewise.
22578
22579 2006-04-30 Marco Gerards <marco@gnu.org>
22580
22581 * commands/configfile.c (grub_cmd_source): New function.
22582 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22583 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22584
22585 2006-04-30 Marco Gerards <marco@gnu.org>
22586
22587 * normal/execute.c (grub_script_execute_cmd): Change the return
22588 type to `grub_err_t'. Correctly return the error.
22589 (grub_script_execute_cmdline): In case a command line is not a
22590 command or a function, try to interpret it as an assignment.
22591
22592 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22593
22594 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22595 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22596 skip a node whose name is obviously invalid as UTF-16,
22597 i.e. contains a NUL character. Stop the iteration when the last
22598 directory entry is found. Instead of using the return value of
22599 grub_hfsplus_btree_iterate_node, store the value in RET and use
22600 it, because the iterator can be stopped by the last directory
22601 entry.
22602
22603 2006-04-30 Marco Gerards <marco@gnu.org>
22604
22605 * include/grub/env.h (grub_env_export): New prototype. Reported
22606 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22607
22608 2006-04-30 Marco Gerards <marco@gnu.org>
22609
22610 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22611 size of the extents in a catalog file record.
22612
22613 2006-04-29 Marco Gerards <marco@gnu.org>
22614
22615 * commands/configfile.c (grub_cmd_configfile): Execute the
22616 configfile within its own context.
22617
22618 * include/grub/env.h (grub_env_context_open): New prototype.
22619 (grub_env_context_close): Likewise.
22620
22621 * kern/env.c (grub_env): Removed.
22622 (grub_env_sorted): Likewise.
22623 (grub_env_context): New variable.
22624 (grub_env_var_context): Likewise.
22625 (grub_env_find): Search both the active context and the global
22626 context.
22627 (grub_env_context_open): New function.
22628 (grub_env_context_close): Likewise.
22629 (grub_env_insert): Likewise.
22630 (grub_env_remove): Likewise.
22631 (grub_env_export): Likewise.
22632 (grub_env_set): Changed to use helper functions to avoid code
22633 duplication.
22634 (grub_env_iterate): Rewritten so both the current context and the
22635 global context are being used.
22636
22637 * normal/command.c (export_command): New function.
22638 (grub_command_init): Register the `export' function.
22639
22640 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22641
22642 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22643 explicitly to suppress gcc's warnings.
22644 * fs/fat.c (grub_fat_find_dir): Likewise.
22645 (grub_fat_label): Likewise.
22646 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22647 (grub_xfs_mount): Likewise.
22648 (grub_xfs_label): Likewise.
22649 * fs/affs.c (grub_affs_mount): Likewise.
22650 (grub_affs_label): Likewise.
22651 (grub_affs_iterate_dir): Likewise.
22652 * fs/sfs.c (grub_sfs_mount): Likewise.
22653 (grub_sfs_iterate_dir): Likewise.
22654 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22655 * fs/hfs.c (grub_hfs_mount): Likewise.
22656 (grub_hfs_cmp_catkeys): Likewise.
22657 (grub_hfs_find_dir): Likewise.
22658 (grub_hfs_dir): Likewise.
22659 (grub_hfs_label): Likewise.
22660 * fs/jfs.c (grub_jfs_mount): Likewise.
22661 (grub_jfs_opendir): Likewise.
22662 (grub_jfs_getent): Likewise.
22663 (grub_jfs_lookup_symlink): Likewise.
22664 (grub_jfs_label): Likewise.
22665 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22666 (grub_hfsplus_iterate_dir): Likewise.
22667 (grub_hfsplus_btree_iterate_node): Made static.
22668
22669 * util/grub-emu.c (prefix): New variable.
22670 (grub_machine_set_prefix): New function.
22671 (main): Do not set the environment variable "prefix" here. Only
22672 set PREFIX, which is used later by grub_machine_set_prefix.
22673
22674 * include/grub/video.h: Do not include grub/symbol.h.
22675 (grub_video_register): Not exported. This symbol is not defined in
22676 the kernel.
22677 (grub_video_unregister): Likewise.
22678 (grub_video_iterate): Likewise.
22679 (grub_video_setup): Likewise.
22680 (grub_video_restore): Likewise.
22681 (grub_video_get_info): Likewise.
22682 (grub_video_get_blit_format): Likewise.
22683 (grub_video_set_palette): Likewise.
22684 (grub_video_get_palette): Likewise.
22685 (grub_video_set_viewport): Likewise.
22686 (grub_video_get_viewport): Likewise.
22687 (grub_video_map_color): Likewise.
22688 (grub_video_map_rgb): Likewise.
22689 (grub_video_map_rgba): Likewise.
22690 (grub_video_fill_rect): Likewise.
22691 (grub_video_blit_glyph): Likewise.
22692 (grub_video_blit_bitmap): Likewise.
22693 (grub_video_blit_render_target): Likewise.
22694 (grub_video_scroll): Likewise.
22695 (grub_video_swap_buffers): Likewise.
22696 (grub_video_create_render_target): Likewise.
22697 (grub_video_delete_render_target): Likewise.
22698 (grub_video_set_active_render_target): Likewise.
22699
22700 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22701 Undefined.
22702 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22703
22704 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22705 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22706 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22707 instead of $(srcdir)/genkernsyms.sh.
22708
22709 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22710 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22711 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22712 instead of $(srcdir)/genkernsyms.sh.
22713
22714 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22715 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22716 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22717 instead of $(srcdir)/genkernsyms.sh.
22718
22719 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22720 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22721 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22722 instead of $(srcdir)/genkernsyms.sh.
22723
22724 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22725 genkernsyms.sh.
22726
22727 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22728 genkernsyms.sh.
22729 (gensymlist.sh): New target.
22730 (genkernsyms.sh): Likewise.
22731
22732 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22733 genkernsyms.sh.in and gensymlist.sh.in.
22734
22735 * genkernsyms.sh: Removed.
22736 * gensymlist.sh: Likewise.
22737
22738 * genkernsyms.sh.in: New file.
22739 * gensymlist.sh.in: Likewise.
22740
22741 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22742
22743 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22744 clobber "prefix", since we may have already set it manually.
22745
22746 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22747
22748 * kern/misc.c (abort): New alias for grub_abort.
22749
22750 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22751
22752 A new machine-specific function "grub_machine_set_prefix" is
22753 defined. This is called after loading modules, so that a prefix
22754 initialization can use modules. Also, this change adds an
22755 intensive debugging feature for the memory manager via the
22756 configure option "--enable-mm-debug".
22757
22758 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22759 PART.LEN.
22760
22761 * kern/sparc64/ieee1275/init.c (abort): Removed.
22762 (grub_stop): Likewise.
22763 (grub_exit): New function.
22764 (grub_set_prefix): Renamed to ...
22765 (grub_machine_set_prefix): ... this.
22766 (grub_machine_init): Do not call grub_set_prefix.
22767
22768 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22769 (grub_machine_set_prefix): ... this.
22770 (grub_machine_init): Do not call grub_set_prefix.
22771
22772 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22773 (grub_machine_init): Do not set the prefix here.
22774
22775 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22776
22777 * kern/efi/init.c: Include grub/mm.h.
22778 (grub_efi_set_prefix): New function.
22779
22780 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22781 (grub_efi_get_filename): New function.
22782 (grub_print_device_path): Renamed to ...
22783 (grub_efi_print_device_path): ... this.
22784
22785 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22786 [MM_DEBUG] (grub_realloc): Likewise.
22787 [MM_DEBUG] (grub_free): Likewise.
22788 [MM_DEBUG] (grub_memalign): Likewise.
22789 [MM_DEBUG] (grub_mm_debug): New variable.
22790 [MM_DEBUG] (grub_debug_malloc): New function.
22791 [MM_DEBUG] (grub_debug_free): New function.
22792 [MM_DEBUG] (grub_debug_realloc): New function.
22793 [MM_DEBUG] (grub_debug_memalign): New function.
22794
22795 * kern/misc.c (grub_abort): Print a newline to distinguish
22796 the message.
22797
22798 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22799 grub_set_root_dev after loading modules. This is necessary when
22800 setting a prefix depends on modules.
22801
22802 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22803 (grub_efi_print_device_path): ... this.
22804 (grub_efi_get_filename): New prototype.
22805 (grub_efi_set_prefix): Likewise.
22806
22807 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22808 and grub/disk.h.
22809 (grub_efidisk_get_device_handle): New prototype.
22810 (grub_efidisk_get_device_name): Likewise.
22811
22812 * include/grub/mm.h: Include config.h.
22813 (MM_DEBUG): Removed.
22814 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22815 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22816 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22817 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22818 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22819 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22820 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22821 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22822 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22823
22824 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22825
22826 * disk/efi/efidisk.c: Include grub/partition.h.
22827 (iterate_child_devices): New function.
22828 (add_device): First, compare only last device path nodes, so that
22829 devices are sorted by the types.
22830 (grub_efidisk_get_device_handle): New function.
22831 (grub_efidisk_get_device_name): Likewise.
22832
22833 * configure.ac (--enable-mm-debug): New option to enable the
22834 memory manager debugging feature. This makes the binary much
22835 bigger, so is disabled by default.
22836
22837 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22838
22839 Use grub_abort instead of grub_stop, and grub_exit must be
22840 define in each architecture now. Also, this change adds support
22841 for EFI disks.
22842
22843 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22844 (grub_getkey): New function.
22845 (grub_term_get_current): Likewise.
22846
22847 * util/i386/pc/grub-setup.c: Include grub/term.h.
22848 (grub_getkey): New function.
22849 (grub_term_get_current): Likewise.
22850
22851 * util/misc.c (grub_stop): Renamed to ...
22852 (grub_exit): ... this.
22853
22854 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22855 (grub_exit): ... this.
22856 (grub_machine_init): Use grub_abort instead of abort.
22857 (grub_stop): Removed.
22858
22859 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22860 abort.
22861
22862 * kern/i386/pc/startup.S (grub_exit): New function.
22863 (cold_reboot): New label.
22864
22865 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22866 (grub_efi_init): Call grub_efidisk_init.
22867 (grub_efi_fini): Call grub_efidisk_fini.
22868
22869 * kern/efi/efi.c: Include grub/mm.h.
22870 (grub_efi_console_control_guid): Renamed to ...
22871 (console_control_guid): ... this.
22872 (grub_efi_loaded_image_guid): Renamed to ...
22873 (loaded_image_guid): ... this.
22874 (grub_efi_locate_handle): New function.
22875 (grub_efi_open_protocol): Likewise.
22876 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22877 GRUB_EFI_CONSOLE_CONTROL_GUID.
22878 (grub_efi_exit): Removed.
22879 (grub_stop): Likewise.
22880 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22881 (grub_exit): New function.
22882 (grub_print_device_path): Likewise.
22883
22884 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22885 (grub_enter_rescue_mode): Register "exit".
22886
22887 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22888 (grub_abort): New function.
22889
22890 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22891
22892 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22893
22894 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22895
22896 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22897 (grub_print_device_path): New prototype.
22898 (grub_efi_locate_handle): Likewise.
22899 (grub_efi_open_protocol): Likewise.
22900
22901 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22902 * disk/efi/efidisk.c: Likewise.
22903
22904 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22905
22906 * include/grub/efi/console_control.h
22907 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22908
22909 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22910 last 8 bytes as an array.
22911 (GRUB_EFI_DISK_IO_GUID): New macro.
22912 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22913 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22914 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22915 grub_uint8_t.
22916 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22917 (struct grub_efi_device_path): Rename the member "sub_type" to
22918 "subtype".
22919 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22920 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22921 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22922 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22923 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22924 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22925 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22926 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22927 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22928 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22929 (struct grub_efi_pci_device_path): New structure.
22930 (grub_efi_pci_device_path_t): New type.
22931 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22932 (struct grub_efi_pccard_device_path): New structure.
22933 (grub_efi_pccard_device_path_t): New type.
22934 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22935 (struct grub_efi_memory_mapped_device_path): New structure.
22936 (grub_efi_memory_mapped_device_path_t): New type.
22937 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22938 (struct grub_efi_vendor_device_path): New structure.
22939 (grub_efi_vendor_device_path_t): New type.
22940 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22941 (struct grub_efi_controller_device_path): New structure.
22942 (grub_efi_controller_device_path_t): New type.
22943 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22944 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
22945 (struct grub_efi_acpi_device_path): New structure.
22946 (grub_efi_acpi_device_path_t): New type.
22947 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
22948 (struct grub_efi_expanded_acpi_device_path): New structure.
22949 (grub_efi_expanded_acpi_device_path_t): New type.
22950 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
22951 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
22952 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
22953 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
22954 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
22955 (struct grub_efi_atapi_device_path): New structure.
22956 (grub_efi_atapi_device_path_t): New type.
22957 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
22958 (struct grub_efi_fibre_channel_device_path): New structure.
22959 (grub_efi_fibre_channel_device_path_t): New type.
22960 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
22961 (struct grub_efi_1394_device_path): New structure.
22962 (grub_efi_1394_device_path_t): New type.
22963 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
22964 (struct grub_efi_usb_device_path): New structure.
22965 (grub_efi_usb_device_path_t): New type.
22966 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
22967 (struct grub_efi_usb_class_device_path): New structure.
22968 (grub_efi_usb_class_device_path_t): New type.
22969 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
22970 (struct grub_efi_i2o_device_path): New structure.
22971 (grub_efi_i2o_device_path_t): New type.
22972 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
22973 (struct grub_efi_mac_address_device_path): New structure.
22974 (grub_efi_mac_address_device_path_t): New type.
22975 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
22976 (struct grub_efi_ipv4_device_path): New structure.
22977 (grub_efi_ipv4_device_path_t): New type.
22978 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
22979 (struct grub_efi_ipv6_device_path): New structure.
22980 (grub_efi_ipv6_device_path_t): New type.
22981 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
22982 (struct grub_efi_infiniband_device_path): New structure.
22983 (grub_efi_infiniband_device_path_t): New type.
22984 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
22985 (struct grub_efi_uart_device_path): New structure.
22986 (grub_efi_uart_device_path_t): New type.
22987 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
22988 (struct grub_efi_vendor_messaging_device_path): New structure.
22989 (grub_efi_vendor_messaging_device_path_t): New type.
22990 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
22991 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
22992 (struct grub_efi_hard_drive_device_path): New structure.
22993 (grub_efi_hard_drive_device_path_t): New type.
22994 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
22995 (struct grub_efi_cdrom_device_path): New structure.
22996 (grub_efi_cdrom_device_path_t): New type.
22997 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
22998 (struct grub_efi_vendor_media_device_path): New structure.
22999 (grub_efi_vendor_media_device_path_t): New type.
23000 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23001 (struct grub_efi_file_path_device_path): New structure.
23002 (grub_efi_file_path_device_path_t): New type.
23003 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23004 (struct grub_efi_protocol_device_path): New structure.
23005 (grub_efi_protocol_device_path_t): New type.
23006 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23007 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23008 (struct grub_efi_bios_device_path): New structure.
23009 (grub_efi_bios_device_path_t): New type.
23010 (struct grub_efi_disk_io): New structure.
23011 (grub_efi_disk_io_t): New type.
23012 (struct grub_efi_block_io_media): New structure.
23013 (grub_efi_block_io_media_t): New type.
23014 (struct grub_efi_block_io): New structure.
23015 (grub_efi_block_io_t): New type.
23016
23017 * include/grub/misc.h (grub_stop): Removed.
23018 (grub_exit): New prototype.
23019 (grub_abort): Likewise.
23020
23021 * include/grub/disk.h (enum grub_disk_dev_id): Added
23022 GRUB_DISK_DEVICE_EFIDISK_ID.
23023
23024 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23025 disk/efi/efidisk.c.
23026 (kernel_syms.lst): Remove the target if an error occurs.
23027
23028 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23029
23030 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23031 as it was simply too buggy.
23032
23033 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23034
23035 * kern/misc.c (grub_lltoa): New function.
23036 (grub_vsprintf): Added support for the long long suffix,
23037 i.e. "ll".
23038
23039 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23040
23041 * Makefile.in (LDFLAGS): Add variable.
23042 (LD): Remove variable.
23043 * configure.ac: Add -m32 to LDFLAGS.
23044 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23045 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23046 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23047 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23048 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23049 variables.
23050 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23051 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23052 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23053
23054 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23055
23056 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23057 length for unknown glyph.
23058
23059 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23060
23061 Add support for pre-loaded modules into the EFI port.
23062
23063 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23064 completely. Accept one more argument DIR. The caller has changed.
23065
23066 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23067
23068 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23069 (grub_efi_loaded_image_guid): New variable.
23070 (grub_efi_get_loaded_image): New function.
23071 (grub_arch_modules_addr): Likewise.
23072
23073 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23074 prototype.
23075
23076 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23077 (struct grub_efi_loaded_image): New structure.
23078 (grub_efi_loaded_image_t): New type.
23079
23080 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23081
23082 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23083 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23084 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23085
23086 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23087
23088 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23089
23090 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23091
23092 * DISTLIST: Added include/grub/efi/console.h,
23093 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23094 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23095
23096 * include/grub/efi/console.h: New file.
23097 * include/grub/efi/time.h: Likewise.
23098 * include/grub/i386/efi/kernel.h: Likewise.
23099 * kern/efi/init.c: Likewise.
23100 * kern/efi/mm.c: Likewise.
23101 * term/efi/console.c: Likewise.
23102
23103 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23104 (grub_stop): Removed.
23105 (grub_get_rtc): Likewise.
23106 (grub_machine_init): Simply call grub_efi_init.
23107 (grub_machine_fini): Call grub_efi_fini.
23108
23109 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23110 (grub_efi_output_string): Removed.
23111 (grub_efi_stall): New function.
23112 (grub_stop): Likewise.
23113 (grub_get_rtc): Likewise.
23114
23115 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23116 (grub_efi_stall): New prototype.
23117 (grub_efi_allocate_pages): Likewise.
23118 (grub_efi_free_pages): Likewise.
23119 (grub_efi_get_memory_map): Likewise.
23120 (grub_efi_mm_init): Likewise.
23121 (grub_efi_mm_fini): Likewise.
23122 (grub_efi_init): Likewise.
23123 (grub_efi_fini): Likewise.
23124
23125 * include/grub/i386/efi/time.h: Do not include
23126 grub/symbol.h. Include grub/efi/time.h.
23127 (GRUB_TICKS_PER_SECOND): Removed.
23128 (grub_get_rtc): Likewise.
23129
23130 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23131 Added padding. The EFI spec is buggy.
23132 (GRUB_EFI_BLACK): New macro.
23133 (GRUB_EFI_BLUE): Likewise.
23134 (GRUB_EFI_GREEN): Likewise.
23135 (GRUB_EFI_CYAN): Likewise.
23136 (GRUB_EFI_RED): Likewise.
23137 (GRUB_EFI_MAGENTA): Likewise.
23138 (GRUB_EFI_BROWN): Likewise.
23139 (GRUB_EFI_LIGHTGRAY): Likewise.
23140 (GRUB_EFI_BRIGHT): Likewise.
23141 (GRUB_EFI_DARKGRAY): Likewise.
23142 (GRUB_EFI_LIGHTBLUE): Likewise.
23143 (GRUB_EFI_LIGHTGREEN): Likewise.
23144 (GRUB_EFI_LIGHTCYAN): Likewise.
23145 (GRUB_EFI_LIGHTRED): Likewise.
23146 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23147 (GRUB_EFI_YELLOW): Likewise.
23148 (GRUB_EFI_WHITE): Likewise.
23149 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23150 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23151 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23152 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23153 (GRUB_EFI_BACKGROUND_RED): Likewise.
23154 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23155 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23156 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23157 (GRUB_EFI_TEXT_ATTR): Likewise.
23158
23159 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23160 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23161 (kernel_mod_HEADERS): Added efi/time.h.
23162
23163 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23164
23165 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23166 include/grub/efi/api.h, include/grub/efi/console_control.h,
23167 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23168 include/grub/i386/efi/time.h, kern/efi/efi.c,
23169 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23170 and util/i386/efi/grub-mkimage.c.
23171
23172 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23173
23174 * genmk.rb (PModule#rule): Do not export symbols if
23175 #{prefix}_EXPORTS is set to "no".
23176
23177 * conf/i386-efi.mk: New file.
23178 * conf/i386-efi.rmk: Likewise.
23179 * include/grub/efi/api.h: Likewise.
23180 * include/grub/efi/console_control.h: Likewise.
23181 * include/grub/efi/efi.h: Likewise.
23182 * include/grub/efi/pe32.h: Likewise.
23183 * include/grub/i386/efi/time.h: Likewise.
23184 * kern/efi/efi.c: Likewise.
23185 * kern/i386/efi/init.c: Likewise.
23186 * kern/i386/efi/startup.S: Likewise.
23187 * util/i386/efi/grub-mkimage.c: Likewise.
23188
23189 2006-04-17 Marco Gerards <marco@gnu.org>
23190
23191 * include/grub/script.h: Include <grub/parser.h> and
23192 "grub_script.tab.h".
23193 (struct grub_lexer_param): New struct.
23194 (struct grub_parser_param): Likewise.
23195 (grub_script_create_arglist): Pass the state in an argument.
23196 (grub_script_add_arglist): Likewise.
23197 (grub_script_create_cmdline): Likewise.
23198 (grub_script_create_cmdblock): Likewise.
23199 (grub_script_create_cmdif): Likewise.
23200 (grub_script_create_cmdmenu): Likewise.
23201 (grub_script_add_cmd): Likewise.
23202 (grub_script_arg_add): Likewise.
23203 (grub_script_lexer_ref): Likewise.
23204 (grub_script_lexer_deref): Likewise.
23205 (grub_script_lexer_record_start): Likewise.
23206 (grub_script_lexer_record_stop): Likewise.
23207 (grub_script_mem_record): Likewise.
23208 (grub_script_mem_record_stop): Likewise.
23209 (grub_script_malloc): Likewise.
23210 (grub_script_yylex): Likewise.
23211 (grub_script_yyparse): Likewise.
23212 (grub_script_yyerror): Likewise.
23213 (grub_script_yylex): Likewise.
23214 (grub_script_lexer_init): Return the state.
23215
23216 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23217 (grub_script_lexer_done): Likewise.
23218 (grub_script_lexer_getline): Likewise.
23219 (grub_script_lexer_refs): Likewise.
23220 (script): Likewise.
23221 (newscript): Likewise.
23222 (record): Likewise.
23223 (recording): Likewise.
23224 (recordpos): Likewise.
23225 (recordlen): Likewise.
23226 (grub_script_lexer_init): Return the state instead of setting
23227 global variables.
23228 (grub_script_lexer_ref): Use the newly added argument for state
23229 instead of globals.
23230 (grub_script_lexer_deref): Likewise.
23231 (grub_script_lexer_record_start): Likewise.
23232 (grub_script_lexer_record_stop): Likewise.
23233 (recordchar): Likewise.
23234 (nextchar): Likewise.
23235 (grub_script_yylex2): Likewise.
23236 (grub_script_yylex): Likewise.
23237 (grub_script_yyerror): Likewise.
23238
23239 * normal/parser.y (func_mem): Removed variable.
23240 (menu_entry): Likewise.
23241 (err): Likewise.
23242 (%lex-param): New parser option.
23243 (%parse-param): Likewise.
23244 (script): Always return the AST.
23245 (argument): Pass the state around.
23246 (arguments): Likewise.
23247 (grubcmd): Likewise.
23248 (commands): Likewise.
23249 (function): Likewise.
23250 (menuentry): Likewise.
23251 (if_statement): Likewise.
23252 (if): Likewise.
23253
23254 * normal/script.c (grub_script_memused): Removed variable.
23255 (grub_script_parsed): Likewise.
23256 (grub_script_malloc): Added a state argument. Use that instead of
23257 global variables.
23258 (grub_script_mem_record): Likewise.
23259 (grub_script_mem_record_stop): Likewise.
23260 (grub_script_arg_add): Likewise.
23261 (grub_script_add_arglist): Likewise.
23262 (grub_script_create_cmdline): Likewise.
23263 (grub_script_create_cmdif): Likewise.
23264 (grub_script_create_cmdmenu): Likewise.
23265 (grub_script_add_cmd): Likewise.
23266 (grub_script_parse): Setup the state before calling the parser.
23267
23268 2006-04-16 Marco Gerards <marco@gnu.org>
23269
23270 * normal/command.c (grub_command_init): Remove the title command.
23271
23272 * normal/lexer.c (grub_script_yylex): Renamed from this...
23273 (grub_script_yylex2): ... to this.
23274 (grub_script_yylex): New function. Temporary
23275 introduced to filter some tokens.
23276 (grub_script_yyerror): Print a newline.
23277
23278 * normal/main.c (read_config_file): Output information about the
23279 lines that contain errors. Wait for a key after all lines have
23280 been processed. Don't return an empty menu.
23281
23282 * normal/parser.y (func_mem): Don't initialize.
23283 (menu_entry): Likewise.
23284 (err): New variable.
23285 (script): Don't return anything when an error was encountered.
23286 (ws, returns): Removed rules.
23287 (argument): Disabled concatenated variable support.
23288 (arguments): Remove explicit separators.
23289 (grubcmd): Likewise.
23290 (function): Likewise.
23291 (menuentry): Likewise.
23292 (if): Likewise.
23293 (commands): Likewise. Add error handling.
23294
23295 * normal/script.c (grub_script_create_cmdline): If
23296 `grub_script_parsed' is 0, assume the parser encountered an error.
23297
23298 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23299
23300 * configure.ac: Add support for EFI. Fix the typo
23301 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23302
23303 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23304
23305 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23306 foreign multibyte characters should be shown correctly.
23307
23308 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23309
23310 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23311 calculation.
23312 (read_config_file): Made it to close file before returning.
23313
23314 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23315
23316 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23317 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23318 video/i386/pc/vbefill.c.
23319
23320 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23321 video/i386/pc/vbefill.c.
23322
23323 * include/grub/video.h (grub_video_blit_format): New enum.
23324 (grub_video_mode_info): Added new member blit_format.
23325 (grub_video_get_blit_format): New function prototype.
23326
23327 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23328 function prototype.
23329 (grub_video_vbe_map_rgb): Likewise.
23330 (grub_video_vbe_unmap_color): Likewise.
23331
23332 * include/grub/i386/pc/vbeblit.h: New file.
23333
23334 * include/grub/i386/pc/vbefill.h: New file.
23335
23336 * video/video.c (grub_video_get_blit_format): New function.
23337 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23338 (grub_video_vbe_map_rgb): Likewise.
23339 (grub_video_vbe_unmap_color): Likewise.
23340
23341 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23342 optimized fills.
23343 (grub_video_vbe_blit_render_target): Changed to use more optimized
23344 blits.
23345 (grub_video_vbe_setup): Added detection for optimized settings.
23346 (grub_video_vbe_create_render_target): Likewise.
23347
23348 * video/i386/pc/vbeblit.c: New file.
23349
23350 * video/i386/pc/vbefill.c: New file.
23351
23352 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23353
23354 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23355 here...
23356
23357 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23358 parsing to support both hex and dec ranges. If filename was missing
23359 show usage information.
23360
23361 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23362
23363 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23364 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23365
23366 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23367 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23368 (video_mod_SOURCES): Added.
23369 (video_mod_CFLAGS): Likewise.
23370 (video_mod_LDFLAGS): Likewise.
23371 (gfxterm_mod_SOURCES): Likewise.
23372 (gfxterm_mod_CFLAGS): Likewise.
23373 (gfxterm_mod_LDFLAGS): Likewise.
23374 (videotest_mod_SOURCES): Likewise.
23375 (videotest_mod_CFLAGS): Likewise.
23376 (videotest_mod_LDFLAGS): Likewise.
23377 (vesafb_mod_SOURCES): Removed.
23378 (vesafb_mod_CFLAGS): Likewise.
23379 (vesafb_mod_LDFLAGS): Likewise.
23380 (vga_mod_SOURCES): Likewise.
23381 (vga_mod_CFLAGS): Likewise.
23382 (vga_mod_LDFLAGS): Likewise.
23383
23384 * commands/videotest.c: New file.
23385
23386 * font/manager.c (fill_with_default_glyph): Modified to use
23387 grub_font_glyph.
23388 (grub_font_get_glyph): Likewise.
23389 (fontmanager): Renamed from this...
23390 (font_manager): ... to this.
23391
23392 * include/grub/font.h (grub_font_glyph): Added new structure.
23393 (grub_font_get_glyph): Modified to use grub_font_glyph.
23394
23395 * include/grub/misc.h (grub_abs): Added as inline function.
23396
23397 * include/grub/video.h: New file.
23398
23399 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23400 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23401 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23402 (grub_vbe_get_controller_info): Renamed from this...
23403 (grub_vbe_bios_get_controller_info): ... to this.
23404 (grub_vbe_get_mode_info): Renamed from this...
23405 (grub_vbe_bios_get_mode_info): ... to this.
23406 (grub_vbe_set_mode): Renamed from this...
23407 (grub_vbe_bios_set_mode): ... to this.
23408 (grub_vbe_get_mode): Renamed from this...
23409 (grub_vbe_bios_get_mode): ... to this.
23410 (grub_vbe_set_memory_window): Renamed from this...
23411 (grub_vbe_bios_set_memory_window): ... to this.
23412 (grub_vbe_get_memory_window): Renamed from this...
23413 (grub_vbe_bios_get_memory_window): ... to this.
23414 (grub_vbe_set_scanline_length): Renamed from this...
23415 (grub_vbe_set_scanline_length): ... to this.
23416 (grub_vbe_get_scanline_length): Renamed from this...
23417 (grub_vbe_bios_get_scanline_length): ... to this.
23418 (grub_vbe_set_display_start): Renamed from this...
23419 (grub_vbe_bios_set_display_start): ... to this.
23420 (grub_vbe_get_display_start): Renamed from this...
23421 (grub_vbe_bios_get_display_start): ... to this.
23422 (grub_vbe_set_palette_data): Renamed from this...
23423 (grub_vbe_bios_set_palette_data): ... to this.
23424 (grub_vbe_set_pixel_rgb): Removed.
23425 (grub_vbe_set_pixel_index): Likewise.
23426
23427 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23428 from this...
23429 (grub_vbe_bios_get_controller_info): ... to this.
23430 (grub_vbe_get_mode_info): Renamed from this...
23431 (grub_vbe_bios_get_mode_info): ... to this.
23432 (grub_vbe_set_mode): Renamed from this...
23433 (grub_vbe_bios_set_mode): ... to this.
23434 (grub_vbe_get_mode): Renamed from this...
23435 (grub_vbe_bios_get_mode): ... to this.
23436 (grub_vbe_set_memory_window): Renamed from this...
23437 (grub_vbe_bios_set_memory_window): ... to this.
23438 (grub_vbe_get_memory_window): Renamed from this...
23439 (grub_vbe_bios_get_memory_window): ... to this.
23440 (grub_vbe_set_scanline_length): Renamed from this...
23441 (grub_vbe_set_scanline_length): ... to this.
23442 (grub_vbe_get_scanline_length): Renamed from this...
23443 (grub_vbe_bios_get_scanline_length): ... to this.
23444 (grub_vbe_set_display_start): Renamed from this...
23445 (grub_vbe_bios_set_display_start): ... to this.
23446 (grub_vbe_get_display_start): Renamed from this...
23447 (grub_vbe_bios_get_display_start): ... to this.
23448 (grub_vbe_set_palette_data): Renamed from this...
23449 (grub_vbe_bios_set_palette_data): ... to this.
23450 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23451 getting corrupted after calling it. Added more pushes and pops.
23452 (grub_vbe_bios_set_mode): Likewise.
23453 (grub_vbe_bios_get_mode): Likewise.
23454 (grub_vbe_bios_get_memory_window): Likewise.
23455 (grub_vbe_bios_set_scanline_length): Likewise.
23456 (grub_vbe_bios_get_scanline_length): Likewise.
23457 (grub_vbe_bios_get_display_start): Likewise.
23458 (grub_vbe_bios_set_palette_data): Likewise.
23459
23460 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23461 (cl_insert): Likewise.
23462 (cl_delete): Likewise.
23463
23464 * term/gfxterm.c: New file.
23465
23466 * term/i386/pc/vesafb.c: Removed file.
23467
23468 * video/video.c: New file.
23469
23470 * video/i386/pc/vbe.c (real2pm): Added new function.
23471 (grub_video_vbe_draw_pixel): Likewise.
23472 (grub_video_vbe_get_video_ptr): Likewise.
23473 (grub_video_vbe_get_pixel): Likewise
23474 (grub_video_vbe_init): Likewise.
23475 (grub_video_vbe_fini): Likewise.
23476 (grub_video_vbe_setup): Likewise.
23477 (grub_video_vbe_get_info): Likewise.
23478 (grub_video_vbe_set_palette): Likewise.
23479 (grub_video_vbe_get_palette): Likewise.
23480 (grub_video_vbe_set_viewport): Likewise.
23481 (grub_video_vbe_get_viewport): Likewise.
23482 (grub_video_vbe_map_color): Likewise.
23483 (grub_video_vbe_map_rgb): Likewise.
23484 (grub_video_vbe_map_rgba): Likewise.
23485 (grub_video_vbe_unmap_color): Likewise.
23486 (grub_video_vbe_fill_rect): Likewise.
23487 (grub_video_vbe_blit_glyph): Likewise.
23488 (grub_video_vbe_blit_bitmap): Likewise.
23489 (grub_video_vbe_blit_render_target): Likewise.
23490 (grub_video_vbe_scroll): Likewise.
23491 (grub_video_vbe_swap_buffers): Likewise.
23492 (grub_video_vbe_create_render_target): Likewise.
23493 (grub_video_vbe_delete_render_target): Likewise.
23494 (grub_video_vbe_set_active_render_target): Likewise.
23495 (grub_vbe_set_pixel_rgb): Remove function.
23496 (grub_vbe_set_pixel_index): Likewise.
23497 (index_color_mode): Remove static variable.
23498 (active_mode): Likewise.
23499 (framebuffer): Likewise.
23500 (bytes_per_scan_line): Likewise.
23501 (grub_video_vbe_adapter): Added new static variable.
23502 (framebuffer): Likewise.
23503 (render_target): Likewise.
23504 (initial_mode): Likewise.
23505 (mode_in_use): Likewise.
23506 (mode_list): Likewise.
23507
23508 2006-03-10 Marco Gerards <marco@gnu.org>
23509
23510 * configure.ac (AC_INIT): Bumped to 1.93.
23511
23512 * DISTLIST: Added `include/grub/hfs.h'.
23513
23514 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23515
23516 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23517 18H, which might help the BIOS falling back to next boot media.
23518
23519 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23520
23521 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23522 Poe Chen <poe.poechen@gmail.com>.
23523
23524 2006-01-17 Marco Gerards <marco@gnu.org>
23525
23526 * include/grub/normal.h: Include <grub/script.h>.
23527 (grub_command_list): Removed struct.
23528 (grub_command_list_t): Removed type.
23529 (grub_menu_entry): Remove members `num' and `command_list'. Add
23530 members `commands' and `sourcecode'.
23531 * include/grub/script.h: Add inclusion guards.
23532 (grub_script_cmd_menuentry): New struct.
23533 (grub_script_execute_menuentry): New prototype.
23534 (grub_script_lexer_record_start): Likewise.
23535 (grub_script_lexer_record_stop): Likewise.
23536 * normal/execute.c (grub_script_execute_menuentry): New function.
23537 * normal/lexer.c (record, recording, recordpos, recordlen): New
23538 variables.
23539 (grub_script_lexer_record_start): New function.
23540 (grub_script_lexer_record_stop): Likewise.
23541 (recordchar): Likewise.
23542 (nextchar): Likewise.
23543 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23544 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23545 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23546 (current_menu): New variable.
23547 (free_menu): Mainly rewritten.
23548 (grub_normal_menu_addentry): New function.
23549 (read_config_file): Rewritten.
23550 * normal/menu.c (run_menu_entry): Mainly rewritten.
23551 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23552 the menu entry.
23553 (run): Mainly rewritten.
23554 * normal/parser.y (menu_entry): New variable.
23555 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23556 (menuentry): New rule.
23557 (command): Add `menuentry'.
23558 (if_statement): Allow additional returns before `fi'.
23559 * normal/script.c (grub_script_create_cmdmenu): New function.
23560
23561 2006-01-03 Marco Gerards <marco@gnu.org>
23562
23563 * INSTALL: GNU Bison is required.
23564 * configure.ac: Rewritten the test to detect Bison.
23565 * Makefile.in (YACC): New variable. Reported by Xun Sun
23566 <xun.sun.cn@gmail.com>.
23567
23568 2006-01-03 Marco Gerards <marco@gnu.org>
23569
23570 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23571 the HFS+ filesystem to filesystem blocks.
23572 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23573 GCC warning is silenced.
23574
23575 2006-01-03 Marco Gerards <marco@gnu.org>
23576
23577 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23578 read from disk from big endian to host byte order.
23579
23580 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23581
23582 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23583 documentation.
23584 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23585 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23586 embedded HFS+ filesystem.
23587 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23588 (grub_hfs_sblock): Move from here...
23589 * include/grub/hfs.h: To here... New file.
23590 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23591 documentation.
23592 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23593 New macros.
23594 (grub_hfsplus_volheader): Change type of member `magic' to
23595 `grub_uint16_t'.
23596 (grub_hfsplus_data): Add new member `embedded_offset'.
23597 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23598 returned block.
23599 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23600 Calculate the offset.
23601
23602 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23603
23604 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23605 Removed.
23606 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23607
23608 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23609
23610 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23611 ENV->NAME is NULL after allocating ENV->VALUE.
23612
23613 2005-12-25 Marco Gerards <marco@gnu.org>
23614
23615 * kern/env.c (grub_env_set): Rewritten the error handling code.
23616
23617 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23618
23619 * geninit.sh: Made more robust, and more portable.
23620
23621 2005-12-25 Marco Gerards <marco@gnu.org>
23622
23623 Add support for Apple HFS+ filesystems.
23624
23625 * fs/hfsplus.c: New file.
23626
23627 * DISTLIST: Added `fs/hfsplus.c'.
23628
23629 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23630 (hfsplus_mod_SOURCES): New variable.
23631 (hfsplus_mod_CFLAGS): Likewise.
23632 (hfsplus_mod_LDFLAGS): Likewise.
23633 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23634 (grub_setup_SOURCES): Likewise.
23635 (grub_mkdevicemap_SOURCES): Likewise.
23636 (grub_emu_SOURCES): Likewise.
23637 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23638
23639 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23640
23641 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23642
23643 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23644
23645 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23646 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23647 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23648 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23649 normal/lexer.c, normal/parser.y, normal/script.c, and
23650 partmap/gpt.c.
23651 Removed kern/sparc64/cache.c.
23652
23653 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23654 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23655 grub_emu_init.c.
23656
23657 * configure.ac (AC_INIT): Bumped to 1.92.
23658
23659 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23660
23661 * kern/err.c (grub_error_push): Added new function to support error
23662 stacks.
23663 (grub_error_pop): Likewise.
23664 (grub_error_stack_items): New local variable to support error stacks.
23665 (grub_error_stack_pos): Likewise.
23666 (grub_error_stack_assert): Likewise.
23667 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23668 stack depth.
23669 (grub_print_error): Added support to print errors from error stack.
23670
23671 * include/grub/err.h (grub_error_push): Added function prototype.
23672 (grub_error_pop): Likewise.
23673
23674 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23675
23676 * configure.ac: Accept `powerpc64' as host_cpu.
23677 (amd64): Rename to `biarch32'.
23678
23679 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23680 non-cacheline-aligned addresses.
23681
23682 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23683 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23684 if `size' is non-zero.
23685
23686 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23687
23688 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23689 and `cd' to make sure the filename is not prefixed with a
23690 directory name.
23691 (pkgdata_MODULES): Add `gpt.mod'.
23692 (gpt_mod_SOURCES): New variable.
23693 (gpt_mod_CFLAGS): Likewise.
23694 (gpt_mod_LDFLAGS): Likewise.
23695
23696 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23697
23698 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23699 New macro.
23700
23701 * partmap/gpt.c: New file.
23702
23703 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23704 GPT partition map is detected.
23705
23706 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23707
23708 * commands/i386/pc/play.c: New file.
23709 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23710 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23711 macros.
23712
23713 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23714
23715 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23716 ((unused))' to silence gcc warning.
23717
23718 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23719
23720 * configure.ac: Correct `AC_PROG_YACC' test.
23721
23722 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23723
23724 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23725 check before installing files.
23726
23727 2005-11-22 Mike Small <smallm@panix.com>
23728
23729 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23730 number regex so multidigit numbers are recognized correctly.
23731
23732 2005-11-22 Mike Small <smallm@panix.com>
23733
23734 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23735 debugging message before attempting to claim memory.
23736 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23737 multiple addresses in case of failure.
23738
23739 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23740
23741 * term/tparm.c (get_space): Remove empty `if' statement.
23742
23743 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23744
23745 * kern/parser.c (check_varstate): Rename `state' to 's'.
23746
23747 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23748
23749 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23750 variable definitions to the beginning of each function. Sort stack
23751 variables by size.
23752 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23753 `buf' argument to `char *'.
23754
23755 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23756
23757 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23758 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23759 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23760 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23761 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23762 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23763 configfile.mod, search.mod, gzio.mod and test.mod.
23764 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23765 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23766 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23767 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23768 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23769 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23770 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23771 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23772 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23773 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23774 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23775 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23776 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23777 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23778 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23779 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23780 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23781 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23782 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23783 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23784 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23785 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23786 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23787
23788 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23789 `grep --include'.
23790 (pkgdata_MODULES): Add test.mod.
23791
23792 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23793
23794 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23795 appending to variables with "+=".
23796 (PModule): Use full pathname to generate *.lst filenames.
23797
23798 * Makefile.in: Fixed list rules moved from genmk.rb.
23799 (.DELETE_ON_ERROR): New special target.
23800 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23801
23802 * conf/i386-pc.rmk: Include conf/common.mk.
23803 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23804 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23805 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23806 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23807 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23808 configfile.mod, search.mod, gzio.mod and test.mod.
23809 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23810 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23811 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23812 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23813 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23814 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23815 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23816 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23817 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23818 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23819 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23820 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23821 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23822 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23823 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23824 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23825 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23826 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23827 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23828 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23829 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23830 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23831 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23832 here...
23833 * conf/common.rmk: ... to here. New file.
23834
23835 * conf/common.mk: New file.
23836
23837 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23838
23839 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23840 (grub_script.tab.c): ... here.
23841
23842 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23843 (grub_script.tab.c): ... here.
23844
23845 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23846 (grub_script.tab.c): ... here.
23847
23848 * normal/command.c (grub_command_find): Fixed a memory leak of
23849 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23850
23851 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23852
23853 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23854 "@" which marks the start of a comment on ARM.
23855 (VARIABLE): Likewise.
23856
23857 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23858
23859 Add support for Linux/ADFS partition tables.
23860
23861 * partmap/acorn.c: New file.
23862
23863 * include/grub/acorn_filecore.h: Likewise.
23864
23865 * DISTLIST: Added `partmap/acorn.c' and
23866 `include/grub/acorn_filecore.h'.
23867
23868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23869 `partmap/acorn.c'.
23870 (pkgdata_MODULES): Add `acorn.mod'.
23871 (acorn_mod_SOURCES): New variable.
23872 (acorn_mod_CFLAGS): Likewise.
23873
23874 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23875 `partmap/acorn.c'.
23876 (pkgdata_MODULES): Add `acorn.mod'.
23877 (acorn_mod_SOURCES): New variable.
23878 (acorn_mod_CFLAGS): Likewise.
23879
23880 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23881 (pkgdata_MODULES): Add `acorn.mod'.
23882 (acorn_mod_SOURCES): New variable.
23883 (acorn_mod_CFLAGS): Likewise.
23884 (acorn_mod_LDFLAGS): Likewise.
23885
23886 * include/types.h (grub_disk_addr_t): New typedef.
23887
23888 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
23889
23890 * geninit.sh: New file.
23891
23892 * geninitheader.sh: Likewise.
23893
23894 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23895 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23896 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23897 * commands/configfile.c (grub_configfile_init)
23898 (grub_configfile_fini): Likewise.
23899 * commands/default.c (grub_default_init, grub_default_fini):
23900 Likewise.
23901 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23902 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23903 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23904 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23905 Likewise.
23906 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23907 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23908 Likewise.
23909 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
23910 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
23911 Likewise.
23912 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23913 Likewise.
23914 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
23915 Likewise.
23916 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23917 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23918 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23919 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23920 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23921 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23922 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23923 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23924 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23925 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23926 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23927 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23928 * partmap/amiga.c (grub_amiga_partition_map_init)
23929 (grub_amiga_partition_map_fini): Likewise.
23930 * partmap/apple.c (grub_apple_partition_map_init)
23931 (grub_apple_partition_map_fini): Likewise.
23932 * partmap/pc.c (grub_pc_partition_map_init)
23933 (grub_pc_partition_map_fini): Likewise.
23934 * partmap/sun.c (grub_sun_partition_map_init,
23935 grub_sun_partition_map_fini): Likewise.
23936 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23937 Likewise.
23938
23939 * util/grub-emu.c: Include <grub_modules_init.h>.
23940 (main): Don't initialize and de-initialize any modules directly,
23941 use `grub_init_all' and `grub_fini_all' instead.
23942
23943 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23944 `grub_vesafb_mod_init'.
23945 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
23946 all users.
23947 * term/i386/pc/vga.c (grub_vga_init): Renamed to
23948 `grub_vga_mod_init'. Updated all users.
23949 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
23950
23951 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
23952 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
23953 rules.
23954
23955 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
23956 Generate a function to initialize the module in utilities.
23957 Updated all callers.
23958 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
23959 initialize the module in utilities. Updated all callers.
23960
23961 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23962
23963 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
23964 escape sequence and a literal ^L to clear the screen.
23965
23966 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
23967 when returning from Open Firmware.
23968
23969 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23970
23971 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
23972 (grub_ofconsole_height): Likewise.
23973 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
23974 manually insert a '\n'.
23975 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
23976 `grub_ofconsole_height'. Return early if these are already set.
23977
23978 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
23979
23980 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23981 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
23982 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
23983 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
23984 and `normal/script.c'.
23985 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23986 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23987 (test_mod_SOURCES): New variable.
23988 (test_mod_CFLAGS): Likewise.
23989 (test_mod_LDFLAGS): Likewise.
23990 (pkgdata_MODULES): Add `test.mod'.
23991 (grub_script.tab.c): New rule.
23992 (grub_script.tab.h): Likewise.
23993
23994 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
23995
23996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23997 `commands/test.c', `normal/execute.c', `normal/lexer.c',
23998 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23999 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24000 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24001 (test_mod_SOURCES): New variable.
24002 (test_mod_CFLAGS): Likewise.
24003 (pkgdata_MODULES): Add `test.mod'.
24004 (grub_script.tab.c): New rule.
24005 (grub_script.tab.h): Likewise.
24006
24007 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24008
24009 Add initial scripting support.
24010
24011 * commands/test.c: New file.
24012 * include/grub/script.h: Likewise.
24013 * normal/execute.c: Likewise.
24014 * normal/function.c: Likewise.
24015 * normal/lexer.c: Likewise.
24016 * normal/parser.y: Likewise.
24017 * normal/script.c: Likewise.
24018
24019 * configure.ac: Add `AC_PROG_YACC' test.
24020
24021 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24022 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24023 `normal/function.c' and `normal/script.c'.
24024 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24025 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24026 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24027 variables.
24028 (pkgdata_MODULES): Add `test.mod'.
24029 (grub_script.tab.c): New rule.
24030 (grub_script.tab.h): Likewise.
24031
24032 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24033
24034 * include/grub/normal.h (grub_test_init): New prototype.
24035 (grub_test_fini): Likewise.
24036
24037 * normal/command.c: Include <grub/script.h>.
24038 (grub_command_execute): Rewritten.
24039
24040 * util/grub-emu.c (main): Call `grub_test_init' and
24041 `grub_test_fini'.
24042
24043 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24044
24045 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24046 to 0.
24047 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24048 there are no pending characters.
24049
24050 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24051
24052 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24053 `grub_strndup' to drop device arguments. Replace unnecessary
24054 `grub_strndup' with `grub_strdup'.
24055
24056 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24057
24058 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24059 `debug' environment variable has been set.
24060
24061 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24062
24063 * Makefile.in (install-local): Use $(DATA).
24064 (uninstall): Likewise.
24065 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24066 (sbin_UTILITIES): ... to here.
24067 (sbin_SCRIPTS): New variable.
24068 (grub_install_SOURCES): New variable.
24069 * util/powerpc/ieee1275/grub-install.in: New file.
24070 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24071 variable.
24072 (add_segments): Call `grub_util_get_path'.
24073
24074 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24075
24076 From Timothy Baldwin:
24077 * commands/ls.c (grub_ls_list_files): Close FILE with
24078 grub_file_close.
24079 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24080
24081 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24082
24083 * include/grub/parser.h: New file.
24084
24085 * kern/parser.c: Likewise.
24086
24087 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24088 (grub_setup_SOURCES): Likewise.
24089 (grub_probefs_SOURCES): Likewise.
24090 (grub_emu_SOURCES): Likewise.
24091 (kernel_img_HEADERS): Add `parser.h'.
24092
24093 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24094 (grub_emu_SOURCES): Add `kern/parser.c'.
24095 (grubof_SOURCES): Likewise.
24096
24097 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24098 (grubof_SOURCES): Add `kern/parser.c'.
24099
24100 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24101
24102 * kern/misc.c (grub_split_cmdline): Removed function.
24103
24104 * kern/rescue.c: Include <grub/parser.h>.
24105 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24106 of `grub_split_cmdline'.
24107
24108 * normal/command.c: Include <grub/parser.h>.
24109 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24110 of `grub_split_cmdline'.
24111
24112 * normal/completion.c: Include <grub/parser.h>.
24113 (cmdline_state): New variable.
24114 (iterate_dir): End the filename with a quote depending on the
24115 command line state.
24116 (get_state): new function.
24117 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24118 split the arguments and determine the current argument. When the
24119 argument string is not quoted, escape all spaces.
24120
24121 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24122
24123 * normal/sparc64/setjmp.S: New file.
24124
24125 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24126
24127 * include/grub/sparc64/libgcc.h: New file.
24128 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24129 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24130 normal/sparc64/setjmp.c.
24131
24132 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24133
24134 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24135 * kern/sparc64/cache.S: New file.
24136 * kern/sparc64/cache.c: Removed.
24137 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24138 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24139 -mtune=ultrasparc.
24140 (COMMON_LDFLAGS): Add -melf64_sparc.
24141 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24142 (grubof_SOURCES): Use cache.S instead of cache.c.
24143 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24144 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24145 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24146 commented though.
24147 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24148 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24149 (linux_mod_CFLAGS): Commented out.
24150 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24151 out because module isn't built.
24152 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24153 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24154 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24155 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24156 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24157 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24158 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24159 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24160 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24161 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24162 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24163 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24164 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24165 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24166
24167 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24168
24169 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24170 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24171 longer, because HFS should not be used on PC.
24172
24173 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24174
24175 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24176 consistently within the loop.
24177
24178 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24179
24180 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24181 directory can not be read.
24182
24183 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24184
24185 * configure.ac (AC_INIT): Increase the version number to 1.91.
24186
24187 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24188 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24189 term/i386/pc/serial.c.
24190
24191 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24192
24193 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24194 file size must be permitted.
24195
24196 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24197 between %ah and %al.
24198
24199 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24200
24201 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24202 grub_uint64_t.
24203 Call the hook with a NUL-terminated filename.
24204 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24205 grub_cpu_to_be32.
24206
24207 * kern/term.c (cursor_state): New variable.
24208 (grub_term_set_current): Reset the cursor state on a new
24209 terminal.
24210 (grub_setcursor): Rewritten to use CURSOR_STATE.
24211 (grub_getcursor): New function.
24212
24213 * include/grub/term.h (grub_getcursor): New prototype.
24214
24215 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24216 integers on ARM. Reported by Timothy Baldwin
24217 <T.E.Baldwin99@members.leeds.ac.uk>.
24218
24219 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24220
24221 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24222 allocated.
24223 (grub_sfs_dir): Likewise.
24224
24225 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24226
24227 Add support for the SFS filesystem.
24228
24229 * fs/sfs.c: New file.
24230
24231 * DISTLIST: Added `fs/sfs.c'.
24232
24233 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24234 (grub_probefs_SOURCES): Likewise.
24235 (grub_emu_SOURCES): Likewise.
24236 (pkgdata_MODULES): Add `sfs.mod'.
24237 (sfs_mod_SOURCES): New variable.
24238 (sfs_mod_CFLAGS): Likewise.
24239 (sfs_mod_LDFLAGS): Likewise.
24240
24241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24242 (pkgdata_MODULES): Add `sfs.mod'.
24243 (sfs_mod_SOURCES): New variable.
24244 (sfs_mod_CFLAGS): Likewise.
24245
24246 * util/grub-emu.c (main): Call `grub_sfs_init' and
24247 `grub_sfs_fini'.
24248
24249 * include/grub/fs.h (grub_sfs_init): New prototype.
24250 (grub_sfs_fini): Likewise.
24251
24252 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24253
24254 Add support for the AFFS filesystem.
24255
24256 * fs/affs.c: New file.
24257
24258 * DISTLIST: Added `fs/affs.c'.
24259
24260 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24261 (grub_probefs_SOURCES): Likewise.
24262 (grub_emu_SOURCES): Likewise.
24263 (pkgdata_MODULES): Add `affs.mod'.
24264 (affs_mod_SOURCES): New variable.
24265 (affs_mod_CFLAGS): Likewise.
24266 (affs_mod_LDFLAGS): Likewise.
24267
24268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24269 (pkgdata_MODULES): Add `affs.mod'.
24270 (affs_mod_SOURCES): New variable.
24271 (affs_mod_CFLAGS): Likewise.
24272
24273 * util/grub-emu.c (main): Call `grub_affs_init' and
24274 `grub_affs_fini'.
24275
24276 * include/grub/fs.h (grub_affs_init): New prototype.
24277 (grub_affs_fini): Likewise.
24278
24279 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24280
24281 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24282
24283 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24284
24285 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24286 `-m32' to CFLAGS.
24287
24288 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24289 linking.
24290
24291 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24292 (COMMON_LDFLAGS): New variable.
24293 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24294 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24295 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24296 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24297 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24298 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24299 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24300 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24301 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24302 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24303 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24304 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24305 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24306 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24307 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24308 variables.
24309 (normal_mod_ASFLAGS): Add `-m32'.
24310
24311 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24312 (grub_host_size_t, grub_host_ssize_t): New types.
24313 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24314 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24315 `GRUB_HOST_SIZEOF_VOID_P'.
24316
24317 * include/grub/kernel.h (struct grub_module_header): Type of
24318 member offset changed to `grub_host_off_t'. Type of member size
24319 changed to `grub_host_size_t'.
24320 (struct grub_module_info): Type of member offset changed to
24321 `grub_host_off_t'. Type of member size changed to
24322 `grub_host_size_t'.
24323
24324 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24325
24326 Make GRUB's kernel compliant to Multiboot Specification.
24327
24328 * kern/i386/pc/startup.S (multiboot_header): New label.
24329 (multiboot_entry): Likewise.
24330 (multiboot_trampoline): Likewise.
24331
24332 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24333 Increased to 0x4A0.
24334
24335 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24336 put parentheses after a question mark.
24337 [!GRUB_UTIL] (my_mod): New variable.
24338
24339 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24340
24341 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24342
24343 Adds support for the XFS filesystem. Btrees are not supported
24344 yet.
24345
24346 * fs/xfs.c: New file.
24347
24348 * DISTLIST: Added `fs/xfs.c'.
24349
24350 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24351 (grub_probefs_SOURCES): Likewise.
24352 (grub_emu_SOURCES): Likewise.
24353 (pkgdata_MODULES): Add `xfs.mod'.
24354 (xfs_mod_SOURCES): New variable.
24355 (xfs_mod_CFLAGS): Likewise.
24356
24357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24358 (pkgdata_MODULES): Add `xfs.mod'.
24359 (xfs_mod_SOURCES): New variable.
24360 (xfs_mod_CFLAGS): Likewise.
24361
24362 * util/grub-emu.c (main): Call `grub_xfs_init' and
24363 `grub_xfs_fini'.
24364
24365 * include/grub/fs.h (grub_xfs_init): New prototype.
24366 (grub_xfs_fini): Likewise.
24367
24368
24369 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24370
24371 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24372 color modes, allow greater than 16 colors to be configured as
24373 a default palette.
24374
24375 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24376
24377 * normal/completion.c (complete_arguments): Add the qualifier
24378 const into OPTIONS.
24379
24380 From Omniflux <omniflux+lists@omniflux.com>:
24381 * include/grub/terminfo.h: New file.
24382 * include/grub/tparm.h: Likewise.
24383 * include/grub/i386/pc/serial.h: Likewise.
24384 * term/terminfo.c: Likewise.
24385 * term/tparm.c: Likewise.
24386 * term/i386/pc/serial.c: Likewise.
24387 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24388 serial.mod.
24389 (terminfo_mod_SOURCES): New variable.
24390 (terminfo_mod_CFLAGS): Likewise.
24391 (serial_mod_SOURCES): Likewise.
24392 (serial_mod_CFLAGS): Likewise.
24393
24394 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24395
24396 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24397 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24398 and kern/powerpc/ieee1275/cmain.c, respectively.
24399
24400 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24401 * kern/powerpc/ieee1275/crt0.S: ... here.
24402
24403 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24404 * kern/powerpc/ieee1275/cmain.c: ... here.
24405
24406 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24407 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24408 instead of boot/powerpc/ieee1275/crt0.S and
24409 boot/powerpc/ieee1275/cmain.c, respectively.
24410
24411 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24412 sectors. It was not used anyway.
24413
24414 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24415
24416 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24417 `unused parameter' warning.
24418
24419 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24420
24421 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24422 function.
24423 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24424 getcharwidth.
24425
24426 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24427
24428 * include/grub/normal.h (enum grub_completion_type): Added
24429 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24430
24431 * normal/cmdline.c (print_completion): Handle
24432 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24433 * normal/menu_entry.c (store_completion): Likewise.
24434
24435 * normal/completion.c (complete_arguments): New function.
24436 (grub_normal_do_completion): Call `complete_arguments' when the
24437 current words start with a dash.
24438
24439 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24440
24441 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24442 `gzio.mod' instead of `io.mod').
24443
24444 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24445
24446 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24447 (DISTDIRS): Added io and video.
24448 Rewrite the search routine to make an output consistently.
24449
24450 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24451 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24452 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24453 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24454 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24455 util/powerpc/ieee1275/misc.c.
24456
24457 * include/grub/gzio.h: New file.
24458 * io/gzio.c: Likewise.
24459
24460 * kern/file.c (grub_file_close): Call grub_device_close only if
24461 FILE->DEVICE is not NULL.
24462
24463 * include/grub/mm.h [!NULL] (NULL): New macro.
24464
24465 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24466
24467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24468 (pkgdata_MODULES): Added gzio.mod.
24469 (gzio_mod_SOURCES): New variable.
24470 (gzio_mod_CFLAGS): Likewise.
24471
24472 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24473 (pkgdata_MODULES): Added gzio.mod.
24474 (gzio_mod_SOURCES): New variable.
24475 (gzio_mod_CFLAGS): Likewise.
24476
24477 * commands/cat.c: Include grub/gzio.h.
24478 (grub_cmd_cat): Use grub_gzfile_open instead of
24479 grub_file_open.
24480
24481 * commands/cmp.c: Include grub/gzio.h.
24482 (grub_cmd_cmp): Use grub_gzfile_open instead of
24483 grub_file_open.
24484
24485 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24486 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24487 grub_file_open.
24488 (grub_rescue_cmd_module): Likewise.
24489
24490 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24491
24492 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24493 kern/sparc64/ieee1275/init.c because it contains _start.
24494 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24495
24496 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24497
24498 * configure.ac: Add support for sparc64 host with ieee1275
24499 firmware.
24500 * configure: Generated from configure.ac.
24501 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24502 instead of int.
24503 (grub_ofdisk_read): Likewise.
24504 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24505 pointers as (void *) to remove a warning.
24506 (grub_ofdisk_close): Likewise.
24507 (grub_ofdisk_read): Likewise.
24508 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24509 returns, so make it return void to remove a warning.
24510 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24511 Corresponding prototype change.
24512 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24513 values, and cast the pointers as (void *) to remove a warning.
24514 (grub_mm_dump): Likewise.
24515 * conf/sparc64-ieee1275.mk: New file.
24516 * conf/sparc64-ieee1275.rmk: Likewise.
24517 * include/grub/sparc64/setjmp.h: Likewise.
24518 * include/grub/sparc64/types.h: Likewise.
24519 * include/grub/sparc64/ieee1275/console.h: Likewise.
24520 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24521 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24522 * include/grub/sparc64/ieee1275/time.h: Likewise.
24523 * kern/sparc64/cache.c: Likewise.
24524 * kern/sparc64/dl.c: Likewise.
24525 * kern/sparc64/ieee1275/init.c: Likewise.
24526 * kern/sparc64/ieee1275/openfw.c: Likewise.
24527
24528 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24529
24530 * util/console.c (grub_ncurses_putchar): If C is greater than
24531 0x7f, set C to a question mark.
24532 (grub_ncurses_getcharwidth): New function.
24533 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24534 getcharwidth.
24535
24536 * normal/menu.c (print_entry): Made aware of Unicode. First,
24537 convert TITLE to UCS-4, and predict the cursor position by
24538 grub_getcharwidth.
24539
24540 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24541 const to SRC.
24542 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24543
24544 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24545
24546 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24547 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24548 grub_strcat.
24549
24550 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24551 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24552 grub_strcpy and grub_strlen. Take it into account that a space
24553 character is inserted as a delimiter.
24554
24555 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24556
24557 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24558 invalid magic in the error.
24559
24560 * commands/search.c: New file.
24561
24562 * util/grub-emu.c (main): Call grub_search_init and
24563 grub_search_fini.
24564
24565 * kern/rescue.c (grub_rescue_print_disks): Removed.
24566 (grub_rescue_print_devices): New function.
24567 (grub_rescue_cmd_ls): Use grub_device_iterate with
24568 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24569 grub_rescue_print_disks.
24570
24571 * kern/partition.c (grub_partition_iterate): Return the result of
24572 PARTMAP->ITERATE instead of GRUB_ERRNO.
24573
24574 * kern/device.c: Include grub/partition.h.
24575 (grub_device_iterate): New function.
24576
24577 * include/grub/partition.h (grub_partition_iterate): Return int
24578 instead of grub_err_t.
24579
24580 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24581 prototype.
24582 [GRUB_UTIL] (grub_search_fini): Likewise.
24583
24584 * include/grub/device.h (grub_device_iterate): New prototype.
24585
24586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24587 commands/search.c.
24588 (pkgdata_MODULES): Added search.mod.
24589 (search_mod_SOURCES): New variable.
24590 (search_mod_CFLAGS): Likewise.
24591
24592 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24593 (pkgdata_MODULES): Added search.mod.
24594 (search_mod_SOURCES): New variable.
24595 (search_mod_CFLAGS): Likewise.
24596
24597 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24598 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24599 All callers changed.
24600
24601 * DISTLIST: Added commands/search.c.
24602
24603 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24604
24605 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24606 conversion.
24607 (grub_getcharwidth): New function.
24608
24609 * kern/misc.c (grub_utf8_to_ucs4): New function.
24610
24611 * include/grub/term.h (struct grub_term): Added a new member
24612 "getcharwidth".
24613 (grub_getcharwidth): New prototype.
24614
24615 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24616
24617 * term/i386/pc/console.c (map_char): New function. Segregated from
24618 grub_console_putchar.
24619 (grub_console_putchar): Use map_char.
24620 (grub_console_getcharwidth): New function.
24621 (grub_console_term): Specified grub_console_getcharwidth as
24622 getcharwidth.
24623
24624 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24625 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24626
24627 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24628 GRUB_ERRNO.
24629 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24630 on grub_strtoul completely.
24631 (write_char): Declare local variables in the beginning of the
24632 function.
24633 (grub_vesafb_getcharwidth): New function.
24634 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24635 getcharwidth.
24636
24637 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24638
24639 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24640 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24641 commands/i386/pc/vbetest.c.
24642
24643 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24644 call grub_vbe_get_controller_info again, because the returned
24645 information is volatile.
24646 (grub_vbe_set_video_mode): Mostly rewritten.
24647 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24648 grub_vbe_status_t correctly.
24649 (grub_vbe_get_video_mode_info): Likewise.
24650 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24651 several if statements.
24652
24653 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24654 * commands/i386/pc/vbeinfo.c: ... this.
24655
24656 * commands/i386/pc/vbe_test.c: Renamed to ...
24657 * commands/i386/pc/vbetest.c: ... this.
24658
24659 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24660 ...
24661 (grub_cmd_vbeinfo): ... this. Save video modes before
24662 iterating. Skip a video mode, if it is not available, not enough
24663 information is given or it is monochrome. Show the memory
24664 model. Leave the interpretation of MODEVAR to grub_strtoul
24665 completely.
24666 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24667 (GRUB_MOD_FINI): Likewise.
24668
24669 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24670 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24671 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24672 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24673 grub_strtoul completely.
24674 (real2pm): Removed.
24675 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24676 (GRUB_MOD_FINI): Likewise.
24677
24678 * normal/misc.c: Include grub/mm.h.
24679
24680 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24681 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24682 (vbe_list_modes_mod_SOURCES): Removed.
24683 (vbe_list_modes_mod_CFLAGS): Likewise.
24684 (vbe_test_mod_SOURCES): Likewise.
24685 (vbe_test_mod_CFLAGS): Likewise.
24686 (vbeinfo_mod_SOURCES): New variable.
24687 (vbeinfo_mod_CFLAGS): Likewise.
24688 (vbetest_mod_SOURCES): Likewise.
24689 (vbetest_mod_CFLAGS): Likewise.
24690
24691 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24692
24693 * normal/misc.c: New file.
24694
24695 * DISTLIST: Added normal/misc.c.
24696
24697 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24698 DISK to HOOK. Call HOOK with DISK.
24699 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24700 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24701 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24702
24703 * normal/menu_entry.c (struct screen): Added a new member
24704 "completion_shown".
24705 (completion_buffer): New global variable.
24706 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24707 (store_completion): New function.
24708 (complete): Likewise.
24709 (clear_completions): Likewise.
24710 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24711 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24712 a tab, call complete.
24713
24714 * normal/completion.c (disk_dev): Removed.
24715 (print_simple_completion): Likewise.
24716 (print_partition_completion): Likewise.
24717 (print_func): New global variable.
24718 (add_completion): Do not take the arguments WHAT or PRINT any
24719 longer. Added a new argument TYPE. Instead of printing directly,
24720 call PRINT_FUNC if not NULL.
24721 All callers changed.
24722 (complete_device): Use a local variable DEV instead of
24723 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24724 (grub_normal_do_completion): Take a new argument HOOK. Do not
24725 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24726 empty string, return NULL instead.
24727 All callers changed.
24728
24729 * normal/cmdline.c (print_completion): New function.
24730
24731 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24732 to HOOK.
24733 All callers changed.
24734
24735 * kern/disk.c (grub_print_partinfo): Removed.
24736
24737 * include/grub/partition.h (struct grub_partition_map): Add a new
24738 argument DISK into HOOK of ITERATE.
24739 (grub_partition_iterate): Add a new argument DISK to HOOK.
24740
24741 * include/grub/normal.h (enum grub_completion_type): New enum.
24742 (grub_completion_type_t): New type.
24743 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24744 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24745 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24746 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24747 (grub_normal_do_completion): Added a new argument HOOK.
24748 (grub_normal_print_device_info): New prototype.
24749
24750 * include/grub/disk.h (grub_print_partinfo): Removed.
24751
24752 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24753 (normal_mod_SOURCES): Likewise.
24754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24755 (normal_mod_SOURCES): Likewise.
24756
24757 * commands/ls.c (grub_ls_list_disks): Use
24758 grub_normal_print_device_info instead of grub_print_partinfo. Free
24759 PNAME.
24760 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24761 duplicating the code.
24762
24763 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24764
24765 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
24766 follow GCS more precisely.
24767 * commands/i386/pc/vbe_test.c: Likewise.
24768 * include/grub/i386/pc/vbe.h: Likewise.
24769 * term/i386/pc/vesafb.c: Likewise.
24770 * video/i386/pc/vbe.c: Likewise.
24771
24772 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24773
24774 * DISTLIST: Added term/i386/pc/vesafb.c
24775 DISTLIST: Added video/i386/pc/vbe.c
24776 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24777 DISTLIST: Added commands/i386/pc/vbe_test.c.
24778 * commands/i386/pc/vbe_list_modes.c: New file.
24779 * commands/i386/pc/vbe_test.c: Likewise.
24780 * term/i386/pc/vesafb.c: Likewise.
24781 * video/i386/pc/vbe.c: Likewise.
24782 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24783 (grub_vbe_probe) Added prototype.
24784 (grub_vbe_set_video_mode) Likewise.
24785 (grub_vbe_get_video_mode) Likewise.
24786 (grub_vbe_get_video_mode_info) Likewise.
24787 (grub_vbe_set_pixel_rgb) Likewise.
24788 (grub_vbe_set_pixel_index) Likewise.
24789 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24790 (pkgdata_MODULES): Added vesafb.mod.
24791 (pkgdata_MODULES): Added vbe_list_modes.mod.
24792 (pkgdata_MODULES): Added vbe_test.mod.
24793 (vbe_mod_SOURCES): Added.
24794 (vbe_mod_CFLAGS): Likewise.
24795 (vesafb_mod_SOURCES): Likewise.
24796 (vesafb_mod_CFLAGS): Likewise.
24797 (vbe_list_modes_mod_SOURCES): Likewise.
24798 (vbe_list_modes_mod_CFLAGS): Likewise.
24799 (vbe_test_mod_SOURCES): Likewise.
24800 (vbe_test_mod_CFLAGS): Likewise.
24801
24802 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24803
24804 * normal/command.c (grub_command_execute): If INTERACTIVE is
24805 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24806 CMDLINE. Disable the pager if INTERACTIVE is true.
24807 All callers are changed.
24808
24809 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24810 before reading a config file.
24811 * normal/main.c (read_config_file): Even if a command is not
24812 found, register it if it is within an entry.
24813
24814 * util/grub-emu.c: Include sys/types.h and unistd.h.
24815 (options): Added --hold.
24816 (struct arguments): Added a new member "hold".
24817 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24818 missing.
24819 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24820 cleared by a debugger, if it is not zero.
24821
24822 * include/grub/normal.h (grub_command_execute): Add an argument
24823 INTERACTIVE.
24824
24825 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24826
24827 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24828
24829 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24830
24831 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24832 program with another one, because the old one didn't detect a bug
24833 in gcc-3.4. Always use regparm 2, because the new test is still
24834 not enough for gcc-4.0. Someone must investigate a simple test
24835 case which detects a bug in gcc-4.0.
24836
24837 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24838
24839 * DISTLIST: Added normal/completion.c.
24840
24841 * normal/completion.c: New file.
24842
24843 * term/i386/pc/console.c (grub_console_getwh): New function.
24844 (grub_console_term): Assign grub_console_getwh to getwh.
24845
24846 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24847 function is defined in normal/completion.c as
24848 grub_normal_do_completion.
24849 (grub_cmdline_get): Use grub_normal_do_completion instead of
24850 grub_tab_complete.
24851
24852 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24853 returns non-zero, otherwise return 0.
24854 (grub_partition_iterate): First, probe the partition map. Then,
24855 call ITERATE only for this partition map.
24856
24857 * kern/misc.c (grub_strncmp): Rewritten.
24858
24859 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24860 returns non-zero. Otherwise return 0.
24861
24862 * include/grub/partition.h (grub_partition_map_iterate): Return
24863 int instead of void.
24864
24865 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24866
24867 * include/grub/misc.h (grub_strncmp): Change the type of N to
24868 grub_size_t.
24869
24870 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24871 of void.
24872
24873 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
24874 unsigned explicitly before comparing it with I.
24875
24876 * kern/main.c (grub_env_write_root): Add the attribute unused into
24877 VAR.
24878
24879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24880 normal/completion.c.
24881 (normal_mod_SOURCES): Likewise.
24882 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24883 (normal_mod_SOURCES): Likewise.
24884
24885 * normal/command.c (grub_iterate_commands): If ITERATE returns
24886 non-zero, return one immediately.
24887
24888 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24889
24890 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24891 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24892 descriptions.
24893 (grub_vbe_get_controller_info): New function.
24894 (grub_vbe_get_mode_info): Likewise.
24895 (grub_vbe_set_mode): Likewise.
24896 (grub_vbe_get_mode): Likewise.
24897 (grub_vbe_set_memory_window): Likewise.
24898 (grub_vbe_get_memory_window): Likewise.
24899 (grub_vbe_set_scanline_length): Likewise.
24900 (grub_vbe_get_scanline_length): Likewise.
24901 (grub_vbe_set_display_start): Likewise.
24902 (grub_vbe_get_display_start): Likewise.
24903 (grub_vbe_set_palette_data): Likewise.
24904 * include/grub/i386/pc/vbe.h: New file.
24905
24906 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24907
24908 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24909 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24910 * DISTLIST: Likewise.
24911 * kern/ieee1275/of.c: Moved to ...
24912 * kern/ieee1275/ieee1275.c: ... here.
24913
24914 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24915
24916 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24917 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24918 Pass 0 as `end' parameter to grub_strtoul().
24919
24920 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24921
24922 * include/grub/powerpc/ieee1275/console.h: Do not include
24923 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24924 ifdef.
24925 (grub_console_cur_color): Remove i386-specific prototype.
24926 (grub_console_real_putchar): Likewise.
24927 (grub_console_checkkey): Likewise.
24928 (grub_console_getkey): Likewise.
24929 (grub_console_getxy): Likewise.
24930 (grub_console_gotoxy): Likewise.
24931 (grub_console_cls): Likewise.
24932 (grub_console_setcursor): Likewise.
24933 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24934 Include <grub/machine/console.h>.
24935 * term/ieee1275/ofconsole.c: Likewise.
24936
24937 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24938
24939 * Makefile.in (LIBLZO): New variable.
24940
24941 * configure.ac: Check for LZO version 2.
24942
24943 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24944 lzo/lzo1x.h instead of lzo1x.h.
24945
24946 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
24947 of -llzo.
24948
24949 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
24950 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
24951
24952 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
24953 copying the data from PARTITION to P.
24954
24955 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24956
24957 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
24958 negative, unload the module.
24959
24960 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
24961 map is "pc_partition_map" but not "pc".
24962 (usage): Fix the description. The options are --boot-image and
24963 --core-image but not --boot-file or --core-file.
24964 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
24965 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
24966 DEFAULT_DIRECTORY.
24967
24968 * util/i386/pc/grub-install.in: Do not specify --boot-file or
24969 --core-file. Specify INSTALL_DEVICE as an argument.
24970
24971 * util/console.c: Include config.h.
24972 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
24973 [HAVE_NCURSES_H]: Include ncurses.h.
24974 [HAVE_CURSES_H]: Include curses.h.
24975 [!A_NORMAL] (A_NORMAL): Defined as zero.
24976 [!A_STANDOUT] (A_STANDOUT): Likewise.
24977
24978 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
24979 -lncurses.
24980 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
24981
24982 * configure.ac: Check for curses libraries and headers.
24983
24984 * Makefile.in (LIBCURSES): New variable.
24985
24986 * genmk.rb (Script::rule): Set the executable bits.
24987
24988 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
24989 name of the PC partition map is "pc_partition_map" but not "pc".
24990
24991 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24992
24993 * util/i386/pc/grub-install.in (grub_probefs): New variable.
24994 (modules): Likewise.
24995 (usage): Added descriptions for --modules and --grub-probefs.
24996 Handle --modules and --grub-probefs. Save the arguments in MODULES
24997 and GRUB_PROBEFS, respectively.
24998 Auto-detect a filesystem module against GRUBDIR. If the result is
24999 empty and modules are not specified explicitly, abort the
25000 installation. Add the result to MODULES.
25001
25002 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25003 disk/powerpc/ieee1275/ofdisk.c,
25004 include/grub/powerpc/ieee1275/init.h and
25005 term/powerpc/ieee1275/ofconsole.c.
25006 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25007 term/ieee1275/ofconsole.c.
25008
25009 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25010
25011 * COPYING: Upgraded to the latest version. Only the address of the
25012 FSF office has changed.
25013
25014 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25015
25016 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25017 kern/ieee1275.c with kern/ieee1275/of.c.
25018
25019 * kern/ieee1275.c: Moved to ...
25020 * kern/ieee1275/of.c: ... here.
25021
25022 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25023
25024 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25025 readability.
25026
25027 * config.guess: Updated to the latest version from gnulib.
25028 * config.sub: Likewise.
25029 * install.sh: Likewise.
25030 * mkinstalldirs: Likewise.
25031
25032 * include/grub/console.h: Removed. This file is arch-specific. Do
25033 not put this in include/grub.
25034
25035 * include/grub/i386/pc/console.h: Resurrected.
25036
25037 * util/console.c: Include grub/machine/console.h instead of
25038 grub/console.h.
25039 * util/grub-emu.c: Likewise.
25040
25041 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25042
25043 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25044 hardcoded value.
25045
25046 From Vincent Pelletier <subdino2004@yahoo.fr>
25047 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25048 Redefined to use grub_getwh.
25049 (grub_term): New member named getwh.
25050 (grub_getwh): New prototype.
25051 * kern/term.c (grub_getwh): New function.
25052 * term/i386/pc/console.c (grub_console_getwh): New function.
25053 (grub_console_term): New member `getwh'.
25054 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25055 (grub_vga_term): New member `getwh'.
25056 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25057 grub_ssize_t.
25058 (grub_ofconsole_getw): New function.
25059 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25060 (grub_ofconsole_term): New field named getwh and new initial
25061 value.
25062
25063 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25064
25065 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25066 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25067 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25068 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25069 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25070 of <grub/machine/ieee1275.h>.
25071 * commands/ieee1275/reboot.c: Likewise.
25072 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25073 * kern/ieee1275.c: ... to here. All users updated. Change all
25074 parameter structs to use new type `grub_ieee1275_cell_t'.
25075 * term/powerpc/ieee1275/ofconsole.c: Move ...
25076 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25077 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25078 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25079 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25080 to return int.
25081 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25082 Remove unused prototypes. All users updated.
25083 * include/grub/powerpc/ieee1275/console.h: Removed.
25084 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25085 `grub_ieee1275_cell_t'.
25086 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25087 Cast comparisons with -1 to the correct type.
25088 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25089 type to match `grub_ieee1275_entry_fn'.
25090
25091 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25092
25093 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25094
25095 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25096 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25097 partmap/sun.c.
25098 (grub_probefs_SOURCES): New variable.
25099
25100 * util/i386/pc/grub-probefs.c: New file.
25101
25102 * util/i386/pc/grub-setup.c (main): Call
25103 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25104 grub_hfs_init and grub_jfs_init to initialize the system. Call
25105 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25106 grub_pc_partition_map_fini to finish the system.
25107
25108 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25109
25110 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25111 function.
25112 (grub_multiboot_load_elf32): Likewise.
25113 (grub_multiboot_is_elf64): Likewise.
25114 (grub_multiboot_load_elf64): Likewise.
25115 (grub_multiboot_load_elf): Likewise.
25116 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25117 an ELF32 or ELF64 file.
25118 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25119
25120 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25121 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25122 NULL before calling FS->LABEL.
25123 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25124 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25125 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25126 before calling FS->LABEL.
25127
25128 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25129
25130 * util/i386/pc/grub-install.in (datadir): New variable.
25131 (libdir): Removed.
25132 (pkgdatadir): New variable.
25133 (pkglibdir): Removed.
25134
25135 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25136
25137 * DISTLIST: Added util/i386/pc/grub-install.in.
25138
25139 * util/i386/pc/grub-install.in: New file.
25140
25141 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25142 (grub_install_SOURCES): Likewise.
25143
25144 * genmk.rb: Added support for scripts.
25145 (Script): New class.
25146 (scripts): New variable.
25147
25148 * Makefile.in (install-local): Install sbin_SCRIPTS by
25149 INSTALL_SCRIPT.
25150 (uninstall): Remove sbin_SCRIPTS.
25151
25152 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25153 device, try to get a GRUB device by
25154 grub_util_biosdisk_get_grub_dev.
25155 Free DEST_DEV.
25156
25157 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25158 description for --device-map.
25159
25160 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25161
25162 Change the semantics of variable hooks. They now return strings
25163 instead of error values.
25164
25165 * util/i386/pc/grub-setup.c: Include grub/env.h.
25166 (setup): Use grub_device_set_root instead of grub_env_set.
25167
25168 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25169 grub_env_get instead of grub_device_set_root and
25170 grub_device_get_root, respectively.
25171
25172 * kern/main.c (grub_env_write_root): New function.
25173 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25174 grub_env_set instead of grub_device_set_root.
25175
25176 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25177 many variables.
25178 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25179 rather than calling ENV->WRITE_HOOK afterwards.
25180 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25181 passing a pointer of a pointer.
25182 (grub_register_variable_hook): Change the types of "read_hook" and
25183 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25184 respectively.
25185 Allocate the default empty string on the heap, because this string
25186 may be freed later.
25187
25188 * kern/device.c: Include grub/env.h.
25189 (grub_device_set_root): Removed.
25190 (grub_device_get_root): Likewise.
25191 (grub_device_open): Use grub_env_get instead of
25192 grub_device_get_root.
25193
25194 * include/grub/env.h (grub_env_read_hook_t): New type.
25195 (grub_env_write_hook_t): Likewise.
25196 (grub_env_var): Change the types of "read_hook" and "write_hook"
25197 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25198 (grub_register_variable_hook): Likewise.
25199
25200 * include/grub/device.h (grub_device_set_root): Removed.
25201 (grub_device_set_root): Likewise.
25202
25203 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25204 make sure that DIRNAME terminates with '/', so that
25205 grub_fat_find_dir will fail if PATH is not a directory.
25206
25207 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25208 from DIRNAME.
25209 Use the qualifier auto for print_files and print_files_long.
25210 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25211 as a regular file.
25212 Put a newline only if there is no error.
25213 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25214 used.
25215
25216 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25217
25218 * kern/partition.c (grub_partition_probe): Initialize PART to
25219 NULL. Otherwise, when no partition map is registered, this returns
25220 a garbage.
25221
25222 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25223
25224 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25225 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25226 valid.
25227
25228 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25229
25230 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25231 information on each device, if it does not have partitions. Print
25232 "Device" instead of "Disk", because this function is not specific
25233 to disk devices.
25234
25235 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25236 static to ensure that it is put on the memory rather than a
25237 register.
25238
25239 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25240
25241 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25242 (grub_cat_init): Likewise.
25243 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25244 (options): Likewise.
25245 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25246 (grub_configfile_init): Likewise.
25247 * font/manager.c (GRUB_MOD_INIT): Likewise.
25248 * commands/help.c (GRUB_MOD_INIT): Likewise.
25249 (grub_help_init): Likewise.
25250 * normal/command.c (grub_command_init): Likewise.
25251 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25252 * disk/loopback.c (grub_loop_init): Likewise.
25253 (GRUB_MOD_INIT): Likewise.
25254 * commands/ls.c (grub_ls_init): Likewise.
25255 (GRUB_MOD_INIT): Likewise.
25256 (options): Likewise.
25257 * commands/boot.c (grub_boot_init): Likewise.
25258 (GRUB_MOD_INIT): Likewise.
25259 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25260 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25261 (GRUB_MOD_INIT): Likewise.
25262 * commands/cmp.c (grub_cmp_init): Likewise.
25263 (GRUB_MOD_INIT): Likewise.
25264
25265 * normal/arg.c: Use <> instead of "" to include header files.
25266 (SHORT_ARG_HELP): New macro.
25267 (SHORT_ARG_USAGE): Likewise.
25268 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25269 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25270 descriptions.
25271 (find_short): Check if C is 'h' or 'u' explicitly.
25272 (grub_arg_show_help): Use space characters instead of tabs. Treat
25273 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25274 are shown with --help and --usage only if they are not used for
25275 the command itself.
25276 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25277 'h' and 'u'.
25278
25279 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25280 const into "longarg". Change the type of "shortarg" to int.
25281
25282 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25283
25284 * boot/i386/pc/boot.S (boot_drive_check): New label.
25285
25286 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25287 macro.
25288
25289 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25290 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25291
25292 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25293
25294 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25295 When turning off Gate A20, skip the check and return immediately,
25296 because this is not fatal usually.
25297
25298 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25299
25300 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25301 be 0x7C00 instead of 0x8000.
25302
25303 * boot/i386/pc/pxeboot.S: Rewritten.
25304
25305 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25306 EXT_C.
25307 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25308 result.
25309
25310 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25311
25312 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25313 robustness. This routine now supports a BIOS call and System
25314 Control Port A to modify the gate A20.
25315
25316 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25317 Increased to 0x440.
25318
25319 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25320
25321 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25322 device path and resulting ihandle.
25323 (grub_ofdisk_close): dprintf the ihandle being closed.
25324 (grub_ofdisk_read): dprintf function parameters.
25325 * kern/mm.c (grub_mm_init_region): Likewise.
25326 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25327 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25328 size, and boot arguments.
25329 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25330 before loading into memory.
25331 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25332 before loading into memory.
25333
25334 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25335
25336 * kern/mm.c: Added much documentation.
25337 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25338 8, set to 5 instead of 8.
25339
25340 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25341
25342 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25343
25344 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25345 (grub_mkdevicemap_SOURCES): New variable.
25346
25347 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25348 lib/device.c of GRUB Legacy.
25349
25350 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25351
25352 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25353 instead of PATH is NULL.
25354
25355 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25356
25357 * commands/cmp.c (BUFFER_SIZE): New macro.
25358 (grub_cmd_cmp): Close the right file at the right time. Compare
25359 only data just read. Don't report files of different size as
25360 identical. Dynamically allocate buffers. Move variable
25361 declarations at the beginning of function.
25362
25363 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25364
25365 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25366 reverse.
25367
25368 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25369
25370 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25371 when backspace is pressed at beginning of line.
25372
25373 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25374
25375 * DISTLIST: Added genfslist.sh.
25376
25377 * normal/main.c (fs_module_list): New variable.
25378 (autoload_fs_module): New function.
25379 (read_fs_list): Likewise.
25380 (grub_normal_execute): Call read_fs_list.
25381
25382 * kern/fs.c (grub_fs_autoload_hook): New variable.
25383 (grub_fs_probe): Added support for auto-loading.
25384
25385 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25386 (grub_fs_module_list_t): New type.
25387
25388 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25389 (grub_fs_autoload_hook): New prototype.
25390
25391 * genfslist.sh: New file.
25392
25393 * genmk.rb: Added a rule to generate a filesystem list.
25394
25395 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25396
25397 * configure.ac: Fix the test for cross-compiling.
25398
25399 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25400 define GRUB_UTIL anymore.
25401
25402 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25403 so this function works on other systems than just big endian.
25404 (load_modules): Likewise.
25405 (add_segments): Likewise.
25406
25407 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25408
25409 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25410 contains `l' modifier, get a long from va_arg().
25411
25412 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25413
25414 * kern/mm.c (grub_free): If the next free block which is being
25415 merged is the first free block, set the first block to the block
25416 being freed.
25417 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25418
25419 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25420
25421 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25422 `grub_ieee1275_chosen'.
25423
25424 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25425
25426 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25427 (grub_ieee1275_chosen): New variable.
25428 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25429 `chosen'.
25430 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25431 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25432 Rename first argument to `phandle' for consistency.
25433 (grub_ieee1275_get_property_length): Likewise.
25434 (grub_ieee1275_next_property): Likewise. Change type of first argument
25435 to grub_ieee1275_phandle_t.
25436 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25437 Move export next to declaration.
25438 (grub_ieee1275_chosen): New variable.
25439 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25440 Correct cosmetic typo.
25441 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25442 `grub_ieee1275_chosen'.
25443 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25444 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25445 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25446 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25447 `grub_ieee1275_chosen'.
25448
25449 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25450
25451 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25452 /chosen/bootargs.
25453 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25454 /chosen/bootargs as "variable=value" pairs.
25455
25456 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25457
25458 * include/grub/misc.h (grub_dprintf): New macro.
25459 (grub_real_dprintf): New prototype.
25460 (grub_strword): Likewise.
25461 (grub_iswordseparator): Likewise.
25462 * kern/misc.c (grub_real_dprintf): New function.
25463 (grub_strword): Likewise.
25464 (grub_iswordseparator): Likewise.
25465
25466 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25467
25468 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25469 (roundup): Remove macro.
25470 (grub_ieee1275_flags): Make static.
25471 (grub_ieee1275_realmode): Remove.
25472 (grub_ieee1275_test_flag): New function.
25473 (grub_ieee1275_set_flag): Likewise.
25474 (find_options): Rename to `grub_ieee1275_find_options'; update
25475 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25476 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25477 (cmain): New prototype.
25478 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25479 `grub_ieee1275_flags' directly.
25480 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25481 machine/biosdisk.h.
25482 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25483 Don't include grub/machine/init.h.
25484 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25485 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25486 Remove prototype.
25487 (grub_ieee1275_realmode): Likewise.
25488 (grub_ieee1275_flag): New enum.
25489 (grub_ieee1275_test_flag): New prototype.
25490 (grub_ieee1275_set_flag): New prototype.
25491 * include/grub/powerpc/ieee1275/init.h: Remove file.
25492 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25493 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25494 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25495 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25496 comment.
25497 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25498 `grub_ieee1275_test_flag'.
25499 (grub_ieee1275_encode_devname): Likewise.
25500
25501 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25502
25503 * include/grub/powerpc/ieee1275/ieee1275.h
25504 (grub_ieee1275_encode_devname): New prototype.
25505 (grub_ieee1275_get_filename): Likewise.
25506 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25507 function.
25508 (grub_set_prefix): Likewise.
25509 (grub_machine_init): Call grub_set_prefix.
25510 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25511 (grub_parse_type): New enum.
25512 (grub_ieee1275_get_devargs): New function.
25513 (grub_ieee1275_get_devname): Likewise.
25514 (grub_ieee1275_parse_args): Likewise.
25515 (grub_ieee1275_get_filename): Likewise.
25516 (grub_ieee1275_encode_devname): Likewise.
25517
25518 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25519
25520 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25521 `grub_loader_unset'.
25522
25523 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25524
25525 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25526 instead of grub_ieee1275_interpret.
25527 (grub_halt_init): New function.
25528 (grub_halt_fini): Likewise.
25529 (GRUB_MOD_INIT): Correct message grammar.
25530 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25531 instead of grub_ieee1275_interpret.
25532 (grub_reboot_init): New function.
25533 (grub_reboot_fini): Likewise.
25534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25535 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25536 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25537 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25538 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25539 function.
25540 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25541 Add prototype.
25542 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25543 prototype.
25544 (grub_halt): Likewise.
25545 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25546 (cmain): Remove __attribute__((unused)).
25547 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25548 (grub_heap_len): Likewise.
25549 (grub_machine_fini): New function.
25550 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25551 (grub_halt): Likewise.
25552 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25553 function.
25554 * util/powerpc/ieee1275/misc.c: New file.
25555
25556 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25557
25558 * DISTLIST: New file.
25559 * gendistlist.sh: Likewise.
25560
25561 * Makefile.in (COMMON_DISTFILES): Removed.
25562 (BOOT_DISTFILES): Likewise.
25563 (CONF_DISTFILES): Likewise.
25564 (DISK_DISTFILES): Likewise.
25565 (FS_DISTFILES): Likewise.
25566 (INCLUDE_DISTFILES): Likewise.
25567 (KERN_DISTFILES): Likewise.
25568 (LOADER_DISTFILES): Likewise.
25569 (TERM_DISTFILES): Likewise.
25570 (UTIL_DISTFILES): Likewise.
25571 (DISTFILES): Likewise.
25572 (uninstall): Uninstall files in $(pkgdata_DATA).
25573 (DISTLIST): New target.
25574 (distdir): Use the contents of the file DISTLIST to get a list of
25575 distributed files.
25576
25577 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25578
25579 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25580 descriptor. This is ported from GRUB Legacy.
25581
25582 * gencmdlist.sh: Added an extra semicolon to make it work with
25583 old sed versions. Reported by Robert Bihlmeyer
25584 <robbe@orcus.priv.at>.
25585
25586 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25587
25588 Automatic loading of commands is supported.
25589
25590 * normal/main.c (read_command_list): New function.
25591 (grub_normal_execute): Call read_command_list.
25592
25593 * normal/command.c (grub_register_command): Return zero or CMD.
25594 Allocate CMD->NAME from the heap.
25595 Initialize CMD->MODULE_NAME to zero.
25596 Find the same name as well. If the same command is found and it is
25597 a dummy command, overwrite members. If it is not a dummy command,
25598 return zero.
25599 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25600 (grub_command_find): If a dummy command is found, load a module
25601 and retry to find a command only once.
25602
25603 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25604 make sure that each command is loaded.
25605
25606 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25607 macro.
25608 (struct grub_command): Remove const from the member `name'.
25609 Add a new member `module_name'.
25610 (grub_register_command): Return grub_command_t.
25611
25612 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25613 sure that each command is loaded.
25614
25615 * genmk.rb (PModule::rule): Specify a module name without the
25616 suffix ".mod" to gencmdlist.sh.
25617
25618 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25619
25620 * gencmdlist.sh: New file.
25621
25622 * genmk.rb (PModule::rule): Generate a rule for a command list.
25623 Clean command.lst.
25624 Generate command.lst from $(COMMANDFILES).
25625
25626 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25627 (DATA): Added $(pkgdata_DATA).
25628 (install-local): Install files in $(pkgdata_DATA).
25629
25630 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25631
25632 * term/i386/pc/vga.c (debug_command): Removed.
25633 (GRUB_MOD_INIT): Do not register the command "debug".
25634
25635 From Hollis Blanchard:
25636 * commands/configfile.c: New file.
25637 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25638 commands/configfile.c.
25639 (pkgdata_MODULES): Added configfile.mod.
25640 (configfile_mod_SOURCES): New variable.
25641 (configfile_mod_CFLAGS): Likewise.
25642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25643 commands/configfile.c.
25644 (pkgdata_MODULES): Added configfile.mod.
25645 (configfile_mod_SOURCES): New variable.
25646 (configfile_mod_CFLAGS): Likewise.
25647 * util/grub-emu.c (main): Call grub_configfile_init and
25648 grub_configfile_fini.
25649 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25650 prototype.
25651 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25652
25653 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25654
25655 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25656 address.
25657
25658 * commands/help.c (grub_cmd_help): Do not print newlines after
25659 the last command in print_command_help.
25660
25661 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25662
25663 * commands/default.h: New file.
25664 * commands/timeout.h: Likewise.
25665 * normal/context.c: Likewise.
25666
25667 * util/misc.c: Do not include sys/times.h.
25668 Include sys/time.h and grub/machine/time.h.
25669 (grub_get_rtc): Rewritten with gettimeofday.
25670
25671 * util/grub-emu.c (main): Call grub_default_init and
25672 grub_timeout_init before grub_normal_init, and call
25673 grub_timeout_fini and grub_default_fini after grub_main.
25674
25675 * util/console.c (grub_ncurses_checkkey): Return the read
25676 character or -1.
25677
25678 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25679 timeouts.
25680
25681 * normal/main.c (read_config_file): Push MENU. If this fails,
25682 print an error and wait for a user input.
25683 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25684 If a menu is empty or an error occurs, pop MENU.
25685 (grub_normal_execute): Pop and free MENU after grub_menu_run
25686 returns.
25687
25688 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25689
25690 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25691 include time.h.
25692 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25693 without GRUB_UTIL.
25694 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25695 time.h.
25696 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25697 without GRUB_UTIL.
25698
25699 * include/grub/normal.h (struct grub_menu_list): New struct.
25700 (grub_menu_list_t): New type.
25701 (struct grub_context): New struct.
25702 (grub_context_t): New type.
25703 (grub_register_command): Got rid of EXPORT_FUNC.
25704 (grub_unregister_command): Likewise.
25705 (grub_context_get): New prototype.
25706 (grub_context_get_current_menu): Likewise.
25707 (grub_context_push_menu): Likewise.
25708 (grub_context_pop_menu): Likewise.
25709 [GRUB_UTIL] (grub_default_init): Likewise.
25710 [GRUB_UTIL] (grub_default_fini): Likewise.
25711 [GRUB_UTIL] (grub_timeout_init): Likewise.
25712 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25713
25714 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25715 commands/timeout.c and normal/context.c.
25716 (pkgdata_MODULES): Added default.mod and timeout.mod.
25717 (normal_mod_SOURCES): Added normal/context.c.
25718 (default_mod_SOURCES): New variable.
25719 (default_mod_CFLAGS): Likewise.
25720 (timeout_mod_SOURCES): Likewise.
25721 (timeout_mod_CFLAGS): Likewise.
25722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25723 conf/i386-pc.rmk.
25724 (pkgdata_MODULES): Added default.mod and timeout.mod.
25725 (normal_mod_SOURCES): Added normal/context.c.
25726 (default_mod_SOURCES): New variable.
25727 (default_mod_CFLAGS): Likewise.
25728 (timeout_mod_SOURCES): Likewise.
25729 (timeout_mod_CFLAGS): Likewise.
25730
25731 * Makefile.in (all-local): Added $(MKFILES).
25732
25733 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25734
25735 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25736 (grub_emu_SOURCES): Likewise.
25737 (pkgdata_MODULES): Add `sun.mod'.
25738 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25740 `partmap/sun.c'.
25741 (pkgdata_MODULES): Add `sun.mod'.
25742 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25743 * include/grub/partition.h (grub_sun_partition_map_init): New
25744 prototype.
25745 (grub_sun_partition_map_fini): Likewise.
25746 * partmap/sun.c: New file.
25747 * util/grub-emu.c (main): Initialize and de-initialize the sun
25748 partitionmap support.
25749
25750 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25751
25752 This implements an Emacs-like menu entry editor.
25753
25754 * normal/menu_entry.c: New file.
25755
25756 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25757 characters to ASCII.
25758 (saved_char): New variable.
25759 (grub_ncurses_checkkey): Rewritten completely.
25760 (grub_ncurses_getkey): Likewise.
25761 (grub_ncurses_init): Call raw instead of cbreak.
25762
25763 * normal/menu.c (print_entry): Do not put a space.
25764 (init_page): Renamed to ...
25765 (grub_menu_init_page): ... this. All callers changed.
25766 (edit_menu_entry): Removed.
25767 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25768
25769 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25770
25771 * kern/misc.c (grub_vprintf): Call grub_refresh.
25772
25773 * normal/menu.c (DISP_LEFT): Renamed to ...
25774 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25775 * normal/menu.c (DISP_UP): Renamed to ...
25776 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25777 * normal/menu.c (DISP_RIGHT): Renamed to ...
25778 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25779 * normal/menu.c (DISP_DOWN): Renamed to ...
25780 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25781 * normal/menu.c (DISP_HLINE): Renamed to ...
25782 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25783 * normal/menu.c (DISP_VLINE): Renamed to ...
25784 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25785 * normal/menu.c (DISP_UL): Renamed to ...
25786 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25787 * normal/menu.c (DISP_UR): Renamed to ...
25788 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25789 * normal/menu.c (DISP_LL): Renamed to ...
25790 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25791 * normal/menu.c (DISP_LR): Renamed to ...
25792 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25793 * normal/menu.c (TERM_WIDTH): Renamed to ...
25794 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25795 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25796 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25797 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25798 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25799 * normal/menu.c (TERM_MARGIN): Renamed to ...
25800 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25801 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25802 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25803 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25804 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25805 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25806 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25807 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25808 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25809 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25810 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25811 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25812 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25813 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25814 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25815 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25816 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25817 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25818 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25819 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25820 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25821 All callers changed.
25822
25823 * include/grub/normal.h: New prototype.
25824
25825 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25826 normal/menu_entry.c.
25827 (normal_mod_SOURCES): Likewise.
25828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25829 (normal_mod_SOURCES): Likewise.
25830
25831 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25832
25833 * include/grub/normal.h (grub_halt_init): New prototype.
25834 (grub_halt_fini): Likewise.
25835 (grub_reboot_init): Likewise.
25836 (grub_reboot_fini): Likewise.
25837
25838 * util/grub-emu.c: Include signal.h.
25839 (main_env): New global variable.
25840 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25841 catch C-c.
25842 (grub_machine_fini): New function.
25843 (main): Call grub_halt_init and grub_reboot_init before
25844 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25845 Call setjmp with MAIN_ENV to go back afterwards.
25846 Call grub_machine_fini right before return.
25847
25848 * include/grub/util/misc.h: Include setjmp.h.
25849 (main_env): New prototype.
25850
25851 * include/grub/kernel.h (grub_machine_fini): New prototype.
25852 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25853 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25854
25855 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25856 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25857 * term/i386/pc/console.c (grub_console_fini): Likewise.
25858
25859 * util/i386/pc/misc.c: New file.
25860
25861 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25862 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25863 commands/i386/pc/reboot.c.
25864
25865 2005-02-14 Guillem Jover <guillem@hadrons.org>
25866
25867 * include/grub/dl.h (grub_dl_check_header): New prototype.
25868 (grub_arch_dl_check_header): Change return type to grub_err_t,
25869 remove size parameter and export function. Update all callers.
25870 * kern/dl.c (grub_dl_check_header): New function.
25871 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25872 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25873 are inside the core.
25874 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25875 independent ELF header checks.
25876 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25877 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25878 `grub_dl_check_header' instead of explicit checks. Check for the
25879 ELF type.
25880 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25881 `grub_dl_check_header' instead of explicit checks. Remove arch
25882 specific ELF header checks.
25883
25884 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25885 argument SIZE.
25886
25887 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25888
25889 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25890 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25891
25892 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25893
25894 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
25895 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
25896 (part_map_iterate): Clear `grub_errno' and return 0 if
25897 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
25898 * partmap/amiga.c (amiga_partition_map_iterate): Return
25899 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25900 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25901
25902 2005-02-01 Guillem Jover <guillem@hadrons.org>
25903
25904 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25905 help info.
25906
25907 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25908
25909 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25910 Removed prototype.
25911 (grub_rescue_cmd_linux): New prototype.
25912 (grub_rescue_cmd_initrd): Likewise.
25913 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25914 `bi_rec'.
25915 (grub_linux_release_mem): Release the memory for the initrd.
25916 (grub_load_linux): Renamed from this...
25917 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25918 Changed `entry' not to be static. Loop over memory regions to
25919 find another one when the default fails.
25920 (grub_rescue_cmd_initrd): New function.
25921 (grub_linux_init): Remove function.
25922 (grub_linux_fini): Likewise.
25923 (GRUB_MOD_INIT): Register `initrd'.
25924 (GRUB_MOD_FINI): Unregister `initrd'.
25925 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25926 Function removed.
25927 (grub_linux_normal_fini): Likewise.
25928 (GRUB_MOD_INIT): Register `initrd'.
25929 (GRUB_MOD_FINI): Unregister `initrd'.
25930
25931 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25932
25933 * commands/help.c: New file.
25934 * normal/arg.c (show_help): Renamed to...
25935 (grub_arg_show_help): ... this.
25936 * commands/i386/pc/halt.c: New file.
25937 * commands/i386/pc/reboot.c: Likewise.
25938 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25939 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25940 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25941 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25942 variables.
25943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25944 `commands/help.c'.
25945 (pkgdata_MODULES): Add `help.mod'.
25946 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
25947 * grub/i386/pc/init.h (grub_reboot): New prototype.
25948 (grub_halt): Likewise.
25949 * include/grub/normal.h (grub_arg_show_help): New prototype.
25950 (grub_help_init): Likewise.
25951 (grub_help_fini): Likewise.
25952 * util/grub-emu.c (main): Initialize and deinitialize the help
25953 command.
25954
25955 * normal/cmdline.c (grub_cmdline_get): Doc fix.
25956
25957 * normal/command.c (grub_command_init): Fixed the description of
25958 the `set' and `unset' commands.
25959
25960 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25961
25962 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
25963 function.
25964 * commands/ieee1275/halt.c: New file.
25965 * commands/ieee1275/reboot.c: Likewise.
25966 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
25967 `__attribute__ ((unused))'. Some GCS related fixed.
25968 (grub_suspend_init) [GRUB_UTIL]: Function removed.
25969 (grub_suspend_fini): Likewise.
25970 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
25971 and `halt.mod'.
25972 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
25973 (halt_mod_CFLAGS): New variables.
25974 * include/grub/powerpc/ieee1275/ieee1275.h
25975 (grub_ieee1275_interpret): New prototype.
25976
25977 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
25978
25979 * include/grub/misc.h (memmove): New prototype.
25980 (memcpy): Likewise.
25981
25982 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
25983
25984 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
25985 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
25986
25987 2005-01-22 Marco Gerards <metgerards@student.han.nl>
25988
25989 * kern/misc.c (grub_strndup): Function rewritten.
25990
25991 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
25992
25993 * normal/menu.c (TERM_WIDTH): Macro redefined.
25994 (TERM_TOP_BORDER_Y): Likewise.
25995 (draw_border): Replaced while-loop by a for-loop. Make the number
25996 of lines consistent with the number of lines displayed in
25997 print_entries. Added a margin below the rectangle.
25998 (print_entry): Make the entry fit in the rectangle.
25999 (print_entries): Display the scroll arrows next to the right
26000 border.
26001
26002 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26003
26004 * fs/minix.c (grub_minix_find_file): Reserve more space for
26005 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26006 `grub_strncpy' to copy `path' into it.
26007
26008 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26009
26010 Add the loopback device, a device via which files can be accessed
26011 as devices.
26012
26013 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26014 (pkgdata_MODULES): Add loopback.mod.
26015 (loopback_mod_SOURCES): New variable.
26016 (loopback_mod_CFLAGS): Likewise.
26017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26018 `disk/loopback.c'.
26019 (pkgdata_MODULES): Add loopback.mod.
26020 (loopback_mod_SOURCES): New variable.
26021 (loopback_mod_CFLAGS): Likewise.
26022 * disk/loopback.c: new file.
26023 * include/grub/normal.h (grub_loop_init): New prototype.
26024 (grub_loop_fini): New prototype.
26025 * util/grub-emu.c (main): Initialize and de-initialize loopback
26026 support.
26027 * include/grub/disk.h (grub_disk_dev_id): Add
26028 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26029
26030 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26031
26032 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26033 function.
26034 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26035 (suspend_mod_SOURCES): New variable.
26036 (suspend_mod_CFLAGS): Likewise.
26037 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26038 New prototype.
26039 * commands/ieee1275/suspend.c: New file.
26040
26041 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26042
26043 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26044 ((unused))' to `__attribute__ ((used))'.
26045 (GRUB_MOD_FINI): Likewise.
26046 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26047 * genmk.rb (PModule): Assign space to common symbols when linking
26048 modules.
26049
26050 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26051
26052 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26053 `unsigned' arguments to `grub_size_t'.
26054 (grub_malloc): Likewise.
26055 (grub_realloc): Likewise.
26056 (grub_memalign): Likewise.
26057 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26058 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26059 * util/misc.c (grub_malloc): Likewise.
26060 (grub_realloc): Likewise.
26061 * kern/mm.c (get_header_from_pointer): Change the casts to
26062 `unsigned' into a cast to `grub_size_t'.
26063
26064 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26065 point to `currnode' when `currnode' is changed.
26066
26067 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26068 Schottelius <nico-linux@schottelius.org>.
26069
26070 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26071
26072 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26073 (note_path): Remove variable.
26074 (GRUB_IEEE1275_NOTE_NAME): New macro.
26075 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26076 (grub_ieee1275_note_hdr): New structure.
26077 (grub_ieee1275_note_desc): Likewise.
26078 (grub_ieee1275_note): Likewise.
26079 (load_note): Remove `dir' argument. All callers updated. Remove
26080 `note_img' and `path'. Do not load a file from `note_path'.
26081 Initialize a struct grub_ieee1275_note and write that to `out'.
26082 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26083
26084 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26085
26086 * util/misc.c (grub_util_read_image): Revert last change. It
26087 called `grub_util_read_at', which seeks from the beginning of the
26088 file.
26089
26090 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26091
26092 * TODO: Add note about endianness in grub-mkimage.
26093 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26094 section.
26095 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26096 (grub_mkimage_SOURCES): New target.
26097 * include/grub/kernel.h (grub_start_addr): Remove variable.
26098 (grub_end_addr): Likewise.
26099 (grub_total_module_size): Likewise.
26100 (grub_kernel_image_size): Likewise.
26101 (GRUB_MODULE_MAGIC): New constant.
26102 (grub_module_info): New structure.
26103 (grub_arch_modules_addr): New prototype.
26104 (grub_get_end_addr): Remove prototype.
26105 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26106 * include/grub/powerpc/ieee1275/kernel.h: New file.
26107 * include/grub/util/misc.h (grub_util_get_fp_size): New
26108 prototype.
26109 (grub_util_read_at): Likewise.
26110 (grub_util_write_image_at): Likewise.
26111 * kern/main.c (grub_get_end_addr): Remove function.
26112 (grub_load_modules): Call grub_arch_modules_addr instead of using
26113 grub_end_addr. Look for a grub_module_info struct in memory. Use
26114 the grub_module_info fields instead of calling grub_get_end_addr
26115 as loop conditions. Move grub_add_unused_region code here.
26116 (grub_add_unused_region): Remove function.
26117 * kern/i386/pc/init.c: Include grub/cache.h.
26118 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26119 one call to add_mem_region.
26120 (grub_arch_modules_addr): New function.
26121 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26122 (grub_total_module_size): Likewise.
26123 Include grub/machine/kernel.h.
26124 (grub_arch_modules_addr): New function.
26125 * util/grub-emu.c (grub_end_addr): Remove variable.
26126 (grub_total_module_size): Likewise.
26127 (grub_arch_modules_addr): New function.
26128 * util/misc.c: Include unistd.h.
26129 (grub_util_get_fp_size): New function.
26130 (grub_util_read_at): Likewise.
26131 (grub_util_write_image_at): Likewise.
26132 (grub_util_read_image): Call grub_util_read_at.
26133 (grub_util_write_image): Call grub_util_write_image_at.
26134 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26135 additional memory in kernel_img for a struct grub_module_info.
26136 Fill in that grub_module_info.
26137 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26138
26139 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26140
26141 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26142 New function.
26143 * include/grub/powerpc/ieee1275/ieee1275.h
26144 (grub_ieee1275_milliseconds): New prototype.
26145 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26146 Change to 1000.
26147 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26148 grub_ieee1275_milliseconds.
26149
26150 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26151
26152 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26153 variable.
26154 (find_options): New function.
26155 (cmain): Call find_options.
26156 * include/grub/powerpc/ieee1275/ieee1275.h
26157 (grub_ieee1275_realmode): New extern variable.
26158 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26159 grub_map if grub_ieee1275_realmode is false.
26160
26161 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26162
26163 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26164 lines are inserted and make it work like readline. Reported by
26165 Vincent Pelletier <subdino2004@yahoo.fr>.
26166
26167 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26168
26169 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26170
26171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26172 `kern/powerpc/cache.S'.
26173
26174 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26175
26176 * genmk.rb: Handle the `Program' class in the main loop. Written
26177 by Johan Rydberg <jrydberg@gnu.org>.
26178 (Program): New class.
26179 (programs): New variable.
26180 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26181 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26182 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26183 (help_arch): Function removed.
26184 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26185 `powerpc/libgcc.h' and `loader.h'.
26186 (pkgdata_PROGRAMS): New variable.
26187 (sbin_UTILITIES): Variable removed.
26188 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26189 (grubof_SOURCES): Variable re-defined so it only includes the
26190 core functionality.
26191 (grubof_CFLAGS): Remove `-DGRUBOF'.
26192 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26193 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26194 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26195 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26196 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26197 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26198 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26199 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26200 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26201 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26202 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26203 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26204 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26205 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26206 (pc_mod_CFLAGS): New variables.
26207 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26208 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26209 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26210 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26211 Moved from here...
26212 * include/grub/i386/pc/init.h (grub_os_area_addr)
26213 (rub_os_area_size): ... to here.
26214 * include/grub/powerpc/ieee1275/ieee1275.h
26215 (grub_ieee1275_entry_fn): Export symbol.
26216 * include/grub/powerpc/ieee1275/init.h: New file.
26217 * include/grub/powerpc/libgcc.h: Likewise.
26218 * include/grub/cache.h: Likewise.
26219 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26220 <hollis@penguinppc.org>.
26221 * kern/dl.c: Include <grub/cache.h>.
26222 (grub_dl_flush_cache): New function.
26223 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26224 for this module.
26225 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26226 (grub_console_init): Removed prototypes.
26227 (grub_machine_init): Don't initialize the modules anymore.
26228 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26229 static.
26230 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26231 Macro undef removed.
26232 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26233 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26234 relocation `R_PPC_REL32'. Return an error when the relocation is
26235 unknown.
26236 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26237 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26238 * util/misc.c (grub_arch_sync_caches): Likewise.
26239
26240 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26241
26242 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26243 `symlist.c', add `grubof_symlist.c'.
26244 (symlist.c): Variable removed.
26245 (grubof_HEADERS): Variable added.
26246 (grubof_symlist.c): New target.
26247 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26248 `kernel_img_HEADERS'.
26249 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26250 * kern/powerpc/dl.c: New file.
26251 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26252 Function removed.
26253 (grub_arch_dl_relocate_symbols): Likewise.
26254 (grub_register_exported_symbols): Likewise.
26255
26256 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26257
26258 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26259 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26260 to fail instead. Reported by Vincent Pelletier
26261 <subdino2004@yahoo.fr>.
26262
26263 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26264 it is not allocated. Reported by Vincent Pelletier
26265 <subdino2004@yahoo.fr>.
26266
26267 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26268 output so the output looks better.
26269
26270 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26271
26272 Modulize the partition map support and add support for the amiga
26273 partition map.
26274
26275 * commands/ls.c: Include <grub/partition.h> instead of
26276 <grub/machine/partition.h>.
26277 * kern/disk.c: Likewise.
26278 * kern/rescue.c: Likewise.
26279 * loader/i386/pc/chainloader.c: Likewise.
26280 * normal/cmdline.c: Likewise.
26281 * kern/powerpc/ieee1275/init.c: Likewise.
26282 (grub_machine_init): Call `grub_pc_partition_map_init',
26283 `grub_amiga_partition_map_init' and
26284 `grub_apple_partition_map_init'.
26285 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26286 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26287 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26288 `partition.h' and `pc_partition.h'.
26289 (grub_setup_SOURCES): Remove
26290 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26291 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26292 (grub_emu_SOURCES): Likewise.
26293 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26294 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26295 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26297 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26298 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26299 (grubof_SOURCES): Likewise.
26300 * disk/i386/pc/partition.c: File removed.
26301 * disk/powerpc/ieee1275/partition.c: Likewise.
26302 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26303 * include/grub/i386/pc/partition.h: Likewise.
26304 * kern/partition.c: New file.
26305 * partmap/amiga.c: Likewise.
26306 * partmap/apple.c: Likewise.
26307 * partmap/pc.c: Likewise.
26308 * include/grub/partition.h: Likewise..
26309 * include/grub/pc_partition.h: Likewise.
26310 * util/grub-emu.c: Include <grub/partition.h> instead of
26311 <grub/machine/partition.h>.
26312 (main): Call `grub_pc_partition_map_init',
26313 `grub_amiga_partition_map_init' and
26314 `grub_apple_partition_map_init' and deinitialize afterwards.
26315 * util/i386/pc/biosdisk.c: Include `#include
26316 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26317 `<grub/machine/partition.h>'.
26318 * util/i386/pc/grub-setup.c: Likewise.
26319 * util/i386/pc/biosdisk.c: Likewise.
26320 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26321 partition information in case of a PC partition.
26322 * util/i386/pc/grub-setup.c: Include `#include
26323 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26324 `<grub/machine/partition.h>'.
26325 (setup): Only access the PC specific partition information in case
26326 of a PC partition.
26327
26328 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26329
26330 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26331 (grub_longjmp): Likewise.
26332 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26333 20.
26334 * normal/powerpc/setjmp.S: New file.
26335 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26336 `normal/powerpc/setjmp.S'.
26337 (grubof_CFLAGS): Add `-DGRUBOF'.
26338 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26339 [GRUB_UTIL && !GRUBOF].
26340
26341 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26342
26343 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26344 property named `name'. Correctly handle the error returned by
26345 `grub_ieee1275_finddevice' if a device can not be opened.
26346
26347 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26348
26349 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26350 `actual' for negativity.
26351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26352 kern/fshelp.c.
26353
26354 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26355
26356 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26357 (PAGE_OFFSET): New macro.
26358 (CRTC_ADDR_PORT): Likewise.
26359 (CRTC_DATA_PORT): Likewise.
26360 (START_ADDR_HIGH_REGISTER): Likewise.
26361 (START_ADDR_LOW_REGISTER): Likewise.
26362 (GRAPHICS_ADDR_PORT): Likewise.
26363 (GRAPHICS_DATA_PORT): Likewise.
26364 (READ_MAP_REGISTER): Likewise.
26365 (INPUT_STATUS1_REGISTER): Likewise.
26366 (INPUT_STATUS1_VERTR_BIT): Likewise.
26367 (page): New variable.
26368 (wait_vretrace): New function.
26369 (set_read_map): Likewise.
26370 (set_start_address): Likewise.
26371 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26372 the right page.
26373 (check_vga_mem): Take the page into account.
26374 (write_char): Likewise.
26375 (write_cursor): Likewise.
26376 (scroll_up): Likewise. Copy the page to the page that is not
26377 shown and switch between both pages.
26378 (grub_vga_putchar): Fix off by one error.
26379 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26380 account.
26381
26382 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26383
26384 Add support for iso9660 (including rockridge).
26385
26386 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26387 (iso9660_mod_SOURCES): New variable.
26388 (iso9660_mod_CFLAGS): Likewise.
26389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26390 * include/grub/fs.h (grub_iso9660_init): New prototype.
26391 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26392 * fs/iso9660.c: New file.
26393
26394 * include/grub/misc.h (grub_strncat): New prototype.
26395 * kern/misc.c (grub_strncat): New function.
26396
26397 * fs/hfs.c (grub_hfs_mount): Translate the error
26398 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26399 * fs/jfs.c (grub_jfs_mount): Likewise.
26400 * fs/ufs.c (grub_ufs_mount): Likewise.
26401
26402 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26403
26404 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26405 which initialized BAT registers.
26406 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26407 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26408 Move from here...
26409 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26410 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26411 ... to here.
26412 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26413 (grub_mapclaim): Likewise.
26414 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26415 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26416 hand.
26417
26418 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26419
26420 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26421 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26422 -ffreestanding and -msoft-float.
26423
26424 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26425
26426 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26427 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26428 set in grub_ieee1275_flags.
26429
26430 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26431
26432 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26433 prototype.
26434 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26435 grub_console_init first.
26436 Change the memory range used for grub_ieee1275_claim and
26437 grub_mm_init_region.
26438 Print an error message if the claim fails.
26439 Include <grub/misc.h>.
26440
26441 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26442
26443 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26444 Call grub_children_iterate for device nodes of type `scsi',
26445 `ide', or `ata'.
26446 (grub_ofdisk_open): Remove manual device alias resolution.
26447 Fix memory leak when device cannot be opened.
26448 * include/grub/powerpc/ieee1275/ieee1275.h
26449 (grub_children_iterate): New prototype.
26450 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26451 New function.
26452 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26453 Return -1 if args.size was -1.
26454
26455 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26456
26457 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26458 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26459 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26460 Open Firmware's memory for it; claim memory from _start to _end.
26461 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26462 (_end): New extern.
26463 (_start): Zero BSS from __bss_start to _end.
26464 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26465 New extern.
26466 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26467
26468 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26469
26470 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26471 -1 if args.base was -1.
26472
26473 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26474
26475 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26476 escape sequence instead of a literal ^L. Also call
26477 grub_ofconsole_gotoxy.
26478
26479 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26480
26481 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26482 void * arguments to grub_addr_t. All callers updated. Also make
26483 the `result' argument optional.
26484 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26485 All callers updated.
26486
26487 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26488
26489 * commands/ls.c (grub_ls_list_files): Use the string following the
26490 initial ')', if present, as the filesystem path.
26491 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26492
26493 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26494
26495 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26496
26497 Make the source code of the menu interface more readable.
26498
26499 * normal/menu.c: Include grub/mm.h.
26500 (TERM_WIDTH): New macro.
26501 (TERM_HEIGHT): Likewise.
26502 (TERM_INFO_HEIGHT): Likewise.
26503 (TERM_MARGIN): Likewise.
26504 (TERM_SCROLL_WIDTH): Likewise.
26505 (TERM_TOP_BORDER_Y): Likewise.
26506 (TERM_LEFT_BORDER_X): Likewise.
26507 (TERM_BORDER_WIDTH): Likewise.
26508 (TERM_MESSAGE_HEIGHT): Likewise.
26509 (TERM_BORDER_HEIGHT): Likewise.
26510 (TERM_NUM_ENTRIES): Likewise.
26511 (TERM_FIRST_ENTRY_Y): Likewise.
26512 (TERM_ENTRY_WIDTH): Likewise.
26513 (TERM_CURSOR_X): Likewise.
26514 (draw_border): Use macros instead of magic numbers.
26515 (print_entry): Likewise.
26516 (print_entries): Likewise.
26517 (run_menu): Likewise. Also, handle the key 'e'.
26518 (run_menu_entry): Ignore empty command lines.
26519 (print_message): Added a new argument EDIT. If EDIT is true,
26520 print a different message.
26521 (init_page): Likewise.
26522 (edit_menu_entry): New function. Not implemented yet.
26523
26524 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26525
26526 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26527 can be loaded from normal mode.
26528
26529 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26530 `multiboot.mod'.
26531 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26532 (multiboot_mod_CFLAGS): New variables.
26533 * loader/i386/pc/linux_normal.c: New file.
26534 * loader/i386/pc/multiboot_normal.c: Likewise.
26535
26536 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26537 attribute `unused'.
26538
26539 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26540 `fdiro' to read the mode information from instead of `diro'.
26541
26542 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26543 looking up a symlink.
26544
26545 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26546 macro.
26547 * normal/command.c (grub_command_execute): Don't parse the
26548 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26549 flags of the command.
26550
26551 * normal/menu.c (grub_menu_run): Fix typo.
26552
26553 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26554
26555 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26556
26557 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26558 `y + 1' instead of `y - 1'.
26559
26560 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26561
26562 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26563
26564 From Hollis Blanchard <hollis@penguinppc.org>:
26565 * kern/misc.c (memmove): New alias for grub_memmove.
26566 (memcmp): New alias for grub_memcmp.
26567 (memset): New alias for grub_memset.
26568 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26569 Change "int handle" to "grub_ieee1275_phandle_t handle".
26570 * include/grub/powerpc/ieee1275/ieee1275.h
26571 (grub_ieee1275_get_property): Likewise.
26572
26573 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26574
26575 Added normal mode command `chainloader' as module chain.mod, which
26576 depends on normal.mod and _chain.mod.
26577
26578 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26579 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26580 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26581 Deleted prototype.
26582 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26583 but arguments parsing moved to ...
26584 (grub_chainloader_cmd): ... here. New function.
26585 * include/grub/i386/pc/chainloader.h: New file.
26586 * loader/i386/pc/chainloader_normal.c: Likewise.
26587
26588 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26589
26590 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26591 (grub_mkimage_LDFLAGS): Likewise.
26592 (grub_emu_SOURCES): Likewise.
26593 (kernel_img_HEADERS): Added fshelp.h.
26594 * fs/ext2.c: Include <grub/fshelp.h>.
26595 (FILETYPE_REG): New macro.
26596 (FILETYPE_INO_REG): Likewise.
26597 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26598 Changed all users.
26599 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26600 all users.
26601 (grub_fshelp_node): New struct.
26602 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26603 to a pointer.
26604 (grub_ext2_get_file_block): Removed function.
26605 (grub_ext2_read_block): New function.
26606 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26607 This function was written.
26608 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26609 (grub_ext2_find_file): Removed function.
26610 (grub_ext2_read_symlink): New function.
26611 (grub_ext2_iterate_dir): Likewise.
26612 (grub_ext2_open): Rewritten.
26613 (grub_ext2_dir): Rewritten.
26614 * include/grub/fshelp.h: New file.
26615 * fs/fshelp.c: Likewise.
26616
26617 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26618
26619 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26620 (print_message): Add a missing newline.
26621 (run_menu): Added timeout support.
26622 (run_menu_entry): New local function.
26623 (grub_menu_run): Added support for booting.
26624
26625 * kern/loader.c (grub_loader_is_loaded): New function.
26626
26627 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26628 (grub_get_rtc): Exported.
26629
26630 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26631 (grub_get_rtc): Exported.
26632
26633 * include/grub/normal.h (struct grub_command_list): Remove
26634 constant from the member `command'.
26635
26636 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26637
26638 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26639
26640 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26641
26642 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26643
26644 Add support for the JFS filesystem.
26645
26646 * fs/jfs.c: New file.
26647 * include/grub/fs.h (grub_jfs_init): New prototype.
26648 (grub_jfs_fini): New prototype.
26649 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26650 (grub_emu_SOURCES): Likewise.
26651 (pkgdata_MODULES): Add jfs.mod.
26652 (jfs_mod_SOURCES): New variable.
26653 (jfs_mod_CFLAGS): Likewise.
26654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26655 (grubof_SOURCES): Likewise.
26656 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26657
26658 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26659 endian to the host endian.
26660 (grub_fat_utf16_to_utf8): Move function from there...
26661 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26662 the endianness of the source string anymore.
26663 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26664
26665 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26666
26667 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26668 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26669 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26670 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26671
26672 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26673 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26674 for `node_found' and `it_dir'.
26675 (grub_hfs_dir): Add prototype for `dir_hook'.
26676
26677 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26678 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26679 and `indir32' to silence a gcc warning.
26680
26681 * include/grub/fs.h (grub_hfs_init): New prototype.
26682 (grub_hfs_fini): Likewise.
26683
26684
26685 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26686
26687 Each disk device has its own id now. This is useful to make use
26688 of multiple disk devices.
26689
26690 * include/grub/disk.h (grub_disk_dev_id): New enum.
26691 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26692 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26693
26694 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26695 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26696
26697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26698 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26699
26700 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26701 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26702
26703 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26704 "id" which is used by the cache manager.
26705
26706 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26707 of just "GRUB".
26708
26709 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26710
26711 * fs/hfs.c: New file.
26712 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26713 (grub_emu_SOURCES): Likewise.
26714 (pkgdata_MODULES): Add hfs.mod.
26715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26716 (grubof_SOURCES): Likewise.
26717 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26718
26719 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26720 * kern/misc.c (grub_strncasecmp): Add function.
26721
26722 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26723
26724 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26725 with parentheses.
26726
26727 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26728 (grub_ext2_dir): In case the directory entry type is unknown, read
26729 it from the inode.
26730
26731 2004-08-02 Peter Bruin <pjbruin@dds.nl>
26732
26733 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26734 grub_load_linux instead of grub_rescue_cmd_linux as second
26735 argument of grub_rescue_register_command.
26736
26737 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26738
26739 2004-07-27 Marco Gerards <metgerards@student.han.nl>
26740
26741 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26742 function.
26743 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26744 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26745 `loader/powerpc/ieee1275/linux.c',
26746 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26747 * include/grub/powerpc/ieee1275/ieee1275.h
26748 (grub_ieee1275_release): New prototype.
26749 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26750 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26751 normal, boot, linux and linux_normal.
26752 * loader/powerpc/ieee1275/linux.c: New file.
26753 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26754
26755 2004-07-12 Marco Gerards <metgerards@student.han.nl>
26756
26757 * normal/arg.c (grub_arg_parse): Correct error handling after
26758 reallocating the argumentlist (check if `argl' is not null instead
26759 of checking if `args' is not null).
26760 * kern/mm.c (grub_realloc): Return the same pointer when using the
26761 same region, instead of returning the header address.
26762
26763 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26764
26765 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26766 one block instead of two when looking for the initial partition.
26767 (grub_partition_probe): Initialize the local variable `p' with 0.
26768 Use base 10 for the grub_strtoul call.
26769 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26770 need for one local variable.
26771 (grub_strtoul): Don't add the new value to `num', instead of that
26772 just assign it.
26773
26774 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26775
26776 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26777 (pxeboot_img_SOURCES): New variable.
26778 (pxeboot_img_ASFLAGS): Likewise.
26779 (pxeboot_img_LDFLAGS): Likewise.
26780 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26781 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26782 <lode_leroy@hotmail.com>.
26783
26784 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26785
26786 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26787 there was no input.
26788
26789 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26790
26791 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26792 the history buffer logic.
26793
26794 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26795
26796 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26797 (FILETYPE_INO_SYMLINK): New macros.
26798 (grub_ext2_find_file): Check if the node is a directory using the
26799 inode stat information instead of using the filetype in the
26800 dirent. Exclude the first character of an absolute symlink.
26801 (grub_ext2_dir): Mask out the filetype part of the mode member of
26802 the inode.
26803
26804 2004-05-24 Marco Gerards <metgerards@student.han.nl>
26805
26806 Add support for UFS version 1 and 2. Add support for the minix
26807 filesystem version 1 and 2, both the variants with 14 and 30 long
26808 filenames.
26809
26810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26811 fs/minix.c.
26812 (grub_emu_SOURCES): Likewise.
26813 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26814 (ufs_mod_SOURCES): New variable.
26815 (ufs_mod_CFLAGS): Likewise.
26816 (minix_mod_SOURCES): Likewise.
26817 (minix_mod_CFLAGS): Likewise.
26818 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26819 fs/minix.c.
26820 (grubof_SOURCES): Likewise.
26821 * fs/ufs.c: New file.
26822 * fs/minix.c: New file.
26823 * include/grub/fs.h (grub_ufs_init): New prototype.
26824 (grub_ufs_fini): Likewise.
26825 (grub_minix_init): Likewise.
26826 (grub_minix_fini): Likewise.
26827 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26828 minix fs.
26829
26830 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26831
26832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26833 commands/ls.c, commands/terminal.c, commands/boot.c,
26834 commands/cmp.c and commands/cat.c.
26835 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26836
26837 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26838 "env.h"
26839
26840 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26841
26842 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26843 and grub_, respectively. Because the conversion is trivial and
26844 mechanical, I omit the details here. Please refer to the CVS
26845 if you need more information.
26846
26847 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26848
26849 * include/pupa: Renamed to ...
26850 * include/grub: ... this.
26851 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26852 * util/i386/pc/grub-mkimage.c: ... this.
26853 * util/i386/pc/pupa-setup.c: Renamed to ...
26854 * util/i386/pc/grub-setup.c: ... this.
26855 * util/pupa-emu.c: Renamed to ...
26856 * util/grub-emu.c: ... this.
26857
26858 2004-03-29 Marco Gerards <metgerards@student.han.nl>
26859
26860 Add support for the newworld apple macintosh (PPC). This has been
26861 tested on the powerbook 2000 only. It only adds support for
26862 generic ieee1275 functions, console and disk support. This should
26863 be easy to port to other architectures with support for Open
26864 Firmware.
26865
26866 * configure.ac: Accept the powerpc as host_cpu. In the case of
26867 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26868 specific tests are only executed while building for the i386.
26869 Inverse test for crosscompile.
26870 * genmk.rb (Utility): Allow assembler files.
26871 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26872 * conf/powerpc-ieee1275.rmk: New file.
26873 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26874 * disk/powerpc/ieee1275/partition.c: Likewise.
26875 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26876 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26877 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26878 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26879 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26880 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26881 * include/pupa/powerpc/ieee1275/loader.h
26882 * include/pupa/powerpc/setjmp.h: Likewise.
26883 * include/pupa/powerpc/types.h: Likewise.
26884 * kern/powerpc/ieee1275/init.c: Likewise.
26885 * kern/powerpc/ieee1275/openfw.c: Likewise.
26886 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26887
26888 These files were written by Johan Rydberg
26889 (jrydberg@night.trouble.net) and I only modified them slightly.
26890
26891 * boot/powerpc/ieee1275/cmain.c: New file.
26892 * boot/powerpc/ieee1275/crt0.S: Likewise.
26893 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26894 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26895
26896 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26897
26898 * Makefile.in: Update copyright.
26899 * genmodsrc.sh: Likewise.
26900 * gensymlist.sh: Likewise.
26901 * term/i386/pc/vga.c: Indent correctly.
26902
26903 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26904 bugreporting address.
26905 * util/i386/pc/pupa-setup.c (usage): Likewise,
26906 (main): Call pupa_ext2_init and pupa_ext2_fini.
26907
26908 * fs/fat.c (log2): Renamed to ...
26909 (fat_log2): ... this.
26910 All callers changed.
26911 * kern/misc.c (memcpy): Alias to pupa_memmove.
26912 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26913 lvalue cast.
26914 * util/console.c (pupa_ncurses_fini): Return 0.
26915
26916 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26917 Move fail label here.
26918 [__GNU__]: Don't warn when using stat.
26919 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26920 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26921 long int. Use strtol instead of strtoul.
26922
26923 2004-03-14 Marco Gerards <metgerards@student.han.nl>
26924
26925 * commands/boot.c: New file.
26926 * commands/cat.c: Likewise.
26927 * commands/cmp.c: Likewise.
26928 * commands/ls.c: Likewise.
26929 * commands/terminal.c: Likewise.
26930 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26931 (pupa_register_command): Changed interface to match the new
26932 argument parser.
26933 (pupa_command_execute): Changed (almost rewritten) so it uses
26934 pupa_split_command. Added support for setting variables using the
26935 syntax `foo=bar'.
26936 (rescue_command): Changed to work with the new argument parser.
26937 (terminal_command): Moved from here to commands/terminal.c.
26938 (set_command): New function.
26939 (unset_command): New function.
26940 (insmod_command): New function.
26941 (rmmod_command): New function.
26942 (lsmod_command): New function.
26943 (pupa_command_init): Don't initialize the command terminal
26944 anymore. Initialize the commands set, unset, insmod, rmmod and
26945 lsmod.
26946 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
26947 (kernel_img_HEADERS): Add arg.h and env.h.
26948 (pupa_mkimage_LDFLAGS): Add kern/env.c.
26949 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
26950 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
26951 normal/arg.c.
26952 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
26953 terminal.mod.
26954 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
26955 (boot_mod_SOURCES): New variable.
26956 (terminal_mod_SOURCES): Likewise.
26957 (ls_mod_SOURCES): Likewise.
26958 (cmp_mod_SOURCES): Likewise.
26959 (cat_mod_SOURCES): Likewise.
26960
26961 * normal/arg.c: New file.
26962 * kern/env.c: Likewise.
26963 * include/pupa/arg.h: Likewise.
26964 * include/pupa/env.h: Likewise.
26965 * font/manager.c (font_command): Changed to match argument parsing
26966 interface changes.
26967 (PUPA_MOD_INIT): Likewise.
26968 * hello/hello.c (pupa_cmd_hello): Likewise.
26969 (PUPA_MOD_INIT): Likewise.
26970 * include/pupa/disk.h: Include <pupa/device.h>.
26971 (pupa_print_partinfo): New prototype.
26972 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
26973 (pupa_dl_get_prefix): Likewise.
26974 * include/pupa/misc.h: Include <pupa/err.h>.
26975 (pupa_isgraph): New prototype.
26976 (pupa_isdigit): Likewise.
26977 (pupa_split_cmdline): Likewise.
26978 * include/pupa/normal.h: Include <pupa/arg.h>.
26979 (pupa_command): Changed the prototype of the member `func' to
26980 match the argument parsing interface. Added member `options'.
26981 (pupa_register_command): Updated to match function.
26982 (pupa_arg_parse): New prototype.
26983 (pupa_hello_init) [PUPA_UTIL]: New prototype.
26984 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
26985 (pupa_ls_init) [PUPA_UTIL]: Likewise.
26986 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
26987 (pupa_cat_init) [PUPA_UTIL]: Likewise.
26988 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
26989 (pupa_boot_init) [PUPA_UTIL]: Likewise.
26990 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
26991 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
26992 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
26993 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
26994 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
26995 * kern/disk.c: Include <pupa/file.h>.
26996 (pupa_print_partinfo): New function.
26997 * kern/dl.c: Include <pupa/env.h>.
26998 (pupa_dl_dir): Variable removed.
26999 (pupa_dl_load): Use the environment variable `prefix' instead of
27000 the variable pupa_dl_dir.
27001 (pupa_dl_set_prefix): Function removed.
27002 (pupa_dl_get_prefix): Likewise.
27003 * kern/i386/pc/init.c: Include <pupa/env.h>.
27004 (pupa_machine_init): Use the environment variable `prefix' instead of
27005 using pupa_dl_set_prefix to set the prefix.
27006 * kern/main.c: Include <pupa/env.h>.
27007 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27008 using pupa_dl_get_prefix to get the prefix.
27009 * kern/misc.c: Include <pupa/env.h>.
27010 (pupa_isdigit): New function.
27011 (pupa_isgraph): Likewise.
27012 (pupa_ftoa): Likewise.
27013 (pupa_vsprintf): Added support for printing values of the type
27014 `double'. Make it possible to format variable output when using
27015 formatting like `%1.2%f'.
27016 (pupa_split_cmdline): New function.
27017 * kern/rescue.c: Include <pupa/env.h>.
27018 (next_word): Removed function.
27019 (pupa_rescue_cmd_prefix): Likewise.
27020 (pupa_rescue_cmd_set): New function.
27021 (pupa_rescue_cmd_unset): New function.
27022 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27023 split the command line instead of splitting it here. Added
27024 support for setting variables using the syntax `foo=bar'. Don't
27025 initialize the prefix command anymore. Initialized the set and
27026 unset commands.
27027 * normal/cmdline.c: Include <pupa/env.h>.
27028 (pupa_tab_complete): Added prototypes for print_simple_completion,
27029 print_partition_completion, add_completion, iterate_commands,
27030 iterate_dev, iterate_part and iterate_dir. Moved code to print
27031 partition information from here to kern/disk.c.
27032 (pupa_cmdline_run): Don't check if the function exists anymore.
27033 * normal/main.c: Include <pupa/env.h>.
27034 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27035 instead of using pupa_dl_get_prefix to get the prefix.
27036 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27037 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27038 warning.
27039 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27040 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27041 ((unused))' to silence a gcc warning.
27042 (pupa_vga_setcolor): Likewise.
27043 (debug_command): Changed to match argument parsing
27044 interface changes.
27045 * util/pupa-emu.c: Include <pupa/env.h>.
27046 (options): Added 0's for unused fields to silence a gcc warning.
27047 (argp): Likewise.
27048 (main): Use the environment variable `prefix' instead of using
27049 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27050 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27051 and terminal.
27052
27053 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27054 * util/misc.c: Include <malloc.h>.
27055 (pupa_malloc): Rewritten so errors are correctly reported.
27056 (pupa_realloc): Likewise.
27057 (pupa_memalign): Likewise.
27058 (pupa_mm_init_region): Declare unused variables with
27059 `__attribute__ ((unused))' to silence a gcc warning.
27060 * normal/i386/setjmp.S: Remove tab at the end of the file to
27061 silence a gcc warning.
27062 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27063 variables with `__attribute__ ((unused))' to silence a gcc
27064 warning.
27065 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27066 local variable i unsigned to silence a gcc warning.
27067
27068 * kern/term.c: Include <pupa/misc.h>.
27069 (pupa_more_lines): New variable.
27070 (pupa_more): Likewise.
27071 (pupa_putcode): When the pager is active pause at the end of every
27072 screen.
27073 (pupa_set_more): New function.
27074 * include/pupa/term.h (pupa_set_more): New prototype.
27075
27076
27077 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27078
27079 Now this project is GRUB 2 rather than PUPA. The location of
27080 the CVS repository was moved to GRUB's.
27081
27082 * configure.ac: Use bug-grub as the reporting address.
27083 Use GRUB instead of PUPA.
27084 Change the version number to 1.90.
27085
27086 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27087
27088 * genkernsyms.sh: Updated copyright information.
27089 * genmk.rb: Likewise.
27090 * genmodsrc.sh: Likewise.
27091 * gensymlist.sh: Likewise.
27092 * boot/i386/pc/boot.S: Likewise.
27093 * boot/i386/pc/diskboot.S: Likewise.
27094 * disk/i386/pc/biosdisk.c: Likewise.
27095 * disk/i386/pc/partition.c: Likewise.
27096 * font/manager.c: Likewise.
27097 * fs/ext2.c: Likewise.
27098 * fs/fat.c: Likewise.
27099 * include/pupa/boot.h: Likewise.
27100 * include/pupa/device.h: Likewise.
27101 * include/pupa/disk.h: Likewise.
27102 * include/pupa/dl.h: Likewise.
27103 * include/pupa/elf.h: Likewise.
27104 * include/pupa/err.h: Likewise.
27105 * include/pupa/file.h: Likewise.
27106 * include/pupa/font.h: Likewise.
27107 * include/pupa/fs.h: Likewise.
27108 * include/pupa/kernel.h: Likewise.
27109 * include/pupa/loader.h: Likewise.
27110 * include/pupa/misc.h: Likewise.
27111 * include/pupa/mm.h: Likewise.
27112 * include/pupa/net.h: Likewise.
27113 * include/pupa/normal.h: Likewise.
27114 * include/pupa/rescue.h: Likewise.
27115 * include/pupa/setjmp.h: Likewise.
27116 * include/pupa/symbol.h: Likewise.
27117 * include/pupa/term.h: Likewise.
27118 * include/pupa/types.h: Likewise.
27119 * include/pupa/i386/setjmp.h: Likewise.
27120 * include/pupa/i386/types.h: Likewise.
27121 * include/pupa/i386/pc/biosdisk.h: Likewise.
27122 * include/pupa/i386/pc/boot.h: Likewise.
27123 * include/pupa/i386/pc/console.h: Likewise.
27124 * include/pupa/i386/pc/init.h: Likewise.
27125 * include/pupa/i386/pc/kernel.h: Likewise.
27126 * include/pupa/i386/pc/linux.h: Likewise.
27127 * include/pupa/i386/pc/loader.h: Likewise.
27128 * include/pupa/i386/pc/memory.h: Likewise.
27129 * include/pupa/i386/pc/multiboot.h: Likewise.
27130 * include/pupa/i386/pc/partition.h: Likewise.
27131 * include/pupa/i386/pc/time.h: Likewise.
27132 * include/pupa/i386/pc/vga.h: Likewise.
27133 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27134 * include/pupa/util/getroot.h: Likewise.
27135 * include/pupa/util/misc.h: Likewise.
27136 * include/pupa/util/resolve.h: Likewise.
27137 * kern/device.c: Likewise.
27138 * kern/disk.c: Likewise.
27139 * kern/dl.c: Likewise.
27140 * kern/err.c: Likewise.
27141 * kern/file.c: Likewise.
27142 * kern/fs.c: Likewise.
27143 * kern/loader.c: Likewise.
27144 * kern/main.c: Likewise.
27145 * kern/misc.c: Likewise.
27146 * kern/mm.c: Likewise.
27147 * kern/rescue.c: Likewise.
27148 * kern/term.c: Likewise.
27149 * kern/i386/dl.c: Likewise.
27150 * kern/i386/pc/init.c: Likewise.
27151 * kern/i386/pc/lzo1x.S: Likewise.
27152 * kern/i386/pc/startup.S: Likewise.
27153 * loader/i386/pc/chainloader.c: Likewise.
27154 * loader/i386/pc/linux.c: Likewise.
27155 * loader/i386/pc/multiboot.c: Likewise.
27156 * normal/cmdline.c: Likewise.
27157 * normal/command.c: Likewise.
27158 * normal/main.c: Likewise.
27159 * normal/menu.c: Likewise.
27160 * normal/i386/setjmp.S: Likewise.
27161 * term/i386/pc/console.c: Likewise.
27162 * term/i386/pc/vga.c: Likewise.
27163 * util/console.c: Likewise.
27164 * util/genmoddep.c: Likewise.
27165 * util/misc.c: Likewise.
27166 * util/pupa-emu.c: Likewise.
27167 * util/resolve.c: Likewise.
27168 * util/unifont2pff.rb: Likewise.
27169 * util/i386/pc/biosdisk.c: Likewise.
27170 * util/i386/pc/getroot.c: Likewise.
27171 * util/i386/pc/pupa-mkimage.c: Likewise.
27172 * util/i386/pc/pupa-setup.c: Likewise.
27173
27174 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27175
27176 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27177 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27178 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27179 reading and reset it after reading.
27180 (pupa_ext2_close): Return PUPA_ERR_NONE.
27181
27182 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27183 Correct value.
27184 (struct linux_kernel_header): Add kernel_version and
27185 initrd_addr_max.
27186 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27187 pupa_file_read succeeds.
27188 (pupa_rescue_cmd_initrd): Implement.
27189
27190 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27191
27192 * fs/ext2.c (pupa_ext2_label): New function.
27193 (pupa_ext2_fs): Added label.
27194 * fs/fat.c (pupa_fat_label): New function.
27195 (pupa_fat_fs): Added label.
27196 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27197
27198 * kern/misc.c (pupa_strndup): New function.
27199 * include/pupa/misc.h (pupa_strndup): New prototype.
27200
27201 * include/pupa/normal.h: Include <pupa/err.h>.
27202 (pupa_set_history): New prototype.
27203 (pupa_iterate_commands): New prototype.
27204 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27205 <pupa/disk.h>, <pupa/file.h>.
27206 (hist_size): New variable.
27207 (hist_lines): Likewise.
27208 (hist_end): Likewise.
27209 (hist_used): Likewise.
27210 (pupa_set_history): New function.
27211 (pupa_history_get): Likewise.
27212 (pupa_history_add): Likewise.
27213 (pupa_history_replace): Likewise.
27214 (pupa_tab_complete): Likewise.
27215 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27216 completion shows partitionnames while completing partitions, this
27217 feature was suggested by Jeff Bailey.
27218 * normal/command.c (pupa_iterate_commands): New function.
27219 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27220 (pupa_normal_init): Initialize history buffer.
27221 (PUPA_MOD_INIT): Likewise.
27222 (pupa_normal_fini): Free the history buffer.
27223 (PUPA_MOD_FINI): Likewise.
27224
27225 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27226 key.
27227
27228 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27229 * configure.ac [i386]: Check for regparam bug.
27230 (NESTED_FUNC_ATTR) [! i386]: Defined.
27231
27232 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27233
27234 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27235 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27236 (pupa_emu_SOURCES): New variable.
27237 (pupa_emu_LDFLAGS): Likewise.
27238 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27239 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27240 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27241 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27242 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27243 (pupa_jmp_buf): New typedef.
27244 (pupa_setjmp) [PUPA_UTIL]: New macro.
27245 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27246 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27247 (pupa_refresh): New prototype.
27248 * include/pupa/util/getroot.h: New file.
27249 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27250 it.
27251 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27252 (pupa_rescue_cmd_cat): Likewise.
27253 (pupa_rescue_cmd_ls): Likewise.
27254 (pupa_rescue_cmd_testload): Likewise.
27255 (pupa_rescue_cmd_lsmod): Likewise.
27256 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27257 * normal/menu.c (run_menu): Likewise.
27258 * kern/term.c (pupa_cls): Likewise.
27259 (pupa_refresh): New function.
27260 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27261 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27262 * util/console.c: New file.
27263
27264 * util/i386/pc/getroot.c: New file.
27265 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27266 (pupa_putchar): New function.
27267 (pupa_refresh): Likewise.
27268 (xgetcwd): Function moved to ...
27269 (strip_extra_slashes): Likewise.
27270 (get_prefix): Likewise.
27271 * util/i386/pc/getroot.c: ... here.
27272 (find_root_device): Function moved and renamed to...
27273 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27274 Changed all callers.
27275 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27276 and renamed to...
27277 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27278 Changed all callers.
27279 * util/misc.c (pupa_memalign): New function.
27280 (pupa_mm_init_region): Likewise.
27281 (pupa_register_exported_symbols): Likewise.
27282 (pupa_putchar): Function removed.
27283 * util/pupa-emu.c: New file.
27284
27285 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27286
27287 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27288 (_multiboot_mod_SOURCES): New variable.
27289 (_multiboot_mod_CFLAGS): Likewise.
27290 * loader/i386/pc/multiboot.c: New file.
27291 * include/pupa/i386/pc/multiboot.h: Likewise.
27292 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27293 (pupa_multiboot_real_boot): New function.
27294 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27295 (pupa_multiboot_real_boot): New prototype.
27296 (pupa_rescue_cmd_multiboot): Likewise
27297 (pupa_rescue_cmd_module): Likewise.
27298
27299 * kern/loader.c (pupa_loader_set): Continue when
27300 pupa_loader_unload_func() fails.
27301 (pupa_loader_unset): New function.
27302 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27303
27304 * kern/misc.c (pupa_stpcpy): New function.
27305 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27306
27307 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27308
27309 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27310 for available extensions.
27311
27312 * include/pupa/i386/pc/time.h: New file.
27313 * kern/disk.c: Include <pupa/machine/time.h>.
27314 (PUPA_CACHE_TIMEOUT): New macro.
27315 (pupa_last_time): New variable.
27316 (pupa_disk_open): Flush the cache when there was a timeout.
27317 (pupa_disk_close): Reset the timer.
27318 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27319 pupa_currticks.
27320 * util/misc.c: Include <sys/times.h>
27321 (pupa_get_rtc): New function.
27322
27323 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27324
27325 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27326 as blocks.
27327 (pupa_ext2_get_file_block): Use blocks member.
27328
27329 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27330 first block. Return -1 instead of pupa_errno on error.
27331
27332 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27333
27334 * README: In the pupa-mkimage example use _chain instead of chain
27335 and ext2 instead of fat.
27336 * TODO: Replace ext2fs with jfs as an example. Add an item for
27337 adding journal playback for ext2fs.
27338 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27339 (pkgdata_MODULES): Added ext2.mod.
27340 (ext2_mod_SOURCES): New variable.
27341 (ext2_mod_CFLAGS): Likewise.
27342 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27343 * include/pupa/misc.h (pupa_strncpy): New prototype.
27344 (pupa_strcat): Likewise.
27345 (pupa_strncmp): Likewise.
27346 * kern/misc.c (pupa_strcat): Enable function.
27347 (pupa_strncpy): New function.
27348 (pupa_strncmp): Likewise.
27349 * fs/ext2.c: New file.
27350
27351 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27352 when the read failed before retrying.
27353 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27354 (_FILE_OFFSET_BITS): Likewise.
27355 * configure.ac: Added AC_SYS_LARGEFILE.
27356
27357 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27358
27359 * genmk.rb (PModule#rule): Make sure to get only symbol names
27360 from the output of nm.
27361 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27362
27363 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27364
27365 I forgot to check in these changes for a long time. This adds
27366 incomplete support for VGA console, and this is still very
27367 buggy. Also, a lot of consideration is required for I18N,
27368 UNICODE, and VGA font issues. Therefore, assume that this is
27369 such that "better than nothing".
27370
27371 * font/manager.c: New file.
27372 * include/pupa/font.h: Likewise.
27373 * include/pupa/i386/pc/vga.h: Likewise.
27374 * term/i386/pc/vga.c: Likewise.
27375 * util/unifont2pff.rb: Likewise.
27376
27377 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27378 (pkgdata_MODULES): Added vga.mod and font.mod.
27379 (vga_mod_SOURCES): New variables.
27380 (vga_mod_CFLAGS): Likewise.
27381 (font_mod_SOURCES): Likewise.
27382 (font_mod_CFLAGS): Likewise.
27383
27384 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27385
27386 * include/pupa/term.h: Include pupa/err.h.
27387 (struct pupa_term): Added init and fini.
27388 Changed the argument of putchar to pupa_uint32_t.
27389
27390 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27391 (pupa_console_real_putchar): New prototype.
27392 (pupa_console_putchar): Removed.
27393 (pupa_console_checkkey): Exported.
27394 (pupa_console_getkey): Likewise.
27395
27396 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27397 characters.
27398
27399 * kern/term.c (pupa_term_set_current): Rewritten.
27400 (pupa_putchar): Likewise.
27401 (pupa_putcode): New function.
27402
27403 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27404 (pupa_console_real_putchar): ... this.
27405 (pupa_vga_set_mode): New function.
27406 (pupa_vga_get_font): Likewise.
27407
27408 * normal/command.c: Include pupa/term.h.
27409 (terminal_command): New function.
27410 (pupa_command_init): Register the command "terminal".
27411
27412 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27413 (DISP_UP): Likewise.
27414 (DISP_RIGHT): Likewise.
27415 (DISP_DOWN): Likewise.
27416 (DISP_HLINE): Likewise.
27417 (DISP_VLINE): Likewise.
27418 (DISP_UL): Likewise.
27419 (DISP_UR): Likewise.
27420 (DISP_LL): Likewise.
27421 (DISP_LR): Likewise.
27422
27423 * term/i386/pc/console.c (pupa_console_putchar): New function.
27424
27425 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27426
27427 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27428 FIX. Reverse the path_list.
27429
27430 * include/pupa/normal.h: Export pupa_register_command and
27431 pupa_unregister_command.
27432
27433 * hello/hello.c (pupa_cmd_hello): New module.
27434 * conf/i386-pc.rmk: Added hello.mod.
27435
27436 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27437
27438 * kern/i386/pc/lzo1x.S: New file.
27439
27440 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27441 (compress_kernel): New variable.
27442 (generate_image): Heavily modified to support compressing a
27443 large part of the core image.
27444
27445 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27446 leak.
27447 (pupa_util_load_image): New function.
27448
27449 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27450 (pupa_compressed_size): New variable.
27451 (codestart): Enable Gate A20 here.
27452 Decompress the compressed part of the core image.
27453 Rearrange the code to put functions and variables which are
27454 required for initialization in the non-compressed part.
27455 Include lzo1x.S.
27456
27457 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27458 here.
27459
27460 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27461
27462 * include/pupa/i386/pc/kernel.h
27463 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27464 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27465 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27466 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27467 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27468
27469 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27470
27471 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27472 (Utility#rule): Likewise.
27473
27474 * configure.ac: Check if LZO is available.
27475
27476 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27477
27478 * include/pupa/normal.h: New file.
27479 * include/pupa/setjmp.h: Likewise.
27480 * include/pupa/i386/setjmp.h: Likewise.
27481 * normal/cmdline.c: Likewise.
27482 * normal/command.c: Likewise.
27483 * normal/main.c: Likewise.
27484 * normal/menu.c: Likewise.
27485 * normal/i386/setjmp.S: Likewise.
27486
27487 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27488 (pupa_rescue_cmd_initrd): Likewise.
27489
27490 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27491 Likewise.
27492
27493 * kern/i386/pc/startup.S (translation_table): New variable.
27494 (translate_keycode): New function.
27495 (pupa_console_getkey): Call translate_keycode.
27496
27497 * kern/rescue.c (attempt_normal_mode): New function.
27498 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27499 it failed, print a message.
27500
27501 * kern/mm.c (pupa_real_malloc): Print more information when a
27502 free magic is broken.
27503 (pupa_free): If the first free header is not free actually, set
27504 it to P.
27505
27506 * kern/main.c (pupa_load_normal_mode): Just load the module
27507 "normal".
27508 (pupa_main): Don't print the message
27509 "Entering into rescue mode..." here.
27510
27511 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27512 Declared.
27513 (pupa_rescue_cmd_initrd): Likewise.
27514 (pupa_rescue_cmd_initrd): Likewise.
27515
27516 * include/pupa/symbol.h (FUNCTION): Specify the type.
27517 (VARIABLE): Likewise.
27518
27519 * include/pupa/err.h (pupa_err_t): Added
27520 PUPA_ERR_UNKNOWN_COMMAND.
27521
27522 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27523 (pupa_dl_get_prefix): Likewise.
27524
27525 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27526 Added _chain.mod and _linux.mod instead of chain.mod and
27527 linux.mod.
27528 (chain_mod_SOURCES): Renamed to ...
27529 (_chain_mod_SOURCES): ... this.
27530 (chain_mod_CFLAGS): Renamed to ...
27531 (_chain_mod_CFLAGS): ... this.
27532 (linux_mod_SOURCES): Renamed to ...
27533 (_linux_mod_SOURCES): ... this.
27534 (linux_mod_CFLAGS): Renamed to ...
27535 (_linux_mod_CFLAGS): ... this.
27536 (normal_mod_SOURCES): New variable.
27537 (normal_mod_CFLAGS): Likewise.
27538 (normal_mod_ASFLAGS): Likewise.
27539
27540 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27541
27542 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27543 possible.
27544
27545 * kern/dl.c (pupa_dl_ref): Refer depending modules
27546 recursively.
27547 (pupa_dl_unref): Unrefer depending modules recursively.
27548 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27549 a module is unloaded before one depending on that module is
27550 unloaded.
27551 (pupa_dl_unload): Unload depending modules explicitly,
27552 if possible.
27553
27554 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27555
27556 * include/pupa/i386/pc/linux.h: New file.
27557 * loader/i386/pc/linux.c: Likewise.
27558
27559 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27560 Removed.
27561 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27562 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27563 of PUPA_CHAINLOADER_BOOT_SECTOR.
27564
27565 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27566 (pupa_linux_prot_size): New variable.
27567 (pupa_linux_tmp_addr): Likewise.
27568 (pupa_linux_real_addr): Likewise.
27569 (pupa_linux_boot_zimage): New function.
27570 (pupa_linux_boot_bzimage): Likewise.
27571
27572 * kern/i386/pc/init.c (struct mem_region): New structure.
27573 (MAX_REGIONS): New macro.
27574 (mem_regions): New variable.
27575 (num_regions): Likewise.
27576 (pupa_os_area_addr): Likewise.
27577 (pupa_os_area_size): Likewise.
27578 (pupa_lower_mem): Likewise.
27579 (pupa_upper_mem): Likewise.
27580 (add_mem_region): New function.
27581 (compact_mem_regions): Likewise.
27582 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27583 the size of the conventional memory and that of so-called upper
27584 memory (before the first memory hole).
27585 Instead of adding each found region to free memory, use
27586 add_mem_region and add them after removing overlaps.
27587 Also, add only 1/4 of the upper memory to free memory. The rest
27588 is used for loading OS images. Maybe this is ad hoc, but this
27589 makes it much easier to relocate OS images when booting.
27590
27591 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27592 (pupa_enter_rescue_mode): Don't register initrd and module.
27593
27594 * kern/mm.c: Include pupa/dl.h.
27595
27596 * kern/main.c: Include pupa/file.h and pupa/device.h.
27597
27598 * kern/loader.c (pupa_loader_load_module_func): Removed.
27599 (pupa_loader_load_module): Likewise.
27600
27601 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27602 ``.o''.
27603
27604 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27605 (pupa_linux_tmp_addr): Likewise.
27606 (pupa_linux_real_addr): Likewise.
27607 (pupa_linux_boot_zimage): Likewise.
27608 (pupa_linux_boot_bzimage): Likewise.
27609
27610 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27611 (pupa_upper_mem): Likewise.
27612 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27613 module is too dangerous.
27614
27615 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27616 (pupa_os_area_size): Likewise.
27617 (pupa_loader_set): Remove the first argument. Loader doesn't
27618 manage modules or initrd any longer.
27619 (pupa_loader_load_module): Removed.
27620
27621 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27622 (linux_mod_SOURCES): New variable.
27623 (linux_mod_CFLAGS): Likewise.
27624
27625 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27626
27627 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27628 the length of a blocklist correctly.
27629
27630 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27631 Use ioctl only if the OS file is a block device.
27632 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27633 not very useful for normal files.
27634
27635 * kern/main.c (pupa_set_root_dev): New function.
27636 (pupa_load_normal_mode): Likewise.
27637 (pupa_main): Call those above.
27638
27639 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27640 pupa_uint16_t.
27641
27642 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27643
27644 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27645
27646 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27647 (setup): Configure the installed partition information and the
27648 dl prefix.
27649
27650 * loader/i386/pc/chainloader.c (my_mod): New variable.
27651 (pupa_chainloader_unload): New function.
27652 (pupa_rescue_cmd_chainloader): Refer itself.
27653 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27654
27655 * kern/i386/pc/startup.S (install_partition): Removed.
27656 (version_string): Likewise.
27657 (config_file): Likewise.
27658 (pupa_install_dos_part): New variable.
27659 (pupa_install_bsd_part): Likewise.
27660 (pupa_prefix): Likewise.
27661 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27662
27663 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27664 and pupa/misc.h.
27665 (make_install_device): New function.
27666 (pupa_machine_init): Set the dl prefix.
27667
27668 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27669 (buf): Renamed to ...
27670 (linebuf): ... this.
27671 (pupa_rescue_cmd_prefix): New function.
27672 (pupa_rescue_cmd_insmod): Likewise.
27673 (pupa_rescue_cmd_rmmod): Likewise.
27674 (pupa_rescue_cmd_lsmod): Likewise.
27675 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27676 rmmod and lsmod.
27677
27678 * kern/mm.c (pupa_memalign): If failed even after invalidating
27679 disk caches, unload unneeded modules and retry.
27680
27681 * kern/misc.c (pupa_memmove): New function.
27682 (pupa_memcpy): Removed.
27683 (pupa_strcpy): New function.
27684 (pupa_itoa): Made static.
27685
27686 * kern/dl.c (pupa_dl_iterate): New function.
27687 (pupa_dl_ref): Likewise.
27688 (pupa_dl_unref): Likewise.
27689 (pupa_dl_unload): Return if succeeded or not.
27690 (pupa_dl_unload_unneeded): New function.
27691 (pupa_dl_unload_all): Likewise.
27692 (pupa_dl_init): Renamed to ...
27693 (pupa_dl_set_prefix): ... this.
27694 (pupa_dl_get_prefix): New function.
27695
27696 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27697 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27698 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27699 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27700 (pupa_install_dos_part): Declared.
27701 (pupa_install_bsd_part): Likewise.
27702 (pupa_prefix): Likewise.
27703 (pupa_boot_drive): Likewise.
27704
27705 * include/pupa/types.h: Fix a typo.
27706
27707 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27708 pupa_memmove.
27709 (pupa_memmove): Declared.
27710 (pupa_strcpy): Likewise.
27711
27712 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27713 pupa_mod_init takes one argument, its own module.
27714 (pupa_dl_unload_unneeded): Declared.
27715 (pupa_dl_unload_all): Likewise.
27716 (pupa_dl_ref): Likewise.
27717 (pupa_dl_unref): Likewise.
27718 (pupa_dl_iterate): Likewise.
27719 (pupa_dl_init): Renamed to ...
27720 (pupa_dl_set_prefix): ... this.
27721 (pupa_dl_get_prefix): Declared.
27722
27723 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27724 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27725 unloaded.
27726 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27727 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27728
27729 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27730 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27731
27732 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27733
27734 * util/i386/pc/pupa-setup.c (setup): Define the internal
27735 function find_first_partition_start at the top level, because GCC
27736 3.0.x cannot compile internal functions in deeper scopes
27737 correctly.
27738 (find_root_device): Use lstat instead of stat.
27739 Don't follow symbolic links.
27740 Fix the path-constructing code.
27741
27742 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27743 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27744 by a BLKGETSIZE ioctl first, because block devices don't fill
27745 the member st_mode of the structure stat on Linux.
27746 [__linux__] (linux_find_partition): Use a temporary buffer
27747 REAL_DEV for the working space. Copy it to DEV before returning.
27748 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27749 buffer cache consistent.
27750 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27751 strncmp. The previous value was merely wrong.
27752 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27753
27754 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27755 FAT size is 12. The previous value was merely wrong.
27756
27757 * kern/main.c (pupa_main): Don't split the starting message from
27758 newlines.
27759
27760 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27761 LF, because BIOS goes crazy about character attributes in this
27762 case.
27763
27764 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27765
27766 * include/i386/pc/util/biosdisk.h: New file.
27767 * util/i386/pc/biosdisk.c: Likewise.
27768 * util/i386/pc/pupa-setup.c: Likewise.
27769
27770 * Makefile.in (INCLUDE_DISTFILES): Added
27771 include/pupa/i386/pc/util/biosdisk.h.
27772 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27773 directory util/i386/pc.
27774 (install-local): Added a rule for sbin_UTILITIES.
27775 (uninstall): Likewise.
27776
27777 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27778
27779 * util/misc.c (xrealloc): New function.
27780 (pupa_malloc): Likewise.
27781 (pupa_free): Likewise.
27782 (pupa_realloc): Likewise.
27783 (pupa_stop): Likewise.
27784 (pupa_putchar): Likewise.
27785
27786 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27787
27788 * include/pupa/util/misc.h (xrealloc): Declared.
27789
27790 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27791 macro.
27792 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27793 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27794
27795 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27796 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27797
27798 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27799 way should be implemented.
27800 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27801
27802 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27803 the size of NAME for safety.
27804 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27805 0x88.
27806
27807 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27808 (pupa_setup_SOURCES): Likewise.
27809
27810 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27811
27812 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27813
27814 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27815 bunch of pushl's from pusha, because this destroys the return
27816 value.
27817
27818 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27819
27820 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27821 This means that any missing prototypes could be fatal. Also, you
27822 must take care when writing assembly code. See the comments at
27823 the beginning of startup.S, for more details.
27824
27825 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27826 compilation mechanism.
27827 (pupa_chainloader_real_boot): Likewise.
27828 (pupa_biosdisk_rw_int13_extensions): Likewise.
27829 (pupa_biosdisk_rw_standard): Likewise.
27830 (pupa_biosdisk_check_int13_extensions): Likewise.
27831 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27832 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27833 (pupa_get_memsize): Likewise.
27834 (pupa_get_mmap_entry): Likewise.
27835 (pupa_console_putchar): Likewise.
27836 (pupa_console_setcursor): Likewise.
27837 (pupa_getrtsecs): Use pushl instead of push.
27838
27839 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27840 memory instead of the stack for a mmap entry, because some
27841 BIOSes may ignore the maximum size and overflow.
27842
27843 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27844
27845 * genmk.rb (PModule#rule): Compile automatically generated
27846 sources with module-specific CFLAGS as well as other sources.
27847
27848 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27849
27850 * configure.ac: Check ld.
27851 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27852 respectively, before checking endianness and sizes.
27853
27854 * Makefile.in (LD): New variable.
27855
27856 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27857
27858 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27859
27860 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27861
27862 * Changelog: New file.
27863