]> git.proxmox.com Git - grub2.git/blob - ChangeLog
better line wrapping
[grub2.git] / ChangeLog
1 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2
3 GRUB shell lexer and parser improvements.
4
5 * conf/any-emu.rmk: Build rule updates.
6 * conf/common.rmk: Likewise.
7 * conf/i386-coreboot.rmk: Likewise.
8 * conf/i386-efi.rmk: Likewise.
9 * conf/i386-ieee1275.rmk: Likewise.
10 * conf/i386-pc.rmk: Likewise.
11 * conf/powerpc-ieee1275.rmk: Likewise.
12 * conf/x86_64-efi.rmk: Likewise.
13
14 * configure.ac: Configure check for flex.
15
16 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
17 types.
18 (grub_lexer_param): Struct member updates.
19 (grub_parser_param): Likewise.
20 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
21 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22 (grub_script_lexer_init): Prototype update.
23 (grub_script_lexer_record_start): Likewise.
24 (grub_script_lexer_record_stop): Likewise.
25 (grub_script_lexer_yywrap): New function prototype.
26 (grub_script_lexer_fini): Likewise.
27 (grub_script_execute_argument_to_string): Removed by...
28 (grub_script_execute_argument_to_argv): ...better version.
29
30 * script/execute.c (ROUND_UPTO): New macro.
31 (grub_script_execute_cmdline): Out of memory fixes.
32 (grub_script_execute_menuentry): Likewise.
33 (grub_script_execute_argument_to_string): Removed. Update all
34 users by...
35 (grub_script_execute_argument_to_argv): ...better version.
36 * script/function.c (grub_script_function_create): Use
37 grub_script_execute_argument_to_argv instead of
38 grub_script_execute_argument_to_string.
39
40 * script/lexer.c (check_varstate): Removed.
41 (check_textstate): Removed.
42 (grub_script_lexer_record_start): Likewise.
43 (grub_script_lexer_record_stop): Likewise.
44 (recordchar): Replaced with...
45 (grub_script_lexer_record): ...new function.
46 (nextchar): Removed.
47 (grub_script_lexer_init): Rewritten.
48 (grub_script_yylex): Rewritten.
49 (append_newline): New function.
50 (grub_script_lexer_yywrap): New function.
51 (grub_script_lexer_fini): New function.
52 (grub_script_yyerror): Sets error flag.
53
54 * script/yylex.l: New file.
55 (grub_lexer_yyfree): Wrapper for flex yyffre.
56 (grub_lexer_yyalloc): Likewise.
57 (grub_lexer_yyrealloc): Likewise.
58 * script/parser.y: Refactored.
59
60 * script/script.c (grub_script_arg_add): Out of memory fixes.
61 (grub_script_add_arglist): Likewise.
62 (grub_script_create_cmdline): Likewise.
63 (grub_script_create_cmdmenu): Likewise.
64 (grub_script_add_cmd): Likewise.
65 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
66 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
67 unnecessary code.
68
69 * tests/grub_script_echo1.in: New testcase.
70 * tests/grub_script_vars1.in: New testcase.
71 * tests/grub_script_echo_keywords.in: New testcase.
72
73 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
74
75 Remove some redundancy in build system.
76
77 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
78 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
79 (TARGET_LDFLAGS): Add -nostdlib.
80 (TARGET_IMG_LDFLAGS): Likewise.
81 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
82 anything since mmap isn't available.
83 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
84 Add util/time.c.
85 (pkglib_MODULES): Remove reboot.mod.
86 (reboot_mod_SOURCES): Removed.
87 (reboot_mod_CFLAGS): Likewise.
88 (reboot_mod_LDFLAGS): Likewise.
89 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
90 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
91 (DEFSYMFILES): Add kernel_syms.lst.
92 (kernel_img_HEADERS): Add common headers.
93 (symlist.c): New target.
94 (kernel_syms.lst): Likewise.
95 (pkglib_MODULES): Add memdisk.mod.
96 (memdisk_mod_SOURCES): New variable.
97 (memdisk_mod_CFLAGS): Likewise.
98 (memdisk_mod_LDFLAGS): Likewise.
99 (pkglib_MODULES): Add reboot.mod.
100 (reboot_mod_SOURCES): New variable.
101 (reboot_mod_CFLAGS): Likewise.
102 (reboot_mod_LDFLAGS): Likewise.
103 (pkglib_MODULES): Add date.mod.
104 (date_mod_SOURCES): New variable.
105 (date_mod_CFLAGS): Likewise.
106 (date_mod_LDFLAGS): Likewise.
107 (pkglib_MODULES): Add datehook.mod.
108 (datehook_mod_SOURCES): New variable.
109 (datehook_mod_CFLAGS): Likewise.
110 (datehook_mod_LDFLAGS): Likewise.
111 (pkglib_MODULES): Add lsmmap.mod.
112 (lsmmap_mod_SOURCES): New variable.
113 (lsmmap_mod_CFLAGS): Likewise.
114 (lsmmap_mod_LDFLAGS): Likewise.
115 (pkglib_MODULES): Add boot.mod.
116 (boot_mod_SOURCES): New variable.
117 (boot_mod_CFLAGS): Likewise.
118 (boot_mod_LDFLAGS): Likewise.
119 * conf/i386-coreboot.rmk: Removed redundant parts.
120 * conf/i386-ieee1275.rmk: Likewise.
121 * conf/i386-pc.rmk: Likewise.
122 * conf/mips-yeeloong.rmk: Likewise.
123 * conf/mips.rmk: Likewise.
124 * conf/powerpc-ieee1275.rmk: Likewise.
125 * conf/sparc64-ieee1275.rmk: Likewise.
126 * conf/x86_64-efi.rmk: Likewise.
127 * conf/i386-coreboot.rmk: Moved qemu parts ..
128 * conf/i386-qemu.rmk: ... here
129 * conf/i386-efi.rmk: Moved common parts to...
130 * conf/x86-efi.rmk: ... here.
131 * conf/i386.rmk: Added modules common to all x86 variants.
132 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
133 * disk/memdisk.c: Remove grub/machine/kernel.h.
134 * gensymlist.sh.in: Include symbol.h.
135 * hook/datehook.c: Correct module name.
136 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
137 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
138 * include/grub/i386/efi/serial.h: New file.
139 * include/grub/x86_64/efi/serial.h: Likewise.
140 * util/time.c: Likewise.
141 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
142
143 2010-03-14 Colin King <colin.king@ubuntu.com>
144 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
145
146 Shrink the pre-partition-table part of boot.img by eight bytes.
147
148 * boot/i386/pc/boot.S (ERR): New macro.
149 (chs_mode): Use ERR.
150 (geometry_error): Likewise.
151 (hd_probe_error): Remove. This is only used once, so we wrwite
152 it inline instead.
153 (read_error): Instead of printing read_error_string, just set up
154 %si and fall through to ...
155 (error_message): ... this new function, also used by ERR.
156
157 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
158
159 Speed up consecutive hostdisk operations on the same device.
160
161 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
162 (grub_util_biosdisk_open): Initialise disk->data.
163 (struct linux_partition_cache): New structure.
164 (linux_find_partition): Cache partition start positions; these are
165 expensive to compute on every read and write.
166 (open_device): Cache open file descriptor in disk->data, so that we
167 don't have to reopen it and flush the buffer cache for consecutive
168 operations on the same device.
169 (grub_util_biosdisk_close): New function.
170 (grub_util_biosdisk_dev): Set `close' member.
171
172 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
173 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
174 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
175 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
176 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
177
178 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
179
180 Compile parts of grub-emu as modules.
181
182 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
183 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
184 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
185 (all-local): Add $(GRUB_EMU).
186 (install-local): Install $(GRUB_EMU).
187 (uninstall): Uninstall $(GRUB_EMU).
188 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
189 * kern/dl.c: Likewise.
190 * commands/sleep.c: Not include machine/time.h.
191 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
192 (COMMON_CFLAGS): Likewise.
193 (sbin_UTILITIES): Remove grub-emu.
194 (grub_emu_SOURCES): Removed.
195 (kernel_img_RELOCATABLE): New variable.
196 (pkglib_PROGRAMS): Add kernel.img.
197 (kernel_img_SOURCES): New variable
198 (kernel_img_CFLAGS): Likewise.
199 (kernel_img_LDFLAGS): Likewise.
200 (TARGET_NO_STRIP): Likewise.
201 (TARGET_NO_DYNAMIC_MODULES): Likewise.
202 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
203 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
204 (grub-emu): New target.
205 (GRUB_EMU): New variable.
206 * configure.ac: Whitelist -emu as possible x86_64 architecture.
207 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
208 * loader/xnu.c: Likewise.
209 * include/grub/pci.h: Likewise.
210 * genemuinit.sh: New file.
211 * genemuinitheader.sh: Likewise.
212 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
213 Support TARGET_NO_DYNAMIC_MODULES.
214 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
215 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
216 * disk/loopback.c: Likewise.
217 * font/font_cmd.c: Likewise.
218 * partmap/acorn.c: Likewise.
219 * partmap/amiga.c: Likewise.
220 * partmap/apple.c: Likewise.
221 * partmap/gpt.c: Likewise.
222 * partmap/msdos.c: Likewise.
223 * partmap/sun.c: Likewise.
224 * parttool/msdospart.c: Likewise.
225 * term/gfxterm.c: Likewise.
226 * video/bitmap.c: Likewise.
227 * video/readers/jpeg.c: Likewise.
228 * video/readers/png.c: Likewise.
229 * video/readers/tga.c: Likewise.
230 * video/video.c: Likewise.
231 * util/grub-emu.c (read_command_list): Removed.
232 (main): Don't call util_init_nls.
233 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
234 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
235
236 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
239 date.mod, datehook.mod.
240 (datetime_mod_SOURCES): New variable.
241 (datetime_mod_CFLAGS): Likewise.
242 (datetime_mod_LDFLAGS): Likewise.
243 (date_mod_SOURCES): Likewise.
244 (date_mod_CFLAGS): Likewise.
245 (date_mod_LDFLAGS): Likewise.
246 (datehook_mod_SOURCES): Likewise.
247 (datehook_mod_CFLAGS): Likewise.
248 (datehook_mod_LDFLAGS): Likewise.
249 * conf/sparc64-ieee1275.rmk: Likewise.
250 * lib/ieee1275/datetime.c: New file.
251
252 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
253
254 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
255 (ieee1275_fb_mod_SOURCES): New variable.
256 (ieee1275_fb_mod_CFLAGS): Likewise.
257 (ieee1275_fb_mod_LDFLAGS): Likewise.
258 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
259 New proto.
260 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
261 (HEAP_MAX_ADDR): Likewise.
262 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
263 type.
264 Correct stop condition.
265 (grub_ieee1275_devices_iterate): New function.
266 * video/ieee1275.c: New file.
267
268 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
269
270 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
271
272 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
273 as scratch.
274 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
275 SCRATCH_PAD_DISKBOOT as scratch.
276 (bootit): Pass Openfirmware pointer in %o4.
277 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
278 of 0x200000.
279 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
280 with util/grub-mkrawimage.c.
281 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
282 * include/grub/aout.h (AOUT_MID_SUN): New definition.
283 (grub_aout_get_type) [GRUB_UTIL]: Removed.
284 (grub_aout_load) [GRUB_UTIL]: Likewise.
285 * include/grub/kernel.h (grub_modules_get_end): New proto.
286 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
287 (SCRATCH_PAD_BOOT): New definition.
288 (SCRATCH_PAD_DISKBOOT): Likewise.
289 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
290 * include/grub/sparc64/ieee1275/ieee1275.h
291 (grub_ieee1275_original_stack): New variable
292 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
293 New definition
294 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
295 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
296 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
297 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
298 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
299 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
300 (grub_platform_image_format_t): New type.
301 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
302 * kern/main.c (grub_modules_get_end)
303 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
304 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
305 (codestart): Switch stacks.
306 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
307 variable.
308 (grub_heap_init): Use grub_modules_get_end.
309 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
310 stack.
311 * util/grub-mkrawimage.c (generate_image): Support sparc64.
312 (main): Likewise.
313 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
314
315 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
316
317 * util/grub-mkrescue.in: Base ISO UUID on UTC.
318
319 2010-03-08 Matt Kraai <kraai@ftbfs.org>
320
321 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
322 bug #559005).
323
324 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * genmoddep.awk: Output all missing symbols and not only first.
327
328 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * NEWS: Put the date of 1.98 release.
331
332 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
335 ft2build.h.
336
337 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
338
339 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
340 completition in the middle of string.
341
342 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * util/grub-mkrescue.in: Use mktemp with explicit template.
345
346 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
349
350 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
351
352 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
353 right pointer.
354
355 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
356
357 Fix FreeBSD compilation.
358
359 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
360 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
361
362 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
363
364 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
365
366 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
369
370 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
373
374 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
375
376 Support relative image path in theme file.
377
378 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
379 (image_set_property): Handle theme_dir and relative path.
380
381 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * configure.ac: Alias amd64 to x86_64.
384
385 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
386
387 * NEWS: mention multiboot on EFI.
388
389 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * kern/main.c (grub_load_modules): Handle errors from init functions of
392 embeded modules.
393
394 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
395
396 * normal/autofs.c (autoload_fs_module): Handle errors.
397
398 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
399
400 Disable linux.mod on qemu-mips since it's not functional and leads
401 to compilation failure.
402
403 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
404 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
405 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
406 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
407 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
408 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
409 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
410 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
411 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
412 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
413 Reported by: BVK Chaitanya
414
415 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
416
417 * INSTALL: Add gettext as a dependency and add qemu to a new section
418 "Prerequisites for make-check".
419
420 2010-03-04 Christian Franke <franke@computer.org>
421
422 * util/grub-pe2elf.c: Add missing include "progname.h".
423
424 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * normal/crypto.c (read_crypto_list): Fix a typo.
427 Reported by: Seth Goldberg.
428
429 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
432 Reported by: Seth Goldberg.
433
434 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
437 ascii.bitmaps.
438
439 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
440
441 * genmk.rb: Remove terminal*.lst in make clean.
442 Reported by: Seth Goldberg.
443
444 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
445
446 * util/i386/efi/grub-install.in: Copy gettext files.
447
448 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
451
452 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
453
454 Wait for user entry basing on presence of output rather than on errors.
455
456 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
457 (grub_install_newline_hook): Likewise.
458 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
459 * normal/menu.c (show_menu): Check line_counter to determine presence
460 of output.
461 * normal/term.c (grub_normal_line_counter): New variable.
462 (grub_normal_get_line_counter): New function.
463 (grub_install_newline_hook): Likewise.
464
465 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
468
469 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * configure.ac: Update version to 1.98.
472
473 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
474
475 * util/grub.d/10_linux.in (linux_entry): Don't default to
476 gfxpayload=keep if Linux doesn't support video handover.
477
478 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
479
480 Don't compile video modules on yeeloong since video subsystem is part
481 of kernel.
482
483 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
484 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
485 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
486 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
487 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
488 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
489 * include/grub/bitmap_scale.h: Likewise.
490 * include/grub/bufio.h: Likewise.
491 * include/grub/font.h: Likewise.
492 * include/grub/gfxterm.h: Likewise.
493 * include/grub/video.h: Likewise.
494 * include/grub/vbe.h: Don't include video_fb.h.
495 * video/i386/pc/vbe.c: Include video_fb.h.
496 * commands/i386/pc/vbetest.c: Include video.h.
497
498 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
499
500 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
501 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
502 default entry if GRUB_SAVEDEFAULT=true. This allows using
503 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
504 saving a new default on every boot.
505
506 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
507
508 * normal/crypto.c (read_crypto_list): Fix a memory leak.
509 * normal/term.c (read_terminal_list): Likewise.
510 * normal/main.c (grub_normal_init_page): Likewise.
511 (grub_normal_read_line_real): Likewise.
512
513 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
516 memory leak.
517 Reported by: Seth Goldberg.
518
519 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
520
521 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
522 duplicate declaration of `start'.
523
524 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
527 filename.
528 Reported by: Georgy Buranov
529
530 2010-02-20 Carles Pina i Estany <carles@pina.cat>
531
532 * util/grub-mkrawimage.c (usage): Change string formatting to
533 improve gettext.
534
535 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
536
537 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
538 backspace keys.
539
540 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
543 Reported by: Michael Suchanek.
544
545 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
546
547 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
548 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
549
550 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
551
552 Remove any reference to non-free fonts.
553
554 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
555 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
556 uses non-free components.
557 * font/font.c (grub_font_get_name): Remove example name.
558 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
559 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
560 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
561 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
562
563 2010-02-16 Georgy Buranov <gburanov@gmail.com>
564
565 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
566
567 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
570 Double divisor.
571 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
572 features.
573 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
574
575 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * gensymlist.sh.in: Use TARGET_CC instead of CC.
578
579 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
580
581 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
582 * docs/grub.texi (Command-line and menu entry commands): Document play
583 command.
584
585 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
586
587 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
588 parse arguments as inline tempo and notes. Move code for playing notes
589 to...
590 (play): ... new function.
591
592 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
593
594 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
595 grub_uint16_t instead of short.
596 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
597 disk from little endian to cpu endianness.
598
599 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
600
601 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
602 GRUB_TICKS_PER_SECOND instead of 120.
603
604 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
605
606 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
607 escape sequence after \e.
608
609 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
612 non-ASCII characters.
613
614 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
617 set root in single quotes to prevent \, from being unescaped.
618
619 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
620
621 Prevent unknown commands from stopping menuentry execution.
622
623 * script/execute.c (grub_script_execute_cmdline): Print error after
624 unknown command.
625
626 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
629 Reported by: Pavel Pisa.
630
631 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
634
635 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
636
637 Merge grub_ieee1275_map_physical into grub_map and rename to
638 grub_ieee1275_map
639
640 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
641 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
642 Remove.
643 * kern/ieee1275/openfw.c (grub_map): Rename to ...
644 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
645 necessary.
646 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
647
648 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
649
650 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
651 opening and not after.
652
653 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
654
655 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
656 constants.
657
658 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
659
660 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
661 (alloc_phys): Use ALIGN_UP instead of align_addr.
662
663 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
664
665 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
666
667 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
668
669 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
670
671 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
674 verbose dprintf.
675
676 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
677
678 Fix over-4GiB seek on sparc64.
679
680 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
681 Replace pos_i and pos_lo with pos. All users updated.
682 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
683 New constant.
684 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
685 Likewise.
686 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
687 and pos_lo.
688
689 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
690
691 * util/grub-mkrawimage.c (main): Call set_program_name.
692
693 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
694
695 Properly align 64-bit targets.
696
697 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
698 (generate_image): Use ALIGN_ADDR.
699
700 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
701
702 Properly create cross-endian images.
703
704 * include/grub/types.h (grub_host_to_target_addr): New macro
705 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
706
707 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
708
709 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
710
711 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
712
713 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
714
715 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
716 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
717 (grub_linux_boot): Divide by 64K when on VESA.
718
719 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
720
721 Support GRUB_GFXPAYLOAD_LINUX.
722
723 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
724 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
725
726 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
729 to show messages instead of discarding them.
730 Process errors after executing command and not before. Keep old method
731 too as precaution.
732
733 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * configure.ac: Check for ft2build.h.
736
737 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
738
739 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
740
741 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
742
743 * genkernsyms.sh.in: Use TARGET_CC.
744
745 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
746
747 * NEWS: Update.
748
749 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
750
751 * include/grub/multiboot2.h: Remove leftover file.
752 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
753 * include/grub/partition.h [GRUB_UTIL]: Likewise.
754
755 2010-02-07 Yves Blusseau <blusseau@zetam.org>
756
757 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
758
759 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
760
761 Fix warnings in grub-emu when compiling with maximum warning options.
762
763 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
764 (grub_arch_modules_addr): Return 0 and not NULL.
765 * util/misc.c (ENABLE_RELOCATABLE): New definition.
766 (xstrdup): Use newstr instead of dup.
767 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
768 of disk to dsk to avoid shadowing.
769 (find_free_slot): Fix prototype.
770 * util/getroot.c (grub_util_is_dmraid): Make static.
771 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
772 Add missing prototype.
773 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
774
775 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * loader/i386/linux.c (grub_linux_setup_video): Handle error
778 appropriately.
779
780 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
783 code out.
784
785 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
786
787 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
788 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
789 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
790 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
791 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
792 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
793
794 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * include/grub/err.h (grub_err_printf): Don't export.
797
798 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
799
800 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
801
802 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * include/grub/i18n.h (grub_gettext_dummy): Removed.
805 * kern/misc.c (grub_gettext_dummy): Make static.
806
807 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
810 by non-valid ones.
811 * kern/term.c (grub_putchar): Likewise.
812
813 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
814
815 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
816 buggy hook call and memory leak.
817
818 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
821
822 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
825
826 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
829 modevar.
830 Return grub_errno on allocation error.
831
832 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
833
834 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
835
836 2010-02-06 Yves Blusseau <blusseau@zetam.org>
837
838 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
839 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
840
841 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
842
843 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
844 non-pxe disk.
845 (grub_pxefs_open): Likewise.
846
847 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
848
849 * util/grub.d/10_hurd.in: Add --class information to menuentries.
850 * util/grub.d/10_kfreebsd.in: Likewise.
851 * util/grub.d/10_linux.in: Likewise.
852
853 2010-02-06 Colin D Bennett <colin@gibibit.com>
854
855 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
856 (gfxmenu_mod_SOURCES): New variable.
857 (gfxmenu_mod_CFLAGS): Likewise.
858 (gfxmenu_mod_LDFLAGS): Likewise.
859 * include/grub/term.h (grub_term_set_current_output): Declare
860 argument as const.
861 * docs/gfxmenu-theme-example.txt: New file.
862 * gfxmenu/gfxmenu.c: Likewise.
863 * gfxmenu/gui_box.c: Likewise.
864 * gfxmenu/gui_canvas.c: Likewise.
865 * gfxmenu/gui_circular_progress.c: Likewise.
866 * gfxmenu/gui_image.c: Likewise.
867 * gfxmenu/gui_label.c: Likewise.
868 * gfxmenu/gui_list.c: Likewise.
869 * gfxmenu/gui_progress_bar.c: Likewise.
870 * gfxmenu/gui_string_util.c: Likewise.
871 * gfxmenu/gui_util.c: Likewise.
872 * gfxmenu/icon_manager.c: Likewise.
873 * gfxmenu/model.c: Likewise.
874 * gfxmenu/named_colors.c: Likewise.
875 * gfxmenu/theme_loader.c: Likewise.
876 * gfxmenu/view.c: Likewise.
877 * gfxmenu/widget-box.c: Likewise.
878 * include/grub/gfxmenu_model.h: Likewise.
879 * include/grub/gfxmenu_view.h: Likewise.
880 * include/grub/gfxwidgets.h: Likewise.
881 * include/grub/gui.h: Likewise.
882 * include/grub/gui_string_util.h: Likewise.
883 * include/grub/icon_manager.h: Likewise.
884
885 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
886
887 Agglomerate scrolling in gfxterm.
888
889 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
890 (grub_virtual_screen_setup): Initialise 'total_screen'.
891 (write_char): Split to ...
892 (paint_char): ... this ...
893 (write_char): ... and this.
894 (paint_char): Handle delayed scrolling.
895 (draw_cursor): Likewise.
896 (scroll_up): Split to ...
897 (real_scroll): ... this ...
898 (scroll_up): ... and this.
899 (real_scroll): Handle multi-line scroll and draw below-the-bottom
900 characters.
901 (grub_gfxterm_refresh): Call real_scroll.
902
903 2010-02-06 Colin D Bennett <colin@gibibit.com>
904
905 * include/grub/misc.h (grub_iscntrl): New inline function.
906 (grub_isalnum): Likewise.
907 (grub_strtol): Likewise.
908
909 2010-02-06 Colin D Bennett <colin@gibibit.com>
910
911 * normal/menu_text.c (get_entry_number): Move from here ...
912 * normal/menu.c (get_entry_number): ... moved here.
913 * include/grub/menu.h (grub_menu_get_default_entry_index):
914 New prototype.
915 * normal/menu.c (grub_menu_get_default_entry_index): New function.
916 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
917 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
918 (grub_menu_viewer_should_return): Likewise.
919 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
920 * normal/menu_text.c (run_menu): Enable menu switching.
921 * normal/menu_viewer.c (should_return): New variable.
922 (menu_viewer_changed): Likewise.
923 (grub_menu_viewer_show_menu): Handle menu viewer changes.
924 (grub_menu_viewer_should_return): New function.
925 (menuviewer_write_hook): Likewise.
926 (grub_menu_viewer_init): Likewise.
927
928 2010-02-06 Colin D Bennet <colin@gibibit.com>
929 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
930
931 Support for gfxterm in a window.
932
933 * include/grub/gfxterm.h: New file.
934 * include/grub/video.h (struct grub_video_rect): New declaration.
935 (grub_video_rect_t): Likewise.
936 * term/gfxterm.c (struct grub_gfxterm_window): New type.
937 (refcount): New variable.
938 (render_target): Likewise.
939 (window): Likewise.
940 (repaint_callback): Likewise.
941 (grub_virtual_screen_setup): Use 'render_target'.
942 (init_window): New function.
943 (grub_gfxterm_init_window): Likewise.
944 (grub_gfxterm_init): Check reference counter.
945 Use init_window.
946 (destroy_window): New function.
947 (grub_gfxterm_destroy_window): Likewise.
948 (grub_gfxterm_fini): Check reference counter.
949 Use destroy_window.
950 (redraw_screen_rect): Restore viewport.
951 Use 'render_target' and 'window'.
952 Call 'repaint_callback'.
953 (write_char): Use 'render_target'.
954 (draw_cursor): Likewise.
955 (scroll_up): Restore viewport.
956 Use 'render_target' and 'window'.
957 Call 'repaint_callback'.
958 (grub_gfxterm_cls): Likewise.
959 (grub_gfxterm_refresh): Use 'window'.
960 (grub_gfxterm_set_repaint_callback): New function.
961 (grub_gfxterm_background_image_cmd): Use 'window'.
962 (grub_gfxterm_get_term): New function.
963 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
964
965 2010-02-06 Colin D Bennett <colin@gibibit.com>
966
967 Bitmap scaling support.
968
969 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
970 (bitmap_scale_mod_SOURCES): New variable.
971 (bitmap_scale_mod_CFLAGS): Likewise.
972 (bitmap_scale_mod_LDFLAGS): Likewise.
973 * include/grub/bitmap_scale.h: New file.
974 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
975 (background_image_cmd_options): New variable.
976 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
977 (cmd): Rename and change type to ...
978 (background_image_cmd_handle): ... this. All users updated.
979 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
980 * video/bitmap_scale.c: New file.
981
982 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
983
984 SDL support.
985
986 * Makefile.in (LIBSDL): New variable.
987 (enable_grub_emu_sdl): Likewise.
988 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
989 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
990 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
991 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
992 * util/sdl.c: New file.
993
994 2010-02-06 Colin D Bennett <colin@gibibit.com>
995 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
996
997 Double buffering support.
998
999 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
1000 * include/grub/video.h: Update comment.
1001 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1002 New type.
1003 (grub_video_fb_doublebuf_blit_init): New prototype.
1004 * term/gfxterm.c (scroll_up): Support double buffering.
1005 (grub_gfxterm_refresh): Likewise.
1006 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
1007 (grub_video_fb_doublebuf_blit_init): Likewise.
1008 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
1009 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
1010 'displayed_page', 'render_page' and 'update_screen'.
1011 (grub_video_vbe_fini): Free offscreen buffer.
1012 (doublebuf_pageflipping_commit): New function.
1013 (doublebuf_pageflipping_update_screen): Likewise.
1014 (doublebuf_pageflipping_init): Likewise.
1015 (double_buffering_init): Likewise.
1016 (grub_video_vbe_setup): Enable doublebuffering.
1017 (grub_video_vbe_swap_buffers): Implement.
1018 (grub_video_vbe_set_active_render_target): Handle double buffering.
1019 (grub_video_vbe_get_active_render_target): Likewise.
1020 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
1021 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
1022 (grub_video_vbe_enable_double_buffering): Likewise.
1023 (grub_video_vbe_swap_buffers): Use update_screen.
1024 (grub_video_set_mode): Use double buffering.
1025
1026 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
1027
1028 * maintainance/gentrigtables.py: Remove.
1029 * lib/trig.c: Likewise.
1030
1031 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
1032
1033 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
1034 `trigtables.c'.
1035 (trigtables.c): New rule.
1036 (gentrigtables): Likewise.
1037 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
1038
1039 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
1040
1041 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
1042 integer constants.
1043
1044 2010-02-06 Colin D Bennet <colin@gibibit.com>
1045
1046 Trigonometry support.
1047
1048 * include/grub/trig.h: New file.
1049 * lib/trig.c: Likewise.
1050 * maintainance/gentrigtables.py: Likewise.
1051 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
1052 (trig_mod_SOURCES): New variable.
1053 (trig_mod_CFLAGS): Likewise.
1054 (trig_mod_LDFLAGS): Likewise.
1055
1056 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
1057
1058 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
1059 disk devices.
1060
1061 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
1062
1063 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
1064 error.
1065
1066 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 * util/hostdisk.c (open_device): Don't use partition device when reading
1069 before the partition.
1070 (grub_util_biosdisk_read): Don't read from partition and before the
1071 partition in single operation.
1072 (grub_util_biosdisk_write): Don't write to partition and before the
1073 partition in single operation.
1074
1075 2010-02-03 Torsten Landschoff <torsten@debian.org>
1076
1077 * kern/disk.c (grub_disk_read): Fix offset computation when reading
1078 last sectors.
1079
1080 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
1083 CDROM reads.
1084 (grub_biosdisk_write): Refuse to write to CDROM.
1085
1086 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
1089
1090 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * font/font.c (find_glyph): Check that bmp_idx is available before
1093 using it.
1094 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
1095 with (font == NULL).
1096
1097 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
1098
1099 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
1100
1101 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
1102
1103 * include/grub/script_sh.h (sourcecode): Add const qualifier.
1104 * util/grub-script-check.c (getline): Fix empty lines case.
1105
1106 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
1107
1108 * Makefile.in (check): Exit with fail status when one of the tests
1109 fails.
1110 * tests/example_functional_test.c (example_test): Fix reversed assert.
1111 * tests/example_unit_test.c (example_test): Likewise.
1112
1113 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
1114
1115 * util/grub.d/10_linux.in: This script does not use any of the
1116 contents of gettext.sh, only the external command `gettext', so stop
1117 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
1118 the same prefix as GRUB.)
1119 * util/grub.d/10_kfreebsd.in: Likewise.
1120
1121 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
1124 of the line.
1125
1126 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * kern/disk.c (grub_disk_read): Fix offset computation when reading
1129 last sectors.
1130
1131 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
1134 having a 4KiB and not 32KiB buffer size.
1135
1136 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
1137
1138 * util/hostfs.c: Include `<errno.h>'.
1139 (grub_hostfs_read): Handle errors from fseeko() and fread().
1140
1141 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
1142
1143 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
1144 loop when using read hooks on files whose size isn't sector-aligned.
1145
1146 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
1147
1148 Remove unused parameter.
1149
1150 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
1151 (grub_iso9660_open): Remove initialization of `data->length'.
1152
1153 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
1154
1155 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
1156 memleak conditions.
1157
1158 2010-01-27 Carles Pina i Estany <carles@pina.cat>
1159
1160 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
1161 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
1162
1163 2010-01-26 Carles Pina i Estany <carles@pina.cat>
1164
1165 * util/bin2h.c (usage): Fix warning (space after backslash).
1166
1167 2010-01-26 Carles Pina i Estany <carles@pina.cat>
1168
1169 * font/font.c: Include `grub/fontformat.h.
1170 Remove font file format constants.
1171 (grub_font_load): Use the new macros.
1172 * include/grub/fontformat.h: New file.
1173 * util/grub-mkfont.c: Include `grub/fontformat.c'.
1174 (write_font_pf2): Use the new macros.
1175
1176 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
1177
1178 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
1179 does.
1180
1181 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
1182
1183 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
1184
1185 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
1186 (_start): Macroify `0x7F'.
1187
1188 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
1189 (make_install_device): Use "(pxe)" as fallback prefix when booting
1190 via PXE.
1191
1192 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * configure.ac: Reset LIBS after check for libgcc symbols.
1195
1196 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
1197
1198 * util/hostdisk.c (open_device): Add trailing newline to debug
1199 message.
1200
1201 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1202
1203 * configure.ac: Check for `limits.h'.
1204 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
1205
1206 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
1207
1208 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
1209 capitalize error strings.
1210
1211 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1212
1213 * util/grub.d/10_hurd.in: Add a recovery mode.
1214
1215 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * configure.ac: Check for libgcc symbols with -nostdlib.
1218
1219 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
1220
1221 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
1222
1223 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
1226 stack since heap may be unavailable at that point.
1227 (grub_ofconsole_gotoxy): Likewise.
1228
1229 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 * configure.ac: Check for _restgpr_14_x.
1232 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
1233 and _savegpr_* prototypes.
1234
1235 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
1236
1237 Use generic grub_reboot() for i386-efi.
1238
1239 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
1240 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
1241 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
1242
1243 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
1246 presence of "prefix" variable as it breaks when normal.mod is
1247 embedded.
1248
1249 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
1252 stack since heap is unavailable at that point.
1253
1254 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
1257 (grub_freebsd_bootinfo): Rewritten.
1258 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
1259
1260 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
1263
1264 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
1265
1266 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
1267 domain now.
1268
1269 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
1270
1271 * util/misc.c (make_system_path_relative_to_its_root): Change the work
1272 around for handling "/" to the correct fix. Fix a memory leak. Use
1273 xstrdup instead of strdup.
1274
1275 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
1278
1279 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 Optimise glyph lookup by Basic Multilingual Plane lookup array.
1282
1283 * font/font.c (struct grub_font): New member 'bmp_idx'.
1284 (font_init): Initialise 'bmp_idx'.
1285 (load_font_index): Fill 'bmp_idx'.
1286 (find_glyph): Make inline. Use bmp_idx for BMP characters.
1287
1288 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
1291 unnecessary calls.
1292
1293 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 Move context handling out of the kernel.
1296
1297 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
1298 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
1299 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
1300 * conf/i386-efi.rmk: Likewise.
1301 * conf/i386-ieee1275.rmk: Likewise.
1302 * conf/i386-pc.rmk: Likewise.
1303 * conf/powerpc-ieee1275.rmk: Likewise.
1304 * conf/sparc64-ieee1275.rmk: Likewise.
1305 * conf/x86_64-efi.rmk: Likewise.
1306 * include/grub/env.h: Include grub/menu.h.
1307 (grub_env_var_type): Removed.
1308 (grub_env_var): Replaced field 'type' with 'global'.
1309 (grub_env_find): New prototype.
1310 (grub_env_context_open): Remove EXPORT_FUNC.
1311 (grub_env_context_close): Likewise.
1312 (grub_env_export): Likewise.
1313 (grub_env_set_data_slot): Removed.
1314 (grub_env_get_data_slot): Likewise.
1315 (grub_env_unset_data_slot): Likewise.
1316 (grub_env_unset_menu): New prototype.
1317 (grub_env_set_menu): Likewise.
1318 (grub_env_get_menu): Likewise.
1319 * include/grub/env_private.h: New file.
1320 * include/grub/normal.h (grub_context_init): New prototype.
1321 (grub_context_fini): Likewise.
1322 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
1323 * normal/context.c (grub_cmd_export): ... to here.
1324 * kern/env.c: Include env_private.h.
1325 (HASHSZ): Moved to include/grub/env_private.h.
1326 (grub_env_context): Likewise.
1327 (grub_env_sorted_var): Likewise.
1328 (current_context): Renamed from this ...
1329 (grub_current_context): ...to this. 'static' removed. All users updated.
1330 (grub_env_find): Removed 'static'.
1331 (grub_env_context_open): Moved to normal/context.c.
1332 (grub_env_context_close): Likewise.
1333 (grub_env_export): Likewise.
1334 (mangle_data_slot_name): Removed.
1335 (grub_env_set_data_slot): Likewise.
1336 (grub_env_get_data_slot): Likewise.
1337 (grub_env_unset_data_slot): Likewise.
1338 * kern/main.c (grub_set_root_dev): Don't export root.
1339 It will be done later.
1340 (grub_main): Don't export prefix.
1341 It will be done later.
1342 * normal/context.c: New file.
1343 * normal/main.c (free_menu): Use grub_env_unset_menu.
1344 (grub_normal_add_menu_entry): Use grub_env_get_menu.
1345 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
1346 (GRUB_MOD_INIT(normal)): Call grub_context_init.
1347 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
1348
1349 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 setpci support.
1352
1353 * commands/setpci.c: New file.
1354 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
1355 (setpci_mod_SOURCES): New variable.
1356 (setpci_mod_CFLAGS): Likewise.
1357 (setpci_mod_LDFLAGS): Likewise.
1358
1359 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Byte-addressable PCI configuration space.
1362
1363 * bus/pci.c (grub_pci_make_address): Use byte address instead of
1364 dword address.
1365 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
1366 GRUB_PCI_REG_CACHELINE.
1367 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
1368 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
1369 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
1370 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
1371 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
1372 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
1373 grub_pci_make_address.
1374 (lock_rom_area): Likewise.
1375 * commands/lspci.c (grub_lspci_iter): Use macroses
1376 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
1377 of grub_pci_make_address.
1378 * disk/ata.c (grub_ata_pciinit): Likewise.
1379 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
1380 (GRUB_PCI_REG_VENDOR): Likewise.
1381 (GRUB_PCI_REG_DEVICE): Likewise.
1382 (GRUB_PCI_REG_COMMAND): Likewise.
1383 (GRUB_PCI_REG_STATUS): Likewise.
1384 (GRUB_PCI_REG_REVISION): Likewise.
1385 (GRUB_PCI_REG_CLASS): Likewise.
1386 (GRUB_PCI_REG_CACHELINE): Likewise.
1387 (GRUB_PCI_REG_LAT_TIMER): Likewise.
1388 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
1389 (GRUB_PCI_REG_BIST): Likewise.
1390 (GRUB_PCI_REG_ADDRESSES): Likewise.
1391 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
1392 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
1393 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
1394 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
1395 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
1396 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
1397 (GRUB_PCI_REG_CIS_POINTER): Likewise.
1398 (GRUB_PCI_REG_SUBVENDOR): Likewise.
1399 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
1400 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
1401 (GRUB_PCI_REG_CAP_POINTER): Likewise.
1402 (GRUB_PCI_REG_IRQ_LINE): Likewise.
1403 (GRUB_PCI_REG_IRQ_PIN): Likewise.
1404 (GRUB_PCI_REG_MIN_GNT): Likewise.
1405 (GRUB_PCI_REG_MAX_LAT): Likewise.
1406 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
1407 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
1408 * video/efi_uga.c (find_framebuf): Likewise.
1409 * video/sm712.c (grub_video_sm712_setup): Likewise.
1410 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
1411 space.
1412
1413 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
1414
1415 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
1416 can be reliably determined to be supported.
1417
1418 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
1419
1420 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
1421 that VESA is supported.
1422 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
1423 supported.
1424
1425 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
1428
1429 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
1430
1431 * util/misc.c (make_system_path_relative_to_its_root): Work around
1432 special-casing of "/", as previous incarnation of this routine did.
1433
1434 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 Fix any-emu compilation.
1437
1438 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
1439 * grub_bin2h_SOURCES: New variable.
1440
1441 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
1442
1443 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
1444
1445 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
1446
1447 * util/grub.d/00_header.in: Fix handling of locale_dir.
1448
1449 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
1452 as possible unifont location (Gentoo).
1453 Reported by: Alexander Brüning
1454
1455 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 Don't try to generate lists for kernel.img.
1458
1459 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
1460 (pkglib_MODULES): Remove kernel.img.
1461 (kernel_img_EXPORTS): Removed.
1462 (kernel_img_RELOCATABLE): New variable.
1463 * conf/x86_64-efi.rmk: Likewise.
1464 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
1465
1466 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
1469 grub_xasprintf or grub_snprintf.
1470 (grub_vsprintf): Likewise.
1471 (grub_snprintf): New proto.
1472 (grub_vsnprintf): Likewise.
1473 (grub_xasprintf): Likewise.
1474 (grub_xvasprintf): Likewise.
1475 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
1476 (grub_sprintf): Removed.
1477 (grub_vsnprintf): New function.
1478 (grub_snprintf): Likewise.
1479 (grub_xvasprintf): Likewise.
1480 (grub_xasprintf): Likewise.
1481 (grub_vsprintf): Renamed to ...
1482 (grub_vsnprintf_real): ...this. New argument max_len.
1483
1484 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
1485
1486 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
1487 fix grub-script-check warning.
1488
1489 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * include/grub/font.h (grub_font_load): Fix prototype.
1492
1493 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
1496
1497 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * include/grub/x86_64/at_keyboard.h: New file.
1500
1501 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1502
1503 * loader/mips/linux.c: Include missing grub/i18n.h.
1504
1505 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
1506
1507 * normal/menu.c (notify_execution_failure): Clarify error message.
1508
1509 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
1510
1511 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
1512 return value (and revert all return statements). Update users.
1513
1514 2010-01-20 Dan Merillat <debian@dan.merillat.org>
1515
1516 * kern/device.c (grub_device_iterate): Allocate new part_ent
1517 structure based on sizeof (*p) rather than sizeof (p->next), to
1518 account for structure padding.
1519
1520 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
1521 disk is NULL, which might happen for LVM physical volumes with no
1522 LVM signature.
1523
1524 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
1525
1526 * loader/mips/linux.c (grub_cmd_initrd)
1527 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
1528
1529 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
1530
1531 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
1532 (grub_video_video_init, grub_video_bitmap_init)
1533 (grub_font_manager_init, grub_term_gfxterm_init)
1534 (grub_at_keyboard_init): New extern declarations.
1535 (grub_machine_init): Initialize gfxterm and at_keyboard.
1536
1537 * kern/main.c (grub_main): Revert grub_printf delay kludge.
1538
1539 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
1540 `gfxterm.mod' into core image.
1541
1542 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
1543 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1544 (kernel_img_FORMAT): Copy to ...
1545
1546 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
1547 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1548 (kernel_img_FORMAT): ... here, and ...
1549
1550 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
1551 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1552 (kernel_img_FORMAT): ... here.
1553
1554 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
1555 and input (at_keyboard) terminals in kernel.
1556 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
1557
1558 (pkglib_MODULES): Remove `pci.mod'.
1559 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
1560 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
1561 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
1562 (at_keyboard_mod_LDFLAGS): Remove variables.
1563
1564 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
1565
1566 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
1567
1568 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
1569
1570 * include/grub/mips/libgcc.h: Only export symbols for functions
1571 that libgcc provides.
1572
1573 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 MIPS support.
1576
1577 * bus/bonito.c: New file.
1578 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
1579 GRUB_PCI_NUM_DEVICES.
1580 * term/i386/pc/serial.c: Move to ...
1581 * term/serial.c: ... here. All users updated.
1582 * util/i386/pc/grub-mkimage.c: Move to ...
1583 * util/grub-mkrawimage.c: ... here. All users updated.
1584 * term/i386/pc/at_keyboard.c: Move to ...
1585 * term/at_keyboard.c: ... here. All users updated.
1586 * conf/mips-qemu-mips.rmk: New file.
1587 * conf/mips-yeeloong.rmk: Likewise.
1588 * conf/mips.rmk: Likewise.
1589 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
1590 mipsel-qemu-mips.
1591 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
1592 to port addresses.
1593 (grub_ata_pciinit): Support CS5536.
1594 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
1595 * font/font_cmd.c (loadfont_command): Open file before passing it to
1596 grub_font_load.
1597 (pseudo_file_read): New function.
1598 (pseudo_file_close): Likewise.
1599 (pseudo_fs): New structure.
1600 (load_font_module): New function.
1601 (GRUB_MOD_INIT(font_manager)): Load embedded font.
1602 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
1603 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
1604 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
1605 * include/grub/i386/at_keyboard.h: Split into ...
1606 * include/grub/at_keyboard.h: ... this ...
1607 * include/grub/i386/at_keyboard.h: ... and this.
1608 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
1609 New prototype.
1610 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
1611 updated.
1612 (grub_elf64_size): Likewise.
1613 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
1614 filename.
1615 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
1616 * include/grub/i386/coreboot/serial.h: Rewritten.
1617 * include/grub/i386/ieee1275/serial.h: Include
1618 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
1619 * include/grub/i386/pc/serial.h: Moved from here ...
1620 * include/grub/serial.h: ... to here. All users updated.
1621 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
1622 (GRUB_PCI_NUM_BUS): Likewise.
1623 (GRUB_PCI_NUM_DEVICES): Likewise.
1624 (grub_pci_device_map_range): Add missing volatile keyword.
1625 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
1626 * include/grub/mips/at_keyboard.h: New file.
1627 * include/grub/mips/cache.h: Likewise.
1628 * include/grub/mips/io.h: Likewise.
1629 * include/grub/mips/kernel.h: Likewise.
1630 * include/grub/mips/libgcc.h: Likewise.
1631 * include/grub/mips/pci.h: Likewise.
1632 * include/grub/mips/qemu-mips/boot.h: Likewise.
1633 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1634 * include/grub/mips/qemu-mips/loader.h: Likewise.
1635 * include/grub/mips/qemu-mips/memory.h: Likewise.
1636 * include/grub/mips/qemu-mips/serial.h: Likewise.
1637 * include/grub/mips/qemu-mips/time.h: Likewise.
1638 * include/grub/mips/relocator.h: Likewise.
1639 * include/grub/mips/time.h: Likewise.
1640 * include/grub/mips/types.h: Likewise.
1641 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
1642 * include/grub/mips/yeeloong/boot.h: Likewise.
1643 * include/grub/mips/yeeloong/kernel.h: Likewise.
1644 * include/grub/mips/yeeloong/loader.h: Likewise.
1645 * include/grub/mips/yeeloong/memory.h: Likewise.
1646 * include/grub/mips/yeeloong/pci.h: Likewise.
1647 * include/grub/mips/yeeloong/serial.h: Likewise.
1648 * include/grub/mips/yeeloong/time.h: Likewise.
1649 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
1650 * kern/elf.c (grub_elf32_size): New parameter. All users
1651 updated.
1652 (grub_elf64_size): Likewise.
1653 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
1654 Load modules before saying "Welcome to GRUB!".
1655 Call grub_refresh after saying "Welcome to GRUB!".
1656 * kern/mips/cache.S: New file.
1657 * kern/mips/cache_flush.S: Likewise.
1658 * kern/mips/dl.c: Likewise.
1659 * kern/mips/init.c: Likewise.
1660 * kern/mips/qemu-mips/init.c: Likewise.
1661 * kern/mips/startup.S: Likewise.
1662 * kern/mips/yeeloong/init.c: Likewise.
1663 * kern/term.c (grub_putcode): Handle NULL terminal.
1664 (grub_getcharwidth): Likewise.
1665 (grub_getkey): Likewise.
1666 (grub_checkkey): Likewise.
1667 (grub_getkeystatus): Likewise.
1668 (grub_getxy): Likewise.
1669 (grub_getwh): Likewise.
1670 (grub_gotoxy): Likewise.
1671 (grub_cls): Likewise.
1672 (grub_setcolorstate): Likewise.
1673 (grub_setcolor): Likewise.
1674 (grub_getcolor): Likewise.
1675 (grub_refresh): Likewise.
1676 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
1677 (write_jump): Add hatch nop.
1678 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
1679 * lib/mips/setjmp.S: New file.
1680 * loader/mips/linux.c: Likewise.
1681 * term/i386/pc/at_keyboard.c: Move from here ...
1682 * term/at_keyboard.c: ... to here.
1683 * term/i386/pc/serial.c: Moved from here ...
1684 * term/serial.c: ... to here. All users updated.
1685 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
1686 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
1687 (serial_translate_key_sequence): Avoid deadlock.
1688 (grub_serial_getkey): Handle backspace.
1689 (grub_serial_putchar): Fix newline handling.
1690 * util/i386/pc/grub-mkimage.c: Move from here ...
1691 * util/grub-mkrawimage.c: ... to here. All users updated.
1692 (generate_image): New parameters 'font_path' and 'format'.
1693 Support embedding font.
1694 Use grub_host_to_target* instead of grub_cpu_to_le*.
1695 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
1696 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
1697 (options): New option "--font".
1698 (usage): Likewise.
1699 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
1700 (main): Handle "--font".
1701 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
1702 (grub_virtual_screen_setup): Set bg_color_display.
1703 (redraw_screen_rect): Use bg_color_display instead of incorrect
1704 bg_color.
1705 (grub_gfxterm_cls): Likewise.
1706 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
1707 Support embedding config file.
1708 (add_segments): Likewise.
1709 (options): New option "--config".
1710 (main): Handle "--config".
1711 * video/sm712.c: New file.
1712
1713 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1714
1715 Fix parallel builds.
1716
1717 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
1718 font.c depend on ascii.h).
1719
1720 2010-01-12 Carles Pina i Estany <carles@pina.cat>
1721
1722 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
1723
1724 2010-01-11 Carles Pina i Estany <carles@pina.cat>
1725
1726 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
1727 By default: disabled.
1728 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
1729 parameter.
1730
1731 2010-01-10 Carles Pina i Estany <carles@pina.cat>
1732
1733 * font/font.c: Update copyright years.
1734 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
1735
1736 2010-01-10 Carles Pina i Estany <carles@pina.cat>
1737
1738 * font/font.c: Include `ascii.h'.
1739 (ASCII_BITMAP_SIZE): New macro.
1740 (ascii_font_glyph): Define.
1741 (ascii_glyph_lookup): New function.
1742 (grub_font_get_string_width): Change comment. If glyph not found, use
1743 ascii_glyph_lookup.
1744 (grub_font_get_glyph_with_fallback): If glyph not available returns
1745 ascii_glyph_lookup.
1746 * util/grub-mkfont.c (file_formats): New enum.
1747 (options): Add `ascii-bitmaps' new option.
1748 (usage): Add `asii-bitmaps' new option.
1749 (write_font_ascii_bitmap): New function.
1750 (write_font): Rename to ...
1751 (write_font_p2): ... this. Remove print_glyphs call.
1752 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
1753 used. Call print_glyphs.
1754 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
1755
1756 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
1757
1758 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
1759 (grub_bin2h_SOURCES): New variable.
1760 * util/bin2h.c: New file.
1761
1762 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 * include/multiboot.h: Resynced with spec.
1765 * include/multiboot2.h: Likewise.
1766 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
1767 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
1768
1769 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1770
1771 * include/grub/term.h (grub_term_register_input,
1772 grub_term_register_output): Check return of terminal init()
1773 routines, and abort if errors are raised.
1774
1775 * commands/terminal.c: Update copyright year.
1776
1777 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1778
1779 * commands/terminal.c (grub_cmd_terminal_input)
1780 (grub_cmd_terminal_output): Check return of terminal init()
1781 routines, and abort if errors are raised.
1782
1783 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1784
1785 * include/grub/i386/bsd.h: Fix include pathes.
1786
1787 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 Add missing *BSD copyright headers.
1790
1791 * include/grub/aout.h: Add BSD licence.
1792 * include/grub/i386/bsd.h: Parts under different licences moved to ...
1793 * include/grub/i386/freebsd_linker.h: ... here,
1794 * include/grub/i386/freebsd_reboot.h: ... here,
1795 * include/grub/i386/netbsd_bootinfo.h: ... here,
1796 * include/grub/i386/netbsd_reboot.h: ... here,
1797 * include/grub/i386/openbsd_bootarg.h: ... here,
1798 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
1799 licence to each file.
1800
1801 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1802
1803 * acinclude.m4: Remove `nop' assembly instruction; it's not
1804 implemented by all architectures.
1805
1806 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1807
1808 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
1809 ELILO. This is no longer necessary.
1810
1811 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
1812
1813 Added new tool, grub-scrit-check to verify grub.cfg syntax.
1814
1815 * util/grub-script-check.c: grub-script-check tool.
1816 * conf/common.rmk: Make rules for grub-script-check.
1817
1818 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1819
1820 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
1821 spotting it back in 2008. Shame on me for forgetting he did.
1822
1823 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
1824
1825 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1826
1827 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
1828 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
1829 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
1830 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
1831 (GRUB_VIDEO_TYPE_EFI): Rename to ...
1832 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
1833
1834 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
1835
1836 * include/grub/test.h: Add license header.
1837 * tests/example_functional_test.c: Likewise.
1838 * tests/example_unit_test.c: Likewise.
1839 * tests/lib/functional_test.c: Likewise.
1840 * tests/lib/test.c: Likewise.
1841 * tests/lib/unit_test.c: Likewise.
1842
1843 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 Use flag-based instead of hook-based video mode selection and "auto"
1846 keyword.
1847
1848 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
1849 (grub_video_set_mode): Changed prototype. All users updated.
1850 (grub_video_check_mode_flag): New inline function.
1851 * video/video.c (parse_modespec): New function.
1852 (grub_video_set_mode): Parse flags and keywords.
1853
1854 2010-01-17 Carles Pina i Estany <carles@pina.cat>
1855
1856 * util/misc.c (grub_util_info): Fix the order of the parameters in a
1857 fprintf call.
1858
1859 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
1860
1861 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
1862
1863 2010-01-16 Carles Pina i Estany <carles@pina.cat>
1864
1865 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
1866 string.
1867 * util/grub-emu.c (usage): Likewise.
1868 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
1869 * util/i386/efi/grub-mkimage.c (usage): Likewise.
1870 * util/i386/pc/grub-mkimage.c (usage): Likewise.
1871 * util/i386/pc/grub-setup.c (usage): Likewise.
1872
1873 2010-01-16 Carles Pina i Estany <carles@pina.cat>
1874
1875 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
1876 the message.
1877 (grub_util_info): Likewise.
1878 (grub_util_error): Likewise.
1879 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
1880 and/or new lines in `grub_util_warna', `grub_util_info',
1881 `grub_util_error' calls.
1882 * util/getroot.c: Likewise.
1883 * util/grub-editenv.c: Likewise.
1884 * util/grub-emu.c: Likewise.
1885 * util/grub-fstest.c: Likewise.
1886 * util/grub-mkdevicemap.c: Likewise.
1887 * util/grub-mkfont.c: Likewise.
1888 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1889 * util/grub-mkrelpath.c: Likewise.
1890 * util/grub-pe2elf.c: Likewise.
1891 * util/grub-probe.c: Likewise.
1892 * util/hostdisk.c: Likewise.
1893 * util/i386/efi/grub-mkimage.c: Likewise.
1894 * util/i386/pc/grub-mkimage.c: Likewise.
1895 * util/i386/pc/grub-setup.c: Likewise.
1896 * util/ieee1275/ofpath.c: Likewise.
1897 * util/mkisofs/eltorito.c: Likewise.
1898 * util/mkisofs/rock.c: Likewise.
1899 * util/mkisofs/write.c: Likewise.
1900 * util/raid.c: Likewise.
1901 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
1902 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1903
1904 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 Enable multiboot on non-pc.
1907
1908 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
1909 multiboot.mod and multiboot2.mod to ...
1910 * conf/i386.rmk (pkglib_MODULES): ... here.
1911 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
1912 Moved to ...
1913 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
1914 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
1915 Moved to ...
1916 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
1917 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
1918 Moved to ...
1919 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
1920 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
1921 Moved to ...
1922 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
1923 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
1924 relocator.mod.
1925 (ata_mod_SOURCES): Removed.
1926 (ata_mod_CFLAGS): Likewise.
1927 (ata_mod_LDFLAGS): Likewise.
1928 (relocator_mod_SOURCES): Removed.
1929 (relocator_mod_CFLAGS): Likewise.
1930 (relocator_mod_ASFLAGS): Likewise.
1931 (relocator_mod_LDFLAGS): Likewise.
1932 Include i386.mk.
1933 * include/grub/x86_64/multiboot.h: New file.
1934 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
1935 Terminate EFI.
1936
1937 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 Video multiboot support.
1940
1941 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
1942 New prototype.
1943 * include/multiboot.h: Resynced with multiboot specification.
1944 * include/multiboot2.h: Likewise.
1945 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
1946 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
1947 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
1948 (HAS_VGA_TEXT): Likewise.
1949 (accepts_video): New variable.
1950 (grub_multiboot_set_accepts_video): New function.
1951 (grub_multiboot_get_mbi_size): Account for video structures.
1952 (set_video_mode): New function.
1953 (retrieve_video_parameters): Likewise.
1954 (grub_multiboot_make_mbi): Fill video fields.
1955
1956 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 Video driver ids.
1959
1960 * include/grub/video.h (grub_video_driver_id): New type.
1961 (grub_video_adapter): New member 'id'. All users updated.
1962 (grub_video_get_driver_id): New proto.
1963 * video/video.c (grub_video_get_driver_id): New function.
1964
1965 2010-01-14 Carles Pina i Estany <carles@pina.cat>
1966
1967 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
1968 `var=val'.
1969
1970 2010-01-14 Carles Pina i Estany <carles@pina.cat>
1971
1972 * normal/cmdline.c (print_completion): Gettextizze.
1973
1974 2001-01-14 Carles Pina i Estany <carles@pina.cat>
1975
1976 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
1977
1978 2010-01-14 Carles Pina i Estany <carles@pina.cat>
1979
1980 * gettext/gettext.c (grub_gettext_translate): Push and pop
1981 grub_errno.
1982 (grub_gettext_delete_list): Change comment style.
1983 * kern/err.c (grub_error): Gettextizze.
1984 (grub_fatal): Gettextizze.
1985
1986 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
1987
1988 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
1989 (grub_linux16_real_boot): ... this.
1990 * kern/i386/loader.S: Likewise.
1991 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
1992 (grub_linux16_boot): New function. Switches to text mode and calls
1993 grub_linux16_real_boot().
1994
1995 * loader/i386/bsd.c: Include `<grub/video.h>'.
1996 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
1997 text mode before calling grub_unix_real_boot().
1998
1999 * loader/i386/multiboot.c: Include `<grub/video.h>'.
2000 (grub_multiboot_boot): Switch to text mode before calling
2001 grub_relocator32_boot().
2002
2003 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
2004 (grub_chainloader_boot): Switch to text mode before calling
2005 grub_chainloader_real_boot().
2006
2007 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
2008 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
2009
2010 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
2011 non-empty value.
2012
2013 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
2014 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
2015
2016 * util/grub.d/00_header.in: Define a "savedefault" function for use
2017 in menu entries.
2018 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
2019
2020 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
2021 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
2022
2023 * util/grub-mkconfig_lib.in (save_default_entry): Only set
2024 saved_entry if boot_once is unset.
2025 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
2026 previous saved entry (i.e. grub-reboot).
2027
2028 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
2029
2030 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
2031
2032 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
2033
2034 * util/grub.d/00_header.in: Use `set var=val' rather than plain
2035 `var=val'.
2036 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
2037
2038 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
2039
2040 * util/grub-reboot.in: Fix --version output.
2041 * util/grub-set-default.in: Likewise.
2042
2043 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
2044
2045 * util/grub.d/00_header.in: Silently ignore zero-sized environment
2046 blocks.
2047
2048 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
2049
2050 * util/grub.d/00_header.in: Quote the value assigned to `default',
2051 in case it contains spaces.
2052
2053 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
2054
2055 * util/grub.d/30_os-prober.in: Fix merge error that moved a
2056 `save_default_entry' call from the macosx case to the linux case.
2057
2058 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2059 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
2060
2061 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
2062 in `chosen' environment variable.
2063 * normal/menu_text.c (get_entry_number): Check if the variable
2064 matches the title of a menu entry.
2065 (run_menu): Pass menu to get_entry_number.
2066
2067 * util/grub-reboot.in: New file.
2068 * util/grub-set-default.in: New file.
2069 * conf/common.rmk (grub-reboot): New utility.
2070 (grub-set-default): New utility.
2071
2072 * util/grub-mkconfig_lib.in (save_default_entry): New function.
2073 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
2074 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
2075 move it to `saved_entry' for the next boot. Load environment on
2076 initialisation.
2077 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
2078 * util/grub.d/10_hurd.in: Likewise.
2079 * util/grub.d/10_linux.in (linux_entry): Likewise.
2080 * util/grub.d/10_windows.in: Likewise.
2081 * util/grub.d/30_os-prober.in: Likewise.
2082
2083 * util/grub-install.in: Create environment block.
2084 * util/i386/efi/grub-install.in: Likewise.
2085 * util/ieee1275/grub-install.in: Likewise.
2086 * util/sparc64/ieee1275/grub-install.in: Likewise.
2087
2088 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
2089
2090 Unit testing framework for GRUB.
2091
2092 * Makefile.in: Test framework build rules for 'make check'.
2093 * conf/tests.rmk: Build rules for individual tests and framework.
2094
2095 * include/grub/test.h: Header file for whitebox tests.
2096 * tests/lib/functional_test.c: Framework support for whitebox
2097 functional tests.
2098 * tests/lib/test.c: Common whitebox testing code for unit and
2099 functional tests.
2100 * tests/lib/unit_test.c: Framework support for whitebox unit
2101 tests.
2102
2103 * tests/util/grub-shell-tester.in: Support utility for grub-script
2104 tests.
2105 * tests/util/grub-shell.in: Utility to execute grub-script
2106 commands in a Qemu instance.
2107
2108 * tests/example_functional_test.c: Example whitebox functional
2109 test.
2110 * tests/example_grub_script_test.in: Example grub-script test.
2111 * tests/example_scripted_test.in: Example scripted test.
2112 * tests/example_unit_test.c: Example whitebox unit test.
2113
2114 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
2117 Add loader/i386/multiboot_mbi.c.
2118 (multiboot2_mod_SOURCES): Likewise.
2119 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
2120 (multiboot2_mod_SOURCES): Likewise.
2121 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
2122 (grub_multiboot_make_mbi): Likewise.
2123 (grub_multiboot_free_mbi): Likewise.
2124 (grub_multiboot_init_mbi): Likewise.
2125 (grub_multiboot_add_module): Likewise.
2126 (grub_multiboot_set_bootdev): Likewise.
2127 * loader/i386/multiboot.c (mbi): Removed.
2128 (mbi_dest): Likewise.
2129 (alloc_mbi): New variable.
2130 (grub_multiboot_payload_size): Removed. All users updated.
2131 (grub_multiboot_pure_size): New variable.
2132 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
2133 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
2134 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
2135 (grub_fill_multiboot_mmap): Likewise.
2136 (grub_multiboot_get_bootdev): Likewise.
2137 (grub_multiboot): Use multiboot_mbi functions.
2138 * loader/i386/multiboot_mbi.c: New file.
2139
2140 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
2143 it would result in module crash.
2144
2145 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
2148 (grub_ofconsole_getwh): Split to ...
2149 (grub_ofconsole_getwh): ... this.
2150 (grub_ofconsole_dimensions): ...and this.
2151 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
2152
2153 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
2154
2155 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
2156
2157 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 * loader/i386/pc/multiboot2.c: Removed stalled file.
2160
2161 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
2164 Reported by: Grégoire Sutre
2165
2166 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
2167
2168 * util/misc.c (canonicalize_file_name): New function.
2169 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
2170 instead of realpath().
2171
2172 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
2173
2174 * util/grub-install.in (usage): Clarify meaning of --root-directory,
2175 and make it clearer that it's optional. Based on confusion
2176 witnessed on IRC.
2177
2178 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
2181 in premature implicit newline.
2182
2183 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
2186 which resulted in garbled command line at the end of screen.
2187
2188 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
2189
2190 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
2191 initialization with similar approach as with other Linux loaders.
2192
2193 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
2194
2195 Fix i386-ieee1275 build.
2196
2197 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
2198 and grub_term_height() for video_{width,height} initialization.
2199
2200 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
2201
2202 Fix grub-emu build.
2203
2204 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
2205
2206 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2207 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
2208
2209 Support for multiple terminals.
2210
2211 * Makefile.in (pkglib_DATA): terminal.lst.
2212 (terminal.lst): New target.
2213 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
2214 (GRUB_MOD_INIT(handler)): Likewise.
2215 (GRUB_MOD_FINI(handler)): Likewise.
2216 * commands/help.c (grub_cmd_help): Handle multiple terminals.
2217 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
2218 * commands/sleep.c (do_print): Use grub_term_restore_pos.
2219 (grub_cmd_sleep): Use grub_term_save_pos.
2220 * commands/terminal.c: New file.
2221 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
2222 commands/terminal.c and lib/charset.c.
2223 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
2224 (pkglib_MODULES): Add terminal.mod.
2225 (terminal_mod_SOURCES): New variable.
2226 (terminal_mod_CFLAGS): Likewise.
2227 (terminal_mod_LDFLAGS): Likewise.
2228 * genhandlerlist.sh: Don't handle terminals.
2229 * genmk.rb: Generate terminal-*.lst.
2230 * genterminallist.sh: New file.
2231 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
2232 (grub_is_valid_utf8): Likewise.
2233 (grub_utf8_to_ucs4_alloc): Likewise.
2234 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
2235 (grub_menu_register_viewer): Changed argument.
2236 (grub_menu_try_text): New proto.
2237 (grub_gfxmenu_try_hook): New declaration.
2238 * include/grub/normal.h (grub_normal_exit_level): New declaration.
2239 (grub_menu_init_page): Additional argument term.
2240 (grub_normal_init_page): Likewise.
2241 (grub_cmdline_get): Arguments simplified.
2242 (grub_utf8_to_ucs4_alloc): Removed.
2243 (grub_print_ucs4): Additional argument term.
2244 (grub_getstringwidth): Likewise.
2245 (grub_print_message_indented): Likewise.
2246 (grub_menu_text_register_instances): New proto.
2247 (grub_show_menu): Likewise.
2248 (read_terminal_list): Likewise.
2249 (grub_set_more): Likewise.
2250 * include/grub/parser.h: Include handler.h.
2251 * include/grub/reader.h: Rewritten.
2252 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
2253 (GRUB_TERM_WIDTH): Changed to function.
2254 (GRUB_TERM_HEIGHT): Likewise.
2255 (GRUB_TERM_BORDER_WIDTH): Likewise.
2256 (GRUB_TERM_BORDER_HEIGHT): Likewise.
2257 (GRUB_TERM_NUM_ENTRIES): Likewise.
2258 (GRUB_TERM_ENTRY_WIDTH): Likewise.
2259 (GRUB_TERM_CURSOR_X): Likewise.
2260 (grub_term_input_class): Likewise.
2261 (grub_term_output_class): Likewise.
2262 (grub_term_outputs_disabled): New declaration.
2263 (grub_term_inputs_disabled): Likewise.
2264 (grub_term_outputs): Likewise.
2265 (grub_term_inputs): Likewise.
2266 (grub_term_register_input): Rewritten.
2267 (grub_term_register_output): Likewise.
2268 (grub_term_unregister_input): Likewise.
2269 (grub_term_unregister_output): Likewise.
2270 (FOR_ACTIVE_TERM_INPUTS): New macro.
2271 (FOR_DISABLED_TERM_INPUTS): Likewise.
2272 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
2273 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
2274 * include/grub/terminfo.h: Add oterm argument to all protypes.
2275 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
2276 Use grub_rescue_run.
2277 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
2278 All users updated.
2279 * kern/reader.c: Removed. All users updated.
2280 * kern/rescue_reader.c (grub_rescue_init): Removed.
2281 (grub_rescue_reader): Likewise.
2282 (grub_register_rescue_reader): Likewise.
2283 (grub_rescue_run): New function based on kern/reader.c.
2284 * kern/term.c: Adapted for multiterm.
2285 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
2286 (grub_is_valid_utf8): Likewise.
2287 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
2288 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
2289 right terminal.
2290 * loader/i386/linux.c (grub_linux_boot): Likewise.
2291 * normal/auth.c (grub_username_get): New function.
2292 (grub_auth_check_authentication): Use grub_username_get.
2293 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
2294 * normal/color.c: Adapt for multiterm.
2295 * normal/main.c (read_config_file): Don't use grub_reader_loop.
2296 (grub_normal_init_page): Additional argument term.
2297 (read_lists): Call read_terminal_lists.
2298 (grub_enter_normal_mode): Call grub_cmdline_run.
2299 Handle grub_normal_exit_level.
2300 (grub_cmd_normal): Make reentrant.
2301 (grub_cmd_normal_exit): New function.
2302 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
2303 * normal/menu.c: Adapt for multiterm.
2304 * normal/menu_entry.c: Likewise.
2305 * normal/menu_text.c: Likewise.
2306 * normal/menu_viewer.c: Removed. All users updated.
2307 * normal/term.c: New file.
2308 * util/console.c: Change order of includes to workaround a bug in
2309 ncurses headers.
2310 * term/terminfo.c: New argument oterm on all exported functions.
2311 All users updated.
2312 * util/grub-editenv.c (grub_term_input_class): Removed.
2313 (grub_term_output_class): Likewise.
2314
2315 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
2316
2317 Make loader output a bit more user-friendly.
2318
2319 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
2320 is being loaded. Likewise for the Hurd.
2321
2322 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
2323 that kernel of FreeBSD ${version} is being loaded.
2324
2325 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
2326 grub_dprintf().
2327 (grub_cmd_initrd): Likewise.
2328 * util/grub.d/10_linux.in (linux_entry): Print message indicating
2329 that Linux ${version} is being loaded. Likewise for initrd.
2330
2331 2010-01-09 Carles Pina i Estany <carles@pina.cat>
2332
2333 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
2334
2335 2010-01-08 Carles Pina i Estany <carles@pina.cat>
2336
2337 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
2338 (GRUB_MOD_INIT): Gettextizze.
2339 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
2340 (GRUB_MOD_INIT): Gettextizze.
2341 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
2342 (grub_cmd_linux): Capitalise Linux.
2343 (GRUB_MOD_INIT): Gettextizze.
2344 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
2345 (grub_cmd_linux): Capitalise Linux.
2346 (GRUB_MOD_INIT): Gettextizze.
2347 * loader/i386/linux.c: Include `<grub/i18n.h>'.
2348 (grub_cmd_linux): Capitalise Linux.
2349 (GRUB_MOD_INIT): Gettextizze.
2350 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
2351 (GRUB_MOD_INIT): Gettextizze.
2352 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
2353 (grub_cmd_linux): Capitalise Linux.
2354 (GRUB_MOD_INIT): Gettextizze.
2355 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
2356 (grub_cpu_xnu_init): Gettextizze.
2357 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
2358 (GRUB_MOD_INIT): Gettextizze.
2359 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
2360 (GRUB_MOD_INIT): Gettextizze.
2361 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
2362 (grub_linux_load64): Capitalise Linux.
2363 (GRUB_MOD_INIT): Gettextizze.
2364 * loader/xnu.c: Include `<grub/i18n.h>'.
2365 (GRUB_MOD_INIT): Gettextizze.
2366 * po/POTFILES: Add `loader/efi/appleloader.c',
2367 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
2368 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
2369 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
2370 `loader/i386/xnu.c', `loader/multiboot_loader.c',
2371 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
2372 and `loader/xnu.c'.
2373
2374 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
2375
2376 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
2377
2378 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
2379
2380 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
2381 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
2382 * util/mkisofs/mkisofs.c (main): Readjust --version output.
2383
2384 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
2385
2386 Reset Multiboot 2 support. New loader implements the draft in
2387 /branches/multiboot2 and shares as much code as possible with the
2388 production Multiboot 1 implementation.
2389
2390 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
2391 * loader/multiboot2.c: Likewise.
2392 * loader/i386/multiboot_helper.S: Likewise.
2393 * include/multiboot2.h: Replace with latest version from the draft
2394 in /branches/multiboot2.
2395
2396 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
2397 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
2398 and `loader/multiboot2.c'.
2399 (pkglib_MODULES): Add `multiboot2.mod'.
2400 (multiboot2_mod_SOURCES): New variable.
2401 (multiboot2_mod_LDFLAGS): Likewise.
2402 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
2403
2404 * conf/i386-pc.rmk: Likewise.
2405
2406 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
2407 (multiboot_mod_SOURCES): Remove variable.
2408 (multiboot_mod_LDFLAGS): Likewise.
2409 (multiboot_mod_CFLAGS): Likewise.
2410
2411 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
2412 `<multiboot2.h>' instead of `<multiboot.h>'.
2413 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
2414 (MULTIBOOT_HEADER_MAGIC): New macros.
2415
2416 * loader/multiboot_loader.c (module_version_status): Remove variable.
2417 (find_multi_boot2_header): Remove function.
2418 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
2419 logic. Always check for the Multiboot version we're compiling for.
2420 (grub_cmd_module_loader): Likewise.
2421 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
2422 command instead of `multiboot'.
2423
2424 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
2425
2426 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
2427 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
2428 all users.
2429
2430 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
2431 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 Fix breakage introduced with previous commit.
2434
2435 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
2436 commands.
2437 * normal/handler.c (read_handler_list): Revert part of previous commit
2438 affecting this file.
2439 * normal/main.c (read_lists): Move read_handler_list() call back to ...
2440 (grub_normal_execute): ... here.
2441
2442 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
2443
2444 Merge prefix-redefinition-fix branch.
2445
2446 * normal/autofs.c (read_fs_list): Make function capable of being
2447 run multiple times, gracefuly replacing the previous data
2448 structures.
2449 * normal/dyncmd.c (read_command_list): Likewise.
2450 * normal/handler.c (read_handler_list): Likewise.
2451 * normal/main.c (read_lists): New function. Calls all the
2452 list reading functions.
2453 (grub_normal_execute): Use read_lists() instead of calling all
2454 list reading functions explicitly. Register read_lists() as a
2455 variable hook attached to ${prefix}.
2456
2457 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 Merge crypto branch.
2460
2461 * Makefile.in (pkglib_DATA): Add crypto.lst.
2462 (crypto.lst): New target.
2463 * commands/hashsum.c: New file.
2464 * commands/password.c (check_password): Use grub_crypto_memcmp.
2465 * commands/password_pbkdf2.c: New file.
2466 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
2467 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
2468 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
2469 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
2470 -I$(srcdir)/lib/libgcrypt_wrap.
2471 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
2472 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
2473 password_pbkdf2.mod.
2474 (crypto_mod_SOURCES): New variable.
2475 (crypto_mod_CFLAGS): Likewise.
2476 (crypto_mod_LDFLAGS): Likewise.
2477 (hashsum_mod_SOURCES): New variable.
2478 (hashsum_mod_CFLAGS): Likewise.
2479 (hashsum_mod_LDFLAGS): Likewise.
2480 (pbkdf2_mod_SOURCES): New variable.
2481 (pbkdf2_mod_CFLAGS): Likewise.
2482 (pbkdf2_mod_LDFLAGS): Likewise.
2483 (password_pbkdf2_mod_SOURCES): New variable.
2484 (password_pbkdf2_mod_CFLAGS): Likewise.
2485 (password_pbkdf2_mod_LDFLAGS): Likewise.
2486 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
2487 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
2488 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
2489 Include conf/gcry.rmk.
2490 * include/grub/auth.h: Rewritten.
2491 * include/grub/crypto.h: New file.
2492 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
2493 * include/grub/normal.h (read_crypto_list): New prototype.
2494 * lib/crypto.c: New file.
2495 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2496 * lib/pbkdf2.c: Likewise.
2497 * normal/auth.c (grub_auth_strcmp): Removed.
2498 (grub_iswordseparator): Likewise.
2499 (grub_auth_strword): Likewise.
2500 (is_authenticated): Use grub_strword.
2501 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
2502 and grub_strword. Pass entered password to authentication callback.
2503 * normal/crypto.c: New file.
2504 * normal/main.c: Call read_crypto_list.
2505 * util/grub-mkpasswd-pbkdf2.c: New file.
2506 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
2507
2508 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 Fix descent and ascent calculation.
2511
2512 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
2513 (options): New option "asce".
2514 (usage): Likewise.
2515 (add_char): Ignore invalid glyphs for descent calculation.
2516 Calculate ascent from actual content.
2517 (print_glyphs): Use 'asce'.
2518 (write_font): Likewise. Allow ascent override.
2519 (main): Handle "asce" option.
2520
2521 2010-01-06 Carles Pina i Estany <carles@pina.cat>
2522
2523 * kern/err.c: Include `<grub/i18n.h>'.
2524 (grub_print_error): Add full stop. Gettextizze.
2525 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
2526 (grub_bsd_load_elf): Capitalise ELF.
2527 (grub_cmd_freebsd_loadenv): Add `s' in error string.
2528 (grub_cmd_freebsd_module): Likewise.
2529 (grub_cmd_freebsd_module_elf): Likewise.
2530 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
2531
2532 2010-01-06 Carles Pina i Estany <carles@pina.cat>
2533
2534 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
2535 * commands/search_file.c (HELP_MESSAGE): New macro.
2536 * commands/search_label.c (HELP_MESSAGE): Likewise.
2537 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
2538 * po/POTFILES: Add `commands/search_file.c',
2539 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
2540 `commands/search.c'.
2541
2542 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
2543
2544 * config.rpath: Update from Gnulib.
2545
2546 2010-01-05 Yves Blusseau <blusseau@zetam.org>
2547
2548 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
2549
2550 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
2551
2552 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
2553
2554 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
2555
2556 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
2557 arguments to fread so that we get a return value in bytes, rather
2558 than something that will normally be rounded down to 0.
2559 Adjust error handling to avoid producing garbage when size_t is not
2560 the same size as long long.
2561
2562 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
2563
2564 * util/mkisofs/write.c (padblock_write): Check return value of
2565 fread.
2566
2567 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
2568
2569 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
2570 floppy images now.
2571
2572 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
2573
2574 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
2575
2576 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
2577 instead of manual alignment.
2578 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
2579 verbose). Avoid attempts to read past end of the device
2580 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
2581 but GRUB_DISK_CACHE_SIZE may exceed that).
2582
2583 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
2584
2585 * commands/crc.c (grub_cmd_crc): Abort on read errors.
2586 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
2587 it to upper layer.
2588
2589 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
2592 New constant.
2593 (grub_efi_piwg_device_path): New structure
2594 (grub_efi_piwg_device_path_t): New type.
2595 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
2596 (devpath_1): Transform to a structure. All users updated.
2597 (devpath_2): Likewise.
2598 (devpath_3): Likewise.
2599 (devpath_4): Likewise.
2600 (devpath_5): Likewise.
2601
2602 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * loader/efi/appleloader.c: Restored. Update all users.
2605
2606 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
2607
2608 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
2609
2610 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
2611 (struct boot_blocklist): Move from here ...
2612 * include/grub/i386/pc/boot.h [ASM_FILE]
2613 (struct grub_boot_blocklist): ... to here. Update all users.
2614 (setup): Only initialize `start' member of `first_block'
2615 structure. Add assert() calls to verify the other members.
2616
2617 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
2618 (generate_image): Fix broken blocklist length initialization.
2619 Add assert() call to verify blocklist `segment' field.
2620
2621 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
2622
2623 * loader/efi/appleloader.c: Remove. Update all users.
2624
2625 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
2626
2627 * boot/i386/pc/boot.S: Update copyright year.
2628 * boot/i386/pc/cdboot.S: Likewise.
2629 * boot/i386/pc/diskboot.S: Likewise.
2630 * boot/i386/pc/lnxboot.S: Likewise.
2631 * boot/i386/pc/pxeboot.S: Likewise.
2632 * bus/pci.c: Likewise.
2633 * commands/cmp.c: Likewise.
2634 * commands/help.c: Likewise.
2635 * commands/hexdump.c: Likewise.
2636 * commands/i386/pc/halt.c: Likewise.
2637 * commands/i386/pc/play.c: Likewise.
2638 * commands/i386/pc/vbeinfo.c: Likewise.
2639 * commands/ls.c: Likewise.
2640 * commands/test.c: Likewise.
2641 * disk/dmraid_nvidia.c: Likewise.
2642 * disk/i386/pc/biosdisk.c: Likewise.
2643 * disk/ieee1275/nand.c: Likewise.
2644 * disk/ieee1275/ofdisk.c: Likewise.
2645 * disk/lvm.c: Likewise.
2646 * disk/raid.c: Likewise.
2647 * disk/raid6_recover.c: Likewise.
2648 * disk/scsi.c: Likewise.
2649 * fs/affs.c: Likewise.
2650 * fs/cpio.c: Likewise.
2651 * fs/ext2.c: Likewise.
2652 * fs/hfs.c: Likewise.
2653 * fs/iso9660.c: Likewise.
2654 * fs/ntfs.c: Likewise.
2655 * fs/sfs.c: Likewise.
2656 * fs/udf.c: Likewise.
2657 * fs/ufs.c: Likewise.
2658 * fs/xfs.c: Likewise.
2659 * gencmdlist.sh: Likewise.
2660 * genmk.rb: Likewise.
2661 * include/grub/disk.h: Likewise.
2662 * include/grub/efi/api.h: Likewise.
2663 * include/grub/efi/efi.h: Likewise.
2664 * include/grub/efi/pe32.h: Likewise.
2665 * include/grub/elf.h: Likewise.
2666 * include/grub/fs.h: Likewise.
2667 * include/grub/i386/at_keyboard.h: Likewise.
2668 * include/grub/i386/pc/memory.h: Likewise.
2669 * include/grub/i386/pc/vbe.h: Likewise.
2670 * include/grub/i386/pci.h: Likewise.
2671 * include/grub/i386/tsc.h: Likewise.
2672 * include/grub/ieee1275/ieee1275.h: Likewise.
2673 * include/grub/ntfs.h: Likewise.
2674 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
2675 * include/grub/sparc64/libgcc.h: Likewise.
2676 * include/grub/symbol.h: Likewise.
2677 * include/grub/types.h: Likewise.
2678 * include/multiboot2.h: Likewise.
2679 * io/gzio.c: Likewise.
2680 * kern/device.c: Likewise.
2681 * kern/disk.c: Likewise.
2682 * kern/efi/efi.c: Likewise.
2683 * kern/efi/mm.c: Likewise.
2684 * kern/elf.c: Likewise.
2685 * kern/file.c: Likewise.
2686 * kern/i386/dl.c: Likewise.
2687 * kern/i386/pc/init.c: Likewise.
2688 * kern/i386/pc/startup.S: Likewise.
2689 * kern/ieee1275/ieee1275.c: Likewise.
2690 * kern/ieee1275/init.c: Likewise.
2691 * kern/main.c: Likewise.
2692 * kern/mm.c: Likewise.
2693 * kern/powerpc/dl.c: Likewise.
2694 * kern/sparc64/dl.c: Likewise.
2695 * kern/x86_64/dl.c: Likewise.
2696 * lib/hexdump.c: Likewise.
2697 * loader/efi/appleloader.c: Likewise.
2698 * loader/i386/ieee1275/linux.c: Likewise.
2699 * loader/i386/pc/chainloader.c: Likewise.
2700 * loader/i386/pc/linux.c: Likewise.
2701 * loader/i386/pc/multiboot2.c: Likewise.
2702 * loader/ieee1275/multiboot2.c: Likewise.
2703 * loader/multiboot2.c: Likewise.
2704 * loader/multiboot_loader.c: Likewise.
2705 * loader/powerpc/ieee1275/linux.c: Likewise.
2706 * normal/completion.c: Likewise.
2707 * normal/menu_entry.c: Likewise.
2708 * partmap/apple.c: Likewise.
2709 * util/grub.d/10_hurd.in: Likewise.
2710 * util/hostfs.c: Likewise.
2711 * video/readers/png.c: Likewise.
2712
2713 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
2714
2715 * include/grub/misc.h (GNUC_PREREQ): New macro.
2716 (ATTRIBUTE_ERROR): New macro.
2717 * include/grub/list.h (grub_bad_type_cast_real): Use
2718 ATTRIBUTE_ERROR.
2719
2720 2010-01-03 Carles Pina i Estany <carles@pina.cat>
2721
2722 * normal/menu_text.c (print_message): Change messages.
2723
2724 2010-01-03 Carles Pina i Estany <carles@pina.cat>
2725
2726 * normal/menu_entry.c (store_completion): Gettextizze.
2727
2728 2010-01-03 Carles Pina i Estany <carles@pina.cat>
2729
2730 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
2731
2732 2010-01-03 Carles Pina i Estany <carles@pina.cat>
2733
2734 * po/POTFILES: Sort correctly.
2735
2736 2010-01-03 Carles Pina i Estany <carles@pina.cat>
2737
2738 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
2739 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
2740 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
2741 full stop.
2742 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
2743 summary. Gettextizze the strings.
2744 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
2745 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
2746 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
2747 full stop.
2748 (GRUB_MOD_INIT): Remove command name from summary.
2749 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
2750 summary.
2751 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
2752 * term/i386/pc/serial.c (options): Add full stops.
2753 (GRUB_MOD_INIT): Remove command name from the summary.
2754
2755 2010-01-03 Carles Pina i Estany <carles@pina.cat>
2756
2757 * commands/acpi.c: Gettextizze help strings and/or options. Include
2758 `grub/i18n.h' if needed.
2759 * commands/blocklist.c: Likewise.
2760 * commands/boot.c: Likewise.
2761 * commands/cat.c: Likewise.
2762 * commands/cmp.c: Likewise.
2763 * commands/configfile.c: Likewise.
2764 * commands/crc.c: Likewise.
2765 * commands/date.c: Likewise.
2766 * commands/echo.c: Likewise.
2767 * commands/efi/fixvideo.c: Likewise.
2768 * commands/efi/loadbios.c: Likewise.
2769 * commands/gptsync.c: Likewise.
2770 * commands/halt.c: Likewise.
2771 * commands/handler.c: Likewise.
2772 * commands/hdparm.c: Likewise.
2773 * commands/hexdump.c: Likewise.
2774 * commands/i386/cpuid.c: Likewise.
2775 * commands/i386/pc/drivemap.c: Likewise.
2776 * commands/i386/pc/halt.c: Likewise.
2777 * commands/i386/pc/pxecmd.c: Likewise.
2778 * commands/i386/pc/vbeinfo.c: Likewise.
2779 * commands/i386/pc/vbetest.c: Likewise.
2780 * commands/ieee1275/suspend.c: Likewise.
2781 * commands/keystatus.c: Likewise.
2782 * commands/loadenv.c: Likewise.
2783 * commands/ls.c: Likewise.
2784 * commands/lsmmap.c: Likewise.
2785 * commands/lspci.c: Likewise.
2786 * commands/memrw.c: Likewise.
2787 * commands/minicmd.c: Likewise.
2788 * commands/parttool.c: Likewise.
2789 * commands/password.c: Likewise.
2790 * commands/probe.c: Likewise.
2791 * commands/read.c: Likewise.
2792 * commands/reboot.c: Likewise.
2793 * commands/search.c: Likewise.
2794 * commands/sleep.c: Likewise.
2795 * commands/test.c: Likewise.
2796 * commands/true.c: Likewise.
2797 * commands/usbtest.c: Likewise.
2798 * commands/videotest.c: Likewise.
2799 * commands/xnu_uuid.c: Likewise.
2800 * disk/loopback.c: Likewise.
2801 * hello/hello.c: Likewise.
2802 * loader/i386/bsd.c: Likewise.
2803 * term/i386/pc/serial.c: Likewise.
2804 * po/POTFILES: Add new files.
2805
2806 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
2807
2808 * term/i386/pc/at_keyboard.c
2809 (keyboard_controller_wait_untill_ready): Rename to ...
2810 (keyboard_controller_wait_until_ready): ... this. Update all users.
2811
2812 2010-01-01 Carles Pina i Estany <carles@pina.cat>
2813
2814 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
2815 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
2816 string using string width.
2817 * normal/menu_text.c (grub_print_message_indented): Use
2818 grub_print_spaces and not print_spaces.
2819 (print_timeout): Likewise.
2820 (print_spaces): Move to...
2821 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
2822
2823 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
2824
2825 Import from Gnulib.
2826
2827 * gnulib/getdelim.c: New file.
2828 * gnulib/getline.c: Likewise.
2829
2830 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
2831
2832 * include/grub/list.h (grub_assert_fail): Removed.
2833 (grub_bad_type_cast_real): New function.
2834 (grub_bad_type_cast): New macro.
2835 (GRUB_AS_LIST): Use grub_bad_type_cast.
2836 (GRUB_AS_LIST_P): Likewise.
2837 (GRUB_AS_NAMED_LIST): Likewise.
2838 (GRUB_AS_NAMED_LIST_P): Likewise.
2839 (GRUB_AS_PRIO_LIST): Likewise.
2840 (GRUB_AS_PRIO_LIST_P): Likewise.
2841 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
2842
2843 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
2846 Fix syntax error.
2847
2848 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
2849
2850 * configure.ac: Check for TARGET_CFLAGS initialization before we
2851 initialize it ourselves (sigh).
2852 Move a few modifications to TARGET_CFLAGS to be unconditional
2853 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
2854 eh_frame)
2855
2856 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
2857 * term/i386/pc/at_keyboard.c
2858 (keyboard_controller_wait_untill_ready): Likewise.
2859 (keyboard_controller_led): Rename `led_status' paramter to avoid
2860 name conflict.
2861
2862 2009-12-28 Carles Pina i Estany <carles@pina.cat>
2863
2864 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
2865 quotes.
2866
2867 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
2870
2871 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * normal/menu_text.c (grub_print_message_indented): Prevent
2874 past-the-end-of-array dereference.
2875
2876 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
2879 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
2880
2881 2009-12-27 Carles Pina i Estany <carles@pina.cat>
2882
2883 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
2884 * normal/main.c (grub_normal_read_line): Remove a space from the
2885 default prompt.
2886
2887 2009-12-27 Carles Pina i Estany <carles@pina.cat>
2888
2889 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
2890 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2891 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
2892 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
2893 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2894 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2895 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
2896
2897 2009-12-26 Carles Pina i Estany <carles@pina.cat>
2898
2899 * video/readers/jpeg.c (cmd): Declare.
2900 (grub_cmd_jpegtest): Use `grub_command_t' type.
2901 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
2902 Assign to `cmd'.
2903 (GRUB_MOD_FINI): Use `cmd' to unregister.
2904 * video/readers/png.c (cmd): Declare.
2905 (grub_cmd_pngtest): Use `grub_command_t' type.
2906 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
2907 Assign to `cmd'.
2908 (GRUB_MOD_FINI): Use `cmd' to unregister.
2909 * video/readers/tga.c (cmd): Declare.
2910 (grub_cmd_tgatest): Use `grub_command_t' type.
2911 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
2912 Assign to `cmd'.
2913 (GRUB_MOD_FINI): Use `cmd' to unregister.
2914
2915 2009-12-26 Carles Pina i Estany <carles@pina.cat>
2916
2917 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
2918 stops.
2919 * kern/corecmd.c (grub_register_core_commands): Likewise.
2920 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
2921 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
2922 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
2923 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2924 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
2925 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
2926 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
2927 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
2928 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2929 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2930 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
2931 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2932 * normal/handler.c (insert_handler): Likewise.
2933 * normal/main.c (GRUB_MOD_INIT): Likewise.
2934 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2935
2936 2009-12-26 Carles Pina i Estany <carles@pina.cat>
2937
2938 * commands/help.c (grub_cmd_help): Print the command name before the
2939 summary.
2940 (GRUB_MOD_INIT): Remove command name from the summary.
2941 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
2942 string as summary.
2943 * lib/arg.c (find_long): Print the command name before the summary.
2944 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
2945 summary.
2946 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
2947 * commands/cat.c (GRUB_MOD_INIT): Likewise.
2948 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
2949 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
2950 * commands/crc.c (GRUB_MOD_INIT): Likewise.
2951 * commands/date.c (GRUB_MOD_INIT): Likewise.
2952 * commands/echo.c (GRUB_MOD_INIT): Likewise.
2953 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
2954 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
2955 * commands/handler.c (GRUB_MOD_INIT): Likewise.
2956 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
2957 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
2958 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
2959 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
2960 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
2961 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
2962 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
2963 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
2964 * commands/ls.c (GRUB_MOD_INIT): Likewise.
2965 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
2966 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
2967 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
2968 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
2969 * commands/password.c (GRUB_MOD_INIT): Likewise.
2970 * commands/probe.c (GRUB_MOD_INIT): Likewise.
2971 * commands/read.c (GRUB_MOD_INIT): Likewise.
2972 * commands/search.c (GRUB_MOD_INIT): Likewise.
2973 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
2974 * commands/test.c (GRUB_MOD_INIT): Likewise.
2975 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
2976 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2977 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2978 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
2979 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2980 * lib/arg.c (GRUB_MOD_INIT): Likewise.
2981 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
2982 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
2983 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
2984 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2985 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2986 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
2987 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
2988 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
2989
2990 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 Use search command for preliminar UUID search.
2993
2994 * commands/search.c: Split into ...
2995 * commands/search_wrap.c: ...this
2996 * commands/search.c: ...and this.
2997 * commands/search_file.c: New file.
2998 * commands/search_label.c: New file.
2999 * commands/search_uuid.c: New file.
3000 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
3001 Add commands/search_wrap.c, commands/search_file.c,
3002 commands/search_label.c and commands/search_uuid.c.
3003 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
3004 (search_mod_SOURCES): Set to commands/search_wrap.c.
3005 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
3006 search_label.mod.
3007 (search_fs_file_mod_SOURCES): New variable.
3008 (search_fs_file_mod_CFLAGS): Likewise.
3009 (search_fs_file_mod_LDFLAGS): Likewise.
3010 (search_label_mod_SOURCES): Likewise.
3011 (search_label_mod_CFLAGS): Likewise.
3012 (search_label_mod_LDFLAGS): Likewise.
3013 (search_fs_uuid_mod_SOURCES): New variable.
3014 (search_fs_uuid_mod_CFLAGS): Likewise.
3015 (search_fs_uuid_mod_LDFLAGS): Likewise.
3016 (fs_file_mod_SOURCES): Removed.
3017 (fs_file_mod_CFLAGS): Likewise.
3018 (fs_file_mod_LDFLAGS): Likewise.
3019 (fs_uuid_mod_SOURCES): Removed.
3020 (fs_uuid_mod_CFLAGS): Likewise.
3021 (fs_uuid_mod_LDFLAGS): Likewise.
3022 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
3023 Set to util/grub-install.in.
3024 * disk/fs_file.c: Removed.
3025 * disk/fs_uuid.c: Likewise.
3026 * include/grub/search.h: New file.
3027 * util/grub-install.in: Handle sparc64.
3028 Create and use load.cfg.
3029 * util/sparc64/ieee1275/grub-install.in: Removed.
3030
3031 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
3034 Ignore return status if CF is cleared.
3035 (grub_biosdisk_get_diskinfo_standard): Likewise.
3036
3037 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
3038
3039 * term/i386/pc/at_keyboard.c
3040 (keyboard_controller_wait_untill_ready): New function.
3041 (grub_keyboard_controller_write, grub_keyboard_controller_read)
3042 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
3043 for keyboard polling, rather than duplicate the same loop. This
3044 saves a few bytes in code size.
3045
3046 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 Support for (pxe[:server[:gateway]]) syntax and
3049 use environment variable for PXE.
3050
3051 * commands/i386/pc/pxecmd.c (options): Removed.
3052 (print_ip): Removed.
3053 (grub_cmd_pxe): Removed
3054 (grub_cmd_pxe_unload): New function.
3055 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
3056 (grub_pxe_your_ip): Made static.
3057 (grub_pxe_default_server_ip): Likewise.
3058 (grub_pxe_default_gateway_ip): Likewise.
3059 (grub_pxe_blksize): Likewise.
3060 (parse_ip): New function.
3061 (grub_pxe_open): Support server and gateway specification.
3062 (grub_pxe_close): Free disk->data.
3063 (grub_pxefs_open): Use disk->data.
3064 (grub_pxefs_read): Likewise.
3065 (grub_env_write_readonly): New function.
3066 (set_mac_env): Likewise.
3067 (set_env_limn_ro): Likewise.
3068 (parse_dhcp_vendor): Likewise.
3069 (grub_pxe_detect): Set the environment variables.
3070 (set_ip_env): New function.
3071 (write_ip_env): Likewise.
3072 (grub_env_write_pxe_default_server): Likewise.
3073 (grub_env_write_pxe_default_gateway): Likewise.
3074 (grub_env_write_pxe_blocksize): Likewise.
3075 (GRUB_MOD_INIT(pxe)): Set environment variables.
3076 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
3077 (grub_pxe_mac_addr_t): ... this. All users updated.
3078 (grub_pxe_your_ip): Removed.
3079 (grub_pxe_server_ip): Likewise.
3080 (grub_pxe_gateway_ip): Likewise.
3081 (grub_pxe_blksize): Likewise.
3082
3083 2009-12-25 Carles Pina i Estany <carles@pina.cat>
3084
3085 * commands/help.c: Include `<grub/i18n.h>'.
3086 (grub_cmd_help): Gettextizze.
3087 (GRUB_MOD_INIT): Likewise.
3088 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
3089 (GRUB_MOD_INIT): Gettextizze.
3090 * commands/search.c: Include `<grub/i18n.h>'.
3091 (options): Gettextizze.
3092 (GRUB_MOD_INIT): Gettextizze.
3093 * lib/arg.c: Include `<grub/i18n.h>'.
3094 (help_options): Gettextizze.
3095 (find_long): Likewise.
3096 (grub_arg_show_help): Likewise.
3097 * normal/dyncmd.c: Include `<grub/i18n.h>'.
3098 (read_command_list): Gettextizze.
3099 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
3100 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
3101
3102 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
3103
3104 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
3105 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
3106 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
3107 (led_status): New variable.
3108 (keyboard_controller_led): New function.
3109 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
3110 update led status for caps lock, num lock and scroll lock.
3111
3112 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
3113
3114 * util/hostdisk.c (open_device): Fix a comment.
3115
3116 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
3117
3118 * util/grub-install.in (host_os): New variable.
3119 * util/i386/efi/grub-install.in (host_os): Likewise.
3120
3121 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
3122
3123 * util/mkisofs/write.c (padblock_write): Abort when given an
3124 excedingly large embed image, instead of silently truncating it.
3125
3126 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
3127
3128 * include/multiboot.h: Indentation fixes.
3129
3130 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
3131
3132 * include/multiboot.h (struct multiboot_aout_symbol_table)
3133 (struct multiboot_elf_section_header_table): New structure
3134 declarations (stolen from GRUB Legacy).
3135 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
3136 table information.
3137
3138 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
3139 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
3140 type aliases.
3141
3142 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
3143
3144 * include/multiboot.h: Make comments src2texi-friendly.
3145
3146 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
3147
3148 For consistency with [multiboot]/docs/boot.S.
3149
3150 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
3151 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
3152 (MULTIBOOT_MAGIC2): Rename from this ...
3153 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
3154
3155 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
3156
3157 * include/multiboot.h: Remove `<grub/types.h>'.
3158 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
3159 types. Update all users.
3160
3161 2009-12-25 Carles Pina i Estany <carles@pina.cat>
3162
3163 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
3164 `couldn't' and `can not' by `cannot'.
3165 * commands/i386/pc/drivemap.c: Likewise.
3166 * disk/ata.c: Likewise.
3167 * disk/ieee1275/nand.c: Likewise.
3168 * fs/affs.c: Likewise.
3169 * fs/fat.c: Likewise.
3170 * fs/hfs.c: Likewise.
3171 * fs/hfsplus.c: Likewise.
3172 * fs/iso9660.c: Likewise.
3173 * fs/jfs.c: Likewise.
3174 * fs/minix.c: Likewise.
3175 * fs/reiserfs.c: Likewise.
3176 * fs/sfs.c: Likewise.
3177 * fs/udf.c: Likewise.
3178 * fs/ufs.c: Likewise.
3179 * fs/xfs.c: Likewise.
3180 * loader/powerpc/ieee1275/linux.c: Likewise.
3181 * loader/sparc64/ieee1275/linux.c: Likewise.
3182 * util/grub-probe.c: Likewise.
3183 * util/misc.c: Likewise.
3184
3185 2009-12-24 Carles Pina i Estany <carles@pina.cat>
3186
3187 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
3188 grub_errno calls.
3189 * commands/acpi.c: Likewise.
3190 * commands/blocklist.c: Likewise.
3191 * commands/efi/loadbios.c: Likewise.
3192 * commands/i386/pc/drivemap.c: Likewise.
3193 * commands/loadenv.c: Likewise.
3194 * commands/memrw.c: Likewise.
3195 * commands/password.c: Likewise.
3196 * commands/videotest.c: Likewise.
3197 * disk/ata.c: Likewise.
3198 * disk/ata_pthru.c: Likewise.
3199 * disk/dmraid_nvidia.c: Likewise.
3200 * disk/ieee1275/nand.c: Likewise.
3201 * disk/ieee1275/ofdisk.c: Likewise.
3202 * disk/loopback.c: Likewise.
3203 * disk/lvm.c: Likewise.
3204 * disk/mdraid_linux.c: Likewise.
3205 * disk/raid.c: Likewise.
3206 * disk/raid6_recover.c: Likewise.
3207 * disk/scsi.c: Likewise.
3208 * efiemu/main.c: Likewise.
3209 * efiemu/mm.c: Likewise.
3210 * efiemu/pnvram.c: Likewise.
3211 * efiemu/symbols.c: Likewise.
3212 * font/font.c: Likewise.
3213 * fs/cpio.c: Likewise.
3214 * fs/hfsplus.c: Likewise.
3215 * fs/iso9660.c: Likewise.
3216 * fs/jfs.c: Likewise.
3217 * fs/minix.c: Likewise.
3218 * fs/ntfs.c: Likewise.
3219 * fs/ntfscomp.c: Likewise.
3220 * fs/reiserfs.c: Likewise.
3221 * fs/ufs.c: Likewise.
3222 * fs/xfs.c: Likewise.
3223 * gettext/gettext.c: Likewise.
3224 * include/grub/auth.h: Likewise.
3225 * kern/elf.c: Likewise.
3226 * kern/file.c: Likewise.
3227 * kern/ieee1275/init.c: Likewise.
3228 * kern/ieee1275/mmap.c: Likewise.
3229 * kern/ieee1275/openfw.c: Likewise.
3230 * kern/powerpc/dl.c: Likewise.
3231 * kern/sparc64/dl.c: Likewise.
3232 * lib/arg.c: Likewise.
3233 * loader/i386/bsd.c: Likewise.
3234 * loader/i386/bsdXX.c: Likewise.
3235 * loader/i386/efi/linux.c: Likewise.
3236 * loader/i386/efi/xnu.c: Likewise.
3237 * loader/i386/ieee1275/linux.c: Likewise.
3238 * loader/i386/linux.c: Likewise.
3239 * loader/i386/multiboot.c: Likewise.
3240 * loader/i386/pc/linux.c: Likewise.
3241 * loader/i386/pc/multiboot2.c: Likewise.
3242 * loader/i386/xnu.c: Likewise.
3243 * loader/ieee1275/multiboot2.c: Likewise.
3244 * loader/macho.c: Likewise.
3245 * loader/machoXX.c: Likewise.
3246 * loader/multiboot2.c: Likewise.
3247 * loader/multiboot_loader.c: Likewise.
3248 * loader/powerpc/ieee1275/linux.c: Likewise.
3249 * loader/sparc64/ieee1275/linux.c: Likewise.
3250 * loader/xnu.c: Likewise.
3251 * loader/xnu_resume.c: Likewise.
3252 * mmap/i386/pc/mmap.c: Likewise.
3253 * normal/menu_viewer.c: Likewise.
3254 * partmap/acorn.c: Likewise.
3255 * partmap/amiga.c: Likewise.
3256 * partmap/apple.c: Likewise.
3257 * script/lexer.c: Likewise.
3258 * term/gfxterm.c: Likewise.
3259 * term/i386/pc/serial.c: Likewise.
3260 * term/i386/pc/vga.c: Likewise.
3261 * term/ieee1275/ofconsole.c: Likewise.
3262 * term/terminfo.c: Likewise.
3263 * video/bitmap.c: Likewise.
3264 * video/efi_gop.c: Likewise.
3265 * video/efi_uga.c: Likewise.
3266 * video/fb/video_fb.c: Likewise.
3267 * video/i386/pc/vbe.c: Likewise.
3268 * video/readers/tga.c: Likewise.
3269 * video/video.c: Likewise.
3270
3271 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
3272
3273 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
3274 * commands/lspci.c: Likewise.
3275 * commands/probe.c: Likewise.
3276 * commands/xnu_uuid.c: Likewise.
3277 * conf/i386-coreboot.rmk: Likewise.
3278 * conf/i386-efi.rmk: Likewise.
3279 * conf/i386-ieee1275.rmk: Likewise.
3280 * conf/i386-pc.rmk: Likewise.
3281 * conf/powerpc-ieee1275.rmk: Likewise.
3282 * conf/sparc64-ieee1275.rmk: Likewise.
3283 * conf/x86_64-efi.rmk: Likewise.
3284 * fs/i386/pc/pxe.c: Likewise.
3285 * gettext/gettext.c: Likewise.
3286 * include/grub/efi/graphics_output.h: Likewise.
3287 * include/grub/i386/pc/memory.h: Likewise.
3288 * kern/env.c: Likewise.
3289 * kern/i386/qemu/startup.S: Likewise.
3290 * lib/i386/pc/biosnum.c: Likewise.
3291 * lib/i386/relocator.c: Likewise.
3292 * lib/i386/relocator_asm.S: Likewise.
3293 * lib/relocator.c: Likewise.
3294 * loader/i386/bsd.c: Likewise.
3295 * loader/i386/multiboot.c: Likewise.
3296 * loader/i386/pc/chainloader.c: Likewise.
3297 * loader/i386/xnu.c: Likewise.
3298 * loader/xnu.c: Likewise.
3299 * normal/main.c: Likewise.
3300 * normal/menu_text.c: Likewise.
3301 * util/getroot.c: Likewise.
3302 * util/grub-mkconfig_lib.in: Likewise.
3303 * util/grub.d/00_header.in: Likewise.
3304 * util/i386/pc/grub-mkimage.c: Likewise.
3305 * util/mkisofs/eltorito.c: Likewise.
3306 * util/mkisofs/exclude.h: Likewise.
3307 * util/mkisofs/hash.c: Likewise.
3308 * util/mkisofs/iso9660.h: Likewise.
3309 * util/mkisofs/joliet.c: Likewise.
3310 * util/mkisofs/mkisofs.c: Likewise.
3311 * util/mkisofs/mkisofs.h: Likewise.
3312 * util/mkisofs/multi.c: Likewise.
3313 * util/mkisofs/name.c: Likewise.
3314 * util/mkisofs/rock.c: Likewise.
3315 * util/mkisofs/tree.c: Likewise.
3316 * util/mkisofs/write.c: Likewise.
3317 * video/efi_gop.c: Likewise.
3318
3319 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
3322 size counting.
3323
3324 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
3325
3326 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
3327 * genmk.rb (class SCRIPT): Modify the target file instead of source.
3328
3329 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
3332 (GRUB_MOD_INIT(memrw)): Update help line.
3333
3334 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
3337 Use grub_extcmd_t. All users updated.
3338 (options): New variable.
3339 (grub_cmd_read): Restructure for readability. Support "-v" option.
3340 (grub_cmd_write): Restructure for readability.
3341
3342 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
3343
3344 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
3345
3346 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
3347
3348 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
3349 with the actual contents of the correspondending make variable.
3350 * util/grub-mkrescue.in (pkglib_DATA): New variable.
3351 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
3352 specifying `*.lst' and `efiemu??.o'
3353
3354 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
3355
3356 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
3357 after function name.
3358 Noticed by Rene Engelhard <rene@debian.org>.
3359
3360 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
3363 (options): New variable.
3364 (iospace): Likewise.
3365 (grub_lspci_iter): List IO spaces if "-i" was given.
3366 (grub_cmd_lspci): Parse options.
3367 (GRUB_MOD_INIT(lspci)): Use extcmd.
3368 (GRUB_MOD_FINI(lspci)): Likewise.
3369
3370 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
3371
3372 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
3373 `function' keyword.
3374 Patch by Tony Mancill <tmancill@debian.org>.
3375
3376 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
3379 (grub_uhci_portstatus): Likewise.
3380 (grub_uhci_portstatus): Add necessary delay.
3381 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
3382
3383 2009-12-21 Carles Pina i Estany <carles@pina.cat>
3384
3385 * commands/acpi.c (options): Fix capitalizations and/or full stops.
3386 (GRUB_MOD_INIT): Likewise.
3387 * commands/boot.c (GRUB_MOD_INIT): Likewise.
3388 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
3389 * commands/echo.c (options): Fix capitalizations and/or full stops.
3390 * commands/efi/loadbios.c (enable_rom_area): Likewise.
3391 (enable_rom_area): Likewise.
3392 (GRUB_MOD_INIT): Likewise.
3393 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
3394 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
3395 * commands/handler.c (GRUB_MOD_INIT): Likewise.
3396 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
3397 * commands/hexdump.c (options): Likewise.
3398 * commands/i386/cpuid.c (options): Likewise.
3399 (GRUB_MOD_INIT): Likewise.
3400 * commands/i386/pc/drivemap.c (options): Likewise.
3401 (GRUB_MOD_INIT): Likewise.
3402 * commands/i386/pc/halt (options): Likewise.
3403 (GRUB_MOD_INIT): Likewise.
3404 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
3405 * commands/i386/pc/pxecmd.c (options): Likewise.
3406 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
3407 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
3408 * commands/keystatus.c (options): Likewise.
3409 (GRUB_MOD_INIT): Likewise.
3410 * commands/loadenv.c (options): Likewise.
3411 * commands/ls.c (options): Likewise.
3412 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
3413 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
3414 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
3415 * commands/parttool.c (helpmsg): Likewise.
3416 * commands/probe.c (options): Likewise.
3417 * commands/read.c (GRUB_MOD_INIT): Likewise.
3418 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
3419 * commands/search.c (options): Likewise.
3420 * commands/sleep.c (options): Likewise.
3421 * commands/test.c (GRUB_MOD_INIT): Likewise.
3422 * commands/true.c (GRUB_MOD_INIT): Likewise.
3423 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
3424 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
3425 * lib/arg.c (help_options): Likewise.
3426 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
3427 `$(XGETTEXT)'.
3428 * po/POTFILES: Add `commands/loadenv.c'.
3429
3430 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
3431
3432 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
3433 instead of specifying them explicit.
3434
3435 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3436
3437 * NEWS: Add grub-probe support for GNU/Hurd.
3438
3439 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3440
3441 * NEWS: gettext was added after 1.97.
3442
3443 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3444
3445 * util/mkisofs/msdos_partition.h: New file (based on
3446 include/grub/msdos_partition.h).
3447 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
3448 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
3449 (ld_options, main): Recognize --protective-msdos-label.
3450 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
3451 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
3452 (padblock_write): If `use_protective_msdos_label' is set, patch a
3453 protective DOS-style label in the output image.
3454
3455 * util/grub-mkrescue.in: Use --protective-msdos-label.
3456
3457 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3458
3459 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
3460 boot.
3461
3462 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3463
3464 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
3465 variables.
3466 (ld_options, main): Recognize `--embedded-boot'.
3467 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
3468 declarations.
3469 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
3470 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
3471 (padblock_write): Likewise. Rewrite to support embedded boot image.
3472
3473 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
3474 for BIOS-based disk boot instead of only ElTorito.
3475
3476 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3477
3478 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
3479 build (not needed for bootstrap).
3480
3481 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3482
3483 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
3484 from i386-pc build (not needed for bootstrap).
3485 Rewrite a pair of strings.
3486
3487 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
3488
3489 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
3490
3491 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
3494
3495 2009-12-21 Andreas Born <futur.andy@googlemail.com>
3496
3497 * kern/env.c (grub_env_context_open): Mark exported variable for
3498 reexport.
3499
3500 2009-12-21 Andreas Born <futur.andy@googlemail.com>
3501
3502 * kern/env.c (grub_env_export): Create nonexistent variables before
3503 exporting.
3504
3505 2009-12-20 Carles Pina i Estany <carles@pina.cat>
3506
3507 * include/grub/auth.h: Include `<grub/i18n.h>'.
3508 (GRUB_GET_PASSWORD): Gettextizze string.
3509 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
3510 menu_text.c.
3511 (grub_utf8_to_ucs4_alloc): Fix indentation.
3512 (grub_print_ucs4): Likewise.
3513 (grub_getstringwidth): Likewise.
3514 (print_message_indented): New declaration.
3515 * normal/auth.c: Include `<grub/i18n.h>'.
3516 (grub_auth_check_authentication): Gettexttize string.
3517 * normal/cmdline.c: Include `<grub/i18n.h>'.
3518 (grub_cmdline_get): Gettextizze.
3519 * normal/color.c: Include `<grub/i18n.h>'.
3520 (grub_parse_color_name_pair): Gettexttize strings.
3521 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
3522 string (use `print_message_indented').
3523 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
3524 `include/grub/normal.h'.
3525 (print_message_indented): Renamed to ...
3526 (grub_print_message_indented): ... this. Remove `static' qualifer (now
3527 used in normal/main.c).
3528 (print_message): Use `grub_print_message_indented' instead of
3529 `print_message_indented'.
3530 (print_timeout): Likewise.
3531 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
3532 (grub_normal_print_device_info): Gettexttize strings.
3533 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
3534
3535 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
3538 of arguments. Return number of tokens and not arguments. All users
3539 updated.
3540
3541 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
3544 non-MSDOS paritions.
3545
3546 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * include/grub/types.h (UNUSED): Removed since it conflicts with
3549 NetBSD headers. All users changed to direct __attribute__ ((unused)).
3550 Reported by Grégoire Sutre.
3551
3552 2009-12-19 Carles Pina i Estany <carles@pina.cat>
3553
3554 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
3555 (grub_print_ucs4_alloc): Likewise.
3556 (grub_getstringwidth): Likewise.
3557 * normal/main.c (grub_normal_init_page): Gettextize version string.
3558 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
3559 (getstringwidth): Renamed to ...
3560 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
3561 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
3562 (grub_print_ucs4): Remove `static' qualifer (now used in
3563 normal/main.c).
3564 * po/POTFILES: Add normal/main.c.
3565
3566 2009-12-19 Carles Pina i Estany <carles@pina.cat>
3567
3568 * normal/menu_text.c (STANDARD_MARGIN): New macro.
3569 (print_message_indented): Add `margin_left' and `margin_right'
3570 parameters.
3571 (print_message): Update `print_message_indented' calls. Adds '\n' to the
3572 strings.
3573 (print_timeout): Use `print_message_indented' to print the message.
3574 Deletes `second_stage' parameter.
3575 (run_menu): Update `print_timeout' calls.
3576
3577 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 Fix console palette on OpenFirmware.
3580
3581 * term/ieee1275/ofconsole.c (MAX): Removed.
3582 (colors): Redone based on VGA palette.
3583 (grub_ofconsole_setcolor): Discard brightness bit since only 8
3584 colors are supported.
3585 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
3586
3587 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 Fix potential EfiEmu double prepare.
3590
3591 * efiemu/main.c (prepared): New variable
3592 (grub_efiemu_unload): Set prepare to '0'.
3593 (grub_efiemu_prepare): Return if already prepared. Set prepared.
3594
3595 set_virtual_address_map support.
3596
3597 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
3598 prototype.
3599 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
3600 prototype.
3601 (grub_efiemu_crc32): Likewise.
3602 (grub_efiemu_crc64): Likewise.
3603 (grub_efiemu_set_virtual_address_map): Likewise.
3604 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
3605 New definition.
3606 (grub_autoefi_set_virtual_address_map): Likewise.
3607 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
3608 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
3609 Restructure flow to accomodate it.
3610 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
3611 (grub_efiemu_crc): Recompute CRC32.
3612 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
3613 (efiemu_ptv_relocated): ... this. Made global. All users updated.
3614 * efiemu/symbols.c (relocated_handle): New variable.
3615 (grub_efiemu_free_syms): Free relocated_handle.
3616 (grub_efiemu_alloc_syms): Allocate relocated_handle.
3617 (grub_efiemu_write_sym_markers): New function.
3618 (grub_efiemu_set_virtual_address_map): Likewise.
3619
3620 Newer XNU parameters.
3621
3622 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
3623 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
3624 (grub_xnu_fill_devicetree): New prototype.
3625 (grub_xnu_heap_real_start): New variable.
3626 * loader/xnu.c (get_name_ptr): New function.
3627 (grub_xnu_load_driver): Fill namelen and name.
3628
3629 64-bit xnu support.
3630
3631 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
3632 and 'loader/macho64.c'.
3633 * conf/i386-pc.rmk: Likewise.
3634 * conf/x86_64-efi.rmk: Likewise.
3635 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
3636 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
3637 * include/grub/macho.h (grub_macho_segment64): New structure.
3638 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
3639 (grub_macho_size32): ... to this.
3640 (grub_macho32_get_entry_point): Renamed from ...
3641 (grub_macho_get_entry_point32): ... to this.
3642 (grub_macho_contains_macho64): New prototype.
3643 (grub_macho_size64): Likewise.
3644 (grub_macho_get_entry_point64): Likewise.
3645 (grub_macho32_load): Renamed from ...
3646 (grub_macho_load32): ... to this.
3647 (grub_macho32_filesize): Renamed from ...
3648 (grub_macho_filesize32): ... to this.
3649 (grub_macho32_readfile): Renamed from ...
3650 (grub_macho_readfile32): ... to this.
3651 (grub_macho_filesize64): New prototype.
3652 (grub_macho_readfile64): Likewise.
3653 (grub_macho_parse32): Likewise.
3654 (grub_macho_parse64): Likewise.
3655 * loader/macho.c: Split into ...
3656 * loader/machoXX.c: ... and this. Replace 32 with XX.
3657 * loader/macho32.c: New file.
3658 * loader/macho64.c: Likewise.
3659 * loader/xnu.c (grub_xnu_is_64bit): New variable.
3660 (grub_cmd_xnu_kernel): Make 32-bit only.
3661 (grub_cmd_xnu_kernel64): New function.
3662 (grub_xnu_load_driver): Support Mach-O 64.
3663 (grub_cmd_xnu_mkext): Likewise.
3664 * util/grub.d/30_os-prober.in (osx_entry): New function.
3665 Generate entries for 64-bit boot too.
3666
3667 Eliminate ad-hoc tree format in XNU and EfiEmu.
3668
3669 * efiemu/main.c (grub_efiemu_prepare): Update comment.
3670 * efiemu/pnvram.c: Rewritten to use environment variables.
3671 All users updated.
3672
3673 Inline utf16_to_utf8.
3674
3675 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
3676 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
3677 All users updated.
3678 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
3679
3680 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
3681 * commands/usbtest.c (grub_usb_get_string): ... move here.
3682 (usb_print_str): Fix error handling.
3683 * include/grub/usb.h (grub_usb_get_string): Remove.
3684
3685 UTF-8 to UTF-16 transformation.
3686
3687 * conf/common.rmk (pkglib_MODULES): Add charset.mod
3688 (charset_mod_SOURCES): New variable.
3689 (charset_mod_CFLAGS): Likewise.
3690 (charset_mod_LDFLAGS): Likewise.
3691 * include/grub/utf.h: New file.
3692 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
3693
3694 Support for device properties.
3695
3696 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
3697 (grub_xnu_devprop_device_header): Likewise.
3698 (grub_xnu_devprop_device_descriptor): Likewise.
3699 (grub_xnu_devprop_add_device): New prototype.
3700 (grub_xnu_devprop_remove_device): Likewise.
3701 (grub_xnu_devprop_remove_property): Likewise.
3702 (grub_xnu_devprop_add_property_utf8): Likewise.
3703 (grub_xnu_devprop_add_property_utf16): Likewise.
3704 (grub_cpu_xnu_init): Likewise.
3705 (grub_cpu_xnu_fini): Likewise.
3706 (grub_cpu_xnu_unload): Likewise.
3707 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
3708 (property_descriptor): Likewise.
3709 (devices): New variable.
3710 (grub_xnu_devprop_remove_property): New function.
3711 (grub_xnu_devprop_add_device): Likewise.
3712 (grub_xnu_devprop_remove_device): Likewise.
3713 (grub_xnu_devprop_add_property): Likewise.
3714 (grub_xnu_devprop_add_property_utf8): Likewise.
3715 (grub_xnu_devprop_add_property_utf16): Likewise.
3716 (hextoval): Likewise.
3717 (grub_cpu_xnu_fill_devprop): Likewise.
3718 (grub_cmd_devprop_load): Likewise.
3719 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
3720 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
3721 (cmd_devprop_load): New variable.
3722 (grub_cpu_xnu_init): New function.
3723 (grub_cpu_xnu_fini): Likewise.
3724 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
3725 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
3726 (grub_cmd_xnu_devtree): Likewise.
3727 (hextoval): New function.
3728 (unescape): Likewise.
3729 (grub_xnu_fill_devicetree): Likewise.
3730
3731 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
3732 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
3733
3734 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 Workaround for broken ATI VBE.
3737
3738 * video/i386/pc/vbe.c (last_set_mode): New variable.
3739 (grub_vbe_set_video_mode): Set 'last_set_mode'.
3740 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
3741 (grub_video_vbe_setup): Don't check for reserved flag.
3742
3743 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
3744
3745 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
3746 the `find' command.
3747
3748 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 UUID support for HFS.
3751
3752 * fs/hfs.c (grub_hfs_uuid): New function.
3753 (grub_hfs_fs): New value .uuid.
3754 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
3755
3756 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
3757
3758 Fix a segfault with parsing unknown long options.
3759
3760 * util/grub-mkrelpath.c (options): Zero terminate it.
3761
3762 2009-12-13 Carles Pina i Estany <carles@pina.cat>
3763
3764 * include/grub/misc.h (grub_puts): New declaration.
3765 (grub_puts_): Likewise.
3766 * kern/misc.c (grub_puts): New definition.
3767 (grub_puts_): Likewise.
3768
3769 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
3770
3771 * util/grub-probe.c (probe): Improve error message.
3772
3773 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
3774
3775 * loader/i386/multiboot_elfxx.c
3776 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
3777 initialization.
3778
3779 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3780
3781 Relocator framework
3782
3783 * loader/i386/xnu_helper.S: Removed. All users updated.
3784 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
3785 (relocator_mod_SOURCES): New variable.
3786 (relocator_mod_CFLAGS): Likewise.
3787 (relocator_mod_LDFLAGS): Likewise.
3788 (relocator_mod_ASFLAGS): Likewise.
3789 * conf/x86_64.rmk: Likewise.
3790 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
3791 (grub_multiboot_payload_entry_offset): Likewise.
3792 (grub_multiboot_forward_relocator): Likewise.
3793 (grub_multiboot_forward_relocator_end): Likewise.
3794 (grub_multiboot_backward_relocator): Likewise.
3795 (grub_multiboot_backward_relocator_end): Likewise.
3796 (grub_multiboot_payload_eip): New variable.
3797 (grub_multiboot_payload_orig): Likewise.
3798 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
3799 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
3800 * include/grub/i386/memory.h
3801 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
3802 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
3803 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
3804 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
3805 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
3806 * include/grub/i386/relocator.h: New file.
3807 * include/grub/x86_64/relocator.h: Likewise.
3808 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
3809 (XNU_RELOCATOR): New macro.
3810 (grub_xnu_launcher_start): Remove.
3811 (grub_xnu_launcher_end): Likewise.
3812 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
3813 (grub_xnu_heap_real_start): Remove.
3814 (grub_xnu_heap_start): Change to void *. All users updated.
3815 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
3816 * lib/i386/relocator.c: New file.
3817 * lib/i386/relocator_asm.S: Likewise.
3818 * lib/i386/relocator_backward.S: Likewise.
3819 * lib/mips/relocator.c: Likewise.
3820 * lib/mips/relocator_asm.S: Likewise.
3821 * lib/relocator.c: Likewise.
3822 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
3823 (entry): Removed.
3824 (playground): Likewise.
3825 (grub_multiboot_payload_orig): New variable.
3826 (grub_multiboot_payload_dest): Likewise.
3827 (grub_multiboot_payload_size): Likewise.
3828 (grub_multiboot_payload_eip): Likewise.
3829 (grub_multiboot_payload_esp): Likewise.
3830 (grub_multiboot_boot): Use grub_relocator32_boot.
3831 (grub_multiboot_unload): Free relocators.
3832 (grub_multiboot): Setup stack. Use relocators.
3833 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
3834 (grub_multiboot_load_elfXX): Use relocators.
3835 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
3836 (grub_multiboot_payload_size): Likewise.
3837 (grub_multiboot_payload_dest): Likewise.
3838 (grub_multiboot_payload_entry_offset): Likewise.
3839 (grub_multiboot_forward_relocator): Likewise.
3840 (grub_multiboot_backward_relocator): Likewise.
3841 (grub_multiboot_real_boot): Likewise.
3842 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
3843 (grub_xnu_entry_point): Likewise.
3844 (grub_xnu_arg1): Likewise.
3845 (grub_xnu_stack): Likewise.
3846 (grub_xnu_launch): Removed.
3847 (grub_xnu_boot_resume): New function.
3848 (grub_xnu_boot): Use relocators.
3849 * loader/i386/xnu_helper.S: Removed.
3850 * loader/xnu.c (grub_xnu_heap_start): New variable.
3851 (grub_xnu_heap_size): Likewise.
3852 (grub_xnu_heap_malloc): Use relocators.
3853 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
3854
3855 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
3858 anything.
3859
3860 2009-12-13 Carles Pina i Estany <carles@pina.cat>
3861
3862 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
3863 GRUB_ERR_NONE before calling grub_env_set.
3864
3865 2009-12-12 Robert Millan <rmh@aybabtu.com>
3866
3867 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
3868 * genmk.rb (video): New variable.
3869 (CLEANFILES, VIDEOFILES): Add #{video}.
3870 (#{video}): New target rule.
3871 * genvideolist.sh: New file.
3872 * Makefile.in (pkglib_DATA): Add video.lst.
3873 (video.lst): New target rule.
3874 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
3875 `video.lst'.
3876 * util/grub.d/30_os-prober.in: Replace `vbe' with
3877 ${GRUB_VIDEO_BACKEND}.
3878
3879 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
3880
3881 * THANKS: Add David Miller.
3882
3883 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 libpciaccess support.
3886
3887 * Makefile.in (LIBPCIACCESS): New variable.
3888 (enable_grub_emu_pci): Likewise.
3889 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
3890 util/pci.c and commands/lspci.c.
3891 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
3892 * configure.ac (grub-emu-pci): New option.
3893 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
3894 (grub_pci_device_unmap_range): Likewise.
3895 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
3896 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
3897 (grub_pci_address_t) [!GRUB_UTIL]: New type.
3898 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
3899 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
3900 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
3901 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
3902 * include/grub/pciutils.h: New file.
3903 * util/pci.c: Likewise.
3904
3905 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
3906
3907 * util/misc.c: Don't include <errno.h> twice.
3908
3909 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
3910
3911 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
3912 name in an error message.
3913 (grub_biosdisk_rw): Likewise.
3914
3915 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 Eliminate NTFS 4Gib barrier.
3918
3919 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
3920 (read_run_data): Likewise.
3921 (grub_ntfs_read_run_list): Likewise.
3922 (grub_ntfs_read_block): Likewise.
3923 (grub_ntfs_iterate_dir): Likewise.
3924 (read_mft): Likewise.
3925 (read_data): Likewise.
3926 Use COM_LOG_LEN.
3927 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
3928 to avoid 64-bit division
3929 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
3930 (grub_ntfs_rlst): Use grub_disk_addr_t.
3931
3932 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 Eliminate grub-fstest 4Gib barrier.
3935
3936 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
3937 (read_file): Fix error reporting.
3938
3939 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 Eliminate hexdump 4Gib barrier.
3942
3943 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
3944 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
3945
3946 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
3949 Fixes amarsh bug.
3950
3951 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
3952
3953 Remove miscellaneous files in distclean target.
3954
3955 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
3956
3957 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
3958
3959 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
3960 if they're already set. This resolves the conflict between my
3961 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
3962 fixing the --grub-probe option again.
3963 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
3964 change on 2009-10-06, so that we now once again source
3965 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
3966
3967 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
3968
3969 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
3970 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
3971 `util/devicemap.c'.
3972
3973 2009-12-08 Carles Pina i Estany <carles@pina.cat>
3974
3975 * include/grub/misc.h (grub_printf_): New declaration.
3976 * kern/misc.c (grub_printf_): New definition.
3977 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
3978 instead of `grub_printf' and `_'.
3979 * normal/menu_entry.c (store_completion): Likewise.
3980 (run): Likewise.
3981 (grub_menu_entry_run): Likewise.
3982 * normal/menu_text.c (grub_wait_after_message): Likewise.
3983 (notify_booting): Likewise.
3984 (notify_fallback): Likewise.
3985 (notify_execution_failure): Likewise.
3986
3987 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
3988
3989 * configure.ac: Check for vasprintf.
3990 * util/misc.c (asprintf): Move allocation from here ...
3991 (vasprintf): ... to here. New function.
3992 (xasprintf): New function.
3993 * include/grub/util/misc.h (vasprintf, xasprintf): Add
3994 prototypes.
3995 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
3996 * util/grub-mkfont.c (write_font): Likewise.
3997 * util/grub-probe.c (probe): Likewise.
3998 * util/hostdisk.c (make_device_name): Likewise.
3999
4000 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
4001
4002 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
4003 anything even prefixed with 'cdrom' as a cdrom.
4004
4005 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
4006
4007 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
4008 mount points.
4009
4010 2009-12-05 Carles Pina i Estany <carles@pina.cat>
4011
4012 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
4013 grub_gettext_msg_list.
4014 (grub_gettext_gettranslation_from_position): Return const char *
4015 and not char *.
4016 (grub_gettext_translate): Add the translated strings into a list,
4017 returns from the list if existing there.
4018 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
4019 (grub_gettext_delete_list): Delete the list.
4020 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
4021 lang environment variable is changed.
4022 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
4023
4024 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
4025
4026 Rename kernel.mod to kernel.img.
4027
4028 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
4029 (kernel_mod_EXPORTS): Rename to ...
4030 (kernel_img_EXPORTS): ... this.
4031 (kernel_mod_SOURCES): Rename to ...
4032 (kernel_img_SOURCES): ... this.
4033 (kernel_mod_HEADERS): Rename to ...
4034 (kernel_img_HEADERS): ... this. All users updated.
4035 (kernel_mod_CFLAGS): Rename to ...
4036 (kernel_img_CFLAGS): ... this.
4037 (kernel_mod_ASFLAGS): Rename to ...
4038 (kernel_img_ASFLAGS): ... this.
4039 (kernel_mod_LDFLAGS): Rename to ...
4040 (kernel_img_LDFLAGS): ... this.
4041 * conf/x86_64-efi.rmk: Likewise.
4042 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
4043 (read_kernel_image): ... this. All users updated.
4044 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
4045
4046 2009-12-05 Carles Pina i Estany <carles@pina.cat>
4047
4048 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
4049 (print_spaces): New function.
4050 (grub_print_ucs4): New function.
4051 (getstringwidth): New function.
4052 (print_message_indented): New function.
4053 (print_message): Gettexttize strings using print_message_indented.
4054 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
4055 width.
4056 (get_entry_number): Gettextize and uses dynamic terminal width.
4057 (notify_booting, notify_fallback, notify_execution_failure):
4058 Gettextize.
4059 * normal/menu_entry.c (store_completion): Cleanup the gettextized
4060 string.
4061 (run): Likewise.
4062 (grub_menu_entry_run): Likewise.
4063 * PO/POTFILES: Add normal/menu_entry.c.
4064
4065 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
4068
4069 2009-12-05 Carles Pina i Estany <carles@pina.cat>
4070
4071 * util/grub-install.in: Install gettext .mo files.
4072 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
4073
4074 2009-12-05 Carles Pina i Estany <carles@pina.cat>
4075
4076 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
4077 grub_dprintf.
4078
4079 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
4080
4081 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
4082 non-firmware-dependant one in realmode.S takes precedence.
4083
4084 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
4085
4086 * commands/halt.c: Replace misc arch-specific headers with
4087 `<grub/misc.h>'.
4088 * commands/reboot.c: Likewise.
4089 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
4090 `<grub/misc.h>'.
4091 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
4092 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
4093 (kernel_img_SOURCES): ... to here.
4094
4095 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
4096 * include/grub/i386/pc/init.h: Likewise.
4097 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
4098 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
4099
4100 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
4101
4102 * include/grub/i386/halt.h: Remove.
4103 * include/grub/i386/reboot.h: Likewise.
4104
4105 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
4106
4107 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
4108
4109 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
4110 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
4111 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
4112 "progname.h"
4113 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
4114 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4115 (usage): Add missing comma in printf.
4116
4117 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
4118
4119 Use the same reboot approach on i386 coreboot and qemu as we do on
4120 BIOS.
4121
4122 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
4123 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
4124 * kern/i386/reboot.c: Remove.
4125 * include/grub/i386/reboot.h (grub_reboot): Export function.
4126 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
4127 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
4128 0xf000:0xfff0 instead of 0xffff:0x0000.
4129 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
4130 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
4131
4132 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
4133
4134 Fix $srcdir != $objdir build.
4135
4136 * Makefile.in (po/%.po): Rewrite as ...
4137 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
4138
4139 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
4140
4141 Fix GNU/Hurd grub-install crash.
4142 * util/grub-probe.c (probe): Try to access `path' only when it is not
4143 NULL.
4144
4145 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 Correct module naming.
4148
4149 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
4150 (GRUB_MOD_INIT(efi_uga)): ... to this
4151 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
4152 (GRUB_MOD_FINI(efi_uga)): ... to this
4153 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
4154 (GRUB_MOD_INIT(efi_gop)): ... to this
4155 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
4156 (GRUB_MOD_FINI(efi_gop)): ... to this
4157
4158 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
4159
4160 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
4161 translatable.
4162 (usage): Translate `arg' strings using gettext().
4163 Thanks to Jordi Mallach for the suggestion.
4164
4165 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 GOP support. Based on patch from Bean
4168 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
4169
4170 * video/efi_gop.c: New file.
4171 * include/grub/efi/graphics_output.h: Likewise.
4172 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
4173 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
4174 variables.
4175 * conf/x86_64-efi.rmk: Likewise.
4176
4177 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 Rename efi_fb to efi_uga.
4180
4181 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
4182 'efi_uga.mod'.
4183 (efi_fb_mod_SOURCES): Rename this ...
4184 (efi_uga_mod_SOURCES): ... to this.
4185 (efi_fb_mod_CFLAGS): Rename this ...
4186 (efi_uga_mod_CFLAGS): ... to this.
4187 (efi_fb_mod_LDFLAGS): Rename this ...
4188 (efi_uga_mod_LDFLAGS): ... to this.
4189 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
4190 'efi_uga.mod'.
4191 (efi_fb_mod_SOURCES): Rename this ...
4192 (efi_uga_mod_SOURCES): ... to this.
4193 (efi_fb_mod_CFLAGS): Rename this ...
4194 (efi_uga_mod_CFLAGS): ... to this.
4195 (efi_fb_mod_LDFLAGS): Rename this ...
4196 (efi_uga_mod_LDFLAGS): ... to this.
4197 * video/efi_fb.c: Move this ...
4198 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
4199
4200 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
4201
4202 * po/README: New file. Explain our PO file workflow.
4203
4204 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
4205
4206 * po/ChangeLog: Remove. Move relevant entries back to ...
4207 * ChangeLog: ... here.
4208 * po/ca.po: Remove (now handled by TLP).
4209 * po/id.po: Likewise.
4210 * po/zh_CN.po: Likewise.
4211 * Makefile.in (LINGUAS): Initialize in a way that supports
4212 empty set.
4213
4214 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
4215
4216 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
4217 reliing on po/LINGUAS.
4218 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
4219 (po/%.po): ... this.
4220
4221 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
4222
4223 * util/i386/efi/grub-mkimage.c: Include "progname.h".
4224 (main): Use `program_name' instead of nonexistent `progname'.
4225
4226 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
4227
4228 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
4229 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
4230
4231 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
4232
4233 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
4234 commit.
4235 * conf/i386-efi.rmk: Likewise.
4236 * conf/i386-ieee1275.rmk: Likewise.
4237 * conf/powerpc-ieee1275.rmk: Likewise.
4238 * conf/sparc64-ieee1275.rmk: Likewise.
4239 * conf/x86_64-efi.rmk: Likewise.
4240
4241 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
4242
4243 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
4244
4245 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
4246
4247 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
4248
4249 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
4250
4251 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
4252 (grub_mkdevicemap_SOURCES): New variable.
4253 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
4254 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
4255 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
4256 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
4257 (grub_mkdevicemap_SOURCES): Remove.
4258 * conf/i386-efi.rmk: Likewise.
4259 * conf/i386-ieee1275.rmk: Likewise.
4260 * conf/i386-pc.rmk: Likewise.
4261 * conf/powerpc-ieee1275.rmk: Likewise.
4262 * conf/sparc64-ieee1275.rmk: Likewise.
4263 * conf/x86_64-efi.rmk: Likewise.
4264 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
4265 (usage): Fix strings to use `program_name'.
4266 (main): Initialize gettext.
4267 * util/grub-editenv.c: Likewise.
4268 * util/grub-emu.c: Likewise.
4269 * util/grub-fstest.c: Likewise.
4270 * util/grub-mkdevicemap.c: Likewise.
4271 * util/grub-mkfont.c: Likewise.
4272 * util/grub-mkrelpath.c: Likewise.
4273 * util/grub-pe2elf.c: Likewise.
4274 * util/grub-probe.c: Likewise.
4275 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4276 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
4277 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4278
4279 * util/misc.c: Include `"progname.h"'.
4280 (progname): Remove variable.
4281 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
4282
4283 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
4284
4285 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
4286 printf and print a newline after the menuentry header line.
4287 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
4288
4289 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
4290
4291 autoconf >= 2.60 support $(localedir).
4292
4293 * INSTALL: Note that autoconf 2.60 is required.
4294 * configure.ac (AC_PREREQ): Bump to 2.60.
4295 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
4296 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
4297
4298 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
4299
4300 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
4301 aclocal is run.
4302
4303 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
4304
4305 * normal/main.c (grub_normal_read_line): Fix off-by-one
4306 buffer overflow.
4307
4308 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
4309
4310 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
4311 "parser.grub" in grub_command_execute() call.
4312
4313 2009-11-24 Carles Pina i Estany <carles@pina.cat>
4314
4315 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
4316 * conf/i386-efi.rmk: Likewise.
4317 * conf/i386-ieee1275.rmk: Likewise.
4318 * conf/i386-pc.rmk: Likewise.
4319 * conf/powerpc-ieee1275.rmk: Likewise.
4320 * conf/sparc64-ieee1275.rmk: Likewise.
4321 * conf/x86_64-efi.rmk: Likewise.
4322 * gettext/gettex.c: Include <grub/i18n.h>.
4323 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
4324 here ...
4325 * include/grub/i18n.h: ... to here
4326 * include/grub/i18n.h: ... to here.
4327 * kern/misc.c: Include <grub/i18n.h>
4328 (grub_gettext_dummy): Move above user.
4329
4330 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4331
4332 * util/Makefile.in (install-local): Convert a `for' into a normal
4333 shell expansion.
4334
4335 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
4336
4337 * autogen.sh: Add automake call.
4338 * config.guess: Remove.
4339 * config.sub: Likewise.
4340 * install-sh: Likewise.
4341
4342 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4343
4344 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
4345
4346 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4347
4348 * util/Makefile.in (install-local): Convert a make `$(foreach)'
4349 function to a normal shell `for'.
4350
4351 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4352
4353 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
4354
4355 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4356
4357 * util/grub-mkrelpath.c: New file.
4358 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
4359 (grub_mkrelpath_SOURCES): New variable.
4360 * include/grub/util/misc.h: New function prototype.
4361 * util/misc.c (make_system_path_relative_to_its_root): New function.
4362
4363 * util/grub-mkconfig_lib.in (bindir): New variable.
4364 (grub_mkrelpath): Likewise.
4365 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
4366
4367 * util/probe.c (probe): Make the file path relative to its root.
4368 Change a info message to use the GRUB path. Enable again the
4369 check if we can read the file with GRUB facilities.
4370
4371 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
4372 to its root.
4373
4374 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4375
4376 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
4377 platform.
4378
4379 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4380
4381 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
4382 strncmp().
4383
4384 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
4385
4386 * util/getroot.c (grub_util_is_dmraid): New function.
4387 (grub_util_get_dev_abstraction): Treat dmraid and multipath
4388 devices as normal ones, not as LVM.
4389
4390 2009-11-23 Carles Pina i Estany <carles@pina.cat>
4391
4392 * conf/common.rmk: Add grub-gettext_lib target and updates
4393 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
4394 LDFLAGS.
4395 * gettext/gettext.c: New file. (Reads mo files).
4396 * include/grub/file.h (grub_file_pread): New prototype.
4397 * include/grub/i18n.h (_): New prototype.
4398 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
4399 prototypes.
4400 * kern/misc.c (grub_gettext_dummy): New function.
4401 * normal/menu_text.c: Include <grub/i18n.h>.
4402 * normal/menu_text.c (print_timeout): Gettexttize string.
4403 * normal/menu_text.c (print_message): Gettexttize string.
4404 * po/POTFILES: Add `normal/menu_text.c'.
4405 * po/ca.po: Add new translations.
4406 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
4407 gettext module and defines locale_dir and lang in grub.cfg.
4408 * NEWS: Add gettext support.
4409
4410 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
4411
4412 * util/hostdisk.c: Include `<grub/i18n.h>'.
4413 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
4414 (make_device_name): Rewrite using asprintf.
4415 (convert_system_partition_to_system_disk): Replace 0 with NULL.
4416 (find_system_device): If a device is not found, generate one just
4417 by reusing the OS path name.
4418 (read_device_map): Make it permissible for device.map not to exist.
4419
4420 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
4421
4422 * script/sh/execute.c: Move from here ...
4423 * script/execute.c: ... to here. Update all users.
4424 * script/sh/function.c: Move from here ...
4425 * script/function.c: ... to here. Update all users.
4426 * script/sh/lexer.c: Move from here ...
4427 * script/lexer.c: ... to here. Update all users.
4428 * script/sh/main.c: Move from here ...
4429 * script/main.c: ... to here. Update all users.
4430 * script/sh/parser.y: Move from here ...
4431 * script/parser.y: ... to here. Update all users.
4432 * script/sh/script.c: Move from here ...
4433 * script/script.c: ... to here. Update all users.
4434
4435 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
4436
4437 * configure.ac: Detect all `emu' platforms. Define
4438 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
4439 --enable-grub-emu logic. Disable include/grub/machine
4440 symlink on `emu' platforms.
4441
4442 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
4443 * gensymlist.sh.in: Likewise.
4444
4445 * include/grub/i386/coreboot/machine.h: Remove file.
4446 * include/grub/i386/efi/machine.h: Likewise.
4447 * include/grub/i386/ieee1275/machine.h: Likewise.
4448 * include/grub/i386/pc/machine.h: Likewise.
4449 * include/grub/i386/qemu/machine.h: Likewise.
4450 * include/grub/powerpc/ieee1275/machine.h: Likewise.
4451 * include/grub/sparc64/ieee1275/machine.h: Likewise.
4452 * include/grub/x86_64/efi/machine.h: Likewise.
4453
4454 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
4455 * commands/halt.c: Likewise.
4456 * commands/reboot.c: Likewise.
4457 * include/grub/autoefi.h: Likewise.
4458 * include/grub/i386/at_keyboard.h: Likewise.
4459 * include/grub/i386/kernel.h: Likewise.
4460 * include/grub/i386/loader.h: Likewise.
4461 * include/grub/i386/pc/memory.h: Likewise.
4462 * kern/dl.c: Likewise.
4463 * kern/i386/coreboot/init.c: Likewise.
4464 * loader/i386/bsd.c: Likewise.
4465 * loader/i386/linux.c: Likewise.
4466 * loader/multiboot_loader.c: Likewise.
4467 * term/i386/pc/serial.c: Likewise.
4468 * term/usb_keyboard.c: Likewise.
4469
4470 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
4471 `<grub/machine/machine.h>'
4472 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
4473 * util/misc.c: Remove `<grub/machine/machine.h>' and
4474 `<grub/machine/time.h>'.
4475
4476 * Makefile.in (enable_grub_emu): Remove variable.
4477 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
4478
4479 * conf/any-emu.rmk: New file.
4480 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
4481 (grub_emu_init.c): Move from here ...
4482 * conf/any-emu.rmk: ... to here.
4483
4484 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
4485 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
4486 * conf/any-emu.rmk: ... to here.
4487
4488 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
4489
4490 * include/grub/parser.h (grub_parser_register): Document need
4491 of `name' parameter.
4492 * normal/main.c (grub_normal_read_line): Simplify prompt string.
4493 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
4494 "sh" to "grub".
4495
4496 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
4497
4498 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
4499 `$(XGETTEXT)'.
4500 * include/grub/i18n.h (N_): New macro.
4501 * util/mkisofs/mkisofs.h: Likewise.
4502 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
4503 around N_().
4504 (usage): Use gettext() to translate help strings when printing them.
4505
4506 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
4507
4508 Based on patch from Bean
4509 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
4510
4511 * video/efi_fb.c: New file.
4512 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
4513 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
4514 variables.
4515 * conf/x86_64-efi.rmk: Likewise.
4516
4517 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
4518
4519 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
4520 * util/i386/pc/grub-setup.c: Likewise.
4521
4522 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4523
4524 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
4525 <hurd/fs.h>
4526 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
4527 file_get_storage_info to implement grub_guess_root_device.
4528
4529 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
4530
4531 * Makefile.in (target): Use make's builtin $(shell) function
4532 instead of calling directly $(SHELL) to create the locale directories,
4533 inside the $(foreach) function.
4534
4535 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
4536
4537 * util/grub-mkrescue.in: Print an error and usage if output option
4538 has not been given.
4539
4540 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
4541
4542 Patch from Loïc Minier <loic.minier@ubuntu.com>.
4543 * util/grub.d/30_os-prober.in: Cope with Linux entries where
4544 root and /boot are on different devices.
4545
4546 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
4547
4548 Fix build for srcdir != objdir.
4549
4550 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
4551 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
4552 $(srcdir).
4553 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
4554 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
4555 reference for input.
4556
4557 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
4558
4559 * util/grub-mkrescue.in: Use source directory direcly (without copiing
4560 or hardlinking it). Remove -J option, Joliet is not compatible with
4561 multiple source directories.
4562
4563 2009-11-21 Carles Pina i Estany <carles@pina.cat>
4564 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
4565
4566 * util/grub-mkrescue.in: Recognize `--override-directory' option.
4567 (process_input_dir): New function. Process an arbitrary input
4568 directory.
4569 Misc adjustments to support both "override mode" and system-wide mode.
4570
4571 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
4572
4573 * configure.ac (UNIFONT_BDF): Rename to ...
4574 (FONT_SOURCE): ... this. Update all users.
4575
4576 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
4577
4578 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
4579 to the list of unifont files to look for.
4580
4581 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
4582
4583 Patch from Joe Auricchio <jauricchio@gmail.com>
4584 * commands/minicmd.c (grub_mini_cmd_clear): New function.
4585 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
4586 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
4587
4588 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
4589
4590 * Makefile.in (install-local): Add a missing backslash.
4591
4592 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
4593
4594 * include/grub/x86_64/io.h: New file.
4595
4596 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
4597
4598 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
4599 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
4600 Include `"progname.h"'.
4601 (main): Initialize gettext.
4602 * util/i386/pc/grub-setup.c: Gettexttize.
4603 * util/i386/pc/grub-mkimage.c: Likewise.
4604
4605 * Makefile.in (po/*.po): Redefine as ...
4606 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
4607
4608 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
4609
4610 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
4611
4612 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
4613 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
4614 (program_name): Remove.
4615 (main): Initialize gettext support.
4616 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
4617 Include `<libintl.h>'.
4618 (_): New macro.
4619
4620 * util/mkisofs/eltorito.c: Gettexttize.
4621 * util/mkisofs/joliet.c: Likewise.
4622 * util/mkisofs/mkisofs.c: Likewise.
4623 * util/mkisofs/multi.c: Likewise.
4624 * util/mkisofs/rock.c: Likewise.
4625 * util/mkisofs/tree.c: Likewise.
4626 * util/mkisofs/write.c: Likewise.
4627
4628 * po/POTFILES: Update with new files.
4629
4630 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4631
4632 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
4633 * util/mkisofs/iso9660.h: Likewise.
4634 * util/mkisofs/joliet.c: Likewise.
4635 * util/mkisofs/mkisofs.c: Likewise.
4636 * util/mkisofs/mkisofs.h: Likewise.
4637 * util/mkisofs/rock.c: Likewise.
4638 * util/mkisofs/tree.c: Likewise.
4639 * util/mkisofs/write.c: Likewise.
4640
4641 * util/mkisofs/eltorito.c (rcsid): Remove.
4642 * util/mkisofs/hash.c: Likewise.
4643 * util/mkisofs/joliet.c: Likewise.
4644 * util/mkisofs/name.c: Likewise.
4645 * util/mkisofs/rock.c: Likewise.
4646 * util/mkisofs/tree.c: Likewise.
4647 * util/mkisofs/write.c: Likewise.
4648
4649 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4650
4651 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
4652 instead of static allocation.
4653 * util/mkisofs/match.h: Likewise.
4654
4655 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4656
4657 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
4658 and `util/grub.d/10_linux.in'.
4659 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
4660 translatable Shell files.
4661
4662 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4663
4664 * Makefile.in ($(srcdir)/aclocal.m4): New target.
4665
4666 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4667
4668 * INSTALL: Document Automake is needed for bootstrap.
4669 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
4670 * util/grub.d/10_kfreebsd.in (bindir): New variable.
4671 Add gettext initialization.
4672 (kfreebsd_entry): Make menuentry output translatable.
4673
4674 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4675
4676 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
4677 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
4678 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
4679 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
4680 (LINGUAS): Auto-generate using `po/LINGUAS'.
4681 * po/LINGUAS: New file.
4682
4683 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4684
4685 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
4686 other things).
4687 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
4688 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
4689 bindtextdomain() calls for gettext initialization.
4690
4691 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4692
4693 * gnulib/progname.c: New file (imported from Gnulib).
4694 * gnulib/progname.h: Likewise.
4695 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
4696 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
4697 (usage): Replace `progname' with `program_name'.
4698 (main): Use set_program_name() for program name initialization.
4699
4700 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4701
4702 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
4703 from here ...
4704 * Makefile.in (CPPFLAGS): ... to here.
4705
4706 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4707
4708 * aclocal.m4: Move from here ...
4709 * acinclude.m4: ... to here.
4710 * autogen.sh: Add call to `aclocal'.
4711 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
4712
4713 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4714
4715 * Makefile.in (CLEANFILES): Add `po/*.mo'.
4716 (LINGUAS): New variable.
4717 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
4718 (install-local): Install MO files.
4719 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
4720 * include/grub/i18n.h: New file.
4721 * po/POTFILES: New file.
4722 * po/ca.po: New file.
4723 * util/grub.d/10_linux.in (bindir): New variable.
4724 Add gettext initialization.
4725 (linux_entry): Make menuentry output translatable.
4726 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
4727 (usage): Make --help output translatable.
4728 (main): Initialize gettext.
4729
4730 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4731
4732 * import_gcry.py: New file (written by Vladimir with minor
4733 adjustments).
4734 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
4735 ciphers.
4736 * INSTALL: Document that Python is required for bootstrap.
4737
4738 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4739
4740 Import ciphers from libgcrypt 1.4.4.
4741
4742 * lib/libgcrypt/cipher/ChangeLog
4743 * lib/libgcrypt/cipher/ac.c
4744 * lib/libgcrypt/cipher/arcfour.c
4745 * lib/libgcrypt/cipher/bithelp.h
4746 * lib/libgcrypt/cipher/blowfish.c
4747 * lib/libgcrypt/cipher/camellia-glue.c
4748 * lib/libgcrypt/cipher/camellia.c
4749 * lib/libgcrypt/cipher/camellia.h
4750 * lib/libgcrypt/cipher/cast5.c
4751 * lib/libgcrypt/cipher/cipher.c
4752 * lib/libgcrypt/cipher/crc.c
4753 * lib/libgcrypt/cipher/des.c
4754 * lib/libgcrypt/cipher/dsa.c
4755 * lib/libgcrypt/cipher/ecc.c
4756 * lib/libgcrypt/cipher/elgamal.c
4757 * lib/libgcrypt/cipher/hash-common.c
4758 * lib/libgcrypt/cipher/hash-common.h
4759 * lib/libgcrypt/cipher/hmac-tests.c
4760 * lib/libgcrypt/cipher/md.c
4761 * lib/libgcrypt/cipher/md4.c
4762 * lib/libgcrypt/cipher/md5.c
4763 * lib/libgcrypt/cipher/primegen.c
4764 * lib/libgcrypt/cipher/pubkey.c
4765 * lib/libgcrypt/cipher/rfc2268.c
4766 * lib/libgcrypt/cipher/rijndael-tables.h
4767 * lib/libgcrypt/cipher/rijndael.c
4768 * lib/libgcrypt/cipher/rmd.h
4769 * lib/libgcrypt/cipher/rmd160.c
4770 * lib/libgcrypt/cipher/rsa.c
4771 * lib/libgcrypt/cipher/seed.c
4772 * lib/libgcrypt/cipher/serpent.c
4773 * lib/libgcrypt/cipher/sha1.c
4774 * lib/libgcrypt/cipher/sha256.c
4775 * lib/libgcrypt/cipher/sha512.c
4776 * lib/libgcrypt/cipher/tiger.c
4777 * lib/libgcrypt/cipher/twofish.c
4778 * lib/libgcrypt/cipher/whirlpool.c
4779
4780 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4781
4782 Fix build for systems without error().
4783
4784 * gnulib/error.c: New file (imported from Gnulib).
4785 * gnulib/error.h: Likewise.
4786 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
4787 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
4788 (this variable is now used by error()).
4789
4790 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
4791
4792 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
4793 instead of relying that char is signed.
4794
4795 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
4798 blocksize different from specified.
4799 (grub_pxefs_read): Likewise.
4800
4801 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
4802
4803 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
4804
4805 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
4806 (grub_ata_readwrite): Likewise. Update 2 format strings.
4807 (grub_atapi_read): Likewise.
4808
4809 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
4810 * conf/i386.rmk (pkglib_MODULES): ... to here ...
4811 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
4812 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
4813 (ata_mod_LDFLAGS): Move from here ...
4814 * conf/i386.rmk: ... to here ...
4815 * conf/x86_64-efi.rmk: ... and here.
4816 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
4817 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
4818
4819 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4820
4821 Relicense multiboot.h, with RMS' blessing.
4822
4823 * include/multiboot.h: Change to X11 license.
4824
4825 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
4826
4827 Support --version in grub-mkisofs.
4828
4829 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
4830 (OPTION_VERSION): New macro.
4831 (ld_options): Recognize --version.
4832 (usage): Move `program_name' from here ...
4833 (program_name): ... to here. Add `static' qualifier.
4834 (main): Recognize `OPTION_VERSION'.
4835
4836 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
4837
4838 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
4839 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
4840
4841 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
4842
4843 Fix help2man generation for mkisofs.
4844
4845 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
4846 (usage): Send output to stdout (rather than stderr).
4847
4848 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
4849
4850 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
4851 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
4852 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
4853 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
4854 (bin_SCRIPTS): Add `grub-mkfloppy'.
4855 (grub_mkfloppy_SOURCES): New variable.
4856
4857 * util/grub-mkrescue.in: New file.
4858 * util/i386/pc/grub-mkfloppy.in: New file.
4859
4860 * util/i386/coreboot/grub-mkrescue.in: Remove.
4861 * util/i386/pc/grub-mkrescue.in: Remove.
4862
4863 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
4864
4865 * include/grub/multiboot.h (struct grub_multiboot_header): Move
4866 from here ...
4867 * include/multiboot.h (struct multiboot_header): ... to here. Update
4868 all users.
4869 * include/grub/multiboot.h (struct grub_multiboot_info): Move
4870 from here ...
4871 * include/multiboot.h (struct multiboot_info): ... to here. Update
4872 all users.
4873 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
4874 from here ...
4875 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
4876 Update all users.
4877 * include/grub/multiboot.h (struct grub_mod_list): Move
4878 from here ...
4879 * include/multiboot.h (struct multiboot_mod_list): ... to here.
4880 Update all users.
4881
4882 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
4883
4884 * include/multiboot2.h (multiboot_word): Rename from this ...
4885 (multiboot2_word): ... to this. Update all users.
4886 (multiboot_header): Rename from this ...
4887 (multiboot2_header): ... to this. Update all users.
4888 (multiboot_tag_header): Rename from this ...
4889 (multiboot2_tag_header): ... to this. Update all users.
4890 (multiboot_tag_start): Rename from this ...
4891 (multiboot2_tag_start): ... to this. Update all users.
4892 (multiboot_tag_name): Rename from this ...
4893 (multiboot2_tag_name): ... to this. Update all users.
4894 (multiboot_tag_module): Rename from this ...
4895 (multiboot2_tag_module): ... to this. Update all users.
4896 (multiboot_tag_memory): Rename from this ...
4897 (multiboot2_tag_memory): ... to this. Update all users.
4898 (multiboot_tag_unused): Rename from this ...
4899 (multiboot2_tag_unused): ... to this. Update all users.
4900 (multiboot_tag_end): Rename from this ...
4901 (multiboot2_tag_end): ... to this. Update all users.
4902
4903 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
4904
4905 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
4906 this platform we should support Multiboot1 first.
4907
4908 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4909 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
4910 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
4911
4912 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
4913
4914 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
4915 of write calls (converting them to fwrite() if they aren't already).
4916 (get_torito_desc): Likewise.
4917 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
4918
4919 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
4920
4921 * util/i386/pc/grub-install.in: Move from here ...
4922 * util/grub-install.in: ... to here. Update all users.
4923
4924 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
4925
4926 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
4927
4928 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
4929
4930 Support for El Torito without floppy emulation.
4931
4932 * util/mkisofs/eltorito.c: Include `<errno.h>'.
4933 (init_boot_catalog): Improve error handling.
4934 (get_torito_desc): Don't use floppy emulation unless requested by
4935 user. Patch boot information table when requested via
4936 `-boot-info-table'.
4937 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
4938 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
4939 (use_boot_info_table): New variables.
4940 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
4941 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
4942 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
4943 `--eltorito-emul-floppy'.
4944 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
4945 and `OPTION_ELTORITO_EMUL_FLOPPY'.
4946 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
4947 (use_boot_info_table, get_731): New prototypes.
4948 * util/mkisofs/write.c (get_731): New function.
4949
4950 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
4951
4952 Fix the generation of the man page.
4953
4954 * util/pc/i386/grub-install.in: Source
4955 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
4956
4957 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
4958
4959 Large file support for grub-mkisofs.
4960
4961 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
4962 * util/mkisofs/mkisofs.c (next_extent, last_extent)
4963 (session_start): Upgrade type to `uint64_t'. Update all users.
4964 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
4965 (struct directory_entry): Upgrade type of `starting_block' and
4966 `size' to `uint64_t'. Update all users.
4967 (struct deferred): Remove unused structure.
4968 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
4969 Update all users.
4970 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
4971 file is larger than `UINT32_MAX'.
4972 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
4973 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
4974 return value.
4975 (struct deferred_write): Upgrade type of `extent' and `size' to
4976 `uint64_t'. Update all users.
4977 (last_extent_written): Upgrade type to `uint64_t'. Update all
4978 users.
4979 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
4980 Update all users. Upgrade type of `remain' to `int64_t' and
4981 `use' to `size_t'. Use error() to handle fread() errors.
4982 (write_files): Rely on write_one_file() rather than calling
4983 xfwrite() directly.
4984
4985 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
4986
4987 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
4988
4989 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4990
4991 * util/mkisofs/fnmatch.c: Remove.
4992 * util/mkisofs/getopt1.c: Likewise.
4993 * util/mkisofs/getopt.c: Likewise.
4994 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
4995 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
4996 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
4997 `gnulib/getopt1.c' and `gnulib/getopt.c'.
4998 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
4999
5000 * configure.ac: Detect `mingw32msvc' host_os.
5001 Check for lstat(), getuid() and getgid().
5002
5003 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
5004 instances of `u_char' with `uint8_t'.
5005
5006 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
5007 [!HAVE_GETUID] (getuid): New function (stub).
5008 [!HAVE_GETGID] (getgid): Likewise.
5009 [!HAVE_LSTAT] (lstat): Likewise.
5010 [!S_IROTH] (S_IROTH): New macro (dummy).
5011 [!S_IRGRP] (S_IRGRP): Likewise.
5012
5013 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5014
5015 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
5016 conditional expression).
5017
5018 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5019
5020 Import from Gnulib.
5021
5022 * gnulib/fnmatch.c: New file.
5023 * gnulib/fnmatch.h: Likewise.
5024 * gnulib/fnmatch_loop.c: Likewise.
5025 * gnulib/getopt.c: Likewise.
5026 * gnulib/getopt.h: Likewise.
5027 * gnulib/getopt1.c: Likewise.
5028 * gnulib/getopt_int.h: Likewise.
5029 * gnulib/gettext.h: Likewise.
5030
5031 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5032
5033 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
5034 * normal/handler.c (read_handler_list): Likewise.
5035
5036 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5037
5038 Misc cleanup.
5039
5040 * kern/command.c (grub_register_command_prio): Use
5041 grub_zalloc() instead of explicitly zeroing data.
5042 * kern/list.c: Include `<grub/mm.h>'.
5043 (grub_named_list_find): Replace `0' with `NULL'.
5044 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
5045 (fs_module_list): Change type to `grub_named_list_t'. Update all
5046 users.
5047 * normal/dyncmd.c (read_command_list): Add space between function
5048 call and parenthesis.
5049 * normal/handler.c (read_handler_list): Likewise.
5050
5051 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5052
5053 * normal/auth.c (punishment_delay): Moved from here ...
5054 (grub_auth_strcmp): ... to here (inside function).
5055
5056 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5057
5058 * include/grub/list.h (struct grub_named_list): Remove `const'
5059 qualifier from `name'.
5060 (struct grub_prio_list): Likewise.
5061
5062 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5063
5064 * normal/auth.c: Include `<grub/time.h>'.
5065 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
5066
5067 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5068
5069 * normal/auth.c (punishment_delay): New variable.
5070 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
5071 (grub_auth_check_authentication): Punish failed login attempts with
5072 an incremental (2^N) delay.
5073
5074 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5075
5076 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
5077 path with $(srcdir).
5078
5079 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
5082
5083 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
5084
5085 * util/i386/coreboot/grub-mkrescue.in: New file.
5086 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
5087 variables.
5088
5089 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
5090 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
5091 * configure.ac: Add header and function checks to satisfy grub-mkisofs
5092 requirements.
5093 * util/mkisofs/defaults.h: New file.
5094 * util/mkisofs/eltorito.c: Likewise.
5095 * util/mkisofs/exclude.h: Likewise.
5096 * util/mkisofs/fnmatch.c: Likewise.
5097 * util/mkisofs/getopt.c: Likewise.
5098 * util/mkisofs/getopt1.c: Likewise.
5099 * util/mkisofs/hash.c: Likewise.
5100 * util/mkisofs/include/fctldefs.h: Likewise.
5101 * util/mkisofs/include/mconfig.h: Likewise.
5102 * util/mkisofs/include/prototyp.h: Likewise.
5103 * util/mkisofs/include/statdefs.h: Likewise.
5104 * util/mkisofs/iso9660.h: Likewise.
5105 * util/mkisofs/joliet.c: Likewise.
5106 * util/mkisofs/match.c: Likewise.
5107 * util/mkisofs/match.h: Likewise.
5108 * util/mkisofs/mkisofs.c: Likewise.
5109 * util/mkisofs/mkisofs.h: Likewise.
5110 * util/mkisofs/multi.c: Likewise.
5111 * util/mkisofs/name.c: Likewise.
5112 * util/mkisofs/rock.c: Likewise.
5113 * util/mkisofs/tree.c: Likewise.
5114 * util/mkisofs/write.c: Likewise.
5115
5116 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
5119 being insecure.
5120
5121 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
5122
5123 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
5124 `grub-mkimage' (and use $0 when possible).
5125
5126 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
5127
5128 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
5129 error message for excessively large memory map.
5130
5131 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
5132
5133 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
5134 executable bit.
5135
5136 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
5137
5138 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
5139 message for coreboot users.
5140
5141 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
5142
5143 Fix build with GNU gold.
5144
5145 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
5146 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
5147 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
5148 link addresses.
5149 * aclocal.m4: Likewise.
5150
5151 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
5152
5153 * configure.ac (AC_PREREQ): Bump to 2.59d.
5154 * INSTALL: Make it more clear when Autoconf and Ruby are
5155 needed and when to run `./autogen.sh'.
5156
5157 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5158
5159 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
5160 OSes.
5161
5162 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
5163
5164 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
5165
5166 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
5167
5168 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
5169 giving it to GNU Mach.
5170
5171 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
5172
5173 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
5174 GNU partition number to get internal GRUB partition number.
5175
5176 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
5177
5178 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
5179 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
5180
5181 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
5182
5183 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
5184 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
5185 case.
5186
5187 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
5188
5189 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
5190
5191 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
5192
5193 Fix build problem.
5194
5195 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
5196 `-isystem=$(srcdir)/include'.
5197
5198 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
5199
5200 * util/i386/pc/grub-install.in: Remove hint that device.map should be
5201 checked (grub-install doesn't currently rely on it).
5202
5203 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
5204
5205 Revert SVN r2660.
5206
5207 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
5208 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
5209 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
5210 * conf/i386-ieee1275.rmk: Likewise.
5211 * conf/i386-pc.rmk: Likewise.
5212 * conf/powerpc-ieee1275.rmk: Likewise.
5213 * conf/sparc64-ieee1275.rmk: Likewise.
5214 * conf/x86_64-efi.rmk: Likewise.
5215
5216 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
5217
5218 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
5219
5220 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
5221
5222 * include/grub/misc.h: Stop checking for APPLE_CC.
5223
5224 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
5225
5226 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
5227 doesn't cause an infinite call loop.
5228
5229 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
5230
5231 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
5232 strings.
5233
5234 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5235
5236 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
5237 variable.
5238 * Makefile.in: Likewise.
5239
5240 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5241
5242 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
5243
5244 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5245
5246 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
5247
5248 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5249
5250 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
5251
5252 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5253
5254 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
5255 from here ...
5256 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
5257
5258 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5259
5260 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
5261 in $(MAKEINFO) invocation. This makes it clear in output that
5262 errors are being ignored.
5263
5264 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5265
5266 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
5267 from here ...
5268 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
5269 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
5270 * conf/i386-ieee1275.rmk: Likewise.
5271 * conf/i386-pc.rmk: Likewise.
5272 * conf/powerpc-ieee1275.rmk: Likewise.
5273 * conf/sparc64-ieee1275.rmk: Likewise.
5274 * conf/x86_64-efi.rmk: Likewise.
5275
5276 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
5277
5278 * util/grub-editenv.c (main): If only a command is given, use
5279 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
5280 (usage): FILENAME is now optional and has a default.
5281
5282 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
5283
5284 Improve grub-mkconfig performance when there are several menu
5285 entries on a single filesystem.
5286
5287 * util/grub.d/10_linux.in (linux_entry): Cache the output of
5288 prepare_grub_to_access_device.
5289 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
5290 * util/grub.d/30_os-prober.in: Likewise.
5291
5292 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5293
5294 * util/grub.d/10_freebsd.in: Remove.
5295 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
5296 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
5297
5298 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
5299
5300 * docs/grub.cfg: Fix example usage of *BSD loaders.
5301
5302 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5303
5304 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
5305 grub_util_error() call.
5306
5307 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5308
5309 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
5310 `reserved_first_sector' member.
5311 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
5312 `reserved_first_sector' to 1.
5313 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
5314 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
5315 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
5316 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
5317 filesystems which begin at first sector.
5318 (options): New option --skip-fs-probe.
5319 (main): Handle --skip-fs-probe and pass it to setup().
5320
5321 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5322
5323 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
5324 (memset): Fix function prototype.
5325
5326 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5327 2009-10-25 Vasily Averin <vvs@parallels.com>
5328
5329 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
5330 `dirent.direntlen == 0'.
5331
5332 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5333
5334 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
5335 `cpio'.
5336 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
5337
5338 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5339
5340 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
5341 `__trampoline_setup' and `__ucmpdi2'.
5342 * include/grub/powerpc/libgcc.h: Only export symbols for functions
5343 that libgcc provides.
5344
5345 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5346
5347 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
5348 * include/grub/sparc64/libgcc.h (memset): Likewise.
5349 * include/grub/misc.h (memset, memcmp): New function prototypes.
5350
5351 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5352
5353 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
5354 `cpio'.
5355 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
5356
5357 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
5358
5359 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
5360 * docs/grub.cfg: Compensate for recent change in multiboot
5361 loader (since 2009-08-14 it won't pass filename to payload).
5362 * util/grub.d/10_hurd.in: Likewise.
5363
5364 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
5365
5366 * config.guess: Update to latest version from config git
5367 repository.
5368 * config.sub: Likewise.
5369
5370 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
5371
5372 Fix build on sparc64.
5373
5374 * configure.ac: Perform checks for libgcc symbols before
5375 adding `-nostdlib' to LDFLAGS.
5376
5377 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 Let user specify OpenBSD root device.
5380
5381 * loader/i386/bsd.c (openbsd_root): New variable.
5382 (openbsd_opts): New option 'root'.
5383 (OPENBSD_ROOT_ARG): New macro.
5384 (grub_openbsd_boot): Use 'openbsd_root'.
5385 (grub_cmd_openbsd): Fill 'openbsd_root'.
5386
5387 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
5388
5389 * NEWS: Misc adjustments.
5390
5391 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
5394
5395 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
5396
5397 * configure.ac: Bump version to 1.97.
5398
5399 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
5400
5401 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
5402 -mno-3dnow on x86 architectures. Some toolchains enable these
5403 features by default, but they rely on registers that aren't enabled
5404 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
5405
5406 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
5407
5408 Make entry text a bit more readable.
5409
5410 * util/grub.d/10_linux.in: Add `with' before `Linux'.
5411
5412 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
5413
5414 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
5415
5416 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
5417
5418 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
5419 operations.
5420
5421 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
5422
5423 * configure.ac: Add missing dollar.
5424
5425 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
5426
5427 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
5428
5429 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
5430 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
5431 exports.
5432 * include/grub/sparc64/libgcc.h: Likewise. Use
5433 preprocessor conditionals.
5434
5435 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
5436
5437 * conf/common.rmk (grub-dumpbios): Remove rule.
5438 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
5439 * util/grub-dumpbios.in: Remove file.
5440
5441 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
5442
5443 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
5444 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
5445
5446 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
5447 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
5448 users.
5449
5450 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
5451 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
5452 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
5453 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
5454 users.
5455
5456 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
5457
5458 * term/tparm.c: Switch to GPLv3.
5459
5460 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
5461
5462 * include/grub/i386/cpuid.h: Add header protection.
5463
5464 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
5465
5466 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
5467
5468 * include/grub/i386/cpuid.h: New file.
5469 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
5470 (has_longmode): Rename to ...
5471 (grub_cpuid_has_longmode): ... this. Update all users. Remove
5472 `static' attribute.
5473 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
5474 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
5475 on a CPU that doesn't implement AMD64 instruction set.
5476
5477 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
5478
5479 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
5480 that version.texi is rebuilt on version number changes.
5481
5482 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
5483
5484 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
5485 Fixes bug #27602.
5486
5487 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
5488
5489 * util/i386/pc/grub-install.in: Source
5490 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
5491 that the --grub-probe option will work.
5492 * util/sparc64/ieee1275/grub-install.in: Likewise.
5493
5494 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
5495
5496 * configure.ac: Bump version to 1.97~beta4.
5497
5498 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
5499
5500 Resync grub-mkdevicemap in x86_64-efi.
5501
5502 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
5503 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
5504 `util/devicemap.c'.
5505
5506 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
5507
5508 * util/grub-editenv.c (create_envblk_file): Write new block with a
5509 .new suffix and then rename it into place, to ensure atomic
5510 creation.
5511
5512 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
5513
5514 Do not automatically install headers.
5515
5516 * Makefile.in (include_DATA): Remove. Update all users.
5517
5518 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
5519
5520 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
5521 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
5522
5523 * util/osdetect.lua: Remove.
5524 * script/lua/lauxlib.c: Likewise.
5525 * script/lua/ldebug.c: Likewise.
5526 * script/lua/grub_main.c: Likewise.
5527 * script/lua/lauxlib.h: Likewise.
5528 * script/lua/ldebug.h: Likewise.
5529 * script/lua/ltablib.c: Likewise.
5530 * script/lua/liolib.c: Likewise.
5531 * script/lua/lstrlib.c: Likewise.
5532 * script/lua/lualib.h: Likewise.
5533 * script/lua/ldo.c: Likewise.
5534 * script/lua/ldump.c: Likewise.
5535 * script/lua/ldo.h: Likewise.
5536 * script/lua/loslib.c: Likewise.
5537 * script/lua/lundump.c: Likewise.
5538 * script/lua/grub_lib.c: Likewise.
5539 * script/lua/ldblib.c: Likewise.
5540 * script/lua/lundump.h: Likewise.
5541 * script/lua/lmem.c: Likewise.
5542 * script/lua/grub_lib.h: Likewise.
5543 * script/lua/lmathlib.c: Likewise.
5544 * script/lua/lstate.c: Likewise.
5545 * script/lua/ltm.c: Likewise.
5546 * script/lua/lvm.c: Likewise.
5547 * script/lua/lmem.h: Likewise.
5548 * script/lua/lstate.h: Likewise.
5549 * script/lua/ltm.h: Likewise.
5550 * script/lua/ltable.c: Likewise.
5551 * script/lua/lvm.h: Likewise.
5552 * script/lua/llex.c: Likewise.
5553 * script/lua/lgc.c: Likewise.
5554 * script/lua/grub_lua.h: Likewise.
5555 * script/lua/loadlib.c: Likewise.
5556 * script/lua/lfunc.c: Likewise.
5557 * script/lua/lopcodes.c: Likewise.
5558 * script/lua/lparser.c: Likewise.
5559 * script/lua/ltable.h: Likewise.
5560 * script/lua/llex.h: Likewise.
5561 * script/lua/lgc.h: Likewise.
5562 * script/lua/lfunc.h: Likewise.
5563 * script/lua/lbaselib.c: Likewise.
5564 * script/lua/lopcodes.h: Likewise.
5565 * script/lua/lparser.h: Likewise.
5566 * script/lua/lzio.c: Likewise.
5567 * script/lua/linit.c: Likewise.
5568 * script/lua/lobject.c: Likewise.
5569 * script/lua/llimits.h: Likewise.
5570 * script/lua/lstring.c: Likewise.
5571 * script/lua/lzio.h: Likewise.
5572 * script/lua/lapi.c: Likewise.
5573 * script/lua/lcode.c: Likewise.
5574 * script/lua/lua.h: Likewise.
5575 * script/lua/lobject.h: Likewise.
5576 * script/lua/lstring.h: Likewise.
5577 * script/lua/lapi.h: Likewise.
5578 * script/lua/lcode.h: Likewise.
5579 * script/lua/luaconf.h: Likewise.
5580
5581 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
5582
5583 * docs/grub.texi (Command-line and menu entry commands): Document
5584 date and echo commands.
5585
5586 2009-09-24 Pavel Roskin <proski@gnu.org>
5587
5588 * include/grub/kernel.h (struct grub_module_header): Remove
5589 `grub_module_header_types'. Make `type' unsigned. Make `size'
5590 32-bit on all platforms.
5591 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
5592 8-bit field. Use grub_host_to_target32() for `size'.
5593 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
5594 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
5595 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
5596
5597 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
5598
5599 Fix "lost keypress" bug in at_keyboard.
5600
5601 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
5602 Checks for readyness of input buffer (without flushing it).
5603 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
5604 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
5605
5606 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
5607
5608 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
5609 size check within GRUB_MACHINE_PCBIOS section.
5610
5611 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
5612
5613 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
5614 return value.
5615 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
5616 KEYBOARD_ISREADY check.
5617 (grub_at_keyboard_checkkey): Rename to ...
5618 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
5619 Remove gratuitous cast.
5620
5621 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
5622
5623 * configure.ac: Call AC_PROG_MKDIR_P.
5624 * Makefile.in (docs/stamp-vti): Create docs directory. Create
5625 version.texi in $(builddir) rather than $(srcdir).
5626 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
5627 to makeinfo's @include search path.
5628
5629 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
5630
5631 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
5632
5633 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
5634
5635 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
5636 for `*.dpkg-new'.
5637
5638 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
5639
5640 Build info documentation. Some code borrowed from Automake.
5641
5642 * configure.ac: Check for makeinfo.
5643 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
5644 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
5645 docs/version.texi.
5646 (MOSTLYCLEANFILES): Add vti.tmp.
5647 (docs/version.texi, docs/stamp-vti): Update automatically.
5648 (docs/grub.info): Build info documentation. Use --force and ignore
5649 errors for now.
5650 (all-local): Add $(INFOS).
5651 (install-local): Install info files.
5652 (uninstall): Uninstall info files.
5653 * docs/version.texi: Remove from revision control. This file is
5654 automatically generated on build now.
5655 * gendistlist.sh: Add `*.info'.
5656
5657 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
5658
5659 * kern/term.c: Fix indentation.
5660
5661 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
5662
5663 * util/hostdisk.c: Fix a comment.
5664
5665 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
5666
5667 Fix regression introduced in r2539.
5668
5669 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
5670 to 0xA1.
5671
5672 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
5673
5674 * util/grub.d/30_os-prober.in: Don't throw away stderr from
5675 os-prober. Under normal operation, it does not print anything to
5676 stderr; if it does, we need to debug it, and throwing away stderr
5677 makes that excessively difficult.
5678
5679 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
5680
5681 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
5682
5683 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
5684
5685 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
5686 AC_LANG_PROGRAM from autoconf.
5687 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
5688 prototypes (fixes warning).
5689
5690 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
5691 `--disable-werror' was used.
5692
5693 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
5694
5695 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
5696 uninitialized `lastaddr'.
5697
5698 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
5701
5702 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
5703
5704 * commands/test.c (get_fileinfo): Return immediately if
5705 grub_fs_probe fails.
5706
5707 2009-09-14 José Martínez <xosemp@gmail.com>
5708
5709 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
5710
5711 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
5712
5713 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
5714 output.
5715
5716 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
5717
5718 * configure.ac: Remove --enable-grub-pe2elf. Only build
5719 grub-pe2elf when needed by the build system itself.
5720 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
5721
5722 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
5723
5724 * configure.ac: Bump version to 1.97~beta3.
5725 * docs/version.texi: Likewise.
5726
5727 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
5728
5729 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
5730 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
5731 from here ...
5732 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
5733 (grub_linux_setup_video): ... to here (with some adjustments).
5734
5735 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
5736
5737 Fix memory corruption issue (spotted by Colin Watson).
5738
5739 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
5740 causing returned size to be stored in an incorrect memory location.
5741 Fix use of uninitialized value when storing the returned size.
5742
5743 2009-09-12 Yves Blusseau <blusseau@zetam.org>
5744
5745 Change clean rules to properly remove files
5746
5747 * genmk.rb: add new clean rules
5748 * Makefile.in (clean): add the new targets
5749 (mostlyclean): likewise
5750
5751 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
5752
5753 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
5754 to grub_uint64_t.
5755 * fs/ntfs.c (init_file): Understand 64-bit sizes for
5756 non-resident files.
5757
5758 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
5759
5760 * configure.ac: Don't look for help2man when cross-compiling. Fixes
5761 part of bug #27349.
5762
5763 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
5764
5765 * util/grub-mkconfig.in: Make the created config mode 400 and
5766 print a warning if it fails.
5767
5768 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
5769
5770 * util/grub.d/40_custom.in: Ask user to type custom entries below
5771 comment, rather than below 'exec tail' line.
5772
5773 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
5774
5775 * util/grub.d/40_custom.in: Make sure that the explanatory text is
5776 visible in grub.cfg.
5777
5778 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
5779
5780 * util/grub.d/40_custom.in: Make it a little clearer how to use this
5781 file.
5782
5783 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
5784
5785 * docs/grub.cfg: Add an example menu entry for memtest86+.
5786
5787 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
5788
5789 * config.guess: Update to latest version from config git.
5790 * config.sub: Likewise.
5791
5792 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
5793
5794 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
5795 unknown-command case. Fixes bug #27320.
5796
5797 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
5798
5799 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
5800 `help' if the command exists.
5801
5802 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
5803
5804 * INSTALL: Require GCC 4.1.3 or later.
5805
5806 2009-09-06 Yves Blusseau <blusseau@zetam.org>
5807
5808 * Makefile.in (RMKFILES): add i386-qemu.rmk
5809 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
5810 $(srcdir)/stamp-h.in
5811
5812 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
5813
5814 * util/grub-probe.c (probe): Comment out buggy codepath, which
5815 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
5816 should be re-enabled after 1.97.
5817
5818 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
5819
5820 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
5821 find searches for.
5822
5823 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
5824
5825 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
5826 unnecessary calls to grub_error.
5827
5828 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
5829
5830 * NEWS: Mention `keystatus' and Unicode fonts.
5831
5832 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
5833
5834 * configure.ac: Bump version to 1.97~beta2.
5835 * docs/version.texi: Likewise.
5836
5837 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
5838
5839 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
5840 containing unwind information in some cases where it previously did
5841 not. Use -fno-dwarf2-cfi-asm if available to restore the old
5842 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
5843 discussion.
5844
5845 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
5846
5847 Embedding loadenv module into grub-emu
5848
5849 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
5850 commands/loadenv.c
5851 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
5852 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
5853 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
5854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
5855 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
5856 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
5857
5858 2009-09-03 Magnus Granberg <zorry@ume.nu>
5859
5860 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
5861 include -fPIE in the default specs.
5862 * configure.ac: Check if pie_possible is yes and add -fno-PIE
5863 to TARGET_CFLAGS.
5864
5865 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
5866
5867 * INSTALL: Note that GNU Bison 2.3 or later is required.
5868
5869 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
5870
5871 * kern/i386/pc/startup.S: Fix typo.
5872
5873 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
5876 according to GCS.
5877
5878 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
5879
5880 * docs/grub.texi (Naming convention): Describe one-based partition
5881 numbering.
5882 (Device syntax): Likewise.
5883 (File name syntax): Likewise.
5884 (Block list syntax): Likewise.
5885 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
5886 menu.lst.
5887 (File name syntax): Likewise.
5888 (Command-line and menu entry commands): Document acpi, blocklist,
5889 crc, export, insmod, keystatus, ls, set, and unset commands.
5890
5891 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
5892
5893 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
5894 to avoid implying that only one of --shift, --ctrl, or --alt may be
5895 used.
5896
5897 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
5898
5899 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
5900 rather than comparing against S_IFREG, which will almost never work.
5901
5902 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
5905 (write_blocklists): Likewise.
5906
5907 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
5908
5909 * script/lua/grub_lua.h (fputs): Supply a format string as the first
5910 argument to grub_printf.
5911
5912 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
5913
5914 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
5915 non GNU test.
5916
5917 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 * kern/file.c (grub_file_read): Spelling fix
5920
5921 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5922
5923 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
5924 loading of headers in some cases.
5925
5926 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
5927
5928 * configure.ac: Bump version to 1.97~beta1.
5929 * docs/version.texi: Likewise.
5930
5931 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 * include/grub/i386/xnu.h: Add license header.
5934 include grub/err.h explicitly.
5935
5936 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
5937
5938 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
5939 to `ufs' in the vfs.root.mountfrom kernel parameter.
5940
5941 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
5942
5943 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
5944
5945 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
5946 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
5947
5948 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
5949 `ARRAY_SIZE' macro.
5950
5951 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * kern/file.c (grub_file_read): Check offset.
5954 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
5955 * fs/jfs.c (grub_jfs_read_file): Likewise.
5956 * fs/ntfs.c (grub_ntfs_read): Likewise.
5957 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
5958 * fs/minix.c (grub_minix_read_file): Correct offset check.
5959 * fs/ufs.c (grub_ufs_read_file): Likewise.
5960
5961 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
5962
5963 * term/i386/pc/console.c (bios_data_area): Cast
5964 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
5965
5966 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 1-bit optimised blitters.
5969
5970 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
5971 prototype.
5972 (grub_video_fbblit_replace_24bit_1bit): Likewise.
5973 (grub_video_fbblit_replace_16bit_1bit): Likewise.
5974 (grub_video_fbblit_replace_8bit_1bit): Likewise.
5975 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
5976 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
5977 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
5978 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
5979 function.
5980 (grub_video_fbblit_replace_24bit_1bit): Likewise.
5981 (grub_video_fbblit_replace_16bit_1bit): Likewise.
5982 (grub_video_fbblit_replace_8bit_1bit): Likewise.
5983 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
5984 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
5985 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
5986 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
5987 when possible.
5988 * video/video.c (grub_video_get_blit_format): Return
5989 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
5990
5991 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
5992
5993 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
5994 the first argument to grub_printf.
5995
5996 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
5997 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
5998
5999 Add `getkeystatus' terminal method. Add a new `keystatus' command
6000 to query it.
6001
6002 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
6003 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
6004 modifier key bitmasks.
6005 (struct grub_term_input): Add `getkeystatus' member.
6006 (grub_getkeystatus): Add prototype.
6007 * kern/term.c (grub_getkeystatus): New function.
6008
6009 * include/grub/i386/pc/memory.h
6010 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
6011 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
6012 Data Area layout.
6013 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
6014 (grub_console_term_input): Set `getkeystatus' member.
6015 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
6016 constants.
6017 (grub_usb_keyboard_getreport): Likewise.
6018 (grub_usb_keyboard_checkkey): Likewise.
6019 (grub_usb_keyboard_getkeystatus): New function.
6020 (grub_usb_keyboard_term): Set `getkeystatus' member.
6021
6022 * commands/keystatus.c: New file.
6023 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
6024 (keystatus_mod_SOURCES): New variable.
6025 (keystatus_mod_CFLAGS): Likewise.
6026 (keystatus_mod_LDFLAGS): Likewise.
6027 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
6028 commands/keystatus.c.
6029 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6030 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6031 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6033 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6034 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6035
6036 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6037
6038 Split befs.mod and afs.mod into *_be.mod and *.mod
6039
6040 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
6041 (grub_fstest_SOURCES): Likewise.
6042 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
6043 (afs_be_mod_SOURCES): New variable.
6044 (afs_be_mod_CFLAGS): Likewise.
6045 (afs_be_mod_LDFLAGS): Likewise.
6046 (befs_be_mod_SOURCES): Likewise.
6047 (befs_be_mod_CFLAGS): Likewise.
6048 (befs_be_mod_LDFLAGS): Likewise.
6049 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
6050 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6051 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6052 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
6053 (grub_emu_SOURCES): Likewise.
6054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6055 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6056 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6057 * fs/afs_be.c: New file.
6058 * fs/befs_be.c: New file.
6059 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
6060 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
6061 (U16): Replaced with ...
6062 (grub_afs_to_cpu16): ...this. All users updated.
6063 (U32): Replaced with ...
6064 (grub_afs_to_cpu32): ...this. All users updated.
6065 (U64): Replaced with ...
6066 (grub_afs_to_cpu64): ...this. All users updated.
6067 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
6068 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
6069 (grub_afs_validate_sblock): Check only one endianness.
6070 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
6071 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
6072 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
6073 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
6074 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
6075 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
6076 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
6077 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
6078
6079 2009-08-26 Bean <bean123ch@gmail.com>
6080
6081 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
6082 64-bit number.
6083 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
6084 (grub_xfs_inode_block): Change return type to grub_uint64_t.
6085 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
6086
6087 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 NetBSD memory map support.
6090
6091 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
6092 (grub_netbsd_btinfo_mmap_header): New structure.
6093 (grub_netbsd_btinfo_mmap_entry): Likewise.
6094 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
6095
6096 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 Enable bsd.mod on coreboot.
6099
6100 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
6101 (bsd_mod_SOURCES): New variable.
6102 (bsd_mod_CFLAGS): Likewise.
6103 (bsd_mod_LDFLAGS): Likewise.
6104 (bsd_mod_ASFLAGS): Likewise.
6105 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
6106 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
6107
6108 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 Cleanup NetBSD root support.
6111
6112 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
6113 grub_bsd_get_device.
6114 Fix typo.
6115
6116 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
6117
6118 * util/grub.d/00_header.in: Move check for the video backend of
6119 gfxterm from here ...
6120 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
6121 a suitable video backend.
6122
6123 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 Fix breakage in grub-setup.
6126
6127 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
6128 "msdos_partition_map".
6129
6130 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6131
6132 Fix breakage in normal/auth.c.
6133
6134 * normal/auth.c (grub_iswordseparator): New function.
6135
6136 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 Authentication support.
6139
6140 * commands/password.c: New file.
6141 * conf/common.rmk (pkglib_MODULES): Add password.mod.
6142 (password_mod_SOURCES): New variable.
6143 (password_mod_CFLAGS): Likewise.
6144 (password_mod_LDFLAGS): Likewise.
6145 (normal_mod_SOURCES): Add normal/auth.c.
6146 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
6147 normal/auth.c.
6148 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6149 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6150 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6152 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6153 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6154 * include/grub/auth.h: New file.
6155 * include/grub/err.h (grub_err_t): New enum value
6156 GRUB_ERR_ACCESS_DENIED.
6157 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
6158 'users'.
6159 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
6160 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
6161 users updated.
6162 * normal/auth.c: New file.
6163 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
6164 (grub_cmdline_run): Don't allow to go to command line without
6165 authentication.
6166 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
6167 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
6168 menuentry without superuser rights.
6169 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
6170 user isn't a superuser.
6171
6172 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 Save space by inlining misc.c functions.
6175
6176 * kern/misc.c (grub_iswordseparator): Made static.
6177 * kern/misc.c (grub_strcat): Moved from here ...
6178 * include/grub/misc.h (grub_strcat): ... here. Inlined.
6179 * kern/misc.c (grub_strncat): Moved from here ...
6180 * include/grub/misc.h (grub_strncat): ... here. Inlined.
6181 * kern/misc.c (grub_strcasecmp): Moved from here ...
6182 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
6183 * kern/misc.c (grub_strncasecmp): Moved from here ...
6184 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
6185 * kern/misc.c (grub_isalpha): Moved from here ...
6186 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
6187 * kern/misc.c (grub_isdigit): Moved from here ...
6188 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
6189 * kern/misc.c (grub_isgraph): Moved from here ...
6190 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
6191 * kern/misc.c (grub_tolower): Moved from here ...
6192 * include/grub/misc.h (grub_tolower): ... here. Inlined.
6193
6194 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 * script/sh/function.c (grub_script_function_find): Cut error message
6197 not to flood terminal.
6198 * script/sh/lexer.c (grub_script_yylex): Remove command line length
6199 limit.
6200 * script/sh/script.c (grub_script_arg_add): Duplicate string.
6201
6202 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
6203
6204 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
6205 `report' grub_uint8_t *.
6206 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
6207 Use a 50-millisecond timeout rather than just repeating
6208 grub_usb_keyboard_getreport 50 times.
6209 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
6210
6211 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
6212
6213 Rename *_partition_map to part_*
6214
6215 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
6216 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
6217 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
6218 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
6219 All users updated.
6220 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
6221 All users updated.
6222 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
6223 * util/grub-probe.c (probe_partmap): Don't transform partition name
6224 to get module name.
6225
6226 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 Fix OpenBSD and NetBSD support.
6229
6230 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
6231 memory address conflict.
6232 (OPENBSD_MMAP_ACPI): New definition.
6233 (OPENBSD_MMAP_NVS): Likewise.
6234 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
6235 and OPENBSD_MMAP_NVS.
6236 Add memory map terminator
6237 Explicit cast when calling grub_unix_real_boot.
6238 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
6239
6240 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
6241
6242 Let user specify NetBSD root device.
6243
6244 * loader/i386/bsd.c (netbsd_root): New variable.
6245 (netbsd_opts): New option 'root'.
6246 (NETBSD_ROOT_ARG): New macro.
6247 (grub_netbsd_boot): Use 'netbsd_root'.
6248 (grub_bsd_unload): Free 'netbsd_root'.
6249 (grub_cmd_netbsd): Fill 'netbsd_root'.
6250
6251 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 Support for 64-bit NetBSD.
6254
6255 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
6256 point when booting non-FreeBSD.
6257
6258 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 Support --no-smp and --no-acpi for NetBSD.
6261
6262 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
6263 (NETBSD_AB_NOACPI): Likewise.
6264 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
6265 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
6266
6267 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
6270 errors.
6271 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
6272 errors. Call grub_error when needed.
6273
6274 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * commands/search.c (search_fs): Try searching without autoload first.
6277 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
6278 filesystem module explicitly for faster booting.
6279
6280 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
6281
6282 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
6283
6284 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
6285
6286 * util/grub.d/30_os-prober.in: Disable os-prober if
6287 `GRUB_DISABLE_OS_PROBER' was set to true.
6288
6289 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
6290
6291 * partmap/pc.c: Rename to ...
6292 * partmap/msdos.c: ... this. Update all users.
6293 (grub_pc_partition_map): Rename to ...
6294 (grub_msdos_partition_map): ... this. Update all users.
6295
6296 * parttool/pcpart.c: Rename to ...
6297 * parttool/msdospart.c: ... this. Update all users.
6298
6299 * include/grub/pc_partition.h: Rename to ...
6300 * include/grub/msdos_partition.h: ... this. Update all users.
6301 (grub_pc_partition_bsd_entry): Rename to ...
6302 (grub_msdos_partition_bsd_entry): ... this. Update all users.
6303 (grub_pc_partition_disk_label): Rename to ...
6304 (grub_msdos_partition_disk_label): ... this. Update all users.
6305 (grub_pc_partition_entry): Rename to ...
6306 (grub_msdos_partition_entry): ... this. Update all users.
6307 (grub_pc_partition_mbr): Rename to ...
6308 (grub_msdos_partition_mbr): ... this. Update all users.
6309 (grub_pc_partition): Rename to ...
6310 (grub_msdos_partition): ... this. Update all users.
6311 (grub_pc_partition_is_empty): Rename to ...
6312 (grub_msdos_partition_is_empty): ... this. Update all users.
6313 (grub_pc_partition_is_extended): Rename to ...
6314 (grub_msdos_partition_is_extended): ... this. Update all users.
6315 (grub_pc_partition_is_bsd): Rename to ...
6316 (grub_msdos_partition_is_bsd): ... this. Update all users.
6317
6318 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
6319 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
6320 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
6321 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
6322 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
6323 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
6324 (gpt_mod_LDFLAGS): Rename to ...
6325 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
6326 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
6327 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
6328 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
6329 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
6330 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
6331 (part_gpt_mod_LDFLAGS): ... this.
6332 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
6333 `pcpart.mod' to `msdospart.mod'.
6334 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
6335 to ...
6336 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
6337 (msdospart_mod_LDFLAGS): ... this.
6338
6339 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6340
6341 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
6342 (openbsd_opts): Likewise.
6343 (netbsd_opts): Likewise.
6344 (freebsd_flags): Added 0 terminator.
6345 (openbsd_flags): Likewise.
6346 (netbsd_flags): Likewise.
6347 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
6348 (grub_cmd_freebsd): Transformed into extended command.
6349 (grub_cmd_openbsd): Likewise.
6350 (grub_cmd_netbsd): Likewise.
6351 (cmd_freebsd): Changed type to grub_extcmd_t.
6352 (cmd_openbsd): Likewise.
6353 (cmd_netbsd): Likewise.
6354 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
6355 grub_cmd_openbsd as extended commands.
6356 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
6357 cmd_netbsd and cmd_openbsd
6358
6359 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
6362
6363 2009-08-21 Pavel Roskin <proski@gnu.org>
6364
6365 * Makefile.in (install-local): When checking if a file is in the
6366 build directory, use "test -e" to detect symlinks.
6367
6368 * Makefile.in (install-local): Remove all files in
6369 $(DESTDIR)$(pkglibdir) before installing new files there.
6370
6371 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
6372
6373 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
6374 grub-mkelfimage.
6375
6376 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
6377
6378 * util/grub-mkconfig.in: Don't use gfxterm by default if not
6379 explicitly specified by the user.
6380
6381 2009-08-18 Pavel Roskin <proski@gnu.org>
6382
6383 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
6384 grub_uint8_t pointer for data.
6385 * include/grub/fbutil.h (struct grub_video_fbblit_info):
6386 Likewise.
6387 * video/fb/fbutil.c: Remove unnecessary casts.
6388
6389 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
6390
6391 VBE cleanup.
6392
6393 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
6394 (grub_vbe_set_video_mode): Save active mode info
6395 only after setting the mode.
6396 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
6397 second argument.
6398
6399 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
6400
6401 Rename variables for clarity.
6402
6403 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
6404 (active_vbe_mode_info): ... this. All users updated.
6405 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
6406 All users updated.
6407 (initial_mode): Rename to ...
6408 (initial_vbe_mode): ... this. All users updated.
6409 (mode_in_use): Rename to ..
6410 (vbe_mode_in_use): ... this. All users updated.
6411 (mode_list): Rename to ..
6412 (vbe_mode_list): ... this. All users updated.
6413 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
6414 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
6415 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
6416 'mode_list_size' to 'vbe_mode_list_size'.
6417 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
6418 'best_mode_info' to 'best_vbe_mode_info' and
6419 'best_mode' to 'best_vbe_mode'
6420
6421 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
6422
6423 Remove duplicate grub_video_fb_get_video_ptr.
6424
6425 * include/grub/fbutil.h (get_data_ptr): Rename to ...
6426 (grub_video_fb_get_video_ptr): ... this.
6427 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
6428 * video/fb/fbutil.c: Add comment about addressing.
6429 (get_data_ptr): Rename to ...
6430 (grub_video_fb_get_video_ptr): ... this. All users updated.
6431 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
6432
6433 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
6434
6435 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
6436 grub_dprintf() that was just added.
6437
6438 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
6439
6440 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
6441 (DEFAULT_VIDEO_MODE): Remove macros.
6442 (grub_linux_boot): Remove assumption that Linux has FB support,
6443 and use "text" as default video mode.
6444
6445 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
6446
6447 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
6448 grub_dprintf.
6449 * fs/fat.c (grub_fat_read_data): Likewise.
6450
6451 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
6454 payload.
6455 (grub_module): Likewise.
6456
6457 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
6460 mbi->cmdline but free playground.
6461
6462 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 Handle group offset on UFS1.
6465
6466 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
6467 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
6468
6469 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 Split ufs.mod into ufs1.mod and ufs2.mod.
6472
6473 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
6474 (grub_fstest_SOURCES): Likewise.
6475 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
6476 (ufs_mod_SOURCES): Remove.
6477 (ufs_mod_CFLAGS): Likewise.
6478 (ufs_mod_LDFLAGS): Likewise.
6479 (ufs1_mod_SOURCES): New variable.
6480 (ufs1_mod_CFLAGS): Likewise.
6481 (ufs1_mod_LDFLAGS): Likewise.
6482 (ufs2_mod_SOURCES): New variable.
6483 (ufs2_mod_CFLAGS): Likewise.
6484 (ufs2_mod_LDFLAGS): Likewise.
6485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
6486 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
6487 Likewise.
6488 (grub_emu_SOURCES): Likewise.
6489 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6490 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6491 (grub_setup_SOURCES): Likewise.
6492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6493 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
6494 (grub_setup_SOURCES): Likewise.
6495 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
6496 Likewise.
6497 * fs/ufs2.c: New file.
6498 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
6499
6500 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 Framebuffer split.
6503
6504 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
6505 subsystem at the end.
6506 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
6507 (video_fb_mod_SOURCES): New variable.
6508 (video_fb_mod_CFLAGS): Likewise.
6509 (video_fb_mod_LDFLAGS): Likewise.
6510 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
6511 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
6512 * video/i386/pc/vbeblit.c: Moved from here ...
6513 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
6514 * video/i386/pc/vbefill.c: Moved from here ...
6515 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
6516 * video/i386/pc/vbeutil.c: Moved from here ...
6517 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
6518 * include/grub/i386/pc/vbeblit.h: Moved from here ...
6519 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
6520 * include/grub/i386/pc/vbefill.h: Moved from here ...
6521 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
6522 * include/grub/i386/pc/vbeutil.h: Moved from here ...
6523 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
6524 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
6525 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
6526 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
6527 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
6528 (grub_video_adapter): Added 'get_info_and_fini'.
6529 (grub_video_get_info_and_fini): New prototype.
6530 (grub_video_set_mode): make modestring const char *.
6531 * loader/i386/linux.c (grub_linux_setup_video): Use
6532 grub_video_get_info_and_fini.
6533 (grub_linux_boot): Move modesetting just before booting.
6534 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
6535 grub_video_get_info_and_fini.
6536 * video/i386/pc/vbe.c: Moved framebuffer part ...
6537 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
6538 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
6539 grub_video_fbstd_colors and grub_video_fb_set_palette.
6540 (grub_video_vbe_init): Clear 'framebuffer' variable and use
6541 grub_video_fb_init.
6542 (grub_video_vbe_fini): Use grub_video_fb_fini.
6543 (grub_video_vbe_setup): Use framebuffer.render_target instead of
6544 render_target and use grub_video_fb_set_active_render_target and
6545 grub_video_fb_set_palette.
6546 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
6547 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
6548 (grub_video_vbe_adapter): Use framebuffer.
6549 * video/video.c (grub_video_get_info_and_fini): New function.
6550 (grub_video_set_mode): Make modestring const char *.
6551 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
6552 values are already initialised.
6553
6554 2009-08-14 Pavel Roskin <proski@gnu.org>
6555
6556 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
6557 ABS and APPLE_CC.
6558 * boot/i386/pc/diskboot.S: Likewise.
6559 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
6560 sectors allow compilation on MacOSX.
6561 * conf/i386-pc.rmk: Enable unconditional compilation of
6562 lnxboot.img.
6563
6564 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
6565
6566 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
6567 * util/grub.d/00_header.in: Enter interruptible sleep if
6568 GRUB_HIDDEN_TIMEOUT is set.
6569
6570 2009-08-13 Yves Blusseau <blusseau@zetam.org>
6571
6572 * include/grub/symbol.h: Add the LOCAL macro.
6573 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
6574 starting with "L_".
6575
6576 2009-08-13 Pavel Roskin <proski@gnu.org>
6577
6578 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
6579 any modern compilers we support.
6580
6581 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
6582 Use local labels starting with "L_" so that Apple assembler
6583 knows they are local.
6584
6585 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
6586
6587 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
6588 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
6589 (bsd_kernel_types): ... this enum.
6590
6591 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
6592 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
6593 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
6594
6595 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
6596 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
6597 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
6598 messages.
6599
6600 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
6601
6602 * util/grub-dumpdevtree: Moved from here ...
6603 * util/i386/efi/grub-dumpdevtree: ... to here.
6604 (hexify): New function. Converts a string to its hex version.
6605 Generate hex versions of "efi" and "device-properties" by calling
6606 hexify() on the ASCII strings rather than by hardcoding numbers.
6607
6608 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
6609
6610 * fs/jfs.c: Update copyright year.
6611
6612 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
6613
6614 * util/grub.d/00_header.in: Fix a comment.
6615 * util/grub.d/10_linux.in: Likewise.
6616 * util/grub.d/10_windows.in: Likewise.
6617 * util/grub.d/10_hurd.in: Likewise.
6618
6619 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
6620
6621 * util/grub-mkconfig.in: Allow the user to specify the used font
6622 with GRUB_FONT.
6623
6624 2009-08-08 Pavel Roskin <proski@gnu.org>
6625
6626 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
6627 available, xfs.mod needs it now.
6628
6629 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
6630 the "g" modifier in sed when the intention is to strip something
6631 once. This fixes comparison of kernels with multiple dashes.
6632
6633 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
6634 on it. Add missing space before closing bracket. Fix
6635 misleading formatting.
6636
6637 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6638
6639 * docs/grub.texi: Major overhaul. Remove all sections that are
6640 specific to GRUB Legacy, or mostly composed of Legacy-specific
6641 information.
6642
6643 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6644
6645 * docs/version.texi: New file. Provides version information for
6646 grub.texi.
6647
6648 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6649
6650 * docs/grub.texi: Update CVS information to SVN.
6651 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
6652
6653 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
6654
6655 * util/grub-mkconfig.in: Remove a wrong `fi'.
6656
6657 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
6658
6659 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
6660 (grub_jfs_uuid): New function.
6661 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
6662
6663 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
6664
6665 * util/grub-mkconfig_lib.in (font_path): Move the functionality
6666 of it to ...
6667 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
6668 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
6669
6670 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6671
6672 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
6673 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
6674 Update all users.
6675
6676 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
6677 not just "vmlinu[zx]".
6678 Moved from here ...
6679 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
6680 all users.
6681
6682 * util/grub.d/10_linux.in (find_latest): Moved from here ...
6683 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
6684 all users.
6685
6686 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6687
6688 * util/grub.d/10_freebsd.in: Use an absolute device path for
6689 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
6690
6691 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
6692
6693 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6694 handling of multiple abstraction modules.
6695
6696 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
6697
6698 Fix a bug resulting in black screen when loading Linux using a
6699 packed video mode.
6700
6701 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
6702 function.
6703
6704 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
6705 (grub_vbe_bios_getset_dac_palette_width): New function.
6706 (grub_vbe_bios_get_dac_palette_width)
6707 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
6708 grub_vbe_bios_getset_dac_palette_width()).
6709
6710 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
6711 check for return status.
6712 (grub_vbe_get_video_mode_info): When getting information for a packed
6713 mode (<= 8 bpp), obtain DAC palette width using
6714 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
6715 {red,green,blue}_mark_size.
6716
6717 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
6718
6719 * commands/search.c (options): Fix help output to match actual code.
6720
6721 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
6724 of homegrown code.
6725
6726 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
6729 on XFS or ReiserFS.
6730
6731 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 Support Apple partition map with sector size different from 512 bytes.
6734
6735 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
6736 (apple_partition_map_iterate): Respect 'aheader.blocksize'
6737 and 'apart.partmap_size'.
6738
6739 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
6740 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
6741
6742 Fix cpuid command.
6743
6744 * commands/i386/cpuid.c (options): New variable.
6745 (grub_cmd_cpuid): Return real error.
6746 (GRUB_MOD_INIT(cpuid)): Declare options.
6747
6748 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
6751 valid.
6752
6753 2009-07-31 Bean <bean123ch@gmail.com>
6754
6755 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
6756 log2_inode.
6757 (grub_fshelp_node): Move inode field to the end.
6758 (grub_xfs_data): Remove inode field.
6759 (grub_xfs_inode_block): Calculate inode size using sblock.
6760 (grub_xfs_inode_offset): Likewise.
6761 (grub_xfs_read_inode): Calculate inode size using sblock.
6762 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
6763 (grub_xfs_iterate_dir): Calculate inode size using sblock.
6764 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
6765 to match inode size.
6766 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
6767 not accessible when data is null.
6768 (grub_xfs_open): Likewise.
6769
6770 2009-07-31 Bean <bean123ch@gmail.com>
6771
6772 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
6773 Don't change pv->disk if it's already set.
6774
6775 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
6776 (grub_raid_register): ... here.
6777 (grub_raid_rescan): Removed.
6778
6779 * include/grub/raid.h (grub_raid_rescan): Removed.
6780
6781 * util/grub-fstest.c: Remove include file <grub/raid.h>.
6782 (fstest): Replace grub_raid_rescan with module fini function followed
6783 by init function.
6784
6785 * util/grub-probe.c: Add include file <grub/raid.h>.
6786 (probe_raid_level): New function.
6787 (probe): Detect abstraction by walking the disk device, support two
6788 level of abstraction (LVM on RAID) when detecting partition map.
6789
6790 2009-07-31 Pavel Roskin <proski@gnu.org>
6791
6792 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
6793 to grub_zalloc(), it was erroneous.
6794 Reported by Bean <bean123ch@gmail.com>
6795
6796 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
6797
6798 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
6799 embedding zone, not only the first one.
6800
6801 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
6802
6803 * term/gfxterm.c (clear_char): New function.
6804 (grub_virtual_screen_setup): Use clear_char.
6805 (scroll_up): Likewise.
6806 (grub_virtual_screen_cls): Likewise.
6807
6808 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
6809
6810 * util/deviceiter.c (get_acceleraid_disk_name): New static
6811 function.
6812 (grub_util_iterate_devices): Handle Accelraid devices.
6813 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
6814
6815 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
6816
6817 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
6818 separator for the suggested gfxpayload string (';' collides with the
6819 parser and needs escaping).
6820
6821 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
6824 Clear direction flag before jumping to OS.
6825 (grub_multiboot2_real_boot): Likewise.
6826
6827 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
6828
6829 * util/i386/pc/grub-install: Fix parsing of --disk-module
6830 option.
6831
6832 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
6833
6834 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
6835 when embedding.
6836
6837 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
6838
6839 * util/grub-mkconfig.in (package_version): New variable.
6840 Use it do display the version.
6841
6842 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
6843
6844 * kern/file.c (grub_file_open): Revert to previous check with
6845 grub_errno.
6846
6847 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
6850 from help line. It's out of sync with code.
6851
6852 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
6855 entries on failed boot.
6856
6857 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
6858
6859 * kern/file.c (grub_file_open): Fix an error check.
6860
6861 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
6864 partition map couldn't be identified.
6865
6866 2009-07-23 Pavel Roskin <proski@gnu.org>
6867
6868 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
6869 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
6870 case of little endian words becomes just an optimization.
6871 Respect const modifier.
6872 (md5_final): Use code that doesn't depend on endianness.
6873
6874 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
6875 to avoid loss of upper bits if align is unsigned and shorter
6876 than addr.
6877
6878 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 UUID support for UFS
6881
6882 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
6883 (grub_ufs_uuid): New function.
6884 (grub_ufs_fs): add .uuid
6885
6886 2009-07-21 Pavel Roskin <proski@gnu.org>
6887
6888 * kern/dl.c (grub_dl_check_header): Make static.
6889
6890 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
6891
6892 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
6893 add drivemap for Vista. It breaks Windows 7.
6894
6895 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
6896
6897 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
6898 128 bytes
6899
6900 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 Add BFS support
6903
6904 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
6905 (grub_fstest_SOURCES): Likewise.
6906 (pkglib_MODULES): Add befs.mod.
6907 (befs_mod_SOURCES): New variable.
6908 (befs_mod_CFLAGS): Likewise.
6909 (befs_mod_LDFLAGS): Likewise.
6910 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6911 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6912 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6913 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6914 (grub_setup_SOURCES): Likewise.
6915 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6916 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6917 (grub_setup_SOURCES): Likewise.
6918 * fs/befs.c: New file.
6919 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
6920 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
6921 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
6922 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
6923 (B_KEY_INDEX_ALIGN): New declaration.
6924 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
6925 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
6926 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
6927 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
6928 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
6929 (grub_afs_mount) [MODE_BFS]: Likewise.
6930 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
6931 (grub_afs_fs): Use GRUB_AFS_FSNAME
6932 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
6933 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
6934 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
6935 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
6936
6937 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
6938
6939 * util/getroot.c (find_root_device): Add support for MacOSX.
6940 * util/hostdisk.c: Likewise.
6941
6942 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 * font/font.c (find_glyph): Check whether a font is present to avoid
6945 segmentation fault.
6946
6947 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
6948
6949 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
6950
6951 2009-07-20 Pavel Roskin <proski@gnu.org>
6952
6953 * configure.ac: Trim excessively wordy excuses.
6954
6955 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 Add symlink, mtime and label support to AtheFS.
6958
6959 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
6960 (grub_afs_iterate_dir): Handle symlinks.
6961 (grub_afs_open): Use grub_afs_read_symlink.
6962 (grub_afs_dir): Likewise.
6963 Pass mtime.
6964 (grub_afs_label): New function.
6965 (grub_afs_fs): Add grub_afs_label.
6966 (grub_afs_read_symlink): New function.
6967
6968 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 Fix AtheFS support.
6971
6972 * fs/afs.c: Fix comments style.
6973 (grub_afs_blockrun): Declare as packed.
6974 (grub_afs_datastream): Likewise.
6975 (grub_afs_bnode): Likewise.
6976 (grub_afs_btree): Likewise.
6977 (grub_afs_sblock): Likewise.
6978 Declare `name' as char.
6979 (grub_afs_inode): Declare as packed.
6980 Change void *vnode to grub_uint32_t unused.
6981 (grub_afs_iterate_dir): Check that key_size is positive.
6982 (grub_afs_mount): Don't read superblock twice.
6983 (grub_afs_dir): Don't free node in case of error,
6984 grub_fshelp_find_file already handles this.
6985 (grub_afs_open): Likewise.
6986
6987 2009-07-19 Pavel Roskin <proski@gnu.org>
6988
6989 * Makefile.in: Remove LIBLZO and enable_lzo.
6990 * conf/i386-pc.rmk: Remove lzo support.
6991 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
6992 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
6993 support.
6994 * kern/i386/pc/lzo1x.S: Remove.
6995 * kern/i386/pc/startup.S: Remove lzo support.
6996 * util/i386/pc/grub-mkimage.c: Likewise.
6997
6998 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
7001 * fs/xfs.c (grub_xfs_dir): Likewise.
7002 * fs/afs.c (grub_afs_dir): Likewise.
7003 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
7004 (grub_iso9660_open): Likewise.
7005 * fs/jfs.c (grub_jfs_open): Likewise.
7006 * fs/ext2.c (grub_ext2_dir): Likewise.
7007 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
7008 * script/sh/lexer.c (grub_script_yylex): Likewise.
7009
7010 2009-07-16 Pavel Roskin <proski@gnu.org>
7011
7012 * configure.ac: Never add "-c" to CFLAGS.
7013
7014 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
7015
7016 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
7017 grub_cv_cc_efiemu should be used.
7018
7019 * configure.ac: Typo fixes.
7020
7021 * kern/mm.c (grub_zalloc): New function.
7022 (grub_debug_zalloc): Likewise.
7023 * include/grub/mm.h: Declare grub_zalloc() and
7024 grub_debug_zalloc().
7025 * util/misc.c (grub_zalloc): New function.
7026 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
7027 instead of grub_malloc(), remove unneeded initializations.
7028 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
7029 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
7030 * commands/parttool.c (grub_cmd_parttool): Likewise.
7031 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
7032 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
7033 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
7034 * disk/usbms.c (grub_usbms_finddevs): Likewise.
7035 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
7036 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
7037 (grub_cmd_efiemu_pnvram): Likewise.
7038 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
7039 * fs/iso9660.c (grub_iso9660_mount): Likewise.
7040 (grub_iso9660_iterate_dir): Likewise.
7041 * fs/jfs.c (grub_jfs_opendir): Likewise.
7042 * fs/ntfs.c (list_file): Likewise.
7043 (grub_ntfs_mount): Likewise.
7044 * kern/disk.c (grub_disk_open): Likewise.
7045 * kern/dl.c (grub_dl_load_core): Likewise.
7046 * kern/elf.c (grub_elf_file): Likewise.
7047 * kern/env.c (grub_env_context_open): Likewise.
7048 (grub_env_set): Likewise.
7049 (grub_env_set_data_slot): Likewise.
7050 * kern/file.c (grub_file_open): Likewise.
7051 * kern/fs.c (grub_fs_blocklist_open): Likewise.
7052 * loader/i386/multiboot.c (grub_module): Likewise.
7053 * loader/xnu.c (grub_xnu_create_key): Likewise.
7054 (grub_xnu_create_value): Likewise.
7055 * normal/main.c (grub_normal_add_menu_entry): Likewise.
7056 (read_config_file): Likewise.
7057 * normal/menu_entry.c (make_screen): Likewise.
7058 * partmap/sun.c (sun_partition_map_iterate): Likewise.
7059 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
7060 * script/sh/script.c (grub_script_parse): Likewise.
7061 * video/bitmap.c (grub_video_bitmap_create): Likewise.
7062 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
7063 * video/readers/png.c (grub_png_output_byte): Likewise.
7064 (grub_video_reader_png): Likewise.
7065
7066 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 Enable all targets that can be built by default
7069
7070 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
7071 grub-mkfont and grub-fstest if they can be built
7072
7073 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 Fix hang and segmentation fault in grub-emu-usb
7076
7077 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
7078 * util/usb.c (grub_libusb_devices): likewise
7079 (grub_libusb_init): rename to ...
7080 (GRUB_MOD_INIT (libusb)):...this
7081 (grub_libusb_fini): rename to ..
7082 (GRUB_MOD_FINI (libusb)):...this
7083 * disk/usbms.c (grub_usbms_transfer): fix retry logic
7084 * include/grub/disk.h (grub_raid_init): removed, it's useless
7085 (grub_raid_fini): likewise
7086 (grub_lvm_init): likewise
7087 (grub_lvm_fini): likewise
7088 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
7089 by grub_init_all
7090
7091 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 Fix libusb
7094
7095 * Makefile.in (LIBUSB): new macro
7096 * genmk.rb (Utility/print_tail): new method
7097 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
7098 (top level): call util.print_tail at the end.
7099
7100 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
7101
7102 Make FreeBSD accept zpool.cache
7103
7104 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
7105 type is /boot/zfs/zpool.cache
7106
7107 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 Fix 64-bit efiemu
7110
7111 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
7112 correct wrong typedef
7113 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
7114
7115 2009-07-15 Pavel Roskin <proski@gnu.org>
7116
7117 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
7118 * kern/disk.c (struct grub_disk_cache): Likewise.
7119
7120 * commands/probe.c (options): Typo fix.
7121
7122 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
7123 Increase to 0x5a to accommodate FAT32. Adjust other offsets
7124 accordingly.
7125 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
7126
7127 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
7128 the end of "Error" to make the message more readable.
7129
7130 * boot/i386/pc/boot.S (kernel_segment): Remove.
7131 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
7132 for destination.
7133
7134 * boot/i386/pc/boot.S (boot_version): Remove.
7135 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
7136 Remove.
7137
7138 * include/grub/i386/pc/boot.h: Sort all offsets.
7139 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
7140 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
7141 * boot/i386/pc/boot.S: Assert location of every offset listed in
7142 include/grub/i386/pc/boot.h.
7143
7144 2009-07-13 Pavel Roskin <proski@gnu.org>
7145
7146 * include/grub/i386/coreboot/machine.h: Rename
7147 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
7148 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
7149 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
7150
7151 * kern/dl.c: Force native word size to suppress warnings when
7152 compiling grub-emu.
7153
7154 * kern/device.c (grub_device_iterate): Change struct part_ent to
7155 hold the name, not a pointer to it. Use one grub_malloc() per
7156 partition, not two. Free partition_name if grub_malloc() fails.
7157 Set ents to NULL only before grub_partition_iterate() is called.
7158
7159 2009-07-11 Bean <bean123ch@gmail.com>
7160
7161 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
7162 childname.
7163
7164 2009-07-10 Bean <bean123ch@gmail.com>
7165 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
7166
7167 * kern/ieee1275/openfw.c (grub_children_iterate)
7168 (grub_devalias_iterate): Fix size evaluation for property or path
7169 strings, which was broken since r2132.
7170
7171 2009-07-07 Pavel Roskin <proski@gnu.org>
7172
7173 * commands/search.c (search_file): Merge into ...
7174 (search_fs): ... this. Accept search type as argument.
7175 (grub_cmd_search): Pass search type to search_fs().
7176
7177 * include/grub/util/console.h: New file.
7178 * util/console.c: Use it instead of grub/machine/console.h.
7179 * util/grub-emu.c: Likewise.
7180
7181 * lib/arg.c (find_long_option): Remove.
7182 (find_long): Add `len' argument, make `s' const char *.
7183 (grub_arg_parse): Parse long options in place, not in a
7184 temporary buffer.
7185
7186 2009-07-06 Pavel Roskin <proski@gnu.org>
7187
7188 * commands/search.c (search_fs): Fix potential NULL pointer
7189 dereference.
7190
7191 * commands/search.c (search_fs): Replace QUID macro with quid_fn
7192 function pointer.
7193
7194 2009-07-06 Daniel Mierswa <impulze@impulze.org>
7195
7196 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
7197 comparison.
7198
7199 2009-07-05 Pavel Roskin <proski@gnu.org>
7200
7201 * include/grub/i386/linux.h (struct linux_kernel_params):
7202 Restore padding3, it's still needed.
7203
7204 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
7205 FreeBSD.
7206 * util/osdetect.lua: Likewise.
7207
7208 2009-07-05 Bean <bean123ch@gmail.com>
7209
7210 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
7211
7212 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
7213 (grub_lua_getenv): Likewise.
7214 (grub_lua_setenv): Likewise.
7215 (save_errno): New function.
7216 (push_result): Likewise.
7217 (grub_lua_enum_device): Likewise.
7218 (grub_lua_enum_file): Likewise.
7219 (grub_lua_file_open): Likewise.
7220 (grub_lua_file_close): Likewise.
7221 (grub_lua_file_seek): Likewise.
7222 (grub_lua_file_read): Likewise.
7223 (grub_lua_file_getline): Likewise.
7224 (grub_lua_file_getsize): Likewise.
7225 (grub_lua_file_getpos): Likewise.
7226 (grub_lua_file_eof): Likewise.
7227 (grub_lua_file_exist): Likewise.
7228 (grub_lua_add_menu): Likewise.
7229
7230 * script/lua/grub_lua.h (isupper): New inline function.
7231 (islower): Likewise.
7232 (ispunct): Likewise.
7233 (isxdigit): Likewise.
7234 (strcspn): Change to normal function.
7235 (strpbkr): New function declaration.
7236 (memchr): Likewise.
7237
7238 * script/lua/grub_main.c (scan_str): New function.
7239 (strcspn): Likewise.
7240 (strpbrk): Likewise.
7241 (memchr): Likewise.
7242
7243 * script/lua/linit.c (lualibs): Enable the string library.
7244
7245 * util/osdetect.lua: New file.
7246
7247 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
7248
7249 * include/grub/i386/linux.h (struct linux_kernel_params): Add
7250 `capabilities' member.
7251
7252 2009-07-02 Pavel Roskin <proski@gnu.org>
7253
7254 * genparttoollist.sh: Add missing newline at the end.
7255
7256 2009-07-01 Pavel Roskin <proski@gnu.org>
7257
7258 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
7259
7260 * util/hostdisk.c (open_device): Remove `const' from
7261 `sysctl_size', as sysctlbyname() can change it (in this case it
7262 doesn't actually happen).
7263
7264 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
7265 using signed long int constants.
7266
7267 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
7268 constant to avoid a warning on FreeBSD.
7269
7270 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
7271 where it's needed.
7272
7273 * Makefile.in: Install include/grub/machine symlink.
7274
7275 * Makefile.in: When installing symlinks, use "cp -fR", which
7276 works on FreeBSD and MacOSX.
7277 From Yves Blusseau <cl7m42e02@sneakemail.com>
7278
7279 * kern/dl.c (grub_dl_resolve_symbol): Make static.
7280 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
7281
7282 * util/misc.c: Move grub_reboot() and grub_halt() ...
7283 * util/grub-emu.c: ... here. Make main_env static.
7284 * include/grub/util/misc.h: Remove main_env.
7285
7286 * kern/mm.c: Use correct format to print size_t.
7287
7288 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
7289 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
7290 * kern/powerpc/dl.c: Likewise.
7291 * kern/sparc64/dl.c: Likewise.
7292 * kern/x86_64/dl.c: Likewise.
7293
7294 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
7295
7296 Fix grub-emu build on sparc64-ieee1275.
7297
7298 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
7299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
7300
7301 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
7302
7303 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
7304 (grub_reboot, grub_halt): New functions.
7305
7306 * util/i386/pc/misc.c: Delete. Update all users.
7307 * util/sparc64/ieee1275/misc.c: Likewise.
7308 * util/powerpc/ieee1275/misc.c: Likewise.
7309
7310 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
7311
7312 * conf/i386.rmk (setjmp_mod_SOURCES)
7313 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
7314 * conf/common.rmk (setjmp_mod_SOURCES)
7315 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
7316 to use $(target_cpu).
7317 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
7318 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
7319 * conf/powerpc-ieee1275.rmk: Likewise.
7320 * conf/sparc64-ieee1275.rmk: Likewise.
7321
7322 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
7323 $(target_cpu) for kern/$(target_cpu)/dl.c.
7324 * conf/i386-efi.rmk: Likewise.
7325 * conf/i386-ieee1275.rmk: Likewise.
7326 * conf/x86_64-efi.rmk: Likewise.
7327 * conf/i386-coreboot.rmk: Likewise.
7328 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
7329 $(target_cpu) for kern/$(target_cpu)/dl.c and for
7330 kern/$(target_cpu)/cache.S.
7331 * conf/sparc64-ieee1275.rmk: Likewise.
7332
7333 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
7334
7335 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
7336 type to `grub_uint8_t', and adjust `padding9' accordingly.
7337
7338 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
7339
7340 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
7341
7342 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
7343 assembly in final jump, using register constraints.
7344
7345 (grub_linux_boot): For text mode, initialize `have_vga' using
7346 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
7347
7348 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
7349 right before the final jump.
7350
7351 Set `video_mode' to 0x3.
7352
7353 Document initialization of `video_page', `video_mode' and
7354 `video_ega_bx'.
7355
7356 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
7357
7358 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
7359 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
7360 and set GRUB_LINUX_FLAG_QUIET appropriately.
7361
7362 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
7363
7364 Fix build on Debian / sparc.
7365
7366 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
7367
7368 2009-06-28 Pavel Roskin <proski@gnu.org>
7369
7370 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
7371 fix a warning.
7372
7373 * util/grub.d/10_linux.in: Match SUSE style initrd names.
7374
7375 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
7376
7377 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
7378 `err'.
7379
7380 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
7381
7382 Revert r2338.
7383
7384 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
7385 file can't be opened. grub_file_open() is already supposed to set
7386 grub_errno / grub_errmsg appropriately.
7387 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7388
7389 2009-06-27 Pavel Roskin <proski@gnu.org>
7390 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
7391
7392 * include/grub/dl.h: Include grub/elf.h.
7393 (struct grub_dl): Add symtab field.
7394 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
7395 GRUB_MODULES_MACHINE_READONLY.
7396 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
7397 of the header for read-only modules.
7398 (grub_dl_unload): Free mod->symtab for read-only modules.
7399 * kern/i386/dl.c: Use mod->symtab.
7400 * kern/powerpc/dl.c: Likewise.
7401 * kern/sparc64/dl.c: Likewise.
7402 * kern/x86_64/dl.c: Likewise.
7403
7404 * conf/i386-qemu.rmk: New file.
7405 * kern/i386/qemu/startup.S: Likewise.
7406 * kern/i386/qemu/mmap.c: Likewise.
7407 * boot/i386/qemu/boot.S: Likewise.
7408 * include/grub/i386/qemu/time.h: Likewise.
7409 * include/grub/i386/qemu/serial.h: Likewise.
7410 * include/grub/i386/qemu/kernel.h: Likewise.
7411 * include/grub/i386/qemu/console.h: Likewise.
7412 * include/grub/i386/qemu/boot.h: Likewise.
7413 * include/grub/i386/qemu/init.h: Likewise.
7414 * include/grub/i386/qemu/machine.h: Likewise.
7415 * include/grub/i386/qemu/loader.h: Likewise.
7416 * include/grub/i386/qemu/memory.h: Likewise.
7417
7418 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
7419 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
7420 [qemu] (pkglib_IMAGES): Add `boot.img'.
7421 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
7422 [qemu] (boot_img_FORMAT): New variables.
7423 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
7424 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
7425 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
7426 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
7427 [qemu] (kernel_img_FORMAT): New variables.
7428
7429 * configure.ac: Recognise `i386-qemu'.
7430
7431 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
7432 (for no compression).
7433 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
7434 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
7435 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
7436 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
7437 ifdefs).
7438
7439 2009-06-27 Pavel Roskin <proski@gnu.org>
7440
7441 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
7442 read.
7443 * efiemu/prepare32.c: Likewise.
7444 * efiemu/prepare64.c: Likewise.
7445
7446 2009-06-26 Pavel Roskin <proski@gnu.org>
7447
7448 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
7449 * include/grub/elf.h: Define symbols without "32" or "64" based
7450 on GRUB_TARGET_WORDSIZE.
7451 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
7452 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
7453 ELF definitions.
7454 * efiemu/loadcore64.c: Likewise.
7455 * loader/i386/bsd32.c: Likewise.
7456 * loader/i386/bsd64.c: Likewise.
7457 * kern/dl.c: Remove own ELF definitions.
7458 * util/i386/efi/grub-mkimage.c: Likewise.
7459
7460 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
7461
7462 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
7463 segment 0x0 unconditionally, because the reference generated by
7464 GAS is an absolute address.
7465
7466 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
7467
7468 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
7469 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
7470
7471 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
7472
7473 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
7474 indexes. Check for -f explicitly.
7475 (search_file): Improve error message.
7476 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
7477
7478 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
7479
7480 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
7481 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
7482
7483 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
7484
7485 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
7486 * conf/i386-ieee1275.rmk: Likewise.
7487 * conf/i386-coreboot.rmk: Likewise.
7488
7489 * kern/i386/pc/startup.S (grub_stop): Remove function.
7490 * kern/i386/ieee1275/startup.S: Likewise.
7491 * kern/i386/coreboot/startup.S: Likewise.
7492 * kern/i386/misc.S (grub_stop): New function.
7493
7494 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
7495
7496 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
7497 * kern/i386/realmode.S (real_to_prot): ... to here.
7498
7499 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
7500
7501 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
7502 with `kernel.img'.
7503 (kernel_elf_SOURCES): Rename to ...
7504 (kernel_img_SOURCES): ... this.
7505 (kernel_elf_HEADERS): Rename to ...
7506 (kernel_img_HEADERS): ... this. Update all users.
7507 (kernel_elf_ASFLAGS): Rename to ...
7508 (kernel_img_ASFLAGS): ... this.
7509 (kernel_elf_CFLAGS): Rename to ...
7510 (kernel_img_CFLAGS): ... this.
7511 (kernel_elf_LDFLAGS): Rename to ...
7512 (kernel_img_LDFLAGS): ... this.
7513 * conf/i386-coreboot.rmk: Likewise.
7514 * conf/powerpc-ieee1275.rmk: Likewise.
7515
7516 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
7517 with "kernel.img".
7518
7519 2009-06-21 Pavel Roskin <proski@gnu.org>
7520
7521 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
7522 to match nested functions.
7523 * loader/sparc64/ieee1275/linux.c: Likewise.
7524
7525 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
7526
7527 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
7528
7529 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
7530 all i386 platforms.
7531
7532 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
7533
7534 Fix asm file handling on ELF, and remove workarounds.
7535
7536 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
7537 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
7538 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
7539 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
7540
7541 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 Load BSD ELF modules
7544
7545 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
7546 and loader/i386/bsd64.c
7547 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
7548 (FREEBSD_MODTYPE_ELF_MODULE): New definition
7549 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
7550 (grub_freebsd_load_elfmodule32): New declaration
7551 (grub_freebsd_load_elfmoduleobj64): Likewise
7552 (grub_freebsd_load_elf_meta32): Likewise
7553 (grub_freebsd_load_elf_meta64): Likewise
7554 (grub_freebsd_add_meta): Likewise
7555 (grub_freebsd_add_meta_module): Likewise
7556 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
7557 (grub_freebsd_add_meta_module): Likewise and move module-specific
7558 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
7559 (grub_cmd_freebsd): Add elf-kernel specific parts
7560 based on grub_freebsd_add_meta_module
7561 (grub_cmd_freebsd_module): Add type parsing moved from
7562 grub_freebsd_add_meta_module
7563 (grub_cmd_freebsd_module_elf): New function
7564 (cmd_freebsd_module_elf): New variable
7565 (GRUB_MOD_INIT): Register freebsd_module_elf
7566 * loader/i386/bsd32.c: New file
7567 * loader/i386/bsd64.c: Likewise
7568 * loader/i386/bsdXX.c: Likewise
7569 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
7570 (grub_elf64_load): Likewise
7571 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
7572 All users updated
7573 (grub_elf64_load_hook_t): Likewise
7574
7575 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
7576
7577 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
7578 variable.
7579 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
7580 don't write a menu entry for recovery mode.
7581
7582 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
7583
7584 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
7585 after it's no longer needed.
7586
7587 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
7588
7589 * include/grub/i386/loader.h (grub_linux_prot_size)
7590 (grub_linux_tmp_addr, grub_linux_real_addr)
7591 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
7592 GRUB_MACHINE_PCBIOS.
7593 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
7594 common grub_util_info() call to ...
7595 (generate_image): ... here.
7596 Fix use of uninitialized memory, comparison of signed with
7597 unsigned integers and memory leak.
7598 Remove bogus module address message.
7599
7600 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
7603 grub_raid_register
7604 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
7605
7606 2009-06-19 Pavel Roskin <proski@gnu.org>
7607
7608 * configure.ac: Remove stray AC_MSG_CHECKING.
7609
7610 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * disk/scsi.c (grub_scsi_open): use continue instead of big if
7613
7614 2009-06-18 Pavel Roskin <proski@gnu.org>
7615
7616 * conf/common.rmk: Add fs_file.mod.
7617 * disk/fs_file.c: New file.
7618 * include/grub/disk.h (enum grub_disk_dev_id): Add
7619 GRUB_DISK_DEVICE_FILE_ID.
7620
7621 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7622
7623 Fix build with Apple's toolchain. Part 2
7624
7625 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
7626 a fake start
7627
7628 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 Fix build with Apple's toolchain. Part 1
7631
7632 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
7633 for long calls
7634 * configure.ac: remove a leftover AC_MSG_RESULT
7635 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
7636 Apple's toolchain
7637
7638 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 Fix warnings
7641
7642 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
7643 (decomp_block): initialize ch
7644 use grub_memcpy instead of memcpy
7645
7646 2009-06-17 Pavel Roskin <proski@gnu.org>
7647
7648 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
7649 version, use declarations needed to use vga_text as the startup
7650 console.
7651
7652 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
7653 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
7654 the kernel.
7655 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
7656 and grub_at_keyboard_fini(), it's done on module load and
7657 unload.
7658
7659 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
7660
7661 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
7662 file can't be found.
7663 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7664
7665 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 Fix newline handling
7668
7669 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
7670 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
7671 (grub_script_yylex): don't segfault on unterminated script
7672 newline terminates command and variable
7673
7674 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
7675
7676 avoid double grub_adjust_range call. Bug reported by David Simner
7677
7678 * kern/disk.c (grub_disk_write): change to raw disk access before
7679 calling disk_read
7680
7681 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
7682
7683 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
7684 spaces, for the benefit of help2man.
7685 * util/i386/efi/grub-mkimage.c (usage): Likewise.
7686
7687 2009-06-16 Pavel Roskin <proski@gnu.org>
7688
7689 * kern/i386/halt.c: Include grub/machine/init.h.
7690 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
7691
7692 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
7693
7694 * util/grub.d/30_os-prober.in: Use ${root} in the generated
7695 drivemap menuentry.
7696
7697 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
7698
7699 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
7700 `echo' command.
7701
7702 2009-06-16 Pavel Roskin <proski@gnu.org>
7703
7704 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
7705 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
7706 save %dx, we only need %dl and we never change it.
7707 * boot/i386/pc/cdboot.S: Don't set the root drive.
7708 * boot/i386/pc/pxeboot.S: Likewise.
7709 * include/grub/i386/pc/boot.h: Remove
7710 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
7711 GRUB_BOOT_MACHINE_DRIVE_CHECK.
7712 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
7713 * kern/i386/pc/init.c (make_install_device): Remove references
7714 to grub_root_drive.
7715 * kern/i386/pc/startup.S: Likewise.
7716 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
7717
7718 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 xnu_uuid command
7721
7722 * commands/xnu_uuid.c: new file
7723 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
7724 (xnu_uuid_mod_SOURCES): new variable
7725 (xnu_uuid_mod_CFLAGS): likewise
7726 (xnu_uuid_mod_LDFLAGS): likewise
7727 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
7728 * conf/i386-ieee1275.rmk: likewise
7729 * conf/i386-pc.rmk: likewise
7730 * conf/powerpc-ieee1275.rmk: likewise
7731 * conf/sparc64-ieee1275.rmk: likewise
7732 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
7733
7734 2009-06-16 Pavel Roskin <proski@gnu.org>
7735
7736 * configure.ac: Avoid '==' in test command, it's not portable.
7737
7738 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 Probe command
7741
7742 * commands/probe.c: new file
7743 * conf/common.rmk (pkglib_MODULES): add probe.mod
7744 (probe_mod_SOURCES): new variable
7745 (probe_mod_CFLAGS): likewise
7746 (probe_mod_LDFLAGS): likewise
7747 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
7748 * conf/i386-ieee1275.rmk: likewise
7749 * conf/i386-pc.rmk: likewise
7750 * conf/powerpc-ieee1275.rmk: likewise
7751 * conf/sparc64-ieee1275.rmk: likewise
7752
7753 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 Fix handling of string like \"hello\" and "a
7756 b"
7757
7758 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
7759 (grub_script_yylex): fix parsing of quoting, escaping and newline
7760
7761 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
7764 handling
7765
7766 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
7767
7768 * util/grub-mkconfig.in: Fix parsing of --output option.
7769
7770 2009-06-12 Pavel Roskin <proski@gnu.org>
7771
7772 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
7773 genmk.rb don't need to be generated or installed.
7774
7775 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * commands/i386/pc/drivemap_int13h.S: add more comments
7778
7779 2009-06-11 Pavel Roskin <proski@gnu.org>
7780
7781 * Makefile.in (uninstall): Uninstall manuals.
7782
7783 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
7784 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
7785 and update-grub_lib in two places.
7786 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
7787
7788 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
7789 a compiler warning.
7790
7791 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
7792 `entry_lo' to fix variable shadowing.
7793
7794 2009-06-11 Christian Franke <franke@computer.org>
7795
7796 * kern/misc.c (__enable_execute_stack): Add missing return type
7797 to prevent gcc warning.
7798
7799 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
7800
7801 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
7802
7803 2009-06-11 Pavel Roskin <proski@gnu.org>
7804
7805 * Makefile.in: Don't rely on any scripts being executable.
7806 Always use $(SHELL) to run shell scripts.
7807
7808 * configure.ac: Always define ___main if using -nostdlib. This
7809 fixes tests on Cygwin.
7810
7811 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
7812
7813 UDF fix
7814
7815 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
7816 is in bytes and not in blocks
7817
7818 2009-06-11 Pavel Roskin <proski@gnu.org>
7819
7820 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
7821 warning.
7822
7823 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
7824
7825 * util/grub.d/30_os-prober.in: Fix a comment. Source
7826 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
7827 to set the root device. Place drivemap command in the generated
7828 chain entry.
7829
7830 2009-06-11 Pavel Roskin <proski@gnu.org>
7831
7832 * configure.ac: Remove host_m32. Issues with 64-bit utilities
7833 have long been resolved.
7834
7835 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
7836
7837 * util/grub.d/10_linux.in: Capitalise "Linux".
7838
7839 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
7840
7841 2009-06-11 Pavel Roskin <proski@gnu.org>
7842
7843 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
7844 fix a gcc warning and ensure that the function won't ever exit.
7845
7846 * kern/i386/ieee1275/init.c: Add missing prototype for
7847 grub_stop_floppy().
7848
7849 * loader/ieee1275/multiboot2.c [__i386__]: Include
7850 grub/cpu/multiboot.h.
7851
7852 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
7853 casts to short - they are not portable and cause warnings. Fix
7854 use of uninitialized values in input_buf. Use ARRAY_SIZE.
7855
7856 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
7857
7858 Drivemap fixes
7859
7860 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
7861 new function
7862 (grub_get_root_biosnumber_saved): new variable
7863 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
7864 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
7865 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
7866 %dx after the call if necessary
7867 * conf/common.rmk (pkglib_MODULES): remove boot.mod
7868 (boot_mod_SOURCES): remove
7869 (boot_mod_CFLAGS): remove
7870 (boot_mod_LDFLAGS): remove
7871 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
7872 (boot_mod_SOURCES): new variable
7873 (boot_mod_CFLAGS): likewise
7874 (boot_mod_LDFLAGS): likewise
7875 * conf/i386-efi.rmk: likewise
7876 * conf/i386-ieee1275.rmk: likewise
7877 * conf/i386-pc.rmk: likewise
7878 * conf/powerpc-ieee1275.rmk: likewise
7879 * conf/sparc64-ieee1275.rmk: likewise
7880 * conf/x86_64-efi.rmk: likewise
7881 * include/grub/i386/pc/biosnum.h: new file
7882 * lib/i386/pc/biosnum.c: likewise
7883 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
7884 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
7885 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
7886
7887 2009-06-10 Pavel Roskin <proski@gnu.org>
7888
7889 * io/gzio.c (test_header): Don't reuse one buffer for all data.
7890 Use separate variables. Read only the file size at the end, but
7891 not the checksum that we don't use.
7892
7893 * kern/file.c (grub_file_read): Use void pointer for the buffer.
7894 Adjust all callers.
7895
7896 * kern/ieee1275/openfw.c: Remove libc includes.
7897 * kern/ieee1275/cmain.c: Likewise.
7898 * include/grub/ieee1275/ieee1275.h: Likewise.
7899
7900 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
7901 compiler warnings.
7902
7903 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
7904
7905 * Makefile.in: Remove all trailing whitespace.
7906 * conf/i386-pc.rmk: Likewise.
7907 * conf/powerpc-ieee1275.rmk: Likewise.
7908 * conf/sparc64-ieee1275.rmk: Likewise.
7909 * docs/grub.texi: Likewise.
7910 * docs/texinfo.tex: Likewise.
7911 * disk/fs_uuid.c: Likewise.
7912 * disk/lvm.c: Likewise.
7913 * disk/scsi.c: Likewise.
7914 * disk/ata.c: Likewise.
7915 * disk/ieee1275/ofdisk.c: Likewise.
7916 * disk/i386/pc/biosdisk.c: Likewise.
7917 * disk/host.c: Likewise.
7918 * disk/raid.c: Likewise.
7919 * disk/efi/efidisk.c: Likewise.
7920 * disk/usbms.c: Likewise.
7921 * disk/memdisk.c: Likewise.
7922 * disk/loopback.c: Likewise.
7923 * kern/powerpc/dl.c: Likewise.
7924 * kern/device.c: Likewise.
7925 * kern/dl.c: Likewise.
7926 * kern/sparc64/dl.c: Likewise.
7927 * kern/ieee1275/ieee1275.c: Likewise.
7928 * kern/term.c: Likewise.
7929 * kern/fs.c: Likewise.
7930 * kern/i386/dl.c: Likewise.
7931 * kern/i386/pc/startup.S: Likewise.
7932 * kern/i386/pc/init.c: Likewise.
7933 * kern/i386/pc/mmap.c: Likewise.
7934 * kern/i386/pc/lzo1x.S: Likewise.
7935 * kern/i386/ieee1275/init.c: Likewise.
7936 * kern/i386/realmode.S: Likewise.
7937 * kern/i386/tsc.c: Likewise.
7938 * kern/partition.c: Likewise.
7939 * kern/corecmd.c: Likewise.
7940 * kern/file.c: Likewise.
7941 * kern/efi/efi.c: Likewise.
7942 * kern/efi/init.c: Likewise.
7943 * kern/efi/mm.c: Likewise.
7944 * kern/main.c: Likewise.
7945 * kern/err.c: Likewise.
7946 * kern/env.c: Likewise.
7947 * kern/disk.c: Likewise.
7948 * kern/generic/millisleep.c: Likewise.
7949 * kern/generic/rtc_get_time_ms.c: Likewise.
7950 * kern/misc.c: Likewise.
7951 * kern/parser.c: Likewise.
7952 * genmk.rb: Likewise.
7953 * configure.ac: Likewise.
7954 * boot/i386/pc/diskboot.S: Likewise.
7955 * boot/i386/pc/pxeboot.S: Likewise.
7956 * boot/i386/pc/boot.S: Likewise.
7957 * boot/i386/pc/lnxboot.S: Likewise.
7958 * boot/i386/pc/cdboot.S: Likewise.
7959 * parttool/pcpart.c: Likewise.
7960 * video/readers/tga.c: Likewise.
7961 * video/video.c: Likewise.
7962 * video/bitmap.c: Likewise.
7963 * lib/envblk.c: Likewise.
7964 * lib/i386/setjmp.S: Likewise.
7965 * fs/xfs.c: Likewise.
7966 * fs/afs.c: Likewise.
7967 * fs/fat.c: Likewise.
7968 * fs/ntfs.c: Likewise.
7969 * fs/udf.c: Likewise.
7970 * fs/affs.c: Likewise.
7971 * fs/iso9660.c: Likewise.
7972 * fs/hfs.c: Likewise.
7973 * fs/fshelp.c: Likewise.
7974 * fs/ext2.c: Likewise.
7975 * fs/jfs.c: Likewise.
7976 * fs/reiserfs.c: Likewise.
7977 * fs/hfsplus.c: Likewise.
7978 * fs/minix.c: Likewise.
7979 * fs/cpio.c: Likewise.
7980 * fs/sfs.c: Likewise.
7981 * fs/ufs.c: Likewise.
7982 * efiemu/prepare.c: Likewise.
7983 * efiemu/loadcore_common.c: Likewise.
7984 * efiemu/runtime/efiemu.sh: Likewise.
7985 * efiemu/runtime/efiemu.S: Likewise.
7986 * efiemu/runtime/efiemu.c: Likewise.
7987 * efiemu/pnvram.c: Likewise.
7988 * efiemu/main.c: Likewise.
7989 * efiemu/i386/pc/cfgtables.c: Likewise.
7990 * efiemu/i386/loadcore64.c: Likewise.
7991 * efiemu/i386/loadcore32.c: Likewise.
7992 * efiemu/loadcore.c: Likewise.
7993 * efiemu/symbols.c: Likewise.
7994 * efiemu/mm.c: Likewise.
7995 * include/grub/autoefi.h: Likewise.
7996 * include/grub/datetime.h: Likewise.
7997 * include/grub/term.h: Likewise.
7998 * include/grub/hfs.h: Likewise.
7999 * include/grub/lvm.h: Likewise.
8000 * include/grub/i386/tsc.h: Likewise.
8001 * include/grub/i386/linux.h: Likewise.
8002 * include/grub/i386/xnu.h: Likewise.
8003 * include/grub/i386/efiemu.h: Likewise.
8004 * include/grub/i386/pc/biosdisk.h: Likewise.
8005 * include/grub/i386/pc/memory.h: Likewise.
8006 * include/grub/i386/pc/vbe.h: Likewise.
8007 * include/grub/parttool.h: Likewise.
8008 * include/grub/video.h: Likewise.
8009 * include/grub/memory.h: Likewise.
8010 * include/grub/fs.h: Likewise.
8011 * include/grub/partition.h: Likewise.
8012 * include/grub/xnu.h: Likewise.
8013 * include/grub/efi/api.h: Likewise.
8014 * include/grub/efi/pe32.h: Likewise.
8015 * include/grub/efi/memory.h: Likewise.
8016 * include/grub/multiboot.h: Likewise.
8017 * include/grub/usbdesc.h: Likewise.
8018 * include/grub/multiboot2.h: Likewise.
8019 * include/grub/acpi.h: Likewise.
8020 * include/grub/efiemu/efiemu.h: Likewise.
8021 * include/grub/disk.h: Likewise.
8022 * include/grub/ieee1275/ieee1275.h: Likewise.
8023 * include/grub/net.h: Likewise.
8024 * include/grub/machoload.h: Likewise.
8025 * include/grub/macho.h: Likewise.
8026 * include/multiboot.h: Likewise.
8027 * genmoddep.awk: Likewise.
8028 * normal/main.c: Likewise.
8029 * normal/menu_entry.c: Likewise.
8030 * normal/menu_viewer.c: Likewise.
8031 * normal/completion.c: Likewise.
8032 * normal/cmdline.c: Likewise.
8033 * normal/misc.c: Likewise.
8034 * normal/datetime.c: Likewise.
8035 * bus/usb/usbtrans.c: Likewise.
8036 * bus/usb/ohci.c: Likewise.
8037 * bus/usb/uhci.c: Likewise.
8038 * bus/usb/usb.c: Likewise.
8039 * mmap/efi/mmap.c: Likewise.
8040 * mmap/i386/pc/mmap_helper.S: Likewise.
8041 * mmap/i386/pc/mmap.c: Likewise.
8042 * mmap/i386/mmap.c: Likewise.
8043 * mmap/i386/uppermem.c: Likewise.
8044 * mmap/mmap.c: Likewise.
8045 * commands/acpi.c: Likewise.
8046 * commands/echo.c: Likewise.
8047 * commands/blocklist.c: Likewise.
8048 * commands/loadenv.c: Likewise.
8049 * commands/usbtest.c: Likewise.
8050 * commands/boot.c: Likewise.
8051 * commands/parttool.c: Likewise.
8052 * commands/search.c: Likewise.
8053 * commands/cat.c: Likewise.
8054 * commands/i386/pc/play.c: Likewise.
8055 * commands/i386/pc/drivemap.c: Likewise.
8056 * commands/i386/pc/vbeinfo.c: Likewise.
8057 * commands/i386/pc/acpi.c: Likewise.
8058 * commands/i386/pc/vbetest.c: Likewise.
8059 * commands/ls.c: Likewise.
8060 * commands/cmp.c: Likewise.
8061 * commands/test.c: Likewise.
8062 * commands/efi/acpi.c: Likewise.
8063 * commands/gptsync.c: Likewise.
8064 * commands/help.c: Likewise.
8065 * partmap/amiga.c: Likewise.
8066 * partmap/apple.c: Likewise.
8067 * partmap/acorn.c: Likewise.
8068 * partmap/pc.c: Likewise.
8069 * partmap/sun.c: Likewise.
8070 * partmap/gpt.c: Likewise.
8071 * script/sh/lexer.c: Likewise.
8072 * script/sh/function.c: Likewise.
8073 * font/font.c: Likewise.
8074 * font/font_cmd.c: Likewise.
8075 * loader/powerpc/ieee1275/linux.c: Likewise.
8076 * loader/efi/chainloader.c: Likewise.
8077 * loader/multiboot_loader.c: Likewise.
8078 * loader/macho.c: Likewise.
8079 * loader/i386/multiboot.c: Likewise.
8080 * loader/i386/linux.c: Likewise.
8081 * loader/i386/pc/linux.c: Likewise.
8082 * loader/i386/pc/multiboot2.c: Likewise.
8083 * loader/i386/pc/chainloader.c: Likewise.
8084 * loader/i386/pc/xnu.c: Likewise.
8085 * loader/i386/bsd_trampoline.S: Likewise.
8086 * loader/i386/efi/linux.c: Likewise.
8087 * loader/i386/multiboot_elfxx.c: Likewise.
8088 * loader/i386/bsd_helper.S: Likewise.
8089 * loader/i386/bsd.c: Likewise.
8090 * loader/i386/linux_trampoline.S: Likewise.
8091 * loader/i386/xnu_helper.S: Likewise.
8092 * loader/i386/xnu.c: Likewise.
8093 * loader/i386/bsd_pagetable.c: Likewise.
8094 * loader/i386/multiboot_helper.S: Likewise.
8095 * loader/xnu.c: Likewise.
8096 * loader/xnu_resume.c: Likewise.
8097 * io/gzio.c: Likewise.
8098 * term/efi/console.c: Likewise.
8099 * term/terminfo.c: Likewise.
8100 * term/ieee1275/ofconsole.c: Likewise.
8101 * term/i386/pc/serial.c: Likewise.
8102 * term/i386/pc/vesafb.c: Likewise.
8103 * term/i386/pc/vga.c: Likewise.
8104 * term/usb_keyboard.c: Likewise.
8105 * term/gfxterm.c: Likewise.
8106 * aclocal.m4: Likewise.
8107 * util/lvm.c: Likewise.
8108 * util/grub.d/30_os-prober.in: Likewise.
8109 * util/grub.d/10_hurd.in: Likewise.
8110 * util/console.c: Likewise.
8111 * util/grub-macho2img.c: Likewise.
8112 * util/grub-probe.c: Likewise.
8113 * util/hostfs.c: Likewise.
8114 * util/i386/pc/grub-mkimage.c: Likewise.
8115 * util/i386/pc/grub-setup.c: Likewise.
8116 * util/i386/efi/grub-mkimage.c: Likewise.
8117 * util/grub-mkconfig.in: Likewise.
8118 * util/raid.c: Likewise.
8119 * util/resolve.c: Likewise.
8120 * util/grub-mkdevicemap.c: Likewise.
8121 * util/grub-emu.c: Likewise.
8122 * util/getroot.c: Likewise.
8123 * util/hostdisk.c: Likewise.
8124 * util/usb.c: Likewise.
8125 * util/grub-editenv.c: Likewise.
8126 * util/misc.c: Likewise.
8127
8128 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
8129
8130 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
8131 `genparttoollist.sh'.
8132 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
8133 Add `*.sh' to the list find searches for and change `mdate.sh'
8134 to `mdate-sh'.
8135
8136 2009-06-10 Pavel Roskin <proski@gnu.org>
8137
8138 * include/grub/multiboot2.h: Provide compatibility defines for
8139 multiboot2.h.
8140 * include/multiboot2.h: Include stdint.h only if needed, using
8141 angle brackets.
8142 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
8143 grub/multiboot2.h.
8144 * loader/ieee1275/multiboot2.c: Likewise.
8145 * loader/multiboot2.c: Likewise.
8146 * loader/multiboot_loader.c: Likewise.
8147
8148 * configure.ac: Use -nostdlib when probing for the target. It
8149 should not be required to have libc for the target.
8150
8151 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
8152 they fail without libc headers for the target.
8153 * include/grub/powerpc/libgcc.h: Use weak attribute for all
8154 exports.
8155 * include/grub/sparc64/libgcc.h: Likewise. Don't use
8156 preprocessor conditionals.
8157
8158 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
8159 build system doesn't need to be aware of the tar.c internals.
8160
8161 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
8162
8163 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8164
8165 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
8166
8167 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
8168 disk limit to 26 for IDE, Virtio, Xen and SCSI.
8169
8170 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
8171
8172 * util/i386/pc/grub-install.in: Change the error message if UUIDs
8173 aren't available if ata.mod gets used.
8174
8175 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
8176
8177 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
8178 initialising controller.
8179 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
8180
8181 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
8182
8183 * util/i386/pc/grub-install.in: Add a parameter --disk-module
8184 to choose between ata and biosdisk module on i386-pc.
8185
8186 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
8187
8188 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
8189 Subclass and Programming Interface fields in terms of the 3 byte
8190 Class Code register.
8191 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
8192
8193 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
8194 interface is OHCI. Add grub_dprintf for symmetry with
8195 bus/usb/uhci.c.
8196 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
8197 interface is UHCI. Add interf variable for programming
8198 interface. Print interface with class/subclass.
8199
8200 * bus/usb/ohci.c: Set interf with correct field.
8201
8202 * bus/usb/uhci.c: Remove unneeded doubled lines.
8203 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
8204 Remove whitespace inside comment.
8205
8206 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
8207
8208 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
8209 as fallback an equivalent option without depth.
8210
8211 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8212
8213 Not fail if unable to retrieve C/H/S on LBA disks
8214
8215 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
8216 if unable to retrieve C/H/S on LBA disks
8217
8218 2009-06-08 Pavel Roskin <proski@gnu.org>
8219
8220 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
8221 about aliasing.
8222
8223 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
8224
8225 * Makefile.in (uninstall): Remove all $lib_DATA files.
8226
8227 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8228
8229 Bugfix: install on partitionless device
8230
8231 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
8232 is a whole disk
8233
8234 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
8235
8236 * Makefile.in (uninstall): Remove all $include_DATA files.
8237
8238 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
8239
8240 * commands/true.c: New file. Implement the true and false commands.
8241 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
8242 (true_mod_SOURCES): New variable.
8243 (true_mod_CFLAGS): Likewise.
8244 (true_mod_LDFLAGS): Likewise.
8245
8246 2009-06-05 Colin D Bennett <colin@gibibit.com>
8247
8248 Optimized font character lookup using binary search instead of linear
8249 search. Fonts now are required to have the character index ordered by
8250 code point.
8251
8252 * font/font.c (load_font_index): Verify that fonts have ordered
8253 character indices.
8254 (find_glyph): Use binary search instead of linear search to find a
8255 character in a font.
8256
8257 2009-06-05 Michael Scherer <misc@mandriva.org>
8258
8259 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
8260 uses case sensitive btree.
8261 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
8262 only for case insensitive filesystems.
8263
8264 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
8267 * conf/common.rmk (search_mod_CFLAGS): likewise
8268
8269 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8270
8271 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
8272 compensate a compiler bug
8273
8274 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
8277 instead of '\b'
8278
8279 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8280
8281 Definitions for creating asm symbols with Apple's CC
8282
8283 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
8284 [APPLE_CC] (VARIABLE): likewise
8285
8286 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8287
8288 Disable lnxboot.img when compiled
8289 with Apple's CC
8290
8291 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
8292 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
8293 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
8294 [! APPLE_CC] (CODE_LENG): skip
8295 [! APPLE_CC] (setup_sects): likewise
8296 [! APPLE_CC]: skip filling
8297
8298 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 Address in trampolines based on 32-bit registers when compiled
8301 with Apple's CC
8302
8303 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
8304 for addresses
8305 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
8306
8307 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8308
8309 Avoid aliases when compiling with Apple's CC for PCBIOS machine
8310
8311 * kern/misc.c [APPLE_CC] (memcpy): new function
8312 [APPLE_CC] (memmove): likewise
8313 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
8314 (memcpy): define alias conditionally on !APPLE_CC
8315 (memset): likewise
8316 (abort): likewise
8317 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
8318 APPLE_CC are defined
8319 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
8320 (grub_assert_fail): make prototype conditional
8321
8322 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
8325
8326 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
8327 grub-macho2img
8328 (CLEANFILES): add grub-macho2img
8329 (grub_macho2img_SOURCES): new variable
8330 * kern/i386/pc/startup.S (bss_start): new variable
8331 (bss_end): likewise
8332 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
8333 * util/grub-macho2img.c: new file
8334
8335 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 Use objconv when compiling with Apple's CC
8338
8339 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
8340 (efiemu64.o): likewise
8341 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
8342 when compiling with Apple's CC
8343 (efiemu64_s.o): likewise
8344 * configure.ac: check for objconv when compiling with Apple's CC
8345 * genmk.rb: use objconv for modules when compiled with Apple's CC
8346
8347 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 Define segment as well as section when compiling with
8350 Apple's CC
8351
8352 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
8353 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
8354 (efiemu_convert_pointer): likewise
8355 (efiemu_set_virtual_address_map): likewise
8356 (efiemu_convert_pointer): likewise
8357 (efiemu_getcrc32): likewise
8358 (init_crc32_table): likewise
8359 (reflect): likewise
8360 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
8361 (GRUB_MOD_DEP): likewise
8362
8363 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8364
8365 Allow a compilation without -mcmodel=large
8366
8367 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
8368 when compiled without -mcmodel=large
8369 (filter_memory_map): remove memory post 4 GiB when compiled
8370 without -mcmodel=large
8371 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
8372 TARGET_CFLAGS when -mcmodel=large isn't supported
8373
8374 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 Remove nested functions in efiemu core
8377
8378 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
8379
8380 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8381
8382 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
8383
8384 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
8385 temporary storage
8386 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
8387 using Apple's CC
8388 (grub_cpu_is_tsc_supported): likewise
8389 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
8390
8391 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8392
8393 Absolute addressing through constant with Apple's cc
8394
8395 * kern/i386/pc/startup.S: Define necessary constants
8396 and address through it when using ABS with Apple's CC
8397 * boot/i386/pc/diskboot.S: likewise
8398 * boot/i386/pc/boot.S: likewise
8399 * boot/i386/pc/lnxboot.S: likewise
8400 * boot/i386/pc/cdboot.S: likewise
8401 * mmap/i386/pc/mmap_helper.S: likewise
8402 * commands/i386/pc/drivemap_int13h.S: likewise
8403
8404 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8405
8406 Check if compiler is apple cc
8407
8408 * Makefile.in (ASFLAGS): new variable
8409 (TARGET_ASFLAGS): likewise
8410 (TARGET_MODULE_FORMAT): likewise
8411 (TARGET_APPLE_CC): likewise
8412 (OBJCONV): likewise
8413 (TARGET_IMG_CFLAGS): likewise
8414 (TARGET_CPPFLAGS): add includedir
8415 * configure.ac: call grub_apple_cc and grub_apple_target_cc
8416 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
8417 Check for linker script only if compiler isn't Apple's CC
8418 (TARGET_MODULE_FORMAT): set
8419 (TARGET_APPLE_CC): likewise
8420 (TARGET_ASFLAGS): likewise
8421 (ASFLAGS): likewise
8422 Check for objcopy only if compiler isn't Apple's CC
8423 Check for BSS symbol only if compiler isn't Apple's CC
8424 * genmk.rb: adapt nm options if we use Apple's utils
8425 * aclocal.m4 (grub_apple_cc): new test
8426 (grub_apple_target_cc): likewise
8427
8428 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8429
8430 Simplify sed expressions and improve awk
8431
8432 * Makefile.in (install-local): simplify sed expression
8433 * gencmdlist.sh: likewise
8434 * genmoddep.awk: avoid adding module as a dependency of itself
8435
8436 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8437
8438 Add missing start symbols
8439
8440 * boot/i386/pc/boot.S: add start
8441 * boot/i386/pc/pxeboot.S: likewise
8442
8443 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 Fix wrong assumptions with grub-mkimage on EFI
8446
8447 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
8448 (relocate_addresses): consider both r_addend and value at offset
8449 (make_mods_section): zerofill modinfo and header
8450 (convert_elf): write prefix here
8451
8452 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8453
8454 Use .asciz instead of .string
8455
8456 * i386/pc/diskboot.S: use .asciz instead of .string
8457 * i386/pc/boot.S: likewise
8458 * include/grub/dl.h (GRUB_MOD_DEP): likewise
8459 (GRUB_MOD_NAME): likewise
8460
8461 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 gfxpayload support
8464
8465 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
8466 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
8467 (grub_video_setup): remove
8468 (grub_video_set_mode): new prototype
8469 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
8470 (vid_mode): remove
8471 (linux_vesafb_res): compile only on PCBIOS
8472 (grub_linux_boot): support gfxpayload
8473 * loader/i386/pc/xnu.c (video_hook): new function
8474 (grub_xnu_set_video): support gfxpayload
8475 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
8476 (DEFAULT_VIDEO_HEIGHT): likewise
8477 (DEFAULT_VIDEO_FLAGS): likewise
8478 (DEFAULT_VIDEO_MODE): new definition
8479 (video_hook): new function
8480 (grub_gfxterm_init): use grub_video_set_mode
8481 * util/grub.d/30_os-prober.in: remove explicit modesetting before
8482 loading xnu
8483 * video/video.c (grub_video_setup): removed
8484 (grub_video_set_mode): new function based on grub_gfxterm_init and
8485 grub_video_setup
8486
8487 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 Avoid calling biosdisk in drivemap
8490
8491 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
8492 (revparse_biosdisk): likewise
8493 (list_mappings): derive name from id directly
8494 (grub_cmd_drivemap): use tryparse_diskstring
8495
8496 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8497
8498 Script fixes
8499
8500 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
8501 (grub_lexer_param): add tokenonhold
8502 (grub_script_create_cmdline): remove cmdline. All callers updated
8503 (grub_script_function_create): make functionname
8504 grub_script_arg. All callers updated
8505 (grub_script_execute_argument_to_string): new prototype
8506 * kern/parser.c (state_transitions): reorder
8507 (grub_parser_cmdline_state): fix a bug and make more compact
8508 * script/sh/execute.c (grub_script_execute_argument_to_string):
8509 make global
8510 (grub_script_execute_cmdline): use new format
8511 * script/sh/function.c (grub_script_function_create): make functionname
8512 grub_script_arg. All callers updated
8513 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
8514 (grub_script_yylex): remove
8515 (grub_script_yylex2): renamed to ...
8516 (grub_script_yylex): ...renamed
8517 parse the expressions like a${b}c
8518 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
8519 (GRUB_PARSER_TOKEN_VAR): remove
8520 (GRUB_PARSER_TOKEN_NAME): likewise
8521 ("if"): declare as typeless
8522 ("while"): likewise
8523 ("function"): likewise
8524 ("else"): likewise
8525 ("then"): likewise
8526 ("fi"): likewise
8527 (text): remove
8528 (argument): likewise
8529 (script): accept empty scripts and make exit on error
8530 (arguments): use GRUB_PARSER_TOKEN_ARG
8531 (function): likewise
8532 (command): move error handling to script
8533 (menuentry): move grub_script_lexer_ref before
8534 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
8535 argument. All callers updated
8536
8537 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
8538
8539 Prevent GRUB from probing floppies during boot.
8540
8541 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
8542 * commands/search.c (options): Add --no-floppy.
8543 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
8544 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
8545 --no-floppy when searching for UUIDs.
8546
8547 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
8548
8549 Simplify the code duplication in commands/search.c.
8550
8551 * commands/search.c (search_label, search_fs_uuid): Merge into ...
8552 (search_fs): ... this. Update all users.
8553
8554 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
8555
8556 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
8557
8558 2009-05-28 Pavel Roskin <proski@gnu.org>
8559
8560 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
8561 Remove the original symlink explicitly.
8562
8563 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
8564 just one slash. That's how grub_fshelp_find_file() does it.
8565
8566 2009-05-26 Pavel Roskin <proski@gnu.org>
8567
8568 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
8569 to `str'.
8570
8571 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
8572 possibly unused.
8573
8574 2009-05-25 Christian Franke <franke@computer.org>
8575
8576 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
8577 register.
8578 (grub_atapi_identify): Add wait after drive select.
8579 (grub_ata_identify): Do more strict status register check before
8580 calling grub_atapi_identify (). Suppress error message if status
8581 register is 0x00 after command failure. Add status register
8582 check after PIO read to avoid bogus identify due to stuck DRQ.
8583 Thanks to Pavel Roskin for testing.
8584 (grub_device_initialize): Remove unsafe status register check.
8585 Thanks to 'phcoder' for problem report and patch.
8586 Prevent sign extension in debug message.
8587
8588 2009-05-23 Colin D Bennett <colin@gibibit.com>
8589
8590 Cleaned up `include/grub/normal.h'. Grouped prototypes by
8591 definition file, and functions defined in `normal/menu.c' have had
8592 their prototypes moved to `include/grub/menu.h' for consistency.
8593
8594 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
8595 from normal.h.
8596 (grub_menu_get_entry): Likewise.
8597 (grub_menu_get_timeout): Likewise.
8598 (grub_menu_set_timeout): Likewise.
8599 (grub_menu_execute_entry): Likewise.
8600 (grub_menu_execute_with_fallback): Likewise.
8601 (grub_menu_entry_run): Likewise.
8602
8603 * include/grub/normal.h: Re-ordered and grouped function
8604 prototypes by file that the function is defined in.
8605 (grub_menu_execute_callback): Removed; moved to menu.h.
8606 (grub_menu_get_entry): Likewise.
8607 (grub_menu_get_timeout): Likewise.
8608 (grub_menu_set_timeout): Likewise.
8609 (grub_menu_execute_entry): Likewise.
8610 (grub_menu_execute_with_fallback): Likewise.
8611 (grub_menu_entry_run): Likewise.
8612 (grub_menu_addentry): Renamed from this ...
8613 (grub_normal_add_menu_entry): ... to this.
8614
8615 * normal/main.c (grub_menu_addentry): Renamed from this ...
8616 (grub_normal_add_menu_entry): ... to this.
8617
8618 * script/sh/execute.c (grub_script_execute_menuentry): Update
8619 reference to renamed grub_menu_addentry function.
8620
8621 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
8622
8623 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
8624
8625 2009-05-22 Pavel Roskin <proski@gnu.org>
8626
8627 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
8628 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
8629 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
8630 compiling for the i386 targets, but not for the utilities.
8631
8632 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
8633 to grub_uint8_t.
8634 (grub_root_drive): Likewise.
8635 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
8636 remove alignment.
8637 (grub_root_drive): Change size to byte.
8638 (grub_start_addr): Remove.
8639 (grub_end_addr): Likewise.
8640 (grub_apm_bios_info): Likewise.
8641
8642 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
8643
8644 * normal/i386: Remove.
8645 * normal/powerpc: Likewise.
8646 * normal/sparc64: Likewise.
8647 * normal/x86_64: Likewise.
8648
8649 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
8650
8651 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
8652 * loader/i386/linux_trampoline.S: Fix indentation
8653 * loader/i386/xnu_helper.S: Likewise
8654
8655 2009-05-18 Colin D Bennett <colin@gibibit.com>
8656
8657 Display error messages when parsing a Lua statement fails.
8658 Previously, executing a syntactically invalid statement like
8659 ")foo" or "bar;" would silently fail.
8660
8661 * script/lua/grub_main.c (handle_lua_error): New function.
8662 (grub_lua_parse_line): Improved reporting of Lua parser and
8663 execution errors.
8664
8665 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8666
8667 Remove -Werror which causes build to fail on some systems
8668
8669 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
8670 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
8671 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
8672
8673 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 trampoline for linux on 64-bit platform
8676
8677 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
8678 loader/i386/efi/linux_trampoline.S
8679 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
8680 declaration
8681 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
8682 here
8683 * loader/i386/linux_trampoline.S: moved here
8684 * loader/i386/efi/linux.c (allocate_pages): reserve space for
8685 trampoline
8686 (jumpvector): removed
8687 (grub_linux_trampoline_start): new declaration
8688 (grub_linux_trampoline_end): likewise
8689 (grub_linux_boot): use trampoline when on 64-bit platform
8690 * loader/i386/linux.c: likewise
8691
8692 2009-05-16 Pavel Roskin <proski@gnu.org>
8693
8694 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
8695 const to avoid a warning.
8696 (grub_lua_setenv): Likewise.
8697 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
8698 lmsg to fix a warning.
8699
8700 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
8701
8702 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
8703 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
8704 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
8705 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
8706 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
8707 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
8708 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
8709 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
8710
8711 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
8712
8713 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
8714
8715 2009-05-16 Bean <bean123ch@gmail.com>
8716
8717 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
8718 (lua_mod_SOURCES): New variable.
8719 (lua_mod_CFLAGS): Likewise.
8720 (lua_mod_LDFLAGS): Likewise.
8721
8722 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
8723 (setjmp_mod_SOURCES): New variable.
8724 (setjmp_mod_CFLAGS): Likewise.
8725 (setjmp_LDFLAGS): Likewise.
8726
8727 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
8728 (setjmp_mod_SOURCES): New variable.
8729 (setjmp_mod_CFLAGS): Likewise.
8730 (setjmp_LDFLAGS): Likewise.
8731
8732 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
8733 (setjmp_mod_SOURCES): New variable.
8734 (setjmp_mod_CFLAGS): Likewise.
8735 (setjmp_LDFLAGS): Likewise.
8736
8737 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
8738 (setjmp_mod_SOURCES): New variable.
8739 (setjmp_mod_CFLAGS): Likewise.
8740 (setjmp_LDFLAGS): Likewise.
8741
8742 * normal/i386/setjmp.S: Moved from here ...
8743 * lib/i386/setjmp.S: ... Moved here
8744 * normal/x86_64/setjmp.S: Moved from here ...
8745 * lib/x86_64/setjmp.S: ... Moved here
8746 * normal/powerpc/setjmp.S: Moved from here ...
8747 * lib/powerpc/setjmp.S: ... Moved here
8748 * normal/sparc64/setjmp.S: Moved from here ...
8749 * lib/sparc64/setjmp.S: ... Moved here
8750
8751 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
8752 returns_twice in mingw.
8753
8754 * script/lua/grub_lib.c: New file.
8755 * script/lua/grub_lib.h: Likewise.
8756 * script/lua/grub_lua.h: Likewise.
8757 * script/lua/grub_main.c: Likewise.
8758 * script/lua/lapi.c: Likewise.
8759 * script/lua/lapi.h: Likewise.
8760 * script/lua/lauxlib.c: Likewise.
8761 * script/lua/lauxlib.h: Likewise.
8762 * script/lua/lbaselib.c: Likewise.
8763 * script/lua/lcode.c: Likewise.
8764 * script/lua/lcode.h: Likewise.
8765 * script/lua/ldblib.c: Likewise.
8766 * script/lua/ldebug.c: Likewise.
8767 * script/lua/ldebug.h: Likewise.
8768 * script/lua/ldo.c: Likewise.
8769 * script/lua/ldo.h: Likewise.
8770 * script/lua/ldump.c: Likewise.
8771 * script/lua/lfunc.c: Likewise.
8772 * script/lua/lfunc.h: Likewise.
8773 * script/lua/lgc.c: Likewise.
8774 * script/lua/lgc.h: Likewise.
8775 * script/lua/linit.c: Likewise.
8776 * script/lua/liolib.c: Likewise.
8777 * script/lua/llex.c: Likewise.
8778 * script/lua/llex.h: Likewise.
8779 * script/lua/llimits.h: Likewise.
8780 * script/lua/lmathlib.c: Likewise.
8781 * script/lua/lmem.c: Likewise.
8782 * script/lua/lmem.h: Likewise.
8783 * script/lua/loadlib.c: Likewise.
8784 * script/lua/lobject.c: Likewise.
8785 * script/lua/lobject.h: Likewise.
8786 * script/lua/lopcodes.c: Likewise.
8787 * script/lua/lopcodes.h: Likewise.
8788 * script/lua/loslib.c: Likewise.
8789 * script/lua/lparser.c: Likewise.
8790 * script/lua/lparser.h: Likewise.
8791 * script/lua/lstate.c: Likewise.
8792 * script/lua/lstate.h: Likewise.
8793 * script/lua/lstring.c: Likewise.
8794 * script/lua/lstring.h: Likewise.
8795 * script/lua/lstrlib.c: Likewise.
8796 * script/lua/ltable.c: Likewise.
8797 * script/lua/ltable.h: Likewise.
8798 * script/lua/ltablib.c: Likewise.
8799 * script/lua/ltm.c: Likewise.
8800 * script/lua/ltm.h: Likewise.
8801 * script/lua/lua.h: Likewise.
8802 * script/lua/luaconf.h: Likewise.
8803 * script/lua/lualib.h: Likewise.
8804 * script/lua/lundump.c: Likewise.
8805 * script/lua/lundump.h: Likewise.
8806 * script/lua/lvm.c: Likewise.
8807 * script/lua/lvm.h: Likewise.
8808 * script/lua/lzio.c: Likewise.
8809 * script/lua/lzio.h: Likewise.
8810
8811 2009-05-16 Bean <bean123ch@gmail.com>
8812
8813 * include/grub/kernel.h (grub_module_header_types): Add type
8814 OBJ_TYPE_CONFIG.
8815
8816 * kern/main.c (grub_load_config): New function.
8817 (grub_main): Call grub_load_config to read boot config.
8818
8819 * grub-mkimage (generate_image): New parameter config_path.
8820 (options): New option --config.
8821 (main): Parse --config option, and pass it to generate_image.
8822
8823 2009-05-14 Christian Franke <franke@computer.org>
8824
8825 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
8826 This fixes build on Cygwin.
8827
8828 2009-05-14 Pavel Roskin <proski@gnu.org>
8829
8830 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
8831 jump. This saves two bytes, so the typical case of 2 swapped
8832 drives would fit 32 bytes.
8833
8834 2009-05-13 Pavel Roskin <proski@gnu.org>
8835
8836 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
8837 grub_uint32_t to avoid a warning.
8838
8839 * loader/i386/linux.c (allocate_pages): When assigning
8840 real_mode_mem, cast through grub_size_t to fix a warning. The
8841 code already makes sure that the value would fit a pointer.
8842 (grub_linux_setup_video): Cast render_target->data to
8843 grub_size_t to fix a warning.
8844
8845 2009-05-13 Javier Martín <lordhabbit@gmail.com>
8846
8847 * commands/i386/pc/drivemap.c: New file - implement drivemap
8848 command.
8849 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
8850 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
8851
8852 2009-05-13 Pavel Roskin <proski@gnu.org>
8853
8854 * util/i386/pc/grub-setup.c (setup): Remove unused variable
8855 embedding_area_exists.
8856
8857 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
8858
8859 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
8860 it easier to understand / work with.
8861 Improve warning messages for cases where there's no embedding area,
8862 or when it is too small (or core.img too large).
8863
8864 2009-05-13 Pavel Roskin <proski@gnu.org>
8865
8866 * loader/i386/pc/multiboot2.c: Add necessary includes for
8867 grub_multiboot2_real_boot().
8868
8869 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
8870 PX record is always little-endian. We only need the lower 2
8871 bytes of the mode.
8872
8873 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
8874 facilitate code reuse.
8875 (grub_cpio_mount): Use "struct head", not a char buffer. This
8876 fixes a warning reported by gcc 4.4.
8877
8878 * kernel/disk.c (grub_disk_read): Use void pointer for the
8879 buffer.
8880 (grub_disk_write): Use const void pointer for the buffer.
8881 Adjust all callers. Remove unnecessary casts.
8882
8883 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
8884
8885 * util/i386/pc/grub-install.in: Update copyright year.
8886
8887 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8888
8889 gptsync
8890
8891 * commands/gptsync.c: new file
8892 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
8893 (gptsync_mod_SOURCES): new variable
8894 (gptsync_mod_CFLAGS): likewise
8895 (gptsync_mod_LDFLAGS): likewise
8896 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
8897 new definition
8898 (GRUB_PC_PARTITION_TYPE_HFS): likewise
8899 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
8900 * conf/i386-ieee1275.rmk: likewise
8901 * conf/i386-pc.rmk: likewise
8902 * conf/powerpc-ieee1275.rmk: likewise
8903
8904 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 Fixed grub-emu
8907
8908 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
8909 (grub_dl_ref): likewise
8910
8911 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
8912
8913 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
8914 split in two functions (one for msdos and one for gpt).
8915
8916 2009-05-08 Pavel Roskin <proski@gnu.org>
8917
8918 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
8919 not modified.
8920
8921 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
8922 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
8923 Initialize them with -1. Add sanity check for bad1. Eliminate
8924 nerr variable.
8925
8926 2009-05-08 David S. Miller <davem@davemloft.net>
8927
8928 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
8929
8930 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
8931
8932 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
8933 existence.
8934
8935 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
8936
8937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
8938 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
8939
8940 2009-05-05 David S. Miller <davem@davemloft.net>
8941
8942 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
8943
8944 2009-05-05 Pavel Roskin <proski@gnu.org>
8945
8946 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
8947 of grub_dl_ref() and grub_dl_unref().
8948 * commands/parttool.c: Remove preprocessor conditionals around
8949 grub_dl_ref() and grub_dl_unref().
8950 * fs/affs.c: Likewise.
8951 * fs/afs.c: Likewise.
8952 * fs/cpio.c: Likewise.
8953 * fs/ext2.c: Likewise.
8954 * fs/fat.c: Likewise.
8955 * fs/hfs.c: Likewise.
8956 * fs/hfsplus.c: Likewise.
8957 * fs/iso9660.c: Likewise.
8958 * fs/jfs.c: Likewise.
8959 * fs/minix.c: Likewise.
8960 * fs/ntfs.c: Likewise.
8961 * fs/reiserfs.c: Likewise.
8962 * fs/sfs.c: Likewise.
8963 * fs/udf.c: Likewise.
8964 * fs/ufs.c: Likewise.
8965 * fs/xfs.c: Likewise.
8966 * include/grub/dl.h: Likewise.
8967 * loader/xnu.c: Likewise.
8968
8969 2009-05-04 Pavel Roskin <proski@gnu.org>
8970
8971 * commands/acpi.c: Remove unused variable my_mod.
8972 * partmap/amiga.c: Likewise.
8973 * partmap/apple.c: Likewise.
8974 * partmap/gpt.c: Likewise.
8975 * partmap/pc.c: Likewise.
8976 * partmap/sun.c: Likewise.
8977 * term/gfxterm.c: Likewise.
8978 * term/i386/pc/vesafb.c: Likewise.
8979 * term/i386/pc/vga.c: Likewise.
8980
8981 2009-05-04 David S. Miller <davem@davemloft.net>
8982
8983 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
8984 pointer args to grub_ieee1275_get_property().
8985
8986 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
8987
8988 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
8989 devices, and do not traverse down under controller nodes.
8990
8991 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
8992 (grub_ofdisk_open): Use it to un-escape "," characters.
8993 * kern/disk.c (find_part_sep): New.
8994 (grub_disk_open): Use it to find the first non-escaped ','
8995 character in the disk name.
8996 * util/ieee1275/devicemap.c (escape_of_path): New.
8997 (grub_util_emit_devicemap_entry): Use it.
8998 * util/sparc64/ieee1275/grub-install.in: Update script to
8999 strip partition specifiers properly by not triggering on
9000 '\' escaped ',' characters.
9001
9002 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
9003
9004 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
9005 to 0x300.
9006 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
9007 resolutions.
9008 (linux_vesafb_modes): Add a lot of additional modes to the list (based
9009 on documentation from Wikipedia).
9010
9011 2009-05-04 Pavel Roskin <proski@gnu.org>
9012
9013 * disk/ata.c: Spelling fixes.
9014 * disk/raid.c: Likewise.
9015 * disk/usbms.c: Likewise.
9016 * disk/dmraid_nvidia.c: Likewise.
9017 * kern/ieee1275/openfw.c: Likewise.
9018 * kern/ieee1275/init.c: Likewise.
9019 * kern/ieee1275/cmain.c: Likewise.
9020 * boot/i386/pc/cdboot.S: Likewise.
9021 * video/readers/png.c: Likewise.
9022 * video/i386/pc/vbe.c: Likewise.
9023 * fs/udf.c: Likewise.
9024 * fs/hfs.c: Likewise.
9025 * fs/reiserfs.c: Likewise.
9026 * efiemu/runtime/efiemu.c: Likewise.
9027 * efiemu/main.c: Likewise.
9028 * efiemu/mm.c: Likewise.
9029 * include/grub/elf.h: Likewise.
9030 * include/grub/xnu.h: Likewise.
9031 * include/grub/usbdesc.h: Likewise.
9032 * include/grub/usb.h: Likewise.
9033 * include/grub/script_sh.h: Likewise.
9034 * include/grub/lib/LzmaEnc.h: Likewise.
9035 * include/grub/efiemu/efiemu.h: Likewise.
9036 * include/grub/command.h: Likewise.
9037 * normal/menu.c: Likewise.
9038 * normal/main.c: Likewise.
9039 * normal/datetime.c: Likewise.
9040 * bus/usb/uhci.c: Likewise.
9041 * mmap/i386/uppermem.c: Likewise.
9042 * mmap/mmap.c: Likewise.
9043 * commands/acpi.c: Likewise.
9044 * commands/test.c: Likewise.
9045 * partmap/apple.c: Likewise.
9046 * font/font.c: Likewise.
9047 * loader/sparc64/ieee1275/linux.c: Likewise.
9048 * loader/macho.c: Likewise.
9049 * loader/i386/bsd_trampoline.S: Likewise.
9050 * loader/i386/bsd.c: Likewise.
9051 * loader/xnu.c: Likewise.
9052 * term/i386/pc/vesafb.c: Likewise.
9053 * term/usb_keyboard.c: Likewise.
9054 * util/resolve.c: Likewise.
9055 * util/getroot.c: Likewise.
9056
9057 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
9058
9059 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
9060
9061 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
9062
9063 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
9064 build error.
9065
9066 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
9067
9068 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
9069 parameter only available on BIOS.
9070
9071 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9072
9073 Removed wrong semicolon in declaration
9074
9075 * grub/misc.h (grub_dprintf): remove semicolon
9076
9077 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
9078
9079 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
9080 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
9081 is done by grub_cmd_linux() now).
9082 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
9083 restore video to text mode.
9084 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
9085 indicates lack of "vga=" parameter. "vga=0" is mapped to
9086 `GRUB_LINUX_VID_MODE_NORMAL'.
9087
9088 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
9089
9090 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
9091 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
9092 and `normal/script.c'. Add `kern/rescue_reader.c',
9093 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
9094 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
9095 `grub_script.tab.c'.
9096
9097 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9098 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9100 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9101 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9102
9103 * Makefile.in: Remove duplicated 2008 in Copyright line.
9104
9105 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
9106
9107 * util/misc.c (grub_util_warn): New function. Emits a warning
9108 unconditionally.
9109 * include/grub/util/misc.h (grub_util_warn): New declaration.
9110
9111 * util/i386/pc/grub-install.in: Understand --force and pass it down
9112 to grub-setup.
9113
9114 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
9115 down to setup().
9116 (setup): Improve error messages and add warnings when requested to
9117 install in odd layouts. Refuse to install using blocklists unless
9118 --force was set.
9119
9120 2009-05-04 martin f. krafft <madduck@madduck.net>
9121
9122 * disk/raid.c (grub_raid_scan_device): Improve debug message.
9123
9124 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9125
9126 Updated copyright year
9127
9128 * fs/hfsplus.c: updated copyright year
9129
9130 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9131
9132 HFS+ UUID
9133
9134 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
9135 in the space previously used by unused3
9136 (grub_hfsplus_uuid): new function
9137 (grub_hfsplus_fs): added uuid field
9138
9139 2009-05-03 Pavel Roskin <proski@gnu.org>
9140
9141 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
9142 suppress warnings. It's no longer needed.
9143 * disk/host.c: Likewise.
9144 * disk/ata_pthru.c: Likewise.
9145 * disk/loopback.c: Likewise.
9146 * hook/datehook.c: Likewise.
9147 * parttool/pcpart.c: Likewise.
9148 * fs/i386/pc/pxe.c: Likewise.
9149 * fs/ntfscomp.c: Likewise.
9150 * efiemu/main.c: Likewise.
9151 * mmap/mmap.c: Likewise.
9152 * commands/crc.c: Likewise.
9153 * commands/hexdump.c: Likewise.
9154 * commands/hdparm.c: Likewise.
9155 * commands/acpi.c: Likewise.
9156 * commands/echo.c: Likewise.
9157 * commands/minicmd.c: Likewise.
9158 * commands/blocklist.c: Likewise.
9159 * commands/memrw.c: Likewise.
9160 * commands/loadenv.c: Likewise.
9161 * commands/usbtest.c: Likewise.
9162 * commands/lsmmap.c: Likewise.
9163 * commands/boot.c: Likewise.
9164 * commands/parttool.c: Likewise.
9165 * commands/configfile.c: Likewise.
9166 * commands/search.c: Likewise.
9167 * commands/ieee1275/suspend.c: Likewise.
9168 * commands/cat.c: Likewise.
9169 * commands/i386/pc/pxecmd.c: Likewise.
9170 * commands/i386/pc/play.c: Likewise.
9171 * commands/i386/pc/halt.c: Likewise.
9172 * commands/i386/pc/vbeinfo.c: Likewise.
9173 * commands/i386/pc/vbetest.c: Likewise.
9174 * commands/lspci.c: Likewise.
9175 * commands/date.c: Likewise.
9176 * commands/handler.c: Likewise.
9177 * commands/ls.c: Likewise.
9178 * commands/test.c: Likewise.
9179 * commands/cmp.c: Likewise.
9180 * commands/efi/loadbios.c: Likewise.
9181 * commands/efi/fixvideo.c: Likewise.
9182 * commands/halt.c: Likewise.
9183 * commands/help.c: Likewise.
9184 * commands/reboot.c: Likewise.
9185 * hello/hello.c: Likewise.
9186 * script/sh/main.c: Likewise.
9187 * loader/xnu.c: Likewise.
9188 * term/terminfo.c: Likewise.
9189 * term/i386/pc/serial.c: Likewise.
9190 * term/usb_keyboard.c: Likewise.
9191
9192 2009-05-03 David S. Miller <davem@davemloft.net>
9193
9194 * normal/menu.c: Include grub/parser.h
9195
9196 2009-05-03 Pavel Roskin <proski@gnu.org>
9197
9198 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
9199 not char*.
9200 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
9201 Suggested by Javier Martín <lordhabbit@gmail.com>
9202
9203 * util/i386/pc/grub-mkrescue.in: Allow for the case when
9204 efiemu??.o doesn't exist.
9205 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
9206 copying.
9207
9208 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
9209
9210 FreeBSD 64-bit support
9211
9212 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
9213 and loader/i386/bsd_trampoline.S
9214 (bsd_mod_ASFLAGS): new variable
9215 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
9216 (FREEBSD_MODTYPE_KERNEL64): likewise
9217 (grub_bsd64_trampoline_start): likewise
9218 (grub_bsd64_trampoline_end): likewise
9219 (grub_bsd64_trampoline_selfjump): likewise
9220 (grub_bsd64_trampoline_gdt): likewise
9221 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
9222 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
9223 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
9224 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
9225 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
9226 of "attrib" member
9227 * loader/i386/bsd_pagetable.c: new file
9228 * loader/i386/bsd_trampoline.S: likewise
9229 * loader/i386/bsd.c (ALIGN_QWORD): new macro
9230 (ALIGN_VAR): likewise
9231 (entry_hi): new variable
9232 (kern_end_mdofs): likewise
9233 (is_64bit): likewise
9234 (grub_freebsd_add_meta): use ALIGN_VAR
9235 (grub_e820_mmap): new declaration
9236 (grub_freebsd_add_mmap): new function
9237 (grub_freebsd_add_meta_module): support 64 bit kernels
9238 (grub_freebsd_list_modules): use ALIGN_VAR
9239 (gdt_descriptor): new declaration
9240 (grub_freebsd_boot): support 64 bit kernels
9241 (grub_bsd_elf64_hook): new function
9242 (grub_bsd_load_elf): support elf64
9243
9244 2009-05-03 Bean <bean123ch@gmail.com>
9245
9246 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
9247 after we get the result of if statement.
9248
9249 2009-05-03 Bean <bean123ch@gmail.com>
9250
9251 * Makefile.in (enable_efiemu): New variable.
9252
9253 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
9254 set.
9255 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
9256 path.
9257 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
9258 path, add -mno-red-zone option.
9259 (efiemu64_s.o): Likewise.
9260 (efiemu64.o): Use macro $^ for source file.
9261
9262 * configure.ac (--enable-efiemu): New option.
9263
9264 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9265
9266 xnu support
9267
9268 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
9269 (pkglib_MODULES): add xnu.mod
9270 (xnu_mod_SOURCES): new variable
9271 (xnu_mod_CFLAGS): likewise
9272 (xnu_mod_LDFLAGS): likewise
9273 (xnu_mod_ASFLAGS): likewise
9274 * conf/i386-pc.rmk: likewise
9275 * conf/x86_64-efi.rmk: likewise
9276 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
9277 new declaration
9278 * include/grub/i386/macho.h: new file
9279 * include/grub/i386/xnu.h: likewise
9280 * include/grub/macho.h: likewise
9281 * include/grub/machoload.h: likewise
9282 * include/grub/x86_64/macho.h: likewise
9283 * include/grub/x86_64/xnu.h: likewise
9284 * include/grub/xnu.h: likewise
9285 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
9286 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
9287 * loader/i386/efi/xnu.c: new file
9288 * loader/i386/pc/xnu.c: likewise
9289 * loader/i386/xnu.c: likewise
9290 * loader/i386/xnu_helper.S: likewise
9291 * loader/macho.c: likewise
9292 * loader/xnu.c: likewise
9293 * loader/xnu_resume.c: likewise
9294 * util/grub-dumpdevtree: likewise
9295 * include/grub/i386/pit.h: include grub/err.h
9296 (grub_pit_wait): export
9297 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
9298
9299 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 Efiemu
9302
9303 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
9304 _linux_efi, linux_efi.
9305 new files in grub-emu
9306 new targets efiemu32.o and efiemu64.o
9307 * loader/linux_normal_efiemu.c: likewise
9308 * loader/i386/efi/linux.c: added preliminary efiemu support
9309 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
9310 files to copy
9311 * include/grub/autoefi.h: new file
9312 * include/grub/i386/efiemu.h: likewise
9313 * include/grub/i386/pc/efiemu.h: likewise
9314 * include/grub/efi/api.h: add LL suffix when necessary
9315 new definitions relating to tables
9316 * include/grub/efiemu/efiemu.h: new file
9317 * include/grub/efiemu/runtime.h: likewise
9318 * efiemu/prepare.c: likewise
9319 * efiemu/loadcore_common.c: likewise
9320 * efiemu/loadcore64.c: likewise
9321 * efiemu/runtime/efiemu.sh: likewise
9322 * efiemu/runtime/efiemu.S: likewise
9323 * efiemu/runtime/efiemu.c: likewise
9324 * efiemu/runtime/config.h: likewise
9325 * efiemu/prepare32.c: likewise
9326 * efiemu/main.c: likewise
9327 * efiemu/modules/pnvram.c: likewise
9328 * efiemu/modules/i386: likewise
9329 * efiemu/modules/i386/pc: likewise
9330 * efiemu/modules/acpi.c: likewise
9331 * efiemu/i386/pc/cfgtables.c: likewise
9332 * efiemu/i386/loadcore64.c: likewise
9333 * efiemu/i386/loadcore32.c: likewise
9334 * efiemu/prepare64.c: likewise
9335 * efiemu/loadcore.c: likewise
9336 * efiemu/symbols.c: likewise
9337 * efiemu/mm.c: likewise
9338 * efiemu/loadcore32.c: likewise
9339
9340 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9341
9342 ACPI spoofing
9343
9344 * commands/acpi.c: new file
9345 * commands/i386/pc/acpi.c: likewise
9346 * commands/efi/acpi.c: likewise
9347 * include/grub/acpi.h: likewise
9348 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
9349 (acpi_mod_SOURCES): new variable
9350 (acpi_mod_CFLAGS): likewise
9351 (acpi_mod_LDFLAGS): likewise
9352 * conf/i386-efi.rmk: likewise
9353 * conf/x86_64-efi.rmk: likewise
9354
9355 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 Missing part from mmap patch
9358
9359 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
9360 (grub_mmap_unregister)
9361 (grub_mmap_free_and_unregister): use grub_mmap_register
9362
9363 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 Mmap services
9366
9367 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
9368 * loader/i386/linux.c (find_mmap_size): likewise
9369 (allocate_pages): likewise
9370 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
9371 (grub_fill_multiboot_mmap): likewise
9372 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
9373 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
9374 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
9375 (OPENBSD_MMAP_RESERVED): likewise
9376 * include/grub/i386/pc/memory.h: include grub/memory.h
9377 (grub_lower_mem): removed
9378 (grub_upper_mem): likewise
9379 (GRUB_MACHINE_MEMORY_ACPI): new definition
9380 (GRUB_MACHINE_MEMORY_NVS): likewise
9381 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
9382 (GRUB_MACHINE_MEMORY_HOLE): likewise
9383 (grub_machine_mmap_register): likewise
9384 (grub_machine_mmap_unregister): likewise
9385 (grub_machine_get_upper): likewise
9386 (grub_machine_get_lower): likewise
9387 (grub_machine_get_post64): likewise
9388 * include/grub/i386/efi/memory.h: new file
9389 * include/grub/x86_64/efi/memory.h: likewise
9390 * include/grub/efi/memory.h: likewise
9391 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
9392 (mmap_mod_SOURCES): new variable
9393 (mmap_mod_LDFLAGS): likewise
9394 (mmap_mod_ASFLAGS): likewise
9395 * conf/i386-coreboot.rmk: likewise
9396 * conf/i386-ieee1275.rmk: likewise
9397 * conf/i386-efi.rmk: likewise
9398 * conf/x86_64-efi.rmk: likewise
9399 * include/grub/types.h (UINT_TO_PTR): new macro
9400 (PTR_TO_UINT32): likewise
9401 (PTR_TO_UINT64): likewise
9402 * include/grub/memory.h: new file
9403 * mmap/i386/pc/mmap.c: likewise
9404 * mmap/i386/pc/mmap_helper.S: likewise
9405 * mmap/i386/uppermem.c: likewise
9406 * mmap/mmap.c: likewise
9407 * mmap/efi/mmap.c: likewise
9408 * kern/i386/coreboot/init.c (grub_machine_init): don't use
9409 grub_upper_mem
9410 * kern/i386/pc/init.c (grub_lower_mem): removed variable
9411 (grub_upper_mem): likewise
9412 (grub_machine_init): don't use grub_upper_mem,
9413 make grub_lower_mem local
9414 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
9415 grub_mmap_iterate and grub_mmap_get_upper
9416 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
9417
9418 2009-05-02 Bean <bean123ch@gmail.com>
9419
9420 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
9421 script/sh/parser.y.
9422 (pkglib_MODULES): Add normal.mod and sh.mod.
9423 (normal_SOURCES): New variable.
9424 (normal_mod_CFLAGS): Likewise.
9425 (normal_mod_LDFLAGS): Likewise.
9426 (sh_mod_SOURCES): Likewise.
9427 (sh_mod_CFLAGS): Likewise.
9428 (sh_mod_LDFLAGS): Likewise.
9429
9430 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
9431 script/sh/lexer.c_DEPENDENCIES.
9432 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
9433 kern/rescue_reader.c and kern/rescue_parser.c.
9434 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
9435 (grub_emu_SOURCES): Change source files.
9436 (pkglib_MODULES): Remove normal.mod.
9437 (normal_SOURCES): Removed.
9438 (normal_mod_CFLAGS): Likewise.
9439 (normal_mod_LDFLAGS): Likewise.
9440 * conf/i386-coreboot.rmk: Likewise.
9441 * conf/i386-efi.rmk: Likewise.
9442 * conf/i386-ieee1276.rmk: Likewise.
9443 * conf/powerpc-ieee1275.rmk: Likewise.
9444 * conf/sparc64-ieee1275.rmk: Likewise.
9445 * conf/x86_64-efi.rmk: Likewise.
9446
9447 * include/grub/command.h (grub_command_execute): New inline function.
9448
9449 * include/grub/menu.h (grub_menu_entry): Removed commands field.
9450
9451 * include/grub/normal.h: Remove <grub/setjmp.h>.
9452 (grub_fs_module_list): Moved to normal/autofs.c.
9453 (grub_exit_env): Removed.
9454 (grub_command_execute): Likewise.
9455 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
9456 parameter script.
9457 (read_command_list): New function declaration.
9458 (read_fs_list): Likewise.
9459
9460 * include/parser.h: Include <grub/reader.h>.
9461 (grub_parser_split_cmdline): Change type of getline parameter.
9462 (grub_parser): New structure.
9463 (grub_parser_class): New variable.
9464 (grub_parser_execute): New function declaration.
9465 (grub_register_rescue_parser): Likewise.
9466 (grub_parser_register): New inline function.
9467 (grub_parser_unregister): Likewise.
9468 (grub_parser_get_current): Likewise.
9469 (grub_parser_set_current): Likewise.
9470
9471 * include/grub/reader.h: New file.
9472 * kern/reader.c: Likewise.
9473 * kern/rescue_parser.c: Likewise.
9474 * kern/rescue_reader.c: Likewise.
9475 * normal/autofs.c: Likewise.
9476 * normal/dyncmd.c: Likewise.
9477
9478 * include/grub/rescue.h: Removed.
9479 * normal/command.h: Likewise.
9480
9481 * include/grub/script.h: Moved to ...
9482 * include/grub/script_sh.h: ... Moved here.
9483 * normal/execute.c: Moved to ...
9484 * script/sh/execute.c: ... Moved here.
9485 * normal/function.c: Moved to ...
9486 * script/sh/function.c: ... Moved here.
9487 * normal/lexer.c: Moved to ...
9488 * script/sh/lexer.c: ... Moved here.
9489 * normal/parser.y: Moved to ...
9490 * script/sh/parser.y: ... Moved here.
9491 * normal/script.c: Moved to ...
9492 * script/sh/script.c: ... Moved here.
9493
9494 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
9495 <grub/reader.h>.
9496 (grub_exit_env): Removed.
9497 (fs_module_list): Moved to normal/autofs.c.
9498 (grub_file_getline): Don't handle comment here.
9499 (free_menu): Skip removed field entry->commands.
9500 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
9501 script parameter.
9502 (read_config_file): Removed nested parameter, change getline function.
9503 (grub_enter_normal_mode): Removed.
9504 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
9505 (read_command_list): Likewise.
9506 (autoload_fs_module): Moved to normal/autofs.c.
9507 (read_fs_list): Likewise.
9508 (reader_nested): New variable.
9509 (grub_normal_execute): Run parser.sh to switch to sh parser.
9510 (grub_cmd_rescue): Removed.
9511 (cmd_normal): Removed.
9512 (grub_cmd_normal): Unregister itself at the beginning. Don't register
9513 rescue command.
9514 (grub_cmdline_run): New function.
9515 (grub_normal_reader_init): Likewise.
9516 (grub_normal_read_line): Likewise.
9517 (grub_env_write_pager): Likewise.
9518 (cmdline): New variable.
9519 (grub_normal_reader): Likewise.
9520 (GRUB_MOD_INIT): Register normal reader and set as current, register
9521 pager hook, register normal command with grub_register_command_prio,
9522 so that it won't show up in command.lst.
9523 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
9524 grub_fs_autoload_hook.
9525
9526 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
9527 (grub_menu_execute_entry): Replace grub_script_execute with
9528 grub_parser_execute, change parameter to grub_command_execute.
9529
9530 * normal/menu_text.c: Remove <grub/script.h>.
9531
9532 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
9533 and <grub/parser.h>.
9534 (run): Change editor_getline to use new parser interface. Change
9535 parameter to grub_command_execute.
9536
9537 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
9538 <grub/reader.h> and <grub/parser.h>.
9539 (grub_load_normal_mode): Execute normal command.
9540 (grub_main): Call grub_register_core_commands,
9541 grub_register_rescue_parser and grub_register_rescue_reader, use
9542 grub_reader_loop to enter input loop.
9543
9544 * kern/parser.c (grub_parser_split_cmdline): Change type of
9545 getline parameter.
9546 (grub_parser_class): New variable.
9547 (grub_parser_execute): New function.
9548
9549 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
9550 * loader/multiboot2.c: Likewise.
9551 * loader/sparc64/ieee1275/linux.c: Likewise.
9552
9553 * util/grub-emu.c (read_command_list): New dummy function.
9554
9555 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
9556
9557 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
9558 count to 16 for CCISS and IDA.
9559
9560 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
9561
9562 * normal/menu_text.c (grub_wait_after_message): Print a newline
9563 after waiting for user input.
9564
9565 * loader/i386/linux.c: Include `<grub/normal.h>'.
9566 (grub_cmd_linux): Improve the error message about `ask' mode, by
9567 waiting for user input so it's not missed (we can do this, since
9568 user requested interaction).
9569
9570 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 Added missing lst to grub-mkrescue
9573
9574 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
9575 and ${input_dir}/parttool.lst
9576
9577 2009-04-30 David S. Miller <davem@davemloft.net>
9578
9579 * util/hostdisk.c (device_is_wholedisk): New function.
9580 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
9581 zero only if device_is_wholedisk() returns true.
9582
9583 * util/hostdisk.c (convert_system_partition_to_system_disk):
9584 Handle virtual disk devices named /dev/vdiskX as found on sparc
9585 and powerpc.
9586
9587 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
9588 lettered partition specifier is found, convert to numbered.
9589
9590 2009-04-29 David S. Miller <davem@davemloft.net>
9591
9592 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
9593 * include/grub/sparc64/ieee1275/memory.h: Likewise.
9594
9595 * normal/command.c: Add missing newline at end of file.
9596
9597 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
9598 warnings.
9599 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
9600 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
9601 grub_ofdisk_read): Likewise, and deal similarly with the fact that
9602 ihandles have a 32-bit type but need to be stored in a "void *".
9603
9604 2009-04-28 Pavel Roskin <proski@gnu.org>
9605
9606 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
9607 not disk. Adjust all dependencies.
9608 (grub_fs_uuid_close): Use grub_device_close(), not
9609 grub_disk_close().
9610
9611 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
9612 parent's partition, don't copy it by reference, as it gets freed
9613 on close.
9614
9615 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
9616
9617 Preboot hooks support
9618
9619 * commands/boot.c (struct grub_preboot_t): new declaration
9620 (preboots_head): new variable
9621 (preboots_tail): likewise
9622 (grub_loader_register_preboot_hook): new function
9623 (grub_loader_unregister_preboot_hook): likewise
9624 (grub_loader_set): launch preboot hooks
9625 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
9626 (grub_loader_register_preboot_hook): new declaration
9627 (grub_loader_unregister_preboot_hook): likewise
9628
9629 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 Warning fix
9632
9633 * disk/scsi.c (grub_scsi_open): added missing cast when
9634 calling grub_dprintf
9635
9636 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 Bug and warning fixes
9639
9640 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
9641 declaration
9642 * commands/test.c (test_parse): fixed bug with file tests and corrected
9643 declaration of find_file
9644
9645 2009-04-26 Pavel Roskin <proski@gnu.org>
9646
9647 * Makefile.in: Don't install empty manual pages if help2man is
9648 missing. Use help2man option for output, not shell redirection.
9649
9650 2009-04-26 David S. Miller <davem@davemloft.net>
9651
9652 * util/grub-mkdevicemap.c (make_device_map): Add missing
9653 NESTED_FUNC_ATTR to process_device().
9654
9655 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 Test command
9658
9659 * commands/test.c: rewritten to use bash-like test
9660
9661 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 Parttool autoloading and improvements
9664
9665 * Makefile.in (pkglib_DATA): add parttool.lst
9666 (parttool.lst): new target
9667 * genmk.rb: generate parttool-*
9668 (CLEANFILES): add #{parttool}
9669 (PARTTOOLFILES): new variable
9670 * genparttoollist.sh: new file
9671 * parttool/pcpart.c (grub_pcpart_boot): more feedback
9672 (grub_pcpart_type): likewise
9673 * commands/parttool.c (helpmsg): new variable
9674 (grub_cmd_parttool): output help if not enough arguments are supplied
9675 autoload modules
9676 (GRUB_MOD_INIT(parttool)): use helpmsg
9677
9678 2009-04-24 David S. Miller <davem@davemloft.net>
9679
9680 Avoiding opening same device multiple times in device iterator.
9681
9682 * kern/device.c: (grub_device_iterate): Define struct part_ent,
9683 and use it to build a list of partitions in iterate_disk() and
9684 iterate_partition().
9685
9686 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
9687 on disk->data.
9688
9689 * disk/ieee1275/nand.c (grub_nand_iterate): Return
9690 grub_devalias_iterate() result instead of unconditional 0.
9691 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
9692 Also, capture hook return value, either directly or via
9693 grub_children_iterate(), and propagate to caller.
9694 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
9695 grub_children_iterate): Return value is now 'int' instead of
9696 'grub_err_t'.
9697 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
9698 like a proper iterator, stopping when hooks return non-zero.
9699 (grub_devalias_iterate): Likewise.
9700
9701 2009-04-23 David S. Miller <davem@davemloft.net>
9702
9703 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
9704
9705 2009-04-22 David S. Miller <davem@davemloft.net>
9706
9707 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
9708 is larger than address_cells, use that value for address_cells too.
9709
9710 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
9711 IEEE1275_MAX_PATH_LEN): Define.
9712 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
9713 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
9714 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
9715 'devtype'. Explicitly NULL terminate devalias expansion.
9716
9717 * util/sparc64/ieee1275/misc.c: New file.
9718 * util/sparc64/ieee1275/grub-setup.c: New file.
9719 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
9720 * util/sparc64/ieee1275/grub-mkimage.c: New file.
9721 * util/sparc64/ieee1275/grub-install.in: New file.
9722 * util/ieee1275/ofpath.c: New file.
9723 * util/ieee1275/devicemap.c: New file.
9724 * util/devicemap.c: New file.
9725 * util/deviceiter.c: New file.
9726 * kern/sparc64/ieee1275/init.c: New file.
9727 * include/grub/util/ofpath.h: New file.
9728 * include/grub/util/deviceiter.h: New file.
9729 * util/grub-mkdevicemap.c: Include deviceiter.h.
9730 Implement using grub_util_emit_devicemap_entry and
9731 grub_util_iterate_devices.
9732 * conf/i386-corebook.rmk: Build util/deviceiter.c and
9733 util/devicemap.c into grub-mkdevicemap
9734 * conf/i386-efi.rmk: Likewise.
9735 * conf/i386-ieee1275.rmk: Likewise.
9736 * conf/i386-pc.rmk: Likewise.
9737 * conf/powerpc-ieee1275.rmk: Likewise.
9738 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
9739 images and installation utilities. Build kernel as image
9740 instead of as elf binary. Use common rules as much as possible.
9741
9742 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 Correct GPT definition
9745
9746 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
9747 of "attrib" member
9748
9749 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
9750
9751 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
9752
9753 2009-04-19 David S. Miller <davem@davemloft.net>
9754
9755 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
9756 (grub_rescue_cmd_linux): Rename to...
9757 (grub_cmd_linux): and fix prototype.
9758 (grub_rescue_cmd_initrd): Rename to...
9759 (grub_cmd_initrd): and fix prototype.
9760 (cmd_linux, cmd_initrd): New.
9761 (GRUB_MOD_INIT(linux)): Use grub_register_command().
9762 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
9763
9764 2009-04-17 Pavel Roskin <proski@gnu.org>
9765
9766 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
9767 format.
9768 (grub_ohci_transfer): Likewise.
9769
9770 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
9771
9772 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
9773 return without a value. Fix inconsistent indentation.
9774
9775 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
9776 match struct grub_fs.
9777
9778 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
9779 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
9780 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
9781 * commands/lspci.c (grub_lspci_iter): Likewise.
9782
9783 2009-04-16 Bean <bean123ch@gmail.com>
9784
9785 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
9786 value.
9787
9788 2009-04-15 Pavel Roskin <proski@gnu.org>
9789
9790 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
9791 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
9792 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
9793 definitions.
9794
9795 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
9796
9797 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
9798 that no multiple data or metadata areas are supported and `Unknown
9799 metadata header'.
9800
9801 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
9802
9803 Move loader out of the kernel
9804
9805 * kern/loader.c: moved to ...
9806 * commands/boot.c: ... moved here
9807 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
9808 * commands/boot.c (grub_cmd_boot): moved here. All users updated
9809 * include/grub/kernel.h (grub_machine_fini): export
9810 * include/grub/loader.h (grub_loader_is_loaded): update declaration
9811 (grub_loader_set): likewise
9812 (grub_loader_unset): likewise
9813 (grub_loader_boot): likewise
9814 * conf/common.rmk: new module boot.mod
9815 (pkglib_MODULES): add boot.mod
9816 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
9817 (grub_emu_SOURCES): likewise
9818 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
9819 (grub_emu_SOURCES): likewise
9820 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
9821 (grub_emu_SOURCES): likewise
9822 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
9823 (grub_emu_SOURCES): likewise
9824 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
9825 (grub_emu_SOURCES): likewise
9826 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
9827 (grub_emu_SOURCES): likewise
9828 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
9829 (grub_emu_SOURCES): likewise
9830
9831 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
9832
9833 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
9834
9835 * kern/misc.c (grub_itoa): Removed function
9836 (grub_ltoa): likewise
9837 (grub_vsprintf): use grub_lltoa
9838
9839 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 Restore grub-emu
9842
9843 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
9844 * conf/i386-coreboot.rmk: likewise
9845 * conf/i386-ieee1275.rmk: likewise
9846 * conf/powerpc-ieee1275.rmk: likewise
9847
9848 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
9849
9850 * INSTALL: Add that `./autogen.sh' needs to be run before
9851 `./configure.'.
9852
9853 2009-04-14 Bean <bean123ch@gmail.com>
9854
9855 * Makefile.in (pkglib_DATA): Add handler.lst.
9856 (handler.lst): New rule.
9857
9858 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
9859 * conf/i386-coreboot.rmk: Likewise.
9860 * conf/i386-ieee1275.rmk: Likewise.
9861 * conf/i386-efi.rmk: Likewise.
9862 * conf/x86_64-efi.rmk: Likewise.
9863 * conf/powerpc-ieee1275.rmk: Likewise.
9864 * conf/sparc64-ieee1275.rmk: Likewise.
9865
9866 * genhandlerlist.sh: New file.
9867
9868 * genmk.rb: Add rules to generate handler.lst.
9869
9870 * include/grub/normal.h (grub_file_getline): New function definition.
9871 (read_handler_list): Likewise.
9872 (free_handler_list): Likewise.
9873
9874 * include/grub/term.h (grub_term_register_input): Add name parameter
9875 for auto generation of handler.lst.
9876 (grub_term_register_output): Likewise.
9877
9878 * normal/handler.c: New file.
9879
9880 * normal/main.c (get_line): Renamed to grub_file_getline.
9881 (read_config_file): Use the newly renamed grub_file_getline.
9882 (read_command_list): Likewise.
9883 (read_fs_list): Likewise.
9884 (grub_normal_execute): Call read_handler_list to parse handler.lst.
9885 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
9886
9887 * term/efi/console.c (grub_console_init): Add name parameter for auto
9888 generation of handler.lst.
9889 * term/gfxterm.c: Likewise.
9890 * term/i386/pc/at_keyboard.c: Likewise.
9891 * term/i386/pc/console.c: Likewise.
9892 * term/i386/pc/serial.c: Likewise.
9893 * term/i386/pc/vesafb.c: Likewise.
9894 * term/i386/pc/vga.c: Likewise.
9895 * term/i386/pc/vga_text.c: Likewise.
9896 * term/ieee1275/ofconsole.c: Likewise.
9897 * term/usb_keyboard.c: Likewise.
9898
9899 2009-04-14 Bean <bean123ch@gmail.com>
9900
9901 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
9902 properly with null character.
9903
9904 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
9905
9906 * configure: Remove.
9907 * config.h.in: Likewise.
9908 * stamp-h.in: Likewise.
9909 * DISTLIST: Likewise.
9910 * conf/common.mk: Likewise.
9911 * conf/i386-coreboot.mk: Likewise.
9912 * conf/i386-efi.mk: Likewise.
9913 * conf/i386-ieee1275.mk: Likewise.
9914 * conf/i386.mk: Likewise.
9915 * conf/i386-pc.mk: Likewise.
9916 * conf/powerpc-ieee1275.mk: Likewise.
9917 * conf/sparc64-ieee1275.mk: Likewise.
9918 * conf/x86_64-efi.mk: Likewise.
9919
9920 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
9921 develop on GRUB.
9922
9923 2009-04-14 John Stanley <jpsinthemix@verizon.net>
9924 David S. Miller <davem@davemloft.net>
9925
9926 * util/hostdisk.c (make_device_name): Fix buffer length
9927 calculations.
9928
9929 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
9930
9931 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
9932 <sys/param.h> and <sys/sysctl.h>.
9933 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
9934 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
9935 opening the device and reset them afterwards.
9936
9937 2009-04-13 Pavel Roskin <proski@gnu.org>
9938
9939 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
9940 Reported by John Stanley <jpsinthemix@verizon.net>
9941
9942 2009-04-13 Robert Millan <rmh@aybabtu.com>
9943
9944 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
9945 that name for menuentries when appropriate.
9946
9947 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
9948
9949 * util/grub.d/10_freebsd.in: Add a missing `fi'.
9950
9951 2009-04-13 Robert Millan <rmh@aybabtu.com>
9952
9953 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
9954 to Linux, simply abort telling the user it's no longer supported.
9955
9956 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
9957
9958 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
9959 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
9960 `freebsd_loadenv' only when devices.hints exist.
9961
9962 2009-04-13 Pavel Roskin <proski@gnu.org>
9963
9964 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
9965
9966 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
9967
9968 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
9969 partition number.
9970 (grub_drive): Likewise.
9971
9972 2009-04-13 David S. Miller <davem@davemloft.net>
9973
9974 * kern/sparc64/ieee1275/ieee1275.c: New file.
9975 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
9976 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
9977 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
9978 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
9979 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
9980 grub_ieee1275_alloc_physmem): Declare new exported functions.
9981
9982 * include/grub/sparc64/ieee1275/loader.h: New file.
9983 * include/grub/sparc64/ieee1275/memory.h: Likewise.
9984 * include/grub/sparc64/kernel.h: Likewise.
9985 * loader/sparc64/ieee1275/linux.c: Likewise.
9986
9987 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
9988 (grub_fstest_SOURCES): Likewise.
9989
9990 * util/hostdisk.c (make_device_name): Do not make any assumptions
9991 about the length of drive names.
9992
9993 * kern/dl.c (grub_dl_load_file): Close file immediately when
9994 we are done using it.
9995
9996 2009-04-12 David S. Miller <davem@davemloft.net>
9997
9998 * kern/misc.c (grub_ltoa): Fix cast when handling negative
9999 values. Noticed by Pavel Roskin.
10000
10001 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
10002 target compiler.
10003
10004 * genmk.rb: Add more flexible image type specification, also
10005 pass --strip-unneeded to objcopy.
10006 * conf/i386-pc.rmk: Use *_FORMAT.
10007 * conf/i386-pc.mk: Rebuilt.
10008
10009 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
10010 (OFDISK_HASH_SZ): Define.
10011 (ofdisk_hash): New hash table.
10012 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
10013 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
10014 instead of device phandle which is not unique.
10015
10016 * kern/sparc64/ieee1275/init.c: Delete, replace with...
10017 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
10018 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
10019 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
10020 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
10021 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
10022 GRUB_KERNEL_MACHINE_DATA_END): Define.
10023 (grub_kernel_image_size, grub_total_module_size): Declare.
10024
10025 2009-04-12 Pavel Roskin <proski@gnu.org>
10026
10027 * configure.ac: Change the logic when we check for target tools.
10028 Do it when the target is specified and it's different from the
10029 specified value of the host.
10030
10031 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
10032
10033 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
10034 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
10035 GNU/kFreeBSD. Check if a device is a character device. Use
10036 DIOCGMEDIASIZE to get the size.
10037 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
10038 support for GNU/kFreeBSD.
10039 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
10040 is a character device instead of a block device. Add support for
10041 FreeBSD device names.
10042
10043 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
10044 is a character device instead of a block device.
10045
10046 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
10047 is a character device instead of a block device.
10048
10049 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
10050
10051 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
10052 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
10053 FreeBSD. Check if a device is a character device. Use
10054 DIOCGMEDIASIZE to get the size.
10055 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
10056 support for FreeBSD.
10057 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
10058 is a character device instead of a block device. Add support for
10059 FreeBSD device names.
10060
10061 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
10062 a character device instead of a block device.
10063 (grub_util_check_char_device): New function.
10064
10065 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
10066 a character device instead of a block device.
10067
10068 * include/grub/util/getroot.h (grub_util_check_char_device): New
10069 prototype.
10070
10071 2009-04-11 David S. Miller <davem@davemloft.net>
10072
10073 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
10074 static libgcc.
10075 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
10076 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
10077 function, if present.
10078 (__bswapdi2): Likewise.
10079
10080 * include/grub/sparc64/ieee1275/boot.h: New file.
10081 * boot/sparc64/ieee1275/boot.S: Likewise.
10082 * boot/sparc64/ieee1275/diskboot.S: Likewise.
10083
10084 * kern/misc.c (grub_ltoa): New function.
10085 (grub_vsprintf): Use it to format 'long' integers.
10086
10087 2009-04-10 David S. Miller <davem@davemloft.net>
10088
10089 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
10090 slots are of type grub_ieee1275_cell_t.
10091 (grub_nand_read): Likewise.
10092 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
10093 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
10094 macros are used to compare values in arg/ret block of the call.
10095 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
10096 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
10097 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
10098 grub_ieee1275_instance_to_path, grub_ieee1275_write,
10099 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
10100 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
10101 grub_ieee1275_close, grub_ieee1275_set_property,
10102 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
10103 grub_ieee1275_cell_t.
10104 * kern/ieee1275/openfw.c (grub_map): Likewise.
10105 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
10106 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
10107
10108 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
10109 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
10110 (grub_devalias_iterate): Likewise.
10111
10112 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10113
10114 UFS improvements
10115
10116 * fs/ufs.c (INODE_NBLOCKS): new definition
10117 (struct grub_ufs_dirent): added fields for non-BSD dirents
10118 (grub_ufs_get_file_block): fixed double indirect handling
10119 (grub_ufs_lookup_symlink): use more robust way to determine whether
10120 symlink is inline
10121 (grub_ufs_find_file): support for non-BSD dirents
10122 (grub_ufs_dir): support for non-BSD dirents
10123
10124 2009-04-10 Bean <bean123ch@gnail.com>
10125
10126 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
10127 attribute, otherwise the size would be wrong for i386 platform.
10128
10129 * include/grub/pci.h (grub_pci_read_word): New inline function.
10130 (grub_pci_read_byte): Likewise.
10131 (grub_pci_write): Likewise.
10132 (grub_pci_write_word): Likewise.
10133 (grub_pci_write_byte): Likewise.
10134
10135 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
10136
10137 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
10138 (find_framebuf): Scan pci to locate the frame buffer address.
10139
10140 * commands/efi/fixvideo.c: New file.
10141
10142 * commands/efi/loadbios.c: Likewise.
10143
10144 * commands/memrw.c: Likewise.
10145
10146 * util/grub-dumpbios.in: Likewise.
10147
10148 * conf/common.rmk (grub-dumpbios): New utility.
10149 (pkglib_MODULES): New module memrw.mod.
10150 (memrw_mod_SOURCE): New macro.
10151 (memrw_mod_CFLAGS): Likewise.
10152 (memrw_mod_LDFLAGS): Likewise.
10153
10154 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
10155 fixvideo.mod.
10156 (loadbios_mod_SOURCE): New macro.
10157 (loadbios_mod_CFLAGS): Likewise.
10158 (loadbios_mod_LDFLAGS): Likewise.
10159 (fixvideo_mod_SOURCE): Likewise.
10160 (fixvideo_mod_CFLAGS): Likewise.
10161 (fixvideo_mod_LDFLAGS): Likewise.
10162
10163 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
10164 fixvideo.mod.
10165 (loadbios_mod_SOURCE): New macro.
10166 (loadbios_mod_CFLAGS): Likewise.
10167 (loadbios_mod_LDFLAGS): Likewise.
10168 (fixvideo_mod_SOURCE): Likewise.
10169 (fixvideo_mod_CFLAGS): Likewise.
10170 (fixvideo_mod_LDFLAGS): Likewise.
10171
10172 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
10173
10174 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
10175
10176 2009-04-07 David S. Miller <davem@davemloft.net>
10177
10178 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
10179 support for R_SPARC_OLO10 relocations. Fix compile warning for
10180 R_SPARC_WDISP30 case.
10181 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
10182
10183 2009-04-06 Pavel Roskin <proski@gnu.org>
10184
10185 * include/grub/misc.h (ARRAY_SIZE): New macro.
10186 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
10187 New macro.
10188 * loader/i386/linux.c (allocate_pages): Use free_pages().
10189 (grub_linux_unload): Don't use free_pages().
10190 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
10191 wrong index. Treat all other modes as text modes.
10192 (grub_cmd_linux): Initialize vid_mode unconditionally to
10193 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
10194
10195 * commands/help.c (print_command_help): Use cmd->prio, not
10196 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
10197
10198 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Parttool
10201
10202 * parttool/pcpart.c: new file
10203 * commands/parttool.c: likewise
10204 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
10205 (parttool_mod_SOURCES): new variable
10206 (parttool_mod_CFLAGS): likewise
10207 (parttool_mod_LDFLAGS): likewise
10208 (pcpart_mod_SOURCES): likewise
10209 (pcpart_mod_CFLAGS): likewise
10210 (pcpart_mod_LDFLAGS): likewise
10211 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
10212 and parttool/pcpart.c
10213 * conf/i386-efi.rmk: likewise
10214 * conf/i386-ieee1275.rmk: likewise
10215 * conf/i386-pc.rmk: likewise
10216 * conf/powerpc-ieee1275.rmk: likewise
10217 * conf/sparc64-ieee1275.rmk: likewise
10218 * conf/x86_64-ieee1275.rmk: likewise
10219
10220 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10221
10222 Support for mtime and further expandability of dir command
10223
10224 * include/grub/lib/datetime.h: moved to ...
10225 * include/grub/datetime.h: ... moved here and added
10226 declaration of grub_unixtime2datetime. All users updated
10227 * include/grub/fs.h: new syntax for dir and mtime functions in
10228 struct grub_fs
10229 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
10230 and GRUB_FSHELP_FLAGS_MASK
10231 * commands/ls.c (grub_ls_list_files): Write mtime in long format
10232 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
10233 (grub_ext2_mtime): new function
10234 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
10235 (grub_hfsplus_mtime): new function
10236 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
10237 (GRUB_UFS_ATTR_FILE): likewise
10238 (GRUB_UFS_ATTR_LNK): likewise
10239 (struct grub_ufs_sblock): new fields mtime
10240 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
10241 all users updated
10242 (grub_ufs_dir): mtime support
10243 (grub_ufs_mtime): new function
10244 * fs/affs.c (grub_affs_dir): use new dir syntax
10245 * fs/afs.c (grub_afs_dir): likewise
10246 * fs/cpio.c (grub_cpio_dir): likewise
10247 * fs/fat.c (grub_fat_find_dir): likewise
10248 * fs/hfs.c (grub_hfs_dir): likewise
10249 * fs/iso9660.c (grub_iso9660_dir): likewise
10250 * fs/jfs.c (grub_jfs_dir): likewise
10251 * fs/minix.c (grub_minix_dir): likewise
10252 * fs/ntfs.c (grub_ntfs_dir): likewise
10253 * fs/reiserfs.c (grub_reiserfs_dir): likewise
10254 * fs/sfs.c (grub_sfs_dir): likewise
10255 * fs/xfs.c (grub_xfs_dir): likewise
10256 * util/hostfs.c (grub_hostfs_dir): likewise
10257 * lib/datetime.c: moved to ...
10258 * normal/datetime.c: ... moved here
10259 (grub_unixtime2datetime): new function
10260 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
10261 * normal/completion.c (iterate_dir): use new dir syntax
10262 * normal/misc.c (grub_normal_print_device_info): tell the
10263 last modification time of a volume
10264 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
10265 * conf/common.rmk: added lib/datetime.c to ls.mod
10266 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
10267 (normal_mod_SOURCES): likewise
10268 (datetime_mod_SOURCES): Removed lib/datetime.c
10269 * conf/i386-efi.rmk: likewise
10270 * conf/i386-ieee1275.rmk: likewise
10271 * conf/i386-pc.rmk: likewise
10272 * conf/powerpc-ieee1275.rmk: likewise
10273 * conf/sparc64-ieee1275.rmk: likewise
10274 * conf/x86_64-efi.rmk: likewise
10275
10276 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10277
10278 Trim trailing spaces in FAT label and support mtools-like labels
10279
10280 * fs/fat.c (grub_fat_iterate_dir): New function based
10281 on grub_fat_find_dir
10282 (grub_fat_find_dir): use grub_fat_iterate_dir
10283 (grub_fat_label): likewise
10284
10285 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
10288 and command.h
10289 remove extraneous kernel_elf_HEADERS
10290
10291 2009-04-04 Bean <bean123ch@gnail.com>
10292
10293 * include/grub/util/misc.h: Add dummy function fsync for mingw.
10294
10295 * util/misc.c: Likewise.
10296
10297 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
10298
10299 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
10300 instead of grub_printf.
10301
10302 2009-04-03 Robert Millan <rmh@aybabtu.com>
10303
10304 * loader/i386/linux.c (grub_linux_setup_video): Fill
10305 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
10306 values from `mode info' structure instead of hardcoded
10307 values.
10308
10309 2009-04-01 Pavel Roskin <proski@gnu.org>
10310
10311 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
10312 unused now.
10313 * genmk.rb: Likewise.
10314 * configure.ac: Likewise.
10315
10316 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
10317
10318 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
10319 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
10320
10321 2009-04-01 David S. Miller <davem@davemloft.net>
10322
10323 * normal/sparc64/setjmp.S: Fix setjmp implementation.
10324 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
10325 (grub_setjmp): Mark with 'returns_twice' attribute.
10326 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
10327 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
10328 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
10329
10330 2009-04-01 Robert Millan <rmh@aybabtu.com>
10331
10332 Reapply fix from 2008-07-28 which was accidentally reverted; also
10333 perform the same fix to a similar check in same function.
10334
10335 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
10336 with the same number are found, just use issue a warning with
10337 grub_dprintf(), as this error has been reported to be non-fatal.
10338
10339 2009-03-31 Pavel Roskin <proski@gnu.org>
10340
10341 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
10342 for cross-compilation.
10343
10344 2009-03-30 Robert Millan <rmh@aybabtu.com>
10345
10346 Fix i386-ieee1275 build.
10347
10348 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
10349 Remove declaration.
10350
10351 2009-03-30 Pavel Roskin <proski@gnu.org>
10352
10353 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
10354 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
10355 zero-terminated, rely only on the strlen value. Fix comparison
10356 of strings differing in length.
10357
10358 2009-03-30 Robert Millan <rmh@aybabtu.com>
10359
10360 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
10361 checking for abi version. Improve error messages on BIOS to notify
10362 user about `linux16' command.
10363
10364 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 Leak fixes
10367
10368 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
10369 in case of collision
10370 * disk/scsi.c (grub_scsi_open): free scsi in case of error
10371
10372 2009-03-29 Robert Millan <rmh@aybabtu.com>
10373
10374 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
10375 set `vid_mode' accordingly.
10376 (grub_linux_boot): Process `vid_mode' and set video mode.
10377
10378 2009-03-29 Robert Millan <rmh@aybabtu.com>
10379
10380 * util/grub.d/10_linux.in (linux_entry): New function.
10381 Factorize generation of Linux boot entries.
10382
10383 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
10384
10385 Make the format of Environment Block plain text. The boot loader
10386 part is not tested well yet.
10387
10388 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
10389 (buffer): Removed.
10390 (envblk): Likewise.
10391 (usage): Remove "info" and "clear". Add "unset". Update the
10392 description of "set", as this does not delete variables any
10393 longer.
10394 (create_envblk_file): Complete rewrite.
10395 (open_envblk_file): Likewise.
10396 (cmd_info): Removed.
10397 (cmd_list): Likewise.
10398 (cmd_set): Likewise.
10399 (cmd_clear): Likewise.
10400 (list_variables): New function.
10401 (write_envblk): Likewise.
10402 (set_variables): Likewise.
10403 (unset_variables): Likewise.
10404 (main): Complete rewrite.
10405
10406 * commands/loadenv.c (buffer): Removed.
10407 (envblk): Likewise.
10408 (open_envblk_file): New function.
10409 (read_envblk_file): Complete rewrite.
10410 (grub_cmd_load_env): Likewise.
10411 (grub_cmd_list_env): Likewise.
10412 (struct blocklist): New struct.
10413 (free_blocklists): New function.
10414 (check_blocklists): Likewise.
10415 (write_blocklists): Likewise.
10416 (grub_cmd_save_env): Complete rewrite.
10417
10418 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
10419 a plain text signature.
10420 (GRUB_ENVBLK_MAXLEN): Removed.
10421 (struct grub_envblk): Complete rewrite.
10422 (grub_envblk_find): Removed.
10423 (grub_envblk_insert): Likewise.
10424 (grub_envblk_open): New prototype.
10425 (grub_envblk_set): Likewise.
10426 (grub_envblk_delete): Put const to VALUE.
10427 (grub_envblk_iterate): Put const to NAME and VALUE.
10428 (grub_envblk_close): New prototype.
10429 (grub_envblk_buffer): New inline function.
10430 (grub_envblk_size): Likewise.
10431
10432 * lib/envblk.c: Include grub/mm.h.
10433 (grub_env_find): Removed.
10434 (grub_envblk_open): New function.
10435 (grub_envblk_close): Likewise.
10436 (escaped_value_len): Likewise.
10437 (find_next_line): Likewise.
10438 (grub_envblk_insert): Removed.
10439 (grub_envblk_set): New function.
10440 (grub_envblk_delete): Complete rewrite.
10441 (grub_envblk_iterate): Likewise.
10442
10443 2009-03-28 Robert Millan <rmh@aybabtu.com>
10444
10445 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
10446 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
10447 variables. Use 16-bit loader.
10448 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
10449 loader.
10450 * kern/i386/loader.S (grub_linux_boot): Rename to ...
10451 (grub_linux16_boot): ... this. Update all users.
10452 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
10453 (grub_linux_boot): ... this. Update all users.
10454
10455 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
10456 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
10457 commands to `linux16' and `initrd16'.
10458 (GRUB_MOD_FINI(linux)): Rename to ...
10459 (GRUB_MOD_FINI(linux16)): ... this.
10460
10461 2009-03-24 Pavel Roskin <proski@gnu.org>
10462
10463 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
10464 not just for compilation.
10465
10466 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
10467
10468 Move multiboot helper out of kernel
10469
10470 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
10471 `loader/i386/multiboot_helper.S'.
10472 * conf/i386-coreboot.rmk: Likewise
10473 * conf/i386-ieee1275.rmk: Likewise
10474
10475 * kern/i386/loader.S: Move multiboot helpers from here...
10476 * loader/i386/multiboot_helper.S: ...moved here
10477 * include/grub/i386/loader.h: Move declarations of multiboot
10478 helpers from here...
10479 * include/grub/i386/multiboot.h: ...moved here
10480 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
10481
10482 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
10483
10484 * kern/env.c (grub_env_context_open): Added an argument to specify
10485 whether a new context inherits exported variables from current
10486 one. This is useful when making a sandbox to interpret a config
10487 file.
10488 All callers updated.
10489
10490 * include/grub/env.h (grub_env_context_open): Updated the prototype.
10491
10492 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
10493
10494 * kern/env.c (grub_env_context_close): Fix memory leaks.
10495
10496 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
10497
10498 * normal/main.c (grub_normal_execute): Added an argument
10499 BATCH to specify if an interactive interface should be provided
10500 after reading a config file.
10501 All callers updated.
10502 (read_command_list): Prevent being executed twice.
10503 (read_fs_list): Likewise.
10504
10505 * include/grub/normal.h (grub_normal_execute): Updated the
10506 prototype.
10507
10508 2009-03-22 Pavel Roskin <proski@gno.org>
10509
10510 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
10511 _start.
10512 * kern/i386/pc/startup.S: Likewise.
10513 * kern/i386/efi/startup.S: Likewise.
10514 * kern/i386/ieee1275/startup.S: Likewise.
10515 * kern/i386/coreboot/startup.S: Likewise.
10516 * kern/x86_64/efi/startup.S: Likewise.
10517
10518 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
10519 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
10520 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
10521
10522 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 Bugfixes in multiboot for bugs uncovered by solaris kernel.
10525
10526 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
10527 limit detection.
10528 Use vaddr of correct segment for entry_point.
10529
10530 2009-03-21 Bean <bean123ch@gmail.com>
10531
10532 * commands/blocklist.c: Add include file <grub/command.h>, remove
10533 <grub/normal.h> and <grub/arg.h>.
10534 (grub_cmd_blocklist): Use the new command interface.
10535 (GRUB_MOD_INIT): Likewise.
10536 (GRUB_MOD_FINI): Likewise.
10537 * commands/boot.c: Likewise.
10538 * commands/cat.c: Likewise.
10539 * commands/cmp.c: Likewise.
10540 * commands/configfile.c: Likewise.
10541 * commands/crc.c: Likewise.
10542 * commands/echo.c: Likewise.
10543 * commands/halt.c: Likewise.
10544 * commands/handler.c: Likewise.
10545 * commands/hdparm.c: Likewise.
10546 * commands/help.c: Likewise.
10547 * commands/hexdump.c: Likewise.
10548 * commands/loadenv.c: Likewise.
10549 * commands/ls.c: Likewise.
10550 * commands/lsmmap.c: Likewise.
10551 * commands/lspci.c: Likewise.
10552 * commands/loadenv.c: Likewise.
10553 * commands/read.c: Likewise.
10554 * commands/reboot.c: Likewise.
10555 * commands/search.c: Likewise.
10556 * commands/sleep.c: Likewise.
10557 * commands/test.c: Likewise.
10558 * commands/usbtest.c: Likewise.
10559 * commands/videotest.c: Likewise.
10560 * commands/i386/cpuid.c: Likewise.
10561 * commands/i386/pc/halt.c: Likewise.
10562 * commands/i386/pc/play.c: Likewise.
10563 * commands/i386/pc/pxecmd.c: Likewise.
10564 * commands/i386/pc/vbeinfo.c: Likewise.
10565 * commands/i386/pc/vbetest.c: Likewise.
10566 * commands/ieee1275/suspend.c: Likewise.
10567 * disk/loopback.c: Likewise.
10568 * font/font_cmd.c: Likewise.
10569 * hello/hello.c: Likewise.
10570 * loader/efi/appleloader.c: Likewise.
10571 * loader/efi/chainloader.c: Likewise.
10572 * loader/i386/bsd.c: Likewise.
10573 * loader/i386/efi/linux.c: Likewise.
10574 * loader/i386/ieee1275/linux.c: Likewise.
10575 * loader/i386/linux.c: Likewise.
10576 * loader/i386/pc/chainloader.c: Likewise.
10577 * loader/i386/pc/linux.c: Likewise.
10578 * loader/powerpc/ieee1275/linux.c: Likewise.
10579 * loader/multiboot_loader.c: Likewise.
10580 * term/gfxterm.c: Likewise.
10581 * term/i386/pc/serial.c: Likewise.
10582 * term/terminfo.c: Likewise.
10583
10584 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
10585 * term/i386/pc/vga.c: Likewise.
10586 * video/readers/jpeg.c: Likewise.
10587 * video/readers/png.c: Likewise.
10588 * video/readers/tga.c: Likewise.
10589
10590 * util/grub-fstest (cmd_loopback): Removed.
10591 (cmd_blocklist): Likewise.
10592 (cmd_ls): Likewise.
10593 (grub_register_command): Likewise.
10594 (grub_unregister_command): Likewise.
10595 (execute_command): Use grub_command_find to locate command and execute
10596 it.
10597
10598 * include/grub/efi/chainloader.h: Removed.
10599 * loader/efi/chainloader_normal.c: Likewise.
10600 * loader/i386/bsd_normal.c: Likewise.
10601 * loader/i386/pc/chainloader_normal.c: Likewise.
10602 * loader/i386/pc/multiboot_normal.c: Likewise.
10603 * loader/linux_normal.c: Likewise.
10604 * loader/multiboot_loader_normal.c: Likewise.
10605 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
10606
10607 * gencmdlist.sh: Scan new registration command grub_register_extcmd
10608 and grub_register_command_p1.
10609
10610 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
10611 kern/command.c, lib/arg.c and commands/extcmd.c.
10612 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
10613 (minicmd_mod_SOURCES): New variable.
10614 (minicmd_mod_CFLAGS): Likewise.
10615 (minicmd_mod_LDFLAGS): Likewise.
10616 (extcmd_mod_SOURCES): Likewise.
10617 (extcmd_mod_CFLAGS): Likewise.
10618 (extcmd_mod_LDFLAGS): Likewise.
10619 (boot_mod_SOURCES): Removed.
10620 (boot_mod_CFLAGS): Likewise.
10621 (boot_mod_LDFLAGS): Likewise.
10622
10623 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
10624 kern/corecmd.c.
10625 (kernel_img_HEADERS): Add command.h.
10626 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
10627 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
10628 and lib/arg.c.
10629 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
10630 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
10631 remove the corresponding normal mode command.
10632 (normal_mod_SOURCES): Remove normal/arg.c.
10633 * conf/i386-coreboot.rmk: Likewise.
10634 * conf/i386-efi.rmk: Likewise.
10635 * conf/i386-ieee1275.rmk: Likewise.
10636 * conf/powerpc-ieee1275.rmk: Likewise.
10637 * conf/x86_64-efi.rmk: Likewise.
10638
10639 * include/grub/arg.h: Move from here ...
10640 * include/grub/lib/arg.h: ... to here.
10641
10642 * normal/arg.c: Move from here ...
10643 * lib/arg.c: ... to here.
10644
10645 * commands/extcmd.c: New file.
10646 * commands/minicmd.c: Likewise.
10647 * include/grub/command.h: Likewise.
10648 * include/grub/extcmd.h: Likewise.
10649 * kern/command.c: Likewise.
10650 * kern/corecmd.c: Likewise.
10651
10652 * kern/list.c (grub_list_iterate): Return int instead of void.
10653 (grub_list_insert): New function.
10654 (grub_prio_list_insert): Likewise.
10655
10656 * kern/rescue.c (grub_rescue_command): Removed.
10657 (grub_rescue_command_list): Likewise.
10658 (grub_rescue_register_command): Likewise.
10659 (grub_rescue_unregister_command): Likewise.
10660 (grub_rescue_cmd_boot): Move to minicmd.c
10661 (grub_rescue_cmd_help): Likewise.
10662 (grub_rescue_cmd_info): Likewise.
10663 (grub_rescue_cmd_boot): Likewise.
10664 (grub_rescue_cmd_testload): Likewise.
10665 (grub_rescue_cmd_dump): Likewise.
10666 (grub_rescue_cmd_rmmod): Likewise.
10667 (grub_rescue_cmd_lsmod): Likewise.
10668 (grub_rescue_cmd_exit): Likewise.
10669 (grub_rescue_print_devices): Moved to corecmd.c.
10670 (grub_rescue_print_files): Likewise.
10671 (grub_rescue_cmd_ls): Likewise.
10672 (grub_rescue_cmd_insmod): Likewise.
10673 (grub_rescue_cmd_set): Likewise.
10674 (grub_rescue_cmd_unset): Likewise.
10675 (attempt_normal_mode): Use grub_command_find to get normal module.
10676 (grub_enter_rescue_mode): Use grub_register_core_commands to register
10677 commands, remove grub_rescue_register_command calls.
10678
10679 * normal/command.c (grub_register_command): Removed.
10680 (grub_unregister_command): Likewise.
10681 (grub_command_find): Likewise.
10682 (grub_iterate_commands): Likewise.
10683 (rescue_command): Likewise.
10684 (export_command): Moved to corecmd.c.
10685 (set_command): Removed.
10686 (unset_command): Likewise.
10687 (insmod_command): Likewise.
10688 (rmmod_command): Likewise.
10689 (lsmod_command): Likewise.
10690 (grub_command_init): Likewise.
10691
10692 * normal/completion.c (iterate_command): Use cmd->prio to check for
10693 active command.
10694 (complete_arguments): Use grub_extcmd_t structure to find options.
10695 (grub_normal_do_completion): Change function grub_iterate_commands to
10696 grub_command_iterate.
10697
10698 * normal/execute.c (grub_script_execute_cmd): No need to parse
10699 argument here.
10700
10701 * normal/main.c (grub_dyncmd_dispatcher): New function.
10702 (read_command_list): Register unload commands as dyncmd.
10703 (grub_cmd_normal): Use new command interface, register rescue,
10704 unregister normal at entry, register normal, unregister rescue at exit.
10705
10706 * include/grub/list.h (grub_list_test_t): New type.
10707 (grub_list_iterate): Return int instead of void.
10708 (grub_list_insert): New function.
10709 (GRUB_AS_NAMED_LIST_P): New macro.
10710 (GRUB_AS_PRIO_LIST): Likewise.
10711 (GRUB_AS_PRIO_LIST_P): Likewise.
10712 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
10713 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
10714 (grub_prio_list): New structure.
10715 (grub_prio_list_insert): New function.
10716 (grub_prio_list_remove): New inline function.
10717
10718 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
10719 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
10720 (GRUB_COMMAND_FLAG_MENU): Likewise.
10721 (GRUB_COMMAND_FLAG_BOTH): Likewise.
10722 (GRUB_COMMAND_FLAG_TITLE): Likewise.
10723 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
10724 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
10725 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
10726 (grub_command): Likewise.
10727 (grub_register_command): Likewise.
10728 (grub_command_find): Likewise.
10729 (grub_iterate_commands): Likewise.
10730 (grub_command_init): Likewise.
10731 (grub_arg_parse): Likewise.
10732 (grub_arg_show_help): Likewise.
10733
10734 * include/grub/rescue.h (grub_rescue_register_command): Removed.
10735 (grub_rescue_unregister_command): Likewise.
10736
10737 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
10738 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
10739 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
10740
10741 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
10742 grub_rescue_cmd_initrd.
10743 * include/grub/i386/loader.h: Likewise.
10744 * include/grub/x86_64/loader.h: Likewise.
10745
10746 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
10747
10748 2009-03-21 Bean <bean123ch@gmail.com>
10749
10750 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
10751 instead of stat in mingw environment.
10752
10753 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
10754
10755 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
10756
10757 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
10758 AC_CONFIG_LINKS.
10759
10760 2009-03-21 Bean <bean123ch@gmail.com>
10761
10762 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
10763 out of range error.
10764
10765 2009-03-18 Michel Dänzer <michel@daenzer.net>
10766
10767 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
10768 checking inode flags for EXT4_EXTENTS_FLAG.
10769
10770 2009-03-18 Robert Millan <rmh@aybabtu.com>
10771
10772 * loader/i386/linux.c: Include `<grub/video.h>' and
10773 `<grub/i386/pc/vbe.h>'..
10774 (grub_linux_setup_video): New function. Loosely based on the EFI one.
10775 (grub_linux32_boot): Attempt to configure video settings with
10776 grub_linux_setup_video().
10777 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
10778 to avoid grub_console_fini() which would step out of graphical mode
10779 unconditionally.
10780
10781 2009-03-14 Robert Millan <rmh@aybabtu.com>
10782
10783 Fix build on powerpc.
10784 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
10785
10786 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
10787
10788 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
10789 background image command.
10790
10791 2009-03-12 Colin D Bennett <colin@gibibit.com>
10792
10793 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
10794 (grub_gfxterm_putchar): Extract pairs of identical calls to
10795 draw_cursor out of conditional blocks.
10796
10797 2009-03-11 Pavel Roskin <proski@gnu.org>
10798
10799 * fs/hfs.c (grub_hfs_strncasecmp): New function.
10800 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
10801
10802 2009-03-11 Robert Millan <rmh@aybabtu.com>
10803
10804 * loader/i386/multiboot_elfxx.c
10805 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
10806
10807 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
10808
10809 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
10810 `kern/handler.c'.
10811
10812 2009-03-11 Robert Millan <rmh@aybabtu.com>
10813
10814 * loader/i386/multiboot.c (code_size): New variable.
10815 (grub_multiboot): Define offsets by adding to `code_size' rather
10816 than subtracting from `grub_multiboot_payload_size'. Provide
10817 4-byte alignment to MBI and others by increasing
10818 `boot_loader_name_length' appropriately.
10819
10820 * loader/i386/multiboot_elfxx.c
10821 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
10822
10823 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
10824
10825 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
10826 `fs/ext2.c'.
10827
10828 2009-03-08 Robert Millan <rmh@aybabtu.com>
10829
10830 Make loader/i386/linux.c usable on i386-pc again.
10831
10832 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
10833 memory to heap.
10834 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
10835 `#error' stanza.
10836
10837 2009-03-07 Bean <bean123ch@gmail.com>
10838
10839 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
10840 allocation.
10841
10842 2009-03-06 Robert Millan <rmh@aybabtu.com>
10843
10844 Fix display issue on terminals with screen size other than 80x25
10845 (e.g. gfxterm with resolution higher than 640x480).
10846
10847 * normal/main.c (grub_normal_init_page): Display title text in a
10848 position relative to the center of the terminal instead of relying
10849 on a hardcoded offset.
10850
10851 2009-03-04 Robert Millan <rmh@aybabtu.com>
10852
10853 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
10854 installed.
10855
10856 * Makefile.in (host_kernel): New variable.
10857 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
10858 scripts instead of just the windows one.
10859 * configure.ac: Initialize and AC_SUBST `host_kernel'.
10860
10861 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
10862
10863 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
10864 `kern/handler.c'.
10865 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10866 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10867 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10869 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10870 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10871
10872 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
10873
10874 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
10875 or if there's no space for the disk label and print the partition number on a
10876 invalid magic.
10877
10878 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
10879
10880 * util/misc.c: Include <time.h>.
10881 (grub_millisleep): New function.
10882
10883 2009-03-04 Bean <bean123ch@gmail.com>
10884
10885 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
10886 another option -mno-red-zone.
10887
10888 * commands/handler.c: Change module description.
10889
10890 * kern/handler.c: Add missing space at the end of description line.
10891
10892 * kern/list.c: Likewise.
10893
10894 2009-03-03 Robert Millan <rmh@aybabtu.com>
10895
10896 Move more components to the relocation area, and fix mbi pointer
10897 handling to use the destination rather than the origin (thanks to
10898 Vladimir Serbinenko for spotting).
10899
10900 * loader/i386/multiboot.c (mbi_dest): New variable.
10901 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
10902 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
10903 relocation area.
10904
10905 2009-03-01 Bean <bean123ch@gmail.com>
10906
10907 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
10908 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
10909 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
10910 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
10911
10912 * loader/i386/efi/linux.c (acpi_guid): New variable.
10913 (acpi_guid): Likewise.
10914 (EBDA_SEG_ADDR): New constant.
10915 (LOW_MEM_ADDR): Likewise.
10916 (FAKE_EBDA_SEG): Likewise.
10917 (fake_bios_data): New function.
10918 (grub_linux_boot): Call fake_bios_data.
10919
10920 2009-03-01 Bean <bean123ch@gmail.com>
10921
10922 * commands/terminal.c: Removed.
10923
10924 * commands/handler.c: New file.
10925
10926 * include/grub/list.h: Likewise.
10927
10928 * include/grub/handler.h: Likewise.
10929
10930 * kern/list.c: Likewise.
10931
10932 * kern/handler.c: Likewise.
10933
10934 * kern/term.h: Include header file <grub/handler.h>.
10935 (grub_term_input): Move next field to the beginning.
10936 (grub_term_output): Likewise.
10937 (grub_term_input_class): New variable.
10938 (grub_term_output_class): Likewise.
10939 (grub_term_register_input): Changed to inline function.
10940 (grub_term_register_output): Likewise.
10941 (grub_term_unregister_input): Likewise.
10942 (grub_term_unregister_output): Likewise.
10943 (grub_term_set_current_input): Likewise.
10944 (grub_term_set_current_output): Likewise.
10945 (grub_term_get_current_input): Likewise.
10946 (grub_term_get_current_output): Likewise.
10947 (grub_term_iterate_input): Removed.
10948 (grub_term_iterate_output): Likewise.
10949
10950 * kern/term.c (grub_term_list_input): Removed.
10951 (grub_term_list_output): Likewise.
10952 (grub_term_input_class): New variable.
10953 (grub_term_output_class): Likewise.
10954 (grub_cur_term_input): Change variable as macro.
10955 (grub_cur_term_output): Likewise.
10956 (grub_term_register_input): Removed.
10957 (grub_term_register_output): Likewise.
10958 (grub_term_unregister_input): Likewise.
10959 (grub_term_unregister_output): Likewise.
10960 (grub_term_set_current_input): Likewise.
10961 (grub_term_set_current_output): Likewise.
10962 (grub_term_iterate_input): Likewise.
10963 (grub_term_iterate_output): Likewise.
10964 (grub_term_get_current_input): Likewise.
10965 (grub_term_get_current_output): Likewise.
10966
10967 * util/grub-editenv.c: Include header file <grub/handler.h>.
10968 (grub_term_get_current_input): Removed.
10969 (grub_term_get_current_output): Likewise.
10970 (grub_term_input_class): New variable.
10971 (grub_term_output_class): Likewise.
10972
10973 * util/grub-fstest.c (grub_term_get_current_input): Removed.
10974 (grub_term_get_current_output): Likewise.
10975 (grub_term_input_class): New variable.
10976 (grub_term_output_class): Likewise.
10977
10978 * util/grub-probe.c (grub_term_get_current_input): Removed.
10979 (grub_term_get_current_output): Likewise.
10980 (grub_term_input_class): New variable.
10981 (grub_term_output_class): Likewise.
10982
10983 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
10984 (grub_term_get_current_output): Likewise.
10985 (grub_term_input_class): New variable.
10986 (grub_term_output_class): Likewise.
10987
10988 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
10989 (terminal_mod_SOURCES): Likewise.
10990 (terminal_mod_CFLAGS): Likewise.
10991 (terminal_mod_LDFLAGS): Likewise.
10992
10993 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
10994 handler.c.
10995 (kernel_img_SOURCES): Add list.c and handler.c.
10996 (kernel_img_HEADERS): Add list.h and handler.h.
10997
10998 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
10999 handler.c.
11000 (kernel_mod_SOURCES): Add list.c and handler.c.
11001 (kernel_mod_HEADERS): Add list.h and handler.h.
11002
11003 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
11004 handler.c.
11005 (kernel_elf_SOURCES): Add list.c and handler.c.
11006 (kernel_elf_HEADERS): Add list.h and handler.h.
11007
11008 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
11009 handler.c.
11010 (kernel_elf_SOURCES): Add list.c and handler.c.
11011 (kernel_elf_HEADERS): Add list.h and handler.h.
11012
11013 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
11014 handler.c.
11015 (kernel_mod_SOURCES): Add list.c and handler.c.
11016 (kernel_mod_HEADERS): Add list.h and handler.h.
11017
11018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
11019 handler.c.
11020 (kernel_elf_SOURCES): Add list.c and handler.c.
11021 (kernel_elf_HEADERS): Add list.h and handler.h.
11022
11023 2009-02-27 Robert Millan <rmh@aybabtu.com>
11024
11025 Factorize elf32 / elf64 code in Multiboot loader. This will
11026 prevent it from getting out of sync again.
11027
11028 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
11029 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
11030 grub_multiboot_load_elf64): Move from here ...
11031 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
11032 grub_multiboot_load_elf): ... to here (new file).
11033
11034 2009-02-27 Robert Millan <rmh@aybabtu.com>
11035
11036 * util/grub.d/10_linux.in: Rename "single-user mode" to
11037 "recovery mode".
11038
11039 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11040
11041 Don't leak in SCSI code.
11042 * disk/scsi.c (grub_scsi_close): free `scsi'.
11043
11044 2009-02-27 Robert Millan <rmh@aybabtu.com>
11045
11046 * loader/i386/pc/multiboot.c: Move from here ...
11047 * loader/i386/multiboot.c: ... to here. Update all users.
11048
11049 2009-02-27 Robert Millan <rmh@aybabtu.com>
11050
11051 Patch from Alexandre Bique <bique.alexandre@gmail.com>
11052 * util/i386/pc/grub-setup.c (setup): Fix directory path.
11053
11054 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
11055
11056 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
11057 b-tree.
11058
11059 2009-02-27 Robert Millan <rmh@aybabtu.com>
11060
11061 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
11062 `0x' qualifier as 0 when base is specified as parameter).
11063
11064 2009-02-24 Bean <bean123ch@gmail.com>
11065
11066 * configure.ac: Check for -mcmodel=large in x86_64 target.
11067
11068 * include/grub/efi/api.h (efi_call_10): New macro.
11069 (efi_wrap_10): New function.
11070
11071 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
11072 (GRUB_PE32_REL_BASED_HIGH): Likewise.
11073 (GRUB_PE32_REL_BASED_LOW): Likewise.
11074 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
11075 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
11076 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
11077 (GRUB_PE32_REL_BASED_SECTION): Likewise.
11078 (GRUB_PE32_REL_BASED_REL): Likewise.
11079 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
11080 (GRUB_PE32_REL_BASED_DIR64): Likewise.
11081 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
11082
11083 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
11084 issue.
11085
11086 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
11087 (efi_wrap_10): New function.
11088
11089 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
11090
11091 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
11092 MB/MBP model (NV chipset).
11093 (devdata_devs): Add devpath_5 to the list.
11094
11095 * load/i386/efi/linux.c (video_base): Remove variable.
11096 (RGB_MASK): New macro.
11097 (RGB_MAGIC): Likewise.
11098 (LINE_MIN): Likewise.
11099 (LINE_MAX): Likewise.
11100 (FBTEST_STEP): Likewise.
11101 (FBTEST_COUNT): Likewise.
11102 (fb_list): New variable.
11103 (grub_find_video_card): Remove function.
11104 (find_framebuf): New function.
11105 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
11106 line length.
11107
11108 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
11109 problem for x86_64.
11110
11111 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
11112
11113 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
11114
11115 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
11116 coding tool name.
11117
11118 2009-02-22 Robert Millan <rmh@aybabtu.com>
11119
11120 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
11121 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
11122 in our relocation, instead of using it directly from heap. Also
11123 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
11124
11125 2009-02-21 Robert Millan <rmh@aybabtu.com>
11126
11127 Implement USB keyboard support (based on patch by Marco Gerards)
11128
11129 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
11130 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
11131 (usb_keyboard_mod_LDFLAGS): New variables.
11132
11133 * term/usb_keyboard.c: New file.
11134
11135 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11136
11137 Corrected wrong declaration
11138
11139 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
11140
11141 2009-02-14 Christian Franke <franke@computer.org>
11142
11143 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
11144 (grub_lspci_iter): Print class code and programming interface byte.
11145
11146 2009-02-14 Christian Franke <franke@computer.org>
11147
11148 * gendistlist.sh: Ignore `.svn' directories.
11149
11150 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
11151
11152 * fs/fat.c: Add 2009 to Copyright line.
11153
11154 2009-02-14 Christian Franke <franke@computer.org>
11155
11156 * commands/hdparm.c: New file. Provides `hdparm' command
11157 which sends ATA commands via grub_disk_ata_pass_through ().
11158
11159 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
11160
11161 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
11162 and <grub/cpu/io.h> to include/grub/ata.h.
11163 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
11164 (GRUB_CDROM_SECTOR_SIZE): Remove.
11165 (GRUB_ATA_*): Move to include/grub/ata.h.
11166 (GRUB_ATAPI_*): Likewise.
11167 (enum grub_ata_commands): Likewise.
11168 (enum grub_ata_timeout_milliseconds): Likewise.
11169 (struct grub_ata_device): Likewise.
11170 (grub_ata_regset): Likewise.
11171 (grub_ata_regget): Likewise.
11172 (grub_ata_regset2): Likewise.
11173 (grub_ata_regget2): Likewise.
11174 (grub_ata_check_ready): Likewise.
11175 (grub_ata_wait_not_busy): Remove static, exported in
11176 include/grub/ata.h.
11177 (grub_ata_wait_drq): Likewise.
11178 (grub_ata_pio_read): Likewise.
11179
11180 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
11181 function for hdparm.mod.
11182
11183 * include/grub/ata.h: New file, contains declarations from
11184 disk/ata.c.
11185 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
11186
11187 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
11188 (grub_disk_ata_pass_through): New exported variable.
11189
11190 * kern/disk.c (grub_disk_ata_pass_through): New variable.
11191
11192 2009-02-13 Colin D Bennett <colin@gibibit.com>
11193
11194 Support multiple fallback entries, and provide an API to support
11195 executing default+fallback menu entries. Renamed the `terminal' menu
11196 viewer to `text'.
11197
11198 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
11199 variable declaration.
11200 (grub_menu_execute_callback): New structure declaration.
11201 (grub_menu_execute_callback_t): New typedef.
11202 (grub_menu_execute_with_fallback): New function declaration.
11203 (grub_menu_get_entry): Likewise.
11204 (grub_menu_get_timeout): Likewise.
11205 (grub_menu_set_timeout): Likewise.
11206
11207 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
11208
11209 * normal/menu.c (grub_wait_after_message): Moved to
11210 `normal/menu_text.c'.
11211 (draw_border): Likewise.
11212 (print_message): Likewise.
11213 (print_entry): Likewise.
11214 (print_entries): Likewise.
11215 (grub_menu_init_page): Likewise.
11216 (get_entry_number): Likewise.
11217 (print_timeout): Likewise.
11218 (run_menu): Likewise.
11219 (grub_menu_execute_entry): Likewise.
11220 (show_text_menu): Likewise.
11221 (get_and_remove_first_entry_number): New function.
11222 (grub_menu_execute_with_fallback): Likewise.
11223 (get_entry): Renamed to ...
11224 (grub_menu_get_entry): .. this and made it global.
11225 (get_timeout): Renamed to ...
11226 (grub_menu_get_timeout): ... this and made it global.
11227 (set_timeout): Renamed to ...
11228 (grub_menu_set_timeout): ... this and made it global.
11229 (grub_normal_terminal_menu_viewer): Renamed to ...
11230 (grub_normal_text_menu_viewer): ... this.
11231
11232 * normal/menu_text.c: New file. Extracted text-menu-specific code
11233 from normal/menu.c.
11234
11235 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
11236 (normal_mod_SOURCES): Likewise.
11237
11238 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11239 (normal_mod_SOURCES): Likewise.
11240
11241 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11242 (normal_mod_SOURCES): Likewise.
11243
11244 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
11245 (normal_mod_SOURCES): Likewise.
11246
11247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11248 (normal_mod_SOURCES): Likewise.
11249
11250 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11251 (normal_mod_SOURCES): Likewise.
11252
11253 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11254 (normal_mod_SOURCES): Likewise.
11255
11256 2009-02-11 Robert Millan <rmh@aybabtu.com>
11257
11258 * util/grub.d/00_header.in: Update old reference to `font' command.
11259
11260 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
11261
11262 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
11263
11264 Based on patch from Javier Martín.
11265
11266 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
11267
11268 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
11269 to avoid false positives with FAT.
11270 (grub_fstest_SOURCES): Likewise.
11271 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11272 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11274 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11275 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11276 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11277
11278 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
11279
11280 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
11281 bpb.version_specific.fat12_or_fat16.fstype and
11282 bpb.version_specific.fat32.fstype.
11283
11284 2009-02-08 Robert Millan <rmh@aybabtu.com>
11285
11286 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
11287
11288 2009-02-08 Robert Millan <rmh@aybabtu.com>
11289
11290 * Makefile.in (host_os, host_cpu): New variables.
11291 (target_os): Remove. Update all users.
11292
11293 2009-02-08 Marco Gerards <marco@gnu.org>
11294
11295 * Makefile.in (enable_grub_emu_usb): New variable.
11296 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
11297 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
11298 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
11299 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
11300 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
11301 `usbtest.mod' and `usbms.mod'.
11302 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
11303 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
11304 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
11305 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
11306 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
11307 variables.
11308
11309 * disk/usbms.c: New file.
11310
11311 * include/grub/usb.h: Likewise.
11312
11313 * include/grub/usbtrans.h: Likewise.
11314
11315 * include/grub/usbdesc.h: Likewise.
11316
11317 * bus/usb/usbtrans.c: Likewise.
11318
11319 * bus/usb/ohci.c: Likewise.
11320
11321 * bus/usb/uhci.c: Likewise.
11322
11323 * bus/usb/usbhub.c: Likewise.
11324
11325 * bus/usb/usb.c: Likewise.
11326
11327 * commands/usbtest.c: Likewise.
11328
11329 * util/usb.c: Likewise.
11330
11331 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
11332
11333 * configure.ac: Test for libusb presence.
11334
11335 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
11336
11337 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
11338
11339 * kern/mm.c: Add more comments.
11340
11341 2009-02-08 Robert Millan <rmh@aybabtu.com>
11342
11343 Patch from Javier Martín.
11344 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
11345 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
11346
11347 2009-02-08 Robert Millan <rmh@aybabtu.com>
11348
11349 * fs/cpio.c: Split tar functionality to ...
11350 * fs/tar.c: ... here (new file). Update all users.
11351
11352 2009-02-07 Robert Millan <rmh@aybabtu.com>
11353
11354 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
11355 backward-incompatible features.
11356
11357 Based on patch from Javier Martín, with some adjustments.
11358
11359 2009-02-07 Michael Scherer <misc@mandriva.org>
11360
11361 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
11362
11363 2009-02-07 Robert Millan <rmh@aybabtu.com>
11364
11365 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
11366 position of `disk/lvm.c' to ensure grub_init_all() always picks it
11367 after the RAID stuff.
11368
11369 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
11370
11371 Fixes problem when running vbetest command as reported by
11372 Vladimir Serbinenko <phcoder@gmail.com>.
11373
11374 * (grub_vbe_set_video_mode): Fixed problem with text modes.
11375
11376 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
11377
11378 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
11379 /dev/md/NpN style mdraid devices.
11380
11381 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
11382
11383 * util/unifont2pff.rb: Remove.
11384
11385 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
11386
11387 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
11388 `#'.
11389
11390 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
11391
11392 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
11393 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11394 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11395 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11397 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11398 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11399
11400 2009-02-02 Christian Franke <franke@computer.org>
11401
11402 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
11403
11404 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
11405
11406 * INSTALL: Note that we now require at least autoconf 2.59 and
11407 that LZO is optional.
11408
11409 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
11410
11411 Base on patch on bug #24154 created by Tomas Tintera
11412 <trosos@seznam.cz>.
11413
11414 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
11415
11416 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
11417
11418 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
11419 <bero@arklinux.org>.
11420
11421 * normal/parser.y (script_init): Add missing semicolon.
11422
11423 2009-01-31 Colin D Bennett <colin@gibibit.com>
11424
11425 * normal/main.c: Add include to grub/menu_viewer.h.
11426 (free_menu_entry_classes): Added.
11427 (grub_normal_menu_addentry): Added class property handling.
11428 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
11429 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
11430
11431 * normal/menu_viewer.c: New file.
11432
11433 * normal/menu.c (run_menu_entry): Renamed to ...
11434 (grub_menu_execute_entry): ... this and made it as global.
11435 (grub_menu_run): Renamed to ...
11436 (show_text_menu): ... this and made it local.
11437 (show_text_menu): Adapt to new function names.
11438 (grub_normal_terminal_menu_viewer): New global variable.
11439
11440 * include/grub/menu.h: New file.
11441
11442 * include/grub/menu_viewer.h: New file.
11443
11444 * include/grub/normal.h: Added include to grub/menu.h.
11445 (grub_menu_entry): Moved to include/grub/menu.h.
11446 (grub_menu_entry_t): Likewise.
11447 (grub_menu): Likewise.
11448 (grub_menu_t): Likewise.
11449 (grub_normal_terminal_menu_viewer): Added.
11450 (grub_menu_execute_entry): Likewise.
11451 (grub_menu_run): Removed.
11452
11453 * DISTLIST: Added include/grub/menu.h.
11454 Added include/grub/menu_viewer.h.
11455 Added normal/menu_viewer.c.
11456
11457 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
11458
11459 * normal/execute.c (grub_script_execute_menuentry): Changed to use
11460 arglist for menutitle arguments.
11461
11462 * normal/main.c (grub_normal_menu_addentry): Likewise.
11463
11464 * normal/parser.y (menuentry): Likewise.
11465
11466 * normal/script.c (grub_script_create_cmdmenu): Likewise.
11467
11468 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
11469 (grub_script_create_cmdmenu): Likewise.
11470
11471 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
11472
11473 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
11474 changes.
11475
11476 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
11477
11478 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
11479
11480 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
11481
11482 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
11483
11484 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
11485
11486 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
11487
11488 2009-01-30 Christian Franke <franke@computer.org>
11489
11490 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
11491 in option help text.
11492
11493 2009-01-27 Pavel Roskin <proski@gnu.org>
11494
11495 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
11496
11497 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
11498
11499 * commands/lsmmap.c: Add include to grub/machine/memory.h.
11500
11501 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
11502
11503 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
11504 unregister function.
11505
11506 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
11507
11508 * disk/scsi.c (grub_scsi_read): Fix sign problem.
11509
11510 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
11511
11512 * util/grub-mkfont.c (usage): Fix typo.
11513
11514 * util/elf/grub-mkimage.c (load_modules): Fix warning.
11515
11516 2009-01-26 Daniel Mierswa <impulze@impulze.org>
11517
11518 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
11519
11520 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
11521
11522 * kern/misc.c (grub_strcasecmp): New function.
11523 (grub_strcasecmp): Use grub_size_t instead of int for length.
11524 Fix return value.
11525 * include/grub/misc.h: Update function prototypes.
11526
11527 2009-01-26 Robert Millan <rmh@aybabtu.com>
11528
11529 * configure.ac: Fix cross-compilation check.
11530
11531 2009-01-22 Christian Franke <franke@computer.org>
11532
11533 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
11534 (precision) digit string. Allow `.format2' without `format1' (width).
11535 Limit input chars for `%s' output to `format2' if specified. This is
11536 compatible with standard printf ().
11537
11538 2009-01-22 Christian Franke <franke@computer.org>
11539
11540 * disk/ata.c (grub_ata_wait_status): Replace by ...
11541 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
11542 other status bits may be invalid while BSY is asserted.
11543 (grub_ata_check_ready): New function.
11544 (grub_ata_cmd): Removed.
11545 (grub_ata_wait_drq): New function.
11546 (grub_ata_strncpy): Remove inline.
11547 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
11548 and error check now done by grub_ata_wait_drq ().
11549 (grub_ata_pio_write): Likewise.
11550 (grub_atapi_identify): Set DEV before check for !BSY. Use
11551 grub_ata_wait_drq () to wait for data.
11552 (grub_ata_device_initialize): Add status register check to
11553 detect missing SATA slave devices. Add debug messages.
11554 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
11555 (grub_atapi_packet): Set DEV before check for !BSY. Replace
11556 transfer loop by grub_ata_pio_write ().
11557 (grub_ata_identify): Set DEV before check for !BSY. Use
11558 grub_ata_wait_drq () to wait for data.
11559 (grub_ata_setaddress): Set DEV before check for !BSY.
11560 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
11561 read/write in one loop. Fix invalid command on write. Fix incomplete
11562 command on (size % batch) == 0. Add missing error check after write of
11563 last block. Add debug messages.
11564 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
11565
11566 2009-01-19 Christian Franke <franke@computer.org>
11567
11568 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
11569 (GRUB_ATAPI_IREASON_*): Likewise.
11570 (grub_ata_pio_write): Fix timeout error return.
11571 (grub_atapi_identify): Add grub_ata_wait () after cmd.
11572 (grub_atapi_wait_drq): New function.
11573 (grub_atapi_packet): New parameter `size'.
11574 Use grub_atapi_wait_drq () and direct write instead of
11575 grub_ata_pio_write ().
11576 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
11577 reads the number of bytes requested by the device for each DRQ
11578 assertion.
11579 (grub_atapi_write): Remove old implementation, return not
11580 implemented instead.
11581
11582 2009-01-19 Christian Franke <franke@computer.org>
11583
11584 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
11585 of 512 to calculate data size.
11586 (grub_scsi_read12): Likewise.
11587 (grub_scsi_write10): Likewise.
11588 (grub_scsi_write12): Likewise.
11589 (grub_scsi_read): Adjust size according to blocksize.
11590 Add checks for invalid blocksize and unaligned transfer.
11591
11592 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
11593
11594 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
11595
11596 * term/gfxterm.c (write_char): Fix background rendering for wide
11597 width glyphs.
11598
11599 2009-01-19 Robert Millan <rmh@aybabtu.com>
11600
11601 * config.guess: Update to latest version from config git.
11602 * config.sub: Likewise.
11603
11604 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
11605
11606 * Makefile.in: Change font compilation to use new grub-mkfont instead
11607 of java version.
11608
11609 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
11610 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
11611 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
11612 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
11613 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
11614 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
11615 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
11616 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
11617 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
11618
11619 2009-01-16 Christian Franke <franke@computer.org>
11620
11621 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
11622 (enum grub_ata_timeout_milliseconds): New enum.
11623 (grub_ata_wait_status): Add parameter milliseconds.
11624 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
11625 recovery from timed-out commands.
11626 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
11627 return grub_errno instead of REG_ERROR.
11628 (grub_ata_pio_write): Add parameter milliseconds.
11629 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
11630 Pass milliseconds to grub_ata_wait_status () and
11631 grub_ata_pio_read ().
11632 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
11633 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
11634 grub_ata_wait_status (). Fix IDENTIFY timeout check.
11635 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
11636 It is not suitable for device detection, because DEV bit is ignored,
11637 the command may run too long, and not all devices set the signature
11638 properly.
11639 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
11640 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
11641 Fix device selection, DEV bit must be set first to address the registers
11642 of the correct device.
11643 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
11644 grub_ata_pio_read/write ().
11645 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
11646 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
11647
11648 2009-01-13 Carles Pina i Estany <carles@pina.cat>
11649
11650 * util/grub-editenv.c (main): Use fseeko(), not fseek().
11651
11652 2009-01-13 Bean <bean123ch@gmail.com>
11653
11654 * util/grub-mkfont.c (write_font): forget to remove some debug code.
11655
11656 2009-01-13 Bean <bean123ch@gmail.com>
11657
11658 * Makefile.in: (enable_grub_mkfont): New variable.
11659 (freetype_cflags): Likewise.
11660 (freetype_libs): Likewise.
11661
11662 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
11663 (grub_mkfont_SOURCES): New variable.
11664 (grub_mkfont_CFLAGS): Likewise.
11665 (grub_mkfont_LDFLAGS): Likewise.
11666
11667 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
11668 library if `--enable-grub-mkfont' is requested.
11669 (enable_grub_mkfont): New variable.
11670 (freetype_cflags): Likewise.
11671 (freetype_libs): Likewise.
11672
11673 * util/grub-mkfont.c: New file.
11674
11675 2009-01-12 Christian Franke <franke@computer.org>
11676
11677 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
11678 mode check. Fix setting of compat_use[].
11679
11680 2009-01-10 Robert Millan <rmh@aybabtu.com>
11681
11682 Update a few copyright years which we forgot to do in 2008 (only for
11683 files whose changes made in 2008 were copyright-significant)
11684
11685 * Makefile.in: Add 2008 to Copyright line.
11686 * disk/ieee1275/ofdisk.c: Likewise.
11687 * disk/efi/efidisk.c: Likewise.
11688 * kern/dl.c: Likewise.
11689 * kern/sparc64/ieee1275/init.c: Likewise.
11690 * kern/mm.c: Likewise.
11691 * kern/efi/mm.c: Likewise.
11692 * boot/i386/pc/boot.S: Likewise.
11693 * genfslist.sh: Likewise.
11694 * fs/iso9660.c: Likewise.
11695 * fs/hfs.c: Likewise.
11696 * fs/jfs.c: Likewise.
11697 * fs/minix.c: Likewise.
11698 * fs/ufs.c: Likewise.
11699 * gensymlist.sh.in: Likewise.
11700 * genkernsyms.sh.in: Likewise.
11701 * include/grub/misc.h: Likewise.
11702 * include/grub/types.h: Likewise.
11703 * include/grub/symbol.h: Likewise.
11704 * include/grub/elf.h: Likewise.
11705 * include/grub/kernel.h: Likewise.
11706 * include/grub/disk.h: Likewise.
11707 * include/grub/dl.h: Likewise.
11708 * include/grub/i386/linux.h: Likewise.
11709 * include/grub/i386/pc/biosdisk.h: Likewise.
11710 * include/grub/efi/api.h: Likewise.
11711 * include/grub/efi/pe32.h: Likewise.
11712 * include/grub/util/misc.h: Likewise.
11713 * normal/execute.c: Likewise.
11714 * normal/arg.c: Likewise.
11715 * normal/completion.c: Likewise.
11716 * normal/lexer.c: Likewise.
11717 * normal/parser.y: Likewise.
11718 * normal/misc.c: Likewise.
11719 * commands/i386/pc/vbeinfo.c: Likewise.
11720 * commands/hexdump.c: Likewise.
11721 * commands/terminal.c: Likewise.
11722 * commands/ls.c: Likewise.
11723 * commands/help.c: Likewise.
11724 * partmap/pc.c: Likewise.
11725 * loader/efi/chainloader.c: Likewise.
11726 * loader/multiboot_loader.c: Likewise.
11727 * loader/i386/pc/multiboot2.c: Likewise.
11728 * term/efi/console.c: Likewise.
11729 * term/i386/pc/serial.c: Likewise.
11730 * util/lvm.c: Likewise.
11731 * util/console.c: Likewise.
11732 * util/i386/efi/grub-mkimage.c: Likewise.
11733 * util/raid.c: Likewise.
11734
11735 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
11736
11737 * commands/videotest.c: Removed include to grub/machine/memory.h.
11738
11739 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
11740 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
11741 (video_mod_SOURCES): Removed.
11742 (video_mod_CFLAGS): Likewise.
11743 (video_mod_LDFLAGS): Likewise.
11744 (gfxterm_mod_SOURCES): Likewise.
11745 (gfxterm_mod_CFLAGS): Likewise.
11746 (gfxterm_mod_LDFLAGS): Likewise.
11747 (videotest_mod_SOURCES): Likewise.
11748 (videotest_mod_CFLAGS): Likewise.
11749 (videotest_mod_LDFLAGS): Likewise.
11750 (bitmap_mod_SOURCES): Likewise.
11751 (bitmap_mod_CFLAGS): Likewise.
11752 (bitmap_mod_LDFLAGS): Likewise.
11753 (tga_mod_SOURCES): Likewise.
11754 (tga_mod_CFLAGS): Likewise.
11755 (tga_mod_LDFLAGS): Likewise.
11756 (jpeg_mod_SOURCES): Likewise.
11757 (jpeg_mod_CFLAGS): Likewise.
11758 (jpeg_mod_LDFLAGS): Likewise.
11759 (png_mod_SOURCES): Likewise.
11760 (png_mod_CFLAGS): Likewise.
11761 (png_mod_LDFLAGS): Likewise.
11762
11763 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
11764 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
11765 (video_mod_SOURCES): Added.
11766 (video_mod_CFLAGS): Likewise.
11767 (video_mod_LDFLAGS): Likewise.
11768 (videotest_mod_SOURCES): Likewise.
11769 (videotest_mod_CFLAGS): Likewise.
11770 (videotest_mod_LDFLAGS): Likewise.
11771 (bitmap_mod_SOURCES): Likewise.
11772 (bitmap_mod_CFLAGS): Likewise.
11773 (bitmap_mod_LDFLAGS): Likewise.
11774 (tga_mod_SOURCES): Likewise.
11775 (tga_mod_CFLAGS): Likewise.
11776 (tga_mod_LDFLAGS): Likewise.
11777 (jpeg_mod_SOURCES): Likewise.
11778 (jpeg_mod_CFLAGS): Likewise.
11779 (jpeg_mod_LDFLAGS): Likewise.
11780 (png_mod_SOURCES): Likewise.
11781 (png_mod_CFLAGS): Likewise.
11782 (png_mod_LDFLAGS): Likewise.
11783 (gfxterm_mod_SOURCES): Likewise.
11784 (gfxterm_mod_CFLAGS): Likewise.
11785 (gfxterm_mod_LDFLAGS): Likewise.
11786
11787 * term/gfxterm.c: Removed include to grub/machine/memory.h,
11788 grub/machine/console.h.
11789
11790 2009-01-04 Jerone Young <jerone@gmail.com>
11791
11792 Make on screen instructions clearer
11793
11794 Based on patch created by Jidanni <jidanni@jidanni.org>
11795
11796 * normal/menu.c: print clearer instructions on the screen
11797
11798 2009-01-02 Colin D Bennett <colin@gibibit.com>
11799
11800 New font engine.
11801
11802 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
11803 build system and fixed gfxterm.c to work with different sized fonts.
11804
11805 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
11806
11807 * configure: Re-generated.
11808
11809 * DISTLIST: Removed font/manager.c.
11810 Added font/font.c.
11811 Added font/font_cmd.c.
11812
11813 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
11814 compilation.
11815
11816 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
11817
11818 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
11819
11820 * kern/term.c: Changed users of grub_utf8_to_ucs4.
11821
11822 * normal/menu.c: Likewise.
11823
11824 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
11825 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
11826
11827 * include/grub/font.h: Replaced with new file.
11828
11829 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
11830 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
11831 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
11832 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
11833 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
11834 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
11835 fg_red, fg_green, fg_blue, fg_alpha.
11836 (grub_video_adapter): Removed blit_glyph.
11837 (grub_video_blit_glyph): Removed.
11838
11839 * font/manager.c: Removed file.
11840
11841 * font/font.c: New file.
11842
11843 * font/font_cmd.c: Likewise.
11844
11845 * video/video.c (grub_video_blit_glyph): Removed.
11846
11847 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
11848 (grub_video_vbe_map_rgba): Likewise.
11849 (grub_video_vbe_unmap_color_int): Likewise.
11850 (grub_video_vbe_blit_glyph): Removed.
11851 (grub_video_vbe_adapter): Removed blit_glyph.
11852
11853 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
11854 (get_pixel): Likewise.
11855 (set_pixel): Likewise.
11856
11857 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
11858
11859 * term/gfxterm.c: Adapted to new font engine.
11860
11861 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
11862
11863 * term/i386/pc/vga.c: Likewise.
11864
11865 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
11866
11867 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
11868
11869 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
11870
11871 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
11872
11873 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
11874
11875 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
11876
11877 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
11878
11879 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
11880
11881 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
11882
11883 * util/grub.d/00_header.in: Changed to use new loadfont command.
11884
11885 * util/grub-mkconfig_lib.in: Changed font extension.
11886
11887 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
11888
11889 * util/getroot.c (grub_util_get_grub_dev): Add support for
11890 /dev/md/dNNpNN style partitionable mdraid devices.
11891
11892 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
11893
11894 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
11895 at a time limit of the PXE TFTP API correctly.
11896 (grub_pxefs_close): Likewise.
11897
11898 2008-11-29 Robert Millan <rmh@aybabtu.com>
11899
11900 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
11901 grub_ata_device_initialize() calls.
11902
11903 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
11904
11905 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
11906 iteration failed.
11907 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
11908
11909 2008-11-28 Robert Millan <rmh@aybabtu.com>
11910
11911 Fix build on powerpc-ieee1275. Based on patch created by
11912 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
11913 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
11914 `kern/ieee1275/mmap.c'.
11915 * include/grub/powerpc/ieee1275/memory.h: New file.
11916
11917 Provide grub-install on coreboot.
11918 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
11919 (grub_install_SOURCES): New variable.
11920 * util/i386/pc/grub-install.in: Add a few condition checks to make it
11921 usable on coreboot.
11922
11923 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
11924
11925 * util/grub-fstest.c (grub_term_get_current_input): Change return type
11926 to `grub_term_input_t'.
11927 (grub_term_get_current_output): Change return type to
11928 `grub_term_output_t'.
11929
11930 2008-11-22 Robert Millan <rmh@aybabtu.com>
11931
11932 Fix breakage on coreboot due to declaration mismatch.
11933 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
11934 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
11935 grub_vga_text_cls().
11936
11937 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
11938 comments. Avoid copying one more byte than necessary (just in case).
11939
11940 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
11941 to 0x200000 (avoids trouble with some OFW implementations, and matches
11942 with the one in Yaboot).
11943 Reported by Manoel Abranches
11944
11945 2008-11-20 Robert Millan <rmh@aybabtu.com>
11946
11947 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
11948 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
11949
11950 * util/grub-mkconfig_lib.in (grub_warn): New function.
11951 (convert_system_path_to_grub_path): Use grub_warn() when issuing
11952 warnings, to obtain consistent formatting.
11953 * util/grub.d/00_header.in: Likewise.
11954 * util/update-grub_lib.in: Likewise.
11955
11956 * loader/i386/linux.c (allocate_pages): Fix a warning.
11957 Move comment text to `#error' stanza.
11958
11959 Harmonize ieee1275's grub_available_iterate() with the generic
11960 grub_machine_mmap_iterate() interface (fixes a recently-introduced
11961 build problem on i386-ieee1275):
11962 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
11963 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
11964 parameter `type'. Update all users of this function.
11965 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11966 `kern/ieee1275/mmap.c'.
11967 * kern/ieee1275/init.c
11968 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
11969 with ...
11970 (grub_machine_mmap_iterate): ... this.
11971 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
11972 return type to `grub_err_t'. Update all implementations of this
11973 function prototype.
11974 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
11975 Likewise.
11976
11977 Add `lsmmap' command (lists firmware-provided memory map):
11978 * commands/lsmmap.c: New file.
11979 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
11980 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
11981 variables.
11982 * conf/powerpc-ieee1275.rmk: Likewise.
11983 * conf/i386-coreboot.rmk: Likewise.
11984 * conf/i386-ieee1275.rmk: Likewise.
11985
11986 2008-11-19 Robert Millan <rmh@aybabtu.com>
11987
11988 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
11989 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
11990 constraints to initrd allocation (based on code from
11991 loader/i386/pc/linux.c). Without them, initrd was allocated too high
11992 for Linux to find it.
11993
11994 2008-11-14 Robert Millan <rmh@aybabtu.com>
11995
11996 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
11997 order to cope with duplicate slashes.
11998
11999 2008-11-14 Robert Millan <rmh@aybabtu.com>
12000
12001 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
12002 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
12003 don't want to mess with lower memory, because it is used in the Linux
12004 loader.
12005
12006 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
12007 an appropriate place in lower memory, between 0x10000 and 0x90000,
12008 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
12009 is in our heap (probably as a result of it being corrupted during
12010 decompression). Add #error instance with comment to explain why this
12011 loader isn't currently usable on PC/BIOS.
12012
12013 2008-11-14 Robert Millan <rmh@aybabtu.com>
12014
12015 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
12016 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
12017
12018 2008-11-12 Robert Millan <rmh@aybabtu.com>
12019
12020 Make loader/i386/linux.c buildable on i386-pc (although disabled).
12021
12022 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
12023 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
12024 from here ...
12025 * include/grub/i386/pc/memory.h: ... to here.
12026
12027 2008-11-12 Robert Millan <rmh@aybabtu.com>
12028
12029 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
12030 split).
12031
12032 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
12033 (grub_console_cur_color, grub_console_real_putchar)
12034 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
12035 (grub_console_setcolorstate, grub_console_setcolor)
12036 (grub_console_getcolor): Move from here ...
12037 * include/grub/i386/vga_common.h: ... to here (new file).
12038
12039 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
12040 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
12041 `<grub/i386/io.h>'.
12042 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
12043 `<grub/i386/vga_common.h>'.
12044
12045 2008-11-12 Robert Millan <rmh@aybabtu.com>
12046
12047 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
12048 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
12049 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
12050 variables.
12051 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
12052 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
12053
12054 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
12055 grub_console_init() with call to grub_vga_text_init().
12056 (grub_machine_fini): Replace call to
12057 grub_console_fini() with call to grub_vga_text_fini() and
12058 grub_at_keyboard_fini().
12059
12060 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
12061 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
12062 (grub_console_setcolorstate, grub_console_setcolor)
12063 (grub_console_getcolor): New function prototypes.
12064
12065 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
12066 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
12067 (grub_vga_text_setcursor): Static-ize.
12068 (grub_vga_text_term): New structure.
12069 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
12070
12071 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
12072 (grub_console_cur_color, grub_console_standard_color)
12073 (grub_console_normal_color, grub_console_highlight_color)
12074 (map_char, grub_console_putchar, grub_console_getcharwidth)
12075 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
12076 (grub_console_getcolor): Move from here ...
12077 * term/i386/vga_common.c: ... to here (same function names).
12078
12079 2008-11-12 Robert Millan <rmh@aybabtu.com>
12080
12081 Use newly-added Multiboot support in coreboot.
12082
12083 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
12084 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
12085
12086 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
12087 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
12088 (codestart): Store the MBI in `startup_multiboot_info' when we're
12089 being loaded using Multiboot.
12090
12091 * kern/i386/coreboot/init.c (grub_machine_init): Move
12092 grub_at_keyboard_init() call to beginning of function (useful for
12093 debugging). Call grub_machine_mmap_init() before attempting to use
12094 grub_machine_mmap_iterate().
12095 (grub_lower_mem, grub_upper_mem): Move from here ...
12096 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
12097 here (new file).
12098
12099 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
12100 function prototype.
12101
12102 2008-11-12 Robert Millan <rmh@aybabtu.com>
12103
12104 Fix a regression introduced by the at_keyboard.mod split. Because
12105 some terminals are default on some platforms and non-default on
12106 others, the first terminal being registered determines which is
12107 going to be default.
12108
12109 * kern/term.c (grub_term_register_input): If this is the first
12110 terminal being registered, set it as the current one.
12111 (grub_term_register_output): Likewise.
12112
12113 * term/efi/console.c (grub_console_init): Do not call
12114 grub_term_set_current_output() or grub_term_set_current_input().
12115 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
12116 * term/i386/pc/console.c (grub_console_init): Likewise.
12117 (grub_console_fini): Do not call grub_term_set_current_input()
12118 (but leave grub_term_set_current_output() to restore text mode).
12119
12120 2008-11-10 Robert Millan <rmh@aybabtu.com>
12121
12122 * util/grub.d/00_header.in: Add backward compatibility check for
12123 versions of terminal.mod that don't understand `terminal_input' or
12124 `terminal_output'.
12125
12126 2008-11-09 Robert Millan <rmh@aybabtu.com>
12127
12128 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
12129 `terminal_input' / `terminal_output', not `terminal'.
12130
12131 2008-11-08 Robert Millan <rmh@aybabtu.com>
12132
12133 * Makefile.in (include_DATA): Fix srcdir=. assumption.
12134 (DISTCLEANFILES): Add `build_env.mk'.
12135
12136 2008-11-08 Robert Millan <rmh@aybabtu.com>
12137
12138 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
12139 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
12140 members. Update all users.
12141 * util/console.c (grub_ncurses_term): Split in ...
12142 (grub_ncurses_term_input): ... this, and ...
12143 (grub_ncurses_term_output): ... this. Update all users.
12144 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
12145
12146 2008-11-08 Robert Millan <rmh@aybabtu.com>
12147
12148 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
12149 (PKGDATA): Add $(pkgdata_SRCDIR).
12150 (pkglib_BUILDDIR): New variable.
12151 (pkgdata_SRCDIR): New variable.
12152 (build_env.mk): New target.
12153 (include_DATA): New variable.
12154 (install-local): Install $(include_DATA) files in $(includedir).
12155
12156 2008-11-07 Pavel Roskin <proski@gnu.org>
12157
12158 * gendistlist.sh: Use C locale for sorting to ensure consistent
12159 output on all systems.
12160
12161 * util/grub.d/00_header.in: Remove incorrect space before
12162 "serial".
12163
12164 2008-11-07 Robert Millan <rmh@aybabtu.com>
12165
12166 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
12167 per specification.
12168 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
12169 * loader/multiboot_loader.c (find_multi_boot2_header): New function
12170 (based on find_multi_boot1_header).
12171 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
12172 using find_multi_boot2_header(), and abort if neither Multiboot or
12173 Multiboot headers were found.
12174
12175 2008-11-07 Robert Millan <rmh@aybabtu.com>
12176
12177 Modularize at_keyboard.mod:
12178
12179 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
12180 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
12181 (at_keyboard_mod_LDFLAGS): New variables.
12182
12183 Actual terminal split:
12184
12185 * include/grub/term.h (struct grub_term): Split in ...
12186 (struct grub_term_input): ... this, and ...
12187 (struct grub_term_output): ... this. Update all users.
12188 (grub_term_set_current): Split in ...
12189 (grub_term_set_current_input): ... this, and ...
12190 (grub_term_set_current_output): ... this.
12191 (grub_term_get_current): Split in ...
12192 (grub_term_get_current_input): ... this, and ...
12193 (grub_term_get_current_output): ... this.
12194 (grub_term_register): Split in ...
12195 (grub_term_register_input): ... this, and ...
12196 (grub_term_register_output): ... this.
12197 (grub_term_unregister): Split in ...
12198 (grub_term_unregister_input): ... this, and ...
12199 (grub_term_unregister_output): ... this.
12200 (grub_term_iterate): Split in ...
12201 (grub_term_iterate_input): ... this, and ...
12202 (grub_term_iterate_output): ... this.
12203
12204 * kern/term.c (grub_term_list): Split in ...
12205 (grub_term_list_input): ... this, and ...
12206 (grub_term_list_output): ... this. Update all users.
12207 (grub_cur_term): Split in ...
12208 (grub_cur_term_input): ... this, and ...
12209 (grub_cur_term_output): ... this. Update all users.
12210 (grub_term_set_current): Split in ...
12211 (grub_term_set_current_input): ... this, and ...
12212 (grub_term_set_current_output): ... this.
12213 (grub_term_get_current): Split in ...
12214 (grub_term_get_current_input): ... this, and ...
12215 (grub_term_get_current_output): ... this.
12216 (grub_term_register): Split in ...
12217 (grub_term_register_input): ... this, and ...
12218 (grub_term_register_output): ... this.
12219 (grub_term_unregister): Split in ...
12220 (grub_term_unregister_input): ... this, and ...
12221 (grub_term_unregister_output): ... this.
12222 (grub_term_iterate): Split in ...
12223 (grub_term_iterate_input): ... this, and ...
12224 (grub_term_iterate_output): ... this.
12225
12226 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
12227 a check for input and one for output (and only attempt to get keys
12228 from user when input works).
12229
12230 * util/grub-probe.c (grub_term_get_current): Split in ...
12231 (grub_term_get_current_input): ... this, and ...
12232 (grub_term_get_current_output): ... this.
12233 * util/grub-fstest.c: Likewise.
12234 * util/i386/pc/grub-setup.c: Likewise.
12235 * util/grub-editenv.c: Likewise.
12236
12237 Portability adjustments:
12238
12239 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
12240 `term/i386/pc/at_keyboard.c'.
12241 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
12242 grub_keyboard_controller_init() (now handled by terminal .init).
12243 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
12244 grub_at_keyboard_init().
12245 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
12246 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
12247 at_keyboard.mod via input terminal interface).
12248 * include/grub/i386/coreboot/console.h: Convert into a stub for
12249 `<grub/i386/pc/console.h>'.
12250
12251 Migrate full terminals to new API:
12252
12253 * term/efi/console.c (grub_console_term): Split into ...
12254 (grub_console_term_input): ... this, and ...
12255 (grub_console_term_output): ... this. Update all users.
12256 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
12257 (grub_ofconsole_init): Split into ...
12258 (grub_ofconsole_init_input): ... this, and ...
12259 (grub_ofconsole_init_output): ... this.
12260 (grub_ofconsole_term): Split into ...
12261 (grub_ofconsole_term_input): ... this, and ...
12262 (grub_ofconsole_term_output): ... this. Update all users.
12263 * term/i386/pc/serial.c (grub_serial_term): Split into ...
12264 (grub_serial_term_input): ... this, and ...
12265 (grub_serial_term_output): ... this. Update all users.
12266 * term/i386/pc/console.c (grub_console_term): Split into ...
12267 (grub_console_term_input): ... this, and ...
12268 (grub_console_term_output): ... this. Update all users.
12269 (grub_console_term_input): Only enable it on PC/BIOS platform.
12270 (grub_console_init): Remove grub_keyboard_controller_init() call.
12271
12272 Migrate input terminals to new API:
12273
12274 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
12275 `i386' and `i386/pc' to enable build on x86_64 (this driver is
12276 i386-specific anyway).
12277 (grub_console_checkkey): Rename to ...
12278 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
12279 users.
12280 (grub_keyboard_controller_orig): New variable.
12281 (grub_console_getkey): Rename to ...
12282 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
12283 users.
12284 (grub_keyboard_controller_init): Static-ize. Save original
12285 controller value so that it can be restored ...
12286 (grub_keyboard_controller_fini): ... here (new function).
12287 (grub_at_keyboard_term): New structure.
12288 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
12289 functions.
12290
12291 Migrate output terminals to new API:
12292
12293 * term/i386/pc/vga.c (grub_vga_term): Change type to
12294 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
12295 members. Update all users.
12296 * term/gfxterm.c (grub_video_term): Change type to
12297 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
12298 members. Update all users.
12299 * include/grub/i386/pc/console.h (grub_console_checkkey)
12300 (grub_console_getkey): Do not export (no longer needed by gfxterm,
12301 etc).
12302
12303 Migrate `terminal' command and userland tools to new API:
12304
12305 * commands/terminal.c (grub_cmd_terminal): Split into ...
12306 (grub_cmd_terminal_input): ... this, and ...
12307 (grub_cmd_terminal_output): ... this.
12308 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
12309 `terminal_input' and `terminal_output'.
12310 * util/grub.d/00_header.in: Adjust `terminal' calls to new
12311 `terminal_input' / `terminal_output' API.
12312 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
12313 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
12314 provided ${GRUB_TERMINAL}, convert it).
12315
12316 2008-11-04 Robert Millan <rmh@aybabtu.com>
12317
12318 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
12319 for FreeBSD.
12320 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
12321
12322 2008-11-03 Bean <bean123ch@gmail.com>
12323
12324 * kern/elf.c (grub_elf32_load): Revert to previous code.
12325 (grub_elf64_load): Likewise.
12326
12327 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
12328
12329 2008-11-01 Robert Millan <rmh@aybabtu.com>
12330
12331 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
12332 (TARGET_CPPFLAGS): Likewise.
12333 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
12334
12335 2008-11-01 Carles Pina i Estany <carles@pina.cat>
12336
12337 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
12338
12339 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
12340
12341 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
12342 addition of objects until the code is not going to be able to fail.
12343
12344 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
12345
12346 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
12347 (add a missing NULL check, and correct them by moving the pointer
12348 operations after the actual check).
12349
12350 2008-10-29 Robert Millan <rmh@aybabtu.com>
12351
12352 * util/i386/pc/grub-install.in: Handle empty string as output from
12353 make_system_path_relative_to_its_root().
12354
12355 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
12356
12357 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
12358 circular metadata worst case scenario. If the metadata is circular
12359 then copy the wrap in place.
12360 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
12361 project lib/format_text/layout.h
12362 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
12363
12364 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
12365
12366 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
12367
12368 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
12369
12370 * util/update-grub_lib.in: Mention filename in warning message.
12371
12372 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
12373
12374 * NEWS: Update for rename of update-grub to grub-mkconfig.
12375
12376 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
12377
12378 * util/update-grub_lib.in: Copy to ...
12379 * util/grub-mkconfig_lib.in: ... this. Update all users.
12380 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
12381 * util/update-grub.in: Rename to ...
12382 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
12383 option. Add `--output' option to allow users to specify the generated
12384 configuration file. Default to stdout.
12385 (update_grub_dir): Rename to ...
12386 (grub_mkconfig_dir): ... this.
12387 (grub_cfg): Default to an empty string.
12388 * conf/common.rmk (update-grub): Rename to ...
12389 (grub-mkconfig): ... this.
12390 (update-grub_lib): Copy to ...
12391 (grub-mkconfig_lib): ... this.
12392 (update-grub_SCRIPTS): Copy to ...
12393 (grub-mkconfig_SCRIPTS): ... this. Update all users.
12394 (update-grub_DATA): Rename to ...
12395 (grub-mkconfig_DATA): ... this.
12396
12397 2008-09-28 Robert Millan <rmh@aybabtu.com>
12398
12399 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
12400 to `modified'. Add the real `created' field.
12401 (grub_iso9660_uuid): Use `modified' rather than `created' for
12402 constructing the UUID.
12403
12404 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
12405
12406 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
12407 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
12408
12409 2008-09-28 Bean <bean123ch@gmail.com>
12410
12411 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
12412 Thanks to Christian Franke for finding this bug.
12413
12414 2008-09-25 Robert Millan <rmh@aybabtu.com>
12415
12416 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
12417 instances of grub_util_get_disk_name() (see previous commit).
12418
12419 2008-09-25 Robert Millan <rmh@aybabtu.com>
12420
12421 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
12422 `util/i386/get_disk_name.c'.
12423 * conf/i386-efi.rmk: Likewise.
12424 * conf/x86_64-efi.rmk: Likewise.
12425 * conf/i386-coreboot.rmk: Likewise.
12426 * conf/i386-ieee1275.rmk: Likewise.
12427 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
12428 `util/ieee1275/get_disk_name.c'.
12429 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
12430 * util/ieee1275/get_disk_name.c: Remove file.
12431 * util/i386/get_disk_name.c: Remove file.
12432 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
12433 "hd%d" for device.map entries, rather than using
12434 grub_util_get_disk_name().
12435
12436 2008-09-24 Carles Pina i Estany <carles@pina.cat>
12437
12438 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
12439 warning.
12440 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
12441
12442 2008-09-24 Carles Pina i Estany <carles@pina.cat>
12443
12444 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
12445 Changed to 0x5100.
12446 (GRUB_TERM_PPAGE): Changed to 0x4900.
12447
12448 2008-09-24 Robert Millan <rmh@aybabtu.com>
12449
12450 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
12451 macros (they were i386-pc specific).
12452 * include/grub/sparc64/ieee1275/console.h: Likewise.
12453 * include/grub/efi/console.h: Likewise.
12454
12455 2008-09-22 Bean <bean123ch@gmail.com>
12456
12457 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
12458 resident and in attribute list.
12459
12460 * include/grub/ntfs.h (BMP_LEN): Removed.
12461
12462 2008-09-22 Bean <bean123ch@gmail.com>
12463
12464 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
12465 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
12466
12467 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
12468 error occurs, as grub_disk_open will call grub_disk_close, which will
12469 call p->close (scsi).
12470
12471 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
12472
12473 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
12474 (AC_PREREQ): Bumped to 2.59.
12475 (AC_TRY_COMPILE): Replace obsolete macro with ...
12476 (AC_COMPILE_IFELSE): ... this.
12477 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
12478 (AC_LINK_IFELSE): ... this.
12479
12480 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
12481
12482 * autogen.sh: Add a call to `gendistlist.sh'.
12483
12484 2008-09-19 Christian Franke <franke@computer.org>
12485
12486 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
12487 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
12488 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
12489 Export __enable_execute_stack() to modules.
12490 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
12491 New function.
12492
12493 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
12494
12495 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
12496 Sort the list.
12497
12498 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
12499
12500 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
12501 #include <grub/util/hostdisk.h>.
12502
12503 2008-09-08 Robert Millan <rmh@aybabtu.com>
12504
12505 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
12506 segments when their filesz is zero (grub_file_read() interprets
12507 zero-size as "read until EOF", which results in memory corruption).
12508 Use `lowest_segment' rather than 0 for calculating the current
12509 segment load address.
12510
12511 2008-09-08 Robert Millan <rmh@aybabtu.com>
12512
12513 * util/hostdisk.c (open_device): Replace a grub_util_info() call
12514 with grub_dprintf("hostdisk", ...), as it was so verbose that it
12515 clobbered useful information.
12516
12517 2008-09-08 Robert Millan <rmh@aybabtu.com>
12518
12519 * include/grub/util/biosdisk.h: Move to ...
12520 * include/grub/util/hostdisk.h: ... here. Update all users.
12521 * util/biosdisk.c: Move to ...
12522 * util/hostdisk.c: ... here. Update all users.
12523
12524 2008-09-07 Robert Millan <rmh@aybabtu.com>
12525
12526 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
12527 variables.
12528 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
12529 and length can be stored directly in the `mbi->mmap_addr' and
12530 `mbi->mmap_length' struct fields.
12531
12532 2008-09-07 Robert Millan <rmh@aybabtu.com>
12533
12534 * conf/i386.rmk: New file. Provides declaration for building
12535 `cpuid.mod'.
12536 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
12537 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
12538 variables.
12539 Include `conf/i386.mk'.
12540 * conf/i386-efi.rmk: Likewise.
12541 * conf/x86_64-efi.rmk: Likewise.
12542 * conf/i386-coreboot.rmk: Likewise.
12543 * conf/i386-ieee1275.rmk: Likewise.
12544
12545 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
12546
12547 Based on patch created by Colin D Bennett <colin@gibibit.com>.
12548 Adds optimization support for BGR based modes.
12549
12550 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
12551 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
12552 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
12553 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
12554 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
12555 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
12556 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
12557 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
12558 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
12559 (grub_video_i386_vbeblit_index_index): Likewise.
12560 (grub_video_i386_vbeblit_replace_directN): Added.
12561 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
12562 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
12563 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
12564 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
12565 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
12566 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
12567 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
12568 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
12569 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
12570 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
12571 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
12572 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
12573 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
12574
12575 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
12576 (grub_video_i386_vbefill_R8G8B8): Likewise.
12577 (grub_video_i386_vbefill_index): Likewise.
12578 (grub_video_i386_vbefill_direct32): Added.
12579 (grub_video_i386_vbefill_direct24): Likewise.
12580 (grub_video_i386_vbefill_direct16): Likewise.
12581 (grub_video_i386_vbefill_direct8): Likewise.
12582
12583 * include/grub/video.h (grub_video_blit_format): Removed
12584 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
12585 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
12586 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
12587 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
12588 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
12589
12590 * video/video.c (grub_video_get_blit_format): Updated to use new
12591 blit formats. Added handling for 16 bit color modes.
12592
12593 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
12594 fillers.
12595 (common_blitter): Updated to use new blitters.
12596
12597 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
12598 Removed.
12599 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
12600 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
12601 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
12602 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
12603 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
12604 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
12605 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
12606 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
12607 (grub_video_i386_vbeblit_index_index): Likewise.
12608 (grub_video_i386_vbeblit_replace_directN): Added.
12609 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
12610 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
12611 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
12612 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
12613 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
12614 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
12615 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
12616 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
12617 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
12618 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
12619 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
12620 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
12621 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
12622
12623 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
12624 (grub_video_i386_vbefill_R8G8B8): Likewise.
12625 (grub_video_i386_vbefill_index): Likewise.
12626 (grub_video_i386_vbefill_direct32): Added.
12627 (grub_video_i386_vbefill_direct24): Likewise.
12628 (grub_video_i386_vbefill_direct16): Likewise.
12629 (grub_video_i386_vbefill_direct8): Likewise.
12630
12631 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
12632 types.
12633
12634 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
12635 types.
12636
12637 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
12638 blitter types.
12639
12640 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
12641 types.
12642
12643 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
12644
12645 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
12646 RAID level 1.
12647
12648 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
12649
12650 * fs/iso9660.c (grub_iso9660_date): New structure.
12651 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
12652 (grub_iso9660_uuid): New function.
12653
12654 2008-09-05 Bean <bean123ch@gmail.com>
12655
12656 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
12657
12658 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
12659 insensitive bit for names in Win32 and Win32 & DOS namespace.
12660
12661 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
12662
12663 * include/grub/types.h (LONG_MAX): Likewise.
12664
12665 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
12666
12667 * util/getroot.c: Include <config.h>.
12668 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
12669 add support for /dev/md/N devices and handle LVM double dash escaping.
12670
12671 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
12672
12673 * config.guess: Update to latest version from config git.
12674 * config.sub: Likewise.
12675
12676 2008-09-03 Robert Millan <rmh@aybabtu.com>
12677
12678 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
12679 `disk->total_sectors'.
12680
12681 2008-09-01 Colin D Bennett <colin@gibibit.com>
12682
12683 * include/grub/normal.h: Fixed incorrect comment for
12684 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
12685
12686 2008-09-01 Colin D Bennett <colin@gibibit.com>
12687
12688 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
12689 values with defines.
12690
12691 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
12692 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
12693 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
12694 (GRUB_VBE_MODEATTR_COLOR): Likewise.
12695 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
12696 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
12697 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
12698 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
12699 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
12700 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
12701 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
12702 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
12703 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
12704 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
12705 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
12706 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
12707 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
12708 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
12709 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
12710
12711 2008-08-31 Robert Millan <rmh@aybabtu.com>
12712
12713 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
12714 declaration.
12715 (grub_multiboot): Fix a few warnings.
12716
12717 2008-08-31 Robert Millan <rmh@aybabtu.com>
12718
12719 * loader/i386/pc/multiboot.c: Update comment not to say that
12720 boot_device support is unimplemented.
12721
12722 2008-08-31 Robert Millan <rmh@aybabtu.com>
12723
12724 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
12725 or memory map support are unimplemented.
12726
12727 2008-08-31 Colin D Bennett <colin@gibibit.com>
12728
12729 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
12730
12731 2008-08-31 Colin D Bennett <colin@gibibit.com>
12732
12733 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
12734 total video memory in 'vbeinfo' output; show color format details for
12735 each video mode.
12736
12737 2008-08-30 Pavel Roskin <proski@gnu.org>
12738
12739 * util/genmoddep.c: Remove for real this time.
12740 * DISTLIST: Remove util/genmoddep.c.
12741
12742 2008-08-30 Robert Millan <rmh@aybabtu.com>
12743
12744 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
12745 as required by Multiboot spec (it was already 4-byte aligned, but
12746 only by chance).
12747
12748 2008-08-29 Pavel Roskin <proski@gnu.org>
12749
12750 * kern/powerpc/ieee1275/crt0.S: Rename to ...
12751 * kern/powerpc/ieee1275/startup.S: ... this.
12752 * conf/powerpc-ieee1275.rmk: Adjust for the above.
12753 * DISTLIST: Likewise.
12754
12755 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
12756 grub/cpu/kernel.h. Add start label for consistency with other
12757 platforms. Add grub_prefix immediately after start. Add jump
12758 to the code after grub_prefix.
12759 * include/grub/powerpc/kernel.h: Provide valid values for
12760 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
12761
12762 2008-08-29 Bean <bean123ch@gmail.com>
12763
12764 * configure.ac: Change host_os to cygwin for mingw.
12765 (asprintf): New check for function.
12766
12767 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
12768 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
12769
12770 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
12771 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
12772 sync, sleep and grub_util_get_disk_size for mingw.
12773
12774 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
12775 to get size in mingw.
12776 (open_device): Use flag O_BINARY if it's defined.
12777 (find_root_device): Add dummy code for mingw.
12778
12779 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
12780 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
12781 (get_scsi_disk_name): Return 0 for mingw.
12782
12783 * util/hostfs.c: #include <grub/util/misc.h>.
12784 (grub_hostfs_open): Use "rb" flag to open file, use
12785 grub_util_get_disk_size to get disk size for mingw.
12786
12787 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
12788 (asprintf): New function if HAVE_ASPRINTF is not set.
12789 (sync): New function for mingw.
12790 (sleep): Likewise.
12791 (grub_util_get_disk_size): Likewise.
12792
12793 2008-08-28 Pavel Roskin <proski@gnu.org>
12794
12795 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
12796 kern/time.c.
12797
12798 2008-08-28 Robert Millan <rmh@aybabtu.com>
12799
12800 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
12801
12802 2008-08-28 Robert Millan <rmh@aybabtu.com>
12803
12804 Change find_grub_drive() syntax so it doesn't prevent it from
12805 detecting NULL names as errors.
12806
12807 * util/biosdisk.c (find_grub_drive): Move free slot search code
12808 from here ...
12809 (find_free_slot): ... to here.
12810 (read_device_map): Use find_free_slot() to search for free slots.
12811
12812 2008-08-27 Marco Gerards <marco@gnu.org>
12813
12814 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
12815 (scsi_mod_SOURCES): New variable.
12816 (scsi_mod_CFLAGS): Likewise
12817 (scsi_mod_LDFLAGS): Likewise.
12818
12819 * disk/scsi.c: New file.
12820
12821 * include/grub/scsi.h: Likewise.
12822
12823 * include/grub/scsicmd.h: Likewise.
12824
12825 * disk/ata.c: Include <grub/scsi.h>.
12826 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
12827 instead.
12828 (grub_ata_iterate): Skip ATAPI devices.
12829 (grub_ata_open): Only handle ATAPI devices.
12830 (struct grub_atapi_read): Removed.
12831 (grub_atapi_readsector): Likewise.
12832 (grub_ata_read): No longer handle ATAPI devices.
12833 (grub_ata_write): Likewise.
12834 (grub_atapi_iterate): New function.
12835 (grub_atapi_read): Likewise.
12836 (grub_atapi_write): Likewise.
12837 (grub_atapi_open): Likewise.
12838 (grub_atapi_close): Likewise.
12839 (grub_atapi_dev): New variable.
12840 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
12841 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
12842
12843 * include/grub/disk.h (enum grub_disk_dev_id): Add
12844 `GRUB_DISK_DEVICE_SCSI_ID'.
12845
12846 2008-08-26 Robert Millan <rmh@aybabtu.com>
12847
12848 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
12849 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
12850 descriptive.
12851
12852 2008-08-23 Bean <bean123ch@gmail.com>
12853
12854 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
12855 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
12856 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
12857 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
12858 dm_nv.mod.
12859 (raid5rec_mod_SOURCES): New macro.
12860 (raid5rec_mod_CFLAGS): Likewise.
12861 (raid5rec_mod_LDFLAGS): Likewise.
12862 (raid6rec_mod_SOURCES): Likewise.
12863 (raid6rec_mod_CFLAGS): Likewise.
12864 (raid6rec_mod_LDFLAGS): Likewise.
12865 (mdraid_mod_SOURCES): Likewise.
12866 (mdraid_mod_CFLAGS): Likewise.
12867 (mdraid_mod_LDFLAGS): Likewise.
12868 (dm_nv_mod_SOURCES): Likewise.
12869 (dm_nv_mod_CFLAGS): Likewise.
12870 (dm_nv_mod_LDFLAGS): Likewise.
12871
12872 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
12873 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
12874 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
12875
12876 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
12877 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
12878
12879 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12880
12881 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12882
12883 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12884
12885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12886
12887 * disk/raid5_recover.c: New file.
12888
12889 * disk/raid6_recover.c: Likewise.
12890
12891 * disk/mdraid_linux.c: Likewise.
12892
12893 * disk/dmraid_nvidia.c: Likewise.
12894
12895 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
12896 ULONG_MAX.
12897
12898 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
12899 calculate the size of raid device.
12900 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
12901 different layout of raid5.
12902 (grub_raid_scan_device): Remove code specific to mdraid.
12903 (grub_raid_list): New variable.
12904 (free_array): New function.
12905 (grub_raid_register): Likewise.
12906 (grub_raid_unregister): Likewise.
12907 (grub_raid_rescan): Likewise.
12908 (GRUB_MOD_INIT): Don't iterate device here.
12909 (GRUB_MOD_FINI): Use free_array to release resource.
12910
12911 * include/grub/raid.h: Remove macro and structure specific to mdraid.
12912 (grub_raid5_recover_func_t): New function variable type.
12913 (grub_raid6_recover_func_t): Likewise.
12914 (grub_raid5_recover_func): New variable.
12915 (grub_raid6_recover_func): Likewise.
12916 (grub_raid_register): New function.
12917 (grub_raid_unregister): Likewise.
12918 (grub_raid_rescan): Likewise.
12919 (grub_raid_block_xor): Likewise.
12920
12921 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
12922 (CMD_CRC): New macro.
12923 (part): Removed.
12924 (read_file): Handle device as well as file.
12925 (cmd_crc): New function.
12926 (fstest): Handle multiple disks.
12927 (options): Remove part, raw and long, add root and diskcount.
12928 (usage): Add crc, remove -p, -r, -l, add -r and -c.
12929 (main): Find the first non option entry and ignore subsequent options,
12930 add handling for the new options, support multiple disks.
12931
12932 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
12933
12934 2008-08-23 Bean <bean123ch@gmail.com>
12935
12936 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
12937
12938 * genfslist.sh: Ignore kernel.mod.
12939
12940 * genpartmaplist.sh: Likewise.
12941
12942 2008-08-23 Robert Millan <rmh@aybabtu.com>
12943
12944 * util/getroot.c (find_root_device): Skip anything that starts with
12945 a dot, not just directories. This avoids things like /dev/.tmp.md0.
12946
12947 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
12948
12949 * util/update-grub.in (GRUB_GFXMODE): Export variable.
12950 * util/grub.d/00_header.in: Allow the administrator to change default
12951 gfxmode via ${GRUB_GFXMODE}.
12952
12953 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
12954
12955 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
12956
12957 2008-08-21 Robert Millan <rmh@aybabtu.com>
12958
12959 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
12960 loader.
12961 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
12962 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
12963
12964 2008-08-20 Carles Pina i Estany <carles@pina.cat>
12965
12966 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
12967 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
12968
12969 2008-08-19 Robert Millan <rmh@aybabtu.com>
12970
12971 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
12972 (struct grub_virtual_screen): Remove `cursor_color'.
12973 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
12974 initialization.
12975 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
12976
12977 2008-08-18 Robert Millan <rmh@aybabtu.com>
12978
12979 Unify (identical) linux_normal.c files.
12980 * loader/i386/efi/linux_normal.c: Move from here ...
12981 * loader/linux_normal.c: ... to here. Update all users.
12982 * loader/i386/pc/linux_normal.c: Delete. Update all users.
12983 * loader/i386/ieee1275/linux_normal.c: Likewise.
12984
12985 2008-08-18 Robert Millan <rmh@aybabtu.com>
12986
12987 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
12988 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
12989 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
12990 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
12991 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
12992 New macros.
12993 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
12994 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
12995 (GRUB_LINUX_CL_END_OFFSET): ... to here.
12996 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
12997 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
12998 (GRUB_EFI_CL_END_OFFSET): Rename to ...
12999 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
13000 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
13001 Initialize `params->video_cursor_x' and `params->video_cursor_y'
13002 portably using grub_getxy().
13003 Replace `-EFI' with `-bzImage' in boot message.
13004
13005 2008-08-17 Robert Millan <rmh@aybabtu.com>
13006
13007 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
13008
13009 2008-08-17 Robert Millan <rmh@aybabtu.com>
13010
13011 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
13012
13013 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
13014 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
13015 (grub_machine_mmap_iterate): New function declaration.
13016 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
13017 structure.
13018 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
13019 macros.
13020
13021 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
13022 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
13023 Move e820 parsing from here ...
13024 * kern/i386/pc/mmap.c: New file.
13025 (grub_machine_mmap_iterate): ... to here.
13026
13027 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
13028 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
13029 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
13030 (grub_available_iterate): Redeclare to return `void', and redeclare
13031 its hook to use grub_uint64_t as addr and size parameters, and rename
13032 to ...
13033 (grub_machine_mmap_iterate): ... this. Update all users.
13034
13035 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
13036 to make it more readable. Rename to ...
13037 (grub_machine_mmap_iterate): ... this.
13038
13039 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
13040 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
13041 (grub_multiboot): Allocate an extra region after the payload, and fill
13042 it with a Multiboot memory map. Adjust a.out loader to calculate size
13043 with the extra space.
13044 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
13045 with the extra space.
13046
13047 2008-08-17 Carles Pina i Estany <carles@pina.cat>
13048
13049 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
13050
13051 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
13052
13053 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
13054 mdate-sh to the list `find' searches for.
13055 * DISTLIST: Regenerated.
13056
13057 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
13058
13059 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
13060 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
13061 genmoddep.awk, gensymlist.sh.in.
13062 (DISTDIRS): Add bus, docs, hook, lib.
13063 * DISTLIST: Regenerated.
13064 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
13065
13066 2008-08-16 Robert Millan <rmh@aybabtu.com>
13067
13068 * disk/raid.c (grub_raid_init): Handle/report errors set by
13069 grub_device_iterate().
13070 * disk/lvm.c (grub_lvm_init): Likewise.
13071
13072 2008-08-15 Bean <bean123ch@gmail.com>
13073
13074 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
13075 and datehook.mod.
13076 (datetime_mod_SOURCES): New macro.
13077 (datetime_mod_CFLAGS): Likewise.
13078 (datetime_mod_LDFLAGS): Likewise.
13079 (date_mod_SOURCES): Likewise.
13080 (date_mod_CFLAGS): Likewise.
13081 (date_mod_LDFLAGS): Likewise.
13082 (datehook_mod_SOURCES): Likewise.
13083 (datehook_mod_CFLAGS): Likewise.
13084 (datehook_mod_LDFLAGS): Likewise.
13085
13086 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
13087 and datehook.mod.
13088 (datetime_mod_SOURCES): New macro.
13089 (datetime_mod_CFLAGS): Likewise.
13090 (datetime_mod_LDFLAGS): Likewise.
13091 (date_mod_SOURCES): Likewise.
13092 (date_mod_CFLAGS): Likewise.
13093 (date_mod_LDFLAGS): Likewise.
13094 (datehook_mod_SOURCES): Likewise.
13095 (datehook_mod_CFLAGS): Likewise.
13096 (datehook_mod_LDFLAGS): Likewise.
13097
13098 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
13099 and datehook.mod.
13100 (datetime_mod_SOURCES): New macro.
13101 (datetime_mod_CFLAGS): Likewise.
13102 (datetime_mod_LDFLAGS): Likewise.
13103 (date_mod_SOURCES): Likewise.
13104 (date_mod_CFLAGS): Likewise.
13105 (date_mod_LDFLAGS): Likewise.
13106 (datehook_mod_SOURCES): Likewise.
13107 (datehook_mod_CFLAGS): Likewise.
13108 (datehook_mod_LDFLAGS): Likewise.
13109
13110 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
13111 and datehook.mod.
13112 (datetime_mod_SOURCES): New macro.
13113 (datetime_mod_CFLAGS): Likewise.
13114 (datetime_mod_LDFLAGS): Likewise.
13115 (date_mod_SOURCES): Likewise.
13116 (date_mod_CFLAGS): Likewise.
13117 (date_mod_LDFLAGS): Likewise.
13118 (datehook_mod_SOURCES): Likewise.
13119 (datehook_mod_CFLAGS): Likewise.
13120 (datehook_mod_LDFLAGS): Likewise.
13121
13122 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
13123 and datehook.mod.
13124 (datetime_mod_SOURCES): New macro.
13125 (datetime_mod_CFLAGS): Likewise.
13126 (datetime_mod_LDFLAGS): Likewise.
13127 (date_mod_SOURCES): Likewise.
13128 (date_mod_CFLAGS): Likewise.
13129 (date_mod_LDFLAGS): Likewise.
13130 (datehook_mod_SOURCES): Likewise.
13131 (datehook_mod_CFLAGS): Likewise.
13132 (datehook_mod_LDFLAGS): Likewise.
13133
13134 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
13135
13136 * commands/date.c: New file.
13137
13138 * hook/datehook.c: Likewise.
13139
13140 * include/grub/lib/datetime.h: Likewise.
13141
13142 * include/grub/i386/cmos.h: Likewise.
13143
13144 * lib/datetime.c: Likewise.
13145
13146 * lib/i386/datetime.c: Likewise.
13147
13148 * lib/efi/datetime.c: Likewise.
13149
13150 2008-08-14 Robert Millan <rmh@aybabtu.com>
13151
13152 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
13153 (grub_mkelfimage_SOURCES): New variable.
13154 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
13155
13156 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
13157 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
13158 * conf/powerpc-ieee1275.rmk: Likewise.
13159 * conf/i386-ieee1275.rmk: Likewise.
13160
13161 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
13162 * kern/i386/coreboot/init.c: Likewise.
13163
13164 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
13165 with `<grub/cpu/kernel.h>'.
13166 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
13167 to ...
13168 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
13169 * kern/i386/coreboot/startup.S: Likewise.
13170
13171 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
13172 (GRUB_MOD_GAP): Remove.
13173 * include/grub/powerpc/kernel.h: New file.
13174 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
13175 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
13176 * include/grub/i386/kernel.h: New file.
13177 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
13178 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
13179 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
13180
13181 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
13182 `grub-mkelfimage'.
13183 Use --directory when invoking grub_mkimage.
13184
13185 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
13186 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
13187 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
13188 and GRUB_KERNEL_CPU_PREFIX.
13189
13190 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
13191
13192 * include/grub/err.h (grub_err_printf): New function prototype.
13193 * util/misc.c (grub_err_printf): New function.
13194 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
13195 grub_printf.
13196 * kern/err.c (grub_print_error): Use grub_err_printf.
13197
13198 2008-08-13 Robert Millan <rmh@aybabtu.com>
13199
13200 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
13201
13202 2008-08-13 Robert Millan <rmh@aybabtu.com>
13203
13204 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
13205 boot entry.
13206
13207 2008-08-12 Robert Millan <rmh@aybabtu.com>
13208
13209 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
13210 of the relocation code from here ...
13211 (grub_multiboot): ... to here.
13212 (forward_relocator, backward_relocator): Move from here ...
13213 * kern/i386/loader.S (grub_multiboot_forward_relocator)
13214 (grub_multiboot_backward_relocator): ... to here.
13215 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
13216 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
13217 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
13218 (grub_multiboot_forward_relocator_end)
13219 (grub_multiboot_backward_relocator)
13220 (grub_multiboot_backward_relocator_end): New variables.
13221
13222 2008-08-12 Bean <bean123ch@gmail.com>
13223
13224 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
13225
13226 2008-08-11 Robert Millan <rmh@aybabtu.com>
13227
13228 * kern/i386/linuxbios/startup.S: Move from here ...
13229 * kern/i386/coreboot/startup.S: ... to here.
13230
13231 * kern/i386/linuxbios/init.c: Move from here ...
13232 * kern/i386/coreboot/init.c: ... to here.
13233
13234 * kern/i386/linuxbios/table.c: Move from here ...
13235 * kern/i386/coreboot/mmap.c: ... to here.
13236
13237 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
13238
13239 2008-08-11 Robert Millan <rmh@aybabtu.com>
13240
13241 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
13242 errors. Leave it to the upper layer to handle them.
13243
13244 2008-08-09 Christian Franke <franke@computer.org>
13245
13246 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
13247 * conf/common.rmk: Install `grub-pe2elf' only if requested.
13248 Install `grub.d/10_windows' only on Cygwin.
13249 * configure.ac: Add subst of `target_os'.
13250 Check `target_os' also before setting TARGET_OBJ2ELF.
13251 Add `--enable-grub-pe2elf'.
13252
13253 2008-08-08 Robert Millan <rmh@aybabtu.com>
13254
13255 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
13256 (grub_last_time): Change type to grub_uint64_t.
13257 (grub_disk_open): Migrate code from to using grub_get_time_ms().
13258 (grub_disk_close): Likewise.
13259
13260 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
13261 (run_menu): Migrate code from to using grub_get_time_ms().
13262
13263 * util/misc.c (grub_get_time_ms): New function.
13264
13265 2008-08-08 Marco Gerards <marco@gnu.org>
13266
13267 * disk/ata.c (grub_ata_regget): Change return type to
13268 `grub_uint8_t'.
13269 (grub_ata_regget2): Likewise.
13270 (grub_ata_wait_status): New function.
13271 (grub_ata_wait_busy): Removed function, updated all users to use
13272 `grub_ata_wait_status'.
13273 (grub_ata_wait_drq): Likewise.
13274 (grub_ata_cmd): New function.
13275 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
13276 error handling.
13277 (grub_ata_pio_write): Add error handling.
13278 (grub_atapi_identify): Likewise.
13279 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
13280 handling.
13281 (grub_ata_identify): Use `grub_ata_cmd' and improve error
13282 handling. Actually use the detected registers. Reorder the
13283 detection logic such that it is easier to read.
13284 (grub_ata_pciinit): Do not assign the same ID to each controller.
13285 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
13286 handling.
13287 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
13288
13289 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
13290
13291 2008-08-08 Marco Gerards <marco@gnu.org>
13292
13293 * NEWS: Update.
13294
13295 2008-08-07 Bean <bean123ch@gmail.com>
13296
13297 * include/grub/x86_64/pci.h: New file.
13298
13299 2008-08-07 Christian Franke <franke@computer.org>
13300
13301 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
13302 (TIMER2_GATE): Likewise.
13303 (grub_pit_wait): Add enable/disable of the timer2 gate
13304 bit of port 0x61. This fixes a possible infinite loop.
13305
13306 2008-08-07 Bean <bean123ch@gmail.com>
13307
13308 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
13309 kern/i386/tsc.c and kern/i386/pit.c.
13310
13311 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
13312 x86_64 platform.
13313
13314 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
13315 <grub/i386/tsc.h>.
13316
13317 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
13318
13319 2008-08-07 Bean <bean123ch@gmail.com>
13320
13321 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
13322
13323 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
13324
13325 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
13326 multiple inclusion. Add #include <grub/types.h>.
13327
13328 2008-08-06 Christian Franke <franke@computer.org>
13329
13330 * conf/common.rmk: Build and install `10_windows'.
13331 * util/grub.d/10_windows.in: New script.
13332
13333 2008-08-06 Pavel Roskin <proski@gnu.org>
13334
13335 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
13336
13337 2008-08-06 Robert Millan <rmh@aybabtu.com>
13338
13339 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
13340 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
13341
13342 2008-08-06 Bean <bean123ch@gmail.com>
13343
13344 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
13345 (grub_pxefs_fs_int): Remove dummy definition.
13346 (grub_pxefs_open): Use data->block_size to store the current block
13347 size setting.
13348 (grub_pxefs_read): Use block size stored in data->block_size. As the
13349 value of grub_pxe_blksize can be changed after the file is opened.
13350
13351 2008-08-06 Bean <bean123ch@gmail.com>
13352
13353 * fs/i386/pc/pxe.c (curr_file): new variable.
13354 (grub_pxefs_open): Simply the handling of pxe file system. Don't
13355 require the dummy internal file system anymore.
13356 (grub_pxefs_read): Removed.
13357 (grub_pxefs_close): Likewise.
13358 (grub_pxefs_fs_int): Likewise.
13359 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
13360 connection when we switch file.
13361 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
13362
13363 2008-08-06 Robert Millan <rmh@aybabtu.com>
13364
13365 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
13366 `halt.mod'.
13367 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
13368 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
13369
13370 * kern/i386/halt.c: New file.
13371 * kern/i386/reboot.c: Likewise.
13372 * include/grub/i386/reboot.h: Likewise.
13373 * include/grub/i386/halt.h: Likewise.
13374
13375 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
13376 Include `<grub/cpu/halt.h>'.
13377 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
13378 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
13379
13380 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
13381 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
13382 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
13383 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
13384 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
13385 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
13386 from here ...
13387 * include/grub/i386/at_keyboard.h: ... to here.
13388
13389 2008-08-05 Robert Millan <rmh@aybabtu.com>
13390
13391 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
13392 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
13393 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
13394 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
13395 `kern/generic/millisleep.c'.
13396
13397 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
13398 instead of grub_get_rtc().
13399 (grub_tsc_init): Initialize `tsc_boot_time'.
13400
13401 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
13402 (grub_machine_init): Use grub_tsc_init() rather than
13403 installing an RTC-based handler via grub_install_get_time_ms().
13404
13405 * kern/i386/pit.c: New file.
13406 * include/grub/i386/pit.h: Likewise.
13407
13408 2008-08-05 Bean <bean123ch@gmail.com>
13409
13410 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
13411
13412 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
13413 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
13414 (pxe_mod_SOURCES): New macro.
13415 (pxe_mod_CFLAGS): Likewise.
13416 (pxe_mod_LDFLAGS): Likewise.
13417 (pxecmd_mod_SOURCES): Likewise.
13418 (pxecmd_mod_CFLAGS): Likewise.
13419 (pxecmd_mod_LDFLAGS): Likewise.
13420
13421 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
13422 (grub_pxe_call): Likewise.
13423
13424 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
13425
13426 * commands/i386/pc/pxecmd.c: New file.
13427
13428 * fs/i386/pc/pxe.c: Likewise.
13429
13430 * include/grub/i386/pc/pxe.h: Likewise.
13431
13432 2008-08-05 Bean <bean123ch@gmail.com>
13433
13434 * util/console.c (grub_console_cur_color): New variable.
13435 (grub_console_standard_color): Likewise.
13436 (grub_console_normal_color): Likewise.
13437 (grub_console_highlight_color): Likewise.
13438 (color_map): Likewise.
13439 (use_color): Likewise.
13440 (NUM_COLORS): New macro.
13441 (grub_ncurses_setcolorstate): Handle color properly.
13442 (grub_ncurses_setcolor): Don't change color here, just remember the
13443 settings, color will be set in grub_ncurses_setcolorstate.
13444 (grub_ncurses_getcolor): New function.
13445 (grub_ncurses_init): Initialize color pairs.
13446 (grub_ncurses_term): New member grub_ncurses_getcolor.
13447
13448 2008-08-05 Colin D Bennett <colin@gibibit.com>
13449
13450 High resolution timer support. Implemented for x86 CPUs using TSC.
13451 Extracted generic grub_millisleep() so it's linked in only as needed.
13452 This requires a Pentium compatible CPU; if the RDTSC instruction is
13453 not supported, then it falls back on the generic grub_get_time_ms()
13454 implementation that uses the machine's RTC.
13455
13456 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
13457 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
13458 `kern/generic/millisleep.c'.
13459
13460 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
13461 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
13462
13463 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
13464 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
13465
13466 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
13467
13468 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
13469 `kern/generic/millisleep.c'.
13470
13471 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
13472
13473 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
13474
13475 * kern/generic/rtc_get_time_ms.c: New file.
13476
13477 * kern/generic/millisleep.c: New file.
13478
13479 * kern/misc.c: Don't include
13480 <kern/time.h> anymore.
13481 (grub_millisleep_generic): Removed.
13482
13483 * commands/sleep.c (grub_interruptible_millisleep): Uses
13484 grub_get_time_ms() instead of grub_get_rtc().
13485
13486 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
13487 function.
13488 (grub_cpu_is_cpuid_supported): New inline function.
13489 (grub_cpu_is_tsc_supported): New inline function.
13490 (grub_tsc_init): New function prototype.
13491 (grub_tsc_get_time_ms): New function prototype.
13492
13493 * kern/i386/tsc.c (grub_get_time_ms): New file.
13494
13495 * include/grub/time.h: Include <grub/types.h.
13496 (grub_millisleep_generic): Removed.
13497 (grub_get_time_ms): New prototype.
13498 (grub_install_get_time_ms): New prototype.
13499 (grub_rtc_get_time_ms): New prototype.
13500
13501 * kern/time.c (grub_get_time_ms): New function.
13502 (grub_install_get_time_ms): New function.
13503
13504 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
13505 <grub/time.h> anymore.
13506 (grub_millisleep): Removed.
13507 (grub_machine_init): Call grub_tsc_init.
13508
13509 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
13510 get_time_ms() implementation.
13511
13512 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
13513 (ieee1275_get_time_ms): New function.
13514 (grub_machine_init): Install get_time_ms() implementation.
13515
13516 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
13517 (grub_machine_init): Call grub_tsc_init().
13518 (grub_millisleep): Removed.
13519
13520 * kern/ieee1275/init.c (grub_millisleep): Removed.
13521 (grub_machine_init): Install ieee1275_get_time_ms()
13522 implementation.
13523 (ieee1275_get_time_ms): New function.
13524 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
13525 real work.
13526
13527 2008-08-05 Marco Gerards <marco@gnu.org>
13528
13529 * disk/ata.c: Include <grub/pci.h>.
13530 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
13531 (grub_ata_initialize): Rewritten.
13532 (grub_ata_device_initialize): New function.
13533
13534 2008-08-04 Pavel Roskin <proski@gnu.org>
13535
13536 * kern/main.c: Include grub/mm.h.
13537
13538 2008-08-04 Robert Millan <rmh@aybabtu.com>
13539
13540 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
13541 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
13542 corruption problem).
13543
13544 2008-08-04 Robert Millan <rmh@aybabtu.com>
13545
13546 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
13547 warnings introduced in my last commit.
13548
13549 2008-08-03 Robert Millan <rmh@aybabtu.com>
13550
13551 Make PCI available on all i386 architectures.
13552
13553 * include/grub/i386/pc/pci.h: Move from here ...
13554 * include/grub/i386/pci.h: ... to here.
13555
13556 * include/grub/i386/pc/pci.h: Remove.
13557 * include/grub/i386/efi/pci.h: Remove.
13558 * include/grub/x86_64/efi/pci.h: Remove.
13559
13560 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
13561 `<grub/cpu/pci.h>'.
13562
13563 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
13564 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
13565 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
13566
13567 * conf/i386-ieee1275.rmk: Likewise.
13568
13569 2008-08-03 Robert Millan <rmh@aybabtu.com>
13570
13571 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
13572 (grub_console_setcursor): Make it possible to set cursor off.
13573
13574 2008-08-03 Robert Millan <rmh@aybabtu.com>
13575
13576 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
13577 of modules instead of assuming which platform provides what.
13578 * util/update-grub.in: Likewise.
13579
13580 2008-08-03 Robert Millan <rmh@aybabtu.com>
13581
13582 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
13583 instead of `grub_install_dos_part' to determine whether a drive needs
13584 to be prepended to prefix (`grub_install_dos_part' is not reliable,
13585 because it can be overridden when loading GRUB via Multiboot).
13586
13587 2008-08-02 Robert Millan <rmh@aybabtu.com>
13588
13589 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
13590
13591 2008-08-02 Robert Millan <rmh@aybabtu.com>
13592
13593 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
13594 of informational grub_dprintf() calls.
13595
13596 2008-08-02 Robert Millan <rmh@aybabtu.com>
13597
13598 * disk/memdisk.c (memdisk_size): Don't initialize.
13599 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
13600
13601 * include/grub/i386/pc/kernel.h
13602 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
13603 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
13604 (grub_memdisk_image_size, grub_arch_memdisk_addr)
13605 (grub_arch_memdisk_size): Remove.
13606
13607 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
13608 field (was only used to transfer a constant). Add `type' field to
13609 support multiple module types.
13610 (grub_module_iterate): New function.
13611
13612 * kern/device.c (grub_device_open): Do not hide error messages
13613 when grub_disk_open() fails. Use grub_print_error() instead.
13614
13615 * kern/i386/pc/init.c (grub_arch_modules_addr)
13616 (grub_arch_memdisk_size): Remove functions.
13617 (grub_arch_modules_addr): Return the module address in high memory
13618 (now that it isn't copied anymore).
13619
13620 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
13621 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
13622 decompression routine (grub_total_module_size already includes that
13623 now). Don't copy modules back to low memory.
13624
13625 * kern/main.c: Include `<grub/mm.h>'.
13626 (grub_load_modules): Split out (and use) ...
13627 (grub_module_iterate): ... this function, which iterates through
13628 module objects and runs a hook.
13629 Comment out grub_mm_init_region() call, as it would cause non-ELF
13630 modules to be overwritten.
13631
13632 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
13633 the memdisk image in its own region, make it part of the module list.
13634 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
13635 (main): Parse --memdisk|-m option, and pass user-provided path as
13636 parameter to generate_image().
13637 (add_segments): Pass `memdisk_path' down to load_modules().
13638 (load_modules): Embed memdisk image in module section when requested.
13639 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
13640 `header.type' instead of `header.offset'.
13641
13642 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
13643 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
13644 (memdisk_mod_LDFLAGS): New variables.
13645 * conf/i386-coreboot.rmk: Likewise.
13646 * conf/i386-ieee1275.rmk: Likewise.
13647
13648 2008-08-02 Robert Millan <rmh@aybabtu.com>
13649
13650 * loader/i386/pc/multiboot.c (playground, forward_relocator)
13651 (backward_relocator): New variables. Used to allocate and relocate
13652 the payload, respectively.
13653 (grub_multiboot_load_elf32): Load into heap instead of requested
13654 address, install the appropriate relocator code in each bound of
13655 the payload, and set the entry point such that
13656 grub_multiboot_real_boot() will jump to one of them.
13657
13658 * kern/i386/loader.S (grub_multiboot_payload_size)
13659 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
13660 (grub_multiboot_payload_entry_offset): New variables.
13661 (grub_multiboot_real_boot): Set cpu context to what the relocator
13662 expects, and jump to the relocator instead of the payload.
13663
13664 * include/grub/i386/loader.h (grub_multiboot_payload_size)
13665 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
13666 (grub_multiboot_payload_entry_offset): Export.
13667
13668 2008-08-01 Bean <bean123ch@gmail.com>
13669
13670 * normal/menu_entry.c (editor_getline): Don't return the original
13671 string as result, as it will be released by lexer once it has done
13672 using it.
13673
13674 2008-08-01 Robert Millan <rmh@aybabtu.com>
13675
13676 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
13677 within menuentries, not before them.
13678 util/grub.d/10_hurd.in: Likewise.
13679
13680 2008-08-01 Bean <bean123ch@gmail.com>
13681
13682 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
13683 (bufio_mod_SOURCES): New macro.
13684 (bufio_mod_CFLAGS): Likewise.
13685 (bufio_mod_LDFLAGS): Likewise.
13686
13687 * include/grub/bufio.h: New file.
13688
13689 * io/bufio.c: Likewise.
13690
13691 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
13692 (grub_video_reader_png): Use grub_buffile_open to open file.
13693
13694 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
13695 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
13696
13697 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
13698 (grub_video_reader_tga): Use grub_buffile_open to open file.
13699
13700 * font/manager.c: Include <grub/bufio.h>.
13701 (add_font): Use grub_buffile_open to open file.
13702
13703 2008-07-31 Robert Millan <rmh@aybabtu.com>
13704
13705 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
13706 ELF segments, use a macro for arbitrarily accessing any of them instead
13707 of preparing a pointer that allows access to one at a time.
13708 (grub_multiboot_load_elf64): Likewise.
13709
13710 2008-07-31 Bean <bean123ch@gmail.com>
13711
13712 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
13713 GRUB_KERNEL_MACHINE_DATA_END.
13714
13715 2008-07-30 Robert Millan <rmh@aybabtu.com>
13716
13717 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
13718 Increase from 0x50 to 0x60.
13719 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
13720 use UUIDs to identify the root drive for them. If that's not
13721 possible, abort.
13722 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
13723 check, for cross-disk installs.
13724
13725 2008-07-30 Robert Millan <rmh@aybabtu.com>
13726
13727 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
13728 is non-empty, use it to set the `prefix' environment variable instead
13729 of the usual approach.
13730 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
13731 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
13732 environment variable instead of dummy make_install_device().
13733
13734 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
13735 (start): Insert a data section, with `grub_prefix' variable.
13736 * kern/i386/linuxbios/startup.S: Likewise.
13737
13738 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
13739 New variable reference.
13740 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
13741 New macro. Defines offset of `grub_prefix' within startup.S (relative
13742 to `start').
13743 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
13744 section within startup.S (relative to `start').
13745 * include/grub/i386/coreboot/kernel.h: Likewise.
13746
13747 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
13748 Overwrite grub_prefix with its contents, at the beginning of the
13749 first segment.
13750 (main): Understand -p|--prefix.
13751
13752 2008-07-30 Robert Millan <rmh@aybabtu.com>
13753
13754 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
13755
13756 2008-07-30 Robert Millan <rmh@aybabtu.com>
13757
13758 * term/i386/pc/vga_text.c (grub_console_cls): Use
13759 grub_console_gotoxy() to go back to beginning of the screen.
13760 Found by Patrick Georgi <patrick.georgi@coresystems.de>
13761
13762 2008-07-29 Christian Franke <franke@computer.org>
13763
13764 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
13765 Add conversion of emulated mount points on Cygwin.
13766
13767 2008-07-29 Christian Franke <franke@computer.org>
13768
13769 * util/update-grub.in: Add a check for admin
13770 group on Cygwin.
13771 Remove old `grub.cfg.new' before creation.
13772 Add `-f' to `mv' to handle the different filesystem
13773 semantics of Windows.
13774
13775 2008-07-29 Bean <bean123ch@gmail.com>
13776
13777 * normal/main.c (get_line): Fix buffer overflow bug.
13778
13779 2008-07-28 Robert Millan <rmh@aybabtu.com>
13780
13781 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
13782 (struct grub_apple_header): New struct. Describes the layout of
13783 the partmap header.
13784 (apple_partition_map_iterate): Check the header magic as well as the
13785 partition magic (which was already being checked).
13786
13787 2008-07-28 Pavel Roskin <proski@gnu.org>
13788
13789 * genmk.rb: Add a warning to the beginning of the output that
13790 it's a generated file and should not be edited.
13791
13792 2008-07-28 Robert Millan <rmh@aybabtu.com>
13793
13794 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13795 with the same number are found, just use issue a warning with
13796 grub_dprintf(), as this error has been reported to be non-fatal.
13797
13798 2008-07-27 Robert Millan <rmh@aybabtu.com>
13799
13800 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
13801 information.
13802
13803 2008-07-27 Bean <bean123ch@gmail.com>
13804
13805 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
13806 (grub_fat_find_dir): Ignore case when comparing filename.
13807
13808 2008-07-27 Bean <bean123ch@gmail.com>
13809
13810 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
13811 smallino, as it's more descriptive, and i8count can be confused with
13812 the other field count.
13813 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
13814 inode type.
13815
13816 2008-07-27 Bean <bean123ch@gmail.com>
13817
13818 * commands/crc.c: New file.
13819
13820 * lib/crc.c: Likewise.
13821
13822 * include/grub/lib/crc.h: Likewise.
13823
13824 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
13825
13826 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
13827 (hexdump): Move this function to ...
13828
13829 * lib/hexdump.c: ... here.
13830
13831 * include/grub/hexdump.h: Renamed to ...
13832
13833 * include/grub/lib/hexdump.h: ... this.
13834
13835 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
13836
13837 * util/grub-editenv.c: Likewise.
13838
13839 * include/envblk.h: Renamed to ...
13840
13841 * include/lib/envblk.h: ... this.
13842
13843 * util/envblk.c: Renamed to ...
13844
13845 * lib/envblk.c: ... this.
13846
13847 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
13848 lib/hexdump.c.
13849 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
13850 (pkglib_MODULES): Add crc.mod.
13851 (hexdump_mod_SOURCES): Add lib/hexdump.c.
13852 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
13853 (crc_mod_SOURCES): New macro.
13854 (crc_mod_CFLAGS): Likewise.
13855 (crc_mod_LDFLAGS): Likewise.
13856
13857 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
13858
13859 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13860
13861 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13862
13863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13864
13865 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13866
13867 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
13868
13869 * commands/help.c: Include <grub/term.h>.
13870 (TERM_WIDTH): Removed. Updated all users.
13871
13872 2008-07-27 Pavel Roskin <proski@gnu.org>
13873
13874 * util/getroot.c (find_root_device): Rephrase a comment to avoid
13875 spurious warnings about a comment within a comment.
13876
13877 2008-07-25 Robert Millan <rmh@aybabtu.com>
13878
13879 * util/getroot.c (find_root_device): Skip devices that match
13880 /dev/dm-[0-9]. This lets the real device be found for any type of
13881 abstraction (LVM, EVMS, RAID..).
13882 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
13883 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
13884 device is found first, find_root_device() will now skip it.
13885
13886 2008-07-24 Pavel Roskin <proski@gnu.org>
13887
13888 * include/grub/types.h: Use __builtin_bswap32() and
13889 __builtin_bswap64() with gcc 4.3 and newer.
13890
13891 2008-07-24 Christian Franke <franke@computer.org>
13892
13893 * util/i386/pc/grub-install.in: If `--debug' is specified,
13894 pass `--verbose' to grub-setup.
13895 Abort script if make_system_path_relative_to_its_root() fails.
13896
13897 2008-07-24 Bean <bean123ch@gmail.com>
13898
13899 * configure.ac: Fixed a bug caused by the previous cygwin patch,
13900 variable `target_platform' should be `platform'.
13901
13902 2008-07-24 Bean <bean123ch@gmail.com>
13903
13904 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
13905 (grub_png_init_fixed_block): New function.
13906 (grub_png_decode_image_data): Handle fixed huffman code compression.
13907
13908 2008-07-24 Bean <bean123ch@gmail.com>
13909
13910 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
13911 (grub_pe2elf_SOURCES): New macro.
13912 (CLEANFILES): Add grub-pe2elf.
13913
13914 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
13915 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
13916 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
13917 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
13918 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
13919 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
13920 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
13921 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
13922 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
13923 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
13924 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
13925 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
13926 (GRUB_PE32_DT_FUNCTION): Likewise.
13927 (GRUB_PE32_REL_I386_DIR32): Likewise.
13928 (GRUB_PE32_REL_I386_REL32): Likewise.
13929 (grub_pe32_symbol): New structure.
13930 (grub_pe32_reloc): Likewise.
13931
13932 * util/grub-pe2elf.c: New file.
13933
13934 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
13935 start symbol in non pc platform.
13936
13937 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
13938
13939 The following patches are from Christian Franke.
13940
13941 * include/grub/dl.h: Remove .previous, gas supports this only
13942 for ELF format.
13943
13944 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
13945 Remove .type, gas supports this only for ELF format.
13946
13947 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
13948 nullbytes in symbol table. This fixes an infinite loop if table is
13949 zero filled.
13950
13951 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
13952 TARGET_IMG_LDFLAGS and EXEEXT.
13953
13954 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
13955 TARGET_IMG_LDFLAGS_AC.
13956 (grub_CHECK_STACK_ARG_PROBE): New function.
13957
13958 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
13959
13960 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
13961
13962 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
13963 to set TARGET_IMG_LD* accordingly.
13964 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
13965 Add call to grub_CHECK_STACK_ARG_PROBE.
13966 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
13967
13968 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
13969
13970 * genmk.rb: Add EXEEXT to CLEANFILES.
13971
13972 2008-07-23 Robert Millan <rmh@aybabtu.com>
13973
13974 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
13975 define the codes for arrows and lines used for the menu).
13976 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
13977 as well.
13978
13979 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
13980 fonts, because the latter are too slow.
13981
13982 2008-07-21 Bean <bean123ch@gmail.com>
13983
13984 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
13985 a20. Run keyboard test last, as it will cause macbook to halt.
13986
13987 2008-07-18 Pavel Roskin <proski@gnu.org>
13988
13989 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
13990 load foreign architecture modules correctly anyway. Keep
13991 support for loading host architecture modules, whether we
13992 compile them or not.
13993
13994 2008-07-17 Pavel Roskin <proski@gnu.org>
13995
13996 * configure.ac: Use -m32 or -m64 regardless of whether we had to
13997 change target_cpu. The compiler default can mismatch target_cpu
13998 in any case.
13999
14000 * disk/efi/efidisk.c: Fix format warnings on x86_64.
14001 * kern/efi/efi.c: Likewise.
14002
14003 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
14004 target compiler is functional.
14005 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
14006 are set up.
14007
14008 * configure.ac: Default to efi platform for x86_64-apple. Allow
14009 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
14010 adjustments from the rest, only do them if target is not
14011 explicitly given. Merge other adjustments with the final sanity
14012 check. Remove an extraneous check for supported CPU. Be
14013 specific which CPU and which platform is not supported.
14014
14015 * configure.ac: Default to pc platform for x86_64.
14016
14017 2008-07-17 Robert Millan <rmh@aybabtu.com>
14018
14019 Partial LinuxBIOS -> Coreboot rename.
14020
14021 * conf/i386-linuxbios.rmk: Renamed to ...
14022 * conf/i386-coreboot.rmk: ... this.
14023 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
14024 * configure.ac: Accept "coreboot" as input platform (but maintain
14025 compatibility with "linuxbios").
14026 * include/grub/i386/linuxbios: Renamed to ...
14027 * include/grub/i386/coreboot: ... this.
14028
14029 2008-07-17 Bean <bean123ch@gmail.com>
14030
14031 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
14032 (appleldr_mod_SOURCE): New variable.
14033 (appleldr_mod_CFLAGS): Likewise.
14034 (appleldr_mod_LDFLAGS): Likewise.
14035 (pci_mod_SOURCES): Likewise.
14036 (pci_mod_CFLAGS): Likewise.
14037 (pci_mod_LDFLAGS): Likewise.
14038 (lspci_mod_SOURCES): Likewise.
14039 (lspci_mod_CFLAGS): Likewise.
14040 (lspci_mod_LDFLAGS): Likewise.
14041
14042 * conf/x86_64-efi.rmk: New file.
14043
14044 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
14045 macro.
14046 (grub_efidisk_write): Likewise.
14047
14048 * include/efi/api.h (efi_call_0): New macro.
14049 (efi_call_1): Likewise.
14050 (efi_call_2): Likewise.
14051 (efi_call_3): Likewise.
14052 (efi_call_4): Likewise.
14053 (efi_call_5): Likewise.
14054 (efi_call_6): Likewise.
14055
14056 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
14057 grub_rescue_cmd_chainloader.
14058
14059 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
14060 (grub_pe32_optional_header): Change some fields based on i386 or
14061 x86_64 platform.
14062 (GRUB_PE32_PE32_MAGIC): Likewise.
14063
14064 * include/grub/efi/uga_draw.h: New file.
14065
14066 * include/grub/elf.h (STN_ABS): New constant.
14067 (R_X86_64_NONE): Relocation constant for x86_64.
14068 (R_X86_64_64): Likewise.
14069 (R_X86_64_PC32): Likewise.
14070 (R_X86_64_GOT32): Likewise.
14071 (R_X86_64_PLT32): Likewise.
14072 (R_X86_64_COPY): Likewise.
14073 (R_X86_64_GLOB_DAT): Likewise.
14074 (R_X86_64_JUMP_SLOT): Likewise.
14075 (R_X86_64_RELATIVE): Likewise.
14076 (R_X86_64_GOTPCREL): Likewise.
14077 (R_X86_64_32): Likewise.
14078 (R_X86_64_32S): Likewise.
14079 (R_X86_64_16): Likewise.
14080 (R_X86_64_PC16): Likewise.
14081 (R_X86_64_8): Likewise.
14082 (R_X86_64_PC8): Likewise.
14083
14084 * include/grub/i386/efi/pci.h: New file.
14085
14086 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
14087 Change it value based on platform.
14088 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
14089 (GRUB_E820_RAM): Likewise.
14090 (GRUB_E820_RESERVED): Likewise.
14091 (GRUB_E820_ACPI): Likewise.
14092 (GRUB_E820_NVS): Likewise.
14093 (GRUB_E820_EXEC_CODE): Likewise.
14094 (GRUB_E820_MAX_ENTRY): Likewise.
14095 (grub_e820_mmap): New structure.
14096 (linux_kernel_header): Change the efi field according to different
14097 kernel version, also field from linux_kernel_header.
14098
14099 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
14100
14101 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
14102 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
14103 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
14104 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
14105 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
14106 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
14107 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
14108 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
14109 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
14110 (GRUB_PCI_ADDR_IO_MASK): Likewise.
14111
14112 * include/grub/x86_64/efi/kernel.h: New file.
14113
14114 * include/grub/x86_64/efi/loader.h: Likewise.
14115
14116 * include/grub/x86_64/efi/machine.h: Likewise.
14117
14118 * include/grub/x86_64/efi/pci.h: Likewise.
14119
14120 * include/grub/x86_64/efi/time.h: Likewise.
14121
14122 * include/grub/x86_64/linux.h: Likewise.
14123
14124 * include/grub/x86_64/setjmp.h: Likewise.
14125
14126 * include/grub/x86_64/time.h: Likewise.
14127
14128 * include/grub/x86_64/types.h: Likewise.
14129
14130 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
14131 GRUB_TARGET_SIZEOF_VOID_P.
14132
14133 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
14134 (grub_efi_locate_handle): Likewise.
14135 (grub_efi_open_protocol): Likewise.
14136 (grub_efi_set_text_mode): Likewise.
14137 (grub_efi_stall): Likewise.
14138 (grub_exit): Likewise.
14139 (grub_reboot): Likewise.
14140 (grub_halt): Likewise.
14141 (grub_efi_exit_boot_services): Likewise.
14142 (grub_get_rtc): Likewise.
14143
14144 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
14145 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
14146 (grub_efi_allocate_pages): Wrap efi calls.
14147 (grub_efi_free_pages): Wrap efi calls.
14148 (grub_efi_get_memory_map): Wrap efi calls.
14149
14150 * kern/x86_64/dl.c: New file.
14151
14152 * kern/x86_64/efi/callwrap.S: Likewise.
14153
14154 * kern/x86_64/efi/startup.S: Likewise.
14155
14156 * loader/efi/appleloader.c: Likewise.
14157
14158 * loader/efi/chainloader.c (cmdline): New variable.
14159 (grub_chainloader_unload): Wrap efi calls.
14160 (grub_chainloader_boot): Likewise.
14161 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
14162 command line.
14163
14164 * loader/efi/chainloader_normal.c (chainloader_command):
14165 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
14166 command line.
14167
14168 * loader/i386/efi/linux.c (allocate_pages): Change allocation
14169 method.
14170 (grub_e820_add_region): New function.
14171 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
14172 booting.
14173 (grub_find_video_card): New function.
14174 (grub_linux_setup_video): New function.
14175 (grub_rescue_cmd_linux): Probe for video information.
14176
14177 * normal/x86_64/setjmp.S: New file.
14178
14179 * term/efi/console.c (map_char): New function.
14180 (grub_console_putchar): Map unicode char.
14181 (grub_console_checkkey): Wrap efi calls.
14182 (grub_console_getkey): Likewise.
14183 (grub_console_getwh): Likewise.
14184 (grub_console_gotoxy): Likewise.
14185 (grub_console_cls): Likewise.
14186 (grub_console_setcolorstate): Likewise.
14187 (grub_console_setcursor): Likewise.
14188
14189 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
14190
14191 2008-07-16 Pavel Roskin <proski@gnu.org>
14192
14193 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
14194 format strings.
14195
14196 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
14197 pointer, not an integer. This fixes a warning and prevents
14198 precision loss on 64-bit systems.
14199 (relocate_addresses): Remove unneeded cast.
14200
14201 2008-07-15 Pavel Roskin <proski@gnu.org>
14202
14203 * kern/i386/ieee1275/init.c: Include grub/cache.h.
14204
14205 * term/ieee1275/ofconsole.c: Disable code unused on i386.
14206
14207 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
14208 Fix comparison between signed and unsigned.
14209
14210 * include/grub/i386/ieee1275/console.h: Declare
14211 grub_console_init() and grub_console_fini().
14212
14213 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
14214 It's empty and unused.
14215
14216 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
14217 beginning to avoid warnings with some compilers.
14218
14219 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
14220 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
14221
14222 2008-07-14 Pavel Roskin <proski@gnu.org>
14223
14224 * kern/env.c (grub_register_variable_hook): Don't copy empty
14225 string, it leaks memory. Pass "" to grub_env_set(), it should
14226 handle constant strings.
14227
14228 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
14229 * commands/cmp.c (grub_cmd_cmp): Likewise.
14230 * kern/dl.c (grub_dl_flush_cache): Likewise.
14231 (grub_dl_load_core): Likewise.
14232 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
14233 (grub_elf64_load_phdrs): Likewise.
14234
14235 2008-07-13 Pavel Roskin <proski@gnu.org>
14236
14237 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
14238 between signed and unsigned.
14239 (LzmaEnc_Finish): Fix warning about an unused parameter.
14240
14241 2008-07-13 Bean <bean123ch@gmail.com>
14242
14243 * Makefile.in (enable_lzo): New rule.
14244
14245 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
14246
14247 * configure.ac (ENABLE_LZO): New option --enable-lzo.
14248
14249 * boot/i386/pc/lnxboot.S: #include <config.h>.
14250
14251 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
14252 its value according to the compression algorithm used, lzo or lzma.
14253
14254 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
14255 compression algorithm according to configure macro.
14256
14257 * kern/i386/pc/startup.S (codestart): Likewise.
14258
14259 * kern/i386/pc/lzma_decode.S: New file.
14260
14261 * include/grub/lib/LzFind.h: Likewise.
14262
14263 * include/grub/lib/LzHash.h: Likewise.
14264
14265 * include/grub/lib/LzmaDec.h: Likewise.
14266
14267 * include/grub/lib/LzmaEnc.h: Likewise.
14268
14269 * include/grub/lib/LzmaTypes.h: Likewise.
14270
14271 * lib/LzFind.c: Likewise.
14272
14273 * lib/LzmaDec.c: Likewise.
14274
14275 * lib/LzmaEnc.c: Likewise.
14276
14277 2008-07-13 Bean <bean123ch@gmail.com>
14278
14279 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
14280 (grub_ext4_extent_header): New structure.
14281 (grub_ext4_extent): Likewise.
14282 (grub_ext4_extent_idx): Likewise.
14283 (grub_ext4_find_leaf): New function.
14284 (grub_ext2_read_block): Handle extents.
14285
14286 2008-07-12 Robert Millan <rmh@aybabtu.com>
14287
14288 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
14289
14290 2008-07-11 Robert Millan <rmh@aybabtu.com>
14291
14292 * util/grub.d/40_custom.in: New file. Example on how to add custom
14293 entries to /etc/grub.d.
14294 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
14295 40_custom (implicitly, by merging all the grub.d rules).
14296
14297 2008-07-11 Pavel Roskin <proski@gnu.org>
14298
14299 * commands/read.c (grub_getline): Fix invalid memory access.
14300 Don't add newline to the variable value.
14301
14302 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
14303 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
14304 (serial_hw_get_port): Check validity of the port number.
14305 (grub_cmd_serial): Check return value of serial_hw_get_port().
14306
14307 2008-07-07 Pavel Roskin <proski@gnu.org>
14308
14309 * boot/i386/pc/diskboot.S (notification_string): Replace
14310 "Loading kernel" with just "loading". This is shorter, less
14311 confusing and saves a few bytes for possible future changes.
14312
14313 2008-07-05 Pavel Roskin <proski@gnu.org>
14314
14315 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
14316 size for ATAPI devices, they are undefined. Output sector
14317 number in decimal form.
14318
14319 * disk/ata.c: Use named constants for status bits.
14320
14321 2008-07-04 Pavel Roskin <proski@gnu.org>
14322
14323 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
14324 grub_addr_t before casting it to the void pointer to fix a
14325 warning. Non-addressable regions are discarded earlier.
14326 (grub_arch_modules_addr): Cast _end to grub_addr_t.
14327 * kern/i386/linuxbios/table.c: Include grub/misc.h.
14328 (check_signature): Don't shadow table_header.
14329 (grub_linuxbios_table_iterate): Cast numeric constants to
14330 grub_linuxbios_table_header_t.
14331 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
14332 grub_stop().
14333
14334 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
14335 prevent warnings.
14336
14337 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
14338 pointer, which can cause warnings. Support 64-bit addresses.
14339
14340 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
14341 of sizeof(long). This fixes PowerPC image generation on x86_64.
14342
14343 2008-07-04 Robert Millan <rmh@aybabtu.com>
14344
14345 This fixes a performance issue when pc & gpt partmap iterators
14346 didn't abort iteration even after our hook found what it was
14347 looking for (often causing expensive probes of non-existent drives).
14348
14349 Some callers relied on previous buggy behaviour, since they would
14350 raise an error when their own hooks caused early abortion of its
14351 iteration.
14352
14353 * kern/device.c (grub_device_open): Improve error message.
14354 * disk/lvm.c (grub_lvm_open): Likewise.
14355 * disk/raid.c (grub_raid_open): Likewise.
14356
14357 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
14358 when hook requests it, independently of grub_errno.
14359 (pc_partition_map_probe): Do not fail when find_func() caused
14360 early abortion of pc_partition_map_iterate().
14361
14362 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
14363 when hook requests it, independently of grub_errno.
14364 (gpt_partition_map_probe): Do not fail when find_func() caused
14365 early abortion of gpt_partition_map_iterate().
14366
14367 * kern/partition.c (grub_partition_iterate): Abort parent iteration
14368 when hook requests it, independently of grub_errno. Do not fail when
14369 part_map_iterate_hook() caused early abortion of p->iterate().
14370
14371 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
14372 when grub_partition_iterate() returned with non-zero.
14373
14374 2008-07-03 Pavel Roskin <proski@gnu.org>
14375
14376 * disk/ata.c (grub_ata_pio_write): Check status before writing,
14377 like we do in grub_ata_pio_read().
14378 (grub_ata_readwrite): Always write individual sectors. Fix the
14379 sector count for the remainder.
14380 (grub_ata_write): Enable writing to ATA devices. Correctly
14381 report error for ATAPI devices.
14382
14383 2008-07-02 Pavel Roskin <proski@gnu.org>
14384
14385 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
14386 warning.
14387
14388 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
14389 for every read sector, we already increment it for the whole
14390 batch. This fixes reading more than 256 sectors at once.
14391
14392 * util/grub-editenv.c (cmd_info): Cast argument to long
14393 explicitly. ptrdiff_t reduces to int on i386.
14394
14395 * util/grub-editenv.c (main): Be specific which parameter is
14396 missing.
14397
14398 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
14399 (memdisk): Make memdisk_orig_addr a pointer.
14400
14401 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
14402 for file offsets, use grub_off_t instead. Fix printf format
14403 warnings.
14404
14405 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
14406 there. Real unexpected warnings should not drown in the noise
14407 about known problems.
14408
14409 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
14410 grub_disk_addr_t for memory addresses.
14411
14412 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
14413 explicitly to fix a warning.
14414
14415 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
14416
14417 * Makefile.in (MODULE_LDFLAGS): New variable.
14418 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
14419 the linker accepts --build-id=none.
14420 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
14421 MODULE_LDFLAGS.
14422 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
14423
14424 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
14425 those in Linux XFS code. Provide a way to access 64-bit parent
14426 inode.
14427 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
14428 the end of struct grub_xfs_dir_header.
14429
14430 2008-07-02 Bean <bean123ch@gmail.com>
14431
14432 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
14433 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
14434 and GRUB_IEEE1275_FLAG_NO_ANSI.
14435
14436 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
14437 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
14438 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
14439
14440 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
14441 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
14442
14443 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
14444 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
14445
14446 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
14447 esc sequence on non ANSI terminal.
14448 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
14449
14450 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
14451 beginning of file.
14452
14453 2008-07-02 Bean <bean123ch@gmail.com>
14454
14455 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
14456 (grub_editenv_SOURCES): New variable.
14457 (pkglib_MODULES): Add loadenv.mod.
14458 (loadenv_mod_SOURCES): New variable.
14459 (loadenv_mod_CFLAGS): Likewise.
14460 (loadenv_mod_LDFLAGS): Likewise.
14461
14462 * include/grub/envblk.h: New file.
14463
14464 * util/envblk.c: New file.
14465
14466 * util/grub-editenv.c: New file.
14467
14468 * commands/loadenv.c: New file.
14469
14470 2008-07-01 Pavel Roskin <proski@gnu.org>
14471
14472 * include/multiboot2.h (struct multiboot_tag_module): Use char,
14473 not unsigned char. This fixes warnings and is consistent with
14474 other tags.
14475
14476 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
14477
14478 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
14479
14480 * term/tparm.c (analyze): Always set *popcount.
14481
14482 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
14483 cast to fix a warning.
14484
14485 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
14486 cast to suppress a warning.
14487
14488 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
14489 grub_fshelp_read_file() expects.
14490
14491 * fs/fat.c: Fix UUID calculation on big-endian systems. We
14492 write uuid as a 32-bit value in CPU byte order, so declare and
14493 use it as such.
14494
14495 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
14496 long if the format specifier expects it.
14497 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
14498 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14499 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
14500 long to fix a warning.
14501 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
14502 grub_dprintf() arguments to fix warnings.
14503
14504 2008-06-30 Pavel Roskin <proski@gnu.org>
14505
14506 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
14507 install_bsd_part immediately before core.img is embedded or
14508 modified on disk. This fixes core.img verification if core.img
14509 cannot be embedded.
14510
14511 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
14512 core_path to calculate the blocklist.
14513 Patch from Javier Martín <lordhabbit@gmail.com>
14514
14515 2008-06-29 Robert Millan <rmh@aybabtu.com>
14516
14517 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
14518 block to disk block.
14519 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
14520 Patch from Niels Böhm <bitbucket@arcor.de>
14521
14522 2008-06-29 Robert Millan <rmh@aybabtu.com>
14523
14524 * util/update-grub_lib.in (font_path): Search for fonts in
14525 /boot/grub first, which is more likely to be readable (we aren't
14526 deciding where fonts live, just looking for them).
14527
14528 2008-06-26 Pavel Roskin <proski@gnu.org>
14529
14530 * util/biosdisk.c (read_device_map): Don't leave dead map
14531 entries for devices failing stat() check.
14532
14533 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
14534 core_path_dev for the core.img path on the target device.
14535
14536 2008-06-26 Robert Millan <rmh@aybabtu.com>
14537
14538 * disk/fs_uuid.c: New file.
14539 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
14540 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
14541 (fs_uuid_mod_LDFLAGS): New variables.
14542 * include/grub/disk.h (grub_disk_dev_id): Add
14543 `GRUB_DISK_DEVICE_UUID_ID'.
14544 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
14545 implement iterate().
14546
14547 2008-06-26 Robert Millan <rmh@aybabtu.com>
14548
14549 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
14550 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
14551 Linux image includes no initrd.
14552
14553 2008-06-21 Javier Martín <lordhabbit@gmail.com>
14554
14555 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
14556 call to resolve the core image location that effectively appended the
14557 name twice.
14558
14559 2008-06-21 Robert Millan <rmh@aybabtu.com>
14560
14561 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
14562 call from here ...
14563
14564 * util/grub.d/10_hurd.in: ... to here ...
14565 * util/grub.d/10_linux.in: ... and here.
14566
14567 2008-06-19 Robert Millan <rmh@aybabtu.com>
14568
14569 * kern/main.c (grub_main): Export `prefix' variable immediately
14570 after it has been set by grub_machine_set_prefix().
14571
14572 2008-06-19 Robert Millan <rmh@aybabtu.com>
14573
14574 * commands/search.c (search_label, search_fs_uuid, search_file): Print
14575 search result when not saving to variable, not the other way around.
14576 When saving to variable, abort iteration as soon as a match is found.
14577
14578 2008-06-19 Robert Millan <rmh@aybabtu.com>
14579
14580 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
14581 check for partition that provides /boot/grub. Its logic is flawed,
14582 as it prevents prepare_grub_to_access_device() from being called
14583 multiple times.
14584
14585 2008-06-19 Robert Millan <rmh@aybabtu.com>
14586
14587 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
14588 "insmod" command directly when abstraction modules are needed,
14589 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
14590 since it had already been processed).
14591
14592 2008-06-19 Pavel Roskin <proski@gnu.org>
14593
14594 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
14595 changed. This is needed in case GRUB_LIBDIR changes.
14596 * conf/i386-ieee1275.rmk: Likewise.
14597 * conf/i386-linuxbios.rmk: Likewise.
14598 * conf/i386-pc.rmk: Likewise.
14599 * conf/powerpc-ieee1275.rmk: Likewise.
14600
14601 2008-06-18 Pavel Roskin <proski@gnu.org>
14602
14603 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
14604 kernel_elf_symlist.c to symlist.c for consistency with other
14605 architectures. Update all users.
14606 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
14607
14608 2008-06-18 Robert Millan <rmh@aybabtu.com>
14609
14610 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
14611 it in prefix.
14612
14613 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
14614 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
14615 a RAID device, run setup() for all members independently on whether
14616 LVM abstraction is being used.
14617 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
14618 If grub-mkimage has set `*install_dos_part == -2', don't override this
14619 value.
14620 Perform *install_dos_part adjustments independently on whether
14621 we're embedding or not.
14622 Clarify error message when image is too big for embedding.
14623 Remove duplicate *install_dos_part stanza.
14624
14625 2008-06-17 Robert Millan <rmh@aybabtu.com>
14626
14627 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
14628 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
14629 variables.
14630 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
14631 values in grub_ofconsole_normal_color and
14632 grub_ofconsole_highlight_color (they're not directly related to
14633 background and foreground).
14634 (grub_ofconsole_setcolorstate): Extract background and foreground
14635 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
14636
14637 2008-06-17 Robert Millan <rmh@aybabtu.com>
14638
14639 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
14640 /boot/grub for the check in last commit, not /boot (they could be
14641 different partitions).
14642
14643 2008-06-16 Robert Millan <rmh@aybabtu.com>
14644
14645 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
14646 asked to setup access for the same partition that provides /boot,
14647 don't bother using UUIDs since our root already has the value we
14648 want.
14649
14650 2008-06-16 Robert Millan <rmh@aybabtu.com>
14651
14652 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
14653 I2O devices.
14654 Patch from Sven Mueller <sven@debian.org>.
14655
14656 2008-06-16 Robert Millan <rmh@aybabtu.com>
14657
14658 * util/update-grub.in: Check for $EUID instead of $UID.
14659 Reported by Vincent Zweije.
14660
14661 2008-06-16 Bean <bean123ch@gmail.com>
14662
14663 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
14664 (grub_ext2_read_block): Likewise.
14665 (grub_ext2_read_inode): Likewise.
14666 (grub_ext2_mount): Likewise.
14667 (grub_ext2_close): Likewise.
14668 (grub_ext3_get_journal): Removed.
14669
14670 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
14671 (grub_reiserfs_read_symlink): Likewise.
14672 (grub_reiserfs_mount): Likewise.
14673 (grub_reiserfs_open): Likewise.
14674 (grub_reiserfs_read): Likewise.
14675 (grub_reiserfs_close): Likewise.
14676 (grub_reiserfs_get_journal): Removed.
14677
14678 * fs/fshelp.c (grub_fshelp_read): Removed.
14679 (grub_fshelp_map_block): Likewise.
14680
14681 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
14682 (grub_fshelp_journal): Likewise.
14683 (grub_fshelp_read): Likewise.
14684 (grub_fshelp_map_block): Likewise.
14685
14686 2008-06-16 Pavel Roskin <proski@gnu.org>
14687
14688 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
14689 floating point anymore.
14690 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
14691
14692 2008-06-15 Pavel Roskin <proski@gnu.org>
14693
14694 * commands/ls.c (grub_ls_list_files): Use integer calculations
14695 for human readable format, avoid floating point use.
14696 * kern/misc.c (grub_ftoa): Remove.
14697 (grub_vsprintf): Remove floating point support.
14698
14699 2008-06-15 Robert Millan <rmh@aybabtu.com>
14700
14701 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
14702 devices.
14703 Reported by Max Vozeler.
14704
14705 2008-06-15 Robert Millan <rmh@aybabtu.com>
14706
14707 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
14708 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
14709 skipped later.
14710 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
14711 the beginning of the prefix.
14712
14713 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
14714 It is assumed that if we have a memdisk, grub-mkimage has set
14715 grub_prefix to include the "(memdisk)" drive in it.
14716
14717 2008-06-15 Robert Millan <rmh@aybabtu.com>
14718
14719 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
14720 Initialize keyboard controller after registering the terminal, so that
14721 grub_printf() can be called from grub_keyboard_controller_init().
14722
14723 2008-06-15 Robert Millan <rmh@aybabtu.com>
14724
14725 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
14726 extent-btree which is written as big endian on disk.
14727 Reported by Alain Greppin <al@chilibi.org>.
14728
14729 2008-06-14 Robert Millan <rmh@aybabtu.com>
14730
14731 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
14732 * util/i386/pc/grub-install.in (modules): Likewise.
14733
14734 2008-06-13 Pavel Roskin <proski@gnu.org>
14735
14736 * commands/ls.c (grub_ls_list_files): Fix format warnings.
14737
14738 2008-06-13 Bean <bean123ch@gmail.com>
14739
14740 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
14741
14742 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
14743
14744 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
14745 to indicate sparse block.
14746
14747 2008-06-12 Pavel Roskin <proski@gnu.org>
14748
14749 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
14750 number, grub_fshelp_read() does it for us.
14751
14752 * fs/fshelp.c (grub_fshelp_read): New function. Implement
14753 linear disk read with journal translation.
14754 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
14755 * include/grub/fshelp.h: Declare grub_fshelp_read().
14756
14757 2008-06-09 Pavel Roskin <proski@gnu.org>
14758
14759 * fs/minix.c (grub_minix_mount): Handle error reading
14760 superblock.
14761
14762 2008-06-08 Robert Millan <rmh@aybabtu.com>
14763
14764 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
14765 don't append the RAID prefix afterwards.
14766 Reported by Clint Adams.
14767
14768 2008-06-08 Robert Millan <rmh@aybabtu.com>
14769
14770 Based on description from Pavel:
14771 * kern/disk.c (grub_disk_check_range): Rename to ...
14772 (grub_disk_adjust_range): ... this. Add a comment explaining the
14773 tasks performed by this function.
14774
14775 2008-06-08 Robert Millan <rmh@aybabtu.com>
14776
14777 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
14778 `num_serial' (for consistency with other variables).
14779 (struct grub_ntfs_data): Add `uuid' member.
14780 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
14781 (grub_ntfs_uuid): New function.
14782 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
14783
14784 2008-06-07 Pavel Roskin <proski@gnu.org>
14785
14786 * util/biosdisk.c (open_device): Revert last change to the
14787 function, it broke installation. The sector needs to be
14788 different dependent on which device is opened.
14789
14790 2008-06-06 Robert Millan <rmh@aybabtu.com>
14791
14792 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
14793 rest of GRUB, and breakage doesn't happen if its value were modified.
14794
14795 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
14796 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
14797 a constant (same value).
14798 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
14799 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
14800
14801 2008-06-06 Robert Millan <rmh@aybabtu.com>
14802
14803 * util/biosdisk.c (open_device): Do not modify sector offset when
14804 accessing a partition. kern/disk.c already handles this for us.
14805
14806 2008-06-06 Robert Millan <rmh@aybabtu.com>
14807
14808 * util/grub-emu.c (grub_machine_init): Move code in this function from
14809 here ...
14810 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
14811 segfault in case grub_printf() is called).
14812
14813 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
14814 grub_probe. Update all users not to explicitly add it again.
14815 (grub_device): New variable; contains corresponding device for grubdir.
14816 (fs_module, partmap_module, devabstraction_module): Pass
14817 `--device ${grub_device}' to grub_probe to avoid traversing /dev
14818 every time.
14819
14820 2008-06-05 Robert Millan <rmh@aybabtu.com>
14821
14822 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
14823 is found, print it (same layout as with labels).
14824
14825 2008-06-04 Robert Millan <rmh@aybabtu.com>
14826
14827 * util/biosdisk.c (get_drive): Rename to ...
14828 (find_grub_drive): ... this. Update all users.
14829
14830 (get_os_disk): Rename to ...
14831 (convert_system_partition_to_system_disk): ... this. Update all users.
14832
14833 (find_drive): Rename to ...
14834 (find_system_device): ... this. Update all users.
14835
14836 2008-06-04 Robert Millan <rmh@aybabtu.com>
14837
14838 * util/biosdisk.c (get_os_disk): Handle IDA devices.
14839 * util/grub-mkdevicemap.c (get_mmc_disk_name)
14840 (make_device_map): Likewise.
14841
14842 2008-06-01 Robert Millan <rmh@aybabtu.com>
14843
14844 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
14845 before dereferencing it.
14846
14847 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
14848 union with fat12/fat16-specific ones. Add some new fields, including
14849 `num_serial' for both versions.
14850 (struct grub_fat_data): Add `uuid' member.
14851 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
14852 names. Initialize `data->uuid' using `num_serial'.
14853 (grub_fat_uuid): New function.
14854 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
14855
14856 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
14857 (grub_reiserfs_uuid): New function.
14858 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
14859 member.
14860
14861 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
14862 (grub_xfs_uuid): New function.
14863 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
14864
14865 2008-06-01 Robert Millan <rmh@aybabtu.com>
14866
14867 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
14868 code that is backward compatible with pre-uuid search command.
14869
14870 2008-05-31 Robert Millan <rmh@aybabtu.com>
14871
14872 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
14873 floppies after everything else, to ensure floppy drive isn't accessed
14874 unnecessarily (patch from Bean).
14875
14876 2008-05-31 Robert Millan <rmh@aybabtu.com>
14877
14878 * commands/search.c (search_label, search_fs_uuid, search_file): Do
14879 not print device names when we were asked to set a variable.
14880
14881 2008-05-31 Robert Millan <rmh@aybabtu.com>
14882
14883 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
14884 using "cursor-on" and "cursor-off" commands (understood at least by
14885 the Open Firmware flavour on OLPC).
14886
14887 2008-05-31 Michael Gorven <michael@gorven.za.net>
14888
14889 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
14890 on and off sequences.
14891
14892 2008-05-31 Robert Millan <rmh@aybabtu.com>
14893
14894 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
14895 * util/update-grub.in: Likewise.
14896
14897 2008-05-30 Pavel Roskin <proski@gnu.org>
14898
14899 * util/biosdisk.c (linux_find_partition): Simplify logic and
14900 make the code more universal. Keep special processing for
14901 devfs, but use a simple rule for all other devices. If the
14902 device ends with a number, append 'p' and the partition number.
14903 Otherwise, append only the partition number.
14904
14905 2008-05-30 Robert Millan <rmh@aybabtu.com>
14906
14907 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
14908 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
14909 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
14910 the `root' parameter to Linux.
14911
14912 2008-05-30 Robert Millan <rmh@aybabtu.com>
14913
14914 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
14915 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
14916 --fs_uuid with --fs-uuid.
14917 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
14918 all filesystems support them).
14919
14920 2008-05-30 Robert Millan <rmh@aybabtu.com>
14921
14922 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
14923 grub_printf() flags, since we're printing in units of 2 bytes.
14924
14925 2008-05-30 Robert Millan <rmh@aybabtu.com>
14926
14927 * util/grub.d/00_header.in: Remove obsolete comment referencing
14928 convert_system_path_to_grub_path().
14929 * util/update-grub.in: Likewise.
14930 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
14931 (convert_system_path_to_grub_path): Add a warning message explaining
14932 that this function is deprecated. Rely on is_path_readable_by_grub()
14933 for the readability checks.
14934 (font_path): Use is_path_readable_by_grub() for the readability
14935 check rather than convert_system_path_to_grub_path().
14936
14937 2008-05-30 Robert Millan <rmh@aybabtu.com>
14938
14939 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
14940 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
14941 converting it first.
14942 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
14943 grub.cfg for access to font file, and afterwards call it again to set
14944 the root device.
14945
14946 2008-05-30 Robert Millan <rmh@aybabtu.com>
14947
14948 * commands/search.c (options): Add --fs_uuid option.
14949 (search_fs_uuid): New function.
14950 (grub_cmd_search): Fix --set argument passing.
14951 Use search_fs_uuid() when requested via --fs_uuid.
14952 (grub_search_init): Update help message.
14953 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
14954 and redeclare it as an array of 16-bit words.
14955 (grub_ext2_uuid): New function.
14956 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
14957 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
14958 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
14959 (GRUB_DEVICE_BOOT_UUID): New variables.
14960 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
14961 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
14962 whenever possible.
14963 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
14964 just assume `root' variable has the right value.
14965 * util/grub.d/10_linux.in: Likewise.
14966 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
14967 via PRINT_FS_UUID.
14968 (main): Recognise `-t fs_uuid' argument.
14969
14970 2008-05-30 Robert Millan <rmh@aybabtu.com>
14971
14972 * util/biosdisk.c (map): Redefine structure to hold information
14973 about GRUB drive name.
14974 (get_drive): Reimplement without assuming (and verifying) BIOS-like
14975 drive names.
14976 (call_hook): Remove.
14977 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
14978 member. Assume drive has partitions.
14979 (grub_util_biosdisk_open): Access device names via `.device' struct
14980 member.
14981 (open_device): Likewise.
14982 (find_drive): Likewise.
14983 (read_device_map): Adjust map[] usage to match the new struct
14984 definition. Don't check for duplicates (still possible, but not cheap
14985 anymore).
14986 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
14987 (make_device_name): Remove assumption of BIOS-like drive names.
14988
14989 2008-05-30 Pavel Roskin <proski@gnu.org>
14990
14991 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
14992 compiling execute.c doesn't need grub_script.tab.h anymore.
14993 (normal/command.c_DEPENDENCIES): Likewise.
14994 (normal/function.c_DEPENDENCIES): Likewise.
14995 * conf/i386-ieee1275.rmk: Likewise.
14996 * conf/i386-linuxbios.rmk: Likewise.
14997 * conf/i386-pc.rmk: Likewise.
14998 * conf/powerpc-ieee1275.rmk: Likewise.
14999 * conf/sparc64-ieee1275.rmk: Likewise.
15000
15001 2008-05-29 Pavel Roskin <proski@gnu.org>
15002
15003 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
15004 when scanning metadata for volume group name.
15005
15006 * include/grub/script.h: Don't include grub_script.tab.h. It's
15007 a generated file, which may only be included from the files with
15008 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
15009 use union YYSTYPE, as the later allows forward declaration.
15010 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
15011
15012 2008-05-29 Robert Millan <rmh@aybabtu.com>
15013
15014 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
15015 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
15016 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
15017 (grub_console_checkkey): Add grub_dprintf() call to report unknown
15018 scan codes.
15019
15020 2008-05-29 Robert Millan <rmh@aybabtu.com>
15021
15022 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
15023 control key combinations.
15024
15025 2008-05-29 Robert Millan <rmh@aybabtu.com>
15026
15027 * util/powerpc/ieee1275/grub-install.in: Move from here ...
15028 * util/ieee1275/grub-install.in: ... to here.
15029 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
15030 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
15031 (grub_install_SOURCES): Likewise.
15032
15033 2008-05-29 Robert Millan <rmh@aybabtu.com>
15034
15035 * fs/affs.c: Update copyright year.
15036 * fs/ext2.c: Likewise.
15037 * fs/fshelp.c: Likewise.
15038 * fs/hfsplus.c: Likewise.
15039 * fs/ntfs.c: Likewise.
15040 * fs/xfs.c: Likewise.
15041 * include/grub/fshelp.h: Likewise.
15042 * util/grub-mkdevicemap.c: Likewise.
15043
15044 2008-05-28 Robert Millan <rmh@aybabtu.com>
15045
15046 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
15047 might need to be fatfs to support some firmware implementations
15048 (e.g. OFW or EFI).
15049
15050 2008-05-28 Robert Millan <rmh@aybabtu.com>
15051
15052 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
15053 devices.
15054 * util/grub-mkdevicemap.c (get_mmc_disk_name)
15055 (make_device_map): Likewise.
15056
15057 2008-05-20 Bean <bean123ch@gmail.com>
15058
15059 * fs/fshelp.c (grub_fshelp_map_block): New function.
15060 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
15061 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
15062
15063 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
15064 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
15065 (grub_fshelp_journal): New structure.
15066 (grub_fshelp_map_block): New function prototype.
15067 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
15068 (grub_fshelp_map_block): Likewise.
15069
15070 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
15071 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
15072 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
15073 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
15074 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
15075 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
15076 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
15077 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
15078 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
15079 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
15080 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
15081 (grub_ext2_sblock): New members for journal support.
15082 (grub_ext3_journal_header): New structure.
15083 (grub_ext3_journal_revoke_header): Likewise.
15084 (grub_ext3_journal_block_tag): Likewise.
15085 (grub_ext3_journal_sblock): Likewise.
15086 (grub_fshelp_node): New members logfile and journal.
15087 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
15088 grub_fshelp_map_block to get real block number.
15089 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
15090 number.
15091 (grub_ext2_read_inode): Likewise.
15092 (grub_ext3_get_journal): New function.
15093 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
15094 (grub_ext2_close): Release memory used by journal.
15095
15096 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
15097 (REISERFS_MAGIC_DESC_BLOCK): New macro.
15098 (grub_reiserfs_transaction_header): Renamed to
15099 grub_reiserfs_description_block, replace field data with real_blocks.
15100 (grub_reiserfs_commit_block): New structure.
15101 (grub_reiserfs_data): New member journal.
15102 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
15103 number.
15104 (grub_reiserfs_read_symlink): Likewise.
15105 (grub_reiserfs_iterate_dir): Likewise.
15106 (grub_reiserfs_open): Likewise.
15107 (grub_reiserfs_read): Likewise.
15108 (grub_reiserfs_get_journal): New function.
15109 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
15110 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
15111 using grub_reiserfs_get_journal.
15112 (grub_reiserfs_close): Release memory used by journal.
15113
15114 * fs/affs.c (grub_affs_read_block): Change block type to
15115 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
15116
15117 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
15118
15119 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
15120
15121 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
15122
15123 * fs/udf.c (grub_udf_read_block): Change block type to
15124 grub_disk_addr_t. Use type cast to avoid warning.
15125
15126 * fs/xfs.c (grub_xfs_read_block): Likewise.
15127
15128 2008-05-16 Christian Franke <franke@computer.org>
15129
15130 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
15131 to ensure that break with ESC will always work.
15132 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
15133 Remove ESC from keyboard queue.
15134
15135 2008-05-16 Christian Franke <franke@computer.org>
15136
15137 * util/biosdisk.c: [__CYGWIN__] Add includes.
15138 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
15139 (get_os_disk): Move variable declarations to OS specific
15140 parts to avoid warning.
15141 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
15142 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
15143 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
15144 Cygwin.
15145 * util/getroot.c: [__CYGWIN__] Add includes.
15146 (strip_extra_slashes): Fix "/" case.
15147 [__CYGWIN__] (get_win32_path): New function.
15148 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
15149 [__CYGWIN__] (find_root_device): Disable.
15150 [__CYGWIN__] (get_bootsec_serial): New function.
15151 [__CYGWIN__] (find_cygwin_root_device): Likewise.
15152 [__linux__] (grub_guess_root_device): Add early returns to simplify
15153 structure.
15154 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
15155 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
15156 check for Linux only.
15157
15158 2008-05-15 Bean <bean123ch@gmail.com>
15159
15160 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
15161 keyboard hang problem in apple's intel mac.
15162
15163 2008-05-09 Robert Millan <rmh@aybabtu.com>
15164
15165 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
15166 devices.
15167 * util/grub-mkdevicemap.c (get_virtio_disk_name)
15168 (make_device_map): Likewise.
15169 Reported by Aurelien Jarno <aurel32@debian.org>
15170
15171 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
15172
15173 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
15174 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
15175 (make_device_map): Output entries for xvd type disks.
15176
15177 2008-05-07 Robert Millan <rmh@aybabtu.com>
15178
15179 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
15180 devices.
15181 * util/grub-mkdevicemap.c (get_cciss_disk_name)
15182 (make_device_map): Likewise.
15183 Reported by Roland Dreier <rdreier@cisco.com>
15184
15185 2008-05-07 Robert Millan <rmh@aybabtu.com>
15186
15187 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
15188 grub_strstr() call. Correct a few mistakes in failure path handling.
15189
15190 2008-05-06 Robert Millan <rmh@aybabtu.com>
15191
15192 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
15193 Do not print a trailing slash (therefore, the root directory is an
15194 empty string).
15195 (convert_system_path_to_grub_path): Do not remove trailing slash
15196 from make_system_path_relative_to_its_root() output.
15197
15198 * util/i386/pc/grub-install.in: Add trailing slash to output from
15199 make_system_path_relative_to_its_root().
15200
15201 2008-05-06 Robert Millan <rmh@aybabtu.com>
15202
15203 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
15204 ensures that output lines aren't intermangled with those sent to
15205 stderr (via grub_util_info()).
15206 * util/grub-probe.c (grub_refresh): Likewise.
15207 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
15208
15209 2008-05-05 Christian Franke <franke@computer.org>
15210
15211 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
15212 Add Cygwin device names.
15213 (get_ide_disk_name) [__CYGWIN__]: Likewise.
15214 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
15215 (check_device): Return error instead of success on empty name.
15216 (make_device_map): Move label inside linux specific code to
15217 prevent compiler warning.
15218
15219 2008-04-30 Robert Millan <rmh@aybabtu.com>
15220
15221 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
15222 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
15223 first boot option.
15224 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
15225
15226 2008-04-29 Robert Millan <rmh@aybabtu.com>
15227
15228 * docs/grub.cfg: New file (example GRUB configuration).
15229
15230 2008-04-26 Robert Millan <rmh@aybabtu.com>
15231
15232 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
15233 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
15234 and `disk/ieee1275/nand.c'.
15235
15236 2008-04-25 Bean <bean123ch@gmail.com>
15237
15238 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
15239 i386-linuxbios.
15240
15241 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
15242 change the buffer size to 4096 for cdrom device.
15243
15244 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
15245 and nand.mod.
15246 (_linux_mod_SOURCES): New variable.
15247 (_linux_mod_CFLAGS): Likewise.
15248 (_linux_mod_LDFLAGS): Likewise.
15249 (linux_mod_SOURCES): Likewise.
15250 (linux_mod_CFLAGS): Likewise.
15251 (linux_mod_LDFLAGS): Likewise.
15252 (nand_mod_SOURCES): Likewise.
15253 (nand_mod_CFLAGS): Likewise.
15254 (nand_mod_LDFLAGS): Likewise.
15255
15256 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
15257 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
15258 type property. (nand device in olpc don't have this property)
15259
15260 * include/grub/disk.h (grub_disk_dev_id): New macro
15261 GRUB_DISK_DEVICE_NAND_ID.
15262
15263 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
15264 function prototype.
15265 (grub_rescue_cmd_initrd): Likewise.
15266
15267 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
15268 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
15269 ofw_cif_handler and ofw_idt, adjust padding number.
15270
15271 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
15272 GRUB_MACHINE_IEEE1275 is defined.
15273
15274 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
15275 Use NESTED_FUNC_ATTR attribute on the hook parameter.
15276
15277 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
15278 on nested function heap_init.
15279 (grub_upper_mem): New variable for i386-ieee1275.
15280 (grub_get_extended_memory): New function for i386-ieee1275.
15281 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
15282
15283 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
15284 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
15285 property.
15286
15287 * loader/i386/ieee1275/linux.c: New file.
15288
15289 * loader/i386/ieee1275/linux_normal.c: New file.
15290
15291 * disk/ieee1275/nand.c: New file.
15292
15293 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
15294
15295 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
15296 value.
15297 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
15298
15299 2008-04-18 Robert Millan <rmh@aybabtu.com>
15300
15301 Restructures early code path on ieee1275 to unify grub_main() as
15302 the first C function that is executed in every platform.
15303
15304 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
15305 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
15306 cmain().
15307 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
15308 * kern/ieee1275/cmain.c (cmain): Rename to ...
15309 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
15310 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
15311 at the beginning.
15312
15313 2008-04-18 Robert Millan <rmh@aybabtu.com>
15314
15315 * util/update-grub.in: Fix syntax error when setting
15316 `GRUB_PRELOAD_MODULES'.
15317 Reported by Stephane Chazelas <stephane@artesyncp.com>
15318
15319 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
15320
15321 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
15322 section into account, newer toolchains generate unique build ids
15323 * configure.ac: remove the test for --build-id=none acceptance,
15324 we want build ids to be preserved
15325 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
15326 far from other sections don't cause the raw binary images grow
15327 size
15328
15329 2008-04-15 Robert Millan <rmh@aybabtu.com>
15330
15331 * disk/lvm.c: Update copyright year.
15332 * kern/misc.c: Likewise.
15333
15334 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
15335
15336 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
15337 there is no memory left for physical volume name.
15338
15339 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
15340
15341 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
15342 volume name mapping to support bigger than 9 character names properly.
15343
15344 2008-04-13 Robert Millan <rmh@aybabtu.com>
15345
15346 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
15347 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
15348
15349 2008-04-13 Christian Franke <franke@computer.org>
15350
15351 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
15352 to create a floppy emulation boot CD when non emulation mode
15353 does not work.
15354 Enable Joliet CD filesystem extension.
15355
15356 2008-04-13 Robert Millan <rmh@aybabtu.com>
15357
15358 * kern/misc.c (grub_strncat): Fix off-by-one error.
15359 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
15360
15361 * kern/env.c (grub_env_context_close): Clear current context, not
15362 previous one.
15363 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
15364
15365 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
15366
15367 2008-04-13 Robert Millan <rmh@aybabtu.com>
15368
15369 Improve robustness when handling LVM.
15370
15371 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
15372 (and leave `*p' unmodified).
15373 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
15374 through it.
15375 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
15376 iterating through it.
15377 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
15378 through it.
15379 (grub_lvm_scan_device): Check the return value (and fail gracefully
15380 when due) on each grub_lvm_getvalue() or grub_strstr() call.
15381 Don't assume `vg->pvs != NULL' when iterating through it.
15382
15383 2008-04-13 Robert Millan <rmh@aybabtu.com>
15384
15385 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
15386 * genmk.rb (partmap): New variable.
15387 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
15388 (#{partmap}): New target rule.
15389 * genpartmaplist.sh: New file.
15390 * Makefile.in (pkglib_DATA): Add partmap.lst.
15391 (partmap.lst): New target rule.
15392 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
15393 modules (including all partition maps), instead of preloading them.
15394
15395 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
15396
15397 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
15398 `linux-boot-prober' (if installed) to detect other operating
15399 systems which are installed on the computer and add them to
15400 the boot menu.
15401 * conf/common.rmk: Build and install 30_os-prober.
15402
15403 2008-04-12 Robert Millan <rmh@aybabtu.com>
15404
15405 * kern/powerpc/ieee1275/init.c: Move from here ...
15406 * kern/ieee1275/init.c: ... to here. Update all users.
15407
15408 * kern/powerpc/ieee1275/cmain.c: Move from here ...
15409 * kern/ieee1275/cmain.c: ... to here. Update all users.
15410
15411 * kern/powerpc/ieee1275/openfw.c: Move from here ...
15412 * kern/ieee1275/openfw.c: ... to here. Update all users.
15413
15414 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
15415 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
15416
15417 2008-04-10 Pavel Roskin <proski@gnu.org>
15418
15419 * configure.ac: Always use "_cv_" in cache variables for
15420 compatibility with Autoconf 2.62.
15421
15422 2008-04-07 Robert Millan <rmh@aybabtu.com>
15423
15424 Revert grub/machine/init.h addition by Pavel (since it breaks on
15425 i386-ieee1275 and others):
15426 * util/i386/pc/misc.c: Remove grub/machine/init.h.
15427 * util/powerpc/ieee1275/misc.c: Likewise.
15428
15429 2008-04-07 Robert Millan <rmh@aybabtu.com>
15430
15431 * util/grub-probe.c (probe): Improve error message.
15432
15433 2008-04-07 Robert Millan <rmh@aybabtu.com>
15434
15435 * util/biosdisk.c (read_device_map): Skip devices that don't exist
15436 (this prevents the presence of a bogus entry from ruining the whole
15437 thing).
15438
15439 2008-04-06 Pavel Roskin <proski@gnu.org>
15440
15441 * util/biosdisk.c: Include grub/util/biosdisk.h.
15442 * util/grub-fstest.c (execute_command): Make static.
15443 * util/grub-mkdevicemap.c (check_device): Likewise.
15444 * util/i386/pc/misc.c: Include grub/machine/init.h.
15445 * util/powerpc/ieee1275/misc.c: Likewise.
15446 * util/lvm.c: Include grub/util/lvm.h.
15447 * util/misc.c: Include grub/kernel.h, grub/misc.h and
15448 grub/cache.h.
15449 * util/raid.c: Include grub/util/raid.h.
15450 (grub_util_getdiskname): Make static.
15451
15452 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
15453 grub_hostfs_fini(), as they are called from grub_init_all() and
15454 grub_fini_all() respectively. This fixes an infinite loop in
15455 grub-fstest due to double registration of hostfs.
15456 Reported by Christian Franke <Christian.Franke@t-online.de>
15457
15458 2008-04-05 Pavel Roskin <proski@gnu.org>
15459
15460 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
15461 all 8 functions. Otherwise, probe function 0 only.
15462
15463 2008-04-04 Pavel Roskin <proski@gnu.org>
15464
15465 * commands/lspci.c (grub_lspci_iter): Print the bus number
15466 correctly.
15467
15468 * commands/lspci.c (grub_pci_classes): Fix typos.
15469 (grub_lspci_iter): Don't print func twice. Print vendor ID
15470 before device ID, as it's normally done.
15471
15472 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
15473 Fix signedness warnings.
15474 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
15475 Likewise.
15476 * util/ieee1275/get_disk_name.c: Include config.h so that
15477 _GNU_SOURCE is defined and getline() is declared. Mark an
15478 unused argument as such. Fix a signedness warning.
15479
15480 2008-04-02 Pavel Roskin <proski@gnu.org>
15481
15482 * genkernsyms.sh.in: Use more robust assignments for CC and
15483 srcdir. Quote srcdir.
15484 * gensymlist.sh.in: Likewise. Assert at the compile time that
15485 the symbol table is not empty.
15486
15487 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
15488 * fs/cpio.c (grub_cpio_read): Likewise.
15489
15490 2008-04-01 Pavel Roskin <proski@gnu.org>
15491
15492 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
15493 * disk/host.c (grub_host_open): Likewise.
15494 * disk/loopback.c (grub_loopback_open): Likewise.
15495 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
15496 disk->id as in disk/host.c, not a multi-character constant.
15497
15498 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
15499 later is obsolete, potentially dangerous and sets a bad example.
15500 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
15501 * util/misc.c (grub_util_get_image_size): Likewise.
15502
15503 * disk/loopback.c (options): Improve help for "--partitions".
15504
15505 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
15506 options to align them with the short options, e.g. "echo -e".
15507
15508 2008-03-31 Bean <bean123ch@gmail.com>
15509
15510 * video/reader/png.c (grub_png_data): New member is_16bit and
15511 image_data.
15512 (grub_png_decode_image_header): Detect 16 bit png image.
15513 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
15514 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
15515 (grub_video_reader_png): Release memory occupied by image_data.
15516
15517 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
15518 4096 bytes.
15519 (grub_nfs_mount): Skip the test for sector per cluster.
15520
15521 * include/grub/ntfs.h (MAX_SPC): Removed.
15522
15523 2008-03-31 Bean <bean123ch@gmail.com>
15524
15525 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
15526 (grub_probe_SOURCES): Add fs/afs.c.
15527 (grub_fstest_SOURCES): Likewise.
15528 (afs_mod_SOURCES): New variable.
15529 (afs_mod_CFLAGS): Likewise.
15530 (afs_mod_LDFLAGS): Likewise.
15531
15532 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
15533 (grub_emu_SOURCES): Likewise.
15534
15535 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15536
15537 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15538
15539 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
15540
15541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15542
15543 * fs/afs.c: New file.
15544
15545 2008-03-30 Pavel Roskin <proski@gnu.org>
15546
15547 * disk/host.c: Include grub/misc.h to fix a warning.
15548 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
15549 warnings about implicit declarations.
15550
15551 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
15552 variable.
15553 * include/grub/i386/loader.h: Change declaration of
15554 grub_linux_boot() to match what grub_loader_set() expects.
15555 * util/getroot.c (grub_guess_root_device): Return const char* to
15556 fix a warning.
15557 * util/grub-probe.c (probe): Fix a warning about uninitialized
15558 abstraction_name variable.
15559 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
15560 second argument as unused to fix a warning.
15561
15562 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
15563 missing grub_error() call.
15564
15565 * util/update-grub_lib.in: Define datarootdir, since Autoconf
15566 2.60 and newer uses it to define datadir.
15567
15568 * commands/sleep.c: Fix warning about implicit declaration.
15569 * disk/memdisk.c: Likewise.
15570 * loader/aout.c: Likewise.
15571 * loader/i386/bsd_normal.c: Likewise.
15572 * util/grub-probe.c: Likewise.
15573
15574 * commands/i386/cpuid.c (has_longmode): Make static.
15575 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
15576 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
15577
15578 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
15579 GDT. This is more robust, as %ds can change.
15580 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
15581 calling real_to_prot().
15582 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
15583
15584 2008-03-28 Pavel Roskin <proski@gnu.org>
15585
15586 * kern/i386/pc/startup.S: Assert that uncompressed functions
15587 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
15588 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
15589 code, as they push parts of the code (error handlers) beyond
15590 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
15591 code as correctness and size.
15592
15593 2008-03-28 Pavel Roskin <proski@gnu.org>
15594
15595 * kern/i386/pc/startup.S
15596 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
15597 data block address to the real mode, keep offset minimal. This
15598 works around a bug in AWARD BIOS on old Athlon systems, which
15599 makes CD detection hang.
15600
15601 2008-03-26 Pavel Roskin <proski@gnu.org>
15602
15603 * normal/color.c (grub_parse_color_name_pair): Make `name' a
15604 const.
15605 * include/grub/normal.h: Add grub_parse_color_name_pair()
15606 declaration.
15607
15608 2008-03-24 Bean <bean123ch@gmail.com>
15609
15610 * disk/i386/pc/biosdisk.c (cd_start): Removed.
15611 (cd_count): Removed.
15612 (cd_drive): New variable.
15613 (grub_biosdisk_get_drive): Don't check for (cdN) device.
15614 (grub_biosdisk_call_hook): Likewise.
15615 (grub_biosdisk_iterate): Change cdrom detection method.
15616 (grub_biosdisk_open): Replace cd_start with cd_drive.
15617 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
15618 detect cdrom device.
15619
15620 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
15621 Removed.
15622 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
15623 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
15624 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
15625 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
15626 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
15627 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
15628 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
15629 (grub_biosdisk_cdrp): New structure.
15630 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
15631
15632 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
15633
15634 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
15635 device.
15636
15637 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
15638 New function.
15639
15640 2008-03-20 Robert Millan <rmh@aybabtu.com>
15641
15642 Remove 2 TiB limit in ata.mod.
15643 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
15644 (grub_ata_dumpinfo): Print sector count with 0x%llx.
15645 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
15646 grub_uint64_t instead of grub_uint32_t.
15647
15648 2008-03-05 Bean <bean123ch@gmail.com>
15649
15650 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
15651 (grub_multiboot): Set boot device.
15652
15653 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
15654
15655 2008-03-02 Bean <bean123ch@gmail.com>
15656
15657 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
15658 symlink_buffer.
15659
15660 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
15661
15662 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
15663 texinfo.tex.
15664
15665 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
15666 modified.
15667
15668 * docs/fdl.texi: New file.
15669
15670 * docs/mdate-sh: New file. Copied from gnulib.
15671 * docs/texinfo.tex: Likewise.
15672
15673 * config.guess: Updated from gnulib.
15674 * install-sh: Likewise.
15675
15676 2008-02-28 Robert Millan <rmh@aybabtu.com>
15677
15678 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
15679 (aout_mod_SOURCES): New variable.
15680 (aout_mod_CFLAGS): Likewise.
15681 (aout_mod_LDFLAGS): Likewise.
15682
15683 * conf/i386-ieee1275.rmk: Likewise.
15684
15685 2008-02-28 Robert Millan <rmh@aybabtu.com>
15686
15687 * util/update-grub.in: Reorganise terminal validity check. Accept
15688 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
15689 Based on suggestion by Franklin PIAT.
15690
15691 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
15692
15693 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
15694 function.
15695 * util/getroot.c (grub_util_check_block_device): New function that
15696 returns the given argument if it is a block device and returns NULL else.
15697 * util/grub-probe.c (argument_is_device): New variable.
15698 (probe): Promote device_name from a variable to an argument. Receive
15699 device_name from grub_util_check_block_device() if path is NULL and from
15700 grub_guess_root_device() else. Do not free() device_name anymore.
15701 (options): Introduce new parameter '-d, --device'.
15702 (main): Add description of the new parameter to the help screen.
15703 Rename path variable to argument. Set argument_is_device if the '-d'
15704 option is given. Pass argument to probe() depending on
15705 argument_is_device.
15706
15707 2008-02-24 Bean <bean123ch@gmail.com>
15708
15709 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
15710 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
15711 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
15712 (GRUB_ISO9660_VOLDESC_PART): Likewise.
15713 (GRUB_ISO9660_VOLDESC_END): Likewise.
15714 (grub_iso9660_primary_voldesc): New member escape.
15715 (grub_iso9660_data): New member joliet.
15716 (grub_iso9660_convert_string): New function.
15717 (grub_iso9660_mount): Detect joliet extension.
15718 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
15719 (grub_iso9660_iso9660_label): Likewise.
15720
15721 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
15722 (grub_setup_SOURCES): Add fs/udf.c.
15723 (grub_fstest_SOURCES): Likewise.
15724 (udf_mod_SOURCES): New variable.
15725 (udf_mod_CFLAGS): Likewise.
15726 (udf_mod_LDFLAGS): Likewise.
15727
15728 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
15729 (grub_emu_SOURCES): Likewise.
15730
15731 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15732
15733 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15734
15735 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
15736
15737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15738
15739 * fs/udf.c: New file.
15740
15741 2008-02-24 Robert Millan <rmh@aybabtu.com>
15742
15743 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
15744 (normal/lexer.c_DEPENDENCIES): New variables.
15745 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
15746 (normal/lexer.c_DEPENDENCIES): Likewise.
15747 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
15748 (normal/lexer.c_DEPENDENCIES): Likewise.
15749 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
15750 (normal/lexer.c_DEPENDENCIES): Likewise.
15751 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
15752 (normal/lexer.c_DEPENDENCIES): Likewise.
15753 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
15754 (normal/lexer.c_DEPENDENCIES): Likewise.
15755
15756 2008-02-23 Robert Millan <rmh@aybabtu.com>
15757
15758 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
15759 since they were intended to be in hex. This didn't break previously
15760 because of a bug in gpt_partition_map_iterate() (see below).
15761
15762 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
15763 when checking the validity of GPT header.
15764 Remove `partno', since it always provides the same information as `i'.
15765
15766 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
15767
15768 * include/grub/efi/time.h: Fix a wrong comment.
15769
15770 2008-02-19 Pavel Roskin <proski@gnu.org>
15771
15772 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
15773 message.
15774
15775 2008-02-19 Bean <bean123ch@gmail.com>
15776
15777 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
15778 (aout_mod_SOURCES): New variable.
15779 (aout_mod_CFLAGS): Likewise.
15780 (aout_mod_LDFLAGS): Likewise.
15781 (_bsd_mod_SOURCES): New variable.
15782 (_bsd_mod_CFLAGS): Likewise.
15783 (_bsd_mod_LDFLAGS): Likewise.
15784 (bsd_mod_SOURCES): New variable.
15785 (bsd_mod_CFLAGS): Likewise.
15786 (bsd_mod_LDFLAGS): Likewise.
15787
15788 * include/grub/aout.h: New file.
15789
15790 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
15791
15792 * include/grub/i386/bsd.h: New file.
15793
15794 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
15795 to make it public.
15796
15797 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
15798 function is called, so that it's possible to change it inside the hook.
15799 (grub_elf64_load): Likewise.
15800 (grub_elf_file): Don't close the file if elf header is not found.
15801 (grub_elf_close): Close the file if grub_elf_file fails (The new
15802 grub_elf_file won't close it).
15803 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
15804 (grub_elf64_size): Likewise.
15805
15806 * kern/i386/loader.S (grub_unix_real_boot): New function.
15807
15808 * loader/aout.c: New file.
15809
15810 * loader/i386/bsd.c: New file.
15811
15812 * loader/i386/bsd_normal.c: New file.
15813
15814 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
15815
15816 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
15817 can test other formats.
15818
15819 2008-02-19 Robert Millan <rmh@aybabtu.com>
15820
15821 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
15822 (grub_gpt_partition_type_empty): Redefine with macro from
15823 `<grub/gpt_partition.h>'.
15824 (gpt_partition_map_iterate): Adjust partition type comparison.
15825
15826 Export `entry' as partmap-specific `part.data' struct.
15827 (grub_gpt_header, grub_gpt_partentry): Move from here ...
15828
15829 * include/grub/gpt_partition.h (grub_gpt_header)
15830 (grub_gpt_partentry): ... to here (new file).
15831
15832 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
15833
15834 (grub_gpt_partition_type_bios_boot): New const variable, defined
15835 with macro from `<grub/gpt_partition.h>'.
15836
15837 (setup): Replace `first_start' with `embed_region', which keeps
15838 track of the embed region (and is partmap-agnostic).
15839
15840 Replace find_first_partition_start() with find_usable_region(),
15841 which finds a usable region for embedding using partmap-specific
15842 knowledge (supports PC/MSDOS and GPT).
15843
15844 Fix all assumptions that the embed region start at sector 1, using
15845 `embed_region.start' from now on. Similarly, use `embed_region.end'
15846 rather than `first_start' to calculate available size.
15847
15848 In grub_util_info() message, replace "into after the MBR" with an
15849 indication of the specific sector our embed region starts at.
15850
15851 2008-02-19 Robert Millan <rmh@aybabtu.com>
15852
15853 * DISTLIST: Replace `commands/ieee1275/halt.c' and
15854 `commands/ieee1275/reboot.c' with `commands/halt.c' and
15855 `commands/reboot.c'.
15856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
15857 (halt_mod_SOURCES): Likewise.
15858 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
15859 (halt_mod_SOURCES): Likewise.
15860
15861 2008-02-17 Christian Franke <franke@computer.org>
15862
15863 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
15864
15865 2008-02-17 Robert Millan <rmh@aybabtu.com>
15866
15867 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
15868 set `first_start' to 0 for non-PC/MSDOS partition maps.
15869
15870 2008-02-16 Robert Millan <rmh@aybabtu.com>
15871
15872 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
15873 do not assume partition map is PC/MSDOS before performing checks that
15874 are specific to that layout.
15875
15876 2008-02-13 Robert Millan <rmh@aybabtu.com>
15877
15878 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
15879 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
15880 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
15881
15882 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
15883
15884 * configure.ac: Only a cosmetic change on the handling of
15885 -fno-stack-protector.
15886
15887 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
15888
15889 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
15890 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
15891 reboot.c.
15892 (grub_install_SOURCES): Add halt.mod and reboot.mod.
15893 (halt_mod_SOURCES): New variable.
15894 (halt_mod_CFLAGS): Likewise.
15895 (halt_mod_LDFLAGS): Likewise.
15896 (reboot_mod_SOURCES): Likewise.
15897 (reboot_mod_CFLAGS): Likewise.
15898 (reboot_mod_LDFLAGS): Likewise.
15899
15900 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
15901 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
15902 reboot.c.
15903 (halt_mod_SOURCES): Likewise.
15904 (reboot_mod_SOURCES): Likewise.
15905
15906 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
15907 commands/i386/pc/reboot.c by commands/reboot.c.
15908 (reboot_mod_SOURCES): Likewise.
15909
15910 * commands/i386/pc/reboot.c: merge this file ...
15911
15912 * commands/ieee1275/reboot.c: ... and this file ...
15913
15914 * commands/reboot.c: ... to this file.
15915 Add some precompiler directive to include the correct header for
15916 each machine.
15917
15918 * commands/ieee1275/halt.c: move this file ...
15919
15920 * commands/halt.c: ... to here.
15921 Add some precompiler directive to include the correct header for
15922 each machine.
15923
15924 * include/grub/efi/efi.h (grub_reboot): New function declaration.
15925 (grub_halt): Likewise.
15926
15927 * kern/efi/efi.c (grub_reboot): New function.
15928 (grub_halt): Likewise.
15929
15930 2008-02-12 Robert Millan <rmh@aybabtu.com>
15931
15932 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
15933 /dev (like it is done for /dev/mapper). This doesn't provide support
15934 for EVMS, but at least it is now easy to identify the problem when it
15935 arises.
15936
15937 2008-02-11 Robert Millan <rmh@aybabtu.com>
15938
15939 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
15940 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
15941 comparing it with -1, not 0.
15942
15943 2008-02-10 Robert Millan <rmh@aybabtu.com>
15944
15945 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
15946 `disk/lvm.c'.
15947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15948 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15949
15950 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
15951 `disk/lvm.c' to the end of the list.
15952 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
15953 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15954
15955 2008-02-10 Robert Millan <rmh@aybabtu.com>
15956
15957 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
15958 grub_print_error() instead. This will let user know why we're entering
15959 rescue mode.
15960 Based on suggestions from Sam Morris.
15961
15962 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
15963
15964 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
15965 on remaining N args, instead of "--" arg N times.
15966
15967 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
15968
15969 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
15970 (fill_with_default_glyph): Changed to use unknown_glyph for fill
15971 pattern for unknown glyphs.
15972
15973 2008-02-09 Robert Millan <rmh@aybabtu.com>
15974
15975 * configure.ac: Probe for `help2man'.
15976 * Makefile.in (builddir): New variable.
15977 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
15978 or otherwise add a few flags/options to it.
15979 (install-local): For every executable utility or script that is
15980 installed, invoke $(HELP2MAN) to install a manpage based on --help
15981 output.
15982
15983 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
15984 that it doesn't prevent --help from working in build tree.
15985
15986 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
15987 with `bug-grub@gnu.org'.
15988 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
15989 * util/update-grub.in (usage): New function.
15990 Implement proper argument check, with support for --help and --version
15991 (as well as existing -y).
15992
15993 2008-02-09 Christian Franke <franke@computer.org>
15994
15995 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
15996 avoid overwriting previous output.
15997 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
15998
15999 2008-02-09 Robert Millan <rmh@aybabtu.com>
16000
16001 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
16002 drawing the menu.
16003
16004 2008-02-09 Robert Millan <rmh@aybabtu.com>
16005
16006 * commands/sleep.c: New file.
16007 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
16008 (sleep_mod_SOURCES): New variable.
16009 (sleep_mod_CFLAGS): Likewise.
16010 (sleep_mod_LDFLAGS): Likewise.
16011
16012 2008-02-09 Robert Millan <rmh@aybabtu.com>
16013
16014 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
16015 situations in which we can deduce the RAID size and the superblock
16016 doesn't match it.
16017
16018 2008-02-09 Robert Millan <rmh@aybabtu.com>
16019
16020 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
16021 and return a grub_diskmemberlist_t composed of LVM physical volumes.
16022 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
16023
16024 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
16025 and return a grub_diskmemberlist_t composed of physical array members.
16026 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
16027
16028 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
16029 prototype.
16030 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
16031 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
16032 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
16033
16034 * util/grub-probe.c (probe): Move partmap probing code from here ...
16035 (probe_partmap): ... to here.
16036 (probe): Use probe_partmap() once for the disk we're probing, and
16037 additionally, when such disk contains a memberlist() struct member,
16038 once for each disk that is contained in the structure returned by
16039 memberlist().
16040
16041 2008-02-09 Robert Millan <rmh@aybabtu.com>
16042
16043 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
16044 environment variable to 'all' in order to obtain debug output from
16045 non-util/ code.
16046 * util/i386/pc/grub-setup.c (main): Likewise.
16047
16048 2008-02-08 Robert Millan <rmh@aybabtu.com>
16049
16050 * disk/raid.c (grub_raid_scan_device): Check for
16051 `array->device[sb.this_disk.number]' rather than for
16052 `array->device[sb.this_disk.number]->name', since the latter is not
16053 guaranteed to be accessible.
16054
16055 2008-02-08 Robert Millan <rmh@aybabtu.com>
16056
16057 * disk/raid.c: Update copyright.
16058 * fs/cpio.c: Likewise.
16059 * include/grub/raid.h: Likewise.
16060 * loader/i386/pc/multiboot.c: Likewise.
16061 * util/hostfs.c: Likewise.
16062
16063 2008-02-08 Robert Millan <rmh@aybabtu.com>
16064
16065 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
16066 to a grub_disk_t array.
16067 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
16068 `device[x]'.
16069 (grub_raid_scan_device): Replace `device[x].name' accesses with
16070 `device[x]->name'. Simplify initialization of `array->device[x]'.
16071
16072 2008-02-08 Robert Millan <rmh@aybabtu.com>
16073
16074 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
16075 grub_dprintf() calls.
16076 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
16077 error message.
16078
16079 2008-02-07 Christian Franke <franke@computer.org>
16080
16081 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
16082 instead of fseek and ftell to support large files.
16083 (grub_hostfs_read): Likewise.
16084
16085 2008-02-07 Robert Millan <rmh@aybabtu.com>
16086
16087 Patch from Jeroen Dekkers.
16088 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
16089 failure, since successfully reading all array members might not be
16090 required.
16091
16092 2008-02-06 Robert Millan <rmh@aybabtu.com>
16093
16094 * util/grub-probe.c (probe): Simplify partmap probing (with the
16095 assumption that the first word up to the underscore equals to
16096 the module name).
16097
16098 2008-02-06 Christian Franke <franke@computer.org>
16099
16100 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
16101 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
16102 last block of a cpio or tar stream.
16103 Check for "TRAILER!!!" instead of any empty data
16104 block to detect last block of a cpio stream.
16105 (grub_cpio_dir): Fix constness of variable np.
16106 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
16107 cpio or tar trailer is detected. This fixes a crash
16108 on open of a non existing file.
16109
16110 2008-02-05 Bean <bean123ch@gmail.com>
16111
16112 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
16113 address of entry.
16114 (grub_multiboot_load_elf64): Likewise.
16115 (grub_multiboot): Initialize mbi structure.
16116
16117 * util/grub-fstest.c: Don't include unused header file script.h.
16118
16119 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
16120 of file.
16121 (grub_fstest_SOURCES): Likewise.
16122
16123 2008-02-05 Robert Millan <rmh@aybabtu.com>
16124
16125 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
16126 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
16127 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
16128 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
16129
16130 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
16131 (translation_table): Replace hardcoded values with macros
16132 provided by `<grub/term.h>'.
16133
16134 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
16135 (keyboard_map): Correct/add a few values, with macros provided
16136 by `<grub/term.h>'.
16137 (keyboard_map_shift): Zero values that don't differ from their
16138 `keyboard_map' equivalents.
16139 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
16140 Discard the second scan code that is always sent by Caps lock.
16141 Only use `keyboard_map_shift' when it provides a non-zero value,
16142 otherwise fallback to `keyboard_map'.
16143
16144 2008-02-04 Bean <bean123ch@gmail.com>
16145
16146 * Makefile.in (enable_grub_fstest): New variable.
16147
16148 * conf/common.rmk (grub_fstest_init.lst): New rule.
16149 (grub_fstest_init.h): Likewise.
16150 (grub_fstest_init.c): Likewise.
16151 (util/grub-fstest.c_DEPENDENCIES): New variable.
16152 (grub_fstest_SOURCES): Likewise.
16153
16154 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
16155
16156 * util/grub-fstest.c: New file.
16157
16158 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
16159
16160 Make grub-setup handle a separate root device.
16161
16162 * util/i386/pc/grub-setup.c (setup): Always open the root device,
16163 so that the root device can be compared with the destination
16164 device.
16165 When embedding the core image, if the root and destination devices
16166 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
16167 0xFF.
16168 When not embedding, set ROOT_DRIVE to 0xFF.
16169
16170 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
16171
16172 Add support for having a grub directory in a different drive. This
16173 is still only the data handling part.
16174
16175 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
16176 (codestart): Save %dh in GRUB_ROOT_DRIVE.
16177 (grub_root_drive): New variable.
16178
16179 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
16180 instead of GRUB_BOOT_DRIVE to construct a device name. Set
16181 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
16182 as it was.
16183
16184 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
16185
16186 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
16187 macro.
16188 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
16189
16190 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
16191 is bogus, because PXE booting does not specify any drive
16192 correctly.
16193
16194 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
16195 am not sure if this is really correct.
16196
16197 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
16198 is always identical to the boot drive when booting from a CD.
16199
16200 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
16201 longer.
16202 (root_drive): New variable.
16203 (real_start): Unconditionally set %dh to ROOT_DRIVE.
16204 (setup_sectors): Push %dx right after popping it, because %dh will
16205 be modified later.
16206 (copy_buffer): Restore %dx.
16207
16208 2008-02-03 Robert Millan <rmh@aybabtu.com>
16209
16210 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
16211 use `cdboot.img' for cdrom images.
16212
16213 2008-02-03 Robert Millan <rmh@aybabtu.com>
16214
16215 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
16216 only setup gfxterm when `font' command has succeeded.
16217
16218 2008-02-03 Robert Millan <rmh@aybabtu.com>
16219
16220 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
16221 (grub_rescue_cmd_multiboot_loader)
16222 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
16223
16224 2008-02-03 Pavel Roskin <proski@gnu.org>
16225
16226 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
16227 %edx and %esi from stack only after grub_gate_a20() is called.
16228 grub_gate_a20() clobbers %edx.
16229
16230 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
16231
16232 * configure.ac (AC_INIT): Bumped to 1.96.
16233
16234 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
16235 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
16236 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
16237 video/readers/png.c.
16238
16239 2008-02-03 Bean <bean123ch@gmail.com>
16240
16241 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
16242 (cdboot_img_SOURCES): New variable.
16243 (cdboot_img_ASFLAGS): New variable.
16244 (cdboot_img_LDFLAGS): New variable.
16245
16246 * boot/i386/pc/cdboot.S: New file.
16247
16248 * disk/i386/pc/biosdisk.c (cd_start): New variable.
16249 (cd_count): Likewise.
16250 (grub_biosdisk_get_drive): Add support for cd device.
16251 (grub_biosdisk_call_hook): Likewise.
16252 (grub_biosdisk_iterate): Likewise.
16253 (grub_biosdisk_open): Likewise.
16254 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
16255 (grub_biosdisk_rw): Support reading from cd device.
16256 (GRUB_MOD_INIT): Iterate cd devices.
16257
16258 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
16259 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
16260 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
16261
16262 * kern/i386/pc/init.c (make_install_device): Check for cd device.
16263
16264 2008-02-02 Robert Millan <rmh@aybabtu.com>
16265
16266 * commands/read.c: New file.
16267 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
16268 (read_mod_SOURCES): New variable.
16269 (read_mod_CFLAGS): Likewise.
16270 (read_mod_LDFLAGS): Likewise.
16271
16272 2008-02-02 Robert Millan <rmh@aybabtu.com>
16273
16274 * normal/main.c (grub_normal_execute): Check for `menu->size' when
16275 determining whether menu has to be displayed.
16276
16277 2008-02-02 Marco Gerards <marco@gnu.org>
16278
16279 * bus/pci.c: New file.
16280
16281 * include/grub/pci.h: Likewise.
16282
16283 * include/grub/i386/pc/pci.h: Likewise.
16284
16285 * commands/lspci.c: Likewise.
16286
16287 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
16288 `lspci.mod'.
16289 (pci_mod_SOURCES): New variable.
16290 (pci_mod_CFLAGS): Likewise.
16291 (pci_mod_LDFLAGS): Likewise.
16292 (lspci_mod_SOURCES): Likewise.
16293 (lspci_mod_CFLAGS): Likewise.
16294 (lspci_mod_LDFLAGS): Likewise.
16295
16296 2008-02-02 Bean <bean123ch@gmail.com>
16297
16298 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
16299 (grub_ufs_get_file_block): Fix indirect block calculation problem.
16300
16301 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
16302 (grub_xfs_btree_node): New structure.
16303 (grub_xfs_btree_root): New structure.
16304 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
16305 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
16306 (GRUB_XFS_EXTENT_BLOCK): Likewise.
16307 (GRUB_XFS_EXTENT_SIZE): Likewise.
16308 (grub_xfs_read_block): Support btree format type.
16309 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
16310 Use directory block as basic unit.
16311
16312 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
16313
16314 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
16315 __attribute__ ((__regparm__ (1))).
16316
16317 2008-02-01 Robert Millan <rmh@aybabtu.com>
16318
16319 Correct a mistake in previous commit.
16320
16321 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
16322 top.
16323 (normal/command.c_DEPENDENCIES): New variable.
16324
16325 2008-02-01 Robert Millan <rmh@aybabtu.com>
16326
16327 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
16328 top.
16329 (normal/command.c_DEPENDENCIES): New variable.
16330 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
16331 * conf/i386-ieee1275.rmk: Likewise.
16332 * conf/i386-linuxbios.rmk: Likewise.
16333 * conf/i386-pc.rmk: Likewise.
16334 * conf/sparc64-ieee1275.rmk: Likewise.
16335 * conf/powerpc-ieee1275.rmk: Likewise.
16336 (grub_emu_SOURCES): Add `fs/fshelp.c'.
16337
16338 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
16339
16340 2008-02-01 Robert Millan <rmh@aybabtu.com>
16341
16342 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
16343 call at beginning of function.
16344
16345 2008-01-31 Pavel Roskin <proski@gnu.org>
16346
16347 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
16348 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
16349 (grub_mkrescue_SOURCES): Likewise.
16350 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
16351
16352 2008-01-30 Robert Millan <rmh@aybabtu.com>
16353
16354 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
16355 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
16356 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
16357 (grub_probe_SOURCES): ... to here.
16358
16359 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
16360 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
16361 * conf/i386-ieee1275.rmk: Likewise.
16362 * conf/i386-linuxbios.rmk: Likewise.
16363 * conf/powerpc-ieee1275.rmk: Likewise.
16364
16365 2008-01-30 Tristan Gingold <gingold@free.fr>
16366
16367 * kern/rescue.c: Silently accept empty lines.
16368
16369 2008-01-29 Bean <bean123ch@gmail.com>
16370
16371 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
16372 (real_code_2): Code cleanup and change comment style.
16373 (move_memory): Avoid using 32-bit address mode.
16374
16375 2008-01-29 Bean <bean123ch@gmail.com>
16376
16377 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
16378 (png_mod_SOURCES): New variable.
16379 (png_mod_CFLAGS): Likewise.
16380 (png_mod_LDFLAGS): Likewise.
16381
16382 * video/readers/png.c: New file.
16383
16384 2008-01-28 Robert Millan <rmh@aybabtu.com>
16385
16386 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
16387 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
16388 `ifndef GRUB_MOD_GAP' hack.
16389 * util/elf/grub-mkimage.c (add_segments): Likewise.
16390
16391 2008-01-27 Robert Millan <rmh@aybabtu.com>
16392
16393 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
16394 `GRUB_MOD_GAP' for platforms in which it's not defined.
16395 * util/elf/grub-mkimage.c (add_segments): Likewise.
16396
16397 2008-01-27 Robert Millan <rmh@aybabtu.com>
16398
16399 Get grub-emu to build again (including parallel builds).
16400
16401 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
16402 Split into ...
16403 (util/grub-emu.c_DEPENDENCIES): ... this, ...
16404 (normal/execute.c_DEPENDENCIES): ... this, ...
16405 (grub-emu_DEPENDENCIES): ... and this.
16406
16407 * conf/i386-efi.rmk: Likewise.
16408 * conf/i386-linuxbios.rmk: Likewise.
16409 * conf/i386-ieee1275.rmk: Likewise.
16410 * conf/powerpc-ieee1275.rmk: Likewise.
16411 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
16412
16413 2008-01-27 Robert Millan <rmh@aybabtu.com>
16414
16415 * NEWS: Add a few items.
16416
16417 2008-01-27 Robert Millan <rmh@aybabtu.com>
16418
16419 Fix parallel builds with grub-emu. Based on earlier commit for
16420 grub-probe and grub-setup.
16421
16422 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
16423 (util/grub-emu.c_DEPENDENCIES): ... this.
16424 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
16425 (util/grub-emu.c_DEPENDENCIES): ... this.
16426 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
16427 (util/grub-emu.c_DEPENDENCIES): ... this.
16428 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
16429 (util/grub-emu.c_DEPENDENCIES): ... this.
16430 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
16431 (util/grub-emu.c_DEPENDENCIES): ... this.
16432
16433 2008-01-27 Pavel Roskin <proski@gnu.org>
16434
16435 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
16436 to create a gap between _end and the modules added to the image
16437 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
16438 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
16439 * util/elf/grub-mkimage.c (add_segments): Likewise.
16440
16441 2008-01-26 Pavel Roskin <proski@gnu.org>
16442
16443 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
16444 just return an error.
16445
16446 2008-01-26 Bean <bean123ch@gmail.com>
16447
16448 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
16449 (grub_reiserfs_get_item): Save offset of the next item.
16450 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
16451
16452 2008-01-25 Robert Millan <rmh@aybabtu.com>
16453
16454 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
16455 make all filesystem sources appear together (possibly fixing omissions
16456 while at it).
16457 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16458 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16459 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
16460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16461
16462 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
16463 add `kern/file.c'.
16464 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
16465 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
16466 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
16467 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
16468
16469 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
16470 (probe): Add a sanity check to make sure of our ability to read
16471 requested files when probing for filesystem type.
16472
16473 * genmk.rb: Update copyright year (2007).
16474
16475 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
16476 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
16477 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
16478 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
16479 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
16480 : Remove function prototypes.
16481
16482 2008-01-25 Robert Millan <rmh@aybabtu.com>
16483
16484 Revert my previous commits (based on wrong assumption of how grub_errno
16485 works).
16486
16487 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
16488 * kern/file.c (grub_file_open): Likewise.
16489
16490 2008-01-24 Pavel Roskin <proski@gnu.org>
16491
16492 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
16493 that hang if GRUB tries to setup colors.
16494 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
16495 colors for firmwares that don't support it.
16496 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
16497 Recognize Open Hack'Ware, set flags to work around its
16498 limitations.
16499
16500 2008-01-24 Robert Millan <rmh@aybabtu.com>
16501
16502 * kern/file.c (grub_file_open): Do not account previous failures of
16503 unrelated functions when grub_errno is checked for.
16504 Reported by Oleg Strikov.
16505
16506 2008-01-24 Bean <bean123ch@gmail.com>
16507
16508 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
16509 (grub_ufs_sblock): New member volume name.
16510 (grub_ufs_find_file): Fix string copy bug.
16511 (grub_ufs_label): Implement this function properly.
16512
16513 * fs/hfs.c (grub_hfs_cnid_type): New enum.
16514 (grub_hfs_iterate_records): Use the correct file number for extents
16515 and catalog file. Fix problem in next index calculation.
16516 (grub_hfs_find_node): Replace recursive function call with loop.
16517 (grub_hfs_iterate_dir): Replace recursive function call with loop.
16518
16519 2008-01-23 Robert Millan <rmh@aybabtu.com>
16520
16521 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
16522 `<grub/symbol.h>' and `<grub/multiboot.h>'.
16523 (grub_multiboot2_real_boot): New function prototype.
16524
16525 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
16526 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
16527
16528 * kern/i386/ieee1275/init.c (grub_os_area_addr)
16529 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
16530
16531 2008-01-23 Robert Millan <rmh@aybabtu.com>
16532
16533 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
16534 #ifdef'ed out grub_printf().
16535
16536 2008-01-23 Robert Millan <rmh@aybabtu.com>
16537
16538 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
16539 grub_dprintf calls, since they make "debug=all" mode unusable.
16540 (grub_console_checkkey): Likewise.
16541
16542 2008-01-23 Robert Millan <rmh@aybabtu.com>
16543
16544 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
16545 `term/i386/pc/at_keyboard.c'.
16546 (pkglib_MODULES): Add `serial.mod'.
16547 (serial_mod_SOURCES): New variable.
16548 (serial_mod_CFLAGS): Likewise.
16549 (serial_mod_LDFLAGS): Likewise.
16550
16551 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
16552 `<grub/powerpc/ieee1275/console.h>'.
16553 (grub_keyboard_controller_init): New function prototype.
16554 (grub_console_checkkey): Likewise.
16555 (grub_console_getkey): Likewise.
16556
16557 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
16558 keyboard on i386.
16559
16560 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
16561 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
16562
16563 2008-01-23 Robert Millan <rmh@aybabtu.com>
16564
16565 * kern/i386/pc/init.c (make_install_device): When memdisk image is
16566 present, "(memdisk)/boot/grub" becomes the default prefix.
16567
16568 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
16569 a memdisk tarball with all the modules. Add --overlay=DIR option that
16570 allows users to overlay additional files into the image.
16571
16572 2008-01-23 Robert Millan <rmh@aybabtu.com>
16573
16574 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
16575 and `machine/memory.h'.
16576 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
16577 (_multiboot_mod_SOURCES): New variable.
16578 (_multiboot_mod_CFLAGS): Likewise.
16579 (_multiboot_mod_LDFLAGS): Likewise.
16580 (multiboot_mod_SOURCES): Likewise.
16581 (multiboot_mod_CFLAGS): Likewise.
16582 (multiboot_mod_LDFLAGS): Likewise.
16583
16584 * include/grub/i386/ieee1275/loader.h: New file.
16585
16586 * include/grub/i386/ieee1275/machine.h: Likewise.
16587
16588 * include/grub/i386/ieee1275/memory.h: Likewise.
16589
16590 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
16591 variable declaration.
16592 (grub_os_area_size): Likewise.
16593
16594 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
16595 (grub_lower_mem, grub_upper_mem): New variables.
16596 (grub_stop_floppy): New function (just to make
16597 grub_multiboot2_real_boot() happy).
16598
16599 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
16600 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
16601 (grub_stop): New function.
16602 Include `"../realmode.S"' and `"../loader.S"'.
16603
16604 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
16605 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
16606
16607 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
16608 rely on grub_multiboot2_real_boot() for final boot.
16609
16610 2008-01-22 Robert Millan <rmh@aybabtu.com>
16611
16612 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
16613 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
16614 device that doesn't look like an SD card.
16615 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
16616 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
16617 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
16618 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
16619 found.
16620
16621 2008-01-22 Robert Millan <rmh@aybabtu.com>
16622
16623 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
16624 avoid claiming over our own code.
16625
16626 2008-01-22 Bean <bean123ch@gmail.com>
16627
16628 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
16629 (jpeg_mod_SOURCES): New variable.
16630 (jpeg_mod_CFLAGS): Likewise.
16631 (jpeg_mod_LDFLAGS): Likewise.
16632
16633 * video/readers/jpeg.c : New file.
16634
16635 2008-01-22 Bean <bean123ch@gmail.com>
16636
16637 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
16638 there are no more items.
16639
16640 2008-01-21 Robert Millan <rmh@aybabtu.com>
16641
16642 * kern/mm.c (grub_mm_init_region): Improve debug message.
16643
16644 2008-01-21 Robert Millan <rmh@aybabtu.com>
16645
16646 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
16647 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
16648 address.
16649 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
16650 a C macro.
16651 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
16652 Indicates start of upper memory.
16653 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
16654 (generate_image): Abort when image size is big enough to corrupt
16655 upper memory.
16656
16657 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
16658 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
16659 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
16660 instead of hardcoding 0xA0000.
16661 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
16662 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
16663 instead of hardcoding 0xA0000.
16664
16665 2008-01-21 Robert Millan <rmh@aybabtu.com>
16666
16667 * disk/memdisk.c (memdisk_size): New variable.
16668 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
16669 `memdisk_size'.
16670 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
16671 image to dynamic memory.
16672 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
16673 `memdisk_size'. Free memdisk block.
16674
16675 2008-01-21 Robert Millan <rmh@aybabtu.com>
16676
16677 Fix detection of very small filesystems (like tar).
16678
16679 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
16680 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
16681 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
16682 a problem with this disk).
16683
16684 2008-01-21 Robert Millan <rmh@aybabtu.com>
16685
16686 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
16687 on grub_biosdisk_rw_standard() error.
16688
16689 2008-01-21 Robert Millan <rmh@aybabtu.com>
16690
16691 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
16692 recent changes.
16693 * kern/elf.c: Likewise.
16694 * kern/ieee1275/ieee1275.c: Likewise.
16695 * kern/powerpc/ieee1275/openfw.c: Likewise.
16696 * term/ieee1275/ofconsole.c: Likewise.
16697
16698 2008-01-21 Robert Millan <rmh@aybabtu.com>
16699
16700 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
16701
16702 * include/grub/kernel.h (grub_arch_memdisk_addr)
16703 (grub_arch_memdisk_size): Moved from here ...
16704
16705 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
16706 (grub_arch_memdisk_size): ... to here.
16707
16708 2008-01-21 Robert Millan <rmh@aybabtu.com>
16709
16710 Mostly based on bugfix from Bean.
16711
16712 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
16713 attribute with hook() parameter.
16714 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
16715 declaration.
16716 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
16717 attribute with hook() parameter.
16718 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
16719 declaration.
16720
16721 2008-01-21 Robert Millan <rmh@aybabtu.com>
16722
16723 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
16724 (pkglib_MODULES): Add `memdisk.mod'.
16725 (memdisk_mod_SOURCES): New variable.
16726 (memdisk_mod_CFLAGS): Likewise.
16727 (memdisk_mod_LDFLAGS): Likewise.
16728
16729 * disk/memdisk.c: New file.
16730
16731 * include/grub/disk.h (grub_disk_dev_id): Add
16732 `GRUB_DISK_DEVICE_MEMDISK_ID'.
16733
16734 * include/grub/i386/pc/kernel.h
16735 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
16736 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
16737 (grub_kernel_image_size): New variable declaration.
16738 (grub_total_module_size): Likewise.
16739 (grub_memdisk_image_size): Likewise.
16740
16741 * include/grub/i386/pc/memory.h
16742 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
16743
16744 * include/grub/kernel.h: Include `<grub/symbol.h>'.
16745 (grub_arch_memdisk_addr): New variable declaration.
16746 (grub_arch_memdisk_size): Likewise.
16747
16748 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
16749 (grub_arch_memdisk_size): Likewise.
16750
16751 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
16752 (codestart): Replace hardcoded `0x100000' with
16753 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
16754
16755 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
16756 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
16757 not NULL, append the contents of the file it refers to, at the end of
16758 the compressed kernel image. Initialize `grub_memdisk_image_size'
16759 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
16760 (options): Add "memdisk"|'m' option.
16761 (main): Parse --memdisk|-m option, and pass user-provided path as
16762 parameter to generate_image().
16763
16764 2008-01-20 Robert Millan <rmh@aybabtu.com>
16765
16766 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
16767 grub_dprintf() calls from here ...
16768 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
16769
16770 2008-01-20 Robert Millan <rmh@aybabtu.com>
16771
16772 Fix detection of "real mode" when /options/real-mode? doesn't exist.
16773
16774 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
16775 declaration.
16776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
16777 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
16778 `GRUB_IEEE1275_FLAG_REAL_MODE'.
16779 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
16780 property).
16781 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
16782 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
16783
16784 2008-01-19 Robert Millan <rmh@aybabtu.com>
16785
16786 Get rid of confusing function (superseded by
16787 `grub_ieee1275_get_integer_property')
16788 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
16789 prototype.
16790 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
16791 function.
16792 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
16793 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
16794 in native endianness from grub_ieee1275_get_integer_property().
16795
16796 2008-01-19 Robert Millan <rmh@aybabtu.com>
16797
16798 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
16799 command after "shut-down", since implementations differ on which
16800 the command for halt is.
16801
16802 2008-01-19 Robert Millan <rmh@aybabtu.com>
16803
16804 * include/grub/i386/linuxbios/console.h: Add header protection.
16805 (grub_keyboard_controller_init): New function prototype.
16806 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
16807 (KEYBOARD_COMMAND_READ): Likewise.
16808 (KEYBOARD_COMMAND_WRITE): Likewise.
16809 (KEYBOARD_SCANCODE_SET1): Likewise.
16810 (grub_keyboard_controller_write): New function.
16811 (grub_keyboard_controller_read): Likewise.
16812 (grub_keyboard_controller_init): Likewise.
16813
16814 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
16815 (grub_console_init): On coreboot/LinuxBIOS, call
16816 grub_keyboard_controller_init().
16817
16818 2008-01-19 Robert Millan <rmh@aybabtu.com>
16819
16820 PowerPC changes provided by Pavel Roskin.
16821
16822 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
16823 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
16824 don't rely on cmain() doing it.
16825 * kern/i386/ieee1275/startup.S (_start): Store %eax in
16826 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
16827
16828 2008-01-16 Robert Millan <rmh@aybabtu.com>
16829
16830 * include/grub/i386/linuxbios/memory.h
16831 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
16832 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
16833 receive `table_header' as argument. Instead, probe for it in the
16834 known memory ranges where it can be present.
16835 (grub_available_iterate): Do not pass a fixed `table_header' address
16836 to grub_linuxbios_table_iterate().
16837
16838 2008-01-15 Robert Millan <rmh@aybabtu.com>
16839
16840 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
16841 * conf/i386-ieee1275.rmk: New file.
16842 * include/grub/i386/ieee1275/console.h: Likewise.
16843 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
16844 * include/grub/i386/ieee1275/kernel.h: Likewise.
16845 * include/grub/i386/ieee1275/time.h: Likewise.
16846 * kern/i386/ieee1275/init.c: Likewise.
16847 * kern/i386/ieee1275/startup.S: Likewise.
16848
16849 2008-01-15 Robert Millan <rmh@aybabtu.com>
16850
16851 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
16852 when pointers are 32-bit (but still do set it to one when they are
16853 64-bit).
16854
16855 2008-01-15 Robert Millan <rmh@aybabtu.com>
16856
16857 * include/grub/ieee1275/ieee1275.h
16858 (grub_ieee1275_get_integer_property): New function prototype.
16859
16860 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
16861 (grub_ieee1275_get_integer_property): New function. Wraps around
16862 grub_ieee1275_get_property() to handle endianness.
16863
16864 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
16865 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
16866 where appropriate.
16867 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
16868 (grub_map): Likewise.
16869 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
16870
16871 2008-01-15 Bean <bean123ch@gmail.com>
16872
16873 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
16874 (grub_script_execute_cmdline): Reset grub_errno.
16875
16876 * normal/main.c (read_config_file): Reset grub_errno.
16877
16878 * normal/parse.y (script_init): New.
16879 (script): Move function and menuentry here.
16880 (delimiter): New.
16881 (command): Add delimiter at the end of command.
16882 (commands): Adjust to match the new command.
16883 (commandblock): Remove grub_script_lexer_record_start.
16884 (menuentry): Add grub_script_lexer_record_start, use the new commands.
16885 (if): Use the new commands.
16886
16887 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
16888
16889 2008-01-15 Robert Millan <rmh@aybabtu.com>
16890
16891 * normal/menu.c (run_menu): Move timeout message from here ...
16892 (print_timeout): ... to here.
16893 (run_menu): Use print_timeout() once during initial draw to print
16894 the whole message, and again in every clock tick to update only
16895 the number of seconds.
16896
16897 2008-01-15 Robert Millan <rmh@aybabtu.com>
16898
16899 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
16900 actual size of `available' from grub_ieee1275_get_property(), and
16901 restrict parsing to that bound.
16902
16903 2008-01-15 Christian Franke <franke@computer.org>
16904
16905 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
16906 (argp_program_version): Remove variable.
16907 (argp_program_bug_address): Likewise.
16908 (options): Convert from struct argp_option to struct option.
16909 (struct arguments): Remove.
16910 (parse_opt): Remove.
16911 (usage): New function.
16912 (main): Replace struct args members by simple variables.
16913 Replace argp_parse() by getopt_long().
16914 Add switch to evaluate options.
16915 Add missing "(...)" around root_dev in prefix string.
16916
16917 2008-01-14 Robert Millan <rmh@aybabtu.com>
16918
16919 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
16920 for grub_ieee1275_exit(), in order to improve portability.
16921
16922 2008-01-14 Robert Millan <rmh@aybabtu.com>
16923
16924 * util/grub.d/10_linux.in (prefix): Define.
16925 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
16926
16927 2008-01-13 Pavel Roskin <proski@gnu.org>
16928
16929 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
16930 grub_errno if no errors have been detected.
16931
16932 2008-01-12 Robert Millan <rmh@aybabtu.com>
16933
16934 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
16935 (grub_util_get_dev_abstraction): New function prototype.
16936
16937 * util/getroot.c: Include `<grub/util/getroot.h>'
16938 (grub_util_get_grub_dev): Move detection of abstraction type to ...
16939 (grub_util_get_dev_abstraction): ... here (new function).
16940
16941 * util/grub-probe.c: Convert PRINT_* to an enum. Add
16942 `PRINT_ABSTRACTION'.
16943 (probe): Probe for abstraction type when requested.
16944 (main): Understand `--target=abstraction'.
16945
16946 * util/i386/efi/grub-install.in: Add abstraction module to core
16947 image when it is found to be necessary.
16948 * util/i386/pc/grub-install.in: Likewise.
16949 * util/powerpc/ieee1275/grub-install.in: Likewise.
16950
16951 * util/update-grub_lib.in (font_path): Return system path without
16952 converting to GRUB path.
16953 * util/update-grub.in: Convert system path returned by font_path()
16954 to a GRUB path. Use `grub-probe -t abstraction' to determine what
16955 abstraction module is needed for loading fonts (if any). Export
16956 that as `GRUB_PRELOAD_MODULES'.
16957 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
16958 insmod commands).
16959
16960 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
16961
16962 Remove some unused code from reiserfs.
16963
16964 * fs/reiserfs.c (struct grub_reiserfs_key)
16965 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
16966 (struct grub_reiserfs_node_body): Removed.
16967 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
16968 Likewise.
16969 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
16970 Likewise.
16971 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
16972 Likewise.
16973 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
16974 Likewise.
16975 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
16976 Likewise.
16977 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
16978 Likewise.
16979 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
16980 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
16981 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
16982
16983 2008-01-10 Robert Millan <rmh@aybabtu.com>
16984
16985 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
16986 Determines if a file is garbage left by packaging systems, etc.
16987 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
16988 for processing /etc/grub.d scripts.
16989 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
16990 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
16991 as a condition for processing Linux images.
16992
16993 2008-01-10 Pavel Roskin <proski@gnu.org>
16994
16995 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
16996 to compile reiserfs.c on PowerPC.
16997
16998 2008-01-10 Robert Millan <rmh@aybabtu.com>
16999
17000 * kern/device.c (grub_device_iterate): Do not abort device iteration
17001 when one of the devices cannot be opened.
17002 * kern/disk.c (grub_disk_open): Do not account previous failures of
17003 unrelated functions when grub_errno is checked for.
17004
17005 2008-01-08 Robert Millan <rmh@aybabtu.com>
17006
17007 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
17008 `! grub_linux_is_bzimage', change order of address comparison to make
17009 it more intuitive, and improve "too big zImage" error message.
17010
17011 2008-01-08 Robert Millan <rmh@aybabtu.com>
17012
17013 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
17014 `$(update-grub_DATA)'.
17015 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
17016 targets.
17017
17018 2008-01-07 Robert Millan <rmh@aybabtu.com>
17019
17020 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
17021 which instruction is modified by grub-setup during installation
17022 (since it wasn't obvious by only looking at this file).
17023
17024 2008-01-07 Robert Millan <rmh@aybabtu.com>
17025
17026 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
17027 listing actual TODO items.
17028
17029 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
17030
17031 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
17032 correctly.
17033 (grub_reiserfs_get_key_offset): Likewise.
17034 (grub_reiserfs_set_key_offset): Likewise.
17035 (grub_reiserfs_set_key_type): Likewise.
17036 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
17037
17038 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
17039 better to remove the bitfield version completely.
17040
17041 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
17042
17043 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
17044 allocated from the heap, due to the fshelp implementation.
17045 (grub_reiserfs_dir): Free NODE, due to the same reason.
17046
17047 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
17048
17049 Mostly from Vincent Pelletier:
17050
17051 * fs/reiserfs.c: New file.
17052
17053 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
17054 (reiserfs_mod_SOURCES): New variable.
17055 (reiserfs_mod_CFLAGS): Likewise.
17056 (reiserfs_mod_LDFLAGS): Likewise.
17057
17058 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
17059 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
17060 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
17061 normal/color.c.
17062
17063 2008-01-06 Robert Millan <rmh@aybabtu.com>
17064
17065 * normal/color.c: Remove `<grub/env.h>'.
17066
17067 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
17068
17069 * include/grub/normal.h: Include <grub/env.h>.
17070
17071 2008-01-05 Robert Millan <rmh@aybabtu.com>
17072
17073 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
17074 usage example with `(hd0,1)'.
17075 Reported by Samuel Thibault.
17076
17077 2008-01-05 Robert Millan <rmh@aybabtu.com>
17078
17079 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
17080 (grub_linux_boot_zimage): Rename to ...
17081 (grub_linux_boot): ... this.
17082 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
17083 (grub_linux_boot_zimage): Conditionalize zImage copy.
17084
17085 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
17086 (grub_linux_boot_bzimage): Remove prototype.
17087 (grub_linux_boot_zimage): Rename to ...
17088 (grub_linux_boot): ... this.
17089
17090 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
17091 (grub_linux_boot): Remove function.
17092
17093 2008-01-05 Robert Millan <rmh@aybabtu.com>
17094
17095 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
17096 (grub_env_write_color_highlight): Likewise.
17097 (grub_wait_after_message): Likewise.
17098
17099 * normal/color.c: New file.
17100
17101 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
17102 (normal_mod_DEPENDENCIES): Likewise.
17103
17104 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
17105 (normal_mod_DEPENDENCIES): Likewise.
17106
17107 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
17108 (normal_mod_DEPENDENCIES): Likewise.
17109
17110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
17111 (normal_mod_DEPENDENCIES): Likewise.
17112
17113 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
17114 for waiting after a message is printed.
17115 * normal/main.c (read_config_file): Likewise.
17116 (grub_normal_init): Register grub_env_write_color_normal() and
17117 grub_env_write_color_highlight() hooks. Mark `color_normal' and
17118 `color_highlight' variables as global.
17119
17120 * normal/menu.c (grub_wait_after_message): New function.
17121 (grub_color_menu_normal): New variable. Replaces ...
17122 (GRUB_COLOR_MENU_NORMAL): ... this macro.
17123 (grub_color_menu_highlight): New variable. Replaces ...
17124 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
17125 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
17126 `GRUB_TERM_COLOR_STANDARD'.
17127 (print_message): Use `grub_setcolorstate' to reload colors. Rename
17128 `normal_code' and `highlight_code' to `old_color_normal' and
17129 `old_color_highlight', respectively.
17130 (grub_menu_init_page): Update colors when drawing the menu, based on
17131 `menu_color_normal' and `menu_color_highlight' variables.
17132 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
17133 a message is printed.
17134
17135 2008-01-05 Robert Millan <rmh@aybabtu.com>
17136
17137 * kern/env.c (grub_env_context_open): Propagate hooks for global
17138 variables to new context.
17139
17140 * kern/main.c (grub_set_root_dev): Export `root' variable.
17141
17142 2008-01-05 Robert Millan <rmh@aybabtu.com>
17143
17144 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
17145 discs unconditionally, since udev and others have options to provide
17146 them.
17147
17148 2008-01-05 Robert Millan <rmh@aybabtu.com>
17149
17150 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
17151
17152 2008-01-04 Christian Franke <franke@computer.org>
17153
17154 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
17155 of eisa_mmap.
17156
17157 2008-01-03 Pavel Roskin <proski@gnu.org>
17158
17159 * kern/i386/linuxbios/init.c: Put "void" to all function
17160 declarations with no arguments.
17161 * kern/powerpc/ieee1275/init.c: Likewise.
17162 * term/i386/pc/at_keyboard.c: Likewise.
17163 * term/i386/pc/vga_text.c: Likewise.
17164 * util/grub-mkdevicemap.c: Likewise.
17165
17166 2008-01-02 Robert Millan <rmh@aybabtu.com>
17167
17168 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
17169 message when loaded image is out of bounds.
17170 (grub_multiboot_load_elf64): Likewise.
17171
17172 2008-01-02 Pavel Roskin <proski@gnu.org>
17173
17174 * util/grub.d/10_linux.in: Try version without ".old" when
17175 looking for initrd. It's better to use initrd from the newer
17176 kernel of the same version than no initrd at all.
17177
17178 2008-01-01 Robert Millan <rmh@aybabtu.com>
17179
17180 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
17181
17182 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
17183
17184 * include/grub/video.h: Added grub_video_unmap_color and
17185 grub_video_get_active_render_target.
17186 (grub_video_adapter): Added unmap_color and get_active_render_target.
17187
17188 * video/video.c: Added grub_video_unmap_color and
17189 grub_video_get_active_render_target.
17190 (grub_video_get_info): Changed method to accept NULL pointer as an
17191 argument to allow detection of active video adapter.
17192
17193 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
17194 grub_video_vbe_unmap_color_int.
17195 Added grub_video_vbe_unmap_color and
17196 grub_video_vbe_get_active_render_target.
17197 (grub_video_vbe_adapter): Added unmap_color and
17198 get_active_render_target.
17199
17200 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
17201 with grub_video_vbe_unmap_color_int.
17202
17203 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
17204 (DEFAULT_NORMAL_COLOR): Likewise.
17205 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
17206 (DEFAULT_FG_COLOR): Removed.
17207 (DEFAULT_BG_COLOR): Likewise.
17208 (DEFAULT_CURSOR_COLOR): Changed value.
17209 (grub_virtual_screen): Added standard_color_setting,
17210 normal_color_setting, highlight_color_setting and term_color.
17211 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
17212 (bitmap_width): Added.
17213 (bitmap_height): Likewise.
17214 (bitmap): Likewise.
17215 (set_term_color): Likewise.
17216 (grub_virtual_screen_setup): Changed to use new terminal coloring
17217 settings.
17218 (grub_gfxterm_init): Added init for bitmap.
17219 (grub_gfxterm_fini): Added destroy for bitmap.
17220 (redraw_screen_rect): Updated to use background bitmap and new
17221 terminal coloring.
17222 (scroll_up): Added optimization for case when there is no bitmap.
17223 (grub_gfxterm_cls): Fixed to use correct background color.
17224 (grub_virtual_screen_setcolorstate): Changed to use new terminal
17225 coloring.
17226 (grub_virtual_screen_setcolor): Likewise.
17227 (grub_virtual_screen_getcolor): Added.
17228 (grub_gfxterm_background_image_cmd): Likewise.
17229 (grub_video_term): Added setcolor and getcolor.
17230 (MOD_INIT): Added registration of background_image command.
17231 (MOD_TERM): Added unregistration for background_image command.
17232
17233 2007-12-30 Pavel Roskin <proski@gnu.org>
17234
17235 * loader/multiboot_loader.c: Fix multiboot command
17236 unregistration. Fix all typos in the word "multiboot".
17237
17238 2007-12-29 Pavel Roskin <proski@gnu.org>
17239
17240 * util/grub.d/10_linux.in: Refactor search for initrd. Add
17241 support for initrd names used in Fedora.
17242
17243 2007-12-26 Bean <bean123ch@gmail.com>
17244
17245 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
17246 (cpio_mod_SOURCES): New variable.
17247 (cpio_mod_CFLAGS): Likewise.
17248 (cpio_mod_LDFLAGS): Likewise.
17249
17250 * fs/cpio.c: New file.
17251
17252 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
17253
17254 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17255
17256 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17257
17258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17259
17260 2007-12-25 Robert Millan <rmh@aybabtu.com>
17261
17262 * include/grub/term.h (struct grub_term): Add `getcolor' function.
17263 (grub_getcolor): New function.
17264
17265 * kern/term.c (grub_getcolor): New function.
17266 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
17267 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
17268 (print_entry): Set normal and highlight colors to
17269 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
17270 respectively, before printing and restore them to old
17271 values afterwards.
17272 (grub_menu_init_page): Likewise. Fill an additional colored space
17273 that would otherwise be left blank.
17274
17275 * term/efi/console.c (grub_console_getcolor): New function.
17276 (struct grub_console_term.getcolor): New variable.
17277 * term/i386/pc/console.c (grub_console_getcolor): New function.
17278 (struct grub_console_term.getcolor): New variable.
17279 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
17280 (struct grub_console_term.getcolor): New variable.
17281
17282 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
17283 (struct grub_console_term.setcolor): Remove variable.
17284 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
17285 (struct grub_console_term.setcolor): Remove variable.
17286 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
17287 (struct grub_console_term.setcolor): Remove variable.
17288 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
17289 (struct grub_console_term.setcolor): Remove variable.
17290
17291 2007-12-25 Robert Millan <rmh@aybabtu.com>
17292
17293 * configure.ac: Search for possible unifont.hex locations, and
17294 define UNIFONT_HEX if found.
17295
17296 * Makefile.in (UNIFONT_HEX): Define variable.
17297 (DATA): Rename to ...
17298 (PKGLIB): ... this. Update all users.
17299 (PKGDATA): New variable.
17300 (pkgdata_IMAGES): Rename to ...
17301 (pkglib_IMAGES): ... this. Update all users.
17302 (pkgdata_MODULES): Rename to ...
17303 (pkglib_MODULES): ... this. Update all users.
17304 (pkgdata_PROGRAMS): Rename to ...
17305 (pkglib_PROGRAMS): ... this. Update all users.
17306 (pkgdata_DATA): Rename to ...
17307 (pkglib_DATA): ... this. Update all users.
17308 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
17309 (unicode.pff, ascii.pff): New rules.
17310 (all-local): Add `$(PKGDATA)' dependency.
17311 (install-local): Process `$(PKGDATA)'.
17312
17313 * util/update-grub_lib.in (font_path): Search for *.pff files in
17314 a few more locations, including `${pkgdata}'.
17315
17316 2007-12-23 Robert Millan <rmh@aybabtu.com>
17317
17318 Patch from Bean <bean123ch@gmail.com>:
17319 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
17320 `size'.
17321
17322 2007-12-21 Bean <bean123ch@gmail.com>
17323
17324 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
17325 (ntfscomp_mod_SOURCES): New variable.
17326 (ntfscomp_mod_CFLAGS): Likewise.
17327 (ntfscomp_mod_LDFLAGS): Likewise.
17328
17329 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
17330 (grub_probe_SOURCES): Likewise.
17331 (grub_emu_SOURCES): Likewise.
17332
17333 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
17334 (grub_emu_SOURCES): Likewise.
17335
17336 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
17337 (grub_emu_SOURCES): Likewise.
17338
17339 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
17340 (grub_emu_SOURCES): Likewise.
17341
17342 * fs/ntfs.c (grub_ntfscomp_func): New variable.
17343 (read_run_list): Renamed to grub_ntfs_read_run_list.
17344 (decomp_nextvcn): Moved to ntfscomp.c.
17345 (decomp_getch): Likewise.
17346 (decomp_get16): Likewise.
17347 (decomp_block): Likewise.
17348 (read_block): Likewise.
17349 (read_data): Partially moved to ntfscomp.c.
17350 (fixup): Change unsigned to grub_uint16_t.
17351 (read_mft): Change unsigned long to grub_uint32_t.
17352 (read_attr): Likewise.
17353 (read_data): Likewise.
17354 (read_run_data): Likewise.
17355 (read_run_list): Likewise.
17356 (read_mft): Likewise.
17357
17358 * fs/ntfscomp.c: New file.
17359
17360 * include/grub/ntfs.h: New file.
17361
17362 2007-12-16 Robert Millan <rmh@aybabtu.com>
17363
17364 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
17365 IDE disk check, since Linux is known to support 20 IDE disks.
17366 Reported by Colin Watson.
17367
17368 2007-12-15 Bean <bean123ch@gmail.com>
17369
17370 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
17371 (lnxboot_img_SOURCES): New variable.
17372 (lnxboot_img_ASFLAGS): Likewise.
17373 (lnxboot_img_LDFLAGS): Likewise.
17374
17375 * boot/i386/pc/lnxboot.S: New file.
17376
17377 2007-11-24 Pavel Roskin <proski@gnu.org>
17378
17379 * configure.ac: Test if '--build-id=none' is supported by the
17380 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
17381 objcopy to generate incorrect binary files (binutils
17382 2.17.50.0.18-1 as shipped by Fedora 8).
17383 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
17384 linking, so that build ID doesn't break the test.
17385
17386 2007-11-24 Pavel Roskin <proski@gnu.org>
17387
17388 * include/grub/i386/time.h: use "void" in the argument list
17389 of grub_cpu_idle().
17390 * include/grub/powerpc/time.h: Likewise.
17391 * include/grub/sparc64/time.h: Likewise.
17392
17393 2007-11-18 Christian Franke <franke@computer.org>
17394
17395 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
17396 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
17397 This fixes the problem that function keys did not work in grub-emu.
17398
17399 2007-11-18 Christian Franke <franke@computer.org>
17400
17401 * disk/host.c (grub_host_open): Remove attribute unused from
17402 name parameter. Add check for "host". This fixes the problem
17403 that grub-emu does not find partitions.
17404
17405 2007-11-18 Christian Franke <franke@computer.org>
17406
17407 * util/hostfs.c (is_dir): New function.
17408 (grub_hostfs_dir): Handle missing dirent.d_type case.
17409 (grub_hostfs_read): Add missing fseek().
17410 (grub_hostfs_label): Clear label pointer. This fixes a crash
17411 of grub-emu on "ls (host)".
17412
17413 2007-11-18 Christian Franke <franke@computer.org>
17414
17415 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
17416 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
17417 to 64 bit boundary by default.
17418
17419 2007-11-18 Bean <bean123ch@gmail.com>
17420
17421 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
17422 (hexdump_mod_SOURCES): New variable.
17423 (hexdump_mod_CFLAGS): Likewise.
17424 (hexdump_mod_LDFLAGS): Likewise.
17425
17426 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
17427
17428 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
17429
17430 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
17431
17432 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
17433
17434 * include/grub/hexdump.h: New file.
17435
17436 * commands/hexdump.c: New file.
17437
17438 2007-11-10 Robert Millan <rmh@aybabtu.com>
17439
17440 * commands/i386/pc/play.c (beep_off): Switch order of arguments
17441 in grub_outb() calls.
17442 (beep_on): Likewise.
17443
17444 2007-11-10 Christian Franke <franke@computer.org>
17445
17446 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
17447 (grub_menu_run): Likewise.
17448
17449 2007-11-10 Robert Millan <rmh@aybabtu.com>
17450
17451 * include/grub/i386/efi/machine.h: New file.
17452 * include/grub/i386/linuxbios/machine.h: Likewise.
17453 * include/grub/i386/pc/machine.h: Likewise.
17454 * include/grub/powerpc/ieee1275/machine.h: Likewise.
17455 * include/grub/sparc64/ieee1275/machine.h: Likewise.
17456
17457 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
17458 (serial_hw_io_addr): New variable.
17459 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
17460 instead of `(unsigned short *) 0x400'.
17461
17462 2007-11-10 Bean <bean123ch@gmail.com>
17463
17464 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
17465
17466 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
17467
17468 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
17469 (vga_mod_SOURCES): Added.
17470 (vga_mod_CFLAGS): Likewise.
17471 (vga_mod_LDFLAGS): Likewise.
17472
17473 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
17474 grub_outb() calls.
17475 (set_map_mask): Likewise.
17476 (set_read_map): Likewise.
17477 (set_read_address): Likewise.
17478 (vga_font): Removed variable.
17479 (get_vga_glyph): Removed function.
17480 (invalidate_char): Likewise.
17481 (write_char): Changed to use grub_font_get_glyph() for font
17482 information.
17483 (grub_vga_putchar): Likewise.
17484 (grub_vga_getcharwidth): Likewise.
17485
17486 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
17487
17488 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
17489 flags.
17490 (pxeboot_img_LDFLAGS): Likewise.
17491 (diskboot_img_LDFLAGS): Likewise.
17492 (kernel_img_LDFLAGS): Likewise.
17493
17494 2007-11-06 Robert Millan <rmh@aybabtu.com>
17495
17496 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
17497 in grub_outb() calls.
17498 (serial_hw_init): Likewise.
17499
17500 2007-11-05 Robert Millan <rmh@aybabtu.com>
17501
17502 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
17503 spaces. Skip non-regular files.
17504
17505 2007-11-05 Robert Millan <rmh@aybabtu.com>
17506
17507 * kern/disk.c (grub_disk_firmware_fini)
17508 (grub_disk_firmware_is_tainted): New variables.
17509
17510 * include/grub/disk.h (grub_disk_firmware_fini)
17511 (grub_disk_firmware_is_tainted): Likewise.
17512
17513 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
17514 (grub_disk_biosdisk_fini): ... to here.
17515 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
17516 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
17517 is set. Register grub_disk_biosdisk_fini() in
17518 `grub_disk_firmware_fini'.
17519
17520 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
17521 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
17522 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
17523 to finish existing firmware disk interface.
17524
17525 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
17526 (ata_mod_SOURCES): New variable.
17527 (ata_mod_CFLAGS): Likewise.
17528 (ata_mod_LDFLAGS): Likewise.
17529
17530 2007-11-05 Robert Millan <rmh@aybabtu.com>
17531
17532 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
17533 (grub_ata_wait): Reimplement using grub_millisleep().
17534
17535 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
17536 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
17537
17538 2007-11-03 Marco Gerards <marco@gnu.org>
17539
17540 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
17541 (CRTC_ADDR_PORT): New macro.
17542 (CRTC_DATA_PORT): Likewise.
17543 (CRTC_CURSOR): Likewise.
17544 (CRTC_CURSOR_ADDR_HIGH): Likewise.
17545 (CRTC_CURSOR_ADDR_LOW): Likewise.
17546 (update_cursor): New function.
17547 (grub_console_real_putchar): Call `update_cursor'.
17548 (grub_console_gotoxy): Likewise.
17549 (grub_console_cls): Set the default color when clearing the
17550 screen.
17551 (grub_console_setcursor): Implemented.
17552
17553 2007-11-03 Marco Gerards <marco@gnu.org>
17554
17555 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
17556 become activate.
17557 (grub_ata_pio_write): Likewise.
17558
17559 (grub_atapi_identify): Wait after issuing an ATA command.
17560 (grub_atapi_packet): Likewise.
17561 (grub_ata_identify): Likewise.
17562 (grub_ata_readwrite): Likewise.
17563
17564 2007-11-03 Marco Gerards <marco@gnu.org>
17565
17566 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
17567 (grub_ata_pio_write): Likewise.
17568 (grub_ata_readwrite): Use `grub_error', instead of
17569 returning `grub_errno'.
17570
17571 2007-11-03 Marco Gerards <marco@gnu.org>
17572
17573 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
17574 grub_ata_pio_write once for every single sector, instead of for
17575 multiple sectors.
17576
17577 2007-10-31 Robert Millan <rmh@aybabtu.com>
17578
17579 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
17580
17581 * conf/i386-linuxbios.rmk: New file.
17582
17583 * kern/i386/pc/hardware.c: Likewise.
17584 * term/i386/pc/at_keyboard.c: Likewise.
17585 * term/i386/pc/vga_text.c: Likewise.
17586
17587 * include/grub/i386/linuxbios/boot.h: Likewise.
17588 * include/grub/i386/linuxbios/console.h: Likewise.
17589 * include/grub/i386/linuxbios/init.h: Likewise.
17590 * include/grub/i386/linuxbios/kernel.h: Likewise.
17591 * include/grub/i386/linuxbios/loader.h: Likewise.
17592 * include/grub/i386/linuxbios/memory.h: Likewise.
17593 * include/grub/i386/linuxbios/serial.h: Likewise.
17594 * include/grub/i386/linuxbios/time.h: Likewise.
17595
17596 * kern/i386/linuxbios/init.c: Likewise.
17597 * kern/i386/linuxbios/startup.S: Likewise.
17598 * kern/i386/linuxbios/table.c: Likewise.
17599
17600 2007-10-31 Marco Gerards <marco@gnu.org>
17601
17602 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
17603 (ata_mod_SOURCES): New variable.
17604 (ata_mod_CFLAGS): Likewise.
17605 (ata_mod_LDFLAGS): Likewise.
17606
17607 * disk/ata.c: New file.
17608
17609 * include/grub/disk.h (grub_disk_dev_id): Add
17610 `GRUB_DISK_DEV_ATA_ID'.
17611
17612 2007-10-31 Robert Millan <rmh@aybabtu.com>
17613
17614 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
17615 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
17616
17617 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
17618 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
17619
17620 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
17621 `<grub/types.h>'.
17622
17623 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
17624
17625 2007-10-27 Robert Millan <rmh@aybabtu.com>
17626
17627 * include/grub/types.h (ULONG_MAX): Define macro.
17628
17629 2007-10-22 Robert Millan <rmh@aybabtu.com>
17630
17631 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
17632 `"../realmode.S"'.
17633 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
17634
17635 2007-10-22 Robert Millan <rmh@aybabtu.com>
17636
17637 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
17638 (pkgdata_MODULES): Add `biosdisk.mod'.
17639 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
17640 variables.
17641
17642 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
17643 (grub_biosdisk_init): Replace with ...
17644 (GRUB_MOD_INIT(biosdisk)): ... this.
17645 (grub_biosdisk_fini): Replace with ...
17646 (GRUB_MOD_FINI(biosdisk)): ... this.
17647
17648 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
17649 (grub_machine_init): Remove call to grub_biosdisk_init().
17650 (grub_machine_fini): Remove call to grub_machine_fini().
17651
17652 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
17653
17654 2007-10-22 Robert Millan <rmh@aybabtu.com>
17655
17656 * include/grub/time.h: New file.
17657 * include/grub/i386/time.h: Likewise.
17658 * include/grub/powerpc/time.h: Likewise.
17659 * include/grub/sparc64/time.h: Likewise.
17660
17661 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
17662 instances to ...
17663 (KERNEL_MACHINE_TIME_HEADER): ... this.
17664 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
17665 instances to ...
17666 (KERNEL_MACHINE_TIME_HEADER): ... this.
17667 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
17668 instances to ...
17669 (KERNEL_MACHINE_TIME_HEADER): ... this.
17670
17671 * kern/i386/efi/init.c: Include `<grub/time.h>'.
17672 (grub_millisleep): New function.
17673 * kern/i386/pc/init.c: Include `<grub/time.h>'.
17674 (grub_millisleep): New function.
17675 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
17676 Remove `grub/machine/time.h' include.
17677 (grub_millisleep): New function.
17678 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
17679 Remove `grub/machine/time.h' include.
17680 (grub_millisleep): New function.
17681
17682 * include/grub/misc.h (grub_div_roundup): New function.
17683
17684 * kern/misc.c: Include `<grub/time.h>'.
17685 (grub_millisleep_generic): New function.
17686
17687 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
17688 Add `time.h'.
17689 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
17690 Add `time.h'.
17691 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
17692 `machine/time.h'. Add `time.h'.
17693 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
17694
17695 2007-10-21 Robert Millan <rmh@aybabtu.com>
17696
17697 * include/grub/misc.h (grub_max): New function.
17698
17699 2007-10-21 Robert Millan <rmh@aybabtu.com>
17700
17701 * util/misc.c (grub_util_info): Call fflush() before returning.
17702
17703 2007-10-20 Robert Millan <rmh@aybabtu.com>
17704
17705 * genmk.rb (Image): Copy `extra_flags' from here ...
17706 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
17707
17708 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
17709 to `argc' and `args' arguments.
17710
17711 2007-10-17 Robert Millan <rmh@aybabtu.com>
17712
17713 * kern/i386/loader.S: New file.
17714
17715 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
17716 * kern/i386/loader.S (grub_linux_prot_size)... to here.
17717 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
17718 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
17719 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
17720 * kern/i386/loader.S (grub_linux_real_addr)... to here.
17721 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
17722 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
17723 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
17724 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
17725 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
17726 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
17727 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
17728 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
17729
17730 * kern/i386/realmode.S: New file.
17731
17732 * kern/i386/pc/startup.S (protstack): Moved from here ...
17733 * kern/i386/realmode.S (protstack)... to here.
17734 * kern/i386/pc/startup.S (gdt): Moved from here ...
17735 * kern/i386/realmode.S (gdt)... to here.
17736 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
17737 * kern/i386/realmode.S (prot_to_real)... to here.
17738
17739 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
17740 `kern/i386/realmode.S'.
17741
17742 2007-10-17 Robert Millan <rmh@aybabtu.com>
17743
17744 * include/grub/i386/loader.h: New file.
17745
17746 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
17747 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
17748 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
17749 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
17750 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
17751 * include/grub/i386/loader.h (grub_linux_prot_size)
17752 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
17753 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
17754 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
17755 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
17756
17757 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
17758
17759 2007-10-15 Robert Millan <rmh@aybabtu.com>
17760
17761 * normal/misc.c (grub_normal_print_device_info): Do not probe for
17762 filesystem when dev->disk is unset.
17763 Do probe for filesystem even when dev->disk->has_partitions is set.
17764 In case a filesystem is found, always report it.
17765 In case it isn't, if dev->disk->has_partitions is set, report that
17766 a partition table was found instead of reporting that no filesystem
17767 could be identified.
17768
17769 2007-10-12 Robert Millan <rmh@aybabtu.com>
17770
17771 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
17772 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
17773
17774 * include/grub/types.h (grub_host_to_target16): New macro.
17775 (grub_host_to_target32): Likewise.
17776 (grub_host_to_target64): Likewise.
17777 (grub_target_to_host16): Likewise.
17778 (grub_target_to_host32): Likewise.
17779 (grub_target_to_host64): Likewise.
17780
17781 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
17782 Renamed from to ...
17783 (GRUB_MOD_ALIGN): ...this. Update all users.
17784
17785 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
17786 grub_host_to_target32.
17787 Replace grub_be_to_cpu32 with grub_target_to_host32.
17788 (load_modules): Likewise.
17789 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
17790 Replace grub_be_to_cpu32 with grub_target_to_host32.
17791 Replace grub_cpu_to_be16 with grub_host_to_target16.
17792 Replace grub_cpu_to_be32 grub_host_to_target32.
17793
17794 2007-10-12 Robert Millan <rmh@aybabtu.com>
17795
17796 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
17797 * util/elf/grub-mkimage.c: ... here.
17798
17799 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
17800 `util/powerpc/ieee1275/grub-mkimage.c'.
17801
17802 2007-10-07 Robert Millan <rmh@aybabtu.com>
17803
17804 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
17805 and make it easier to figure out.
17806 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
17807 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
17808 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
17809 leave us with less than HEAP_MIN_SIZE total heap.
17810 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
17811
17812 2007-10-03 Robert Millan <rmh@aybabtu.com>
17813
17814 * include/grub/i386/io.h: New file.
17815 * commands/i386/pc/play.c (inb): Removed.
17816 (outb): Removed.
17817 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
17818 with grub_outb().
17819 * term/i386/pc/serial.c (inb): Removed.
17820 (outb): Removed.
17821 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
17822 with grub_outb().
17823 * term/i386/pc/vga.c (inb): Removed.
17824 (outb): Removed.
17825 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
17826 with grub_outb().
17827
17828 2007-10-02 Robert Millan <rmh@aybabtu.com>
17829
17830 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
17831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17832 Reported by Marcin Kurek.
17833
17834 2007-09-07 Robert Millan <rmh@aybabtu.com>
17835
17836 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
17837 SmartFirmware version updates (as released by Sven Luther), and avoid
17838 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
17839 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
17840 known broken.
17841
17842 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17843
17844 From Hitoshi Ozeki:
17845 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
17846 when merging two regions.
17847
17848 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17849
17850 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
17851 * normal/completion.c (grub_normal_do_completion): Likewise.
17852 Reported by Hitoshi Ozeki.
17853
17854 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17855
17856 Do not use devices at boot in chainloading.
17857
17858 * loader/i386/pc/chainloader.c (boot_drive): New variable.
17859 (boot_part_addr): Likewise.
17860 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
17861 with BOOT_DRIVE and BOOT_PART_ADDR.
17862 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
17863 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
17864
17865 2007-08-29 Robert Millan <rmh@aybabtu.com>
17866
17867 Patch from Simon Peter <dn.tlp@gmx.net>:
17868 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
17869 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
17870 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
17871 util/i386/pc/grub-setup.c_DEPENDENCIES.
17872 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
17873 util/grub-probe.c_DEPENDENCIES.
17874 * conf/powerpc-ieee1275.rmk: Likewise.
17875
17876 2007-08-28 Robert Millan <rmh@aybabtu.com>
17877
17878 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
17879 to tell grub-mkdevicemap how to name devices.
17880 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
17881 feature).
17882
17883 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
17884 util/i386/get_disk_name.c.
17885 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
17886 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
17887 util/ieee1275/get_disk_name.c.
17888
17889 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
17890
17891 * DISTLIST: Add util/i386/get_disk_name.c and
17892 util/ieee1275/get_disk_name.c.
17893
17894 * util/grub-mkdevicemap.c: Replace device naming logic with
17895 grub_util_get_disk_name() calls.
17896
17897 2007-08-20 Robert Millan <rmh@aybabtu.com>
17898
17899 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
17900 (so that it works for both plural and singular quantities).
17901
17902 2007-08-05 Robert Millan <rmh@aybabtu.com>
17903
17904 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
17905 so that [xz] isn't taken into account when determining order.
17906
17907 2007-08-02 Marco Gerards <marco@gnu.org>
17908
17909 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
17910 `include/multiboot2.h', `include/grub/elfload.h',
17911 `include/multiboot.h', `include/grub/multiboot.h',
17912 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
17913 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
17914 `kern/elf.c', `loader/multiboot_loader.c',
17915 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
17916 `loader/i386/pc/multiboot2.c',
17917 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
17918 `util/i386/pc/grub-mkrescue.in'. Remove
17919 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
17920 `include/grub/i386/pc/util/biosdisk.h' and
17921 `include/grub/powerpc/ieee1275/multiboot.h'.
17922
17923 2007-08-02 Bean <bean123ch@gmail.com>
17924
17925 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
17926 (ntfs_mod_SOURCES): New variable.
17927 (ntfs_mod_CFLAGS): Likewise.
17928 (ntfs_mod_LDFLAGS): Likewise.
17929
17930 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
17931 (grub_probe_SOURCES): Likewise.
17932 (grub_emu_SOURCES): Likewise.
17933
17934 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
17935 (grub_emu_SOURCES): Likewise.
17936
17937 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
17938 (grub_emu_SOURCES): Likewise.
17939
17940 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
17941
17942 * fs/ntfs.c: New file.
17943
17944 2007-08-02 Bean <bean123ch@gmail.com>
17945
17946 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
17947
17948 * file.h (grub_file): Likewise.
17949
17950 * fshelp.h (grub_fshelp_read_file): Likewise.
17951
17952 * util/i386/pc/grub-setup.c (setup): Likewise.
17953 (save_first_sector): Likewise.
17954 (save_blocklists): Likewise.
17955
17956 * fs/affs.c (grub_affs_read_file): Likewise.
17957
17958 * fs/ext2.c (grub_ext2_read_file): Likewise.
17959
17960 * fs/fat.c (grub_fat_read_data): Likewise.
17961
17962 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
17963
17964 * fs/hfs.c (grub_hfs_read_file): Likewise.
17965
17966 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
17967
17968 * fs/jfs.c (grub_jfs_read_file): Likewise.
17969
17970 * fs/minix.c (grub_minix_read_file): Likewise.
17971
17972 * fs/sfs.c (grub_sfs_read_file): Likewise.
17973
17974 * fs/ufs.c (grub_ufs_read_file): Likewise.
17975
17976 * fs/xfs.c (grub_xfs_read_file): Likewise.
17977
17978 * command/blocklist.c (read_blocklist): Likewise.
17979 (print_blocklist): Likewise.
17980
17981 2007-08-02 Marco Gerards <marco@gnu.org>
17982
17983 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
17984 `util/hostfs.c'.
17985
17986 * disk/host.c: New file.
17987
17988 * util/hostfs.c: Likewise.
17989
17990 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
17991 return `GRUB_ERR_BAD_FS'.
17992 * fs/sfs.c (grub_sfs_mount): Likewise.
17993 * fs/xfs.c (grub_xfs_mount): Likewise.
17994
17995 * include/grub/disk.h (enum grub_disk_dev_id): Add
17996 `GRUB_DISK_DEVICE_HOST_ID'.
17997
17998 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
17999
18000 2007-07-24 Jerone Young <jerone@gmail.com>
18001
18002 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
18003 modules for compilation.
18004 * conf/powerpc-ieee1275.rmk: Likewise.
18005
18006 * include/multiboot.h: Move multiboot definitions to one file. Rename
18007 many definitions to not get grub specific.
18008 * include/multiboot2.h: Create header with multiboot 2 definitions.
18009 * include/grub/multiboot.h: Header for grub specific function
18010 prototypes and definitions.
18011 * include/grub/multiboot2.h: Likewise.
18012 * include/grub/multiboot_loader.h: Likewise.
18013 * include/grub/i386/pc/multiboot.h: Removed.
18014 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
18015
18016 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
18017 and 2 to allow for one multiboot and module commands.
18018 * loader/multiboot2.c: Add multiboot2 functionality.
18019 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
18020 and definition names.
18021 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
18022 2 functions.
18023 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
18024 ieee1275 specific multiboot2 code.
18025
18026 * kern/i386/pc/startup.S: Change headers and definition names for
18027 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
18028
18029 2007-07-22 Robert Millan <rmh@aybabtu.com>
18030
18031 * geninitheader.sh: Process file specified in first parameter rather
18032 than hardcoding grub_modules_init.lst.
18033 * geninit.sh: Likewise. Also, construct header name dynamically rather
18034 than hardcoding grub_modules_init.h.
18035
18036 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
18037 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
18038 grub_probe_init.[ch] and grub_setup_init.[ch].
18039
18040 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
18041 grub_modules_init.h with grub_emu_init.h.
18042 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
18043 grub_probe_init.[ch] files.
18044 * conf/i386-efi.rmk: Likewise.
18045 * conf/i386-pc.rmk: Likewise.
18046 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
18047 grub_setup_init.[ch] files.
18048
18049 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
18050 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
18051 to initialize modules rather than a list of hardcoded functions.
18052 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
18053 grub_init_all() to initialize modules rather than a list of hardcoded
18054 functions.
18055
18056 2007-07-22 Robert Millan <rmh@aybabtu.com>
18057
18058 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18059 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
18060
18061 2007-07-22 Robert Millan <rmh@aybabtu.com>
18062
18063 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18064 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
18065 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
18066 flag when running on SmartFirmware.
18067 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
18068 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
18069 was set.
18070
18071 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
18072 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
18073 rather than decreasing it.
18074
18075 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
18076 there's not enough space to do it, fail in the same way as when it
18077 can't be done because there are no partitions.
18078
18079 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
18080 when nvsetenv failed.
18081
18082 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
18083
18084 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
18085 because this rule is automatically generated.
18086 (grub-mkrescue): Removed for the same reason as above.
18087
18088 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
18089
18090 Migrate to GNU General Public License Version 3.
18091
18092 * COPYING: Replaced with the plain text version of GPLv3.
18093
18094 * config.guess: Updated from gnulib.
18095 * config.sub: Likewise.
18096
18097 * geninit.sh: Output a GPLv3 copyright notice.
18098 * geninitheader.sh: Likewise.
18099 * genmodsrc.sh: Likewise.
18100 * gensymlist.sh.in: Likewise.
18101
18102 * boot/i386/pc/boot.S: Upgraded to GPLv3.
18103 * boot/i386/pc/diskboot.S: Likewise.
18104 * boot/i386/pc/pxeboot.S: Likewise.
18105 * commands/blocklist.c: Likewise.
18106 * commands/boot.c: Likewise.
18107 * commands/cat.c: Likewise.
18108 * commands/cmp.c: Likewise.
18109 * commands/configfile.c: Likewise.
18110 * commands/echo.c: Likewise.
18111 * commands/help.c: Likewise.
18112 * commands/ls.c: Likewise.
18113 * commands/search.c: Likewise.
18114 * commands/terminal.c: Likewise.
18115 * commands/test.c: Likewise.
18116 * commands/videotest.c: Likewise.
18117 * commands/i386/cpuid.c: Likewise.
18118 * commands/i386/pc/halt.c: Likewise.
18119 * commands/i386/pc/play.c: Likewise.
18120 * commands/i386/pc/reboot.c: Likewise.
18121 * commands/i386/pc/vbeinfo.c: Likewise.
18122 * commands/i386/pc/vbetest.c: Likewise.
18123 * commands/ieee1275/halt.c: Likewise.
18124 * commands/ieee1275/reboot.c: Likewise.
18125 * commands/ieee1275/suspend.c: Likewise.
18126 * disk/loopback.c: Likewise.
18127 * disk/lvm.c: Likewise.
18128 * disk/raid.c: Likewise.
18129 * disk/efi/efidisk.c: Likewise.
18130 * disk/i386/pc/biosdisk.c: Likewise.
18131 * disk/ieee1275/ofdisk.c: Likewise.
18132 * font/manager.c: Likewise.
18133 * fs/affs.c: Likewise.
18134 * fs/ext2.c: Likewise.
18135 * fs/fat.c: Likewise.
18136 * fs/fshelp.c: Likewise.
18137 * fs/hfs.c: Likewise.
18138 * fs/hfsplus.c: Likewise.
18139 * fs/iso9660.c: Likewise.
18140 * fs/jfs.c: Likewise.
18141 * fs/minix.c: Likewise.
18142 * fs/sfs.c: Likewise.
18143 * fs/ufs.c: Likewise.
18144 * fs/xfs.c: Likewise.
18145 * hello/hello.c: Likewise.
18146 * include/grub/acorn_filecore.h: Likewise.
18147 * include/grub/arg.h: Likewise.
18148 * include/grub/bitmap.h: Likewise.
18149 * include/grub/boot.h: Likewise.
18150 * include/grub/cache.h: Likewise.
18151 * include/grub/device.h: Likewise.
18152 * include/grub/disk.h: Likewise.
18153 * include/grub/dl.h: Likewise.
18154 * include/grub/elfload.h: Likewise.
18155 * include/grub/env.h: Likewise.
18156 * include/grub/err.h: Likewise.
18157 * include/grub/file.h: Likewise.
18158 * include/grub/font.h: Likewise.
18159 * include/grub/fs.h: Likewise.
18160 * include/grub/fshelp.h: Likewise.
18161 * include/grub/gzio.h: Likewise.
18162 * include/grub/hfs.h: Likewise.
18163 * include/grub/kernel.h: Likewise.
18164 * include/grub/loader.h: Likewise.
18165 * include/grub/lvm.h: Likewise.
18166 * include/grub/misc.h: Likewise.
18167 * include/grub/mm.h: Likewise.
18168 * include/grub/net.h: Likewise.
18169 * include/grub/normal.h: Likewise.
18170 * include/grub/parser.h: Likewise.
18171 * include/grub/partition.h: Likewise.
18172 * include/grub/pc_partition.h: Likewise.
18173 * include/grub/raid.h: Likewise.
18174 * include/grub/rescue.h: Likewise.
18175 * include/grub/script.h: Likewise.
18176 * include/grub/setjmp.h: Likewise.
18177 * include/grub/symbol.h: Likewise.
18178 * include/grub/term.h: Likewise.
18179 * include/grub/terminfo.h: Likewise.
18180 * include/grub/tparm.h: Likewise.
18181 * include/grub/types.h: Likewise.
18182 * include/grub/video.h: Likewise.
18183 * include/grub/efi/api.h: Likewise.
18184 * include/grub/efi/chainloader.h: Likewise.
18185 * include/grub/efi/console.h: Likewise.
18186 * include/grub/efi/console_control.h: Likewise.
18187 * include/grub/efi/disk.h: Likewise.
18188 * include/grub/efi/efi.h: Likewise.
18189 * include/grub/efi/pe32.h: Likewise.
18190 * include/grub/efi/time.h: Likewise.
18191 * include/grub/i386/linux.h: Likewise.
18192 * include/grub/i386/setjmp.h: Likewise.
18193 * include/grub/i386/types.h: Likewise.
18194 * include/grub/i386/efi/kernel.h: Likewise.
18195 * include/grub/i386/efi/loader.h: Likewise.
18196 * include/grub/i386/efi/time.h: Likewise.
18197 * include/grub/i386/pc/biosdisk.h: Likewise.
18198 * include/grub/i386/pc/boot.h: Likewise.
18199 * include/grub/i386/pc/chainloader.h: Likewise.
18200 * include/grub/i386/pc/console.h: Likewise.
18201 * include/grub/i386/pc/init.h: Likewise.
18202 * include/grub/i386/pc/kernel.h: Likewise.
18203 * include/grub/i386/pc/loader.h: Likewise.
18204 * include/grub/i386/pc/memory.h: Likewise.
18205 * include/grub/i386/pc/multiboot.h: Likewise.
18206 * include/grub/i386/pc/serial.h: Likewise.
18207 * include/grub/i386/pc/time.h: Likewise.
18208 * include/grub/i386/pc/vbe.h: Likewise.
18209 * include/grub/i386/pc/vbeblit.h: Likewise.
18210 * include/grub/i386/pc/vbefill.h: Likewise.
18211 * include/grub/i386/pc/vbeutil.h: Likewise.
18212 * include/grub/i386/pc/vga.h: Likewise.
18213 * include/grub/ieee1275/ieee1275.h: Likewise.
18214 * include/grub/ieee1275/ofdisk.h: Likewise.
18215 * include/grub/powerpc/libgcc.h: Likewise.
18216 * include/grub/powerpc/setjmp.h: Likewise.
18217 * include/grub/powerpc/types.h: Likewise.
18218 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
18219 * include/grub/powerpc/ieee1275/console.h: Likewise.
18220 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
18221 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
18222 * include/grub/powerpc/ieee1275/loader.h: Likewise.
18223 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
18224 * include/grub/powerpc/ieee1275/time.h: Likewise.
18225 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
18226 * include/grub/sparc64/libgcc.h: Likewise.
18227 * include/grub/sparc64/setjmp.h: Likewise.
18228 * include/grub/sparc64/types.h: Likewise.
18229 * include/grub/sparc64/ieee1275/console.h: Likewise.
18230 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
18231 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
18232 * include/grub/sparc64/ieee1275/time.h: Likewise.
18233 * include/grub/util/biosdisk.h: Likewise.
18234 * include/grub/util/getroot.h: Likewise.
18235 * include/grub/util/lvm.h: Likewise.
18236 * include/grub/util/misc.h: Likewise.
18237 * include/grub/util/raid.h: Likewise.
18238 * include/grub/util/resolve.h: Likewise.
18239 * io/gzio.c: Likewise.
18240 * kern/device.c: Likewise.
18241 * kern/disk.c: Likewise.
18242 * kern/dl.c: Likewise.
18243 * kern/elf.c: Likewise.
18244 * kern/env.c: Likewise.
18245 * kern/err.c: Likewise.
18246 * kern/file.c: Likewise.
18247 * kern/fs.c: Likewise.
18248 * kern/loader.c: Likewise.
18249 * kern/main.c: Likewise.
18250 * kern/misc.c: Likewise.
18251 * kern/mm.c: Likewise.
18252 * kern/parser.c: Likewise.
18253 * kern/partition.c: Likewise.
18254 * kern/rescue.c: Likewise.
18255 * kern/term.c: Likewise.
18256 * kern/efi/efi.c: Likewise.
18257 * kern/efi/init.c: Likewise.
18258 * kern/efi/mm.c: Likewise.
18259 * kern/i386/dl.c: Likewise.
18260 * kern/i386/efi/init.c: Likewise.
18261 * kern/i386/efi/startup.S: Likewise.
18262 * kern/i386/pc/init.c: Likewise.
18263 * kern/i386/pc/lzo1x.S: Likewise.
18264 * kern/i386/pc/startup.S: Likewise.
18265 * kern/ieee1275/ieee1275.c: Likewise.
18266 * kern/powerpc/cache.S: Likewise.
18267 * kern/powerpc/dl.c: Likewise.
18268 * kern/powerpc/ieee1275/cmain.c: Likewise.
18269 * kern/powerpc/ieee1275/crt0.S: Likewise.
18270 * kern/powerpc/ieee1275/init.c: Likewise.
18271 * kern/powerpc/ieee1275/openfw.c: Likewise.
18272 * kern/sparc64/cache.S: Likewise.
18273 * kern/sparc64/dl.c: Likewise.
18274 * kern/sparc64/ieee1275/init.c: Likewise.
18275 * kern/sparc64/ieee1275/openfw.c: Likewise.
18276 * loader/efi/chainloader.c: Likewise.
18277 * loader/efi/chainloader_normal.c: Likewise.
18278 * loader/i386/efi/linux.c: Likewise.
18279 * loader/i386/efi/linux_normal.c: Likewise.
18280 * loader/i386/pc/chainloader.c: Likewise.
18281 * loader/i386/pc/chainloader_normal.c: Likewise.
18282 * loader/i386/pc/linux.c: Likewise.
18283 * loader/i386/pc/linux_normal.c: Likewise.
18284 * loader/i386/pc/multiboot.c: Likewise.
18285 * loader/i386/pc/multiboot_normal.c: Likewise.
18286 * loader/powerpc/ieee1275/linux.c: Likewise.
18287 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18288 * normal/arg.c: Likewise.
18289 * normal/cmdline.c: Likewise.
18290 * normal/command.c: Likewise.
18291 * normal/completion.c: Likewise.
18292 * normal/execute.c: Likewise.
18293 * normal/function.c: Likewise.
18294 * normal/lexer.c: Likewise.
18295 * normal/main.c: Likewise.
18296 * normal/menu.c: Likewise.
18297 * normal/menu_entry.c: Likewise.
18298 * normal/misc.c: Likewise.
18299 * normal/parser.y: Likewise.
18300 * normal/script.c: Likewise.
18301 * normal/i386/setjmp.S: Likewise.
18302 * normal/powerpc/setjmp.S: Likewise.
18303 * normal/sparc64/setjmp.S: Likewise.
18304 * partmap/acorn.c: Likewise.
18305 * partmap/amiga.c: Likewise.
18306 * partmap/apple.c: Likewise.
18307 * partmap/gpt.c: Likewise.
18308 * partmap/pc.c: Likewise.
18309 * partmap/sun.c: Likewise.
18310 * term/gfxterm.c: Likewise.
18311 * term/terminfo.c: Likewise.
18312 * term/efi/console.c: Likewise.
18313 * term/i386/pc/console.c: Likewise.
18314 * term/i386/pc/serial.c: Likewise.
18315 * term/i386/pc/vesafb.c: Likewise.
18316 * term/i386/pc/vga.c: Likewise.
18317 * term/ieee1275/ofconsole.c: Likewise.
18318 * util/biosdisk.c: Likewise.
18319 * util/console.c: Likewise.
18320 * util/genmoddep.c: Likewise.
18321 * util/getroot.c: Likewise.
18322 * util/grub-emu.c: Likewise.
18323 * util/grub-mkdevicemap.c: Likewise.
18324 * util/grub-probe.c: Likewise.
18325 * util/lvm.c: Likewise.
18326 * util/misc.c: Likewise.
18327 * util/raid.c: Likewise.
18328 * util/resolve.c: Likewise.
18329 * util/update-grub.in: Likewise.
18330 * util/update-grub_lib.in: Likewise.
18331 * util/grub.d/00_header.in: Likewise.
18332 * util/grub.d/10_hurd.in: Likewise.
18333 * util/grub.d/10_linux.in: Likewise.
18334 * util/i386/efi/grub-install.in: Likewise.
18335 * util/i386/efi/grub-mkimage.c: Likewise.
18336 * util/i386/pc/grub-install.in: Likewise.
18337 * util/i386/pc/grub-mkimage.c: Likewise.
18338 * util/i386/pc/grub-mkrescue.in: Likewise.
18339 * util/i386/pc/grub-setup.c: Likewise.
18340 * util/i386/pc/misc.c: Likewise.
18341 * util/powerpc/ieee1275/grub-install.in: Likewise.
18342 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
18343 * util/powerpc/ieee1275/misc.c: Likewise.
18344 * video/bitmap.c: Likewise.
18345 * video/video.c: Likewise.
18346 * video/i386/pc/vbe.c: Likewise.
18347 * video/i386/pc/vbeblit.c: Likewise.
18348 * video/i386/pc/vbefill.c: Likewise.
18349 * video/i386/pc/vbeutil.c: Likewise.
18350 * video/readers/tga.c: Likewise.
18351
18352 2007-07-02 Robert Millan <rmh@aybabtu.com>
18353
18354 * conf/i386-efi.rmk: Replace obsolete reference to
18355 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
18356 with util/getroot.c.
18357 * conf/powerpc-ieee1275.rmk: Likewise.
18358 * conf/sparc64-ieee1275.rmk: Likewise.
18359
18360 * util/grub-emu.c (main): Fix unchecked pointer handling.
18361
18362 2007-07-02 Robert Millan <rmh@aybabtu.com>
18363
18364 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
18365 invocation to fail, in order to support partition-less media.
18366
18367 * util/i386/pc/grub-install.in: Likewise.
18368
18369 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
18370 which fs or partmap modules are needed (akin to its sister scripts).
18371
18372 Also use grub-probe to get rid of unportable /proc/mounts check.
18373
18374 Print the same informational message that the other scripts do, before
18375 exiting.
18376
18377 2007-06-23 Robert Millan <rmh@aybabtu.com>
18378
18379 * util/update-grub_lib.in (font_path): New function. Determine whether
18380 a font file can be found and, if so, echo the GRUB path to it.
18381
18382 * util/update-grub.in: Handle multiple terminals depending on user
18383 input, platform availability and font file presence. Propagate
18384 variables of our findings to /etc/grub.d/ children.
18385
18386 * util/grub.d/00_header.in: Handle multiple terminals, based on
18387 environment setup by update-grub.
18388
18389 2007-06-23 Robert Millan <rmh@aybabtu.com>
18390
18391 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
18392
18393 2007-06-21 Robert Millan <rmh@aybabtu.com>
18394
18395 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
18396 indicate end of data section in kernel image.
18397 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
18398 GRUB_KERNEL_MACHINE_DATA_END.
18399
18400 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
18401 space for it.
18402 * kern/i386/efi/startup.S: Likewise.
18403
18404 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
18405 during image generation. Implement --prefix option to override this
18406 patch.
18407 * util/i386/efi/grub-mkimage.c: Likewise.
18408
18409 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
18410 code to make path relative to its root into a separate function.
18411
18412 * util/i386/pc/grub-install.in: Use newly provided
18413 make_system_path_relative_to_its_root() to convert ${grubdir}, then
18414 pass the result to grub-install --prefix.
18415
18416 2007-06-13 Robert Millan <rmh@aybabtu.com>
18417
18418 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
18419 DEFAULT_DEVICE_MAP.
18420 * util/grub-emu.c: Use above definitions from misc.h instead of
18421 defining them.
18422 * util/grub-mkdevicemap.c: Likewise.
18423 * util/i386/pc/grub-setup.c: Likewise.
18424 * util/grub-probe.c: Likewise.
18425 (probe): Abort with grub_util_error() when either
18426 grub_guess_root_device or grub_util_get_grub_dev fails.
18427
18428 2007-06-12 Robert Millan <rmh@aybabtu.com>
18429
18430 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
18431 "pager" assignment.
18432 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
18433 "pcdata".
18434 * util/grub-probe.c (probe): Likewise for "drive_name".
18435
18436 2007-06-11 Robert Millan <rmh@aybabtu.com>
18437
18438 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
18439 not just the cdrom one.
18440
18441 2007-06-11 Robert Millan <rmh@aybabtu.com>
18442
18443 * util/i386/pc/grub-mkrescue.in: Add "set -e".
18444 Add --pkglibdir=DIR option to override pkglibdir.
18445 Mention --image-type=TYPE in help output.
18446 Fix --grub-mkimage (it was a no-op).
18447 Abort gracefully when no parameter is given.
18448
18449 2007-06-11 Robert Millan <rmh@aybabtu.com>
18450
18451 * util/i386/pc/grub-mkrescue.in: New file.
18452 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
18453 * Makefile.in: Handle bin_SCRIPTS.
18454
18455 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
18456
18457 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
18458 list of video modes.
18459
18460 2007-06-06 Robert Millan <rmh@aybabtu.com>
18461
18462 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
18463 file doesn't exist, or if it is in a filesystem grub can't read.
18464
18465 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
18466 not abort if GRUB_DRIVE could not be defined. Rearrange generated
18467 header comment to fit in 80 columns when the variables are resolved.
18468
18469 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
18470 could be identified by update-grub. Remove redundant check for
18471 unifont.pff existence (since convert_system_path_to_grub_path now
18472 handles that).
18473
18474 2007-06-04 Robert Millan <rmh@aybabtu.com>
18475
18476 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
18477
18478 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
18479
18480 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
18481
18482 2007-06-04 Robert Millan <rmh@aybabtu.com>
18483
18484 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
18485
18486 * include/grub/partition.h: Declare grub_apple_partition_map_init and
18487 grub_apple_partition_map_fini.
18488
18489 * util/biosdisk.c
18490 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
18491 to access >2 TiB disks).
18492
18493 Print disk->total_sectors with %llu instead of %lu, since this
18494 variable is always 64-bit (prevents wrong disk size from being displayed
18495 on either >2 TiB disk or big-endian CPU).
18496
18497 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
18498 into a generic case that supports all (sane) partition maps.
18499
18500 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
18501 breaks big-endian.
18502
18503 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
18504 and grub_apple_partition_map_fini() after that.
18505
18506 2007-06-01 Robert Millan <rmh@aybabtu.com>
18507
18508 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
18509
18510 * util/grub.d/00_header.in: Only enable gfxterm when
18511 convert_system_path_to_grub_path() succeeds.
18512
18513 2007-05-20 Robert Millan <rmh@aybabtu.com>
18514
18515 * util/update-grub_lib.in: New file.
18516 * DISTLIST: Add update-grub_lib.in.
18517 * conf/common.rmk: Generate update-grub_lib and install it in
18518 $(lib_DATA).
18519 * Makefile.in: Add install routine for $(lib_DATA).
18520
18521 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
18522 function provided by update-grub_lib to support arbitrary paths of
18523 unifont.pff.
18524 * util/update-grub.in: Use convert_system_path_to_grub_path() to
18525 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
18526
18527 2007-05-19 Robert Millan <rmh@aybabtu.com>
18528
18529 * commands/i386/cpuid.c: New module.
18530 * DISTLIST: Add it.
18531 * conf/i386-efi.rmk: Enable cpuid.mod.
18532 * conf/i386-pc.rmk: Likewise.
18533
18534 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
18535
18536 * kern/disk.c (grub_disk_read): Check return value of
18537 grub_realloc().
18538
18539 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
18540
18541 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
18542 arrays.
18543 * disk/raid.c (grub_raid_open): Likewise.
18544
18545 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
18546
18547 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
18548 stack instead of on the heap.
18549
18550 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
18551 before doing a read on it.
18552
18553 * configure.ac: Only use -fno-stack-protector for the target
18554 environment.
18555
18556 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
18557
18558 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
18559 __attribute_ ((unused)) to mode_type argument.
18560
18561 * util/getroot.c (grub_guess_root_device): Fix #endif.
18562
18563 * kern/misc.c (memcmp): Fix prototype.
18564
18565 * include/grub/partition.h [GRUB_UTIL]
18566 (grub_gpt_partition_map_init): Add prototype.
18567 (grub_gpt_partition_map_fini): Likewise.
18568
18569 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
18570 at the right place.
18571
18572 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
18573 (grub_fat_read_data): Likewise.
18574 (grub_fat_find_dir): Likewise.
18575
18576 * font/manager.c (find_glyph): Make table a const.
18577 (grub_font_get_glyph): Remove bitmap from if statement.
18578
18579 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
18580
18581 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
18582 code, first search for device in /dev/mapper, then in /dev.
18583 (grub_util_get_grub_dev): New function.
18584 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
18585 prototype.
18586 * util/grub-probe.c (probe): Remove check for RAID, call
18587 grub_util_get_grub_dev() instead of
18588 grub_util_biosdisk_get_grub_dev().
18589 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
18590 grub_util_biosdisk_get_grub_dev().
18591 * util/i386/pc/grub-setup.c (main): Likewise.
18592
18593 2007-05-16 Robert Millan <rmh@aybabtu.com>
18594
18595 * DISTLIST: Update for the latest changes.
18596 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
18597 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
18598 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
18599 grub/util/biosdisk.h.
18600 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
18601 grub/util/biosdisk.h.
18602
18603 2007-05-16 Robert Millan <rmh@aybabtu.com>
18604
18605 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
18606
18607 2007-05-16 Robert Millan <rmh@aybabtu.com>
18608
18609 * util/i386/efi/grub-install.in: New.
18610 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
18611 newly added grub-install.
18612 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
18613 include.
18614 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
18615 grub/util/biosdisk.h.
18616 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
18617 grub/util/biosdisk.h.
18618
18619 2007-05-16 Robert Millan <rmh@aybabtu.com>
18620
18621 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
18622 * include/grub/util/biosdisk.h: ... here.
18623 * util/i386/pc/biosdisk.c: Moved to ...
18624 * util/biosdisk.c: ... here.
18625 * util/i386/pc/getroot.c: Moved to ...
18626 * util/getroot.c: ... here.
18627 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
18628 * util/grub-mkdevicemap.c: ... here.
18629 * util/i386/pc/grub-probe.c: Moved to ...
18630 * util/grub-probe.c: ... here.
18631
18632 2007-05-15 Robert Millan <rmh@aybabtu.com>
18633
18634 * util/update-grub.in: Remove duplicated line in grub.cfg header
18635 message.
18636
18637 2007-05-13 Robert Millan <rmh@aybabtu.com>
18638
18639 * util/update-grub.in: Fix a few assumptions about the devices holding
18640 /, /boot and /boot/grub being the same.
18641 * util/grub.d/00_header.in: Likewise.
18642 * util/grub.d/10_hurd.in: Likewise.
18643 * util/grub.d/10_linux.in: Likewise.
18644
18645 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
18646 patterns. Use that to define the `.old' suffix as older than `'.
18647
18648 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
18649
18650 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
18651 the grub.cfg header message.
18652
18653 2007-05-11 Robert Millan <rmh@aybabtu.com>
18654
18655 * util/update-grub.in: Create device.map if it doesn't already exist,
18656 before attempting to run grub-probe.
18657 Check for grub-probe and grub-mkdevicemap with the same code
18658 grub-install is using.
18659 Remove test mode.
18660
18661 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
18662
18663 * Makefile.in: Add the datarootdir autoconf variable.
18664
18665 2007-05-09 Robert Millan <rmh@aybabtu.com>
18666
18667 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
18668 fail gracefully if dev->disk->partition == NULL.
18669
18670 2007-05-07 Robert Millan <rmh@aybabtu.com>
18671
18672 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
18673 determine partition map module.
18674 * util/i386/pc/grub-install.in: Use this feature to decide which
18675 partition module to load, instead of hardcoding pc and gpt.
18676
18677 2007-05-07 Robert Millan <rmh@aybabtu.com>
18678
18679 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
18680 source directory differs from build directory.
18681
18682 2007-05-05 Robert Millan <rmh@aybabtu.com>
18683
18684 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
18685 initialisation.
18686
18687 2007-05-05 Robert Millan <rmh@aybabtu.com>
18688
18689 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
18690
18691 2007-05-05 Robert Millan <rmh@aybabtu.com>
18692
18693 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
18694 command-line arguments via ${GRUB_CMDLINE_LINUX}.
18695
18696 2007-05-05 Robert Millan <rmh@aybabtu.com>
18697
18698 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
18699 (grub_probe_SOURCES): Likewise.
18700 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
18701 GPT and initialize dos_part and bsd_part accordingly.
18702 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
18703 install_bsd_part.
18704 (main): Activate gpt module for use during partition identification,
18705 and deactivate it afterwards.
18706 * util/i386/pc/grub-install.in: Add gpt module to core.img.
18707 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
18708 partition identification, and deactivate it afterwards.
18709
18710 2007-05-05 Robert Millan <rmh@aybabtu.com>
18711
18712 * term/i386/pc/console.c (grub_console_fini): Call
18713 grub_term_set_current() before grub_term_unregister().
18714
18715 2007-05-04 Robert Millan <rmh@aybabtu.com>
18716
18717 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
18718 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
18719 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
18720 and update-grub_DATA.
18721 * conf/common.rmk: Build and install update-grub components.
18722 * conf/common.mk: Regenerate.
18723 * util/update-grub.in: New. Core of update-grub.
18724 * util/grub.d/00_header.in: New. Generates grub.cfg header.
18725 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
18726 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
18727 * util/grub.d/README: New. Document grub.d directory layout.
18728
18729 2007-05-01 Robert Millan <rmh@aybabtu.com>
18730
18731 * util/grub-emu.c: Move initialization functions
18732 grub_util_biosdisk_init() and grub_init_all() before
18733 grub_util_biosdisk_get_grub_dev(), which relies on them.
18734
18735 2007-04-19 Robert Millan <rmh@aybabtu.com>
18736
18737 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
18738 it is used later.
18739
18740 2007-04-18 Jerone Young <jerone@gmail.com>
18741
18742 * kernel/elf.c: Add missing parenthesis for conditional statement
18743 stanza.
18744
18745 2007-04-10 Jerone Young <jerone@gmail.com>
18746
18747 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
18748 continue on and look for device node with real device name.
18749
18750 2007-04-10 Jerone Young <jerone@gmail.com>
18751
18752 * configure.ac: Add argument for autoconf to use transformation
18753 ability.
18754 * Makefile.in: Add autoconf package transformation code.
18755 * util/i386/pc/grub-install.in: Likewise.
18756 * util/powerpc/ieee1275/grub-install.in: Likewise.
18757
18758 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18759
18760 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
18761 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
18762 (EXT2_REVISION): Likewise.
18763 (EXT2_INODE_SIZE): Likewise.
18764 (struct grub_ext2_block_group): Added a missing member
18765 "used_dirs".
18766 (grub_ext2_read_inode): Divide by the inode size in a superblock
18767 instead of 128 to obtain INODES_PER_BLOCK.
18768 Use the macro EXT2_INODE_SIZE instead of directly using
18769 SBLOCK->INODE_SIZE.
18770
18771 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18772
18773 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
18774 superblock instead of the structure size to compute an
18775 offset. This fixes the problem that GRUB could not read a
18776 filesystem when inode size is different from 128-byte.
18777
18778 2007-03-05 Marco Gerards <marco@gnu.org>
18779
18780 * normal/main.c (read_config_file): When "menu" is not set, create
18781 an initial context.
18782
18783 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
18784
18785 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
18786 (HEAP_LIMIT): New macro.
18787 (grub_claim_heap): Claim memory up to `heaplimit'.
18788
18789 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
18790
18791 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
18792 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
18793 (_start): Likewise.
18794 (grub_arch_modules_addr): Return address after `_end'.
18795 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
18796 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
18797 (add_segments): Calculate `_end' from phdr size and location.
18798 (ALIGN_UP): Moved to ...
18799 * include/grub/misc.h: here.
18800 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
18801 New macro.
18802 (GRUB_IEEE1275_MODULE_BASE): Removed.
18803
18804 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
18805
18806 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
18807 loop boundary.
18808
18809 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
18810
18811 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
18812 All users updated.
18813 (grub_elf64_load_hook_t): Likewise.
18814 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
18815 debug output.
18816
18817 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
18818
18819 * kern/mm.c: Update copyright.
18820 (grub_mm_debug): Correct syntax error.
18821 (grub_mm_dump_free): New function.
18822 (grub_debug_free): Call `grub_free'.
18823 * include/grub/mm.h: Update copyright.
18824 (grub_mm_dump_free): Add declaration.
18825
18826 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
18827
18828 * include/grub/ieee1275/ieee1275.h: Update copyright.
18829 * kern/powerpc/ieee1275/init.c: Likewise.
18830 * kern/powerpc/ieee1275/openfw.c: Likewise.
18831
18832 * loader/powerpc/ieee1275/linux.c: Likewise.
18833 * include/grub/elfload.h: Likewise.
18834 * kern/elf.c: Likewise.
18835 (grub_elf32_load): Pass `base' and `size' parameters. Update all
18836 callers.
18837 (grub_elf64_load): Likewise.
18838 (grub_elf32_load_segment): Move to a nested function.
18839 (grub_elf64_load_segment): Likewise.
18840
18841 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
18842
18843 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
18844 prototype.
18845 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
18846 (grub_heap_len): Likewise.
18847 (HEAP_SIZE): New macro.
18848 (grub_claim_heap): New function.
18849 (grub_machine_init): Don't claim heap directly. Call
18850 `grub_claim_heap'.
18851 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
18852 (grub_available_iterate): New function.
18853
18854 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
18855
18856 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
18857 * configure.ac: Use it for testing the HOST and TARGET compilers.
18858
18859 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
18860
18861 * Makefile.in (enable_grub_emu): New variable.
18862 * configure.ac (--enable-grub-emu): New option.
18863 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
18864 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
18865 * conf/i386-pc.rmk: Likewise.
18866 * conf/powerpc-ieee1275.rmk: Likewise.
18867 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
18868
18869 2006-12-12 Marco Gerards <marco@gnu.org>
18870
18871 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
18872
18873 * kern/env.c (grub_env_unset): Don't free the member `value' when
18874 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
18875 pointer.
18876
18877 * normal/main.c (current_menu): Removed.
18878 (free_menu): Unset the `menu' environment variable.
18879 (grub_normal_menu_addentry): Make use of the environment variable
18880 `menu', instead of using the global `current_menu'. Allocate
18881 memory for the sourcecode of this entry.
18882 (read_config_file): New argument `nested', changed all callers.
18883 Only in the case of a new context, initialize a new menu. Set the
18884 `menu' environment variable.
18885 (grub_normal_execute): Don't set and unset the environment
18886 variable `menu' here anymore. Only free the menu when leaving the
18887 context.
18888
18889 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
18890 leak.
18891
18892 2006-12-11 Marco Gerards <marco@gnu.org>
18893
18894 * normal/menu_entry.c (run): Fix off by one bug so the last line
18895 is executed. Move the loader check to outside the loop.
18896
18897 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
18898
18899 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
18900
18901 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
18902
18903 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
18904 the number of sectors. Reported by Andrey Shuvikov
18905 <mr_hyro@yahoo.com>.
18906
18907 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
18908
18909 * kern/disk.c (grub_disk_read): When there is a read error, always
18910 try to read only the necessary data.
18911
18912 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
18913 disk/raid.c.
18914 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
18915 prototype.
18916 [GRUB_UTIL] (grub_raid_fini): Likewise.
18917 [GRUB_UTIL] (grub_lvm_init): Likewise.
18918 [GRUB_UTIL] (grub_lvm_fini): Likewise.
18919 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
18920 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
18921 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
18922 and grub_raid_fini().
18923
18924 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
18925
18926 * include/grub/types.h (__unused): Rename to UNUSED.
18927 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
18928 (grub_elf64_size): Likewise.
18929
18930 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
18931
18932 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
18933 grub_error_push and grub_error_pop in the error-handling path.
18934 (grub_elf32_load_segment): Only call grub_file_read with non-zero
18935 length.
18936
18937 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
18938
18939 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
18940 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18941 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18942 (kernel_elf_SOURCES): Likewise.
18943 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
18944 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
18945 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
18946 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
18947 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
18948 (elf_mod_SOURCES): New variable.
18949 (elf_mod_CFLAGS): Likewise.
18950 (elf_mod_LDFLAGS): Likewise.
18951 * include/grub/types.h (__unused): New macro.
18952 * include/grub/elfload.h: New file.
18953 * kern/elf.c: Likewise.
18954 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
18955 (ELF32_LOADMASK): New macro.
18956 (ELF64_LOADMASK): Likewise.
18957 (vmlinux): Removed.
18958 (grub_linux_load32): New function.
18959 (grub_linux_load64): Likewise.
18960 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
18961 Use grub_elf_t instead of grub_file_t.
18962
18963 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
18964
18965 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
18966 `catch_result' to struct set_color_args.
18967
18968 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
18969
18970 * normal/menu.c: Include grub/script.h.
18971 * normal/menu_entry.c: Likewise.
18972 * include/grub/normal.h: Do not include grub/script.h.
18973
18974 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
18975
18976 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
18977
18978 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
18979
18980 * kern/disk.c (grub_disk_open): Print debug messages when opening a
18981 disk.
18982 (grub_disk_close): Print debug messages when closing a disk.
18983 (grub_disk_read): Print debug messages when disk read fails.
18984 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
18985 filesystem type.
18986 * kern/partition.c: Include misc.h.
18987 (grub_partition_iterate): Print debug messages when detecting
18988 partition type.
18989
18990 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
18991
18992 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
18993 is negative.
18994 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
18995
18996 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
18997
18998 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
18999 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
19000
19001 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
19002
19003 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
19004 instead of sizeof(lv). Patch by Michael Guntsche.
19005
19006 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
19007
19008 * disk/lvm.c: Rename VGS to VG_LIST.
19009 (grub_lvm_iterate): Change VGS->LV to VG-LV.
19010 (grub_lvm_open): Likewise.
19011 Thanks to Michael Guntsche for finding this bug.
19012
19013 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
19014
19015 * configure.ac (AC_INIT): Bumped to 1.95.
19016
19017 2006-10-14 Robert Millan <rmh@aybabtu.com>
19018
19019 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
19020 with "/dev/.static/dev/md".
19021
19022 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
19023
19024 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
19025 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
19026 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
19027 DRIVE_NAME are always freed.
19028
19029 * util/i386/pc/biosdisk.c (make_device_name): Add one into
19030 DOS_PART, as a DOS partition is counted from one instead of zero
19031 now. Reported by Robert Millan.
19032
19033 2006-10-14 Robert Millan <rmh@aybabtu.com>
19034
19035 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
19036 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
19037 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
19038 string returned by grub_guess_root_device.
19039 * util/i386/pc/grub-setup.c: Likewise.
19040 * util/i386/pc/grub-probefs.c: Likewise.
19041
19042 * util/i386/pc/grub-probefs.c: Rename to ...
19043 * util/i386/pc/grub-probe.c: ... this.
19044 * DISTLIST: Remove grub-probefs, add grub-probe.
19045 * conf/i386-efi.rmk: Likewise.
19046 * conf/i386-pc.rmk: Likewise.
19047 * util/i386/pc/grub-install.in: Likewise.
19048
19049 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
19050 choose which information we want to print.
19051
19052 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
19053
19054 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
19055 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
19056 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
19057 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
19058 video/readers/tga.c and video/i386/pc/vbeutil.c.
19059
19060 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
19061
19062 Added support for RAID and LVM.
19063
19064 * disk/lvm.c: New file.
19065 * disk/raid.c: Likewise.
19066 * include/grub/lvm.h: Likewise.
19067 * include/grub/raid.h: Likewise.
19068 * include/grub/util/lvm.h: Likewise.
19069 * include/grub/util/raid.h: Likewise.
19070 * util/lvm.c: Likewise.
19071 * util/raid.c: Likewise.
19072
19073 * include/grub/disk.h (grub_disk_dev_id): Add
19074 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
19075 (grub_disk_get_size): New prototype.
19076 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
19077 returns a partition.
19078 (grub_disk_get_size): New function.
19079
19080 * kern/i386/pc/init.c (make_install_device): Copy the prefix
19081 verbatim if grub_install_dos_part is -2.
19082
19083 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
19084 and LVM devices.
19085
19086 * util/i386/pc/grub-setup.c (setup): New argument
19087 MUST_EMBED. Force embedding of GRUB when the argument is
19088 true. Close FILE before returning.
19089 (main): Add support for RAID and LVM.
19090
19091 * conf/common.rmk: Add RAID and LVM modules.
19092 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
19093 util/lvm.c.
19094 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
19095
19096 * kern/misc.c (grub_strstr): New function.
19097 * include/grub/misc.h (grub_strstr): New prototype.
19098
19099 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
19100
19101 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
19102
19103 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
19104
19105 * kern/misc.c (grub_strtoull): Guess the base only if not
19106 specified.
19107
19108 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
19109
19110 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
19111 PowerMac support.
19112
19113 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
19114
19115 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
19116
19117 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
19118 Remove `flags' argument. All callers changed.
19119 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
19120 (IEEE1275_IHANDLE_INVALID): New variable.
19121 (IEEE1275_CELL_INVALID): New variable.
19122 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
19123 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
19124 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
19125 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
19126 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
19127 codes from Open Firmware. All callers updated.
19128 (grub_ieee1275_next_property): Directly return Open Firmware return
19129 code.
19130 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
19131 Standardize error checking from `grub_ieee1275_get_property'.
19132 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
19133 `devalias' to `aliases'. Correct comments. Consolidate error paths.
19134
19135 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
19136
19137 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
19138 `instance_to_package_args' to `instance_to_path_args'.
19139
19140 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
19141 `grub_ieee1275_chosen'.
19142
19143 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
19144 `grub_ieee1275_interpret'.
19145
19146 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
19147
19148 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
19149
19150 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
19151
19152 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
19153 (__cmpdi): Likewise.
19154
19155 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
19156 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
19157 `grub_ssize_t'.
19158
19159 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
19160
19161 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
19162 to type `grub_ssize_t'.
19163 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
19164
19165 2006-09-22 Marco Gerards <marco@gnu.org>
19166
19167 * normal/script.c (grub_script_create_cmdmenu): Skip leading
19168 newlines.
19169
19170 2006-09-22 Marco Gerards <marco@gnu.org>
19171
19172 * commands/echo.c: New file.
19173
19174 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
19175
19176 * conf/common.rmk (echo_mod_SOURCES): New variable.
19177 (echo_mod_CFLAGS): Likewise.
19178 (echo_mod_LDFLAGS): Likewise.
19179
19180 2006-09-22 Marco Gerards <marco@gnu.org>
19181
19182 * normal/main.c (get_line): Malloc memory instead of using
19183 preallocated memory. Removed the arguments `cmdline' and
19184 `max_len'. Updated all callers.
19185
19186 2006-09-22 Marco Gerards <marco@gnu.org>
19187
19188 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
19189 (normal_mod_DEPENDENCIES): Likewise.
19190
19191 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
19192 (normal_mod_DEPENDENCIES): Likewise.
19193
19194 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
19195
19196 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
19197
19198 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
19199 programs.
19200 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
19201 (normal_mod_DEPENDENCIES): Likewise.
19202 * conf/i386-pc.mk: Regenerate.
19203 * conf/i386-efi.mk: Likewise
19204 * conf/common.mk: Likewise.
19205 * conf/powerpc-ieee1275.mk: Likewise.
19206 * conf/sparc64-ieee1275.mk: Likewise.
19207
19208 2006-09-22 Robert Millan <rmh@aybabtu.com>
19209
19210 Sync with i386 version.
19211 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
19212 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
19213
19214 2006-09-21 Robert Millan <rmh@aybabtu.com>
19215
19216 Import from GRUB Legacy (lib/device.c):
19217 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
19218 (init_device_map) [__linux__]: Add support for I2O devices.
19219
19220 2006-09-14 Marco Gerards <marco@gnu.org>
19221
19222 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
19223 `-melf_i386'.
19224
19225 2006-09-14 Robert Millan <rmh@aybabtu.com>
19226
19227 * util/i386/pc/grub-install.in: Skip menu.lst when removing
19228 /boot/grub/*.lst.
19229
19230 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
19231
19232 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
19233 before adding it to device.map.
19234
19235 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
19236
19237 * genmk.rb: Let GCC generate dependencies the first time it
19238 compiles a file; using the -MD option.
19239 * conf/common.mk: Regenerate.
19240 * conf/i386-pc.mk: Likewise.
19241 * conf/i386-efi.mk: Likewise.
19242 * conf/powerpc-ieee1275.mk: Likewise.
19243 * conf/sparc64-ieee1275.mk: Likewise.
19244
19245 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
19246
19247 Move the prototypes of grub_setjmp and grub_longjmp to
19248 cpu/setjmp.h, so that each architecture may specify different
19249 attributes.
19250
19251 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
19252 (grub_longjmp): Likewise.
19253 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
19254 (grub_longjmp): Likewise.
19255 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
19256 (grub_longjmp): Likewise.
19257
19258 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
19259 [!GRUB_UTIL] (grub_longjmp): Removed.
19260
19261 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
19262
19263 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
19264 "color!" method does not return any value.
19265
19266 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
19267
19268 * include/grub/bitmap.h: New file.
19269
19270 * include/grub/i386/pc/vbeutil.h: Likewise.
19271
19272 * video/bitmap.c: Likewise.
19273
19274 * video/readers/tga.c: Likewise.
19275
19276 * video/i386/pc/vbeutil.c: Likewise.
19277
19278 * commands/videotest.c: Code cleanup and updated to reflect to new
19279 video API.
19280
19281 * term/gfxterm.c: Likewise.
19282
19283 * video/video.c: Likewise.
19284
19285 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
19286 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
19287 (bitmap_mod_SOURCES): New entry.
19288 (bitmap_mod_CFLAGS): Likewise.
19289 (bitmap_mod_LDFLAGS): Likewise.
19290 (tga_mod_SOURCES): Likewise.
19291 (tga_mod_CFLAGS): Likewise.
19292 (tga_mod_LDFLAGS): Likewise.
19293
19294 * include/grub/video.h (grub_video_blit_operators): New enum type.
19295 (grub_video_render_target): Changed as forward declaration and moved
19296 actual definition to be video driver specific.
19297 (grub_video_adapter.blit_bitmap): Added blitting operator.
19298 (grub_video_adapter.blit_render_target): Likewise.
19299 (grub_video_blit_bitmap): Likewise.
19300 (grub_video_blit_render_target): Likewise.
19301
19302 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
19303 driver specific render target definition.
19304 (grub_video_vbe_map_rgba): Added driver internal helper.
19305 (grub_video_vbe_unmap_color): Updated to use
19306 grub_video_i386_vbeblit_info.
19307 (grub_video_vbe_get_video_ptr): Likewise.
19308
19309 * include/grub/i386/pc/vbeblit.h
19310 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
19311 grub_video_i386_vbeblit_info.
19312 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
19313 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
19314 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
19315 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
19316 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
19317 (grub_video_i386_vbeblit_index_index): Likewise.
19318 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
19319 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
19320 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
19321 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
19322 operator.
19323 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
19324 operator.
19325
19326 * video/i386/pc/vbeblit.c: Updated to reflect changes on
19327 include/grub/i386/pc/vbeblit.h.
19328
19329 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
19330 Updated to use grub_video_i386_vbeblit_info.
19331 (grub_video_i386_vbefill_R8G8B8): Likewise.
19332 (grub_video_i386_vbefill_index): Likewise.
19333 (grub_video_i386_vbefill): Added generic filler.
19334
19335 * video/i386/pc/vbefill.c: Updated to reflect changes on
19336 include/grub/i386/pc/vbefill.h.
19337
19338 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
19339 grub_video_i386_vbeblit_info.
19340 (grub_video_vbe_unmap_color): Likewise.
19341 (grub_video_vbe_blit_glyph): Likewise.
19342 (grub_video_vbe_scroll): Likewise.
19343 (grub_video_vbe_draw_pixel): Removed function.
19344 (grub_video_vbe_get_pixel): Likewise.
19345 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
19346 updated code to use it.
19347 (common_blitter): Added common blitter for render target and bitmap.
19348 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
19349 (grub_video_vbe_blit_render_target): Likewise.
19350
19351 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
19352
19353 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
19354 is in text mode if there is no console control protocol instance
19355 available.
19356
19357 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
19358
19359 * include/grub/video.h: Code cleanup.
19360
19361 * include/grub/i386/pc/vbe.h: Likewise.
19362
19363 * video/i386/pc/vbe.c: Likewise.
19364
19365 * video/i386/pc/vbeblit.c: Likewise.
19366
19367 * video/i386/pc/vbefill.c: Likewise.
19368
19369 * video/video.c: Likewise. Also added more comments.
19370
19371 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
19372
19373 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
19374 (struct grub_biosdisk_dap): Likewise.
19375
19376 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
19377 linkage settings for all functions.
19378
19379 2006-07-12 Marco Gerards <marco@gnu.org>
19380
19381 * configure.ac (--enable-mm-debug): Fix typo.
19382
19383 * genkernsyms.sh.in: Use proper quoting for `CC'.
19384
19385 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
19386
19387 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
19388 (normal_mod_ASFLAGS): Remove "-m32".
19389
19390 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
19391
19392 * util/misc.c: Include config.h.
19393 [!HAVE_MEMALIGN]: Do not include malloc.h.
19394 (grub_memalign): Use posix_memalign, if present. Then, use
19395 memalign, if present. Otherwise, emit an error.
19396
19397 * util/grub-emu.c: Do not include malloc.h.
19398
19399 * include/grub/util/misc.h: Include unistd.h. This is required for
19400 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
19401 D. Eades III <hde@foobar-qux.org>.
19402
19403 * configure.ac (AC_GNU_SOURCE): Added.
19404 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
19405 type.
19406
19407 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
19408
19409 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
19410 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
19411
19412 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
19413
19414 * include/grub/types.h (grub_host_addr_t): Rename to
19415 grub_target_addr_t.
19416 (grub_host_off_t): Rename to grub_target_off_t.
19417 (grub_host_size_t): Rename to grub_target_size_t.
19418 (grub_host_ssize_t): Rename to grub_target_ssize_t.
19419 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
19420
19421 * include/grub/kernel.h (struct grub_module_header): Change type
19422 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
19423 (grub_module_info): Likewise.
19424
19425 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
19426
19427 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
19428 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
19429 Velazquez <jesus.velazquez@gmail.com>.
19430
19431 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
19432
19433 Count partitions from 1 instead of 0 in the string representation
19434 of partitions. Still use 0-based internally.
19435
19436 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
19437 (sun_partition_map_iterate): Use grub_partition_t instead of
19438 struct grub_partition *. Cast DESC->START_CYLINDER to
19439 grub_uint64_t after converting the endian.
19440 (sun_partition_map_probe): Subtract 1 for PARTNUM.
19441 (sun_partition_map_get_name): Add 1 to P->INDEX.
19442
19443 * partmap/pc.c (grub_partition_parse): Subtract 1 for
19444 PCDATA->DOS_PART.
19445 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
19446
19447 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
19448 zero instead of one.
19449 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
19450 (gpt_partition_map_get_name): Add 1 into P->INDEX.
19451
19452 * partmap/apple.c (apple_partition_map_iterate): Change the type
19453 of POS to unsigned.
19454 (apple_partition_map_probe): Subtract 1 for PARTNUM.
19455 (apple_partition_map_get_name): Add 1 into P->INDEX.
19456
19457 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
19458 of POS to unsigned.
19459 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
19460 calculate the offset of a partition.
19461 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
19462 (amiga_partition_map_get_name): Add 1 into P->INDEX.
19463
19464 * partmap/acorn.c (acorn_partition_map_find): Change the type of
19465 SECTOR to grub_disk_addr_t.
19466 (acorn_partition_map_iterate): Likewise.
19467 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
19468 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
19469 top.
19470 (acorn_partition_map_get_name): Add 1 into P->INDEX.
19471
19472 * kern/i386/pc/init.c (make_install_device): Add 1 into
19473 GRUB_INSTALL_DOS_PART.
19474
19475 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
19476 conditional.
19477
19478 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
19479
19480 Clean up the code to support 64-bit addressing in disks and
19481 files. This change is not enough for filesystems yet.
19482
19483 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
19484 type of "start" to grub_uint64_t.
19485 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
19486 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
19487 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
19488 convert addresses.
19489
19490 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
19491 to grub_disk_addr_t.
19492
19493 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
19494 string.
19495
19496 * partmap/pc.c (pc_partition_map_iterate): Likewise.
19497
19498 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
19499 to char *.
19500
19501 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
19502
19503 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
19504
19505 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
19506
19507 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
19508 to grub_off_t, to detect an error from grub_file_seek.
19509 (grub_multiboot_load_elf32): Likewise.
19510
19511 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
19512 maximum unsigned long value when an overflow is detected.
19513 (grub_strtoull): New function.
19514 (grub_divmod64): Likewise.
19515 (grub_lltoa): use grub_divmod64.
19516
19517 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
19518 grub_disk_addr_t.
19519 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
19520 the pointer to next character. Use grub_strtoull instead of
19521 grub_strtoul.
19522 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
19523 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
19524 respectively.
19525
19526 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
19527 return value is signed.
19528 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
19529 test if OFFSET is less than zero, as OFFSET is unsigned now.
19530
19531 * kern/disk.c (struct grub_disk_cache): Change the type of
19532 "sector" to grub_disk_addr_t.
19533 (grub_disk_cache_get_index): Change the type of SECTOR to
19534 grub_disk_addr_t. Calculate the hash with SECTOR casted to
19535 unsigned after shifting.
19536 (grub_disk_cache_invalidate): Change the type of SECTOR to
19537 grub_disk_addr_t.
19538 (grub_disk_cache_unlock): Likewise.
19539 (grub_disk_cache_store): Likewise.
19540 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
19541 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
19542 grub_disk_addr_t and grub_uint64_t, respectively.
19543 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
19544 body, as the value of OFFSET is tweaked by
19545 grub_disk_check_range. Change the types of START_SECTOR, LEN and
19546 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
19547 respectively.
19548 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
19549 body, as the value of OFFSET is tweaked by
19550 grub_disk_check_range. Change the types of LEN and N to
19551 grub_size_t.
19552
19553 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
19554 and "saved_offset" to grub_off_t.
19555 (test_header): Cast BUF to char *.
19556 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
19557 to char *.
19558 (grub_gzio_read): Change the types of OFFSET and SIZE to
19559 grub_off_t and grub_size_t, respectively.
19560
19561 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
19562 Removed.
19563 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
19564 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
19565 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
19566 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
19567 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
19568
19569 * include/grub/types.h (grub_off_t): Unconditionally set to
19570 grub_uint64_t.
19571 (grub_disk_addr_t): Changed to grub_uint64_t.
19572
19573 * include/grub/partition.h (struct grub_partition): Change the
19574 types of "start", "len" and "offset" to grub_disk_addr_t,
19575 grub_uint64_t and grub_disk_addr_t, respectively.
19576 (grub_partition_get_start): Return grub_disk_addr_t.
19577 (grub_partition_get_len): Return grub_uint64_t.
19578
19579 * include/grub/misc.h (grub_strtoull): New prototype.
19580 (grub_divmod64): Likewise.
19581
19582 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
19583 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
19584 grub_off_t, respectively.
19585 All callers and references changed.
19586
19587 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
19588 grub_size_t in "read".
19589 All callers and references changed.
19590
19591 * include/grub/file.h (struct grub_file): Change the types of
19592 "offset" and "size" to grub_off_t and grub_off_t,
19593 respectively. Change the type of SECTOR to grub_disk_addr_t in
19594 "read_hook".
19595 (grub_file_read): Change the type of LEN to grub_size_t.
19596 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
19597 grub_off_t.
19598 (grub_file_size): Return grub_off_t.
19599 (grub_file_tell): Likewise.
19600 All callers and references changed.
19601
19602 * include/grub/disk.h (struct grub_disk_dev): Change the types of
19603 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
19604 "write".
19605 (struct grub_disk): Change the type of "total_sectors" to
19606 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
19607 "read_hook".
19608 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
19609 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
19610 (grub_disk_write): Likewise.
19611 All callers and references changed.
19612
19613 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
19614 char * for grub_strncmp to silence gcc.
19615 (grub_iso9660_mount): Likewise.
19616 (grub_iso9660_mount): Likewise.
19617 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
19618 return statement.
19619 (grub_iso9660_iterate_dir): Likewise.
19620 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
19621
19622 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
19623 LEN to grub_disk_addr_t and grub_size_t, respectively.
19624
19625 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
19626
19627 * fs/jfs.c (grub_jfs_read_file): Likewise.
19628
19629 * fs/minix.c (grub_jfs_read_file): Likewise.
19630
19631 * fs/sfs.c (grub_jfs_read_file): Likewise.
19632
19633 * fs/ufs.c (grub_jfs_read_file): Likewise.
19634
19635 * fs/xfs.c (grub_jfs_read_file): Likewise.
19636
19637 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
19638 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
19639 respectively.
19640
19641 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
19642 BLKNR to -1 instead of returning GRUB_ERRNO.
19643 (grub_ext2_read_file): Change the types of SECTOR and
19644 LEN to grub_disk_addr_t and grub_size_t, respectively.
19645
19646 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
19647 LEN to grub_disk_addr_t and grub_size_t, respectively.
19648
19649 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
19650 grub_file_read.
19651
19652 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
19653 string. Do not cast SECTOR explicitly.
19654
19655 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
19656 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
19657 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
19658 grub_disk_addr_t and grub_size_t, respectively. If the sector is
19659 over 2TB and LBA mode is not supported, raise an error.
19660 (get_safe_sectors): New function.
19661 (grub_biosdisk_read): Use get_safe_sectors.
19662 (grub_biosdisk_write): Likewise.
19663
19664 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
19665 (grub_efidisk_write): Likewise.
19666
19667 * disk/loopback.c (delete_loopback): Cosmetic changes.
19668 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
19669 correctly.
19670 (grub_loopback_open): Likewise.
19671 (grub_loopback_read): Likewise. Also, change the type of POS to
19672 grub_off_t, and fix the usage of grub_memset.
19673
19674 * commands/i386/pc/play.c: Include grub/machine/time.h.
19675
19676 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
19677 print FILE->SIZE.
19678
19679 * commands/configfile.c: Include grub/env.h.
19680
19681 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
19682 GRUB_ERRNO directly instead. Change the type of POS to
19683 grub_off_t. Follow the coding standard.
19684
19685 * commands/blocklist.c: Include grub/partition.h.
19686 (grub_cmd_blocklist): Return an error if the underlying device is
19687 not a disk. Take the starting sector of a partition into account,
19688 if a partition is used.
19689
19690 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
19691 a length field.
19692 (lba_mode): Support 64-bit addresses.
19693 (chs_mode): Likewise.
19694 (copy_buffer): Adapted to the new offsets of a length field and a
19695 segment field.
19696 (blocklist_default_start): Allocate 64-bit space.
19697
19698 * boot/i386/pc/boot.S (force_lba): Removed.
19699 (boot_drive): Moved to under KERNEL_SECTOR.
19700 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
19701 space.
19702 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
19703 is useless.
19704 (lba_mode): Refactored to support a 64-bit address. More size
19705 optimization.
19706 (setup_sectors): Likewise.
19707
19708 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
19709
19710 * DISTLIST: Added include/grub/i386/linux.h. Removed
19711 include/grub/i386/pc/linux.h
19712
19713 * configure.ac (AC_INIT): Bumped to 1.94.
19714
19715 * config.guess: Updated from gnulib.
19716 * config.sub: Likewise.
19717 * install-sh: Likewise.
19718 * mkinstalldirs: Likewise.
19719
19720 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
19721
19722 * conf/common.rmk (grub_modules_init.lst): Depended on
19723 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
19724 MODSRCFILES.
19725
19726 * genmk.rb (PModule::rule): Reverted the previous change.
19727
19728 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
19729
19730 * conf/common.rmk (grub_modules_init.lst): Depends on
19731 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
19732 that the target does not exist before producing.
19733 (grub_modules_init.h): Remove the target before generating.
19734 (grub_emu_init.c): Likewise.
19735
19736 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
19737
19738 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
19739
19740 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
19741 for the target-specific tests. Make sure that we also have the
19742 up-to-date target variables for those tests.
19743
19744 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
19745
19746 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
19747 (PModule::rule): Likewise.
19748
19749 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
19750
19751 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
19752 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
19753 target-specific flags should be prefixed.
19754 (PModule::rule): Likewise.
19755
19756 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
19757
19758 * configure.ac (CMP): Check if cmp is available explicitly.
19759
19760 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
19761
19762 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
19763 (target_cpu): New variable.
19764 (pkglibdir): Use target_cpu instead of host_cpu.
19765
19766 * util/i386/pc/grub-install.in (host_cpu): Removed.
19767 (target_cpu): New variable.
19768 (pkglibdir): Use target_cpu instead of host_cpu.
19769
19770 * util/genmoddep.c: Removed.
19771
19772 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
19773 instead of GRUB_HOST_SIZEOF_VOID_P.
19774 * kern/dl.c: Likewise.
19775
19776 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
19777 ...
19778 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
19779 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
19780 (GRUB_TARGET_SIZEOF_LONG): ... this.
19781 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
19782 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
19783 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
19784 to ...
19785 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
19786 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
19787 (GRUB_TARGET_SIZEOF_LONG): ... this.
19788 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
19789 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
19790 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
19791 to ...
19792 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
19793 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
19794 (GRUB_TARGET_SIZEOF_LONG): ... this.
19795 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
19796 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
19797
19798 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
19799 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
19800 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
19801 instead of GRUB_HOST_SIZEOF_LONG.
19802 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
19803 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
19804 GRUB_CPU_WORDS_BIGENDIAN.
19805 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
19806 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
19807 grub_host_ssize_t.
19808
19809 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
19810 (genmoddep_SOURCES): Likewise.
19811 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
19812 (genmoddep_SOURCES): Likewise.
19813 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
19814 (genmoddep_SOURCES): Likewise.
19815 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
19816 Likewise.
19817 (genmoddep_SOURCES): Likewise.
19818
19819 * genmoddep.awk: New file.
19820
19821 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
19822 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
19823 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
19824 (PModule::rule): Likewise.
19825 (Program::rule): Likewise.
19826 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
19827 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
19828 respectively.
19829
19830 * configure.ac: Rewritten intensively to use host and target
19831 instead of build and host, respectively.
19832
19833 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
19834 (host_cpu): Removed.
19835 (target_cpu): New variable.
19836 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
19837 (BUILD_CC): Removed.
19838 (BUILD_CFLAGS): Likewise.
19839 (BUILD_CPPFLAGS): Likewise.
19840 (TARGET_CC): New variable.
19841 (TARGET_CFLAGS): Likewise.
19842 (TARGET_CPPFLAGS): Likewise.
19843 (TARGET_LDFLAGS): Likewise.
19844 (AWK): Likewise.
19845 (include): Use target_cpu instead of host_cpu.
19846 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
19847
19848 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
19849
19850 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
19851
19852 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
19853 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
19854 field 'false' to 'exec_on_false'.
19855 (grub_script_create_cmdif): Renamed argument names to reflect above
19856 changes.
19857
19858 * normal/execute.c (grub_script_execute_cmdif): Likewise.
19859
19860 * normal/script.c (grub_script_create_cmdif): Likewise.
19861
19862 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
19863
19864 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
19865 top.
19866 (grub_hfsplus_btree_recptr): Likewise.
19867 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
19868 FILEBLOCK both to pass a block number and store next block
19869 number.
19870 (grub_hfsplus_read_block): Rewritten heavily to support an extent
19871 overflow file correctly. Specify errors appropriately, because
19872 fshelp expects that GRUB_ERRNO is set when fails. Reuse
19873 grub_hfsplus_btree_recptr to get the pointer to a found key.
19874 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
19875 is found.
19876
19877 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
19878 linux.mod.
19879 (_linux_mod_SOURCES): New variable.
19880 (_linux_mod_CFLAGS): Likewise.
19881 (_linux_mod_LDFLAGS): Likewise.
19882 (linux_mod_SOURCES): Likewise.
19883 (linux_mod_CFLAGS): Likewise.
19884 (linux_mod_LDFLAGS): Likewise.
19885
19886 * DISTLIST: Added loader/i386/efi/linux.c,
19887 loader/i386/efi/linux_normal.c and
19888 include/grub/i386/efi/loader.h.
19889
19890 * loader/i386/efi/linux.c: New file.
19891 * loader/i386/efi/linux_normal.c: Likewise.
19892 * include/grub/i386/efi/loader.h: Likewise.
19893
19894 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
19895
19896 * commands/blocklist.c: New file.
19897
19898 * DISTLIST: Added commands/blocklist.c.
19899
19900 * term/efi/console.c (grub_console_highlight_color): Use a lighter
19901 color for the background, and a darker color for the foreground.
19902 (grub_console_checkkey): Return READ_KEY.
19903 (grub_console_cls): Set the background to
19904 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
19905
19906 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
19907
19908 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
19909 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
19910
19911 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
19912 prototype.
19913
19914 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
19915 BG. The spec is wrong again.
19916
19917 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
19918 prototype.
19919 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
19920
19921 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19922 commands/blocklist.c.
19923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19924
19925 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
19926 (blocklist_mod_SOURCES): New variable.
19927 (blocklist_mod_CFLAGS): Likewise.
19928 (blocklist_mod_LDFLAGS): Likewise.
19929
19930 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
19931
19932 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
19933 duplication.
19934 (lba_mode): Use %eax more intensively to reduce the code size.
19935
19936 2006-05-20 Marco Gerards <marco@gnu.org>
19937
19938 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
19939
19940 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
19941 for `menuentry'.
19942 (script): Accept leading newlines.
19943 (newlines): New rule to describe 0 or more newlines.
19944 (commands): Accept `command' with trailing newline. Fixed the
19945 order in which arguments were passed to `grub_script_add_cmd'.
19946 Accept commands separated by newlines.
19947 (function): Changed to accept newlines.
19948 (menuentry) Rewritten.
19949
19950 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
19951 front of the list, instead of to the end.
19952
19953 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
19954
19955 * util/i386/pc/grub-install.in (bindir): New variable.
19956 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
19957 Shaver <lbgwjl@gmail.com>.
19958
19959 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
19960
19961 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
19962 grub/machine/linux.h
19963 * loader/i386/pc/linux.c: Likewise.
19964
19965 * include/grub/i386/pc/linux.h: Moved to ...
19966 * include/grub/i386/linux.h: ... here.
19967
19968 * include/grub/i386/linux.h (struct linux_kernel_params): New
19969 struct.
19970
19971 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
19972
19973 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
19974 checking.
19975 (grub_video_vbe_blit_glyph): Likewise.
19976 (grub_video_vbe_blit_bitmap): Likewise.
19977 (grub_video_vbe_blit_render_target): Likewise.
19978
19979 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
19980
19981 * configure.ac (--with-platform): Properly quote the square
19982 brackets.
19983
19984 2006-05-08 Marco Gerards <marco@gnu.org>
19985
19986 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
19987 this...
19988 (kernel_elf_HEADERS): ...to this. Updated all users.
19989 (grubof_symlist.c): Renamed from this...
19990 (kernel_elf_symlist.c): ...to this. Updated all users.
19991 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
19992 (grubof_SOURCES): Renamed from this...
19993 (kernel_elf_SOURCES): ...to this.
19994 (grubof_HEADERS): Renamed from this...
19995 (kernel_elf_HEADERS): ...to this.
19996 (grubof_CFLAGS): Renamed from this...
19997 (kernel_elf_CFLAGS): ...to this.
19998 (grubof_ASFLAGS): Renamed from this...
19999 (kernel_elf_ASFLAGS): ...to this.
20000 (grubof_LDFLAGS): Renamed from this...
20001 (kernel_elf_LDFLAGS): ...to this.
20002
20003 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
20004 this...
20005 (kernel_elf_HEADERS): ...to this. Updated all users.
20006 (grubof_symlist.c): Renamed from this...
20007 (kernel_elf_symlist.c): ...to this. Updated all users.
20008 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
20009 (grubof_SOURCES): Renamed from this...
20010 (kernel_elf_SOURCES): ...to this.
20011 (grubof_HEADERS): Renamed from this...
20012 (kernel_elf_HEADERS): ...to this.
20013 (grubof_CFLAGS): Renamed from this...
20014 (kernel_elf_CFLAGS): ...to this.
20015 (grubof_ASFLAGS): Renamed from this...
20016 (kernel_elf_ASFLAGS): ...to this.
20017 (grubof_LDFLAGS): Renamed from this...
20018 (kernel_elf_LDFLAGS): ...to this.
20019
20020 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
20021 `kernel.elf' instead of `grubof'.
20022
20023 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
20024
20025 Add --with-platform to configure. Use pkglibdir instead of
20026 pkgdatadir. This is reported by Roger Leigh.
20027
20028 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
20029 (host_vendor): Likewise.
20030 (host_os): Likewise.
20031 (pkgdatadir): Likewise.
20032 (platform): New variable.
20033 (pkglibdir): Likewise.
20034 Use PKGLIBDIR instead of PKGDATADIR.
20035
20036 * util/i386/pc/grub-install.in (datadir): Removed.
20037 (host_vendor): Likewise.
20038 (host_os): Likewise.
20039 (pkgdatadir): Likewise.
20040 (platform): New variable.
20041 (pkglibdir): Likewise.
20042 Use PKGLIBDIR instead of PKGDATADIR.
20043
20044 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
20045 instead of GRUB_DATADIR.
20046 (main): Likewise.
20047 * util/i386/pc/grub-mkimage.c (usage): Likewise.
20048 (main): Likewise.
20049 * util/i386/efi/grub-mkimage.c (usage): Likewise.
20050 (main): Likewise.
20051
20052 * configure.ac (--with-platform): New option.
20053 Use PLATFORM instead of HOST_VENDOR to specify a platform.
20054
20055 * Makefile.in: Include a makefile based on PLATFORM instead of
20056 HOST_VENDOR.
20057 (pkgdatadir): Not appended by the machine type.
20058 (pkglibdir): Appended by the machine type.
20059 (host_vendor): Removed.
20060 (platform): New variable.
20061 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
20062 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
20063 (uninstall): Likewise.
20064
20065 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
20066
20067 Use the environment context in the menu. Remove the commands
20068 "default" and "timeout", and use variables instead.
20069
20070 * normal/menu.c: Include grub/env.h.
20071 (print_entry): Cast TITLE to silence gcc.
20072 (get_timeout): New function.
20073 (set_timeout): Likewise.
20074 (get_entry_number): Likewise.
20075 (run_menu): Use a default entry, a fallback entry and a timeout
20076 in the environment variables "default", "fallback" and
20077 "timeout". Also, tweak the default entry if it is not within the
20078 current menu entries.
20079 (grub_menu_run): Use a fallback entry in the environment variable
20080 "fallback".
20081
20082 * normal/main.c (read_config_file): Do not initialize
20083 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
20084 NEWMENU->TIMEOUT.
20085 (grub_normal_execute): Use a data slot to store the menu.
20086
20087 * include/grub/normal.h (struct grub_menu): Removed default_entry,
20088 fallback_entry and timeout.
20089 (struct grub_menu_list): Removed.
20090 (grub_menu_list_t): Likewise.
20091 (struct grub_context): Likewise.
20092 (grub_context_t): Likewise.
20093 (grub_context_get): Likewise.
20094 (grub_context_get_current_menu): Likewise.
20095 (grub_context_push_menu): Likewise.
20096 (grub_context_pop_menu): Likewise.
20097 (grub_default_init): Likewise.
20098 (grub_default_fini): Likewise.
20099 (grub_timeout_init): Likewise.
20100 (grub_timeout_fini): Likewise.
20101
20102 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
20103 and timeout.mod.
20104 (normal_mod_SOURCES): Removed normal/context.c.
20105
20106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
20107 commands/default.c, commands/timeout.c and normal/context.c.
20108 (normal_mod_SOURCES): Removed normal/context.c.
20109
20110 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
20111 commands/timeout.c and normal/context.c.
20112 (normal_mod_SOURCES): Removed normal/context.c.
20113
20114 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
20115 commands/default.c, commands/timeout.c and normal/context.c.
20116 (normal_mod_SOURCES): Removed normal/context.c.
20117
20118 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
20119 timeout.mod.
20120 (default_mod_SOURCES): Removed.
20121 (default_mod_CFLAGS): Likewise.
20122 (default_mod_LDFLAGS): Likewise.
20123 (timeout_mod_SOURCES): Removed.
20124 (timeout_mod_CFLAGS): Likewise.
20125 (timeout_mod_LDFLAGS): Likewise.
20126
20127 * DISTLIST: Removed commands/default.c, commands/timeout.c and
20128 normal/context.c.
20129
20130 * commands/default.c: Removed.
20131 * commands/timeout.c: Likewise.
20132 * normal/context.c: Likewise.
20133
20134 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
20135
20136 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
20137
20138 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
20139
20140 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
20141 "next" to "prev" for readability.
20142 (struct grub_env_sorted_var): New struct.
20143 (grub_env_context): Renamed to ...
20144 (initial_context): ... this.
20145 (grub_env_var_context): Renamed to ...
20146 (current_context): ... this.
20147 (grub_env_find): Look only at CURRENT_CONTEXT.
20148 (grub_env_context_open): Rewritten to copy exported variables from
20149 previous context.
20150 (grub_env_context_close): Rewritten according to the new
20151 scheme. Also, add an assertion to prevent the initial context from
20152 removed.
20153 (grub_env_insert): Removed the code for the sorted list.
20154 (grub_env_remove): Likewise.
20155 (grub_env_export): Simply mark the variable with
20156 GRUB_ENV_VAR_GLOBAL.
20157 (grub_env_set): A cosmetic change for naming consistency.
20158 (grub_env_get): Likewise.
20159 (grub_env_unset): Likewise.
20160 (grub_env_iterate): Rewritten to sort variables within this
20161 function.
20162 (grub_register_variable_hook): Fixed for naming consistency. Call
20163 grub_env_find again, only if NAME is not found at the first time.
20164 (mangle_data_slot_name): New function.
20165 (grub_env_set_data_slot): Likewise.
20166 (grub_env_get_data_slot): Likewise.
20167 (grub_env_unset_data_slot): Likewise.
20168
20169 * include/grub/env.h (grub_env_var_type): New enum.
20170 (GRUB_ENV_VAR_LOCAL): New constant.
20171 (GRUB_ENV_VAR_GLOBAL): Likewise.
20172 (GRUB_ENV_VAR_DATA): Likewise.
20173 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
20174 "type".
20175 (grub_env_set): Replace VAR with NAME for consistency.
20176 (grub_register_variable_hook): Likewise.
20177 (grub_env_export): Specify the name of the argument.
20178 (grub_env_set_data_slot): New prototype.
20179 (grub_env_get_data_slot): Likewise.
20180 (grub_env_unset_data_slot): Likewise.
20181
20182 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
20183
20184 Extend the loader so that GRUB can accept a loader which comes
20185 back to GRUB when a loaded image exits. Also, this change adds
20186 support for a chainloader on EFI.
20187
20188 * term/efi/console.c: Include grub/misc.h.
20189 (grub_console_checkkey): Display a scan code on the top for
20190 debugging. This will be removed once the EFI port gets stable.
20191 Correct the scan code mapping.
20192
20193 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
20194 allocate memory from larger regions, in order to reduce the number
20195 of allocated regions. Otherwise, the MacOSX loader panics.
20196 (filter_memory_map): Avoid less than 1MB for compatibility with
20197 other loaders.
20198 (add_memory_regions): Allocate from the tail of a region, if
20199 possible, to avoid allocating a region near to 1MB, for the MacOSX
20200 loader.
20201
20202 * kern/efi/init.c (grub_efi_set_prefix): Specify
20203 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
20204
20205 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
20206 argument IMAGE_HANDLE and specify it to get a loaded image.
20207 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
20208 grub_efi_get_loaded_image.
20209 (grub_efi_get_filename): Divide the length by the size of
20210 grub_efi_char16_t.
20211 (grub_efi_get_device_path): New function.
20212 (grub_efi_print_device_path): Print End Device Path nodes. Divide
20213 the length by the size of grub_efi_char16_t for a file path device
20214 path node.
20215
20216 * kern/loader.c (grub_loader_noreturn): New variable.
20217 (grub_loader_set): Accept a new argument NORETURN. Set
20218 GRUB_LOADER_NORETURN to NORETURN.
20219 All callers changed.
20220 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
20221 grub_machine_fini.
20222
20223 * include/grub/efi/efi.h (grub_efi_get_device_path): New
20224 prototype.
20225 (grub_efi_get_loaded_image): Take an argument to specify an image
20226 handle.
20227
20228 * include/grub/loader.h (grub_loader_set): Added one more argument
20229 NORETURN.
20230
20231 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
20232 instead of grub_efi_open_protocol.
20233 (grub_efidisk_get_device_name): Likewise.
20234 (grub_efidisk_close): Print a newline.
20235 (grub_efidisk_get_device_handle): Fixed to use
20236 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
20237 GRUB_EFI_DEVICE_PATH_TYPE.
20238
20239 * disk/efi/efidisk.c (device_path_guid): Moved to ...
20240 * kern/efi/efi.c (device_path_guid): ... here.
20241
20242 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
20243 chain.mod.
20244 (kernel_mod_HEADERS): Added efi/disk.h.
20245 (_chain_mod_SOURCES): New variable.
20246 (_chain_mod_CFLAGS): Likewise.
20247 (_chain_mod_LDFLAGS): Likewise.
20248 (chain_mod_SOURCES): Likewise.
20249 (chain_mod_CFLAGS): Likewise.
20250 (chain_mod_LDFLAGS): Likewise.
20251
20252 * DISTLIST: Added include/grub/efi/chainloader.h,
20253 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
20254
20255 * include/grub/efi/chainloader.h: New file.
20256 * loader/efi/chainloader.c: Likewise.
20257 * loader/efi/chainloader_normal.c: Likewise.
20258
20259 2006-04-30 Marco Gerards <marco@gnu.org>
20260
20261 * commands/configfile.c (grub_cmd_source): New function.
20262 (GRUB_MOD_INIT): Register the commands `source' and `.'.
20263 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
20264
20265 2006-04-30 Marco Gerards <marco@gnu.org>
20266
20267 * normal/execute.c (grub_script_execute_cmd): Change the return
20268 type to `grub_err_t'. Correctly return the error.
20269 (grub_script_execute_cmdline): In case a command line is not a
20270 command or a function, try to interpret it as an assignment.
20271
20272 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
20273
20274 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
20275 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
20276 skip a node whose name is obviously invalid as UTF-16,
20277 i.e. contains a NUL character. Stop the iteration when the last
20278 directory entry is found. Instead of using the return value of
20279 grub_hfsplus_btree_iterate_node, store the value in RET and use
20280 it, because the iterator can be stopped by the last directory
20281 entry.
20282
20283 2006-04-30 Marco Gerards <marco@gnu.org>
20284
20285 * include/grub/env.h (grub_env_export): New prototype. Reported
20286 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
20287
20288 2006-04-30 Marco Gerards <marco@gnu.org>
20289
20290 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
20291 size of the extents in a catalog file record.
20292
20293 2006-04-29 Marco Gerards <marco@gnu.org>
20294
20295 * commands/configfile.c (grub_cmd_configfile): Execute the
20296 configfile within its own context.
20297
20298 * include/grub/env.h (grub_env_context_open): New prototype.
20299 (grub_env_context_close): Likewise.
20300
20301 * kern/env.c (grub_env): Removed.
20302 (grub_env_sorted): Likewise.
20303 (grub_env_context): New variable.
20304 (grub_env_var_context): Likewise.
20305 (grub_env_find): Search both the active context and the global
20306 context.
20307 (grub_env_context_open): New function.
20308 (grub_env_context_close): Likewise.
20309 (grub_env_insert): Likewise.
20310 (grub_env_remove): Likewise.
20311 (grub_env_export): Likewise.
20312 (grub_env_set): Changed to use helper functions to avoid code
20313 duplication.
20314 (grub_env_iterate): Rewritten so both the current context and the
20315 global context are being used.
20316
20317 * normal/command.c (export_command): New function.
20318 (grub_command_init): Register the `export' function.
20319
20320 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
20321
20322 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
20323 explicitly to suppress gcc's warnings.
20324 * fs/fat.c (grub_fat_find_dir): Likewise.
20325 (grub_fat_label): Likewise.
20326 * fs/xfs.c (grub_xfs_read_inode): Likewise.
20327 (grub_xfs_mount): Likewise.
20328 (grub_xfs_label): Likewise.
20329 * fs/affs.c (grub_affs_mount): Likewise.
20330 (grub_affs_label): Likewise.
20331 (grub_affs_iterate_dir): Likewise.
20332 * fs/sfs.c (grub_sfs_mount): Likewise.
20333 (grub_sfs_iterate_dir): Likewise.
20334 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
20335 * fs/hfs.c (grub_hfs_mount): Likewise.
20336 (grub_hfs_cmp_catkeys): Likewise.
20337 (grub_hfs_find_dir): Likewise.
20338 (grub_hfs_dir): Likewise.
20339 (grub_hfs_label): Likewise.
20340 * fs/jfs.c (grub_jfs_mount): Likewise.
20341 (grub_jfs_opendir): Likewise.
20342 (grub_jfs_getent): Likewise.
20343 (grub_jfs_lookup_symlink): Likewise.
20344 (grub_jfs_label): Likewise.
20345 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
20346 (grub_hfsplus_iterate_dir): Likewise.
20347 (grub_hfsplus_btree_iterate_node): Made static.
20348
20349 * util/grub-emu.c (prefix): New variable.
20350 (grub_machine_set_prefix): New function.
20351 (main): Do not set the environment variable "prefix" here. Only
20352 set PREFIX, which is used later by grub_machine_set_prefix.
20353
20354 * include/grub/video.h: Do not include grub/symbol.h.
20355 (grub_video_register): Not exported. This symbol is not defined in
20356 the kernel.
20357 (grub_video_unregister): Likewise.
20358 (grub_video_iterate): Likewise.
20359 (grub_video_setup): Likewise.
20360 (grub_video_restore): Likewise.
20361 (grub_video_get_info): Likewise.
20362 (grub_video_get_blit_format): Likewise.
20363 (grub_video_set_palette): Likewise.
20364 (grub_video_get_palette): Likewise.
20365 (grub_video_set_viewport): Likewise.
20366 (grub_video_get_viewport): Likewise.
20367 (grub_video_map_color): Likewise.
20368 (grub_video_map_rgb): Likewise.
20369 (grub_video_map_rgba): Likewise.
20370 (grub_video_fill_rect): Likewise.
20371 (grub_video_blit_glyph): Likewise.
20372 (grub_video_blit_bitmap): Likewise.
20373 (grub_video_blit_render_target): Likewise.
20374 (grub_video_scroll): Likewise.
20375 (grub_video_swap_buffers): Likewise.
20376 (grub_video_create_render_target): Likewise.
20377 (grub_video_delete_render_target): Likewise.
20378 (grub_video_set_active_render_target): Likewise.
20379
20380 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
20381 Undefined.
20382 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
20383
20384 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
20385 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
20386 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
20387 instead of $(srcdir)/genkernsyms.sh.
20388
20389 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
20390 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
20391 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
20392 instead of $(srcdir)/genkernsyms.sh.
20393
20394 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
20395 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
20396 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
20397 instead of $(srcdir)/genkernsyms.sh.
20398
20399 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
20400 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
20401 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
20402 instead of $(srcdir)/genkernsyms.sh.
20403
20404 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
20405 genkernsyms.sh.
20406
20407 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
20408 genkernsyms.sh.
20409 (gensymlist.sh): New target.
20410 (genkernsyms.sh): Likewise.
20411
20412 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
20413 genkernsyms.sh.in and gensymlist.sh.in.
20414
20415 * genkernsyms.sh: Removed.
20416 * gensymlist.sh: Likewise.
20417
20418 * genkernsyms.sh.in: New file.
20419 * gensymlist.sh.in: Likewise.
20420
20421 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
20422
20423 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
20424 clobber "prefix", since we may have already set it manually.
20425
20426 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
20427
20428 * kern/misc.c (abort): New alias for grub_abort.
20429
20430 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
20431
20432 A new machine-specific function "grub_machine_set_prefix" is
20433 defined. This is called after loading modules, so that a prefix
20434 initialization can use modules. Also, this change adds an
20435 intensive debugging feature for the memory manager via the
20436 configure option "--enable-mm-debug".
20437
20438 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
20439 PART.LEN.
20440
20441 * kern/sparc64/ieee1275/init.c (abort): Removed.
20442 (grub_stop): Likewise.
20443 (grub_exit): New function.
20444 (grub_set_prefix): Renamed to ...
20445 (grub_machine_set_prefix): ... this.
20446 (grub_machine_init): Do not call grub_set_prefix.
20447
20448 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
20449 (grub_machine_set_prefix): ... this.
20450 (grub_machine_init): Do not call grub_set_prefix.
20451
20452 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
20453 (grub_machine_init): Do not set the prefix here.
20454
20455 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
20456
20457 * kern/efi/init.c: Include grub/mm.h.
20458 (grub_efi_set_prefix): New function.
20459
20460 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
20461 (grub_efi_get_filename): New function.
20462 (grub_print_device_path): Renamed to ...
20463 (grub_efi_print_device_path): ... this.
20464
20465 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
20466 [MM_DEBUG] (grub_realloc): Likewise.
20467 [MM_DEBUG] (grub_free): Likewise.
20468 [MM_DEBUG] (grub_memalign): Likewise.
20469 [MM_DEBUG] (grub_mm_debug): New variable.
20470 [MM_DEBUG] (grub_debug_malloc): New function.
20471 [MM_DEBUG] (grub_debug_free): New function.
20472 [MM_DEBUG] (grub_debug_realloc): New function.
20473 [MM_DEBUG] (grub_debug_memalign): New function.
20474
20475 * kern/misc.c (grub_abort): Print a newline to distinguish
20476 the message.
20477
20478 * kern/main.c (grub_main): Call grub_machine_set_prefix and
20479 grub_set_root_dev after loading modules. This is necessary when
20480 setting a prefix depends on modules.
20481
20482 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
20483 (grub_efi_print_device_path): ... this.
20484 (grub_efi_get_filename): New prototype.
20485 (grub_efi_set_prefix): Likewise.
20486
20487 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
20488 and grub/disk.h.
20489 (grub_efidisk_get_device_handle): New prototype.
20490 (grub_efidisk_get_device_name): Likewise.
20491
20492 * include/grub/mm.h: Include config.h.
20493 (MM_DEBUG): Removed.
20494 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
20495 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
20496 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
20497 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
20498 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
20499 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
20500 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
20501 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
20502 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
20503
20504 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
20505
20506 * disk/efi/efidisk.c: Include grub/partition.h.
20507 (iterate_child_devices): New function.
20508 (add_device): First, compare only last device path nodes, so that
20509 devices are sorted by the types.
20510 (grub_efidisk_get_device_handle): New function.
20511 (grub_efidisk_get_device_name): Likewise.
20512
20513 * configure.ac (--enable-mm-debug): New option to enable the
20514 memory manager debugging feature. This makes the binary much
20515 bigger, so is disabled by default.
20516
20517 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
20518
20519 Use grub_abort instead of grub_stop, and grub_exit must be
20520 define in each architecture now. Also, this change adds support
20521 for EFI disks.
20522
20523 * util/i386/pc/grub-probefs.c: Include grub/term.h.
20524 (grub_getkey): New function.
20525 (grub_term_get_current): Likewise.
20526
20527 * util/i386/pc/grub-setup.c: Include grub/term.h.
20528 (grub_getkey): New function.
20529 (grub_term_get_current): Likewise.
20530
20531 * util/misc.c (grub_stop): Renamed to ...
20532 (grub_exit): ... this.
20533
20534 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
20535 (grub_exit): ... this.
20536 (grub_machine_init): Use grub_abort instead of abort.
20537 (grub_stop): Removed.
20538
20539 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
20540 abort.
20541
20542 * kern/i386/pc/startup.S (grub_exit): New function.
20543 (cold_reboot): New label.
20544
20545 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
20546 (grub_efi_init): Call grub_efidisk_init.
20547 (grub_efi_fini): Call grub_efidisk_fini.
20548
20549 * kern/efi/efi.c: Include grub/mm.h.
20550 (grub_efi_console_control_guid): Renamed to ...
20551 (console_control_guid): ... this.
20552 (grub_efi_loaded_image_guid): Renamed to ...
20553 (loaded_image_guid): ... this.
20554 (grub_efi_locate_handle): New function.
20555 (grub_efi_open_protocol): Likewise.
20556 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
20557 GRUB_EFI_CONSOLE_CONTROL_GUID.
20558 (grub_efi_exit): Removed.
20559 (grub_stop): Likewise.
20560 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
20561 (grub_exit): New function.
20562 (grub_print_device_path): Likewise.
20563
20564 * kern/rescue.c (grub_rescue_cmd_exit): New function.
20565 (grub_enter_rescue_mode): Register "exit".
20566
20567 * kern/misc.c (grub_real_dprintf): A cosmetic change.
20568 (grub_abort): New function.
20569
20570 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
20571
20572 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
20573
20574 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
20575
20576 * include/grub/efi/efi.h (grub_efi_exit): Removed.
20577 (grub_print_device_path): New prototype.
20578 (grub_efi_locate_handle): Likewise.
20579 (grub_efi_open_protocol): Likewise.
20580
20581 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
20582 * disk/efi/efidisk.c: Likewise.
20583
20584 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
20585
20586 * include/grub/efi/console_control.h
20587 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
20588
20589 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
20590 last 8 bytes as an array.
20591 (GRUB_EFI_DISK_IO_GUID): New macro.
20592 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
20593 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
20594 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
20595 grub_uint8_t.
20596 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
20597 (struct grub_efi_device_path): Rename the member "sub_type" to
20598 "subtype".
20599 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
20600 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
20601 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
20602 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
20603 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
20604 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
20605 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
20606 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
20607 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
20608 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
20609 (struct grub_efi_pci_device_path): New structure.
20610 (grub_efi_pci_device_path_t): New type.
20611 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
20612 (struct grub_efi_pccard_device_path): New structure.
20613 (grub_efi_pccard_device_path_t): New type.
20614 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
20615 (struct grub_efi_memory_mapped_device_path): New structure.
20616 (grub_efi_memory_mapped_device_path_t): New type.
20617 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
20618 (struct grub_efi_vendor_device_path): New structure.
20619 (grub_efi_vendor_device_path_t): New type.
20620 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
20621 (struct grub_efi_controller_device_path): New structure.
20622 (grub_efi_controller_device_path_t): New type.
20623 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
20624 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
20625 (struct grub_efi_acpi_device_path): New structure.
20626 (grub_efi_acpi_device_path_t): New type.
20627 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
20628 (struct grub_efi_expanded_acpi_device_path): New structure.
20629 (grub_efi_expanded_acpi_device_path_t): New type.
20630 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
20631 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
20632 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
20633 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
20634 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
20635 (struct grub_efi_atapi_device_path): New structure.
20636 (grub_efi_atapi_device_path_t): New type.
20637 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
20638 (struct grub_efi_fibre_channel_device_path): New structure.
20639 (grub_efi_fibre_channel_device_path_t): New type.
20640 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
20641 (struct grub_efi_1394_device_path): New structure.
20642 (grub_efi_1394_device_path_t): New type.
20643 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
20644 (struct grub_efi_usb_device_path): New structure.
20645 (grub_efi_usb_device_path_t): New type.
20646 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
20647 (struct grub_efi_usb_class_device_path): New structure.
20648 (grub_efi_usb_class_device_path_t): New type.
20649 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
20650 (struct grub_efi_i2o_device_path): New structure.
20651 (grub_efi_i2o_device_path_t): New type.
20652 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
20653 (struct grub_efi_mac_address_device_path): New structure.
20654 (grub_efi_mac_address_device_path_t): New type.
20655 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
20656 (struct grub_efi_ipv4_device_path): New structure.
20657 (grub_efi_ipv4_device_path_t): New type.
20658 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
20659 (struct grub_efi_ipv6_device_path): New structure.
20660 (grub_efi_ipv6_device_path_t): New type.
20661 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
20662 (struct grub_efi_infiniband_device_path): New structure.
20663 (grub_efi_infiniband_device_path_t): New type.
20664 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
20665 (struct grub_efi_uart_device_path): New structure.
20666 (grub_efi_uart_device_path_t): New type.
20667 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
20668 (struct grub_efi_vendor_messaging_device_path): New structure.
20669 (grub_efi_vendor_messaging_device_path_t): New type.
20670 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
20671 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
20672 (struct grub_efi_hard_drive_device_path): New structure.
20673 (grub_efi_hard_drive_device_path_t): New type.
20674 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
20675 (struct grub_efi_cdrom_device_path): New structure.
20676 (grub_efi_cdrom_device_path_t): New type.
20677 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
20678 (struct grub_efi_vendor_media_device_path): New structure.
20679 (grub_efi_vendor_media_device_path_t): New type.
20680 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
20681 (struct grub_efi_file_path_device_path): New structure.
20682 (grub_efi_file_path_device_path_t): New type.
20683 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
20684 (struct grub_efi_protocol_device_path): New structure.
20685 (grub_efi_protocol_device_path_t): New type.
20686 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
20687 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
20688 (struct grub_efi_bios_device_path): New structure.
20689 (grub_efi_bios_device_path_t): New type.
20690 (struct grub_efi_disk_io): New structure.
20691 (grub_efi_disk_io_t): New type.
20692 (struct grub_efi_block_io_media): New structure.
20693 (grub_efi_block_io_media_t): New type.
20694 (struct grub_efi_block_io): New structure.
20695 (grub_efi_block_io_t): New type.
20696
20697 * include/grub/misc.h (grub_stop): Removed.
20698 (grub_exit): New prototype.
20699 (grub_abort): Likewise.
20700
20701 * include/grub/disk.h (enum grub_disk_dev_id): Added
20702 GRUB_DISK_DEVICE_EFIDISK_ID.
20703
20704 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
20705 disk/efi/efidisk.c.
20706 (kernel_syms.lst): Remove the target if an error occurs.
20707
20708 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
20709
20710 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
20711 as it was simply too buggy.
20712
20713 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
20714
20715 * kern/misc.c (grub_lltoa): New function.
20716 (grub_vsprintf): Added support for the long long suffix,
20717 i.e. "ll".
20718
20719 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
20720
20721 * Makefile.in (LDFLAGS): Add variable.
20722 (LD): Remove variable.
20723 * configure.ac: Add -m32 to LDFLAGS.
20724 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
20725 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
20726 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
20727 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
20728 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
20729 variables.
20730 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
20731 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
20732 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
20733
20734 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
20735
20736 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
20737 length for unknown glyph.
20738
20739 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
20740
20741 Add support for pre-loaded modules into the EFI port.
20742
20743 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
20744 completely. Accept one more argument DIR. The caller has changed.
20745
20746 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
20747
20748 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
20749 (grub_efi_loaded_image_guid): New variable.
20750 (grub_efi_get_loaded_image): New function.
20751 (grub_arch_modules_addr): Likewise.
20752
20753 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
20754 prototype.
20755
20756 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
20757 (struct grub_efi_loaded_image): New structure.
20758 (grub_efi_loaded_image_t): New type.
20759
20760 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
20761
20762 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
20763 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
20764 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
20765
20766 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
20767
20768 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
20769
20770 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
20771
20772 * DISTLIST: Added include/grub/efi/console.h,
20773 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
20774 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
20775
20776 * include/grub/efi/console.h: New file.
20777 * include/grub/efi/time.h: Likewise.
20778 * include/grub/i386/efi/kernel.h: Likewise.
20779 * kern/efi/init.c: Likewise.
20780 * kern/efi/mm.c: Likewise.
20781 * term/efi/console.c: Likewise.
20782
20783 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
20784 (grub_stop): Removed.
20785 (grub_get_rtc): Likewise.
20786 (grub_machine_init): Simply call grub_efi_init.
20787 (grub_machine_fini): Call grub_efi_fini.
20788
20789 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
20790 (grub_efi_output_string): Removed.
20791 (grub_efi_stall): New function.
20792 (grub_stop): Likewise.
20793 (grub_get_rtc): Likewise.
20794
20795 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
20796 (grub_efi_stall): New prototype.
20797 (grub_efi_allocate_pages): Likewise.
20798 (grub_efi_free_pages): Likewise.
20799 (grub_efi_get_memory_map): Likewise.
20800 (grub_efi_mm_init): Likewise.
20801 (grub_efi_mm_fini): Likewise.
20802 (grub_efi_init): Likewise.
20803 (grub_efi_fini): Likewise.
20804
20805 * include/grub/i386/efi/time.h: Do not include
20806 grub/symbol.h. Include grub/efi/time.h.
20807 (GRUB_TICKS_PER_SECOND): Removed.
20808 (grub_get_rtc): Likewise.
20809
20810 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
20811 Added padding. The EFI spec is buggy.
20812 (GRUB_EFI_BLACK): New macro.
20813 (GRUB_EFI_BLUE): Likewise.
20814 (GRUB_EFI_GREEN): Likewise.
20815 (GRUB_EFI_CYAN): Likewise.
20816 (GRUB_EFI_RED): Likewise.
20817 (GRUB_EFI_MAGENTA): Likewise.
20818 (GRUB_EFI_BROWN): Likewise.
20819 (GRUB_EFI_LIGHTGRAY): Likewise.
20820 (GRUB_EFI_BRIGHT): Likewise.
20821 (GRUB_EFI_DARKGRAY): Likewise.
20822 (GRUB_EFI_LIGHTBLUE): Likewise.
20823 (GRUB_EFI_LIGHTGREEN): Likewise.
20824 (GRUB_EFI_LIGHTCYAN): Likewise.
20825 (GRUB_EFI_LIGHTRED): Likewise.
20826 (GRUB_EFI_LIGHTMAGENTA): Likewise.
20827 (GRUB_EFI_YELLOW): Likewise.
20828 (GRUB_EFI_WHITE): Likewise.
20829 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
20830 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
20831 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
20832 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
20833 (GRUB_EFI_BACKGROUND_RED): Likewise.
20834 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
20835 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
20836 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
20837 (GRUB_EFI_TEXT_ATTR): Likewise.
20838
20839 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
20840 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
20841 (kernel_mod_HEADERS): Added efi/time.h.
20842
20843 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
20844
20845 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
20846 include/grub/efi/api.h, include/grub/efi/console_control.h,
20847 include/grub/efi/efi.h, include/grub/efi/pe32.h,
20848 include/grub/i386/efi/time.h, kern/efi/efi.c,
20849 kern/i386/efi/init.c, kern/i386/efi/startup.S,
20850 and util/i386/efi/grub-mkimage.c.
20851
20852 * Makefile.in (RMKFILES): Added i386-efi.rmk.
20853
20854 * genmk.rb (PModule#rule): Do not export symbols if
20855 #{prefix}_EXPORTS is set to "no".
20856
20857 * conf/i386-efi.mk: New file.
20858 * conf/i386-efi.rmk: Likewise.
20859 * include/grub/efi/api.h: Likewise.
20860 * include/grub/efi/console_control.h: Likewise.
20861 * include/grub/efi/efi.h: Likewise.
20862 * include/grub/efi/pe32.h: Likewise.
20863 * include/grub/i386/efi/time.h: Likewise.
20864 * kern/efi/efi.c: Likewise.
20865 * kern/i386/efi/init.c: Likewise.
20866 * kern/i386/efi/startup.S: Likewise.
20867 * util/i386/efi/grub-mkimage.c: Likewise.
20868
20869 2006-04-17 Marco Gerards <marco@gnu.org>
20870
20871 * include/grub/script.h: Include <grub/parser.h> and
20872 "grub_script.tab.h".
20873 (struct grub_lexer_param): New struct.
20874 (struct grub_parser_param): Likewise.
20875 (grub_script_create_arglist): Pass the state in an argument.
20876 (grub_script_add_arglist): Likewise.
20877 (grub_script_create_cmdline): Likewise.
20878 (grub_script_create_cmdblock): Likewise.
20879 (grub_script_create_cmdif): Likewise.
20880 (grub_script_create_cmdmenu): Likewise.
20881 (grub_script_add_cmd): Likewise.
20882 (grub_script_arg_add): Likewise.
20883 (grub_script_lexer_ref): Likewise.
20884 (grub_script_lexer_deref): Likewise.
20885 (grub_script_lexer_record_start): Likewise.
20886 (grub_script_lexer_record_stop): Likewise.
20887 (grub_script_mem_record): Likewise.
20888 (grub_script_mem_record_stop): Likewise.
20889 (grub_script_malloc): Likewise.
20890 (grub_script_yylex): Likewise.
20891 (grub_script_yyparse): Likewise.
20892 (grub_script_yyerror): Likewise.
20893 (grub_script_yylex): Likewise.
20894 (grub_script_lexer_init): Return the state.
20895
20896 * normal/lexer.c (grub_script_lexer_state): Removed variable.
20897 (grub_script_lexer_done): Likewise.
20898 (grub_script_lexer_getline): Likewise.
20899 (grub_script_lexer_refs): Likewise.
20900 (script): Likewise.
20901 (newscript): Likewise.
20902 (record): Likewise.
20903 (recording): Likewise.
20904 (recordpos): Likewise.
20905 (recordlen): Likewise.
20906 (grub_script_lexer_init): Return the state instead of setting
20907 global variables.
20908 (grub_script_lexer_ref): Use the newly added argument for state
20909 instead of globals.
20910 (grub_script_lexer_deref): Likewise.
20911 (grub_script_lexer_record_start): Likewise.
20912 (grub_script_lexer_record_stop): Likewise.
20913 (recordchar): Likewise.
20914 (nextchar): Likewise.
20915 (grub_script_yylex2): Likewise.
20916 (grub_script_yylex): Likewise.
20917 (grub_script_yyerror): Likewise.
20918
20919 * normal/parser.y (func_mem): Removed variable.
20920 (menu_entry): Likewise.
20921 (err): Likewise.
20922 (%lex-param): New parser option.
20923 (%parse-param): Likewise.
20924 (script): Always return the AST.
20925 (argument): Pass the state around.
20926 (arguments): Likewise.
20927 (grubcmd): Likewise.
20928 (commands): Likewise.
20929 (function): Likewise.
20930 (menuentry): Likewise.
20931 (if_statement): Likewise.
20932 (if): Likewise.
20933
20934 * normal/script.c (grub_script_memused): Removed variable.
20935 (grub_script_parsed): Likewise.
20936 (grub_script_malloc): Added a state argument. Use that instead of
20937 global variables.
20938 (grub_script_mem_record): Likewise.
20939 (grub_script_mem_record_stop): Likewise.
20940 (grub_script_arg_add): Likewise.
20941 (grub_script_add_arglist): Likewise.
20942 (grub_script_create_cmdline): Likewise.
20943 (grub_script_create_cmdif): Likewise.
20944 (grub_script_create_cmdmenu): Likewise.
20945 (grub_script_add_cmd): Likewise.
20946 (grub_script_parse): Setup the state before calling the parser.
20947
20948 2006-04-16 Marco Gerards <marco@gnu.org>
20949
20950 * normal/command.c (grub_command_init): Remove the title command.
20951
20952 * normal/lexer.c (grub_script_yylex): Renamed from this...
20953 (grub_script_yylex2): ... to this.
20954 (grub_script_yylex): New function. Temporary
20955 introduced to filter some tokens.
20956 (grub_script_yyerror): Print a newline.
20957
20958 * normal/main.c (read_config_file): Output information about the
20959 lines that contain errors. Wait for a key after all lines have
20960 been processed. Don't return an empty menu.
20961
20962 * normal/parser.y (func_mem): Don't initialize.
20963 (menu_entry): Likewise.
20964 (err): New variable.
20965 (script): Don't return anything when an error was encountered.
20966 (ws, returns): Removed rules.
20967 (argument): Disabled concatenated variable support.
20968 (arguments): Remove explicit separators.
20969 (grubcmd): Likewise.
20970 (function): Likewise.
20971 (menuentry): Likewise.
20972 (if): Likewise.
20973 (commands): Likewise. Add error handling.
20974
20975 * normal/script.c (grub_script_create_cmdline): If
20976 `grub_script_parsed' is 0, assume the parser encountered an error.
20977
20978 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
20979
20980 * configure.ac: Add support for EFI. Fix the typo
20981 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
20982
20983 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
20984
20985 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
20986 foreign multibyte characters should be shown correctly.
20987
20988 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
20989
20990 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
20991 calculation.
20992 (read_config_file): Made it to close file before returning.
20993
20994 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
20995
20996 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
20997 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
20998 video/i386/pc/vbefill.c.
20999
21000 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
21001 video/i386/pc/vbefill.c.
21002
21003 * include/grub/video.h (grub_video_blit_format): New enum.
21004 (grub_video_mode_info): Added new member blit_format.
21005 (grub_video_get_blit_format): New function prototype.
21006
21007 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
21008 function prototype.
21009 (grub_video_vbe_map_rgb): Likewise.
21010 (grub_video_vbe_unmap_color): Likewise.
21011
21012 * include/grub/i386/pc/vbeblit.h: New file.
21013
21014 * include/grub/i386/pc/vbefill.h: New file.
21015
21016 * video/video.c (grub_video_get_blit_format): New function.
21017 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
21018 (grub_video_vbe_map_rgb): Likewise.
21019 (grub_video_vbe_unmap_color): Likewise.
21020
21021 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
21022 optimized fills.
21023 (grub_video_vbe_blit_render_target): Changed to use more optimized
21024 blits.
21025 (grub_video_vbe_setup): Added detection for optimized settings.
21026 (grub_video_vbe_create_render_target): Likewise.
21027
21028 * video/i386/pc/vbeblit.c: New file.
21029
21030 * video/i386/pc/vbefill.c: New file.
21031
21032 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
21033
21034 * font/manager.c (grub_font_get_glyph): Removed font fixup from
21035 here...
21036
21037 * util/unifont2pff.rb: ... and moved it to here. Improved argument
21038 parsing to support both hex and dec ranges. If filename was missing
21039 show usage information.
21040
21041 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
21042
21043 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
21044 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
21045
21046 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
21047 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
21048 (video_mod_SOURCES): Added.
21049 (video_mod_CFLAGS): Likewise.
21050 (video_mod_LDFLAGS): Likewise.
21051 (gfxterm_mod_SOURCES): Likewise.
21052 (gfxterm_mod_CFLAGS): Likewise.
21053 (gfxterm_mod_LDFLAGS): Likewise.
21054 (videotest_mod_SOURCES): Likewise.
21055 (videotest_mod_CFLAGS): Likewise.
21056 (videotest_mod_LDFLAGS): Likewise.
21057 (vesafb_mod_SOURCES): Removed.
21058 (vesafb_mod_CFLAGS): Likewise.
21059 (vesafb_mod_LDFLAGS): Likewise.
21060 (vga_mod_SOURCES): Likewise.
21061 (vga_mod_CFLAGS): Likewise.
21062 (vga_mod_LDFLAGS): Likewise.
21063
21064 * commands/videotest.c: New file.
21065
21066 * font/manager.c (fill_with_default_glyph): Modified to use
21067 grub_font_glyph.
21068 (grub_font_get_glyph): Likewise.
21069 (fontmanager): Renamed from this...
21070 (font_manager): ... to this.
21071
21072 * include/grub/font.h (grub_font_glyph): Added new structure.
21073 (grub_font_get_glyph): Modified to use grub_font_glyph.
21074
21075 * include/grub/misc.h (grub_abs): Added as inline function.
21076
21077 * include/grub/video.h: New file.
21078
21079 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
21080 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
21081 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
21082 (grub_vbe_get_controller_info): Renamed from this...
21083 (grub_vbe_bios_get_controller_info): ... to this.
21084 (grub_vbe_get_mode_info): Renamed from this...
21085 (grub_vbe_bios_get_mode_info): ... to this.
21086 (grub_vbe_set_mode): Renamed from this...
21087 (grub_vbe_bios_set_mode): ... to this.
21088 (grub_vbe_get_mode): Renamed from this...
21089 (grub_vbe_bios_get_mode): ... to this.
21090 (grub_vbe_set_memory_window): Renamed from this...
21091 (grub_vbe_bios_set_memory_window): ... to this.
21092 (grub_vbe_get_memory_window): Renamed from this...
21093 (grub_vbe_bios_get_memory_window): ... to this.
21094 (grub_vbe_set_scanline_length): Renamed from this...
21095 (grub_vbe_set_scanline_length): ... to this.
21096 (grub_vbe_get_scanline_length): Renamed from this...
21097 (grub_vbe_bios_get_scanline_length): ... to this.
21098 (grub_vbe_set_display_start): Renamed from this...
21099 (grub_vbe_bios_set_display_start): ... to this.
21100 (grub_vbe_get_display_start): Renamed from this...
21101 (grub_vbe_bios_get_display_start): ... to this.
21102 (grub_vbe_set_palette_data): Renamed from this...
21103 (grub_vbe_bios_set_palette_data): ... to this.
21104 (grub_vbe_set_pixel_rgb): Removed.
21105 (grub_vbe_set_pixel_index): Likewise.
21106
21107 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
21108 from this...
21109 (grub_vbe_bios_get_controller_info): ... to this.
21110 (grub_vbe_get_mode_info): Renamed from this...
21111 (grub_vbe_bios_get_mode_info): ... to this.
21112 (grub_vbe_set_mode): Renamed from this...
21113 (grub_vbe_bios_set_mode): ... to this.
21114 (grub_vbe_get_mode): Renamed from this...
21115 (grub_vbe_bios_get_mode): ... to this.
21116 (grub_vbe_set_memory_window): Renamed from this...
21117 (grub_vbe_bios_set_memory_window): ... to this.
21118 (grub_vbe_get_memory_window): Renamed from this...
21119 (grub_vbe_bios_get_memory_window): ... to this.
21120 (grub_vbe_set_scanline_length): Renamed from this...
21121 (grub_vbe_set_scanline_length): ... to this.
21122 (grub_vbe_get_scanline_length): Renamed from this...
21123 (grub_vbe_bios_get_scanline_length): ... to this.
21124 (grub_vbe_set_display_start): Renamed from this...
21125 (grub_vbe_bios_set_display_start): ... to this.
21126 (grub_vbe_get_display_start): Renamed from this...
21127 (grub_vbe_bios_get_display_start): ... to this.
21128 (grub_vbe_set_palette_data): Renamed from this...
21129 (grub_vbe_bios_set_palette_data): ... to this.
21130 (grub_vbe_bios_get_controller_info): Fixed problem with registers
21131 getting corrupted after calling it. Added more pushes and pops.
21132 (grub_vbe_bios_set_mode): Likewise.
21133 (grub_vbe_bios_get_mode): Likewise.
21134 (grub_vbe_bios_get_memory_window): Likewise.
21135 (grub_vbe_bios_set_scanline_length): Likewise.
21136 (grub_vbe_bios_get_scanline_length): Likewise.
21137 (grub_vbe_bios_get_display_start): Likewise.
21138 (grub_vbe_bios_set_palette_data): Likewise.
21139
21140 * normal/cmdline.c (cl_set_pos): Refresh the screen.
21141 (cl_insert): Likewise.
21142 (cl_delete): Likewise.
21143
21144 * term/gfxterm.c: New file.
21145
21146 * term/i386/pc/vesafb.c: Removed file.
21147
21148 * video/video.c: New file.
21149
21150 * video/i386/pc/vbe.c (real2pm): Added new function.
21151 (grub_video_vbe_draw_pixel): Likewise.
21152 (grub_video_vbe_get_video_ptr): Likewise.
21153 (grub_video_vbe_get_pixel): Likewise
21154 (grub_video_vbe_init): Likewise.
21155 (grub_video_vbe_fini): Likewise.
21156 (grub_video_vbe_setup): Likewise.
21157 (grub_video_vbe_get_info): Likewise.
21158 (grub_video_vbe_set_palette): Likewise.
21159 (grub_video_vbe_get_palette): Likewise.
21160 (grub_video_vbe_set_viewport): Likewise.
21161 (grub_video_vbe_get_viewport): Likewise.
21162 (grub_video_vbe_map_color): Likewise.
21163 (grub_video_vbe_map_rgb): Likewise.
21164 (grub_video_vbe_map_rgba): Likewise.
21165 (grub_video_vbe_unmap_color): Likewise.
21166 (grub_video_vbe_fill_rect): Likewise.
21167 (grub_video_vbe_blit_glyph): Likewise.
21168 (grub_video_vbe_blit_bitmap): Likewise.
21169 (grub_video_vbe_blit_render_target): Likewise.
21170 (grub_video_vbe_scroll): Likewise.
21171 (grub_video_vbe_swap_buffers): Likewise.
21172 (grub_video_vbe_create_render_target): Likewise.
21173 (grub_video_vbe_delete_render_target): Likewise.
21174 (grub_video_vbe_set_active_render_target): Likewise.
21175 (grub_vbe_set_pixel_rgb): Remove function.
21176 (grub_vbe_set_pixel_index): Likewise.
21177 (index_color_mode): Remove static variable.
21178 (active_mode): Likewise.
21179 (framebuffer): Likewise.
21180 (bytes_per_scan_line): Likewise.
21181 (grub_video_vbe_adapter): Added new static variable.
21182 (framebuffer): Likewise.
21183 (render_target): Likewise.
21184 (initial_mode): Likewise.
21185 (mode_in_use): Likewise.
21186 (mode_list): Likewise.
21187
21188 2006-03-10 Marco Gerards <marco@gnu.org>
21189
21190 * configure.ac (AC_INIT): Bumped to 1.93.
21191
21192 * DISTLIST: Added `include/grub/hfs.h'.
21193
21194 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
21195
21196 * boot/i386/pc/boot.S (general_error): Before looping, try INT
21197 18H, which might help the BIOS falling back to next boot media.
21198
21199 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
21200
21201 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
21202 Poe Chen <poe.poechen@gmail.com>.
21203
21204 2006-01-17 Marco Gerards <marco@gnu.org>
21205
21206 * include/grub/normal.h: Include <grub/script.h>.
21207 (grub_command_list): Removed struct.
21208 (grub_command_list_t): Removed type.
21209 (grub_menu_entry): Remove members `num' and `command_list'. Add
21210 members `commands' and `sourcecode'.
21211 * include/grub/script.h: Add inclusion guards.
21212 (grub_script_cmd_menuentry): New struct.
21213 (grub_script_execute_menuentry): New prototype.
21214 (grub_script_lexer_record_start): Likewise.
21215 (grub_script_lexer_record_stop): Likewise.
21216 * normal/execute.c (grub_script_execute_menuentry): New function.
21217 * normal/lexer.c (record, recording, recordpos, recordlen): New
21218 variables.
21219 (grub_script_lexer_record_start): New function.
21220 (grub_script_lexer_record_stop): Likewise.
21221 (recordchar): Likewise.
21222 (nextchar): Likewise.
21223 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
21224 2048 as the buffer size. Add the tokens `menuentry' and `@'.
21225 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
21226 (current_menu): New variable.
21227 (free_menu): Mainly rewritten.
21228 (grub_normal_menu_addentry): New function.
21229 (read_config_file): Rewritten.
21230 * normal/menu.c (run_menu_entry): Mainly rewritten.
21231 * normal/menu_entry.c (make_screen): Rewritten the code to insert
21232 the menu entry.
21233 (run): Mainly rewritten.
21234 * normal/parser.y (menu_entry): New variable.
21235 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
21236 (menuentry): New rule.
21237 (command): Add `menuentry'.
21238 (if_statement): Allow additional returns before `fi'.
21239 * normal/script.c (grub_script_create_cmdmenu): New function.
21240
21241 2006-01-03 Marco Gerards <marco@gnu.org>
21242
21243 * INSTALL: GNU Bison is required.
21244 * configure.ac: Rewritten the test to detect Bison.
21245 * Makefile.in (YACC): New variable. Reported by Xun Sun
21246 <xun.sun.cn@gmail.com>.
21247
21248 2006-01-03 Marco Gerards <marco@gnu.org>
21249
21250 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
21251 the HFS+ filesystem to filesystem blocks.
21252 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
21253 GCC warning is silenced.
21254
21255 2006-01-03 Marco Gerards <marco@gnu.org>
21256
21257 * partmap/apple.c (apple_partition_map_iterate): Convert the data
21258 read from disk from big endian to host byte order.
21259
21260 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
21261
21262 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
21263 documentation.
21264 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
21265 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
21266 embedded HFS+ filesystem.
21267 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
21268 (grub_hfs_sblock): Move from here...
21269 * include/grub/hfs.h: To here... New file.
21270 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
21271 documentation.
21272 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
21273 New macros.
21274 (grub_hfsplus_volheader): Change type of member `magic' to
21275 `grub_uint16_t'.
21276 (grub_hfsplus_data): Add new member `embedded_offset'.
21277 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
21278 returned block.
21279 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
21280 Calculate the offset.
21281
21282 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
21283
21284 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
21285 Removed.
21286 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
21287
21288 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
21289
21290 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
21291 ENV->NAME is NULL after allocating ENV->VALUE.
21292
21293 2005-12-25 Marco Gerards <marco@gnu.org>
21294
21295 * kern/env.c (grub_env_set): Rewritten the error handling code.
21296
21297 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
21298
21299 * geninit.sh: Made more robust, and more portable.
21300
21301 2005-12-25 Marco Gerards <marco@gnu.org>
21302
21303 Add support for Apple HFS+ filesystems.
21304
21305 * fs/hfsplus.c: New file.
21306
21307 * DISTLIST: Added `fs/hfsplus.c'.
21308
21309 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
21310 (hfsplus_mod_SOURCES): New variable.
21311 (hfsplus_mod_CFLAGS): Likewise.
21312 (hfsplus_mod_LDFLAGS): Likewise.
21313 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
21314 (grub_setup_SOURCES): Likewise.
21315 (grub_mkdevicemap_SOURCES): Likewise.
21316 (grub_emu_SOURCES): Likewise.
21317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21318
21319 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
21320
21321 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
21322
21323 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
21324
21325 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
21326 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
21327 include/grub/parser.h, include/grub/script.h, kern/parser.c,
21328 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
21329 normal/lexer.c, normal/parser.y, normal/script.c, and
21330 partmap/gpt.c.
21331 Removed kern/sparc64/cache.c.
21332
21333 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
21334 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
21335 grub_emu_init.c.
21336
21337 * configure.ac (AC_INIT): Bumped to 1.92.
21338
21339 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
21340
21341 * kern/err.c (grub_error_push): Added new function to support error
21342 stacks.
21343 (grub_error_pop): Likewise.
21344 (grub_error_stack_items): New local variable to support error stacks.
21345 (grub_error_stack_pos): Likewise.
21346 (grub_error_stack_assert): Likewise.
21347 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
21348 stack depth.
21349 (grub_print_error): Added support to print errors from error stack.
21350
21351 * include/grub/err.h (grub_error_push): Added function prototype.
21352 (grub_error_pop): Likewise.
21353
21354 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
21355
21356 * configure.ac: Accept `powerpc64' as host_cpu.
21357 (amd64): Rename to `biarch32'.
21358
21359 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
21360 non-cacheline-aligned addresses.
21361
21362 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
21363 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
21364 if `size' is non-zero.
21365
21366 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
21367
21368 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
21369 and `cd' to make sure the filename is not prefixed with a
21370 directory name.
21371 (pkgdata_MODULES): Add `gpt.mod'.
21372 (gpt_mod_SOURCES): New variable.
21373 (gpt_mod_CFLAGS): Likewise.
21374 (gpt_mod_LDFLAGS): Likewise.
21375
21376 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
21377
21378 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
21379 New macro.
21380
21381 * partmap/gpt.c: New file.
21382
21383 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
21384 GPT partition map is detected.
21385
21386 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
21387
21388 * commands/i386/pc/play.c: New file.
21389 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
21390 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
21391 macros.
21392
21393 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
21394
21395 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
21396 ((unused))' to silence gcc warning.
21397
21398 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
21399
21400 * configure.ac: Correct `AC_PROG_YACC' test.
21401
21402 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
21403
21404 * util/powerpc/ieee1275/grub-install.in: Run the mount point
21405 check before installing files.
21406
21407 2005-11-22 Mike Small <smallm@panix.com>
21408
21409 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
21410 number regex so multidigit numbers are recognized correctly.
21411
21412 2005-11-22 Mike Small <smallm@panix.com>
21413
21414 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
21415 debugging message before attempting to claim memory.
21416 (grub_rescue_cmd_initrd): Add a claim debugging message and try
21417 multiple addresses in case of failure.
21418
21419 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
21420
21421 * term/tparm.c (get_space): Remove empty `if' statement.
21422
21423 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
21424
21425 * kern/parser.c (check_varstate): Rename `state' to 's'.
21426
21427 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
21428
21429 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
21430 variable definitions to the beginning of each function. Sort stack
21431 variables by size.
21432 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
21433 `buf' argument to `char *'.
21434
21435 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
21436
21437 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
21438 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
21439 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
21440 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
21441 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
21442 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
21443 configfile.mod, search.mod, gzio.mod and test.mod.
21444 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
21445 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
21446 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
21447 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
21448 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
21449 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
21450 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
21451 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
21452 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
21453 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
21454 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
21455 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
21456 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
21457 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
21458 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
21459 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
21460 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
21461 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
21462 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
21463 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
21464 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
21465 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
21466 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
21467
21468 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
21469 `grep --include'.
21470 (pkgdata_MODULES): Add test.mod.
21471
21472 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
21473
21474 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
21475 appending to variables with "+=".
21476 (PModule): Use full pathname to generate *.lst filenames.
21477
21478 * Makefile.in: Fixed list rules moved from genmk.rb.
21479 (.DELETE_ON_ERROR): New special target.
21480 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
21481
21482 * conf/i386-pc.rmk: Include conf/common.mk.
21483 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
21484 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
21485 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
21486 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
21487 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
21488 configfile.mod, search.mod, gzio.mod and test.mod.
21489 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
21490 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
21491 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
21492 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
21493 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
21494 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
21495 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
21496 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
21497 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
21498 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
21499 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
21500 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
21501 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
21502 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
21503 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
21504 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
21505 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
21506 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
21507 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
21508 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
21509 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
21510 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
21511 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
21512 here...
21513 * conf/common.rmk: ... to here. New file.
21514
21515 * conf/common.mk: New file.
21516
21517 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
21518
21519 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
21520 (grub_script.tab.c): ... here.
21521
21522 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
21523 (grub_script.tab.c): ... here.
21524
21525 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
21526 (grub_script.tab.c): ... here.
21527
21528 * normal/command.c (grub_command_find): Fixed a memory leak of
21529 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
21530
21531 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
21532
21533 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
21534 "@" which marks the start of a comment on ARM.
21535 (VARIABLE): Likewise.
21536
21537 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
21538
21539 Add support for Linux/ADFS partition tables.
21540
21541 * partmap/acorn.c: New file.
21542
21543 * include/grub/acorn_filecore.h: Likewise.
21544
21545 * DISTLIST: Added `partmap/acorn.c' and
21546 `include/grub/acorn_filecore.h'.
21547
21548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
21549 `partmap/acorn.c'.
21550 (pkgdata_MODULES): Add `acorn.mod'.
21551 (acorn_mod_SOURCES): New variable.
21552 (acorn_mod_CFLAGS): Likewise.
21553
21554 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
21555 `partmap/acorn.c'.
21556 (pkgdata_MODULES): Add `acorn.mod'.
21557 (acorn_mod_SOURCES): New variable.
21558 (acorn_mod_CFLAGS): Likewise.
21559
21560 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
21561 (pkgdata_MODULES): Add `acorn.mod'.
21562 (acorn_mod_SOURCES): New variable.
21563 (acorn_mod_CFLAGS): Likewise.
21564 (acorn_mod_LDFLAGS): Likewise.
21565
21566 * include/types.h (grub_disk_addr_t): New typedef.
21567
21568 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
21569
21570 * geninit.sh: New file.
21571
21572 * geninitheader.sh: Likewise.
21573
21574 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
21575 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
21576 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
21577 * commands/configfile.c (grub_configfile_init)
21578 (grub_configfile_fini): Likewise.
21579 * commands/default.c (grub_default_init, grub_default_fini):
21580 Likewise.
21581 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
21582 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
21583 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
21584 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
21585 Likewise.
21586 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
21587 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
21588 Likewise.
21589 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
21590 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
21591 Likewise.
21592 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
21593 Likewise.
21594 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
21595 Likewise.
21596 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
21597 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
21598 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
21599 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
21600 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
21601 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
21602 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
21603 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
21604 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
21605 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
21606 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
21607 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
21608 * partmap/amiga.c (grub_amiga_partition_map_init)
21609 (grub_amiga_partition_map_fini): Likewise.
21610 * partmap/apple.c (grub_apple_partition_map_init)
21611 (grub_apple_partition_map_fini): Likewise.
21612 * partmap/pc.c (grub_pc_partition_map_init)
21613 (grub_pc_partition_map_fini): Likewise.
21614 * partmap/sun.c (grub_sun_partition_map_init,
21615 grub_sun_partition_map_fini): Likewise.
21616 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
21617 Likewise.
21618
21619 * util/grub-emu.c: Include <grub_modules_init.h>.
21620 (main): Don't initialize and de-initialize any modules directly,
21621 use `grub_init_all' and `grub_fini_all' instead.
21622
21623 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
21624 `grub_vesafb_mod_init'.
21625 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
21626 all users.
21627 * term/i386/pc/vga.c (grub_vga_init): Renamed to
21628 `grub_vga_mod_init'. Updated all users.
21629 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
21630
21631 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
21632 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
21633 rules.
21634
21635 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
21636 Generate a function to initialize the module in utilities.
21637 Updated all callers.
21638 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
21639 initialize the module in utilities. Updated all callers.
21640
21641 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
21642
21643 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
21644 escape sequence and a literal ^L to clear the screen.
21645
21646 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
21647 when returning from Open Firmware.
21648
21649 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
21650
21651 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
21652 (grub_ofconsole_height): Likewise.
21653 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
21654 manually insert a '\n'.
21655 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
21656 `grub_ofconsole_height'. Return early if these are already set.
21657
21658 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
21659
21660 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
21661 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
21662 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
21663 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
21664 and `normal/script.c'.
21665 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
21666 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
21667 (test_mod_SOURCES): New variable.
21668 (test_mod_CFLAGS): Likewise.
21669 (test_mod_LDFLAGS): Likewise.
21670 (pkgdata_MODULES): Add `test.mod'.
21671 (grub_script.tab.c): New rule.
21672 (grub_script.tab.h): Likewise.
21673
21674 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
21675
21676 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
21677 `commands/test.c', `normal/execute.c', `normal/lexer.c',
21678 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
21679 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
21680 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
21681 (test_mod_SOURCES): New variable.
21682 (test_mod_CFLAGS): Likewise.
21683 (pkgdata_MODULES): Add `test.mod'.
21684 (grub_script.tab.c): New rule.
21685 (grub_script.tab.h): Likewise.
21686
21687 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
21688
21689 Add initial scripting support.
21690
21691 * commands/test.c: New file.
21692 * include/grub/script.h: Likewise.
21693 * normal/execute.c: Likewise.
21694 * normal/function.c: Likewise.
21695 * normal/lexer.c: Likewise.
21696 * normal/parser.y: Likewise.
21697 * normal/script.c: Likewise.
21698
21699 * configure.ac: Add `AC_PROG_YACC' test.
21700
21701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
21702 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
21703 `normal/function.c' and `normal/script.c'.
21704 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
21705 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
21706 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
21707 variables.
21708 (pkgdata_MODULES): Add `test.mod'.
21709 (grub_script.tab.c): New rule.
21710 (grub_script.tab.h): Likewise.
21711
21712 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
21713
21714 * include/grub/normal.h (grub_test_init): New prototype.
21715 (grub_test_fini): Likewise.
21716
21717 * normal/command.c: Include <grub/script.h>.
21718 (grub_command_execute): Rewritten.
21719
21720 * util/grub-emu.c (main): Call `grub_test_init' and
21721 `grub_test_fini'.
21722
21723 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
21724
21725 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
21726 to 0.
21727 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
21728 there are no pending characters.
21729
21730 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
21731
21732 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
21733 `grub_strndup' to drop device arguments. Replace unnecessary
21734 `grub_strndup' with `grub_strdup'.
21735
21736 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
21737
21738 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
21739 `debug' environment variable has been set.
21740
21741 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
21742
21743 * Makefile.in (install-local): Use $(DATA).
21744 (uninstall): Likewise.
21745 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
21746 (sbin_UTILITIES): ... to here.
21747 (sbin_SCRIPTS): New variable.
21748 (grub_install_SOURCES): New variable.
21749 * util/powerpc/ieee1275/grub-install.in: New file.
21750 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
21751 variable.
21752 (add_segments): Call `grub_util_get_path'.
21753
21754 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21755
21756 From Timothy Baldwin:
21757 * commands/ls.c (grub_ls_list_files): Close FILE with
21758 grub_file_close.
21759 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
21760
21761 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
21762
21763 * include/grub/parser.h: New file.
21764
21765 * kern/parser.c: Likewise.
21766
21767 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
21768 (grub_setup_SOURCES): Likewise.
21769 (grub_probefs_SOURCES): Likewise.
21770 (grub_emu_SOURCES): Likewise.
21771 (kernel_img_HEADERS): Add `parser.h'.
21772
21773 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
21774 (grub_emu_SOURCES): Add `kern/parser.c'.
21775 (grubof_SOURCES): Likewise.
21776
21777 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
21778 (grubof_SOURCES): Add `kern/parser.c'.
21779
21780 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
21781
21782 * kern/misc.c (grub_split_cmdline): Removed function.
21783
21784 * kern/rescue.c: Include <grub/parser.h>.
21785 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
21786 of `grub_split_cmdline'.
21787
21788 * normal/command.c: Include <grub/parser.h>.
21789 (grub_command_execute): Use `grub_parser_split_cmdline' instead
21790 of `grub_split_cmdline'.
21791
21792 * normal/completion.c: Include <grub/parser.h>.
21793 (cmdline_state): New variable.
21794 (iterate_dir): End the filename with a quote depending on the
21795 command line state.
21796 (get_state): new function.
21797 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
21798 split the arguments and determine the current argument. When the
21799 argument string is not quoted, escape all spaces.
21800
21801 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
21802
21803 * normal/sparc64/setjmp.S: New file.
21804
21805 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
21806
21807 * include/grub/sparc64/libgcc.h: New file.
21808 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
21809 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
21810 normal/sparc64/setjmp.c.
21811
21812 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
21813
21814 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
21815 * kern/sparc64/cache.S: New file.
21816 * kern/sparc64/cache.c: Removed.
21817 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
21818 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
21819 -mtune=ultrasparc.
21820 (COMMON_LDFLAGS): Add -melf64_sparc.
21821 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
21822 (grubof_SOURCES): Use cache.S instead of cache.c.
21823 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
21824 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
21825 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
21826 commented though.
21827 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
21828 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
21829 (linux_mod_CFLAGS): Commented out.
21830 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
21831 out because module isn't built.
21832 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
21833 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
21834 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
21835 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
21836 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
21837 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
21838 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
21839 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
21840 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
21841 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
21842 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
21843 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
21844 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
21845 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
21846
21847 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
21848
21849 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
21850 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
21851 longer, because HFS should not be used on PC.
21852
21853 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
21854
21855 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
21856 consistently within the loop.
21857
21858 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
21859
21860 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
21861 directory can not be read.
21862
21863 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21864
21865 * configure.ac (AC_INIT): Increase the version number to 1.91.
21866
21867 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
21868 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
21869 term/i386/pc/serial.c.
21870
21871 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21872
21873 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
21874 file size must be permitted.
21875
21876 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
21877 between %ah and %al.
21878
21879 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21880
21881 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
21882 grub_uint64_t.
21883 Call the hook with a NUL-terminated filename.
21884 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
21885 grub_cpu_to_be32.
21886
21887 * kern/term.c (cursor_state): New variable.
21888 (grub_term_set_current): Reset the cursor state on a new
21889 terminal.
21890 (grub_setcursor): Rewritten to use CURSOR_STATE.
21891 (grub_getcursor): New function.
21892
21893 * include/grub/term.h (grub_getcursor): New prototype.
21894
21895 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
21896 integers on ARM. Reported by Timothy Baldwin
21897 <T.E.Baldwin99@members.leeds.ac.uk>.
21898
21899 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
21900
21901 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
21902 allocated.
21903 (grub_sfs_dir): Likewise.
21904
21905 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
21906
21907 Add support for the SFS filesystem.
21908
21909 * fs/sfs.c: New file.
21910
21911 * DISTLIST: Added `fs/sfs.c'.
21912
21913 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
21914 (grub_probefs_SOURCES): Likewise.
21915 (grub_emu_SOURCES): Likewise.
21916 (pkgdata_MODULES): Add `sfs.mod'.
21917 (sfs_mod_SOURCES): New variable.
21918 (sfs_mod_CFLAGS): Likewise.
21919 (sfs_mod_LDFLAGS): Likewise.
21920
21921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
21922 (pkgdata_MODULES): Add `sfs.mod'.
21923 (sfs_mod_SOURCES): New variable.
21924 (sfs_mod_CFLAGS): Likewise.
21925
21926 * util/grub-emu.c (main): Call `grub_sfs_init' and
21927 `grub_sfs_fini'.
21928
21929 * include/grub/fs.h (grub_sfs_init): New prototype.
21930 (grub_sfs_fini): Likewise.
21931
21932 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
21933
21934 Add support for the AFFS filesystem.
21935
21936 * fs/affs.c: New file.
21937
21938 * DISTLIST: Added `fs/affs.c'.
21939
21940 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
21941 (grub_probefs_SOURCES): Likewise.
21942 (grub_emu_SOURCES): Likewise.
21943 (pkgdata_MODULES): Add `affs.mod'.
21944 (affs_mod_SOURCES): New variable.
21945 (affs_mod_CFLAGS): Likewise.
21946 (affs_mod_LDFLAGS): Likewise.
21947
21948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
21949 (pkgdata_MODULES): Add `affs.mod'.
21950 (affs_mod_SOURCES): New variable.
21951 (affs_mod_CFLAGS): Likewise.
21952
21953 * util/grub-emu.c (main): Call `grub_affs_init' and
21954 `grub_affs_fini'.
21955
21956 * include/grub/fs.h (grub_affs_init): New prototype.
21957 (grub_affs_fini): Likewise.
21958
21959 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
21960
21961 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
21962
21963 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
21964
21965 * configure.ac: Accept `x86_64' as host_cpu. In that case add
21966 `-m32' to CFLAGS.
21967
21968 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
21969 linking.
21970
21971 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
21972 (COMMON_LDFLAGS): New variable.
21973 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
21974 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
21975 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
21976 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
21977 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
21978 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
21979 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
21980 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
21981 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
21982 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
21983 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
21984 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
21985 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
21986 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
21987 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
21988 variables.
21989 (normal_mod_ASFLAGS): Add `-m32'.
21990
21991 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
21992 (grub_host_size_t, grub_host_ssize_t): New types.
21993 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
21994 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
21995 `GRUB_HOST_SIZEOF_VOID_P'.
21996
21997 * include/grub/kernel.h (struct grub_module_header): Type of
21998 member offset changed to `grub_host_off_t'. Type of member size
21999 changed to `grub_host_size_t'.
22000 (struct grub_module_info): Type of member offset changed to
22001 `grub_host_off_t'. Type of member size changed to
22002 `grub_host_size_t'.
22003
22004 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
22005
22006 Make GRUB's kernel compliant to Multiboot Specification.
22007
22008 * kern/i386/pc/startup.S (multiboot_header): New label.
22009 (multiboot_entry): Likewise.
22010 (multiboot_trampoline): Likewise.
22011
22012 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22013 Increased to 0x4A0.
22014
22015 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
22016 put parentheses after a question mark.
22017 [!GRUB_UTIL] (my_mod): New variable.
22018
22019 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
22020
22021 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
22022
22023 Adds support for the XFS filesystem. Btrees are not supported
22024 yet.
22025
22026 * fs/xfs.c: New file.
22027
22028 * DISTLIST: Added `fs/xfs.c'.
22029
22030 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
22031 (grub_probefs_SOURCES): Likewise.
22032 (grub_emu_SOURCES): Likewise.
22033 (pkgdata_MODULES): Add `xfs.mod'.
22034 (xfs_mod_SOURCES): New variable.
22035 (xfs_mod_CFLAGS): Likewise.
22036
22037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
22038 (pkgdata_MODULES): Add `xfs.mod'.
22039 (xfs_mod_SOURCES): New variable.
22040 (xfs_mod_CFLAGS): Likewise.
22041
22042 * util/grub-emu.c (main): Call `grub_xfs_init' and
22043 `grub_xfs_fini'.
22044
22045 * include/grub/fs.h (grub_xfs_init): New prototype.
22046 (grub_xfs_fini): Likewise.
22047
22048
22049 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
22050
22051 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
22052 color modes, allow greater than 16 colors to be configured as
22053 a default palette.
22054
22055 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
22056
22057 * normal/completion.c (complete_arguments): Add the qualifier
22058 const into OPTIONS.
22059
22060 From Omniflux <omniflux+lists@omniflux.com>:
22061 * include/grub/terminfo.h: New file.
22062 * include/grub/tparm.h: Likewise.
22063 * include/grub/i386/pc/serial.h: Likewise.
22064 * term/terminfo.c: Likewise.
22065 * term/tparm.c: Likewise.
22066 * term/i386/pc/serial.c: Likewise.
22067 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
22068 serial.mod.
22069 (terminfo_mod_SOURCES): New variable.
22070 (terminfo_mod_CFLAGS): Likewise.
22071 (serial_mod_SOURCES): Likewise.
22072 (serial_mod_CFLAGS): Likewise.
22073
22074 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
22075
22076 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
22077 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
22078 and kern/powerpc/ieee1275/cmain.c, respectively.
22079
22080 * boot/powerpc/ieee1275/crt0.S: Moved to ...
22081 * kern/powerpc/ieee1275/crt0.S: ... here.
22082
22083 * boot/powerpc/ieee1275/cmain.c: Moved to ...
22084 * kern/powerpc/ieee1275/cmain.c: ... here.
22085
22086 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
22087 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
22088 instead of boot/powerpc/ieee1275/crt0.S and
22089 boot/powerpc/ieee1275/cmain.c, respectively.
22090
22091 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
22092 sectors. It was not used anyway.
22093
22094 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
22095
22096 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
22097 `unused parameter' warning.
22098
22099 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
22100
22101 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
22102 function.
22103 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
22104 getcharwidth.
22105
22106 2005-08-28 Marco Gerards <metgerards@student.han.nl>
22107
22108 * include/grub/normal.h (enum grub_completion_type): Added
22109 `GRUB_COMPLETION_TYPE_ARGUMENT'.
22110
22111 * normal/cmdline.c (print_completion): Handle
22112 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
22113 * normal/menu_entry.c (store_completion): Likewise.
22114
22115 * normal/completion.c (complete_arguments): New function.
22116 (grub_normal_do_completion): Call `complete_arguments' when the
22117 current words start with a dash.
22118
22119 2005-08-27 Marco Gerards <metgerards@student.han.nl>
22120
22121 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
22122 `gzio.mod' instead of `io.mod').
22123
22124 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
22125
22126 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
22127 (DISTDIRS): Added io and video.
22128 Rewrite the search routine to make an output consistently.
22129
22130 * DISTLIST: Added conf/sparc64-ieee1275.mk,
22131 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
22132 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
22133 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
22134 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
22135 util/powerpc/ieee1275/misc.c.
22136
22137 * include/grub/gzio.h: New file.
22138 * io/gzio.c: Likewise.
22139
22140 * kern/file.c (grub_file_close): Call grub_device_close only if
22141 FILE->DEVICE is not NULL.
22142
22143 * include/grub/mm.h [!NULL] (NULL): New macro.
22144
22145 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
22146
22147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
22148 (pkgdata_MODULES): Added gzio.mod.
22149 (gzio_mod_SOURCES): New variable.
22150 (gzio_mod_CFLAGS): Likewise.
22151
22152 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
22153 (pkgdata_MODULES): Added gzio.mod.
22154 (gzio_mod_SOURCES): New variable.
22155 (gzio_mod_CFLAGS): Likewise.
22156
22157 * commands/cat.c: Include grub/gzio.h.
22158 (grub_cmd_cat): Use grub_gzfile_open instead of
22159 grub_file_open.
22160
22161 * commands/cmp.c: Include grub/gzio.h.
22162 (grub_cmd_cmp): Use grub_gzfile_open instead of
22163 grub_file_open.
22164
22165 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
22166 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
22167 grub_file_open.
22168 (grub_rescue_cmd_module): Likewise.
22169
22170 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
22171
22172 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
22173 kern/sparc64/ieee1275/init.c because it contains _start.
22174 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
22175
22176 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
22177
22178 * configure.ac: Add support for sparc64 host with ieee1275
22179 firmware.
22180 * configure: Generated from configure.ac.
22181 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
22182 instead of int.
22183 (grub_ofdisk_read): Likewise.
22184 (grub_ofdisk_open): Use %p to print pointer values, and cast the
22185 pointers as (void *) to remove a warning.
22186 (grub_ofdisk_close): Likewise.
22187 (grub_ofdisk_read): Likewise.
22188 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
22189 returns, so make it return void to remove a warning.
22190 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
22191 Corresponding prototype change.
22192 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
22193 values, and cast the pointers as (void *) to remove a warning.
22194 (grub_mm_dump): Likewise.
22195 * conf/sparc64-ieee1275.mk: New file.
22196 * conf/sparc64-ieee1275.rmk: Likewise.
22197 * include/grub/sparc64/setjmp.h: Likewise.
22198 * include/grub/sparc64/types.h: Likewise.
22199 * include/grub/sparc64/ieee1275/console.h: Likewise.
22200 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
22201 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22202 * include/grub/sparc64/ieee1275/time.h: Likewise.
22203 * kern/sparc64/cache.c: Likewise.
22204 * kern/sparc64/dl.c: Likewise.
22205 * kern/sparc64/ieee1275/init.c: Likewise.
22206 * kern/sparc64/ieee1275/openfw.c: Likewise.
22207
22208 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
22209
22210 * util/console.c (grub_ncurses_putchar): If C is greater than
22211 0x7f, set C to a question mark.
22212 (grub_ncurses_getcharwidth): New function.
22213 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
22214 getcharwidth.
22215
22216 * normal/menu.c (print_entry): Made aware of Unicode. First,
22217 convert TITLE to UCS-4, and predict the cursor position by
22218 grub_getcharwidth.
22219
22220 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
22221 const to SRC.
22222 * kern/misc.c (grub_utf16_to_utf8): Likewise.
22223
22224 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
22225
22226 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
22227 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
22228 grub_strcat.
22229
22230 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
22231 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
22232 grub_strcpy and grub_strlen. Take it into account that a space
22233 character is inserted as a delimiter.
22234
22235 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
22236
22237 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
22238 invalid magic in the error.
22239
22240 * commands/search.c: New file.
22241
22242 * util/grub-emu.c (main): Call grub_search_init and
22243 grub_search_fini.
22244
22245 * kern/rescue.c (grub_rescue_print_disks): Removed.
22246 (grub_rescue_print_devices): New function.
22247 (grub_rescue_cmd_ls): Use grub_device_iterate with
22248 grub_rescue_print_devices instead of grub_disk_dev_iterate with
22249 grub_rescue_print_disks.
22250
22251 * kern/partition.c (grub_partition_iterate): Return the result of
22252 PARTMAP->ITERATE instead of GRUB_ERRNO.
22253
22254 * kern/device.c: Include grub/partition.h.
22255 (grub_device_iterate): New function.
22256
22257 * include/grub/partition.h (grub_partition_iterate): Return int
22258 instead of grub_err_t.
22259
22260 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
22261 prototype.
22262 [GRUB_UTIL] (grub_search_fini): Likewise.
22263
22264 * include/grub/device.h (grub_device_iterate): New prototype.
22265
22266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
22267 commands/search.c.
22268 (pkgdata_MODULES): Added search.mod.
22269 (search_mod_SOURCES): New variable.
22270 (search_mod_CFLAGS): Likewise.
22271
22272 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
22273 (pkgdata_MODULES): Added search.mod.
22274 (search_mod_SOURCES): New variable.
22275 (search_mod_CFLAGS): Likewise.
22276
22277 * commands/ls.c (grub_ls_list_disks): Renamed to ...
22278 (grub_ls_list_devices): ... this, and use grub_device_iterate.
22279 All callers changed.
22280
22281 * DISTLIST: Added commands/search.c.
22282
22283 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
22284
22285 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
22286 conversion.
22287 (grub_getcharwidth): New function.
22288
22289 * kern/misc.c (grub_utf8_to_ucs4): New function.
22290
22291 * include/grub/term.h (struct grub_term): Added a new member
22292 "getcharwidth".
22293 (grub_getcharwidth): New prototype.
22294
22295 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
22296
22297 * term/i386/pc/console.c (map_char): New function. Segregated from
22298 grub_console_putchar.
22299 (grub_console_putchar): Use map_char.
22300 (grub_console_getcharwidth): New function.
22301 (grub_console_term): Specified grub_console_getcharwidth as
22302 getcharwidth.
22303
22304 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
22305 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
22306
22307 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
22308 GRUB_ERRNO.
22309 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
22310 on grub_strtoul completely.
22311 (write_char): Declare local variables in the beginning of the
22312 function.
22313 (grub_vesafb_getcharwidth): New function.
22314 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
22315 getcharwidth.
22316
22317 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
22318
22319 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
22320 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
22321 commands/i386/pc/vbetest.c.
22322
22323 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
22324 call grub_vbe_get_controller_info again, because the returned
22325 information is volatile.
22326 (grub_vbe_set_video_mode): Mostly rewritten.
22327 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
22328 grub_vbe_status_t correctly.
22329 (grub_vbe_get_video_mode_info): Likewise.
22330 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
22331 several if statements.
22332
22333 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
22334 * commands/i386/pc/vbeinfo.c: ... this.
22335
22336 * commands/i386/pc/vbe_test.c: Renamed to ...
22337 * commands/i386/pc/vbetest.c: ... this.
22338
22339 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
22340 ...
22341 (grub_cmd_vbeinfo): ... this. Save video modes before
22342 iterating. Skip a video mode, if it is not available, not enough
22343 information is given or it is monochrome. Show the memory
22344 model. Leave the interpretation of MODEVAR to grub_strtoul
22345 completely.
22346 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
22347 (GRUB_MOD_FINI): Likewise.
22348
22349 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
22350 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
22351 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
22352 duplicated grub_env_get. Leave the interpretation of MODEVAR to
22353 grub_strtoul completely.
22354 (real2pm): Removed.
22355 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
22356 (GRUB_MOD_FINI): Likewise.
22357
22358 * normal/misc.c: Include grub/mm.h.
22359
22360 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
22361 vbe_list_modes with vbetest.mod and vbeinfo.mod.
22362 (vbe_list_modes_mod_SOURCES): Removed.
22363 (vbe_list_modes_mod_CFLAGS): Likewise.
22364 (vbe_test_mod_SOURCES): Likewise.
22365 (vbe_test_mod_CFLAGS): Likewise.
22366 (vbeinfo_mod_SOURCES): New variable.
22367 (vbeinfo_mod_CFLAGS): Likewise.
22368 (vbetest_mod_SOURCES): Likewise.
22369 (vbetest_mod_CFLAGS): Likewise.
22370
22371 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
22372
22373 * normal/misc.c: New file.
22374
22375 * DISTLIST: Added normal/misc.c.
22376
22377 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
22378 DISK to HOOK. Call HOOK with DISK.
22379 * partmap/apple.c (apple_partition_map_iterate): Likewise.
22380 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22381 * partmap/sun.c (sun_partition_map_iterate): Likewise.
22382
22383 * normal/menu_entry.c (struct screen): Added a new member
22384 "completion_shown".
22385 (completion_buffer): New global variable.
22386 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
22387 (store_completion): New function.
22388 (complete): Likewise.
22389 (clear_completions): Likewise.
22390 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
22391 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
22392 a tab, call complete.
22393
22394 * normal/completion.c (disk_dev): Removed.
22395 (print_simple_completion): Likewise.
22396 (print_partition_completion): Likewise.
22397 (print_func): New global variable.
22398 (add_completion): Do not take the arguments WHAT or PRINT any
22399 longer. Added a new argument TYPE. Instead of printing directly,
22400 call PRINT_FUNC if not NULL.
22401 All callers changed.
22402 (complete_device): Use a local variable DEV instead of
22403 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
22404 (grub_normal_do_completion): Take a new argument HOOK. Do not
22405 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
22406 empty string, return NULL instead.
22407 All callers changed.
22408
22409 * normal/cmdline.c (print_completion): New function.
22410
22411 * kern/partition.c (grub_partition_iterate): Add an argument DISK
22412 to HOOK.
22413 All callers changed.
22414
22415 * kern/disk.c (grub_print_partinfo): Removed.
22416
22417 * include/grub/partition.h (struct grub_partition_map): Add a new
22418 argument DISK into HOOK of ITERATE.
22419 (grub_partition_iterate): Add a new argument DISK to HOOK.
22420
22421 * include/grub/normal.h (enum grub_completion_type): New enum.
22422 (grub_completion_type_t): New type.
22423 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
22424 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
22425 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
22426 (GRUB_COMPLETION_TYPE_FILE): Likewise.
22427 (grub_normal_do_completion): Added a new argument HOOK.
22428 (grub_normal_print_device_info): New prototype.
22429
22430 * include/grub/disk.h (grub_print_partinfo): Removed.
22431
22432 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
22433 (normal_mod_SOURCES): Likewise.
22434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22435 (normal_mod_SOURCES): Likewise.
22436
22437 * commands/ls.c (grub_ls_list_disks): Use
22438 grub_normal_print_device_info instead of grub_print_partinfo. Free
22439 PNAME.
22440 (grub_ls_list_files): Use grub_normal_print_device_info instead of
22441 duplicating the code.
22442
22443 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
22444
22445 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
22446 follow GCS more precisely.
22447 * commands/i386/pc/vbe_test.c: Likewise.
22448 * include/grub/i386/pc/vbe.h: Likewise.
22449 * term/i386/pc/vesafb.c: Likewise.
22450 * video/i386/pc/vbe.c: Likewise.
22451
22452 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
22453
22454 * DISTLIST: Added term/i386/pc/vesafb.c
22455 DISTLIST: Added video/i386/pc/vbe.c
22456 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
22457 DISTLIST: Added commands/i386/pc/vbe_test.c.
22458 * commands/i386/pc/vbe_list_modes.c: New file.
22459 * commands/i386/pc/vbe_test.c: Likewise.
22460 * term/i386/pc/vesafb.c: Likewise.
22461 * video/i386/pc/vbe.c: Likewise.
22462 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
22463 (grub_vbe_probe) Added prototype.
22464 (grub_vbe_set_video_mode) Likewise.
22465 (grub_vbe_get_video_mode) Likewise.
22466 (grub_vbe_get_video_mode_info) Likewise.
22467 (grub_vbe_set_pixel_rgb) Likewise.
22468 (grub_vbe_set_pixel_index) Likewise.
22469 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
22470 (pkgdata_MODULES): Added vesafb.mod.
22471 (pkgdata_MODULES): Added vbe_list_modes.mod.
22472 (pkgdata_MODULES): Added vbe_test.mod.
22473 (vbe_mod_SOURCES): Added.
22474 (vbe_mod_CFLAGS): Likewise.
22475 (vesafb_mod_SOURCES): Likewise.
22476 (vesafb_mod_CFLAGS): Likewise.
22477 (vbe_list_modes_mod_SOURCES): Likewise.
22478 (vbe_list_modes_mod_CFLAGS): Likewise.
22479 (vbe_test_mod_SOURCES): Likewise.
22480 (vbe_test_mod_CFLAGS): Likewise.
22481
22482 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
22483
22484 * normal/command.c (grub_command_execute): If INTERACTIVE is
22485 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
22486 CMDLINE. Disable the pager if INTERACTIVE is true.
22487 All callers are changed.
22488
22489 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
22490 before reading a config file.
22491 * normal/main.c (read_config_file): Even if a command is not
22492 found, register it if it is within an entry.
22493
22494 * util/grub-emu.c: Include sys/types.h and unistd.h.
22495 (options): Added --hold.
22496 (struct arguments): Added a new member "hold".
22497 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
22498 missing.
22499 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
22500 cleared by a debugger, if it is not zero.
22501
22502 * include/grub/normal.h (grub_command_execute): Add an argument
22503 INTERACTIVE.
22504
22505 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
22506
22507 * DISTLIST: Added include/grub/i386/pc/vbe.h.
22508
22509 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
22510
22511 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
22512 program with another one, because the old one didn't detect a bug
22513 in gcc-3.4. Always use regparm 2, because the new test is still
22514 not enough for gcc-4.0. Someone must investigate a simple test
22515 case which detects a bug in gcc-4.0.
22516
22517 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
22518
22519 * DISTLIST: Added normal/completion.c.
22520
22521 * normal/completion.c: New file.
22522
22523 * term/i386/pc/console.c (grub_console_getwh): New function.
22524 (grub_console_term): Assign grub_console_getwh to getwh.
22525
22526 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
22527 function is defined in normal/completion.c as
22528 grub_normal_do_completion.
22529 (grub_cmdline_get): Use grub_normal_do_completion instead of
22530 grub_tab_complete.
22531
22532 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
22533 returns non-zero, otherwise return 0.
22534 (grub_partition_iterate): First, probe the partition map. Then,
22535 call ITERATE only for this partition map.
22536
22537 * kern/misc.c (grub_strncmp): Rewritten.
22538
22539 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
22540 returns non-zero. Otherwise return 0.
22541
22542 * include/grub/partition.h (grub_partition_map_iterate): Return
22543 int instead of void.
22544
22545 * include/grub/normal.h (grub_normal_do_completion): New prototype.
22546
22547 * include/grub/misc.h (grub_strncmp): Change the type of N to
22548 grub_size_t.
22549
22550 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
22551 of void.
22552
22553 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
22554 unsigned explicitly before comparing it with I.
22555
22556 * kern/main.c (grub_env_write_root): Add the attribute unused into
22557 VAR.
22558
22559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
22560 normal/completion.c.
22561 (normal_mod_SOURCES): Likewise.
22562 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22563 (normal_mod_SOURCES): Likewise.
22564
22565 * normal/command.c (grub_iterate_commands): If ITERATE returns
22566 non-zero, return one immediately.
22567
22568 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
22569
22570 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
22571 * kern/i386/pc/startup.S: Updated Global Descriptor table's
22572 descriptions.
22573 (grub_vbe_get_controller_info): New function.
22574 (grub_vbe_get_mode_info): Likewise.
22575 (grub_vbe_set_mode): Likewise.
22576 (grub_vbe_get_mode): Likewise.
22577 (grub_vbe_set_memory_window): Likewise.
22578 (grub_vbe_get_memory_window): Likewise.
22579 (grub_vbe_set_scanline_length): Likewise.
22580 (grub_vbe_get_scanline_length): Likewise.
22581 (grub_vbe_set_display_start): Likewise.
22582 (grub_vbe_get_display_start): Likewise.
22583 (grub_vbe_set_palette_data): Likewise.
22584 * include/grub/i386/pc/vbe.h: New file.
22585
22586 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
22587
22588 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
22589 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
22590 * DISTLIST: Likewise.
22591 * kern/ieee1275/of.c: Moved to ...
22592 * kern/ieee1275/ieee1275.c: ... here.
22593
22594 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
22595
22596 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
22597 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
22598 Pass 0 as `end' parameter to grub_strtoul().
22599
22600 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
22601
22602 * include/grub/powerpc/ieee1275/console.h: Do not include
22603 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
22604 ifdef.
22605 (grub_console_cur_color): Remove i386-specific prototype.
22606 (grub_console_real_putchar): Likewise.
22607 (grub_console_checkkey): Likewise.
22608 (grub_console_getkey): Likewise.
22609 (grub_console_getxy): Likewise.
22610 (grub_console_gotoxy): Likewise.
22611 (grub_console_cls): Likewise.
22612 (grub_console_setcursor): Likewise.
22613 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
22614 Include <grub/machine/console.h>.
22615 * term/ieee1275/ofconsole.c: Likewise.
22616
22617 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
22618
22619 * Makefile.in (LIBLZO): New variable.
22620
22621 * configure.ac: Check for LZO version 2.
22622
22623 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
22624 lzo/lzo1x.h instead of lzo1x.h.
22625
22626 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
22627 of -llzo.
22628
22629 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
22630 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
22631
22632 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
22633 copying the data from PARTITION to P.
22634
22635 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
22636
22637 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
22638 negative, unload the module.
22639
22640 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
22641 map is "pc_partition_map" but not "pc".
22642 (usage): Fix the description. The options are --boot-image and
22643 --core-image but not --boot-file or --core-file.
22644 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
22645 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
22646 DEFAULT_DIRECTORY.
22647
22648 * util/i386/pc/grub-install.in: Do not specify --boot-file or
22649 --core-file. Specify INSTALL_DEVICE as an argument.
22650
22651 * util/console.c: Include config.h.
22652 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
22653 [HAVE_NCURSES_H]: Include ncurses.h.
22654 [HAVE_CURSES_H]: Include curses.h.
22655 [!A_NORMAL] (A_NORMAL): Defined as zero.
22656 [!A_STANDOUT] (A_STANDOUT): Likewise.
22657
22658 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
22659 -lncurses.
22660 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
22661
22662 * configure.ac: Check for curses libraries and headers.
22663
22664 * Makefile.in (LIBCURSES): New variable.
22665
22666 * genmk.rb (Script::rule): Set the executable bits.
22667
22668 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
22669 name of the PC partition map is "pc_partition_map" but not "pc".
22670
22671 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
22672
22673 * util/i386/pc/grub-install.in (grub_probefs): New variable.
22674 (modules): Likewise.
22675 (usage): Added descriptions for --modules and --grub-probefs.
22676 Handle --modules and --grub-probefs. Save the arguments in MODULES
22677 and GRUB_PROBEFS, respectively.
22678 Auto-detect a filesystem module against GRUBDIR. If the result is
22679 empty and modules are not specified explicitly, abort the
22680 installation. Add the result to MODULES.
22681
22682 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
22683 disk/powerpc/ieee1275/ofdisk.c,
22684 include/grub/powerpc/ieee1275/init.h and
22685 term/powerpc/ieee1275/ofconsole.c.
22686 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
22687 term/ieee1275/ofconsole.c.
22688
22689 * include/grub/powerpc/ieee1275/console.h: Resurrected.
22690
22691 * COPYING: Upgraded to the latest version. Only the address of the
22692 FSF office has changed.
22693
22694 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
22695
22696 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
22697 kern/ieee1275.c with kern/ieee1275/of.c.
22698
22699 * kern/ieee1275.c: Moved to ...
22700 * kern/ieee1275/of.c: ... here.
22701
22702 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
22703
22704 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
22705 readability.
22706
22707 * config.guess: Updated to the latest version from gnulib.
22708 * config.sub: Likewise.
22709 * install.sh: Likewise.
22710 * mkinstalldirs: Likewise.
22711
22712 * include/grub/console.h: Removed. This file is arch-specific. Do
22713 not put this in include/grub.
22714
22715 * include/grub/i386/pc/console.h: Resurrected.
22716
22717 * util/console.c: Include grub/machine/console.h instead of
22718 grub/console.h.
22719 * util/grub-emu.c: Likewise.
22720
22721 2005-08-04 Marco Gerards <metgerards@student.han.nl>
22722
22723 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
22724 hardcoded value.
22725
22726 From Vincent Pelletier <subdino2004@yahoo.fr>
22727 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
22728 Redefined to use grub_getwh.
22729 (grub_term): New member named getwh.
22730 (grub_getwh): New prototype.
22731 * kern/term.c (grub_getwh): New function.
22732 * term/i386/pc/console.c (grub_console_getwh): New function.
22733 (grub_console_term): New member `getwh'.
22734 * term/i386/pc/vga.c (grub_vga_getwh): New function.
22735 (grub_vga_term): New member `getwh'.
22736 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
22737 grub_ssize_t.
22738 (grub_ofconsole_getw): New function.
22739 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
22740 (grub_ofconsole_term): New field named getwh and new initial
22741 value.
22742
22743 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
22744
22745 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
22746 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
22747 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
22748 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
22749 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
22750 of <grub/machine/ieee1275.h>.
22751 * commands/ieee1275/reboot.c: Likewise.
22752 * boot/powerpc/ieee1275/ieee1275.c: Move ...
22753 * kern/ieee1275.c: ... to here. All users updated. Change all
22754 parameter structs to use new type `grub_ieee1275_cell_t'.
22755 * term/powerpc/ieee1275/ofconsole.c: Move ...
22756 * term/ieee1275/ofconsole.c: ... to here. All users updated.
22757 * disk/powerpc/ieee1275/ofdisk.c: Move ...
22758 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
22759 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
22760 to return int.
22761 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
22762 Remove unused prototypes. All users updated.
22763 * include/grub/powerpc/ieee1275/console.h: Removed.
22764 * include/grub/powerpc/ieee1275/ieee1275.h: Define
22765 `grub_ieee1275_cell_t'.
22766 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
22767 Cast comparisons with -1 to the correct type.
22768 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
22769 type to match `grub_ieee1275_entry_fn'.
22770
22771 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
22772
22773 * DISTLIST: Added util/i386/pc/grub-probefs.c.
22774
22775 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
22776 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
22777 partmap/sun.c.
22778 (grub_probefs_SOURCES): New variable.
22779
22780 * util/i386/pc/grub-probefs.c: New file.
22781
22782 * util/i386/pc/grub-setup.c (main): Call
22783 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
22784 grub_hfs_init and grub_jfs_init to initialize the system. Call
22785 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
22786 grub_pc_partition_map_fini to finish the system.
22787
22788 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
22789
22790 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
22791 function.
22792 (grub_multiboot_load_elf32): Likewise.
22793 (grub_multiboot_is_elf64): Likewise.
22794 (grub_multiboot_load_elf64): Likewise.
22795 (grub_multiboot_load_elf): Likewise.
22796 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
22797 an ELF32 or ELF64 file.
22798 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
22799
22800 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
22801 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
22802 NULL before calling FS->LABEL.
22803 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
22804 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
22805 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
22806 before calling FS->LABEL.
22807
22808 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
22809
22810 * util/i386/pc/grub-install.in (datadir): New variable.
22811 (libdir): Removed.
22812 (pkgdatadir): New variable.
22813 (pkglibdir): Removed.
22814
22815 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
22816
22817 * DISTLIST: Added util/i386/pc/grub-install.in.
22818
22819 * util/i386/pc/grub-install.in: New file.
22820
22821 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
22822 (grub_install_SOURCES): Likewise.
22823
22824 * genmk.rb: Added support for scripts.
22825 (Script): New class.
22826 (scripts): New variable.
22827
22828 * Makefile.in (install-local): Install sbin_SCRIPTS by
22829 INSTALL_SCRIPT.
22830 (uninstall): Remove sbin_SCRIPTS.
22831
22832 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
22833 device, try to get a GRUB device by
22834 grub_util_biosdisk_get_grub_dev.
22835 Free DEST_DEV.
22836
22837 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
22838 description for --device-map.
22839
22840 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
22841
22842 Change the semantics of variable hooks. They now return strings
22843 instead of error values.
22844
22845 * util/i386/pc/grub-setup.c: Include grub/env.h.
22846 (setup): Use grub_device_set_root instead of grub_env_set.
22847
22848 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
22849 grub_env_get instead of grub_device_set_root and
22850 grub_device_get_root, respectively.
22851
22852 * kern/main.c (grub_env_write_root): New function.
22853 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
22854 grub_env_set instead of grub_device_set_root.
22855
22856 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
22857 many variables.
22858 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
22859 rather than calling ENV->WRITE_HOOK afterwards.
22860 (grub_env_get): Return the result of ENV->READ_HOOK rather than
22861 passing a pointer of a pointer.
22862 (grub_register_variable_hook): Change the types of "read_hook" and
22863 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
22864 respectively.
22865 Allocate the default empty string on the heap, because this string
22866 may be freed later.
22867
22868 * kern/device.c: Include grub/env.h.
22869 (grub_device_set_root): Removed.
22870 (grub_device_get_root): Likewise.
22871 (grub_device_open): Use grub_env_get instead of
22872 grub_device_get_root.
22873
22874 * include/grub/env.h (grub_env_read_hook_t): New type.
22875 (grub_env_write_hook_t): Likewise.
22876 (grub_env_var): Change the types of "read_hook" and "write_hook"
22877 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
22878 (grub_register_variable_hook): Likewise.
22879
22880 * include/grub/device.h (grub_device_set_root): Removed.
22881 (grub_device_set_root): Likewise.
22882
22883 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
22884 make sure that DIRNAME terminates with '/', so that
22885 grub_fat_find_dir will fail if PATH is not a directory.
22886
22887 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
22888 from DIRNAME.
22889 Use the qualifier auto for print_files and print_files_long.
22890 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
22891 as a regular file.
22892 Put a newline only if there is no error.
22893 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
22894 used.
22895
22896 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
22897
22898 * kern/partition.c (grub_partition_probe): Initialize PART to
22899 NULL. Otherwise, when no partition map is registered, this returns
22900 a garbage.
22901
22902 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
22903
22904 * partmap/apple.c (apple_partition_map_iterate): Check if POS
22905 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
22906 valid.
22907
22908 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
22909
22910 * commands/ls.c (grub_ls_list_disks): Print the filesystem
22911 information on each device, if it does not have partitions. Print
22912 "Device" instead of "Disk", because this function is not specific
22913 to disk devices.
22914
22915 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
22916 static to ensure that it is put on the memory rather than a
22917 register.
22918
22919 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
22920
22921 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
22922 (grub_cat_init): Likewise.
22923 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
22924 (options): Likewise.
22925 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
22926 (grub_configfile_init): Likewise.
22927 * font/manager.c (GRUB_MOD_INIT): Likewise.
22928 * commands/help.c (GRUB_MOD_INIT): Likewise.
22929 (grub_help_init): Likewise.
22930 * normal/command.c (grub_command_init): Likewise.
22931 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
22932 * disk/loopback.c (grub_loop_init): Likewise.
22933 (GRUB_MOD_INIT): Likewise.
22934 * commands/ls.c (grub_ls_init): Likewise.
22935 (GRUB_MOD_INIT): Likewise.
22936 (options): Likewise.
22937 * commands/boot.c (grub_boot_init): Likewise.
22938 (GRUB_MOD_INIT): Likewise.
22939 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
22940 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
22941 (GRUB_MOD_INIT): Likewise.
22942 * commands/cmp.c (grub_cmp_init): Likewise.
22943 (GRUB_MOD_INIT): Likewise.
22944
22945 * normal/arg.c: Use <> instead of "" to include header files.
22946 (SHORT_ARG_HELP): New macro.
22947 (SHORT_ARG_USAGE): Likewise.
22948 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
22949 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
22950 descriptions.
22951 (find_short): Check if C is 'h' or 'u' explicitly.
22952 (grub_arg_show_help): Use space characters instead of tabs. Treat
22953 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
22954 are shown with --help and --usage only if they are not used for
22955 the command itself.
22956 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
22957 'h' and 'u'.
22958
22959 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
22960 const into "longarg". Change the type of "shortarg" to int.
22961
22962 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
22963
22964 * boot/i386/pc/boot.S (boot_drive_check): New label.
22965
22966 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
22967 macro.
22968
22969 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
22970 which do not pass a boot drive correctly. Copied from GRUB Legacy.
22971
22972 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
22973
22974 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
22975 When turning off Gate A20, skip the check and return immediately,
22976 because this is not fatal usually.
22977
22978 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
22979
22980 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
22981 be 0x7C00 instead of 0x8000.
22982
22983 * boot/i386/pc/pxeboot.S: Rewritten.
22984
22985 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
22986 EXT_C.
22987 (gate_a20_check_state): Read a byte from 0x108000. Invert the
22988 result.
22989
22990 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
22991
22992 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
22993 robustness. This routine now supports a BIOS call and System
22994 Control Port A to modify the gate A20.
22995
22996 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22997 Increased to 0x440.
22998
22999 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
23000
23001 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
23002 device path and resulting ihandle.
23003 (grub_ofdisk_close): dprintf the ihandle being closed.
23004 (grub_ofdisk_read): dprintf function parameters.
23005 * kern/mm.c (grub_mm_init_region): Likewise.
23006 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
23007 (grub_linux_boot): dprintf the Linux entry point, initrd address and
23008 size, and boot arguments.
23009 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
23010 before loading into memory.
23011 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
23012 before loading into memory.
23013
23014 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
23015
23016 * kern/mm.c: Added much documentation.
23017 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
23018 8, set to 5 instead of 8.
23019
23020 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
23021
23022 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
23023
23024 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
23025 (grub_mkdevicemap_SOURCES): New variable.
23026
23027 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
23028 lib/device.c of GRUB Legacy.
23029
23030 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
23031
23032 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
23033 instead of PATH is NULL.
23034
23035 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
23036
23037 * commands/cmp.c (BUFFER_SIZE): New macro.
23038 (grub_cmd_cmp): Close the right file at the right time. Compare
23039 only data just read. Don't report files of different size as
23040 identical. Dynamically allocate buffers. Move variable
23041 declarations at the beginning of function.
23042
23043 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
23044
23045 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
23046 reverse.
23047
23048 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
23049
23050 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
23051 when backspace is pressed at beginning of line.
23052
23053 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
23054
23055 * DISTLIST: Added genfslist.sh.
23056
23057 * normal/main.c (fs_module_list): New variable.
23058 (autoload_fs_module): New function.
23059 (read_fs_list): Likewise.
23060 (grub_normal_execute): Call read_fs_list.
23061
23062 * kern/fs.c (grub_fs_autoload_hook): New variable.
23063 (grub_fs_probe): Added support for auto-loading.
23064
23065 * include/grub/normal.h (struct grub_fs_module_list): New struct.
23066 (grub_fs_module_list_t): New type.
23067
23068 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
23069 (grub_fs_autoload_hook): New prototype.
23070
23071 * genfslist.sh: New file.
23072
23073 * genmk.rb: Added a rule to generate a filesystem list.
23074
23075 2005-06-30 Marco Gerards <metgerards@student.han.nl>
23076
23077 * configure.ac: Fix the test for cross-compiling.
23078
23079 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
23080 define GRUB_UTIL anymore.
23081
23082 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
23083 so this function works on other systems than just big endian.
23084 (load_modules): Likewise.
23085 (add_segments): Likewise.
23086
23087 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
23088
23089 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
23090 contains `l' modifier, get a long from va_arg().
23091
23092 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
23093
23094 * kern/mm.c (grub_free): If the next free block which is being
23095 merged is the first free block, set the first block to the block
23096 being freed.
23097 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
23098
23099 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
23100
23101 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
23102 `grub_ieee1275_chosen'.
23103
23104 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
23105
23106 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
23107 (grub_ieee1275_chosen): New variable.
23108 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
23109 `chosen'.
23110 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
23111 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
23112 Rename first argument to `phandle' for consistency.
23113 (grub_ieee1275_get_property_length): Likewise.
23114 (grub_ieee1275_next_property): Likewise. Change type of first argument
23115 to grub_ieee1275_phandle_t.
23116 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
23117 Move export next to declaration.
23118 (grub_ieee1275_chosen): New variable.
23119 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
23120 Correct cosmetic typo.
23121 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
23122 `grub_ieee1275_chosen'.
23123 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
23124 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
23125 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
23126 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
23127 `grub_ieee1275_chosen'.
23128
23129 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
23130
23131 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
23132 /chosen/bootargs.
23133 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
23134 /chosen/bootargs as "variable=value" pairs.
23135
23136 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
23137
23138 * include/grub/misc.h (grub_dprintf): New macro.
23139 (grub_real_dprintf): New prototype.
23140 (grub_strword): Likewise.
23141 (grub_iswordseparator): Likewise.
23142 * kern/misc.c (grub_real_dprintf): New function.
23143 (grub_strword): Likewise.
23144 (grub_iswordseparator): Likewise.
23145
23146 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
23147
23148 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
23149 (roundup): Remove macro.
23150 (grub_ieee1275_flags): Make static.
23151 (grub_ieee1275_realmode): Remove.
23152 (grub_ieee1275_test_flag): New function.
23153 (grub_ieee1275_set_flag): Likewise.
23154 (find_options): Rename to `grub_ieee1275_find_options'; update
23155 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
23156 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
23157 (cmain): New prototype.
23158 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
23159 `grub_ieee1275_flags' directly.
23160 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
23161 machine/biosdisk.h.
23162 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
23163 Don't include grub/machine/init.h.
23164 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
23165 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
23166 Remove prototype.
23167 (grub_ieee1275_realmode): Likewise.
23168 (grub_ieee1275_flag): New enum.
23169 (grub_ieee1275_test_flag): New prototype.
23170 (grub_ieee1275_set_flag): New prototype.
23171 * include/grub/powerpc/ieee1275/init.h: Remove file.
23172 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
23173 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
23174 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
23175 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
23176 comment.
23177 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
23178 `grub_ieee1275_test_flag'.
23179 (grub_ieee1275_encode_devname): Likewise.
23180
23181 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
23182
23183 * include/grub/powerpc/ieee1275/ieee1275.h
23184 (grub_ieee1275_encode_devname): New prototype.
23185 (grub_ieee1275_get_filename): Likewise.
23186 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
23187 function.
23188 (grub_set_prefix): Likewise.
23189 (grub_machine_init): Call grub_set_prefix.
23190 * kern/powerpc/ieee1275/openfw.c: Fix typos.
23191 (grub_parse_type): New enum.
23192 (grub_ieee1275_get_devargs): New function.
23193 (grub_ieee1275_get_devname): Likewise.
23194 (grub_ieee1275_parse_args): Likewise.
23195 (grub_ieee1275_get_filename): Likewise.
23196 (grub_ieee1275_encode_devname): Likewise.
23197
23198 2005-03-30 Marco Gerards <metgerards@student.han.nl>
23199
23200 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
23201 `grub_loader_unset'.
23202
23203 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
23204
23205 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
23206 instead of grub_ieee1275_interpret.
23207 (grub_halt_init): New function.
23208 (grub_halt_fini): Likewise.
23209 (GRUB_MOD_INIT): Correct message grammar.
23210 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
23211 instead of grub_ieee1275_interpret.
23212 (grub_reboot_init): New function.
23213 (grub_reboot_fini): Likewise.
23214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
23215 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
23216 util/i386/pc/misc.c with commands/ieee1275/halt.c,
23217 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
23218 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
23219 function.
23220 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
23221 Add prototype.
23222 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
23223 prototype.
23224 (grub_halt): Likewise.
23225 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
23226 (cmain): Remove __attribute__((unused)).
23227 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
23228 (grub_heap_len): Likewise.
23229 (grub_machine_fini): New function.
23230 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
23231 (grub_halt): Likewise.
23232 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
23233 function.
23234 * util/powerpc/ieee1275/misc.c: New file.
23235
23236 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
23237
23238 * DISTLIST: New file.
23239 * gendistlist.sh: Likewise.
23240
23241 * Makefile.in (COMMON_DISTFILES): Removed.
23242 (BOOT_DISTFILES): Likewise.
23243 (CONF_DISTFILES): Likewise.
23244 (DISK_DISTFILES): Likewise.
23245 (FS_DISTFILES): Likewise.
23246 (INCLUDE_DISTFILES): Likewise.
23247 (KERN_DISTFILES): Likewise.
23248 (LOADER_DISTFILES): Likewise.
23249 (TERM_DISTFILES): Likewise.
23250 (UTIL_DISTFILES): Likewise.
23251 (DISTFILES): Likewise.
23252 (uninstall): Uninstall files in $(pkgdata_DATA).
23253 (DISTLIST): New target.
23254 (distdir): Use the contents of the file DISTLIST to get a list of
23255 distributed files.
23256
23257 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
23258
23259 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
23260 descriptor. This is ported from GRUB Legacy.
23261
23262 * gencmdlist.sh: Added an extra semicolon to make it work with
23263 old sed versions. Reported by Robert Bihlmeyer
23264 <robbe@orcus.priv.at>.
23265
23266 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
23267
23268 Automatic loading of commands is supported.
23269
23270 * normal/main.c (read_command_list): New function.
23271 (grub_normal_execute): Call read_command_list.
23272
23273 * normal/command.c (grub_register_command): Return zero or CMD.
23274 Allocate CMD->NAME from the heap.
23275 Initialize CMD->MODULE_NAME to zero.
23276 Find the same name as well. If the same command is found and it is
23277 a dummy command, overwrite members. If it is not a dummy command,
23278 return zero.
23279 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
23280 (grub_command_find): If a dummy command is found, load a module
23281 and retry to find a command only once.
23282
23283 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
23284 make sure that each command is loaded.
23285
23286 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
23287 macro.
23288 (struct grub_command): Remove const from the member `name'.
23289 Add a new member `module_name'.
23290 (grub_register_command): Return grub_command_t.
23291
23292 * commands/help.c (grub_cmd_help): Call grub_command_find to make
23293 sure that each command is loaded.
23294
23295 * genmk.rb (PModule::rule): Specify a module name without the
23296 suffix ".mod" to gencmdlist.sh.
23297
23298 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
23299
23300 * gencmdlist.sh: New file.
23301
23302 * genmk.rb (PModule::rule): Generate a rule for a command list.
23303 Clean command.lst.
23304 Generate command.lst from $(COMMANDFILES).
23305
23306 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
23307 (DATA): Added $(pkgdata_DATA).
23308 (install-local): Install files in $(pkgdata_DATA).
23309
23310 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
23311
23312 * term/i386/pc/vga.c (debug_command): Removed.
23313 (GRUB_MOD_INIT): Do not register the command "debug".
23314
23315 From Hollis Blanchard:
23316 * commands/configfile.c: New file.
23317 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23318 commands/configfile.c.
23319 (pkgdata_MODULES): Added configfile.mod.
23320 (configfile_mod_SOURCES): New variable.
23321 (configfile_mod_CFLAGS): Likewise.
23322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
23323 commands/configfile.c.
23324 (pkgdata_MODULES): Added configfile.mod.
23325 (configfile_mod_SOURCES): New variable.
23326 (configfile_mod_CFLAGS): Likewise.
23327 * util/grub-emu.c (main): Call grub_configfile_init and
23328 grub_configfile_fini.
23329 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
23330 prototype.
23331 [GRUB_UTIL] (grub_configfile_fini): Likewise.
23332
23333 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
23334
23335 * normal/arg.c (grub_arg_show_help): Do not show the bug report
23336 address.
23337
23338 * commands/help.c (grub_cmd_help): Do not print newlines after
23339 the last command in print_command_help.
23340
23341 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
23342
23343 * commands/default.h: New file.
23344 * commands/timeout.h: Likewise.
23345 * normal/context.c: Likewise.
23346
23347 * util/misc.c: Do not include sys/times.h.
23348 Include sys/time.h and grub/machine/time.h.
23349 (grub_get_rtc): Rewritten with gettimeofday.
23350
23351 * util/grub-emu.c (main): Call grub_default_init and
23352 grub_timeout_init before grub_normal_init, and call
23353 grub_timeout_fini and grub_default_fini after grub_main.
23354
23355 * util/console.c (grub_ncurses_checkkey): Return the read
23356 character or -1.
23357
23358 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
23359 timeouts.
23360
23361 * normal/main.c (read_config_file): Push MENU. If this fails,
23362 print an error and wait for a user input.
23363 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
23364 If a menu is empty or an error occurs, pop MENU.
23365 (grub_normal_execute): Pop and free MENU after grub_menu_run
23366 returns.
23367
23368 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
23369
23370 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
23371 include time.h.
23372 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
23373 without GRUB_UTIL.
23374 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
23375 time.h.
23376 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
23377 without GRUB_UTIL.
23378
23379 * include/grub/normal.h (struct grub_menu_list): New struct.
23380 (grub_menu_list_t): New type.
23381 (struct grub_context): New struct.
23382 (grub_context_t): New type.
23383 (grub_register_command): Got rid of EXPORT_FUNC.
23384 (grub_unregister_command): Likewise.
23385 (grub_context_get): New prototype.
23386 (grub_context_get_current_menu): Likewise.
23387 (grub_context_push_menu): Likewise.
23388 (grub_context_pop_menu): Likewise.
23389 [GRUB_UTIL] (grub_default_init): Likewise.
23390 [GRUB_UTIL] (grub_default_fini): Likewise.
23391 [GRUB_UTIL] (grub_timeout_init): Likewise.
23392 [GRUB_UTIL] (grub_timeout_fini): Likewise.
23393
23394 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
23395 commands/timeout.c and normal/context.c.
23396 (pkgdata_MODULES): Added default.mod and timeout.mod.
23397 (normal_mod_SOURCES): Added normal/context.c.
23398 (default_mod_SOURCES): New variable.
23399 (default_mod_CFLAGS): Likewise.
23400 (timeout_mod_SOURCES): Likewise.
23401 (timeout_mod_CFLAGS): Likewise.
23402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
23403 conf/i386-pc.rmk.
23404 (pkgdata_MODULES): Added default.mod and timeout.mod.
23405 (normal_mod_SOURCES): Added normal/context.c.
23406 (default_mod_SOURCES): New variable.
23407 (default_mod_CFLAGS): Likewise.
23408 (timeout_mod_SOURCES): Likewise.
23409 (timeout_mod_CFLAGS): Likewise.
23410
23411 * Makefile.in (all-local): Added $(MKFILES).
23412
23413 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
23414
23415 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
23416 (grub_emu_SOURCES): Likewise.
23417 (pkgdata_MODULES): Add `sun.mod'.
23418 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
23419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23420 `partmap/sun.c'.
23421 (pkgdata_MODULES): Add `sun.mod'.
23422 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
23423 * include/grub/partition.h (grub_sun_partition_map_init): New
23424 prototype.
23425 (grub_sun_partition_map_fini): Likewise.
23426 * partmap/sun.c: New file.
23427 * util/grub-emu.c (main): Initialize and de-initialize the sun
23428 partitionmap support.
23429
23430 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
23431
23432 This implements an Emacs-like menu entry editor.
23433
23434 * normal/menu_entry.c: New file.
23435
23436 * util/console.c (grub_ncurses_putchar): Translate some Unicode
23437 characters to ASCII.
23438 (saved_char): New variable.
23439 (grub_ncurses_checkkey): Rewritten completely.
23440 (grub_ncurses_getkey): Likewise.
23441 (grub_ncurses_init): Call raw instead of cbreak.
23442
23443 * normal/menu.c (print_entry): Do not put a space.
23444 (init_page): Renamed to ...
23445 (grub_menu_init_page): ... this. All callers changed.
23446 (edit_menu_entry): Removed.
23447 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
23448
23449 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
23450
23451 * kern/misc.c (grub_vprintf): Call grub_refresh.
23452
23453 * normal/menu.c (DISP_LEFT): Renamed to ...
23454 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
23455 * normal/menu.c (DISP_UP): Renamed to ...
23456 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
23457 * normal/menu.c (DISP_RIGHT): Renamed to ...
23458 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
23459 * normal/menu.c (DISP_DOWN): Renamed to ...
23460 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
23461 * normal/menu.c (DISP_HLINE): Renamed to ...
23462 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
23463 * normal/menu.c (DISP_VLINE): Renamed to ...
23464 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
23465 * normal/menu.c (DISP_UL): Renamed to ...
23466 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
23467 * normal/menu.c (DISP_UR): Renamed to ...
23468 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
23469 * normal/menu.c (DISP_LL): Renamed to ...
23470 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
23471 * normal/menu.c (DISP_LR): Renamed to ...
23472 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
23473 * normal/menu.c (TERM_WIDTH): Renamed to ...
23474 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
23475 * normal/menu.c (TERM_HEIGHT): Renamed to ...
23476 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
23477 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
23478 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
23479 * normal/menu.c (TERM_MARGIN): Renamed to ...
23480 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
23481 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
23482 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
23483 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
23484 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
23485 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
23486 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
23487 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
23488 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
23489 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
23490 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
23491 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
23492 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
23493 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
23494 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
23495 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
23496 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
23497 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
23498 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
23499 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
23500 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
23501 All callers changed.
23502
23503 * include/grub/normal.h: New prototype.
23504
23505 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23506 normal/menu_entry.c.
23507 (normal_mod_SOURCES): Likewise.
23508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23509 (normal_mod_SOURCES): Likewise.
23510
23511 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
23512
23513 * include/grub/normal.h (grub_halt_init): New prototype.
23514 (grub_halt_fini): Likewise.
23515 (grub_reboot_init): Likewise.
23516 (grub_reboot_fini): Likewise.
23517
23518 * util/grub-emu.c: Include signal.h.
23519 (main_env): New global variable.
23520 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
23521 catch C-c.
23522 (grub_machine_fini): New function.
23523 (main): Call grub_halt_init and grub_reboot_init before
23524 grub_main, and grub_reboot_fini and grub_halt_fini after it.
23525 Call setjmp with MAIN_ENV to go back afterwards.
23526 Call grub_machine_fini right before return.
23527
23528 * include/grub/util/misc.h: Include setjmp.h.
23529 (main_env): New prototype.
23530
23531 * include/grub/kernel.h (grub_machine_fini): New prototype.
23532 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
23533 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
23534
23535 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
23536 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
23537 * term/i386/pc/console.c (grub_console_fini): Likewise.
23538
23539 * util/i386/pc/misc.c: New file.
23540
23541 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23542 util/i386/pc/misc.c, commands/i386/pc/halt.c and
23543 commands/i386/pc/reboot.c.
23544
23545 2005-02-14 Guillem Jover <guillem@hadrons.org>
23546
23547 * include/grub/dl.h (grub_dl_check_header): New prototype.
23548 (grub_arch_dl_check_header): Change return type to grub_err_t,
23549 remove size parameter and export function. Update all callers.
23550 * kern/dl.c (grub_dl_check_header): New function.
23551 (grub_dl_load_core): Use `grub_dl_check_header' instead of
23552 `grub_arch_dl_check_header'. Check ELF type. Check if sections
23553 are inside the core.
23554 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
23555 independent ELF header checks.
23556 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
23557 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
23558 `grub_dl_check_header' instead of explicit checks. Check for the
23559 ELF type.
23560 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
23561 `grub_dl_check_header' instead of explicit checks. Remove arch
23562 specific ELF header checks.
23563
23564 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
23565 argument SIZE.
23566
23567 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
23568
23569 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
23570 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
23571
23572 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
23573
23574 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
23575 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
23576 (part_map_iterate): Clear `grub_errno' and return 0 if
23577 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
23578 * partmap/amiga.c (amiga_partition_map_iterate): Return
23579 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
23580 * partmap/apple.c (apple_partition_map_iterate): Likewise.
23581
23582 2005-02-01 Guillem Jover <guillem@hadrons.org>
23583
23584 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
23585 help info.
23586
23587 2005-01-31 Marco Gerards <metgerards@student.han.nl>
23588
23589 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
23590 Removed prototype.
23591 (grub_rescue_cmd_linux): New prototype.
23592 (grub_rescue_cmd_initrd): Likewise.
23593 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
23594 `bi_rec'.
23595 (grub_linux_release_mem): Release the memory for the initrd.
23596 (grub_load_linux): Renamed from this...
23597 (grub_rescue_cmd_linux): ...To this. Changed all callers.
23598 Changed `entry' not to be static. Loop over memory regions to
23599 find another one when the default fails.
23600 (grub_rescue_cmd_initrd): New function.
23601 (grub_linux_init): Remove function.
23602 (grub_linux_fini): Likewise.
23603 (GRUB_MOD_INIT): Register `initrd'.
23604 (GRUB_MOD_FINI): Unregister `initrd'.
23605 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
23606 Function removed.
23607 (grub_linux_normal_fini): Likewise.
23608 (GRUB_MOD_INIT): Register `initrd'.
23609 (GRUB_MOD_FINI): Unregister `initrd'.
23610
23611 2005-01-31 Marco Gerards <metgerards@student.han.nl>
23612
23613 * commands/help.c: New file.
23614 * normal/arg.c (show_help): Renamed to...
23615 (grub_arg_show_help): ... this.
23616 * commands/i386/pc/halt.c: New file.
23617 * commands/i386/pc/reboot.c: Likewise.
23618 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
23619 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
23620 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
23621 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
23622 variables.
23623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23624 `commands/help.c'.
23625 (pkgdata_MODULES): Add `help.mod'.
23626 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
23627 * grub/i386/pc/init.h (grub_reboot): New prototype.
23628 (grub_halt): Likewise.
23629 * include/grub/normal.h (grub_arg_show_help): New prototype.
23630 (grub_help_init): Likewise.
23631 (grub_help_fini): Likewise.
23632 * util/grub-emu.c (main): Initialize and deinitialize the help
23633 command.
23634
23635 * normal/cmdline.c (grub_cmdline_get): Doc fix.
23636
23637 * normal/command.c (grub_command_init): Fixed the description of
23638 the `set' and `unset' commands.
23639
23640 2005-01-31 Marco Gerards <metgerards@student.han.nl>
23641
23642 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
23643 function.
23644 * commands/ieee1275/halt.c: New file.
23645 * commands/ieee1275/reboot.c: Likewise.
23646 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
23647 `__attribute__ ((unused))'. Some GCS related fixed.
23648 (grub_suspend_init) [GRUB_UTIL]: Function removed.
23649 (grub_suspend_fini): Likewise.
23650 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
23651 and `halt.mod'.
23652 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
23653 (halt_mod_CFLAGS): New variables.
23654 * include/grub/powerpc/ieee1275/ieee1275.h
23655 (grub_ieee1275_interpret): New prototype.
23656
23657 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
23658
23659 * include/grub/misc.h (memmove): New prototype.
23660 (memcpy): Likewise.
23661
23662 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
23663
23664 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
23665 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
23666
23667 2005-01-22 Marco Gerards <metgerards@student.han.nl>
23668
23669 * kern/misc.c (grub_strndup): Function rewritten.
23670
23671 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
23672
23673 * normal/menu.c (TERM_WIDTH): Macro redefined.
23674 (TERM_TOP_BORDER_Y): Likewise.
23675 (draw_border): Replaced while-loop by a for-loop. Make the number
23676 of lines consistent with the number of lines displayed in
23677 print_entries. Added a margin below the rectangle.
23678 (print_entry): Make the entry fit in the rectangle.
23679 (print_entries): Display the scroll arrows next to the right
23680 border.
23681
23682 2005-01-21 Marco Gerards <metgerards@student.han.nl>
23683
23684 * fs/minix.c (grub_minix_find_file): Reserve more space for
23685 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
23686 `grub_strncpy' to copy `path' into it.
23687
23688 2005-01-21 Marco Gerards <metgerards@student.han.nl>
23689
23690 Add the loopback device, a device via which files can be accessed
23691 as devices.
23692
23693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
23694 (pkgdata_MODULES): Add loopback.mod.
23695 (loopback_mod_SOURCES): New variable.
23696 (loopback_mod_CFLAGS): Likewise.
23697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23698 `disk/loopback.c'.
23699 (pkgdata_MODULES): Add loopback.mod.
23700 (loopback_mod_SOURCES): New variable.
23701 (loopback_mod_CFLAGS): Likewise.
23702 * disk/loopback.c: new file.
23703 * include/grub/normal.h (grub_loop_init): New prototype.
23704 (grub_loop_fini): New prototype.
23705 * util/grub-emu.c (main): Initialize and de-initialize loopback
23706 support.
23707 * include/grub/disk.h (grub_disk_dev_id): Add
23708 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
23709
23710 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
23711
23712 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
23713 function.
23714 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
23715 (suspend_mod_SOURCES): New variable.
23716 (suspend_mod_CFLAGS): Likewise.
23717 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
23718 New prototype.
23719 * commands/ieee1275/suspend.c: New file.
23720
23721 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23722
23723 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
23724 ((unused))' to `__attribute__ ((used))'.
23725 (GRUB_MOD_FINI): Likewise.
23726 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
23727 * genmk.rb (PModule): Assign space to common symbols when linking
23728 modules.
23729
23730 2005-01-20 Marco Gerards <metgerards@student.han.nl>
23731
23732 * include/grub/mm.h (grub_mm_init_region): Change the type of the
23733 `unsigned' arguments to `grub_size_t'.
23734 (grub_malloc): Likewise.
23735 (grub_realloc): Likewise.
23736 (grub_memalign): Likewise.
23737 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
23738 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
23739 * util/misc.c (grub_malloc): Likewise.
23740 (grub_realloc): Likewise.
23741 * kern/mm.c (get_header_from_pointer): Change the casts to
23742 `unsigned' into a cast to `grub_size_t'.
23743
23744 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
23745 point to `currnode' when `currnode' is changed.
23746
23747 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
23748 Schottelius <nico-linux@schottelius.org>.
23749
23750 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
23751
23752 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
23753 (note_path): Remove variable.
23754 (GRUB_IEEE1275_NOTE_NAME): New macro.
23755 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
23756 (grub_ieee1275_note_hdr): New structure.
23757 (grub_ieee1275_note_desc): Likewise.
23758 (grub_ieee1275_note): Likewise.
23759 (load_note): Remove `dir' argument. All callers updated. Remove
23760 `note_img' and `path'. Do not load a file from `note_path'.
23761 Initialize a struct grub_ieee1275_note and write that to `out'.
23762 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
23763
23764 2005-01-05 Marco Gerards <metgerards@student.han.nl>
23765
23766 * util/misc.c (grub_util_read_image): Revert last change. It
23767 called `grub_util_read_at', which seeks from the beginning of the
23768 file.
23769
23770 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
23771
23772 * TODO: Add note about endianness in grub-mkimage.
23773 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
23774 section.
23775 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
23776 (grub_mkimage_SOURCES): New target.
23777 * include/grub/kernel.h (grub_start_addr): Remove variable.
23778 (grub_end_addr): Likewise.
23779 (grub_total_module_size): Likewise.
23780 (grub_kernel_image_size): Likewise.
23781 (GRUB_MODULE_MAGIC): New constant.
23782 (grub_module_info): New structure.
23783 (grub_arch_modules_addr): New prototype.
23784 (grub_get_end_addr): Remove prototype.
23785 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
23786 * include/grub/powerpc/ieee1275/kernel.h: New file.
23787 * include/grub/util/misc.h (grub_util_get_fp_size): New
23788 prototype.
23789 (grub_util_read_at): Likewise.
23790 (grub_util_write_image_at): Likewise.
23791 * kern/main.c (grub_get_end_addr): Remove function.
23792 (grub_load_modules): Call grub_arch_modules_addr instead of using
23793 grub_end_addr. Look for a grub_module_info struct in memory. Use
23794 the grub_module_info fields instead of calling grub_get_end_addr
23795 as loop conditions. Move grub_add_unused_region code here.
23796 (grub_add_unused_region): Remove function.
23797 * kern/i386/pc/init.c: Include grub/cache.h.
23798 (grub_machine_init): Remove call to grub_get_end_addr. Remove
23799 one call to add_mem_region.
23800 (grub_arch_modules_addr): New function.
23801 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
23802 (grub_total_module_size): Likewise.
23803 Include grub/machine/kernel.h.
23804 (grub_arch_modules_addr): New function.
23805 * util/grub-emu.c (grub_end_addr): Remove variable.
23806 (grub_total_module_size): Likewise.
23807 (grub_arch_modules_addr): New function.
23808 * util/misc.c: Include unistd.h.
23809 (grub_util_get_fp_size): New function.
23810 (grub_util_read_at): Likewise.
23811 (grub_util_write_image_at): Likewise.
23812 (grub_util_read_image): Call grub_util_read_at.
23813 (grub_util_write_image): Call grub_util_write_image_at.
23814 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
23815 additional memory in kernel_img for a struct grub_module_info.
23816 Fill in that grub_module_info.
23817 * util/powerpc/ieee1275/grub-mkimage.c: New file.
23818
23819 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
23820
23821 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
23822 New function.
23823 * include/grub/powerpc/ieee1275/ieee1275.h
23824 (grub_ieee1275_milliseconds): New prototype.
23825 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
23826 Change to 1000.
23827 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
23828 grub_ieee1275_milliseconds.
23829
23830 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
23831
23832 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
23833 variable.
23834 (find_options): New function.
23835 (cmain): Call find_options.
23836 * include/grub/powerpc/ieee1275/ieee1275.h
23837 (grub_ieee1275_realmode): New extern variable.
23838 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
23839 grub_map if grub_ieee1275_realmode is false.
23840
23841 2004-12-29 Marco Gerards <metgerards@student.han.nl>
23842
23843 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
23844 lines are inserted and make it work like readline. Reported by
23845 Vincent Pelletier <subdino2004@yahoo.fr>.
23846
23847 2004-12-28 Marco Gerards <metgerards@student.han.nl>
23848
23849 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
23850
23851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
23852 `kern/powerpc/cache.S'.
23853
23854 2004-12-27 Marco Gerards <metgerards@student.han.nl>
23855
23856 * genmk.rb: Handle the `Program' class in the main loop. Written
23857 by Johan Rydberg <jrydberg@gnu.org>.
23858 (Program): New class.
23859 (programs): New variable.
23860 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
23861 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
23862 instead of "grub/kernel.h". Include <grub/machine/init.h>.
23863 (help_arch): Function removed.
23864 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
23865 `powerpc/libgcc.h' and `loader.h'.
23866 (pkgdata_PROGRAMS): New variable.
23867 (sbin_UTILITIES): Variable removed.
23868 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
23869 (grubof_SOURCES): Variable re-defined so it only includes the
23870 core functionality.
23871 (grubof_CFLAGS): Remove `-DGRUBOF'.
23872 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
23873 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
23874 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
23875 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
23876 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
23877 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
23878 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
23879 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
23880 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
23881 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
23882 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23883 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
23884 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
23885 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
23886 (pc_mod_CFLAGS): New variables.
23887 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
23888 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
23889 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
23890 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
23891 Moved from here...
23892 * include/grub/i386/pc/init.h (grub_os_area_addr)
23893 (rub_os_area_size): ... to here.
23894 * include/grub/powerpc/ieee1275/ieee1275.h
23895 (grub_ieee1275_entry_fn): Export symbol.
23896 * include/grub/powerpc/ieee1275/init.h: New file.
23897 * include/grub/powerpc/libgcc.h: Likewise.
23898 * include/grub/cache.h: Likewise.
23899 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
23900 <hollis@penguinppc.org>.
23901 * kern/dl.c: Include <grub/cache.h>.
23902 (grub_dl_flush_cache): New function.
23903 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
23904 for this module.
23905 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
23906 (grub_console_init): Removed prototypes.
23907 (grub_machine_init): Don't initialize the modules anymore.
23908 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
23909 static.
23910 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
23911 Macro undef removed.
23912 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
23913 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
23914 relocation `R_PPC_REL32'. Return an error when the relocation is
23915 unknown.
23916 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
23917 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
23918 * util/misc.c (grub_arch_sync_caches): Likewise.
23919
23920 2004-12-19 Marco Gerards <metgerards@student.han.nl>
23921
23922 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
23923 `symlist.c', add `grubof_symlist.c'.
23924 (symlist.c): Variable removed.
23925 (grubof_HEADERS): Variable added.
23926 (grubof_symlist.c): New target.
23927 (kernel_syms.lst): Use `grubof_HEADERS' instead of
23928 `kernel_img_HEADERS'.
23929 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
23930 * kern/powerpc/dl.c: New file.
23931 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
23932 Function removed.
23933 (grub_arch_dl_relocate_symbols): Likewise.
23934 (grub_register_exported_symbols): Likewise.
23935
23936 2004-12-13 Marco Gerards <metgerards@student.han.nl>
23937
23938 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
23939 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
23940 to fail instead. Reported by Vincent Pelletier
23941 <subdino2004@yahoo.fr>.
23942
23943 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
23944 it is not allocated. Reported by Vincent Pelletier
23945 <subdino2004@yahoo.fr>.
23946
23947 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
23948 output so the output looks better.
23949
23950 2004-12-04 Marco Gerards <metgerards@student.han.nl>
23951
23952 Modulize the partition map support and add support for the amiga
23953 partition map.
23954
23955 * commands/ls.c: Include <grub/partition.h> instead of
23956 <grub/machine/partition.h>.
23957 * kern/disk.c: Likewise.
23958 * kern/rescue.c: Likewise.
23959 * loader/i386/pc/chainloader.c: Likewise.
23960 * normal/cmdline.c: Likewise.
23961 * kern/powerpc/ieee1275/init.c: Likewise.
23962 (grub_machine_init): Call `grub_pc_partition_map_init',
23963 `grub_amiga_partition_map_init' and
23964 `grub_apple_partition_map_init'.
23965 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
23966 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
23967 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
23968 `partition.h' and `pc_partition.h'.
23969 (grub_setup_SOURCES): Remove
23970 `disk/i386/pc/partition.c'. Add `kern/partition.c',
23971 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
23972 (grub_emu_SOURCES): Likewise.
23973 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
23974 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
23975 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
23976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
23977 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
23978 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
23979 (grubof_SOURCES): Likewise.
23980 * disk/i386/pc/partition.c: File removed.
23981 * disk/powerpc/ieee1275/partition.c: Likewise.
23982 * include/grub/powerpc/ieee1275/partition.h: Likewise.
23983 * include/grub/i386/pc/partition.h: Likewise.
23984 * kern/partition.c: New file.
23985 * partmap/amiga.c: Likewise.
23986 * partmap/apple.c: Likewise.
23987 * partmap/pc.c: Likewise.
23988 * include/grub/partition.h: Likewise..
23989 * include/grub/pc_partition.h: Likewise.
23990 * util/grub-emu.c: Include <grub/partition.h> instead of
23991 <grub/machine/partition.h>.
23992 (main): Call `grub_pc_partition_map_init',
23993 `grub_amiga_partition_map_init' and
23994 `grub_apple_partition_map_init' and deinitialize afterwards.
23995 * util/i386/pc/biosdisk.c: Include `#include
23996 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
23997 `<grub/machine/partition.h>'.
23998 * util/i386/pc/grub-setup.c: Likewise.
23999 * util/i386/pc/biosdisk.c: Likewise.
24000 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
24001 partition information in case of a PC partition.
24002 * util/i386/pc/grub-setup.c: Include `#include
24003 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
24004 `<grub/machine/partition.h>'.
24005 (setup): Only access the PC specific partition information in case
24006 of a PC partition.
24007
24008 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
24009
24010 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
24011 (grub_longjmp): Likewise.
24012 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
24013 20.
24014 * normal/powerpc/setjmp.S: New file.
24015 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
24016 `normal/powerpc/setjmp.S'.
24017 (grubof_CFLAGS): Add `-DGRUBOF'.
24018 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
24019 [GRUB_UTIL && !GRUBOF].
24020
24021 2004-11-16 Marco Gerards <metgerards@student.han.nl>
24022
24023 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
24024 property named `name'. Correctly handle the error returned by
24025 `grub_ieee1275_finddevice' if a device can not be opened.
24026
24027 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
24028
24029 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
24030 `actual' for negativity.
24031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
24032 kern/fshelp.c.
24033
24034 2004-11-01 Marco Gerards <metgerards@student.han.nl>
24035
24036 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
24037 (PAGE_OFFSET): New macro.
24038 (CRTC_ADDR_PORT): Likewise.
24039 (CRTC_DATA_PORT): Likewise.
24040 (START_ADDR_HIGH_REGISTER): Likewise.
24041 (START_ADDR_LOW_REGISTER): Likewise.
24042 (GRAPHICS_ADDR_PORT): Likewise.
24043 (GRAPHICS_DATA_PORT): Likewise.
24044 (READ_MAP_REGISTER): Likewise.
24045 (INPUT_STATUS1_REGISTER): Likewise.
24046 (INPUT_STATUS1_VERTR_BIT): Likewise.
24047 (page): New variable.
24048 (wait_vretrace): New function.
24049 (set_read_map): Likewise.
24050 (set_start_address): Likewise.
24051 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
24052 the right page.
24053 (check_vga_mem): Take the page into account.
24054 (write_char): Likewise.
24055 (write_cursor): Likewise.
24056 (scroll_up): Likewise. Copy the page to the page that is not
24057 shown and switch between both pages.
24058 (grub_vga_putchar): Fix off by one error.
24059 (grub_vga_cls): Wait for the vertical retrace. Take the page into
24060 account.
24061
24062 2004-11-01 Marco Gerards <metgerards@student.han.nl>
24063
24064 Add support for iso9660 (including rockridge).
24065
24066 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
24067 (iso9660_mod_SOURCES): New variable.
24068 (iso9660_mod_CFLAGS): Likewise.
24069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
24070 * include/grub/fs.h (grub_iso9660_init): New prototype.
24071 * util/grub-emu.c (main): Call `grub_iso9660_init'.
24072 * fs/iso9660.c: New file.
24073
24074 * include/grub/misc.h (grub_strncat): New prototype.
24075 * kern/misc.c (grub_strncat): New function.
24076
24077 * fs/hfs.c (grub_hfs_mount): Translate the error
24078 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
24079 * fs/jfs.c (grub_jfs_mount): Likewise.
24080 * fs/ufs.c (grub_ufs_mount): Likewise.
24081
24082 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
24083
24084 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
24085 which initialized BAT registers.
24086 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
24087 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
24088 Move from here...
24089 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
24090 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
24091 ... to here.
24092 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
24093 (grub_mapclaim): Likewise.
24094 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
24095 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
24096 hand.
24097
24098 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
24099
24100 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
24101 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
24102 -ffreestanding and -msoft-float.
24103
24104 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
24105
24106 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
24107 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
24108 set in grub_ieee1275_flags.
24109
24110 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
24111
24112 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
24113 prototype.
24114 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
24115 grub_console_init first.
24116 Change the memory range used for grub_ieee1275_claim and
24117 grub_mm_init_region.
24118 Print an error message if the claim fails.
24119 Include <grub/misc.h>.
24120
24121 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
24122
24123 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
24124 Call grub_children_iterate for device nodes of type `scsi',
24125 `ide', or `ata'.
24126 (grub_ofdisk_open): Remove manual device alias resolution.
24127 Fix memory leak when device cannot be opened.
24128 * include/grub/powerpc/ieee1275/ieee1275.h
24129 (grub_children_iterate): New prototype.
24130 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
24131 New function.
24132 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
24133 Return -1 if args.size was -1.
24134
24135 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
24136
24137 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
24138 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
24139 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
24140 Open Firmware's memory for it; claim memory from _start to _end.
24141 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
24142 (_end): New extern.
24143 (_start): Zero BSS from __bss_start to _end.
24144 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
24145 New extern.
24146 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
24147
24148 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
24149
24150 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
24151 -1 if args.base was -1.
24152
24153 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
24154
24155 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
24156 escape sequence instead of a literal ^L. Also call
24157 grub_ofconsole_gotoxy.
24158
24159 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
24160
24161 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
24162 void * arguments to grub_addr_t. All callers updated. Also make
24163 the `result' argument optional.
24164 (grub_ieee1275_release): change void * arguments to grub_addr_t.
24165 All callers updated.
24166
24167 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
24168
24169 * commands/ls.c (grub_ls_list_files): Use the string following the
24170 initial ')', if present, as the filesystem path.
24171 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
24172
24173 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
24174
24175 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
24176
24177 Make the source code of the menu interface more readable.
24178
24179 * normal/menu.c: Include grub/mm.h.
24180 (TERM_WIDTH): New macro.
24181 (TERM_HEIGHT): Likewise.
24182 (TERM_INFO_HEIGHT): Likewise.
24183 (TERM_MARGIN): Likewise.
24184 (TERM_SCROLL_WIDTH): Likewise.
24185 (TERM_TOP_BORDER_Y): Likewise.
24186 (TERM_LEFT_BORDER_X): Likewise.
24187 (TERM_BORDER_WIDTH): Likewise.
24188 (TERM_MESSAGE_HEIGHT): Likewise.
24189 (TERM_BORDER_HEIGHT): Likewise.
24190 (TERM_NUM_ENTRIES): Likewise.
24191 (TERM_FIRST_ENTRY_Y): Likewise.
24192 (TERM_ENTRY_WIDTH): Likewise.
24193 (TERM_CURSOR_X): Likewise.
24194 (draw_border): Use macros instead of magic numbers.
24195 (print_entry): Likewise.
24196 (print_entries): Likewise.
24197 (run_menu): Likewise. Also, handle the key 'e'.
24198 (run_menu_entry): Ignore empty command lines.
24199 (print_message): Added a new argument EDIT. If EDIT is true,
24200 print a different message.
24201 (init_page): Likewise.
24202 (edit_menu_entry): New function. Not implemented yet.
24203
24204 2004-09-17 Marco Gerards <metgerards@student.han.nl>
24205
24206 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
24207 can be loaded from normal mode.
24208
24209 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
24210 `multiboot.mod'.
24211 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
24212 (multiboot_mod_CFLAGS): New variables.
24213 * loader/i386/pc/linux_normal.c: New file.
24214 * loader/i386/pc/multiboot_normal.c: Likewise.
24215
24216 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
24217 attribute `unused'.
24218
24219 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
24220 `fdiro' to read the mode information from instead of `diro'.
24221
24222 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
24223 looking up a symlink.
24224
24225 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
24226 macro.
24227 * normal/command.c (grub_command_execute): Don't parse the
24228 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
24229 flags of the command.
24230
24231 * normal/menu.c (grub_menu_run): Fix typo.
24232
24233 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
24234
24235 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
24236
24237 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
24238 `y + 1' instead of `y - 1'.
24239
24240 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
24241
24242 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
24243
24244 From Hollis Blanchard <hollis@penguinppc.org>:
24245 * kern/misc.c (memmove): New alias for grub_memmove.
24246 (memcmp): New alias for grub_memcmp.
24247 (memset): New alias for grub_memset.
24248 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
24249 Change "int handle" to "grub_ieee1275_phandle_t handle".
24250 * include/grub/powerpc/ieee1275/ieee1275.h
24251 (grub_ieee1275_get_property): Likewise.
24252
24253 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
24254
24255 Added normal mode command `chainloader' as module chain.mod, which
24256 depends on normal.mod and _chain.mod.
24257
24258 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
24259 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
24260 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
24261 Deleted prototype.
24262 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
24263 but arguments parsing moved to ...
24264 (grub_chainloader_cmd): ... here. New function.
24265 * include/grub/i386/pc/chainloader.h: New file.
24266 * loader/i386/pc/chainloader_normal.c: Likewise.
24267
24268 2004-09-11 Marco Gerards <metgerards@student.han.nl>
24269
24270 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
24271 (grub_mkimage_LDFLAGS): Likewise.
24272 (grub_emu_SOURCES): Likewise.
24273 (kernel_img_HEADERS): Added fshelp.h.
24274 * fs/ext2.c: Include <grub/fshelp.h>.
24275 (FILETYPE_REG): New macro.
24276 (FILETYPE_INO_REG): Likewise.
24277 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
24278 Changed all users.
24279 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
24280 all users.
24281 (grub_fshelp_node): New struct.
24282 (grub_ext2_data): Added member `diropen'. Changed member `inode'
24283 to a pointer.
24284 (grub_ext2_get_file_block): Removed function.
24285 (grub_ext2_read_block): New function.
24286 (grub_ext2_read_file): Replaced parameter `data' by `node'.
24287 This function was written.
24288 (grub_ext2_mount): Read the root inode. Create a diropen struct.
24289 (grub_ext2_find_file): Removed function.
24290 (grub_ext2_read_symlink): New function.
24291 (grub_ext2_iterate_dir): Likewise.
24292 (grub_ext2_open): Rewritten.
24293 (grub_ext2_dir): Rewritten.
24294 * include/grub/fshelp.h: New file.
24295 * fs/fshelp.c: Likewise.
24296
24297 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
24298
24299 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
24300 (print_message): Add a missing newline.
24301 (run_menu): Added timeout support.
24302 (run_menu_entry): New local function.
24303 (grub_menu_run): Added support for booting.
24304
24305 * kern/loader.c (grub_loader_is_loaded): New function.
24306
24307 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
24308 (grub_get_rtc): Exported.
24309
24310 * include/grub/i386/pc/time.h: Include grub/symbol.h.
24311 (grub_get_rtc): Exported.
24312
24313 * include/grub/normal.h (struct grub_command_list): Remove
24314 constant from the member `command'.
24315
24316 * include/grub/loader.h (grub_loader_is_loaded): Declared.
24317
24318 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
24319
24320 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
24321
24322 2004-08-28 Marco Gerards <metgerards@student.han.nl>
24323
24324 Add support for the JFS filesystem.
24325
24326 * fs/jfs.c: New file.
24327 * include/grub/fs.h (grub_jfs_init): New prototype.
24328 (grub_jfs_fini): New prototype.
24329 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
24330 (grub_emu_SOURCES): Likewise.
24331 (pkgdata_MODULES): Add jfs.mod.
24332 (jfs_mod_SOURCES): New variable.
24333 (jfs_mod_CFLAGS): Likewise.
24334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
24335 (grubof_SOURCES): Likewise.
24336 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
24337
24338 * fs/fat.c (grub_fat_find_dir): Convert the filename little
24339 endian to the host endian.
24340 (grub_fat_utf16_to_utf8): Move function from there...
24341 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
24342 the endianness of the source string anymore.
24343 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
24344
24345 2004-08-24 Marco Gerards <metgerards@student.han.nl>
24346
24347 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
24348 (grub_boot_fini) [GRUB_UTIL]: Likewise.
24349 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
24350 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
24351
24352 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
24353 (grub_hfs_iterate_dir): Make the function static. Add prototypes
24354 for `node_found' and `it_dir'.
24355 (grub_hfs_dir): Add prototype for `dir_hook'.
24356
24357 * fs/minix.c (grub_minix_get_file_block): Add prototype for
24358 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
24359 and `indir32' to silence a gcc warning.
24360
24361 * include/grub/fs.h (grub_hfs_init): New prototype.
24362 (grub_hfs_fini): Likewise.
24363
24364
24365 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24366
24367 Each disk device has its own id now. This is useful to make use
24368 of multiple disk devices.
24369
24370 * include/grub/disk.h (grub_disk_dev_id): New enum.
24371 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
24372 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
24373
24374 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
24375 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
24376
24377 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
24378 GRUB_DISK_DEVICE_OFDISK_ID as an id.
24379
24380 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
24381 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
24382
24383 * include/grub/disk.h (struct grub_disk_dev): Added a new member
24384 "id" which is used by the cache manager.
24385
24386 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
24387 of just "GRUB".
24388
24389 2004-08-18 Marco Gerards <metgerards@student.han.nl>
24390
24391 * fs/hfs.c: New file.
24392 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
24393 (grub_emu_SOURCES): Likewise.
24394 (pkgdata_MODULES): Add hfs.mod.
24395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
24396 (grubof_SOURCES): Likewise.
24397 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
24398
24399 * include/grub/misc.h (grub_strncasecmp): Add prototype.
24400 * kern/misc.c (grub_strncasecmp): Add function.
24401
24402 2004-08-14 Marco Gerards <metgerards@student.han.nl>
24403
24404 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
24405 with parentheses.
24406
24407 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
24408 (grub_ext2_dir): In case the directory entry type is unknown, read
24409 it from the inode.
24410
24411 2004-08-02 Peter Bruin <pjbruin@dds.nl>
24412
24413 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
24414 grub_load_linux instead of grub_rescue_cmd_linux as second
24415 argument of grub_rescue_register_command.
24416
24417 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
24418
24419 2004-07-27 Marco Gerards <metgerards@student.han.nl>
24420
24421 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
24422 function.
24423 * commands/boot.c: Remove the check for `GRUB_UTIL'.
24424 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
24425 `loader/powerpc/ieee1275/linux.c',
24426 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
24427 * include/grub/powerpc/ieee1275/ieee1275.h
24428 (grub_ieee1275_release): New prototype.
24429 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
24430 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
24431 normal, boot, linux and linux_normal.
24432 * loader/powerpc/ieee1275/linux.c: New file.
24433 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
24434
24435 2004-07-12 Marco Gerards <metgerards@student.han.nl>
24436
24437 * normal/arg.c (grub_arg_parse): Correct error handling after
24438 reallocating the argumentlist (check if `argl' is not null instead
24439 of checking if `args' is not null).
24440 * kern/mm.c (grub_realloc): Return the same pointer when using the
24441 same region, instead of returning the header address.
24442
24443 2004-07-11 Marco Gerards <metgerards@student.han.nl>
24444
24445 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
24446 one block instead of two when looking for the initial partition.
24447 (grub_partition_probe): Initialize the local variable `p' with 0.
24448 Use base 10 for the grub_strtoul call.
24449 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
24450 need for one local variable.
24451 (grub_strtoul): Don't add the new value to `num', instead of that
24452 just assign it.
24453
24454 2004-07-11 Marco Gerards <metgerards@student.han.nl>
24455
24456 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
24457 (pxeboot_img_SOURCES): New variable.
24458 (pxeboot_img_ASFLAGS): Likewise.
24459 (pxeboot_img_LDFLAGS): Likewise.
24460 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
24461 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
24462 <lode_leroy@hotmail.com>.
24463
24464 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
24465
24466 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
24467 there was no input.
24468
24469 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
24470
24471 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
24472 the history buffer logic.
24473
24474 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
24475
24476 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
24477 (FILETYPE_INO_SYMLINK): New macros.
24478 (grub_ext2_find_file): Check if the node is a directory using the
24479 inode stat information instead of using the filetype in the
24480 dirent. Exclude the first character of an absolute symlink.
24481 (grub_ext2_dir): Mask out the filetype part of the mode member of
24482 the inode.
24483
24484 2004-05-24 Marco Gerards <metgerards@student.han.nl>
24485
24486 Add support for UFS version 1 and 2. Add support for the minix
24487 filesystem version 1 and 2, both the variants with 14 and 30 long
24488 filenames.
24489
24490 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
24491 fs/minix.c.
24492 (grub_emu_SOURCES): Likewise.
24493 (pkgdata_MODULES): Add ufs.mod and minix.mod.
24494 (ufs_mod_SOURCES): New variable.
24495 (ufs_mod_CFLAGS): Likewise.
24496 (minix_mod_SOURCES): Likewise.
24497 (minix_mod_CFLAGS): Likewise.
24498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
24499 fs/minix.c.
24500 (grubof_SOURCES): Likewise.
24501 * fs/ufs.c: New file.
24502 * fs/minix.c: New file.
24503 * include/grub/fs.h (grub_ufs_init): New prototype.
24504 (grub_ufs_fini): Likewise.
24505 (grub_minix_init): Likewise.
24506 (grub_minix_fini): Likewise.
24507 * util/grub-emu.c (main): Initialize and deinitialize UFS and
24508 minix fs.
24509
24510 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
24511
24512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
24513 commands/ls.c, commands/terminal.c, commands/boot.c,
24514 commands/cmp.c and commands/cat.c.
24515 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
24516
24517 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
24518 "env.h"
24519
24520 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
24521
24522 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
24523 and grub_, respectively. Because the conversion is trivial and
24524 mechanical, I omit the details here. Please refer to the CVS
24525 if you need more information.
24526
24527 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
24528
24529 * include/pupa: Renamed to ...
24530 * include/grub: ... this.
24531 * util/i386/pc/pupa-mkimage.c: Renamed to ...
24532 * util/i386/pc/grub-mkimage.c: ... this.
24533 * util/i386/pc/pupa-setup.c: Renamed to ...
24534 * util/i386/pc/grub-setup.c: ... this.
24535 * util/pupa-emu.c: Renamed to ...
24536 * util/grub-emu.c: ... this.
24537
24538 2004-03-29 Marco Gerards <metgerards@student.han.nl>
24539
24540 Add support for the newworld apple macintosh (PPC). This has been
24541 tested on the powerbook 2000 only. It only adds support for
24542 generic ieee1275 functions, console and disk support. This should
24543 be easy to port to other architectures with support for Open
24544 Firmware.
24545
24546 * configure.ac: Accept the powerpc as host_cpu. In the case of
24547 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
24548 specific tests are only executed while building for the i386.
24549 Inverse test for crosscompile.
24550 * genmk.rb (Utility): Allow assembler files.
24551 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
24552 * conf/powerpc-ieee1275.rmk: New file.
24553 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
24554 * disk/powerpc/ieee1275/partition.c: Likewise.
24555 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
24556 * include/pupa/powerpc/ieee1275/console.h: Likewise.
24557 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
24558 * include/pupa/powerpc/ieee1275/time.h: Likewise.
24559 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
24560 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
24561 * include/pupa/powerpc/ieee1275/loader.h
24562 * include/pupa/powerpc/setjmp.h: Likewise.
24563 * include/pupa/powerpc/types.h: Likewise.
24564 * kern/powerpc/ieee1275/init.c: Likewise.
24565 * kern/powerpc/ieee1275/openfw.c: Likewise.
24566 * term/powerpc/ieee1275/ofconsole.c: Likewise.
24567
24568 These files were written by Johan Rydberg
24569 (jrydberg@night.trouble.net) and I only modified them slightly.
24570
24571 * boot/powerpc/ieee1275/cmain.c: New file.
24572 * boot/powerpc/ieee1275/crt0.S: Likewise.
24573 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
24574 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
24575
24576 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
24577
24578 * Makefile.in: Update copyright.
24579 * genmodsrc.sh: Likewise.
24580 * gensymlist.sh: Likewise.
24581 * term/i386/pc/vga.c: Indent correctly.
24582
24583 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
24584 bugreporting address.
24585 * util/i386/pc/pupa-setup.c (usage): Likewise,
24586 (main): Call pupa_ext2_init and pupa_ext2_fini.
24587
24588 * fs/fat.c (log2): Renamed to ...
24589 (fat_log2): ... this.
24590 All callers changed.
24591 * kern/misc.c (memcpy): Alias to pupa_memmove.
24592 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
24593 lvalue cast.
24594 * util/console.c (pupa_ncurses_fini): Return 0.
24595
24596 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
24597 Move fail label here.
24598 [__GNU__]: Don't warn when using stat.
24599 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
24600 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
24601 long int. Use strtol instead of strtoul.
24602
24603 2004-03-14 Marco Gerards <metgerards@student.han.nl>
24604
24605 * commands/boot.c: New file.
24606 * commands/cat.c: Likewise.
24607 * commands/cmp.c: Likewise.
24608 * commands/ls.c: Likewise.
24609 * commands/terminal.c: Likewise.
24610 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
24611 (pupa_register_command): Changed interface to match the new
24612 argument parser.
24613 (pupa_command_execute): Changed (almost rewritten) so it uses
24614 pupa_split_command. Added support for setting variables using the
24615 syntax `foo=bar'.
24616 (rescue_command): Changed to work with the new argument parser.
24617 (terminal_command): Moved from here to commands/terminal.c.
24618 (set_command): New function.
24619 (unset_command): New function.
24620 (insmod_command): New function.
24621 (rmmod_command): New function.
24622 (lsmod_command): New function.
24623 (pupa_command_init): Don't initialize the command terminal
24624 anymore. Initialize the commands set, unset, insmod, rmmod and
24625 lsmod.
24626 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
24627 (kernel_img_HEADERS): Add arg.h and env.h.
24628 (pupa_mkimage_LDFLAGS): Add kern/env.c.
24629 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
24630 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
24631 normal/arg.c.
24632 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
24633 terminal.mod.
24634 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
24635 (boot_mod_SOURCES): New variable.
24636 (terminal_mod_SOURCES): Likewise.
24637 (ls_mod_SOURCES): Likewise.
24638 (cmp_mod_SOURCES): Likewise.
24639 (cat_mod_SOURCES): Likewise.
24640
24641 * normal/arg.c: New file.
24642 * kern/env.c: Likewise.
24643 * include/pupa/arg.h: Likewise.
24644 * include/pupa/env.h: Likewise.
24645 * font/manager.c (font_command): Changed to match argument parsing
24646 interface changes.
24647 (PUPA_MOD_INIT): Likewise.
24648 * hello/hello.c (pupa_cmd_hello): Likewise.
24649 (PUPA_MOD_INIT): Likewise.
24650 * include/pupa/disk.h: Include <pupa/device.h>.
24651 (pupa_print_partinfo): New prototype.
24652 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
24653 (pupa_dl_get_prefix): Likewise.
24654 * include/pupa/misc.h: Include <pupa/err.h>.
24655 (pupa_isgraph): New prototype.
24656 (pupa_isdigit): Likewise.
24657 (pupa_split_cmdline): Likewise.
24658 * include/pupa/normal.h: Include <pupa/arg.h>.
24659 (pupa_command): Changed the prototype of the member `func' to
24660 match the argument parsing interface. Added member `options'.
24661 (pupa_register_command): Updated to match function.
24662 (pupa_arg_parse): New prototype.
24663 (pupa_hello_init) [PUPA_UTIL]: New prototype.
24664 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
24665 (pupa_ls_init) [PUPA_UTIL]: Likewise.
24666 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
24667 (pupa_cat_init) [PUPA_UTIL]: Likewise.
24668 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
24669 (pupa_boot_init) [PUPA_UTIL]: Likewise.
24670 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
24671 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
24672 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
24673 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
24674 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
24675 * kern/disk.c: Include <pupa/file.h>.
24676 (pupa_print_partinfo): New function.
24677 * kern/dl.c: Include <pupa/env.h>.
24678 (pupa_dl_dir): Variable removed.
24679 (pupa_dl_load): Use the environment variable `prefix' instead of
24680 the variable pupa_dl_dir.
24681 (pupa_dl_set_prefix): Function removed.
24682 (pupa_dl_get_prefix): Likewise.
24683 * kern/i386/pc/init.c: Include <pupa/env.h>.
24684 (pupa_machine_init): Use the environment variable `prefix' instead of
24685 using pupa_dl_set_prefix to set the prefix.
24686 * kern/main.c: Include <pupa/env.h>.
24687 (pupa_set_root_dev): Use the environment variable `prefix' instead of
24688 using pupa_dl_get_prefix to get the prefix.
24689 * kern/misc.c: Include <pupa/env.h>.
24690 (pupa_isdigit): New function.
24691 (pupa_isgraph): Likewise.
24692 (pupa_ftoa): Likewise.
24693 (pupa_vsprintf): Added support for printing values of the type
24694 `double'. Make it possible to format variable output when using
24695 formatting like `%1.2%f'.
24696 (pupa_split_cmdline): New function.
24697 * kern/rescue.c: Include <pupa/env.h>.
24698 (next_word): Removed function.
24699 (pupa_rescue_cmd_prefix): Likewise.
24700 (pupa_rescue_cmd_set): New function.
24701 (pupa_rescue_cmd_unset): New function.
24702 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
24703 split the command line instead of splitting it here. Added
24704 support for setting variables using the syntax `foo=bar'. Don't
24705 initialize the prefix command anymore. Initialized the set and
24706 unset commands.
24707 * normal/cmdline.c: Include <pupa/env.h>.
24708 (pupa_tab_complete): Added prototypes for print_simple_completion,
24709 print_partition_completion, add_completion, iterate_commands,
24710 iterate_dev, iterate_part and iterate_dir. Moved code to print
24711 partition information from here to kern/disk.c.
24712 (pupa_cmdline_run): Don't check if the function exists anymore.
24713 * normal/main.c: Include <pupa/env.h>.
24714 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
24715 instead of using pupa_dl_get_prefix to get the prefix.
24716 * term/i386/pc/vga.c: Include <pupa/arg.h>.
24717 (check_vga_mem): Cast pointers to `void *' to silence a gcc
24718 warning.
24719 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
24720 (pupa_vga_setcolor): Declare unused variables with `__attribute__
24721 ((unused))' to silence a gcc warning.
24722 (pupa_vga_setcolor): Likewise.
24723 (debug_command): Changed to match argument parsing
24724 interface changes.
24725 * util/pupa-emu.c: Include <pupa/env.h>.
24726 (options): Added 0's for unused fields to silence a gcc warning.
24727 (argp): Likewise.
24728 (main): Use the environment variable `prefix' instead of using
24729 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
24730 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
24731 and terminal.
24732
24733 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
24734 * util/misc.c: Include <malloc.h>.
24735 (pupa_malloc): Rewritten so errors are correctly reported.
24736 (pupa_realloc): Likewise.
24737 (pupa_memalign): Likewise.
24738 (pupa_mm_init_region): Declare unused variables with
24739 `__attribute__ ((unused))' to silence a gcc warning.
24740 * normal/i386/setjmp.S: Remove tab at the end of the file to
24741 silence a gcc warning.
24742 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
24743 variables with `__attribute__ ((unused))' to silence a gcc
24744 warning.
24745 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
24746 local variable i unsigned to silence a gcc warning.
24747
24748 * kern/term.c: Include <pupa/misc.h>.
24749 (pupa_more_lines): New variable.
24750 (pupa_more): Likewise.
24751 (pupa_putcode): When the pager is active pause at the end of every
24752 screen.
24753 (pupa_set_more): New function.
24754 * include/pupa/term.h (pupa_set_more): New prototype.
24755
24756
24757 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
24758
24759 Now this project is GRUB 2 rather than PUPA. The location of
24760 the CVS repository was moved to GRUB's.
24761
24762 * configure.ac: Use bug-grub as the reporting address.
24763 Use GRUB instead of PUPA.
24764 Change the version number to 1.90.
24765
24766 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
24767
24768 * genkernsyms.sh: Updated copyright information.
24769 * genmk.rb: Likewise.
24770 * genmodsrc.sh: Likewise.
24771 * gensymlist.sh: Likewise.
24772 * boot/i386/pc/boot.S: Likewise.
24773 * boot/i386/pc/diskboot.S: Likewise.
24774 * disk/i386/pc/biosdisk.c: Likewise.
24775 * disk/i386/pc/partition.c: Likewise.
24776 * font/manager.c: Likewise.
24777 * fs/ext2.c: Likewise.
24778 * fs/fat.c: Likewise.
24779 * include/pupa/boot.h: Likewise.
24780 * include/pupa/device.h: Likewise.
24781 * include/pupa/disk.h: Likewise.
24782 * include/pupa/dl.h: Likewise.
24783 * include/pupa/elf.h: Likewise.
24784 * include/pupa/err.h: Likewise.
24785 * include/pupa/file.h: Likewise.
24786 * include/pupa/font.h: Likewise.
24787 * include/pupa/fs.h: Likewise.
24788 * include/pupa/kernel.h: Likewise.
24789 * include/pupa/loader.h: Likewise.
24790 * include/pupa/misc.h: Likewise.
24791 * include/pupa/mm.h: Likewise.
24792 * include/pupa/net.h: Likewise.
24793 * include/pupa/normal.h: Likewise.
24794 * include/pupa/rescue.h: Likewise.
24795 * include/pupa/setjmp.h: Likewise.
24796 * include/pupa/symbol.h: Likewise.
24797 * include/pupa/term.h: Likewise.
24798 * include/pupa/types.h: Likewise.
24799 * include/pupa/i386/setjmp.h: Likewise.
24800 * include/pupa/i386/types.h: Likewise.
24801 * include/pupa/i386/pc/biosdisk.h: Likewise.
24802 * include/pupa/i386/pc/boot.h: Likewise.
24803 * include/pupa/i386/pc/console.h: Likewise.
24804 * include/pupa/i386/pc/init.h: Likewise.
24805 * include/pupa/i386/pc/kernel.h: Likewise.
24806 * include/pupa/i386/pc/linux.h: Likewise.
24807 * include/pupa/i386/pc/loader.h: Likewise.
24808 * include/pupa/i386/pc/memory.h: Likewise.
24809 * include/pupa/i386/pc/multiboot.h: Likewise.
24810 * include/pupa/i386/pc/partition.h: Likewise.
24811 * include/pupa/i386/pc/time.h: Likewise.
24812 * include/pupa/i386/pc/vga.h: Likewise.
24813 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
24814 * include/pupa/util/getroot.h: Likewise.
24815 * include/pupa/util/misc.h: Likewise.
24816 * include/pupa/util/resolve.h: Likewise.
24817 * kern/device.c: Likewise.
24818 * kern/disk.c: Likewise.
24819 * kern/dl.c: Likewise.
24820 * kern/err.c: Likewise.
24821 * kern/file.c: Likewise.
24822 * kern/fs.c: Likewise.
24823 * kern/loader.c: Likewise.
24824 * kern/main.c: Likewise.
24825 * kern/misc.c: Likewise.
24826 * kern/mm.c: Likewise.
24827 * kern/rescue.c: Likewise.
24828 * kern/term.c: Likewise.
24829 * kern/i386/dl.c: Likewise.
24830 * kern/i386/pc/init.c: Likewise.
24831 * kern/i386/pc/lzo1x.S: Likewise.
24832 * kern/i386/pc/startup.S: Likewise.
24833 * loader/i386/pc/chainloader.c: Likewise.
24834 * loader/i386/pc/linux.c: Likewise.
24835 * loader/i386/pc/multiboot.c: Likewise.
24836 * normal/cmdline.c: Likewise.
24837 * normal/command.c: Likewise.
24838 * normal/main.c: Likewise.
24839 * normal/menu.c: Likewise.
24840 * normal/i386/setjmp.S: Likewise.
24841 * term/i386/pc/console.c: Likewise.
24842 * term/i386/pc/vga.c: Likewise.
24843 * util/console.c: Likewise.
24844 * util/genmoddep.c: Likewise.
24845 * util/misc.c: Likewise.
24846 * util/pupa-emu.c: Likewise.
24847 * util/resolve.c: Likewise.
24848 * util/unifont2pff.rb: Likewise.
24849 * util/i386/pc/biosdisk.c: Likewise.
24850 * util/i386/pc/getroot.c: Likewise.
24851 * util/i386/pc/pupa-mkimage.c: Likewise.
24852 * util/i386/pc/pupa-setup.c: Likewise.
24853
24854 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
24855
24856 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
24857 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
24858 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
24859 reading and reset it after reading.
24860 (pupa_ext2_close): Return PUPA_ERR_NONE.
24861
24862 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
24863 Correct value.
24864 (struct linux_kernel_header): Add kernel_version and
24865 initrd_addr_max.
24866 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
24867 pupa_file_read succeeds.
24868 (pupa_rescue_cmd_initrd): Implement.
24869
24870 2003-12-03 Marco Gerards <metgerards@student.han.nl>
24871
24872 * fs/ext2.c (pupa_ext2_label): New function.
24873 (pupa_ext2_fs): Added label.
24874 * fs/fat.c (pupa_fat_label): New function.
24875 (pupa_fat_fs): Added label.
24876 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
24877
24878 * kern/misc.c (pupa_strndup): New function.
24879 * include/pupa/misc.h (pupa_strndup): New prototype.
24880
24881 * include/pupa/normal.h: Include <pupa/err.h>.
24882 (pupa_set_history): New prototype.
24883 (pupa_iterate_commands): New prototype.
24884 * normal/cmdline.c: Include <pupa/machine/partition.h>,
24885 <pupa/disk.h>, <pupa/file.h>.
24886 (hist_size): New variable.
24887 (hist_lines): Likewise.
24888 (hist_end): Likewise.
24889 (hist_used): Likewise.
24890 (pupa_set_history): New function.
24891 (pupa_history_get): Likewise.
24892 (pupa_history_add): Likewise.
24893 (pupa_history_replace): Likewise.
24894 (pupa_tab_complete): Likewise.
24895 (pupa_cmdline_run): Added tab completion and history buffer. Tab
24896 completion shows partitionnames while completing partitions, this
24897 feature was suggested by Jeff Bailey.
24898 * normal/command.c (pupa_iterate_commands): New function.
24899 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
24900 (pupa_normal_init): Initialize history buffer.
24901 (PUPA_MOD_INIT): Likewise.
24902 (pupa_normal_fini): Free the history buffer.
24903 (PUPA_MOD_FINI): Likewise.
24904
24905 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
24906 key.
24907
24908 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
24909 * configure.ac [i386]: Check for regparam bug.
24910 (NESTED_FUNC_ATTR) [! i386]: Defined.
24911
24912 2003-11-17 Marco Gerards <metgerards@student.han.nl>
24913
24914 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
24915 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
24916 (pupa_emu_SOURCES): New variable.
24917 (pupa_emu_LDFLAGS): Likewise.
24918 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
24919 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
24920 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
24921 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
24922 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
24923 (pupa_jmp_buf): New typedef.
24924 (pupa_setjmp) [PUPA_UTIL]: New macro.
24925 (pupa_longjmp) [PUPA_UTIL]: Likewise.
24926 * include/pupa/term.h (struct pupa_term): New member `refresh'.
24927 (pupa_refresh): New prototype.
24928 * include/pupa/util/getroot.h: New file.
24929 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
24930 it.
24931 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
24932 (pupa_rescue_cmd_cat): Likewise.
24933 (pupa_rescue_cmd_ls): Likewise.
24934 (pupa_rescue_cmd_testload): Likewise.
24935 (pupa_rescue_cmd_lsmod): Likewise.
24936 * normal/cmdline.c (pupa_cmdline_get): Likewise.
24937 * normal/menu.c (run_menu): Likewise.
24938 * kern/term.c (pupa_cls): Likewise.
24939 (pupa_refresh): New function.
24940 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
24941 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
24942 * util/console.c: New file.
24943
24944 * util/i386/pc/getroot.c: New file.
24945 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
24946 (pupa_putchar): New function.
24947 (pupa_refresh): Likewise.
24948 (xgetcwd): Function moved to ...
24949 (strip_extra_slashes): Likewise.
24950 (get_prefix): Likewise.
24951 * util/i386/pc/getroot.c: ... here.
24952 (find_root_device): Function moved and renamed to...
24953 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
24954 Changed all callers.
24955 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
24956 and renamed to...
24957 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
24958 Changed all callers.
24959 * util/misc.c (pupa_memalign): New function.
24960 (pupa_mm_init_region): Likewise.
24961 (pupa_register_exported_symbols): Likewise.
24962 (pupa_putchar): Function removed.
24963 * util/pupa-emu.c: New file.
24964
24965 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
24966
24967 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
24968 (_multiboot_mod_SOURCES): New variable.
24969 (_multiboot_mod_CFLAGS): Likewise.
24970 * loader/i386/pc/multiboot.c: New file.
24971 * include/pupa/i386/pc/multiboot.h: Likewise.
24972 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
24973 (pupa_multiboot_real_boot): New function.
24974 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
24975 (pupa_multiboot_real_boot): New prototype.
24976 (pupa_rescue_cmd_multiboot): Likewise
24977 (pupa_rescue_cmd_module): Likewise.
24978
24979 * kern/loader.c (pupa_loader_set): Continue when
24980 pupa_loader_unload_func() fails.
24981 (pupa_loader_unset): New function.
24982 * include/pupa/loader.h (pupa_loader_unset): New prototype.
24983
24984 * kern/misc.c (pupa_stpcpy): New function.
24985 * include/pupa/misc.h (pupa_stpcpy): New prototype.
24986
24987 2003-11-12 Marco Gerards <metgerards@student.han.nl>
24988
24989 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
24990 for available extensions.
24991
24992 * include/pupa/i386/pc/time.h: New file.
24993 * kern/disk.c: Include <pupa/machine/time.h>.
24994 (PUPA_CACHE_TIMEOUT): New macro.
24995 (pupa_last_time): New variable.
24996 (pupa_disk_open): Flush the cache when there was a timeout.
24997 (pupa_disk_close): Reset the timer.
24998 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
24999 pupa_currticks.
25000 * util/misc.c: Include <sys/times.h>
25001 (pupa_get_rtc): New function.
25002
25003 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
25004
25005 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
25006 as blocks.
25007 (pupa_ext2_get_file_block): Use blocks member.
25008
25009 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
25010 first block. Return -1 instead of pupa_errno on error.
25011
25012 2003-10-27 Marco Gerards <metgerards@student.han.nl>
25013
25014 * README: In the pupa-mkimage example use _chain instead of chain
25015 and ext2 instead of fat.
25016 * TODO: Replace ext2fs with jfs as an example. Add an item for
25017 adding journal playback for ext2fs.
25018 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
25019 (pkgdata_MODULES): Added ext2.mod.
25020 (ext2_mod_SOURCES): New variable.
25021 (ext2_mod_CFLAGS): Likewise.
25022 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
25023 * include/pupa/misc.h (pupa_strncpy): New prototype.
25024 (pupa_strcat): Likewise.
25025 (pupa_strncmp): Likewise.
25026 * kern/misc.c (pupa_strcat): Enable function.
25027 (pupa_strncpy): New function.
25028 (pupa_strncmp): Likewise.
25029 * fs/ext2.c: New file.
25030
25031 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
25032 when the read failed before retrying.
25033 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
25034 (_FILE_OFFSET_BITS): Likewise.
25035 * configure.ac: Added AC_SYS_LARGEFILE.
25036
25037 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
25038
25039 * genmk.rb (PModule#rule): Make sure to get only symbol names
25040 from the output of nm.
25041 Reported by Robert Millan <rmh.grub@aybabtu.com>.
25042
25043 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
25044
25045 I forgot to check in these changes for a long time. This adds
25046 incomplete support for VGA console, and this is still very
25047 buggy. Also, a lot of consideration is required for I18N,
25048 UNICODE, and VGA font issues. Therefore, assume that this is
25049 such that "better than nothing".
25050
25051 * font/manager.c: New file.
25052 * include/pupa/font.h: Likewise.
25053 * include/pupa/i386/pc/vga.h: Likewise.
25054 * term/i386/pc/vga.c: Likewise.
25055 * util/unifont2pff.rb: Likewise.
25056
25057 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
25058 (pkgdata_MODULES): Added vga.mod and font.mod.
25059 (vga_mod_SOURCES): New variables.
25060 (vga_mod_CFLAGS): Likewise.
25061 (font_mod_SOURCES): Likewise.
25062 (font_mod_CFLAGS): Likewise.
25063
25064 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
25065
25066 * include/pupa/term.h: Include pupa/err.h.
25067 (struct pupa_term): Added init and fini.
25068 Changed the argument of putchar to pupa_uint32_t.
25069
25070 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
25071 (pupa_console_real_putchar): New prototype.
25072 (pupa_console_putchar): Removed.
25073 (pupa_console_checkkey): Exported.
25074 (pupa_console_getkey): Likewise.
25075
25076 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
25077 characters.
25078
25079 * kern/term.c (pupa_term_set_current): Rewritten.
25080 (pupa_putchar): Likewise.
25081 (pupa_putcode): New function.
25082
25083 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
25084 (pupa_console_real_putchar): ... this.
25085 (pupa_vga_set_mode): New function.
25086 (pupa_vga_get_font): Likewise.
25087
25088 * normal/command.c: Include pupa/term.h.
25089 (terminal_command): New function.
25090 (pupa_command_init): Register the command "terminal".
25091
25092 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
25093 (DISP_UP): Likewise.
25094 (DISP_RIGHT): Likewise.
25095 (DISP_DOWN): Likewise.
25096 (DISP_HLINE): Likewise.
25097 (DISP_VLINE): Likewise.
25098 (DISP_UL): Likewise.
25099 (DISP_UR): Likewise.
25100 (DISP_LL): Likewise.
25101 (DISP_LR): Likewise.
25102
25103 * term/i386/pc/console.c (pupa_console_putchar): New function.
25104
25105 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
25106
25107 * util/resolve.c (pupa_util_resolve_dependencies): BUG
25108 FIX. Reverse the path_list.
25109
25110 * include/pupa/normal.h: Export pupa_register_command and
25111 pupa_unregister_command.
25112
25113 * hello/hello.c (pupa_cmd_hello): New module.
25114 * conf/i386-pc.rmk: Added hello.mod.
25115
25116 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
25117
25118 * kern/i386/pc/lzo1x.S: New file.
25119
25120 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
25121 (compress_kernel): New variable.
25122 (generate_image): Heavily modified to support compressing a
25123 large part of the core image.
25124
25125 * util/misc.c (pupa_util_read_image): Fix a file descriptor
25126 leak.
25127 (pupa_util_load_image): New function.
25128
25129 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
25130 (pupa_compressed_size): New variable.
25131 (codestart): Enable Gate A20 here.
25132 Decompress the compressed part of the core image.
25133 Rearrange the code to put functions and variables which are
25134 required for initialization in the non-compressed part.
25135 Include lzo1x.S.
25136
25137 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
25138 here.
25139
25140 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
25141
25142 * include/pupa/i386/pc/kernel.h
25143 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
25144 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
25145 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
25146 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
25147 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
25148
25149 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
25150
25151 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
25152 (Utility#rule): Likewise.
25153
25154 * configure.ac: Check if LZO is available.
25155
25156 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
25157
25158 * include/pupa/normal.h: New file.
25159 * include/pupa/setjmp.h: Likewise.
25160 * include/pupa/i386/setjmp.h: Likewise.
25161 * normal/cmdline.c: Likewise.
25162 * normal/command.c: Likewise.
25163 * normal/main.c: Likewise.
25164 * normal/menu.c: Likewise.
25165 * normal/i386/setjmp.S: Likewise.
25166
25167 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
25168 (pupa_rescue_cmd_initrd): Likewise.
25169
25170 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
25171 Likewise.
25172
25173 * kern/i386/pc/startup.S (translation_table): New variable.
25174 (translate_keycode): New function.
25175 (pupa_console_getkey): Call translate_keycode.
25176
25177 * kern/rescue.c (attempt_normal_mode): New function.
25178 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
25179 it failed, print a message.
25180
25181 * kern/mm.c (pupa_real_malloc): Print more information when a
25182 free magic is broken.
25183 (pupa_free): If the first free header is not free actually, set
25184 it to P.
25185
25186 * kern/main.c (pupa_load_normal_mode): Just load the module
25187 "normal".
25188 (pupa_main): Don't print the message
25189 "Entering into rescue mode..." here.
25190
25191 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
25192 Declared.
25193 (pupa_rescue_cmd_initrd): Likewise.
25194 (pupa_rescue_cmd_initrd): Likewise.
25195
25196 * include/pupa/symbol.h (FUNCTION): Specify the type.
25197 (VARIABLE): Likewise.
25198
25199 * include/pupa/err.h (pupa_err_t): Added
25200 PUPA_ERR_UNKNOWN_COMMAND.
25201
25202 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
25203 (pupa_dl_get_prefix): Likewise.
25204
25205 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
25206 Added _chain.mod and _linux.mod instead of chain.mod and
25207 linux.mod.
25208 (chain_mod_SOURCES): Renamed to ...
25209 (_chain_mod_SOURCES): ... this.
25210 (chain_mod_CFLAGS): Renamed to ...
25211 (_chain_mod_CFLAGS): ... this.
25212 (linux_mod_SOURCES): Renamed to ...
25213 (_linux_mod_SOURCES): ... this.
25214 (linux_mod_CFLAGS): Renamed to ...
25215 (_linux_mod_CFLAGS): ... this.
25216 (normal_mod_SOURCES): New variable.
25217 (normal_mod_CFLAGS): Likewise.
25218 (normal_mod_ASFLAGS): Likewise.
25219
25220 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
25221
25222 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
25223 possible.
25224
25225 * kern/dl.c (pupa_dl_ref): Refer depending modules
25226 recursively.
25227 (pupa_dl_unref): Unrefer depending modules recursively.
25228 Don't call pupa_dl_unload implicitly, because PUPA can crash if
25229 a module is unloaded before one depending on that module is
25230 unloaded.
25231 (pupa_dl_unload): Unload depending modules explicitly,
25232 if possible.
25233
25234 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
25235
25236 * include/pupa/i386/pc/linux.h: New file.
25237 * loader/i386/pc/linux.c: Likewise.
25238
25239 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
25240 Removed.
25241 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
25242 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
25243 of PUPA_CHAINLOADER_BOOT_SECTOR.
25244
25245 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
25246 (pupa_linux_prot_size): New variable.
25247 (pupa_linux_tmp_addr): Likewise.
25248 (pupa_linux_real_addr): Likewise.
25249 (pupa_linux_boot_zimage): New function.
25250 (pupa_linux_boot_bzimage): Likewise.
25251
25252 * kern/i386/pc/init.c (struct mem_region): New structure.
25253 (MAX_REGIONS): New macro.
25254 (mem_regions): New variable.
25255 (num_regions): Likewise.
25256 (pupa_os_area_addr): Likewise.
25257 (pupa_os_area_size): Likewise.
25258 (pupa_lower_mem): Likewise.
25259 (pupa_upper_mem): Likewise.
25260 (add_mem_region): New function.
25261 (compact_mem_regions): Likewise.
25262 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
25263 the size of the conventional memory and that of so-called upper
25264 memory (before the first memory hole).
25265 Instead of adding each found region to free memory, use
25266 add_mem_region and add them after removing overlaps.
25267 Also, add only 1/4 of the upper memory to free memory. The rest
25268 is used for loading OS images. Maybe this is ad hoc, but this
25269 makes it much easier to relocate OS images when booting.
25270
25271 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
25272 (pupa_enter_rescue_mode): Don't register initrd and module.
25273
25274 * kern/mm.c: Include pupa/dl.h.
25275
25276 * kern/main.c: Include pupa/file.h and pupa/device.h.
25277
25278 * kern/loader.c (pupa_loader_load_module_func): Removed.
25279 (pupa_loader_load_module): Likewise.
25280
25281 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
25282 ``.o''.
25283
25284 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
25285 (pupa_linux_tmp_addr): Likewise.
25286 (pupa_linux_real_addr): Likewise.
25287 (pupa_linux_boot_zimage): Likewise.
25288 (pupa_linux_boot_bzimage): Likewise.
25289
25290 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
25291 (pupa_upper_mem): Likewise.
25292 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
25293 module is too dangerous.
25294
25295 * include/pupa/loader.h (pupa_os_area_addr): Declared.
25296 (pupa_os_area_size): Likewise.
25297 (pupa_loader_set): Remove the first argument. Loader doesn't
25298 manage modules or initrd any longer.
25299 (pupa_loader_load_module): Removed.
25300
25301 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
25302 (linux_mod_SOURCES): New variable.
25303 (linux_mod_CFLAGS): Likewise.
25304
25305 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
25306
25307 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
25308 the length of a blocklist correctly.
25309
25310 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
25311 Use ioctl only if the OS file is a block device.
25312 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
25313 not very useful for normal files.
25314
25315 * kern/main.c (pupa_set_root_dev): New function.
25316 (pupa_load_normal_mode): Likewise.
25317 (pupa_main): Call those above.
25318
25319 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
25320 pupa_uint16_t.
25321
25322 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
25323
25324 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25325
25326 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
25327 (setup): Configure the installed partition information and the
25328 dl prefix.
25329
25330 * loader/i386/pc/chainloader.c (my_mod): New variable.
25331 (pupa_chainloader_unload): New function.
25332 (pupa_rescue_cmd_chainloader): Refer itself.
25333 (PUPA_MOD_INIT): Save its own module in MY_MOD.
25334
25335 * kern/i386/pc/startup.S (install_partition): Removed.
25336 (version_string): Likewise.
25337 (config_file): Likewise.
25338 (pupa_install_dos_part): New variable.
25339 (pupa_install_bsd_part): Likewise.
25340 (pupa_prefix): Likewise.
25341 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
25342
25343 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
25344 and pupa/misc.h.
25345 (make_install_device): New function.
25346 (pupa_machine_init): Set the dl prefix.
25347
25348 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
25349 (buf): Renamed to ...
25350 (linebuf): ... this.
25351 (pupa_rescue_cmd_prefix): New function.
25352 (pupa_rescue_cmd_insmod): Likewise.
25353 (pupa_rescue_cmd_rmmod): Likewise.
25354 (pupa_rescue_cmd_lsmod): Likewise.
25355 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
25356 rmmod and lsmod.
25357
25358 * kern/mm.c (pupa_memalign): If failed even after invalidating
25359 disk caches, unload unneeded modules and retry.
25360
25361 * kern/misc.c (pupa_memmove): New function.
25362 (pupa_memcpy): Removed.
25363 (pupa_strcpy): New function.
25364 (pupa_itoa): Made static.
25365
25366 * kern/dl.c (pupa_dl_iterate): New function.
25367 (pupa_dl_ref): Likewise.
25368 (pupa_dl_unref): Likewise.
25369 (pupa_dl_unload): Return if succeeded or not.
25370 (pupa_dl_unload_unneeded): New function.
25371 (pupa_dl_unload_all): Likewise.
25372 (pupa_dl_init): Renamed to ...
25373 (pupa_dl_set_prefix): ... this.
25374 (pupa_dl_get_prefix): New function.
25375
25376 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
25377 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
25378 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
25379 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
25380 (pupa_install_dos_part): Declared.
25381 (pupa_install_bsd_part): Likewise.
25382 (pupa_prefix): Likewise.
25383 (pupa_boot_drive): Likewise.
25384
25385 * include/pupa/types.h: Fix a typo.
25386
25387 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
25388 pupa_memmove.
25389 (pupa_memmove): Declared.
25390 (pupa_strcpy): Likewise.
25391
25392 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
25393 pupa_mod_init takes one argument, its own module.
25394 (pupa_dl_unload_unneeded): Declared.
25395 (pupa_dl_unload_all): Likewise.
25396 (pupa_dl_ref): Likewise.
25397 (pupa_dl_unref): Likewise.
25398 (pupa_dl_iterate): Likewise.
25399 (pupa_dl_init): Renamed to ...
25400 (pupa_dl_set_prefix): ... this.
25401 (pupa_dl_get_prefix): Declared.
25402
25403 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
25404 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
25405 unloaded.
25406 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
25407 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
25408
25409 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
25410 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
25411
25412 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
25413
25414 * util/i386/pc/pupa-setup.c (setup): Define the internal
25415 function find_first_partition_start at the top level, because GCC
25416 3.0.x cannot compile internal functions in deeper scopes
25417 correctly.
25418 (find_root_device): Use lstat instead of stat.
25419 Don't follow symbolic links.
25420 Fix the path-constructing code.
25421
25422 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
25423 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
25424 by a BLKGETSIZE ioctl first, because block devices don't fill
25425 the member st_mode of the structure stat on Linux.
25426 [__linux__] (linux_find_partition): Use a temporary buffer
25427 REAL_DEV for the working space. Copy it to DEV before returning.
25428 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
25429 buffer cache consistent.
25430 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
25431 strncmp. The previous value was merely wrong.
25432 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
25433
25434 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
25435 FAT size is 12. The previous value was merely wrong.
25436
25437 * kern/main.c (pupa_main): Don't split the starting message from
25438 newlines.
25439
25440 * kern/term.c (pupa_putchar): Put CR after LF instead of before
25441 LF, because BIOS goes crazy about character attributes in this
25442 case.
25443
25444 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
25445
25446 * include/i386/pc/util/biosdisk.h: New file.
25447 * util/i386/pc/biosdisk.c: Likewise.
25448 * util/i386/pc/pupa-setup.c: Likewise.
25449
25450 * Makefile.in (INCLUDE_DISTFILES): Added
25451 include/pupa/i386/pc/util/biosdisk.h.
25452 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
25453 directory util/i386/pc.
25454 (install-local): Added a rule for sbin_UTILITIES.
25455 (uninstall): Likewise.
25456
25457 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
25458
25459 * util/misc.c (xrealloc): New function.
25460 (pupa_malloc): Likewise.
25461 (pupa_free): Likewise.
25462 (pupa_realloc): Likewise.
25463 (pupa_stop): Likewise.
25464 (pupa_putchar): Likewise.
25465
25466 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
25467
25468 * include/pupa/util/misc.h (xrealloc): Declared.
25469
25470 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
25471 macro.
25472 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
25473 (PUPA_BOOT_MACHINE_BPB_END): ... this.
25474
25475 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
25476 [PUPA_UTIL] (pupa_fat_fini): Likewise.
25477
25478 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
25479 way should be implemented.
25480 [PUPA_UTIL] (pupa_fat_fini): Likewise.
25481
25482 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
25483 the size of NAME for safety.
25484 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
25485 0x88.
25486
25487 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
25488 (pupa_setup_SOURCES): Likewise.
25489
25490 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
25491
25492 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
25493
25494 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
25495 bunch of pushl's from pusha, because this destroys the return
25496 value.
25497
25498 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
25499
25500 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
25501 This means that any missing prototypes could be fatal. Also, you
25502 must take care when writing assembly code. See the comments at
25503 the beginning of startup.S, for more details.
25504
25505 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
25506 compilation mechanism.
25507 (pupa_chainloader_real_boot): Likewise.
25508 (pupa_biosdisk_rw_int13_extensions): Likewise.
25509 (pupa_biosdisk_rw_standard): Likewise.
25510 (pupa_biosdisk_check_int13_extensions): Likewise.
25511 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
25512 (pupa_biosdisk_get_diskinfo_standard): Likewise.
25513 (pupa_get_memsize): Likewise.
25514 (pupa_get_mmap_entry): Likewise.
25515 (pupa_console_putchar): Likewise.
25516 (pupa_console_setcursor): Likewise.
25517 (pupa_getrtsecs): Use pushl instead of push.
25518
25519 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
25520 memory instead of the stack for a mmap entry, because some
25521 BIOSes may ignore the maximum size and overflow.
25522
25523 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
25524
25525 * genmk.rb (PModule#rule): Compile automatically generated
25526 sources with module-specific CFLAGS as well as other sources.
25527
25528 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
25529
25530 * configure.ac: Check ld.
25531 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
25532 respectively, before checking endianness and sizes.
25533
25534 * Makefile.in (LD): New variable.
25535
25536 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
25537
25538 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
25539
25540 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
25541
25542 * Changelog: New file.
25543