1 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3 Support for updating environment variables with matched substrings
6 * tests/grub_cmd_regexp.in: New test.
7 * Makefile.util.def: Rule for new test.
9 * grub-core/commands/regexp.c: New option -s to update environment
10 variables with regexp matches.
12 2010-09-04 Szymon Janc <szymon@janc.net.pl>
14 * include/grub/file.h (grub_file): New member not_easly_seekable.
15 (grub_file_seekable): New inline function.
16 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
18 (grub_gzio_open): Set not_easly_seekable.
19 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
20 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
22 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24 Support for options to appear multiple times on cmdline.
26 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
27 * grub-core/commands/extcmd.c: Support for repeatable option.
28 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
29 repeatable option support.
31 Refactor menuentry into a regular command.
33 * grub-core/commands/menuentry.c: New file, menuentry command
35 * grub-core/Makefile.core.def: Rule update for normal.mod.
36 * grub-core/normal/main.c: Moved menuentry creation to
37 grub-core/commands/menuentry.c.
38 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
39 (grub_menu_execute_entry_real): Removed.
40 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
42 (grub_script_execute_menuentry): Removed.
43 * grub-core/script/parser.y (menuentry): Removed.
44 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
45 * grub-core/script/yylex.l (menuentry): Removed.
46 * include/grub/menu.h (grub_menu_init): New prototype.
47 (grub_menu_fini): New prototype.
48 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
49 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
50 (grub_script_execute_sourcecode): New prototype.
52 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
54 "return" command for GRUB script functions.
56 * tests/grub_script_return.in: New test.
57 * Makefile.util.def: Rules for new test.
59 * grub-core/script/execute.c (grub_script_return): New function.
60 * grub-core/script/main.c: Register/unregister return commaond.
61 * include/grub/script_sh.h (grub_script_return): New prototype.
63 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
65 "setparams" command to update positional parameters.
67 * tests/grub_script_setparams.in: New test.
68 * Makefile.util.def: Rules for new test.
70 * grub-core/script/argv.c (grub_script_argv_make): New function.
71 * grub-core/script/execute.c (replace_scope): New function.
72 (grub_script_setparams): New function.
73 * grub-core/script/lexer.c: Remove unused variables.
74 * grub-core/script/main.c: Register/unregister setparams command.
75 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
76 (grub_script_setparams): New prototype.
78 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
80 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
83 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
85 Support for passing block of commands as an argument to extcmds.
87 * Makefile.util.def: Rules for new test.
88 * tests/grub_script_blockarg.in: New test.
89 * grub-core/tests/test_blockarg.c: New file, block argument
90 command used in the test.
92 * include/grub/extcmd.h (grub_extcmd_context): New struct.
93 (grub_register_extcmd_prio): New function prototype.
94 (grub_extcmd_dispatcher): New function prototype.
95 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
97 * include/grub/script_sh.h (struct grub_script): New members
98 `children', `next_siblings' and `refcnt' for block arguments and
100 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
101 (grub_script_arg): New member `script' for block argument.
102 (grub_script_argv): New member `script' for block argument.
103 (grub_parser_param): New member `scripts' for block argument.
104 (grub_script_mem_free): New extern function prototype.
105 (grub_script_ref): New function prototype.
106 (grub_script_unref): New function prototype.
108 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
109 extcmd form to support block arguments.
110 * grub-core/script/argv.c: Block arguments support.
111 * grub-core/script/execute.c: Likewise.
112 * grub-core/script/lexer.c: Likewise.
113 * grub-core/script/main.c: Likewise.
114 * grub-core/script/script.c: Likewise.
115 * grub-core/script/parser.y: Likewise. New `block' and `block0'
118 * grub-core/commands/acpi.c: Update extcmd implementations with
119 grub_extcmd_context_t.
120 * grub-core/commands/cat.c: Likewise.
121 * grub-core/commands/echo.c: Likewise.
122 * grub-core/commands/extcmd.c: Likewise.
123 * grub-core/commands/hashsum.c: Likewise.
124 * grub-core/commands/hdparm.c: Likewise.
125 * grub-core/commands/help.c: Likewise.
126 * grub-core/commands/hexdump.c: Likewise.
127 * grub-core/commands/i386/cpuid.c: Likewise.
128 * grub-core/commands/i386/pc/drivemap.c: Likewise.
129 * grub-core/commands/i386/pc/halt.c: Likewise.
130 * grub-core/commands/i386/pc/sendkey.c: Likewise.
131 * grub-core/commands/iorw.c: Likewise.
132 * grub-core/commands/keystatus.c: Likewise.
133 * grub-core/commands/loadenv.c: Likewise.
134 * grub-core/commands/ls.c: Likewise.
135 * grub-core/commands/lspci.c: Likewise.
136 * grub-core/commands/memrw.c: Likewise.
137 * grub-core/commands/probe.c: Likewise.
138 * grub-core/commands/search_wrap.c: Likewise.
139 * grub-core/commands/setpci.c: Likewise.
140 * grub-core/commands/sleep.c: Likewise.
141 * grub-core/disk/loopback.c: Likewise.
142 * grub-core/hello/hello.c: Likewise.
143 * grub-core/loader/i386/bsd.c: Likewise.
144 * grub-core/loader/xnu.c: Likewise.
145 * grub-core/term/gfxterm.c: Likewise.
146 * grub-core/term/serial.c: Likewise.
147 * grub-core/tests/lib/functional_test.c: Likewise.
149 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
151 Multi-line quoted strings support.
153 * grub-core/script/lexer.c (append_newline): Removed.
154 (grub_script_lexer_yywrap): Refactored.
155 (grub_script_lexer_init): Refactored.
156 * grub-core/script/yylex.l (yywrap): New function.
157 (grub_lexer_resplit): New function.
158 (grub_lexer_unput): New function.
159 * include/grub/script_sh.h (grub_lexer_param): New members, unput
161 * tests/grub_script_echo1.in: Added few more testcases.
163 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
165 * grub-core/kern/misc.c: Don't add abort alias in utils.
166 Reported by: echoline.
168 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
170 Add missing files into "make dist" tarball for other platforms.
172 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
173 * conf/Makefile.common (dist_noinst_DATA): New variable.
174 * conf/Makefile.extra-dist: Added missing make dist files.
175 * grub-core/Makefile.core.def: Likewise.
177 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
179 Compress grub_prefix.
181 * grub-core/boot/i386/pc/lnxboot.S: Use
182 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
183 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
184 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
185 GRUB_MACHINE_PREFIX_END. All users updated.
186 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
187 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
189 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
190 * util/grub-mkimage.c (image_target_desc): Change data_end to
191 prefix_end. All users updated.
193 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
195 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
197 (grub_openbsd_boot): Likewise.
198 (grub_netbsd_boot): Likewise.
199 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
200 (grub_xnu_boot): Likewise.
202 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
204 * configure.ac: Clean LIBS variable after tests.
206 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
208 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
210 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
212 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
213 echo if libdevmapper will be used.
215 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
217 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
218 constant for the same file.
220 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
222 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
224 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
226 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
229 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
231 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
232 required by the boot protocol.
234 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
236 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
237 state.ebp and state.edi.
238 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
239 %ebp and %edi according to grub_relocator32_ebp and
240 grub_relocator32_edi respectively.
241 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
244 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
246 Add i386-pc-pxe image target.
248 * util/grub-mkimage.c (image_target_desc): New enum value
250 (image_targets): New target i386-pc-pxe.
251 (generate_image): Handle i386-pc-pxe image.
253 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
257 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
258 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
260 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
261 (grub_pxe_pxenv): Correct type.
263 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
265 * NEWS: Document most of the important changes since 1.98.
267 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
269 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
270 generated manual page) a little.
272 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
274 * docs/grub.texi: Add myself as an author.
276 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
278 * Makefile.util.def (libgrub.a): Add missing sunpc.
279 Reported by: Seth Goldberg.
281 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
283 Interrupt wrapping and code simplifications.
285 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
286 x86_noieee1275 which are functionaly equivalent in this case.
287 (grub-install): Make source on each platform explicit. Enable on
289 * gentpl.py (x86_efi_pc): Removed group.
290 (x86_noefi): Likewise.
291 (i386_noefi): Likewise.
292 (x86_noieee1275): Likewise.
293 (i386_noieee1275): Likewise.
294 (i386_noefi_noieee1275): Likewise.
295 (i386_pc_qemu_coreboot): Likewise.
296 (i386_coreboot_multiboot): Likewise.
297 (i386_pc_coreboot_multiboot_qemu): Likewise.
298 (x86_noefi_mips): Likewise.
299 (noieee1275): Likewise.
300 (ieee1275_mips): Likewise.
301 (noemu_noieee1275): Likewise.
304 (videoinkernel): Likewise.
305 (videomodules): Likewise.
306 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
307 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
308 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
309 include/grub/loader.h, include/grub/msdos_partition.h,
310 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
311 include/grub/machine/console.h, include/grub/machine/vga.h,
312 include/grub/machine/vbe.h, include/grub/machine/init.h,
313 include/grub/machine/kernel.h, include/grub/cpu/time.h,
314 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
315 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
316 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
317 * grub-core/Makefile.core.def (kernel): Explicit the source for
318 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
319 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
320 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
321 Use videoinkernel tag.
322 (usb): Enable on all usb.
323 (usbserial_common): Likewise.
324 (usbserial_pl2303): Likewise.
325 (usbserial_ftdi): Likewise.
326 (uhci): Enable on all x86.
327 (ohci): Enable on all pci.
328 (cmostest): Enable on all CMOS.
329 (acpi): Include commands/acpi.c on all platforms.
330 (halt): Add relevant lib/*/halt.c.
331 (hdparm): Enable on all pci.
333 (usbtest): Enable on all usb.
334 (ata): Enable on all pci.
335 (ata_pthru): Likewise.
336 (usbms): Enable on all usb.
337 (usb_keyboard): Likewise.
338 (font): Use tag videomodules.
340 (datetime): Use tag cmos. Enable on all noemu.
341 (mmap): Use tags common and x86.
342 (gfxterm): Use tag videomodules.
344 (bitmap_scale): Likewise.
345 (video_fb): Likewise.
347 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
348 adjust padding accordingly. All users updated.
349 (grub_ohci_transaction): Fix bad format specification.
350 (GRUB_MOD_INIT): Add asserts for struct size.
351 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
352 (grub_alloc_td): Likewise.
353 (grub_free_queue): Likewise.
354 (grub_uhci_transfer): Likewise.
355 (grub_uhci_transaction): Fix bad format specification.
356 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
357 (grub_usb_bulk_readwrite): Likewise.
358 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
359 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
361 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
363 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
364 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
366 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
368 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
369 ... here. Transformed into C. Made static.
370 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
372 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
373 ... here. Transformed into C. Made static.
374 * grub-core/kern/i386/pc/startup.S
375 (grub_biosdisk_check_int13_extensions): Moved from here ...
376 * grub-core/disk/i386/pc/biosdisk.c
377 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
379 * grub-core/kern/i386/pc/startup.S
380 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
381 * grub-core/disk/i386/pc/biosdisk.c
382 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
383 Transformed into C. Made static.
384 * grub-core/kern/i386/pc/startup.S
385 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
386 * grub-core/disk/i386/pc/biosdisk.c
387 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
388 Transformed into C. Made static.
389 * grub-core/kern/i386/pc/startup.S
390 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
391 * grub-core/disk/i386/pc/biosdisk.c
392 (grub_biosdisk_get_diskinfo_standard): ... here.
393 Transformed into C. Made static.
394 * grub-core/kern/i386/pc/startup.S
395 (grub_biosdisk_get_num_floppies): Moved from here ...
396 * grub-core/disk/i386/pc/biosdisk.c
397 (grub_biosdisk_get_num_floppies): ... here.
398 Transformed into C. Made static.
399 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
401 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
402 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
403 Transformed into C. Made static.
404 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
405 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
406 Transformed into C. Made static.
407 * grub-core/kern/i386/ieee1275/init.c: Removed.
408 * grub-core/kern/i386/misc.S: Likewise.
409 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
410 Splitted from here ...
411 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
412 Transformed into C. Made static. All users updated.
413 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
414 Transformed into C. Made static. All users updated.
415 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
417 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
418 Transformed into C. Made static. All users updated.
419 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
421 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
422 Transformed into C. Made static. All users updated.
423 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
424 Removed (replaced by C version).
425 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
427 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
428 Transformed into C. Made static.
429 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
431 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
432 ... here. Transformed into C.
433 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
435 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
436 ... here. Transformed into C.
437 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
439 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
440 ... here. Transformed into C. Made static.
441 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
443 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
444 ... here. Transformed into C.
445 * grub-core/kern/i386/pc/startup.S
446 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
447 * grub-core/video/i386/pc/vbe.c
448 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
449 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
451 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
452 ... here. Transformed into C.
453 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
455 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
456 ... here. Transformed into C.
457 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
459 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
460 ... here. Transformed into C.
461 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
463 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
464 ... here. Transformed into C.
465 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
467 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
468 ... here. Transformed into C. Made static.
469 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
471 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
472 ... here. Transformed into C. Made static.
473 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
475 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
476 ... here. Transformed into C. Made static.
477 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
478 pxe_rm_entry as third argument.
479 (grub_bios_interrupt): New function.
480 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
481 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
482 of calling grub_stop.
483 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
484 * grub-core/lib/efi/halt.c (grub_halt): ...here.
485 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
486 * grub-core/lib/emu/halt.c (grub_halt): ... here.
487 * grub-core/lib/i386/halt.c: Moved from here ...
488 * grub-core/lib/i386/halt.c: ... here.
489 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
490 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
491 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
493 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
494 * include/grub/i386/coreboot/init.h: Removed.
495 * include/grub/i386/multiboot/init.h: Likewise.
496 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
497 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
498 * include/grub/i386/pc/int.h: New file.
499 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
500 (grub_pxe_scan): Removed.
501 (grub_pxe_call): Update prototype.
502 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
504 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
505 * include/grub/i386/qemu/init.h: Removed.
506 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
508 (grub_halt): Likewise.
509 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
510 (grub_reboot): Likewise.
511 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
512 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
513 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
515 2010-08-30 Robert Millan <rmh@gnu.org>
517 * NEWS: Document addition of ZFS support in `grub-install' and
520 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
522 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
525 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
527 Remove leftover embedding of font objects.
529 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
530 * util/grub-install.in (font): Removed.
531 * util/grub-mkimage.c (generate_image): Remove font support. All users
534 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
536 * docs/grub.texi (Network): Fix reference to pxe_blksize.
537 Reported by: Ian Turner
539 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
541 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
542 timeout to avoid indefinite boot stalling.
544 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
546 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
547 (grub_env_write_color_highlight): Likewise.
549 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
551 * grub-core/normal/term.c (print_more): Return to normal and not
552 to standard state after printing "---MORE---".
554 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
556 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
557 Mask out the bit 0x80 since it has other meaning that specifiing color.
559 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
561 New relocator. Allows for more kernel support and more straightforward
564 * Makefile.am (BOOTTARGET): New variable.
566 (linux.init.x86_64): New target.
567 (linux.init.i386): Likewise.
568 (multiboot.elf): Likewise.
569 (kfreebsd.elf): Likewise.
570 (kfreebsd.aout): Likewise.
571 (pc-chainloader.elf): Likewise.
572 (pc-chainloader.bin): Likewise.
573 (ntldr.elf): Likewise.
574 (ntldr.bin): Likewise.
575 (multiboot2.elf): Likewise.
576 (kfreebsd.init.x86_64): Likewise.
577 (kfreebsd.init.i386): Likewise.
578 (knetbsd.init.i386): Likewise.
579 (kopenbsd.init.i386): Likewise.
580 (knetbsd.init.x86_64): Likewise.
581 (kopenbsd.init.x86_64): Likewise.
582 (linux-initramfs.i386): Likewise.
583 (linux-initramfs.x86_64): Likewise.
584 (kfreebsd-mfsroot.i386.img): Likewise.
585 (knetbsd.image.i386): Likewise.
586 (kopenbsd.image.i386): Likewise.
587 (kopenbsd.image.x86_64): Likewise.
588 (knetbsd.miniroot-image.i386.img): Likewise.
589 (kfreebsd-mfsroot.x86_64.img): Likewise.
590 (knetbsd.image.x86_64): Likewise.
591 (knetbsd.miniroot-image.x86_64.img): Likewise.
592 (kfreebsd-mfsroot.i386.gz): Likewise.
593 (bootcheck-kfreebsd-i386): Likewise.
594 (kfreebsd-mfsroot.x86_64.gz): Likewise.
595 (bootcheck-kfreebsd-x86_64): Likewise.
596 (knetbsd.miniroot-image.i386.gz): Likewise.
597 (bootcheck-knetbsd-i386): Likewise.
598 (bootcheck-kopenbsd-i386): Likewise.
599 (bootcheck-kopenbsd-x86_64): Likewise.
600 (knetbsd.miniroot-image.x86_64.gz): Likewise.
601 (bootcheck-knetbsd-x86_64): Likewise.
602 (bootcheck-linux-i386): Likewise.
603 (bootcheck-linux-x86_64): Likewise.
604 (bootcheck-linux16-i386): Likewise.
605 (bootcheck-linux16-x86_64): Likewise.
606 (bootcheck-multiboot): Likewise.
607 (bootcheck-multiboot2): Likewise.
608 (bootcheck-kfreebsd-aout): Likewise.
609 (bootcheck-pc-chainloader): Likewise.
610 (bootcheck-ntldr): Likewise.
611 (CLEANFILES): Add new targets.
612 (BOOTCHECKS): New variable.
613 (.PHONY): Add bootchecks.
614 (SUCCESSFUL_BOOT_STRING): New variable.
615 (BOOTCHECK_TIMEOUT): Likewise.
616 (bootcheck): New target
617 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
618 * configure.ac: Correct efiemu excuse.
619 * docs/grub.texi (Supported kernels): New chapter.
620 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
621 include/grub/mm_private.h. Simplify inclusion of
622 include/grub/boot.h, include/grub/loader.h
623 and include/grub/msdos_partition.h
624 (KERNEL_HEADER_FILES) [i386_coreboot]:
625 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
626 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
627 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
628 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
629 include/grub/machine/loader.h.
630 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
631 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
633 (pci.mod): Enable on i386-multiboot.
634 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
635 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
637 (relocator.mod): Rewritten.
638 (aout.mod): Enable on all x86.
640 (ntldr.mod): New module.
641 (linux.mod): Use loader/i386/linux.c on all x86.
642 (xnu.mod): Enable on all x86.
643 (vga_text.mod): disable on EFI and QEMU.
644 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
645 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
646 * grub-core/efiemu/loadcore.c: Likewise.
647 * grub-core/efiemu/main.c: Likewise.
648 (grub_efiemu_exit_boot_services): Removed.
649 (grub_efiemu_finish_boot_services): Likewise.
650 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
652 * grub-core/efiemu/i386/nocfgtables.c: New file.
653 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
654 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
655 (grub_efi_finish_boot_services): Moved from here ...
656 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
657 Fille finish memory map and related data.
658 (finish_mmap_buf): New variable.
659 (grub_efi_uintn_t finish_mmap_size): Likewise.
660 (grub_efi_uintn_t finish_key): Likewise.
661 (grub_efi_uintn_t finish_desc_size): Likewise.
662 (grub_efi_uint32_t finish_desc_version): Likewise.
663 (grub_efi_is_finished): Likewise.
664 (grub_efi_get_memory_map): Use saved memory map if EFI is already
666 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
667 (grub_elf64_phdr_iterate): Likewise.
668 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
669 (grub_os_area_size): Likewise.
670 (grub_machine_init): Don't reserve os area.
671 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
672 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
673 * grub-core/kern/i386/loader.S: Removed.
674 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
675 (grub_os_area_size): Likewise.
676 (grub_machine_init): Don't reserve os area.
677 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
678 Don't call grub_dl_unload_all.
679 Don't include loader.S.
680 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
681 Declare the memory after _end as available.
682 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
683 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
684 (GRUB_MM_ALLOC_MAGIC): Moved from here...
685 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
686 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
687 * include/grub/mm_private.h (grub_mm_header): ... here.
688 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
689 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
690 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
691 (grub_mm_region): ..here. Removed addr. Added pre_size.
693 * grub-core/kern/mm.c (base): Renamed to ...
694 (grub_mm_base): ... this. Made global.
695 (grub_real_malloc): Alloc from end of region.
696 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
697 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
698 * grub-core/kern/powerpc/cache_flush.S: ... here.
699 * grub-core/lib/efi/relocator.c: New file.
700 * grub-core/lib/i386/relocator.c: Rewritten.
701 * grub-core/lib/i386/relocator16.S: New file.
702 * grub-core/lib/i386/relocator32.S: Likewise.
703 * grub-core/lib/i386/relocator64.S: Likewise.
704 * grub-core/lib/i386/relocator_asm.S: Rewritten.
705 * grub-core/lib/i386/relocator_common.S: New file.
706 * grub-core/lib/ieee1275/relocator.c: Likewise.
707 * grub-core/lib/mips/relocator.c: Rewritten.
708 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
709 stylistic adjustments.
710 * grub-core/lib/powerpc/relocator.c: New file.
711 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
712 * grub-core/lib/relocator.c: Rewritten.
713 * grub-core/lib/x86_64/relocator_asm.S: New file.
714 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
715 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
716 (bsd_tag): New struct.
717 (tags): New variable.
718 (tags_last): Likewise.
719 (netbsd_module): New struct.
720 (netbsd_mods): New variable.
721 (netbsd_mods_last): Likewise.
722 (openbsd_opts): New parameter "serial".
723 (OPENBSD_SERIAL_ARG): New definition.
724 (netbsd_opts): New parameter "serial".
725 (NETBSD_SERIAL_ARG): New definition.
726 (grub_freebsd_add_meta): Reorganised into ...
727 (grub_bsd_add_meta): ...this. All users updated.
728 (grub_freebsd_add_mmap): Reorganised into ...
729 (generate_e820_mmap): ...this...
730 (grub_bsd_add_mmap): ...and this. All users updated.
731 (grub_freebsd_list_modules): Use tags.
732 (grub_netbsd_add_meta_module): New function.
733 (grub_netbsd_list_modules): Likewise.
734 (grub_freebsd_boot): Use relocator and finish EFI.
735 (grub_openbsd_boot): Likewise.
736 (grub_netbsd_setup_video): New function.
737 (grub_netbsd_add_modules): Likewise.
738 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
740 (grub_bsd_unload): Unload tags.
741 (grub_bsd_load_aout): Use relocator.
742 (grub_bsd_elf32_size_hook): New function.
743 (grub_bsd_elf32_hook): Use relocator.
744 (grub_bsd_elf64_size_hook): New function.
745 (grub_bsd_elf64_hook): Use relocator.
746 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
747 (grub_bsd_load): Zero-out openbsd_ramdisk.
748 (grub_bsd_load): Use relocator.
749 (grub_cmd_openbsd): Support serial.
750 (grub_cmd_netbsd): Support modules.
751 (grub_cmd_freebsd_module): Use relocator.
752 (grub_netbsd_module_load): New function.
753 (grub_cmd_netbsd_module): Likewise.
754 (grub_cmd_openbsd_ramdisk): Likewise.
755 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
757 (GRUB_MOD_FINI): Unregister new commands.
758 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
759 (grub_freebsd_load_elfmodule_obj): Use relocator.
760 (grub_freebsd_load_elfmodule): Likewise.
761 (grub_freebsd_load_elf_meta): Likewise.
762 (grub_netbsd_load_elf_meta): New function.
763 (grub_openbsd_find_ramdisk): Likewise.
764 * grub-core/loader/i386/bsd_helper.S: Removed.
765 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
766 * grub-core/loader/i386/bsd_trampoline.S: Removed.
767 * grub-core/loader/i386/efi/linux.c: Likewise.
768 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
769 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
770 (DEFAULT_VIDEO_MODE): Likewise.
771 (real_mode_target): New variable.
772 (prot_mode_target): Likewise.
773 (initrd_mem_target): Likewise.
774 (relocator): Likewise.
775 (efi_mmap_buf): Likewise.
776 (efi_mmap_size): Likewise.
777 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
778 (free_pages): Use relocator.
779 (allocate_pages): Account for efi_mmap and use relocator. Return error.
780 (grub_linux_setup_video): Return error.
781 (grub_linux_trampoline_start): Removed.
782 (grub_linux_trampoline_end): Likewise.
783 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
784 andd video parameters depending on firmware.
785 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
786 [GRUB_MACHINE_EFI]: Pass EFI parameters.
787 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
788 (grub_cmd_initrd): Use relocator.
789 * grub-core/loader/i386/linux_trampoline.S: Removed.
790 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
791 (elf_sec_entsize): Likewise.
792 (elf_sec_shstrndx): Likewise.
793 (elf_sections): Likewise.
794 (grub_multiboot_load): Use relocator.
795 (grub_multiboot_get_mbi_size): Account for sections.
796 (grub_multiboot_make_mbi): Use relocator and support sections.
797 (grub_multiboot_add_elfsyms): New function.
798 (grub_multiboot_free_mbi): Free sections.
799 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
800 (grub_linux_real_target): Likewise.
801 (grub_linux_real_chunk): Likewise.
802 (grub_linux16_prot_size): Likewise.
803 (grub_linux16_boot): Use relocator.
804 (grub_linux_unload): Unload relocator.
805 (grub_cmd_linux): Use relocator.
806 (grub_cmd_initrd): Likewise.
807 * grub-core/loader/i386/pc/ntldr.c: New file.
808 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
809 Don't try to guess CPU frequency.
810 (grub_xnu_set_video): Stretch bitmap.
811 (grub_xnu_boot): Use relocator.
812 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
813 (grub_linux_unload): Free relocator.
814 (grub_linux_load32): Use relocator.
815 (grub_linux_load64): Likewise.
816 (grub_cmd_initrd): Likewise.
817 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
818 (grub_multiboot_unload): Unload relocator.
819 (grub_cmd_multiboot): Use relocator.
820 (grub_cmd_module): Likewise.
821 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
822 Use relocator and support sections.
823 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
824 (elf_sec_entsize): Likewise.
825 (elf_sec_shstrndx): Likewise.
826 (elf_sections): Likewise.
827 (grub_multiboot_load): Use relocator.
828 (grub_multiboot_get_mbi_size): Account for sections.
829 (grub_multiboot_make_mbi): Use relocator and support sections.
830 (grub_multiboot_add_elfsyms): New function.
831 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
832 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
833 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
834 Prototype changed. All users updated.
835 (grub_xnu_align_heap): Simplified.
836 (grub_xnu_writetree_toheap): Likewise.
837 (grub_xnu_unload): Unload relocator.
838 (grub_cmd_xnu_kernel): Use relocator.
839 (grub_cmd_xnu_kernel64): Likewise.
840 (grub_xnu_register_memory): Simplified.
841 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
842 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
844 (grub_console_checkkey): Likewise.
845 (grub_console_getkey): Likewise.
846 (grub_console_getwh): Likewise.
847 (grub_console_getxy): Likewise.
848 (grub_console_gotoxy): Likewise.
849 (grub_console_cls): Likewise.
850 (grub_console_setcolorstate): Likewise.
851 (grub_console_setcursor): Likewise.
852 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
853 * grub-core/tests/boot/kbsd.init-i386.S: New file.
854 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
855 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
856 * grub-core/tests/boot/kernel-8086.S: Likewise.
857 * grub-core/tests/boot/kernel-i386.S: Likewise.
858 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
859 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
860 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
861 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
862 * grub-core/tests/boot/knetbsd.cfg: Likewise.
863 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
864 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
865 * grub-core/tests/boot/linux.cfg: Likewise.
866 * grub-core/tests/boot/linux.init-i386.S: Likewise.
867 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
868 * grub-core/tests/boot/linux16.cfg: Likewise.
869 * grub-core/tests/boot/multiboot.cfg: Likewise.
870 * grub-core/tests/boot/multiboot2.cfg: Likewise.
871 * grub-core/tests/boot/ntldr.cfg: Likewise.
872 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
873 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
874 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
876 * include/grub/dl.h (grub_dl_unload_all): Removed.
877 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
878 (grub_efi_finish_boot_services): Change prototype.
879 (grub_efi_is_finished): New variable.
880 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
882 (grub_efiemu_finish_boot_services): Removed.
883 (grub_machine_efiemu_init_tables): New prototype.
884 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
885 (grub_elf64_phdr_iterate): Likewise.
886 * include/grub/i386/bsd.h: Include relocator.h.
887 (freebsd_tag_header): New struct.
888 (grub_openbsd_bios_mmap): Removed.
889 (grub_unix_real_boot): Removed.
890 (grub_freebsd_load_elfmodule32): Changed prototype.
891 (grub_freebsd_load_elfmodule_obj64): Likewise.
892 (grub_freebsd_load_elf_meta32): Likewise.
893 (grub_freebsd_load_elf_meta64): Likewise.
894 (grub_freebsd_add_meta): Removed.
895 (grub_netbsd_load_elf_meta32): New prototype.
896 (grub_netbsd_load_elf_meta64): Likewise.
897 (grub_bsd_add_meta): Likewise.
898 (grub_openbsd_ramdisk_descriptor): New struct.
899 (grub_openbsd_find_ramdisk32): New prototype.
900 (grub_openbsd_find_ramdisk64): Likewise.
901 * include/grub/i386/coreboot/loader.h: Removed.
902 * include/grub/i386/efi/loader.h: Likewise.
903 * include/grub/i386/ieee1275/loader.h: Likewise.
904 * include/grub/i386/linux.h (linux_kernel_header): Change void *
906 * include/grub/i386/loader.h: Removed.
907 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
909 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
910 (grub_phys_addr_t): New type.
911 (grub_vtop): New inline function.
912 (grub_map_memory): Likewise.
913 (grub_unmap_memory): Likewise.
914 * include/grub/i386/multiboot/loader.h: Removed.
915 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
916 (NETBSD_BTINFO_CONSOLE): New definition.
917 (NETBSD_BTINFO_SYMTAB): Likewise.
918 (NETBSD_BTINFO_MODULES): Likewise.
919 (NETBSD_BTINFO_FRAMEBUF): Likewise.
920 (grub_netbsd_bootinfo): New struct.
921 (grub_netbsd_btinfo_common): Use explicit bitsize.
922 (grub_netbsd_btinfo_mmap_entry): Removed.
923 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
924 (grub_netbsd_btinfo_bootdisk): New struct.
925 (grub_netbsd_btinfo_symtab): Likewise.
926 (grub_netbsd_btinfo_serial): Likewise.
927 (grub_netbsd_btinfo_modules): Likewise.
928 (grub_netbsd_btinfo_framebuf): Likewise.
929 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
930 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
932 (grub_openbsd_bootargs): Use explicit bitsize.
933 (grub_openbsd_bootarg_console): New struct.
934 (GRUB_OPENBSD_COM_MAJOR): New definition.
935 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
936 * include/grub/i386/pc/efiemu.h: Removed.
937 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
938 * include/grub/i386/qemu/loader.h: Removed.
939 * include/grub/i386/relocator.h: Rewritten.
940 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
941 * include/grub/mips/memory.h: New file.
942 * include/grub/mips/multiboot.h: Rewritten.
943 * include/grub/mips/relocator.h: Rewritten.
944 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
945 (grub_vtop): New function.
946 (grub_map_memory): Likewise.
947 (grub_unmap_memory): Likewise.
948 * include/grub/misc.h (ALIGN_DOWN): New definition.
949 * include/grub/mm.h (grub_mm_check_real): New proto.
950 (GRUB_MM_CHECK): New definition.
951 * include/grub/mm_private.h: New file.
952 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
953 (grub_multiboot_get_mbi_size): Removed.
954 (grub_multiboot_make_mbi): Change prottype.
955 (grub_multiboot_set_accepts_video): New proto.
956 (grub_multiboot_add_elfsyms): Likewise.
957 (grub_multiboot_payload_eip): New variable.
958 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
960 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
962 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
963 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
964 * include/grub/powerpc/ieee1275/loader.h: Removed.
965 * include/grub/powerpc/memory.h: New file.
966 * include/grub/powerpc/relocator.h: Likewise.
967 * include/grub/relocator.h: Likewise.
968 * include/grub/relocator_private.h: Likewise.
969 * include/grub/sparc64/ieee1275/loader.h: Removed.
970 * include/grub/x86_64/memory.h: New file.
971 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
972 (grub_xnu_heap_malloc): Likewise.
973 (grub_xnu_heap_real_start): Removed.
974 (grub_xnu_heap_start): Likewise.
975 (grub_xnu_relocator): New variable.
976 (grub_xnu_heap_target_start): Likewise.
977 * tests/util/grub-shell.in: Support non-pc.
978 * util/grub-mkimage.c (image_targets): Fix multiboot target.
980 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
982 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
984 (grub_bidi_logical_to_visual): Check that malloc succeded.
985 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
987 (grub_xputs_normal): Likewise.
989 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
991 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
994 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
996 * grub-core/efiemu/runtime/efiemu.sh: Removed.
998 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1000 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
1002 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1004 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
1007 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
1009 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
1011 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1013 * grub-core/normal/term.c (print_more): Fix a memory leak.
1014 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
1015 (grub_xputs_normal): Likewise.
1017 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1019 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
1020 the begining of the string
1022 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1024 * grub-core/script/script.c (grub_script_parse): Free parsed on
1027 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1029 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
1032 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1034 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
1037 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1039 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
1040 (scroll_up): Fix a memory leak.
1042 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1044 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
1047 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
1049 Handle USB pendrives exposed as floppies.
1051 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
1053 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1054 Check for partitions on all devices.
1056 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1058 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
1059 (readkey): Likewise.
1061 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
1063 Multiple variable names support to "export" command.
1065 * normal/context.c (grub_cmd_export): "export" command supports
1066 multiple variable names.
1068 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
1070 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
1071 --target=drive output to Mach device name.
1073 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
1075 New Automake based build system for GRUB.
1077 * ABOUT-NLS: New file.
1078 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
1079 in Makefile.util.def file.
1080 * Makefile.util.def: New file. Autogen build definitions file for
1082 * conf/Makefile.common: New file. Common variables for GRUB host
1083 utils and target modules.
1084 * conf/Makefile.extra-dist: New file. Extra files for make dist.
1085 * docs/Makefile.am: New file. Automake file for docs.
1086 * gentpl.py: New file. Python script to generate Autogen
1088 * grub-core/Makefile.am: New file. GRUB target modules' rules
1089 that doesn't fit in Makefile.core.def file.
1090 * grub-core/Makefile.core.def: New file. Autogen build
1091 definitions file for GRUB target modules.
1092 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
1093 specific setjmp.S file.
1094 * po/Makefile.am: New file.
1096 * .bzrignore: New ignores.
1097 * INSTALL: New requirements, without Ruby.
1098 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
1099 * autogen.sh: Updated to invoke autogen as necessary.
1100 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
1101 and defines for Automake conditionals.
1102 * geninit.sh: Refactoring.
1104 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
1106 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
1109 * include/grub/test.h: Fix functional test modules' naming.
1110 * grub-core/tests/example_functional_test.c: Fix test module name.
1112 * util/misc.c: Hosted versions' of grub functions for libgrub.a
1113 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
1114 * util/grub-editenv.c: Likewise.
1115 * util/grub-fstest.c: Likewise.
1116 * util/grub-mkdevicemap.c: Likewise.
1117 * util/grub-mkfont.c: Likewise.
1118 * util/grub-mkimage.c: Likewise.
1119 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1120 * util/grub-probe.c: Likewise.
1121 * util/grub-script-check.c: Likewise.
1122 * util/i386/pc/grub-setup.c: Likewise.
1123 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1125 * tests/util/grub-shell.in: Fix override directory path.
1126 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
1127 * util/import_gcry.py: Create Makefile.gcry.def file instead.
1129 * util/lvm.c: Update #includes.
1130 * util/raid.c: Likewise.
1131 * util/resolve.c: Likewise.
1132 * grub-core/bus/emu/pci.c: Likewise.
1133 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
1134 * grub-core/lib/posix_wrap/string.h: Likewise.
1135 * grub-core/kern/emu/main.c: Likewise.
1137 * grub-core/gensymlist.sh: New file. Script for generating kernel
1139 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
1141 * grub-core/gentrigtables.c: Fix unused variable warnings.
1143 * Makefile.in: Removed.
1144 * conf/any-emu.rmk: Removed.
1145 * conf/common.rmk: Removed.
1146 * conf/i386-coreboot.rmk: Removed.
1147 * conf/i386-efi.rmk: Removed.
1148 * conf/i386-ieee1275.rmk: Removed.
1149 * conf/i386-multiboot.rmk: Removed.
1150 * conf/i386-pc.rmk: Removed.
1151 * conf/i386-qemu.rmk: Removed.
1152 * conf/i386.rmk: Removed.
1153 * conf/mips-yeeloong.rmk: Removed.
1154 * conf/mips.rmk: Removed.
1155 * conf/powerpc-ieee1275.rmk: Removed.
1156 * conf/sparc64-ieee1275.rmk: Removed.
1157 * conf/tests.rmk: Removed.
1158 * conf/x86-efi.rmk: Removed.
1159 * conf/x86_64-efi.rmk: Removed.
1160 * gendistlist.sh: Removed.
1161 * geninitheader.sh: Removed.
1162 * genkernsyms.sh.in: Removed.
1163 * genmk.rb: Removed.
1164 * gensymlist.sh.in: Removed.
1165 * mkinstalldirs: Removed.
1167 * grub-core/boot: ... to here.
1169 * grub-core/bus: ... to here.
1170 * commands: Moved ...
1171 * grub-core/commands: ... to here.
1173 * grub-core/disk: ... to here.
1175 * grub-core/efiemu: ... to here.
1177 * grub-core/font: ... to here.
1179 * grub-core/fs: ... to here.
1180 * gencmdlist.sh: Moved ...
1181 * grub-core/gencmdlist.sh: ... to here.
1182 * genemuinit.sh: Moved ...
1183 * grub-core/genemuinit.sh: ... to here.
1184 * genemuinitheader.sh: Moved ...
1185 * grub-core/genemuinitheader.sh: ... to here.
1186 * genfslist.sh: Moved ...
1187 * grub-core/genfslist.sh: ... to here.
1188 * genhandlerlist.sh: Moved ...
1189 * grub-core/genhandlerlist.sh: ... to here.
1190 * genmoddep.awk: Moved ...
1191 * grub-core/genmoddep.awk: ... to here.
1192 * genmodsrc.sh: Moved ...
1193 * grub-core/genmodsrc.sh: ... to here.
1194 * genpartmaplist.sh: Moved ...
1195 * grub-core/genpartmaplist.sh: ... to here.
1196 * genparttoollist.sh: Moved ...
1197 * grub-core/genparttoollist.sh: ... to here.
1198 * genterminallist.sh: Moved ...
1199 * grub-core/genterminallist.sh: ... to here.
1200 * gentrigtables.c: Moved ...
1201 * grub-core/gentrigtables.c: ... to here.
1202 * genvideolist.sh: Moved ...
1203 * grub-core/genvideolist.sh: ... to here.
1204 * gettext: Moved ...
1205 * grub-core/gettext: ... to here.
1206 * gfxmenu: Moved ...
1207 * grub-core/gfxmenu: ... to here.
1209 * grub-core/gnulib: ... to here.
1211 * grub-core/hello: ... to here.
1213 * grub-core/hook: ... to here.
1215 * grub-core/io: ... to here.
1217 * grub-core/kern: ... to here.
1219 * grub-core/lib: ... to here.
1221 * grub-core/loader: ... to here.
1223 * grub-core/mmap: ... to here.
1225 * grub-core/normal: ... to here.
1226 * partmap: Moved ...
1227 * grub-core/partmap: ... to here.
1228 * parttool: Moved ...
1229 * grub-core/parttool: ... to here.
1231 * grub-core/script: ... to here.
1233 * grub-core/term: ... to here
1234 * tests/example_functional_test.c: Moved ...
1235 * grub-core/tests/example_functional_test.c: ... to here.
1236 * tests/lib/functional_test.c: Moved ...
1237 * grub-core/tests/lib/functional_test.c: ... to here.
1238 * tests/lib/test.c: Moved ...
1239 * grub-core/tests/lib/test.c: ... to here.
1241 * grub-core/video: ... to here.
1243 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
1245 Replace --enable-grub-emu-modules with grub-emu-lite.
1247 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
1250 * include/grub/emu/misc.h (grub_emu_init): New prototype.
1251 * kern/emu/full.c: New file. For grub-emu specific initialization.
1252 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
1253 * kern/emu/main.c: Call initialization function grub_emu_init.
1255 * Makefile.in: Include grub-emu-lite in install.
1256 * commands/parttool.c: Use grub_no_autoload to differentiate
1257 between grub-emu and grub-emu-lite.
1258 * include/grub/misc.h: New variable grub_no_autoload.
1260 * conf/any-emu.rmk: New rules for grub-emu-lite.
1261 * configure.ac: Remove --enable-grub-emu-modules.
1262 * genmk.rb: Cleanup unnecessary rules.
1263 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
1265 * normal/main.c: Don't load list files on grub-emu-lite.
1266 * util/misc.c (grub_arch_sync_caches): Removed.
1268 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
1270 * kern/mips/startup.S (grub_prefix): Update comment to refer to
1271 grub-mkimage rather than grub-mkelfimage.
1272 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
1274 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1276 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
1277 a key after CapsLock or NumLock. It's just a qemu bug.
1279 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1281 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
1282 needed by libusb wrapper.
1284 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1286 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
1288 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1290 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
1291 --nounzip is passed.
1293 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
1295 USB hotunplugging and USB serial support.
1297 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
1298 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
1299 (grub_uhci_transfer): Respect timeout and set *actual.
1300 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
1301 non-standard length.
1302 (grub_usb_device_attach): Autoload modules.
1303 (GRUB_MOD_INIT): Set grub_term_poll_usb.
1304 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
1305 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
1307 (grub_usb_add_hub): Fill nports and children.
1308 (attach_root_port): Receive hub instead of controller.
1309 All users updated. Fill hub->devices.
1310 (grub_usb_root_hub): Allocate hub->devices.
1311 (detach_device): New function.
1312 (poll_nonroot_hub): Fill children and detach devices.
1313 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
1314 actual arguments. All users updated.
1315 (grub_usb_bulk_read_extended): New function.
1316 * bus/usb/serial/common.c: New file.
1317 * bus/usb/serial/ftdi.c: Likewise.
1318 * bus/usb/serial/pl2303.c: Likewise.
1319 * commands/terminal.c (handle_command): Support wildcard.
1320 * commands/usbtest.c: Output "Unknown" instead of empty string.
1321 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
1322 (usbserial_common_mod_SOURCES): New variable.
1323 (usbserial_common_mod_CFLAGS): Likewise.
1324 (usbserial_common_mod_LDFLAGS): Likewise.
1325 (pkglib_MODULES): Add usbserial_pl2303.mod.
1326 (usbserial_pl2303_mod_SOURCES): New variable.
1327 (usbserial_pl2303_mod_CFLAGS): Likewise.
1328 (usbserial_pl2303_mod_LDFLAGS): Likewise.
1329 (pkglib_MODULES): Add usbserial_ftdi.mod.
1330 (usbserial_ftdi_mod_SOURCES): New variable.
1331 (usbserial_ftdi_mod_CFLAGS): Likewise.
1332 (usbserial_ftdi_mod_LDFLAGS): Likewise.
1333 (pkglib_MODULES): Add serial.mod.
1334 (serial_mod_SOURCES): New variable.
1335 (serial_mod_CFLAGS): Likewise.
1336 (serial_mod_LDFLAGS): Likewise.
1337 * conf/i386-pc.rmk: Likewise.
1338 * conf/mips-yeeloong.rmk: Likewise.
1339 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
1340 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1341 * disk/usbms.c (first_available_slot): New variable.
1342 (grub_usbms_attach): Don't reuse free slots due to potential cache
1344 * include/grub/serial.h: Moved to ..
1345 * include/grub/ns8250.h: ...this.
1346 * include/grub/serial.h: New file.
1347 * include/grub/term.h (grub_term_poll_usb): New variable.
1348 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
1349 readkey. All users updated.
1350 (grub_terminfo_output_state): Pass term to put.
1351 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
1352 (grub_usb_controller_dev): Add timeout and actual arguments to
1353 transfer. All users updated.
1354 (grub_usb_interface): New field detach_data.
1355 (grub_usb_device): New fields children and nports.
1356 (grub_usb_ep_type_t): New type.
1357 (grub_usb_get_ep_type): New function.
1358 (grub_usb_bulk_read_extended): Likewise.
1359 * include/grub/usbdesc.h (grub_usb_desc): New type.
1360 * include/grub/usbserial.h: New file.
1361 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
1362 * kern/term.c (grub_term_poll_usb): New variable.
1363 (grub_getkey): Call grub_term_poll_usb if set.
1364 (grub_checkkey): Likewise.
1365 (grub_getkeystatus): Likewise.
1366 * term/serial.c: Moved controller-specific parts to ...
1367 * term/ns8250.c: ... here.
1368 * term/serial.c: Mostly rewritten.
1369 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
1372 2010-08-20 Robert Millan <rmh@gnu.org>
1374 Make kFreeBSD code more generic to support ext2fs as root, ufs as
1375 a separate module and maybe other interesting combinations.
1377 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
1378 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
1379 (kfreebsd_entry): Add generic filesystem module load routine.
1380 Map GRUB `ext2' to kFreeBSD `ext2fs'.
1382 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
1384 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
1385 "numcenter" (I misunderstood the purpose of this entry).
1386 * docs/grub.texi (sendkey): Likewise.
1388 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
1390 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
1391 status flag options; simply omitting the option is equivalent and
1392 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
1393 (keysym_table): Rename "num5numlock" to "numlock".
1394 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
1395 can uniformly say that only the last of multiple `sendkey'
1396 invocations has any effect.
1397 * docs/grub.texi (sendkey): New section.
1399 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
1401 * commands/i386/pc/sendkey.c (options): Fix three typos.
1403 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1405 Implement sendkey support.
1407 * commands/i386/pc/sendkey.c: New file.
1408 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
1409 (sendkey_mod_SOURCES): New variable.
1410 (sendkey_mod_CFLAGS): Likewise.
1411 (sendkey_mod_LDFLAGS): Likewise.
1413 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
1415 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
1416 fix warnings from Autoconf.
1418 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
1420 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
1421 to avoid false positives with some assemblers that output things
1422 like "someprefix_func" as part of their output.
1424 2010-08-15 Robert Millan <rmh@gnu.org>
1426 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
1428 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
1429 grub_get_libzfs_handle() errors.
1431 2010-08-14 Robert Millan <rmh@gnu.org>
1433 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
1434 filesystem is not ZFS.
1436 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1438 Fix for misspelled color names defaulting to black/black (bug
1439 reported by Doug Nazar)
1441 * include/grub/normal.h (grub_parse_color_name_pair): Add return
1442 status to prototype.
1443 * normal/color.c (grub_parse_color_name_pair): Return failure
1445 (grub_env_write_color_normal): Ignore bad color names.
1446 (grub_env_write_color_highlight): Likewise.
1447 * normal/main.c (GRUB_MOD_INIT): Set default color names.
1449 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1451 "shift" command support to GRUB script.
1453 * include/grub/script_sh.h (grub_script_shift): New prototype.
1454 * script/execute.c (grub_script_shift): New function.
1455 * script/main.c (grub_script_init): Register shift command.
1456 (grub_script_fini): Unregister shift command.
1457 * util/grub-script-check.c (grub_script_cmd_shift): New function.
1459 * tests/grub_script_shift.in: New testcase.
1460 * conf/tests.rmk: Rules for new testcase.
1462 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1464 "continue" command support to GRUB script.
1466 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
1467 (grub_script_break): Continue support.
1468 * script/main.c (grub_script_init): Register continue command.
1469 (grub_script_fini): Unregister continue command.
1471 * tests/grub_script_continue.in: New testcase.
1472 * conf/tests.rmk: Rules for new testcase.
1474 2010-08-12 BVK Chaitanya <bvk@dbook>
1476 "break" command support to GRUB script.
1478 * conf/common.rmk: Rule updates to grub-script-check.
1479 * include/grub/misc.h (grub_min): New function.
1480 * include/grub/script_sh.h (grub_script_init): New prototype.
1481 (grub_script_fini): New prototype.
1482 (grub_script_break): New prototype.
1483 * script/main.c (grub_script_init): New function.
1484 (grub_script_fini): New function.
1485 * script/execute.c (grub_script_break): New function.
1486 * normal/main.c: Calls to grub_script_{init,fini}.
1487 * util/grub-script-check.c (grub_script_break): New function.
1489 * tests/grub_script_break.in: New testcase.
1490 * conf/tests.rmk: Rules for new test case.
1492 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1494 Function parameters support to GRUB script.
1496 * script/yylex.l (VARIABLE): Regular expression update.
1497 * script/function.c (grub_script_function_call): Moved ...
1498 * script/execute.c (grub_script_function_call): ... to here.
1499 (grub_script_execute_arglist_to_argv): Removed.
1500 (grub_script_arglist_to_argv): New function.
1501 * script/argv.c: New file.
1502 (grub_script_argv_free): New function.
1503 (grub_script_argv_next): Likewise.
1504 (grub_script_argv_append): Likewise.
1505 (grub_script_argv_split_append): Likewise.
1506 * include/grub/script_sh.h (grub_script_argv): New struct.
1507 (grub_script_argv_free): New function.
1508 (grub_script_argv_next): Likewise.
1509 (grub_script_argv_append): Likewise.
1510 (grub_script_argv_split_append): Likewise.
1512 * conf/common.rmk (normal.mod): New source script/argv.c.
1514 * tests/grub_script_echo1.in: More tests.
1515 * tests/grub_script_vars1.in: Likewise.
1516 * tests/grub_script_functions.in: New test case.
1517 * conf/tests.rmk: Rules for new testcase.
1519 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1521 Remove grub_script_cmdblock struct.
1523 * include/grub/script_sh.h: Remove grub_script_cmdblock.
1524 * script/parser.y: Likewise.
1525 * script/execute.c: Rename cmdblock suffix to cmdlist.
1526 * script/script.c: Likewise.
1527 * util/grub-script-check.c: Likewise.
1529 2010-08-11 Yves Blusseau <blusseau@zetam.org>
1531 * .bzrignore: add grub-macho2img
1533 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
1535 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
1537 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
1539 Remove the dump of sm712 initialisation sequence.
1541 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
1542 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
1543 (GRUB_VGA_IO_MISC_WRITE): Likewise.
1544 (GRUB_VGA_CR_*): Added many registers.
1545 (GRUB_VGA_SR_*): Likewise.
1546 (GRUB_VGA_GR_*): Likewise.
1547 (grub_vga_write_arx): New function.
1548 (grub_video_hw_config): New struct.
1549 (grub_vga_set_geometry): New function.
1550 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
1551 GRUB_PCI_CLASS_SUBCLASS_VGA.
1552 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
1553 * video/sm712.c (grub_sm712_write_reg): New function
1554 (grub_sm712_read_reg): Likewise.
1555 (grub_sm712_sr_write): Likewise.
1556 (grub_sm712_gr_write): Likewise.
1557 (grub_sm712_cr_write): Likewise.
1558 (grub_sm712_write_arx): Likewise.
1559 (grub_sm712_cr_shadow_write): Likewise.
1560 (grub_sm712_write_dda_lookup): Likewise.
1561 (grub_video_sm712_setup): Initialise the video rather then
1562 blindly replay the dump.
1563 (main) [TEST]: Add a routine to be able to compile as standalone for
1565 * video/sm712_init.c (sm712_init): Removed.
1566 (sm712_sr_seq1): New array.
1567 (sm712_sr_seq2): Likewise.
1569 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
1571 * include/grub/vga.h: Add missing grub/pci.h include.
1573 2010-08-10 Yves Blusseau <blusseau@zetam.org>
1575 * util/grub-macho2img.c (main): fix typo
1577 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
1579 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
1580 (grub_vga_gr_read): Likewise.
1581 (grub_vga_cr_write): Likewise.
1582 (grub_vga_cr_read): Likewise.
1583 (grub_vga_sr_write): Likewise.
1584 (grub_vga_sr_read): Likewise.
1585 (grub_vga_palette_read): Likewise.
1586 (grub_vga_palette_write): Likewise.
1587 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
1588 (grub_sm712_sr_read): New function.
1589 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
1590 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
1592 2010-08-09 Robert Millan <rmh@gnu.org>
1594 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
1595 out unused variables on non-ZFS build.
1597 2010-08-08 Robert Millan <rmh@gnu.org>
1599 Fix path generation for sub-filesystems in ZFS.
1601 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
1604 2010-08-08 Robert Millan <rmh@gnu.org>
1606 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
1608 2010-08-08 Robert Millan <rmh@gnu.org>
1610 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
1611 exist, issue a proper error message (rely on `ls' for translated
1614 2010-08-08 Robert Millan <rmh@gnu.org>
1616 Fix grub-probe invocation.
1618 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
1620 2010-08-04 Robert Millan <rmh@gnu.org>
1622 * configure.ac: Remove checks for getfsstat() and getmntany().
1623 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
1624 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
1625 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
1626 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
1627 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
1629 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
1630 via find_mount_point_from_dir() and getfsstat() / getmntany().
1632 2010-08-04 Robert Millan <rmh@gnu.org>
1634 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
1635 (grub_find_zpool_from_mount_point): Merge into ...
1636 (grub_find_zpool_from_dir): ... this.
1637 * kern/emu/misc.c: Likewise.
1640 (grub_make_system_path_relative_to_its_root): Replace
1641 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
1642 with grub_find_zpool_from_dir().
1643 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
1645 2010-08-04 Robert Millan <rmh@gnu.org>
1647 Support OpenSolaris in ZFS device resolution.
1649 * configure.ac: Check for getmntany().
1650 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
1651 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
1654 2010-08-03 Robert Millan <rmh@gnu.org>
1658 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
1659 * include/grub/emu/misc.h: ... here.
1661 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
1662 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
1664 * util/misc.c: Remove `<grub/util/libzfs.h>'.
1665 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
1666 (grub_get_libzfs_handle): Move to ...
1667 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
1668 (grub_get_libzfs_handle): ... here.
1670 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
1672 * script/execute.c (grub_script_execute_cmdline): Check for NULL
1673 as command name case.
1675 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
1677 * disk/raid.c (insert_array): Select unique numbers for named arrays
1678 as well, for use as keys in the disk cache.
1680 2010-08-01 Robert Millan <rmh@gnu.org>
1682 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
1683 kFreeBSD device name, except on ZFS where the filesystem label is
1685 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
1686 `/boot/zfs/zpool.cache'.
1687 Set mountfrom kernel variable using ${kfreebsd_device}.
1689 2010-08-01 Robert Millan <rmh@gnu.org>
1691 Make it even harder to use uninitialized `libzfs_handle' (and
1692 make the interface a bit simpler).
1694 * include/grub/util/misc.h (grub_util_init_libzfs)
1695 (libzfs_handle): Remove.
1696 (grub_get_libzfs_handle): New prototype.
1698 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
1700 (grub_util_init_libzfs): Remove.
1701 (grub_get_libzfs_handle): New function.
1703 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
1704 grub_get_libzfs_handle() to obtain a libzfs handle instead of
1705 accessing `libzfs_handle' directly.
1707 2010-08-01 Robert Millan <rmh@gnu.org>
1709 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
1710 (grub_find_zpool_from_mount_point): New function prototypes.
1712 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
1713 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
1715 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
1716 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
1719 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
1720 finding zpool from mount point into ...
1721 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
1723 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
1724 requested path is part of a ZFS pool, use
1725 grub_find_zpool_from_mount_point() to detect its filesystem name,
1726 and generate a path with `/fsname@path' syntax.
1728 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
1730 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
1731 (void) rather than () so that this is a proper prototype.
1733 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1735 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
1737 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1739 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
1740 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
1742 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
1744 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
1746 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
1748 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
1750 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
1752 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
1753 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
1754 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
1756 (Shell-like scripting): Add real content.
1757 (Serial terminal): Suggest `terminal_input serial; terminal_output
1758 serial' rather than putting the two commands on separate lines,
1759 since console input will be inoperative after the first command.
1760 (menuentry): Document --class, --users, and --hotkey options.
1761 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
1762 Vladimir Serbinenko).
1764 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1765 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
1767 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
1769 2010-08-01 Robert Millan <rmh@gnu.org>
1771 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
1772 (grub_find_zpool_from_mount_point): New function prototypes.
1774 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
1775 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
1777 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
1778 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
1781 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
1782 finding zpool from mount point into ...
1783 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
1785 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
1786 requested path is part of a ZFS pool, use
1787 grub_find_zpool_from_mount_point() to detect its filesystem name,
1788 and generate a path with `/fsname@path' syntax.
1790 2010-08-01 Robert Millan <rmh@gnu.org>
1792 Prevent accidental use of uninitialized libzfs_handle.
1794 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
1795 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
1796 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
1798 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
1800 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
1801 util/grub.d/10_linux.in). Fixes Debian bug #591093.
1803 2010-08-01 Robert Millan <rmh@gnu.org>
1805 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
1807 2010-07-31 Robert Millan <rmh@gnu.org>
1809 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
1811 2010-07-31 Robert Millan <rmh@gnu.org>
1813 * kern/emu/misc.c: Add missing license header.
1815 2010-07-31 Robert Millan <rmh@gnu.org>
1817 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
1819 * include/grub/util/libnvpair.h: Include `<config.h>'.
1820 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
1821 declaring libnvpair prototypes ourselves.
1822 * include/grub/util/libzfs.h: Include `<config.h>'.
1823 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
1824 declaring libzfs prototypes ourselves.
1826 (libzfs_handle): Moved to ...
1827 * include/grub/util/misc.h (libzfs_handle): ... here.
1828 Include `<grub/util/libzfs.h>'.
1830 2010-07-30 Robert Millan <rmh@gnu.org>
1832 * include/grub/emu/misc.h: Add missing license header.
1834 2010-07-30 Robert Millan <rmh@gnu.org>
1836 Enable `grub-probe -t device' resolution on ZFS.
1838 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
1839 * include/grub/util/libnvpair.h: New file.
1840 * include/grub/util/libzfs.h: New file.
1842 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
1843 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
1844 `<grub/util/libnvpair.h>'.
1845 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
1847 (find_mount_point_from_dir): New static function.
1848 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
1850 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
1851 find_root_device_from_libzfs() before ressorting to find_root_device().
1853 * include/grub/util/misc.h (grub_util_init_libzfs): New function
1855 * util/misc.c: Include `<grub/util/libzfs.h>'.
1856 (grub_util_init_libzfs): New function.
1857 [HAVE_LIBZFS] (libzfs_handle): New global variable.
1858 [HAVE_LIBZFS] (fini_libzfs): New static function.
1859 (grub_util_init_libzfs): New function.
1860 * util/grub-probe.c (main): Call grub_util_init_libzfs().
1862 2010-07-30 Robert Millan <rmh@gnu.org>
1864 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
1865 (xmalloc, xrealloc, xstrdup, xasprintf): Add
1866 `warn_unused_result' attribute.
1867 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
1868 (grub_xasprintf, grub_xvasprintf): Likewise.
1869 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
1871 2010-07-29 Robert Millan <rmh@gnu.org>
1873 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
1874 (probe): Handle `PRINT_FS_LABEL'.
1875 (main): Handle `-t fs_label'.
1877 2010-07-29 Robert Millan <rmh@gnu.org>
1879 * configure.ac: Remove grub-mkisofs checks.
1881 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1883 * util/ieee1275/grub-install.in: Don't use empty grub_device.
1884 Reported by: Lennart Sorensen.
1886 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1888 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
1889 prior to terminal_input/terminal_output separation. It's been over 1.5
1890 years and those versions weren't widely deployed.
1892 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
1894 * disk/raid.c (insert_array): Don't count named arrays when looking
1895 for unused array numbers.
1896 Reported and tested by: Michael Guntsche.
1898 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
1900 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
1901 implementation of this so that grub-emu links again, with a note
1902 that this should support hotplugging in the future.
1904 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
1906 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
1908 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
1910 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
1912 (grub_loopback_close): Remove empty function.
1913 (grub_loopback_dev): Remove close method.
1915 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
1917 Disable EFI cursor when the EFI console becomes inactive.
1919 * term/efi/console.c (grub_efi_console_init): New function.
1920 (grub_efi_console_fini): New function.
1921 (grub_console_term_output): Register init and fini methods.
1923 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1925 * tests/util/grub-shell-tester.in: Remove bashism and declare as
1928 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1930 * disk/loopback.c (grub_loopback): Replace filename with file.
1931 (delete_loopback): Handle new semantics.
1932 (grub_cmd_loopback): Likewise.
1933 (grub_loopback_iterate): Likewise.
1934 (grub_loopback_close): Likewise.
1936 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1938 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
1940 Reported by: Tito Keitel.
1942 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1944 * docs/grub.texi (Naming convention): Document new naming convention.
1946 2010-07-20 Vadim Solomin <vadic052@gmail.com>
1947 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
1949 Generate device.map in something closer to the old ordering.
1951 * util/deviceiter.c (struct device): New declaration.
1952 (compare_file_names): Rename to ...
1953 (compare_devices): ... this. Sort by kernel name in preference to
1954 the stable by-id name, but keep the latter as a fallback comparison.
1955 Update header comment.
1956 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
1957 of `struct device' rather than of plain file names.
1959 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
1961 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
1964 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1966 * commands/acpi.c (setup_common_tables): Use sizeof instead of
1968 (setv1table): Likewise.
1970 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
1972 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
1973 removing the homehost if present.
1974 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
1975 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
1976 removing the homehost if present.
1977 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
1979 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
1981 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
1982 parameter. Set its pointer target to 0.
1983 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
1984 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
1985 `data_offset' value from the superblock for 1.x metadata.
1986 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
1988 (insert_array): Record the start sector of data on the device.
1989 (grub_raid_register): Pass start_sector parameters to
1990 grub_raid_list->detect and insert_array.
1991 * include/grub/raid.h (struct grub_raid_array): Add start_sector
1993 (struct grub_raid): Add start_sector parameter to `detect'.
1995 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
1996 __attribute__ ((packed)), leaving a comment.
1997 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
1998 (grub_mdraid_detect_09): ... here and ...
1999 (grub_mdraid_detect_1x): ... here.
2001 2010-07-20 Peter Henn <peter.henn@web.de>
2003 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
2004 chunk size and disk size, which are already given as sector counts
2005 as distinct from the 0.90 units. Fetch the correct device number
2006 from the role table instead of using the table index.
2008 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
2010 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
2011 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
2012 (WriteMostly1): New macro.
2013 Set array->name to NULL for metadata format 0.90. Add support for
2014 metadata 1.x. Fix some comments.
2015 * disk/raid.c (): Add support for name based RAID arrays. Fix a
2017 * util/getroot.c (grub_util_get_grub_dev): Add support for
2018 /dev/md/name style devices.
2020 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2022 * .bzrignore: Ignore 20_linux_xen.
2024 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
2026 * util/import_unicode.py: Remove unnecessary imports.
2028 2010-07-17 Aleš Nesrsta <starous@volny.cz>
2030 Hotplugging and USB hub support.
2032 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
2033 (grub_ohci): Likewise.
2034 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
2035 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
2036 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
2037 (GRUB_OHCI_CTRL_EDS): Likewise.
2038 (GRUB_OHCI_BULK_EDS): Likewise.
2039 (GRUB_OHCI_TDS): Likewise.
2040 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
2041 (grub_ohci_ed_phys2virt): New function.
2042 (grub_ohci_virt_to_phys): Likewise.
2043 (grub_ohci_td_phys2virt): Likewise.
2044 (grub_ohci_td_virt2phys): Likewise.
2045 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
2047 (grub_ohci_find_ed): New function.
2048 (grub_ohci_alloc_td): Likewise.
2049 (grub_ohci_free_td): Likewise.
2050 (grub_ohci_free_tds): Likewise.
2051 (grub_ohci_transfer): Use previously allocated memory.
2052 (grub_ohci_portstatus): Reset status changed bit.
2053 (grub_ohci_detect_dev): Supply status changed.
2054 (grub_ohci_fini_hw): Free memory.
2055 (grub_ohci_restore_hw): Reallocate memory.
2056 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
2057 Reset status change.
2058 (grub_uhci_detect_dev): Supply status_change.
2059 * bus/usb/usb.c (attach_hooks): New var.
2060 (grub_usb_device_attach): New function.
2061 (grub_usb_register_attach_hook_class): Likewise.
2062 (grub_usb_unregister_attach_hook_class): Likewise.
2063 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
2064 (grub_usb_add_hub): Reset connection changed bit.
2065 (attach_root_port): New function.
2066 (grub_usb_root_hub): Likewise.
2067 (poll_nonroot_hub): Likewise.
2068 (grub_usb_poll_devices): Likewise.
2069 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
2070 * disk/usbms.c (grub_usbms_open): Use device hooks.
2071 (grub_usbms_iterate) :Poll devices.
2072 (grub_usbms_finddevs): Split into ...
2073 (grub_usbms_attach): ... this ...
2074 (grub_usbms_attach): ... and this.
2075 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
2077 (grub_usb_interface): New fields attached and detach_hook.
2078 (grub_usb_attach_hook_class): New type.
2079 (grub_usb_attach_desc): New struct.
2080 (grub_usb_register_attach_hook_class): New function.
2081 (grub_usb_unregister_attach_hook_class): Likewise.
2082 (grub_usb_poll_devices): Likewise.
2083 (grub_usb_device_attach): Likewise.
2084 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
2085 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
2087 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
2089 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
2090 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
2091 delta determination style. Works with most NetBSD partitions too.
2093 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
2095 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
2096 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
2098 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
2100 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
2102 2010-07-14 Anton Blanchard <anton@samba.org>
2104 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
2107 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
2109 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
2111 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
2113 * kern/partition.c (grub_partition_check_containment): New function to
2114 check that a partition is physically contained in a parent. Since
2115 offsets are relative (and non-negative), this reduces to checking that
2116 the partition ends before its parent.
2117 (grub_partition_map_probe): Discard out-of-range sub-partitions.
2118 (grub_partition_iterate): Likewise.
2119 * include/grub/partition.h (grub_partition_map): Slightly more detailed
2121 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
2122 partitions that start before their parent, and add debug printfs.
2124 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
2126 * Makefile.in (.SUFFIX): Spell correctly, as ...
2127 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
2128 bare module name without `.mod', e.g. `test') tried to invoke a
2131 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
2133 * README: Point to the Info manual.
2135 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
2137 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
2138 2nd superblock position from partition size.
2140 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
2142 * Makefile.in (MAINTAINER_CLEANFILES): Remove
2143 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
2144 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
2147 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2149 Restructure SCSI .id handling.
2150 Reported and tested by: Aleš Nesrsta.
2152 * disk/ata.c (grub_atapi_close): Removed. All users updated.
2153 (grub_atapi_dev): Changed .name to "ata". New field .id.
2154 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
2155 (grub_usbms_dev): New field .id.
2156 * disk/scsi.c (grub_scsi_iterate): Generate name.
2157 (grub_scsi_open): Parse name.
2158 * include/grub/scsi.h (grub_make_scsi_id): New function.
2159 (grub_scsi_dev): Change iterate and open to number instead of naming
2160 busses. All users updated.
2161 (grub_scsi): Remove name. Add .bus.
2163 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2165 * commands/help.c (grub_cmd_help): Fix a typo.
2167 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2169 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
2170 Reported and tested by: Colin Watson.
2172 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2174 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
2177 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2179 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
2181 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
2183 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
2186 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2188 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
2189 and disk/raid6_recover.c.
2190 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2191 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2193 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2195 * term/gfxterm.c (repaint_schedulded): Rename to ...
2196 (repaint_scheduled): ... this. Update all callers.
2197 (repaint_was_schedulded): Rename to ...
2198 (repaint_was_scheduled): ... this. Update all callers.
2200 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2202 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
2203 which we expect to be handled by upper layers.
2205 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
2207 * bus/usb/usbhub.c: #include time.h header.
2209 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2211 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
2212 entry_name also for entries without stat blocks (e.g. ".."); fixes
2213 corruption of the first entry in a directory.
2215 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2217 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
2218 after setting gfxterm as the active terminal. GRUB_BACKGROUND
2219 doesn't work otherwise.
2221 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2223 * docs/grub.texi (Features): Update list of supported file systems.
2224 (GNU/Linux): Update for GRUB 2.
2225 (Serial terminal): Remove mention of --disable-serial, which was a
2226 GRUB Legacy configure option. Update instructions to use
2227 `terminal_input' and `terminal_output' rather than `terminal'.
2228 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
2229 configuration' and `Installing GRUB using grub-install'.
2230 (Menu entry editor): Update for GRUB 2.
2231 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
2232 Document new -a, -u, and -v options.
2233 (initrd): New section.
2234 (initrd16): New section.
2235 (linux): New section.
2236 (linux16): New section.
2237 (search): The `var' argument to `--set' is optional.
2238 (GRUB only offers a rescue shell): Go into a little more detail on
2241 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2243 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
2245 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2247 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
2248 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
2250 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2252 * util/i386/pc/grub-setup.c (setup): Rename prefix to
2253 install_prefix, in line with install_dos_part and install_bsd_part.
2254 Add new prefix variable, which is copied to install_prefix after
2255 comparing core.img in memory with the one read from disk in the
2256 no-embedding case, and use that rather than overwriting
2257 install_prefix immediately when installing to a partition.
2258 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
2261 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
2263 * configure.ac: Avoid == in test command, it's not portable.
2264 * util/grub.d/30_os-prober.in: Likewise.
2266 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
2268 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
2270 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
2272 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
2273 multiple (top-level) partmaps.
2275 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2277 * util/i386/efi/grub-install.in: Don't use empty grub_device.
2278 Reported by: Tino Keitel.
2280 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2282 Bidi and diacritics support.
2284 * Makefile.in (widthspec.bin): New target.
2285 (widthspec.h): Likewise.
2286 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
2287 * autogen.sh: Generate unidata.c.
2288 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
2289 * commands/ls.c (grub_ls_list_devices): Likewise.
2290 (grub_ls_list_files): Likewise.
2291 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
2292 (grub_mini_cmd_lsmod): Likewise.
2293 * commands/read.c: Likewise.
2294 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
2295 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
2296 * lib/arg.c (grub_arg_show_help): Likewise.
2297 * lib/crypto.c (grub_password_get): Likewise.
2298 * normal/auth.c (grub_username_get): Likewise.
2299 * normal/misc.c (grub_normal_print_device_info): Likewise.
2300 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
2301 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
2302 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
2303 (normal/charset.c_DEPENDENCIES): New variable.
2304 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
2305 (pkglib_MODULES): Remove charset.mod.
2306 (charset_mod_SOURCES): Removed.
2307 (charset_mod_CFLAGS): Likewise.
2308 (charset_mod_LDFLAGS): Likewise.
2309 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
2310 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
2312 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
2313 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
2314 (kernel_img_HEADERS): Add terminfo.h.
2315 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
2316 Fill ->font. Reverse ascii bitmaps.
2317 (grub_font_get_xheight): New function.
2318 * font/font.c (grub_font_get_string_width): Moved from here ...
2319 * gfxmenu/font.c (grub_font_get_string_width): ... here.
2320 * font/font.c (grub_font_draw_string): Moved from here ...
2321 * gfxmenu/font.c (grub_font_draw_string): ... here.
2322 * font/font.c (grub_font_dup_glyph): New function.
2323 (grub_font_blit_glyph): Likewise.
2324 (grub_font_blit_glyph_mirror): Likewise.
2325 (blit_comb): Likewise.
2326 (grub_font_construct_dry_run): Likewise.
2327 (grub_font_get_constructed_device_width): Likewise.
2328 (grub_font_construct_glyph): Likewise.
2329 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
2330 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
2331 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
2332 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
2333 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
2334 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
2335 (grub_font_get_xheight): New proto.
2336 (grub_font_get_constructed_device_width): Likewise.
2337 (grub_font_construct_glyph): Likewise.
2338 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
2339 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
2340 * include/grub/font.h (grub_font_draw_string): Moved from here ...
2341 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
2342 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
2343 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
2344 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
2345 (grub_console_getcharwidth): Likewise.
2346 * include/grub/misc.h (grub_xputs): New proto.
2347 (grub_puts): Inlined.
2348 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
2349 (grub_normal_get_line_counter): Removed.
2350 (grub_install_newline_hook): Likewise.
2351 (grub_normal_get_char_counter): New proto.
2352 (grub_normal_reset_more): Likewise.
2353 (grub_xputs_normal): Likewise.
2354 * include/grub/powerpc/ieee1275/console.h: Removed.
2355 * include/grub/sparc64/ieee1275/console.h: Likewise.
2356 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
2357 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
2358 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
2359 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
2360 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
2361 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
2362 (grub_term_input): Pass reference to self. All users updated.
2363 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
2364 Pass reference to self. New fields normal_color, highlight_color and
2365 data. All users updated.
2366 (grub_putchar): Removed.
2367 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
2368 (grub_unicode_estimate_width): New function.
2369 (grub_term_getcharwidth): Add defaults.
2370 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
2371 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
2372 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
2373 (grub_cls): Remove EXPORT_FUNC.
2374 (grub_setcolorstate): Inline.
2375 (grub_newline_hook): Removed.
2376 * include/grub/terminfo.h: Rewritten. All users updated.
2377 * include/grub/unicode.h: New file.
2378 * include/grub/video.h (grub_video_signed_rect): New type.
2379 * kern/emu/console.c (grub_console_highlight_color): Removed.
2380 (grub_console_normal_color): Likewise.
2381 (grub_console_standard_color): Made static.
2382 (grub_ncurses_putchar): Remove mapping.
2383 (grub_ncurses_getcharwidth): Removed.
2384 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
2385 (grub_ncurses_setcolor): Removed.
2386 (grub_ncurses_getcolor): Likewise.
2387 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
2388 (grub_console_putchar): ... this.
2389 (grub_console_putchar): Handle argument difference.
2390 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
2391 console_init_early and console_init_lately.
2392 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
2393 * kern/misc.c (grub_puts): Removed.
2394 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
2395 (grub_vsnprintf_real): Remove str = NULL support.
2396 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
2397 * normal/charset.c (grub_utf8_to_ucs4): ... here.
2398 * kern/term.c (grub_putcode): Renamed to ...
2399 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
2400 (grub_putchar): Removed.
2401 (grub_xputs_dumb): New function.
2402 (grub_xputs): New variable.
2403 * lib/charset.c: Move from here ...
2404 * normal/charset.c: ... to here.
2405 (grub_ucs4_to_utf8): New function.
2406 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
2407 (join_types): New variable.
2408 (unpack_join): New function.
2409 (bidi_types): New variable.
2410 (unpack_bidi): New function.
2411 (get_bidi_type): Likewise.
2412 (get_join_type): Likewise.
2413 (is_mirrored): Likewise.
2414 (grub_unicode_get_comb_type): Likewise.
2415 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
2416 (is_type_after): Likewise.
2417 (grub_unicode_aglomerate_comb): Likewise.
2418 (bidi_line_wrap): Likewise.
2419 (grub_bidi_line_logical_to_visual): Likewise.
2420 (grub_bidi_logical_to_visual): Likewise.
2421 (grub_unicode_mirror_code): Likewise.
2422 (grub_unicode_shape_code): Likewise.
2423 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
2424 Don't use grub_putchar.
2425 * normal/main.c (grub_normal_init_page): Use grub_putcode.
2426 (grub_normal_reader_init): Likewise.
2427 (grub_xputs_saved): New variable.
2428 (GRUB_MOD_INIT): Set grub_xputs.
2429 (GRUB_MOD_FINI): Restore grub_xputs.
2430 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
2431 (menu_init): Avoid printing gfxmenu error.
2432 (show_menu): Use grub_normal_get_char_counter.
2433 * normal/menu_entry.c (update_screen): Fix out-of-array.
2434 (complete): Avoid NULL dereferencing.
2435 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
2436 * normal/menu_text.c (print_spaces): Removed.
2437 (grub_print_ucs4): Likewise.
2438 (grub_print_message_indented): Use grub_print_ucs4.
2439 (print_message): Use grub_putcode.
2440 (print_entry): Hanlde diacritics.
2441 * normal/term.c (term_state): New type.
2442 (grub_more_lines): Removed.
2443 (term_states): New variable.
2444 (grub_normal_line_counter): Renamed to ..
2445 (grub_normal_char_counter): ...this. All users updated.
2446 (grub_normal_get_line_counter): Renamed to ...
2447 (grub_normal_get_char_counter): ... this.
2448 (grub_normal_reset_more): New function.
2449 (process_newline): Removed.
2450 (print_more): New function.
2451 (grub_install_newline_hook): Removed.
2452 (map_code): New function.
2453 (grub_puts_terminal): Use grub_print_ucs4.
2454 (putglyph): New function.
2455 (putcode_real): Likewise.
2456 (grub_putcode): Use putcode_real.
2457 (get_maxwidth): New function.
2458 (get_startwidth): Likewise.
2459 (print_ucs4_terminal): Likewise.
2460 (find_term_state): Likewise.
2461 (put_glyphs_terminal): Likewise.
2462 (print_backlog): Likewise.
2463 (print_ucs4_real): Likewise.
2464 (grub_print_ucs4): Likewise.
2465 (grub_xputs_normal): Likewise.
2466 * term/efi/console.c (grub_console_putchar): Output diacritics.
2467 (grub_console_getcharwidth): Removed.
2468 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
2469 * term/gfxterm.c (clear_char): Free chars.
2470 (scroll_up): Avoid leaking memory.
2471 (grub_gfxterm_putchar): Support diacritics.
2472 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
2473 * term/i386/pc/console.c (grub_console_term_output): Declare as
2474 GRUB_TERM_CODE_TYPE_VGA.
2475 * term/i386/pc/vga.c (grub_vga_term): Declare as
2476 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
2477 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
2478 GRUB_TERM_CODE_TYPE_VGA.
2479 * term/i386/vga_common.c (map_char): Removed.
2480 (grub_console_putchar): Likewise.
2481 (grub_console_getcharwidth): Likewise.
2482 * term/ieee1275/ofconsole.c: Simplify using terminfo.
2483 (colors): Reordered to match terminfo.
2484 (grub_ofconsole_normal_color): Removed.
2485 (grub_ofconsole_writeesc): Likewise.
2486 (grub_ofconsole_highlight_color): Likewise.
2487 (grub_ofconsole_getcharwidth): Likewise.
2488 (grub_ofconsole_setcolorstate): Likewise.
2489 (grub_ofconsole_setcolor): Likewise.
2490 (grub_ofconsole_getcolor): Likewise.
2491 (grub_ofconsole_readkey): Renamed to ...
2492 (readkey): ... this. Remove escape sequence handling. Return -1 on no
2494 (grub_ofconsole_checkkey): Removed.
2495 (grub_ofconsole_getkey): Likewise.
2496 (grub_ofconsole_getxy): Likewise.
2497 (grub_ofconsole_gotoxy): Likewise.
2498 (grub_ofconsole_cls): Likewise.
2499 (grub_ofconsole_refresh): Likewise.
2500 (grub_ofconsole_terminfo_input): New struct.
2501 (grub_ofconsole_terminfo_output): Likewise.
2502 (grub_ofconsole_term_input): Use terminfo.
2503 (grub_ofconsole_term_output): Likewise.
2504 (grub_console_init): Split into ...
2505 (grub_console_init_early): ...this and ...
2506 (grub_console_init_lately): ...this. Use terminfo.
2507 (grub_ofconsole_putchar): Renamed to ...
2508 (put): ... this. Remove mapping.
2509 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
2510 * term/serial.c: Simplify using terminfo.
2513 (keep_track): Likewise.
2514 (registered): Likewise.
2515 (input_buf): Likewise.
2516 (npending): Likewise.
2517 (serial_translate_key_sequence): Likewise.
2518 (fill_input_buf): Likewise.
2519 (grub_serial_checkkey): Likewise.
2520 (grub_serial_getkey): Likewise.
2521 (grub_serial_getxy): Likewise.
2522 (grub_serial_gotoxy): Likewise.
2523 (grub_serial_putchar): Likewise.
2524 (grub_serial_cls): Likewise.
2525 (grub_serial_setcolorstate): Likewise.
2526 (grub_serial_setcursor): Likewise.
2527 (serial_hw_init): Use serial_hw_fetch.
2528 (grub_serial_terminfo_input): New variable.
2529 (grub_serial_terminfo_output): Likewise.
2530 (grub_serial_term_input): Use terminfo.
2531 (grub_serial_term_output): Likewise.
2532 * term/terminfo.c (putstr): Use put.
2533 (grub_terminfo_all_free): New function
2534 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
2535 (grub_terminfo_output_register): New function.
2536 (grub_terminfo_output_unregister): Likewise.
2537 (grub_terminfo_getxy): Likewise.
2538 (grub_terminfo_readkey): Likewise.
2539 (grub_terminfo_checkkey): Likewise.
2540 (grub_terminfo_getkey): Likewise.
2541 (grub_terminfo_input_init): Likewise.
2542 (print_terminfo): Likewise.
2543 (grub_cmd_terminfo): Handle encoding.
2544 (grub_terminfo_gotoxy): Track position.
2545 (grub_terminfo_cls): Likewise.
2546 (grub_terminfo_putchar): Likewise.
2547 (grub_terminfo_setcolorstate): Handle colors
2548 (grub_terminfo_cursor_on): This ...
2549 (grub_terminfo_cursor_off): ... and this merged into ...
2550 (grub_terminfo_setcursor): ... this.
2551 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
2552 * unicode/ArabicShaping.txt: New file (imported from Unicode).
2553 * unicode/BidiMirroring.txt: Likewise.
2554 * unicode/UnicodeData.txt: Likewise.
2555 * unicode/COPYING: Likewise.
2556 * util/grub-editenv.c (grub_putchar): Removed.
2557 (grub_xputs_real): New function.
2558 (grub_xputs): New variable.
2559 * util/grub-fstest.c (grub_putchar): Removed.
2560 (grub_xputs_real): New function.
2561 (grub_xputs): New variable.
2562 * util/grub-mkdevicemap.c (grub_putchar): Removed.
2563 (grub_xputs_real): New function.
2564 (grub_xputs): New variable.
2565 * util/grub-probe.c (grub_putchar): Removed.
2566 (grub_xputs_real): New function.
2567 (grub_xputs): New variable.
2568 * util/grub-script-check.c (grub_putchar): Removed.
2569 (grub_xputs_real): New function.
2570 (grub_xputs): New variable.
2571 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
2572 (grub_xputs_real): New function.
2573 (grub_xputs): New variable.
2574 * util/import_unicode.py: New file.
2575 * util/grub-mkfont.c (ft_errmsgs): New array.
2576 (grub_glyph_info): Make bitmap a pointer.
2577 (file_formats): New type WIDTH_SPEC.
2578 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
2579 (options): Add width-spec.
2581 (add_char): Renamed to ...
2582 (add_glyph): ... this.
2583 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
2584 (glyph_replace): New type.
2585 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
2586 (add_char): New function.
2587 (add_subst): Likewise.
2588 (process_cursive): Likewise.
2589 (add_font): Handle GSUB.
2590 (write_font_width_spec): New function.
2591 (main): Sort glyphs.
2592 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
2593 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
2594 * kern/term.c (grub_cls): Moved from here...
2595 * normal/term.c (grub_cls): ... here.
2597 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2599 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
2600 suitable for using within the format argument of printf when
2601 converting grub_size_t.
2602 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
2603 "x" to convert grub_size_t arguments.
2605 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2607 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
2609 (list_get_minimal_size): Take selection box into account.
2611 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2613 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
2616 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2618 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
2619 devices when iterating over /dev/disk/by-id; they will be handled
2620 later if appropriate, which they aren't always (e.g. LVM).
2622 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2624 * include/grub/misc.h (grub_reboot): Declare as noreturn.
2625 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
2627 (grub_halt): Likewise.
2628 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
2630 (grub_halt): Don't return, even if all of shut-down, power-off, and
2633 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2635 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
2636 arguments, not three.
2638 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2640 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
2641 * util/grub.d/10_linux.in: Use it to check for LVM, so that
2642 LVM-on-RAID is handled correctly.
2644 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2646 * docs/grub.texi (Changes from GRUB Legacy): New section.
2649 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2651 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
2652 grub.d/README accidentally ends up executable for one reason or
2655 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2657 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
2658 (gpt_partition_map_iterate): Support non-512B sectors.
2660 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2662 * kern/efi/init.c (grub_efi_init): Disable watchdog.
2663 Tested by: Seth Goldberg.
2665 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2667 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
2669 Reported by: Seth Goldberg.
2671 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
2673 * util/grub-mkrescue.in: Avoid module duplication.
2675 2010-07-01 Sean Finney <seanius@seanius.net>
2677 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
2679 2010-07-01 Sean Finney <seanius@seanius.net>
2681 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
2683 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
2685 * disk/lvm.c (grub_lvm_checkvalue): New function.
2686 (grub_lvm_check_flag): Likewise.
2688 2010-07-01 Robert Millan <rmh@gnu.org>
2690 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
2691 Support 'p' as partition separator on kernel of FreeBSD (used
2693 (grub_util_biosdisk_get_grub_dev): Likewise.
2695 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
2697 Yeeloong firmware port.
2699 * boot/mips/yeeloong/fwstart.S: New file.
2700 * bus/cs5536.c (gpiodump): New const.
2701 (set_io_space): New function.
2702 (set_iod): Likewise.
2703 (set_p2d): Likewise.
2704 (grub_cs5536_init_geode): Likewise.
2705 * commands/mips/yeeloong/lsspd.c: New file.
2706 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
2707 (serial_mod_SOURCES): New variable.
2708 (serial_mod_CFLAGS): Likewise.
2709 (serial_mod_LDFLAGS): Likewise.
2710 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
2711 term/terminfo.c and term/tparm.c.
2712 (pkglib_IMAGES): Add fwstart.img.
2713 (fwstart_img_SOURCES): New variable.
2714 (fwstart_img_CFLAGS): Likewise.
2715 (fwstart_img_ASFLAGS): Likewise.
2716 (fwstart_img_LDFLAGS): Likewise.
2717 (fwstart_img_FORMAT): Likewise.
2718 (pkglib_MODULES): Add lsspd.mod.
2719 (lsspd_mod_SOURCES): New variable.
2720 (lsspd_mod_CFLAGS): Likewise.
2721 (lsspd_mod_LDFLAGS): Likewise.
2722 (pkglib_MODULES): Add halt.mod.
2723 (halt_mod_SOURCES): New variable.
2724 (halt_mod_CFLAGS): Likewise.
2725 (halt_mod_LDFLAGS): Likewise.
2726 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
2727 (serial_mod_SOURCES): Removed.
2728 (serial_mod_CFLAGS): Likewise.
2729 (serial_mod_LDFLAGS): Likewise.
2730 * disk/ata.c (check_device): New function.
2731 (grub_ata_device_initialize): Use check_device.
2732 (grub_ata_iterate): Recheck devices.
2733 (grub_ata_open): Likewise.
2734 (grub_atapi_iterate): Likewise.
2735 (grub_atapi_open): Likewise.
2736 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
2737 (GRUB_ATA_CH1_PORT1): Likewise.
2738 (GRUB_ATA_CH0_PORT2): Likewise.
2739 (GRUB_ATA_CH1_PORT2): Likewise.
2740 * include/grub/mips/loongson.h: New file.
2741 * include/grub/mips/yeeloong/ec.h: Likewise.
2742 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
2743 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
2744 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
2745 * include/grub/misc.h (grub_halt): Declare as noreturn.
2746 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
2747 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
2748 (UART_ENABLE_FIFO_TRIGGER1): New definition.
2749 (UART_ENABLE_DTRRTS): Likewise.
2750 (UART_ENABLE_MODEM): Removed.
2751 (UART_ENABLE_OUT2): New const.
2752 * include/grub/term.h (grub_term_register_input_active): New function.
2753 (grub_term_register_output_active): Likewise.
2754 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
2756 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
2757 (init_pci): New function.
2758 (grub_machine_init): Execute platform init when firmware. Init serial.
2759 (grub_halt): Implement.
2760 (grub_exit): Likewise.
2761 (grub_reboot): Likewise.
2762 * term/serial.c (serial_hw_init): Update macros.
2763 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
2764 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
2765 (image_targets): New target mipsel-yeeloong-flash.
2766 (generate_image): Support IMAGE_YEELOONG_FLASH.
2767 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
2768 (grub_video_sm712_setup): Init card.
2769 (grub_video_sm712_set_palette): Removed.
2770 * video/sm712_init.c: New file.
2772 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
2774 * Makefile.in (install-local): Temporarily prepend $(builddir) to
2775 PATH when running help2man and then run it on the unadorned
2776 executable names, rather than passing $(builddir)/* paths to
2777 help2man. This avoids the build directory ending up in generated
2780 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
2782 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
2783 to avoid accidents when debugging with 'sh -x'.
2784 * util/grub-mkrescue.in: Likewise.
2785 * util/grub.d/00_header.in: Likewise.
2786 * util/grub.d/10_hurd.in: Likewise.
2787 * util/grub.d/10_kfreebsd.in: Likewise.
2788 * util/grub.d/10_linux.in: Likewise.
2789 * util/grub.d/10_netbsd.in: Likewise.
2790 * util/grub.d/10_windows.in: Likewise.
2791 * util/grub.d/20_linux_xen.in: Likewise.
2792 * util/grub.d/30_os-prober.in: Likewise.
2793 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2795 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
2797 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
2798 last character in the buffer.
2799 Reported by: Vladimir Serbinenko.
2801 2010-06-29 Robert Millan <rmh@gnu.org>
2803 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
2804 (Command-line and menu entry commands): Document `badram' command.
2806 2010-06-28 Robert Millan <rmh@gnu.org>
2808 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
2809 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
2810 command using ${GRUB_BADRAM} as parameter.
2812 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
2814 * docs/grub.texi (Device map): New section.
2815 (Themes): New section (stub).
2816 * Makefile.in (docs/grub.info): The info documentation now builds
2817 without errors. Make sure it stays that way.
2819 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2821 Use normal parser for menu entries.
2822 Reported by: Thomas Frauendorfer
2824 * include/grub/parser.h (grub_parser_execute): Don't export.
2825 * normal/menu.c (grub_menu_execute_entry_real): New function.
2826 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
2828 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
2830 * docs/grub.texi (Embedded configuration): New section (replacing
2831 old "Preset Menu" stub).
2832 (Images): New section.
2833 (configfile): Note that any menu entries defined in `file' are shown
2836 2010-06-28 Josh Triplett <josh@joshtriplett.org>
2838 * mmap/i386/pc/mmap_helper.S: Set CF on return.
2840 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
2842 * util/grub-install.in: Add --debug-image= option.
2844 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
2846 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
2849 * util/deviceiter.c (check_device): Rename to ...
2850 (check_device_readable_unique): ... this. Update all callers.
2851 Maintain and check a list of which devices (by canonicalized name)
2852 have already been seen.
2853 (clear_seen_devices): New function.
2854 (compare_file_names) [__linux__]: New function.
2855 (grub_util_iterate_devices): Clear the list of seen devices on exit
2856 and (just in case) on entry.
2857 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
2858 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
2859 seen-devices list, superseded by general code in check_device.
2861 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
2863 * commands/cat.c (options): New variable.
2864 (grub_cmd_cat): Parse options. If the --dos option is given, print
2865 DOS-style "\r\n" line endings as simple newlines (Debian bug
2867 (GRUB_MOD_INIT): Use extcmd.
2868 (GRUB_MOD_FINI): Likewise.
2869 * docs/grub.texi (cat): Document --dos.
2871 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2873 XEN with Linux grub-mkconfig support.
2875 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
2876 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
2877 GRUB_CMDLINE_XEN_DEFAULT.
2878 * util/grub.d/20_linux_xen.in: New file.
2880 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2882 Initialise VGA video on qemu ourselves.
2884 * boot/i386/qemu/boot.S: Don't call 0xc000.
2885 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
2886 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
2887 (kernel_img_HEADERS): Add pci.h.
2888 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
2889 * configure.ac: Force unifont on qemu and yeeloong.
2890 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
2891 (grub_vga_palette_write): Use correct register.
2892 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
2893 Call grub_qemu_init_cirrus.
2894 * kern/i386/qemu/init.c: New file.
2895 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
2897 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
2899 2010-06-26 Pavel Roskin <proski@gnu.org>
2901 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
2904 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
2906 * docs/grub.texi (Simple configuration): Explain that
2907 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
2908 set to `true' to disable their respective recovery entries, not
2911 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
2913 Make the `source' command slightly faster.
2915 * normal/main.c (grub_normal_execute): Don't re-read list files when
2918 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
2920 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
2921 field position and mask size to red fields from mode_info, not
2923 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
2924 Remove redundant tag->common.framebuffer_type assignment.
2925 Reported by: Seth Goldberg.
2927 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
2929 Sync up other versions of the Linux loader with Robert Millan's
2930 change of 2010-01-09, "Make loader output a bit more user-friendly".
2932 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
2934 (grub_cmd_linux): Likewise.
2935 (grub_cmd_initrd): Likewise.
2936 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
2937 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2939 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
2941 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
2942 larger than MEMORY_MAP_SIZE.
2944 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
2948 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
2950 * script/parser.y: #include grub_script.tab.h header.
2952 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2954 Support >3GiB and <16MiB RAM in i386-qemu.
2956 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
2957 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
2958 (grub_lower_mem): Removed.
2959 (grub_upper_mem): Likewise.
2960 (mem_size): Made static.
2961 (above_4g): New variable.
2962 (grub_machine_mmap_init): Detect small mem_size and above_4g.
2963 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
2966 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2968 Cirrus 5446 and Bochs video cards support.
2970 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
2972 (video_cirrus_mod_SOURCES): New variable.
2973 (video_cirrus_mod_CFLAGS): Likewise.
2974 (video_cirrus_mod_LDFLAGS): Likewise.
2975 (video_bochs_mod_SOURCES): Likewise.
2976 (video_bochs_mod_CFLAGS): Likewise.
2977 (video_bochs_mod_LDFLAGS): Likewise.
2978 * include/grub/vga.h: New file.
2979 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
2980 (grub_video_fb_set_page_t): New type.
2981 (grub_video_fb_setup): New prototype.
2982 (grub_video_fb_swap_buffers): Likewise.
2983 (grub_video_fb_get_info_and_fini): Likewise.
2984 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
2985 (CRTC_DATA_PORT): Likewise.
2986 (CRTC_CURSOR): Likewise.
2987 (CRTC_CURSOR_ADDR_HIGH): Likewise.
2988 (CRTC_CURSOR_ADDR_LOW): Likewise.
2989 (CRTC_CURSOR_DISABLE): Likewise.
2990 (update_cursor): Use grub_vga_cr_write.
2991 (grub_vga_text_setcursor): Likewise.
2992 * video/bochs.c: New file.
2993 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
2994 (palette): Likewise.
2995 (palette_size): Likewise.
2996 (framebuffer): New variable.
2997 (grub_video_fb_init): Use 'framebuffer'.
2998 (grub_video_fb_fini): Likewise.
2999 (grub_video_fb_get_info): Likewise.
3000 (grub_video_fb_get_palette): Likewise.
3001 (grub_video_fb_set_palette): Likewise.
3002 (grub_video_fb_set_viewport): Likewise.
3003 (grub_video_fb_get_viewport): Likewise.
3004 (grub_video_fb_map_color): Likewise.
3005 (grub_video_fb_map_rgb): Likewise.
3006 (grub_video_fb_map_rgba): Likewise.
3007 (grub_video_fb_unmap_color): Likewise.
3008 (grub_video_fb_unmap_color_int): Likewise.
3009 (grub_video_fb_fill_rect): Likewise.
3010 (grub_video_fb_blit_bitmap): Likewise.
3011 (grub_video_fb_blit_render_target): Likewise.
3012 (grub_video_fb_scroll): Likewise.
3013 (grub_video_fb_create_render_target): Likewise.
3014 (grub_video_fb_doublebuf_blit_init): Likewise.
3015 (grub_video_fb_set_active_render_target): Handle doublebuffering.
3016 (doublebuf_pageflipping_update_screen): New function.
3017 (doublebuf_pageflipping_init): Likewise.
3018 (grub_video_fb_setup): Likewise.
3019 (grub_video_fb_swap_buffers): Likewise.
3020 (grub_video_fb_get_info_and_fini): Likewise.
3021 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
3023 (doublebuf_pageflipping_commit): Restructured into ...
3024 (doublebuf_pageflipping_set_page): ... this.
3025 (doublebuf_pageflipping_update_screen): Removed.
3026 (doublebuf_pageflipping_init): Likewise.
3027 (double_buffering_init): Likewise.
3028 (grub_video_vbe_setup): Use grub_video_fb_setup.
3029 (grub_video_vbe_swap_buffers): Removed.
3030 (grub_video_vbe_set_active_render_target): Likewise.
3031 (grub_video_vbe_get_active_render_target): Likewise.
3032 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
3033 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
3034 grub_video_fb_set_active_render_target and
3035 grub_video_fb_get_active_render_target.
3036 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
3037 (SEQUENCER_DATA_PORT): Likewise.
3038 (MAP_MASK_REGISTER): Likewise.
3039 (CRTC_ADDR_PORT): Likewise.
3040 (CRTC_DATA_PORT): Likewise.
3041 (START_ADDR_HIGH_REGISTER): Likewise.
3042 (START_ADDR_LOW_REGISTER): Likewise.
3043 (GRAPHICS_ADDR_PORT): Likewise.
3044 (GRAPHICS_DATA_PORT): Likewise.
3045 (READ_MAP_REGISTER): Likewise.
3046 (INPUT_STATUS1_REGISTER): Likewise.
3047 (INPUT_STATUS1_VERTR_BIT): Likewise.
3048 (get_map_mask): Use grub_vga_sr_read.
3049 (set_map_mask): Use grub_vga_sr_write.
3050 (set_read_map): Use grub_vga_gr_write.
3051 (set_start_address): Use grub_vga_cr_write.
3052 * video/sm712.c (framebuffer): Remove leftover fields.
3054 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
3056 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
3057 setting GRUB_VIDEO_BACKEND. Make it available as a user override
3058 instead. Replace the gfxterm backend check with a check that
3059 ${GRUB_PREFIX}/video.lst is non-empty.
3060 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
3062 (load_video): New generated function. Call it before loading
3063 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
3064 * util/grub.d/10_linux.in (linux_entry): Call load_video.
3065 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
3066 * docs/grub.texi (Simple configuration): Document
3069 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3071 Use video functions in linux and xnu loaders.
3073 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
3074 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
3075 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
3076 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
3077 loader/i386/pc/linux.c.
3078 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
3079 (find_line_len): Removed.
3080 (find_framebuf): Likewise.
3081 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
3082 * loader/i386/efi/xnu.c: Removed.
3083 * loader/i386/pc/xnu.c: Moved from here...
3084 * loader/i386/xnu.c: ...here.
3086 Enable priorities in video drivers.
3088 * include/grub/video.h (grub_video_adapter_prio_t): New type.
3089 (grub_video_adapter): New field prio.
3090 (grub_video_register): Respect prio when inserting.
3091 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
3092 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
3093 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
3094 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
3095 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
3096 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
3097 * video/sm712.c (grub_video_sm712_adapter): Likewise.
3101 * include/grub/video.h (grub_video_driver_id_t): New value
3102 GRUB_VIDEO_DRIVER_SDL.
3103 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
3105 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3107 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
3109 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
3111 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3113 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
3114 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
3116 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3118 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
3119 directly, and recommend grub-install instead.
3120 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
3122 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3124 Fix i386-pc prefix handling with nested partitions (Debian bug
3125 #585068). Note that the case where the core image is booted using
3126 multiboot and relocated from its original location still requires
3129 * kern/i386/pc/init.c (make_install_device): If the prefix starts
3130 with "(,", fill the boot drive in between those two characters, but
3131 expect that a full partition specification including partition map
3133 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
3134 specified, write a prefix without the drive name but including a
3135 full partition specification.
3137 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
3139 * util/grub-mkconfig.in: Ignore non-option arguments, for
3140 compatibility with older versions (before 2010-06-12) which did the
3141 same. In particular, this makes it easier to ship an update-grub
3142 wrapper which is compatible with that used with GRUB Legacy (Debian
3145 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3147 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
3148 for manual page generation.
3150 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3152 * po/POTFILES: Remove leftover commands/handler.c.
3154 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
3156 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
3157 left this script non-functional.
3159 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
3161 * docs/man/grub-emu.h2m: New file.
3163 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
3165 * docs/grub.texi (Commands): Document reduced command set in rescue
3167 (cpuid): New section.
3169 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
3171 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
3172 new partition naming style.
3173 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
3175 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
3177 Add "-o grub.iso" like cmdline options support.
3179 * util/grub-install.in: Improve cmdline option parsing.
3180 * util/grub-mkconfig.in: Likewise.
3181 * util/grub-mkrescue.in: Likewise.
3182 * util/grub-reboot.in: Likewise.
3183 * util/grub-set-default.in: Likewise.
3184 * util/i386/efi/grub-install.in: Likewise.
3185 * util/ieee1275/grub-install.in: Likewise.
3186 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3188 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
3190 * .bzrignore: Ignore 41_custom.
3192 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
3194 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
3196 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
3198 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
3199 prototype declarations.
3201 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
3202 generating fs, partmap, and video lists.
3203 * include/grub/fs.h (grub_fs_register): Omit prototype if
3204 GRUB_LST_GENERATOR is defined.
3205 * include/grub/partition.h (grub_partition_map_register): Likewise.
3206 * include/grub/video.h (grub_video_register): Likewise.
3208 2010-06-12 Javier Martín <lordhabbit@gmail.com>
3210 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
3212 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
3214 * util/grub-mkrescue.in: Support --xorriso argument.
3216 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3218 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
3219 Suggested by: Thomas Schmitt.
3221 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3223 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
3224 Suggested by: Thomas Schmitt.
3226 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3230 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
3231 * util/grub.d/41_custom.in: New file.
3233 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
3235 * util/grub-mkrescue.in (make_image): Remove sh module, which has
3236 been merged back into normal.
3238 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
3240 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
3241 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
3243 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
3245 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
3246 when generating manual pages.
3247 * docs/man/grub-bin2h.h2m: New file.
3248 * docs/man/grub-editenv.h2m: New file.
3249 * docs/man/grub-fstest.h2m: New file.
3250 * docs/man/grub-install.h2m: New file.
3251 * docs/man/grub-macho2img.h2m: New file.
3252 * docs/man/grub-mkconfig.h2m: New file.
3253 * docs/man/grub-mkdevicemap.h2m: New file.
3254 * docs/man/grub-mkfont.h2m: New file.
3255 * docs/man/grub-mkimage.h2m: New file.
3256 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
3257 * docs/man/grub-mkrelpath.h2m: New file.
3258 * docs/man/grub-mkrescue.h2m: New file.
3259 * docs/man/grub-ofpathname.h2m: New file.
3260 * docs/man/grub-pe2elf.h2m: New file.
3261 * docs/man/grub-probe.h2m: New file.
3262 * docs/man/grub-reboot.h2m: New file.
3263 * docs/man/grub-script-check.h2m: New file.
3264 * docs/man/grub-set-default.h2m: New file.
3265 * docs/man/grub-setup.h2m: New file.
3267 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
3269 Use FOR_* macros instead of *_iterate whenever possible.
3271 * commands/handler.c: Removed.
3272 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
3273 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
3274 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3275 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
3276 (grub_probe_SOURCES): Remove kern/parser.c.
3277 (util/grub-script-check.c_DEPENDENCIES): Removed.
3278 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
3279 and grub_script_check_init.c.
3280 (grub_script_check_init.lst): Removed.
3281 (grub_script_check_init.h): Likewise.
3282 (grub_script_check_init.c): Likewise.
3283 (pkglib_MODULES): Remove handler.mod and sh.mod.
3284 (handler_mod_SOURCES): Removed.
3285 (handler_mod_CFLAGS): Likewise.
3286 (handler_mod_LDFLAGS): Likewise.
3287 (normal_mod_SOURCES): Remove normal/handler.c.
3288 Add script/main.c, script/script.c, script/execute.c,
3289 script/function.c, script/lexer.c, grub_script.tab.c
3290 and grub_script.yy.c.
3291 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3292 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3293 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
3294 (grub_setup_SOURCES): Remove kern/parser.c.
3295 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3296 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
3297 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
3298 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3299 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3300 (grub_setup_SOURCES): Remove kern/parser.c.
3301 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3302 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
3303 * include/grub/command.h (grub_command_iterate): Removed.
3304 (FOR_COMMANDS): New macro.
3305 * include/grub/dl.h (grub_dl): New member next.
3306 (grub_dl_iterate): Removed.
3307 (grub_dl_head): New variable declaration.
3308 (FOR_DL_MODULES): New macro.
3309 * include/grub/fs.h: Include list.h.
3310 (grub_fs): Make next first element.
3311 (grub_fs_list): New variable declaration.
3312 (grub_fs_register): Make inline.
3313 (grub_fs_unregister): Likewise.
3314 (grub_fs_iterate): Removed.
3315 (FOR_FILESYSTEMS): New macro.
3316 * include/grub/handler.h: Removed.
3317 * include/grub/list.h (grub_list_hook_t): Removed.
3318 (grub_list_test_t): Likewise.
3319 (grub_list_pop): Likewise.
3320 (grub_list_iterate): Likewise.
3321 (grub_list_insert): Likewise.
3322 (FOR_LIST_ELEMENTS): New macro.
3323 * include/grub/parser.h (grub_parser_class): Removed.
3324 (grub_parser_register): Likewise.
3325 (grub_parser_unregister): Likewise.
3326 (grub_parser_get_current): Likewise.
3327 (grub_parser_set_current): Likewise.
3328 (grub_register_rescue_parser): Likewise.
3329 (grub_rescue_parse_line): New function.
3330 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
3331 * include/grub/script_sh.h (grub_script_function_list): New variable
3333 (FOR_SCRIPT_FUNCTIONS): New macro.
3334 (grub_script_function_iterate): Removed.
3335 (grub_normal_parse_line): New prototype.
3336 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
3337 (FOR_DISABLED_TERM_INPUTS): Likewise.
3338 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
3339 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
3340 * include/grub/video.h (grub_video_adapter): Move 'next' to first
3342 (grub_video_register): Inline.
3343 (grub_video_unregister): Likewise.
3344 (grub_video_adapter_list): New variable declaration.
3345 (grub_video_iterate): Removed.
3346 (FOR_VIDEO_ADAPTERS): New macro.
3347 * kern/dl.c (grub_dl_list): Removed. All users updated.
3348 (grub_dl_iterate): Removed.
3349 * kern/fs.c (grub_fs_list): Make global.
3350 (grub_fs_register): Removed.
3351 (grub_fs_unregister): Likewise.
3352 (grub_fs_iterate): Likewise.
3353 * kern/handler.c: Removed.
3354 * kern/list.c (grub_list_pop): Removed.
3355 (grub_list_iterate): Likewise.
3356 (grub_list_insert): Likewise.
3357 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
3358 (grub_prio_list_insert): Don't use grub_list_insert.
3359 * kern/main.c (grub_register_rescue_parser): Don't call
3360 grub_register_rescue_parser.
3361 * kern/parser.c (grub_parser_class): Removed.
3362 (grub_parser_execute): Use grub_rescue_parse_line.
3363 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
3364 (grub_rescue_parser): Removed.
3365 (grub_register_rescue_parser): Likewise.
3366 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
3367 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
3368 (grub_auth_check_authentication): Likewise.
3369 * normal/completion.c (iterate_command): Removed.
3370 (grub_normal_do_completion): Use FOR_COMMANDS.
3371 * normal/handler.c: Removed.
3372 * normal/main.c (read_config_file): Remove parser changing.
3373 (grub_normal_execute): Don't call read_handler_list.
3374 (grub_normal_read_line_real): Statically allocate prompt.
3375 (grub_cmdline_run): Use grub_normal_parse_line.
3376 (GRUB_MOD_FINI): Don't call free_handler_list.
3377 * normal/menu_entry.c (run): Likewise.
3378 * script/function.c (grub_script_function_list): Make global.
3379 (grub_script_function_iterate): Removed.
3380 * script/main.c (grub_normal_parse_line): Make global.
3381 (grub_sh_parser): Removed.
3382 (GRUB_MOD_INIT): Likewise.
3383 (GRUB_MOD_FINI): Likewise.
3384 * tests/lib/functional_test.c (grub_functional_test): Use
3386 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
3387 (grub_test_run): Use FOR_LIST_ELEMENTS.
3388 * tests/lib/unit_test.c (main): Likewise.
3389 * util/deviceiter.c (grub_util_iterate_devices): Don't use
3391 * util/grub-fstest.c (grub_term_input_class): Removed.
3392 (grub_term_output_class): Likewise.
3393 * util/grub-probe.c: Likewise.
3394 * util/i386/pc/grub-setup.c: Likewise.
3395 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3396 * util/grub-script-check.c (main): Don't call grub_init_all and
3398 * video/video.c (grub_video_adapter_list): Make global.
3399 (grub_video_register): Removed.
3400 (grub_video_unregister): Likewise.
3401 (grub_video_iterate): Likewise.
3403 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3405 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
3406 reported by Henrique Ferreiro.
3408 2010-06-09 Robert Millan <rmh@gnu.org>
3410 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
3411 ones, when both are available.
3413 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3415 Make --version uniform and avoid hard-coded program name.
3417 * util/grub-mkimage.c (main): Use `program_name' instead of
3419 * util/i386/pc/grub-setup.c (main): Likewise.
3420 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
3421 * util/grub-install.in: Save the basename of $0 in $self, and use the
3422 latter in informational messages. Use the same format for --version
3423 as the binary programs.
3424 * util/grub-mkconfig.in: Likewise.
3425 * util/grub-mkrescue.in: Likewise.
3426 * util/grub-reboot.in: Likewise.
3427 * util/grub-set-default.in: Likewise.
3428 * util/i386/efi/grub-install.in: Likewise.
3429 * util/ieee1275/grub-install.in: Likewise.
3430 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3432 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3434 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
3435 embedding area. Use <= instead of == when checking for non-emptiness.
3437 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3439 * configure.ac: Add `.' to the directories searched for unifont.
3441 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
3443 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
3446 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
3448 * docs/grub.texi (History): Expand to cover GRUB 2.
3449 (Serial terminal): Refer to `terminal_input' and `terminal_output'
3450 commands, not `terminal'.
3452 (terminal_input): New section.
3453 (terminal_output): New section.
3454 (uppermem): New section (stub).
3455 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
3457 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
3459 * docs/grub.texi (Security): Menu entries are unrestricted by
3460 default, not restricted to superusers as I had previously thought.
3461 Reword to account for this.
3463 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3465 * kern/emu/misc.c (device_mapper_null_log): New function.
3466 (grub_device_mapper_supported): New function.
3467 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
3469 * kern/emu/hostdisk.c (find_partition_start): Check whether
3470 device-mapper is supported before trying to use it.
3471 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
3473 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3475 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
3476 (File name syntax): Likewise.
3477 (help): --all is no longer supported in GRUB 2. Be more precise
3478 about pattern matching.
3480 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3482 * normal/completion.c (grub_normal_do_completion): When completing
3483 arguments to "set" and the current word contains an equals sign,
3484 skip to after the equals sign before starting completion.
3486 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3488 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
3490 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3492 * docs/grub.texi (Network): New section.
3493 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
3494 `(nd)' as in GRUB Legacy.
3495 (pxe_unload): New section.
3497 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3499 * docs/grub.texi (Troubleshooting): `echo' is not usually available
3500 in the rescue shell, so recommend using `set' instead. Thanks,
3503 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3505 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
3506 (password): New section.
3507 (password_pbkdf2): New section.
3508 (search): New section.
3509 (Security): New section.
3510 (Troubleshooting): New section, currently very incomplete.
3511 (Invoking grub-mkpasswd-pbkdf2): New section.
3512 (Internals): New section, currently very incomplete.
3514 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3516 * util/grub.d/00_header.in: Add some more quoting (of
3517 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
3519 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
3521 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3523 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
3524 to `count', fixing variable shadowing that broke the -c option.
3526 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
3528 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
3529 in case they contain spaces.
3531 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
3533 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
3534 "part_" to partmap module names, in line with grub-install.
3535 Reported by: Jindřich Makovička (Debian bug #584426).
3537 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
3539 * util/grub-mkimage.c: Make target-related error messages slightly
3540 more helpful; -O talks about "format". Explicitly point to the use
3541 of -O if no target is specified.
3542 Reported by: Didier Raboud (Debian bug #584415).
3544 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
3546 * INSTALL: Document several build requirements for optional features
3547 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
3549 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
3551 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
3552 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
3553 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
3555 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3557 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
3558 Thanks to Jordan Uggla for spotting this.
3560 2010-06-02 Aleš Nesrsta <starous@volny.cz>
3562 Finally make USB usable.
3564 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
3565 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
3566 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
3567 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
3568 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
3569 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
3570 (GRUB_OHCI_FSMPS): Likewise.
3571 (GRUB_OHCI_PERIODIC_START): Likewise.
3572 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
3573 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
3574 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
3575 (GRUB_OHCI_SET_PORT_RESET): Likewise.
3576 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
3577 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
3578 (grub_ohci_transaction): Likewise.
3579 (grub_ohci_transfer): Improve condition detection algorithms.
3580 Handle toggle property. Program the transactions correctly.
3581 Improve error handling. Various important fixups.
3582 (grub_ohci_portstatus): Put register writes in right order.
3583 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
3584 (grub_uhci_transfer): Don't show "failed" message on success.
3585 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
3587 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
3589 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
3590 before initialization is completed. Use IN direction for empty
3591 transfers. Use last_trans and compute toggle.
3592 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
3593 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
3594 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
3595 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
3596 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
3597 (grub_usb_device): Increase toggle to 256.
3598 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
3599 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
3600 GRUB_USBMS_SUBCLASS_SFF8070.
3601 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
3602 (grub_scsi_inquiry): New member page and alloc_length.
3603 (grub_scsi_request_sense): New structure.
3604 (grub_scsi_request_sense_data): Likewise.
3605 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
3607 * disk/scsi.c (grub_scsi_request_sense): New function.
3608 (grub_scsi_test_unit_ready): Likewise.
3609 (grub_scsi_inquiry): Fill new fields.
3610 (grub_scsi_read_capacity): Likewise.
3611 (grub_scsi_read10): Add request sense at the end.
3612 (grub_scsi_read12): Likewise.
3613 (grub_scsi_write10): Likewise.
3614 (grub_scsi_write12): Likewise.
3615 (grub_scsi_open): Add Test Unit Ready.
3616 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
3617 Support additional subclasses. Con't clear halt yet. Activate the
3618 proper config. Calculate LUNs correctly.
3619 (grub_usbms_transfer): Various important fixups.
3621 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3623 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
3624 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
3625 (grub_ohci_fini_hw): New function.
3626 (grub_ohci_restore_hw): Likewise.
3627 (GRUB_MOD_INIT(ohci)): Register preboot hook.
3628 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
3629 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
3631 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3633 Dedicated DMA allocations.
3635 * bus/pci.c (grub_memalign_dma32): New function
3636 (grub_dma_free): Likewise.
3637 (grub_dma_get_virt): Likewise.
3638 (grub_dma_get_phys): Likewise.
3639 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
3640 (grub_ohci_pci_iter): Use dma32_alloc.
3641 (grub_ohci_transfer): Likewise.
3642 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
3643 (grub_usb_bulk_readwrite): Likewise.
3644 * include/grub/pci.h: Add declarations.
3646 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3650 * bus/cs5536.c: New file.
3651 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
3652 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
3653 (cs5536_mod_SOURCES): New variable.
3654 (cs5536_mod_CFLAGS): Likewise.
3655 (cs5536_mod_LDFLAGS): Likewise.
3656 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
3658 (kernel_img_SOURCES): Add bus/cs5536.c.
3659 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
3661 (usb_mod_SOURCES): New variable.
3662 (usb_mod_CFLAGS): New variable.
3663 (usb_mod_LDFLAGS): New variable.
3664 (usbtest_mod_SOURCES): New variable.
3665 (usbtest_mod_CFLAGS): New variable.
3666 (usbtest_mod_LDFLAGS): New variable.
3667 (ohci_mod_SOURCES): New variable.
3668 (ohci_mod_CFLAGS): New variable.
3669 (ohci_mod_LDFLAGS): New variable.
3670 (usbms_mod_SOURCES): New variable.
3671 (usbms_mod_CFLAGS): New variable.
3672 (usbms_mod_LDFLAGS): New variable.
3673 (usb_keyboard_mod_SOURCES): New variable.
3674 (usb_keyboard_mod_CFLAGS): New variable.
3675 (usb_keyboard_mod_LDFLAGS): New variable.
3676 * include/grub/smbus.h: New file.
3677 * include/grub/cs5536.h: New file.
3679 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3681 * util/grub.d/00_header.in: Add safety check to make sure that
3682 ${locale_dir} exists before trying to probe it.
3684 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3686 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
3687 per the GNU Coding Standards; this is now too obscure to be worth
3690 (chainloader): Remove cross-reference to `SCO UnixWare'.
3692 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3694 * docs/grub.texi (Chain-loading): New section.
3695 (DOS/Windows): New section, borrowed from GRUB Legacy with details
3696 adjusted for GRUB 2.
3697 (SCO UnixWare): Likewise.
3699 (chainloader): Add reference to `Block list syntax'.
3700 (drivemap): New section.
3701 (parttool): New section.
3703 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3705 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
3707 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
3708 (Installing GRUB using grub-install): Remove reference to the grub
3709 shell; mention `grub-mkimage' and `grub-setup' instead.
3710 (Invoking grub-install): Likewise.
3711 (Interface): Add reference to `Menu entry editor'.
3712 (serial): Remove `--device' option.
3714 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3716 * docs/grub.texi (Configuration): New section, documenting
3717 configuration file generation using grub-mkconfig. I've left a slot
3718 for documenting the full shell scripting format but have not yet
3719 started on writing that up.
3720 (Invoking grub-mkconfig): New section.
3722 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3724 * docs/grub.texi (direntry): Remove grub-terminfo reference.
3725 (GNU GRUB manual): Likewise.
3726 (General commands): Update description of `terminfo' for GRUB 2.
3728 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3730 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
3731 (GRUB_MOD_INIT): Fix capitalisation.
3732 * docs/grub.texi (Command-line and menu entry commands): Document
3733 gettext and gptsync commands.
3735 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3737 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
3738 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
3740 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
3742 Add btrfs probing support, currently only in the single-device case.
3744 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
3746 (grub_guess_root_device): Call find_root_device_from_mountinfo
3747 before looking in /dev.
3749 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3751 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
3752 GRUB_DISK_SIZE_UNKNOWN.
3753 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
3755 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
3757 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
3758 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
3759 corrupted or not synced properly.
3761 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3763 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
3764 Reported by: Seth Goldberg.
3766 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3768 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
3770 Reported by: Seth Goldberg.
3772 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3774 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
3775 Reported by: Seth Goldberg.
3777 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3779 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
3780 64-bit address as signed on MIPS.
3782 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
3784 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
3785 to the empty string.
3787 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
3789 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
3791 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
3792 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
3793 * kern/misc.c (__enable_execute_stack): Disable on
3796 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
3798 Make grub-probe work with symbolic links under /dev/mapper as well
3799 as with real block devices. The Linux world seems to be (at best)
3800 in transition here, and GRUB shouldn't get caught in the middle.
3802 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
3805 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
3807 * util/grub-script-check.c (main): Ensure defined behaviour on empty
3808 input files (in which case exit zero).
3810 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
3812 * kern/emu/misc.c (canonicalize_file_name): realpath can still
3813 return NULL for various reasons even if it has a maximum-length
3814 buffer: for example, there might be a symlink loop, or the path
3815 might exceed PATH_MAX. If this happens, return NULL.
3817 2010-05-27 Robert Millan <rmh@gnu.org>
3819 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
3820 partmap module to handle cross-partmap setups.
3821 Reported by Orestes Mas. Gràcies!
3823 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
3825 * util/grub-mkrescue.in: Initialise override_dir rather than
3826 assuming that it's unset or empty in the environment.
3828 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3830 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
3831 variable index into p_index to suppress a warning with -Wshadow.
3833 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
3835 * INSTALL: Added flex >= 2.5.35 requirement.
3837 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3839 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
3841 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3845 * commands/i386/cmostest.c: New file.
3846 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
3847 (cmostest_mod_SOURCES): New variable.
3848 (cmostest_mod_CFLAGS): Likewise.
3849 (cmostest_mod_LDFLAGS): Likewise.
3850 * conf/i386-pc.rmk: Likewise.
3851 * docs/grub.texi (Vendor power-on keys): New section.
3852 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
3853 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
3854 and GRUB_BUTTON_CMOS_ADDRESS.
3855 * util/grub.d/00_header.in: Handle powering-on by separate button.
3857 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3859 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
3860 Removed drawing_scrollbar argument. All users updated
3862 Reported by Jo Shields
3864 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3866 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
3867 buffer since gfxterm handles double repaint.
3869 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3871 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
3872 * term/gfxterm.c (real_scroll): Likewise.
3874 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3876 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
3877 before calling BIOS.
3879 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3881 * include/grub/i18n.h: Always enable grub_gettext.
3883 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3885 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
3886 partition naming style.
3888 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
3890 * util/grub-mkconfig.in: Fix handling of -o so that it works when
3891 not the first option.
3893 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
3895 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
3897 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
3899 * util/misc.c: Move inclusion of <limits.h> to ...
3900 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
3902 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
3904 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
3905 Fix merge error in NetBSD code.
3906 (find_partition_start) [__NetBSD__]: Likewise.
3908 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
3910 Fix grub-mkrescue usage unit testing.
3912 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
3914 2010-05-18 Christian Franke <franke@computer.org>
3916 * util/grub.d/10_windows.in: Use path names instead of
3917 drive letters to prevent warning from Cygwin 1.7.
3918 Add drivemap command to menuentry if needed.
3920 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
3922 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
3923 gnumach and gnumach.gz.
3925 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3927 * include/grub/i18n.h (gettext): Inline instead of using #define.
3928 (grub_gettext): Likewise.
3931 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3933 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
3934 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
3935 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
3936 (main): Add a slash after pkglibdirroot.
3938 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3940 * util/grub-install.in: Add missing "in" keyword.
3942 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3944 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
3945 Reported by: Seth Goldberg.
3947 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3949 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
3951 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
3953 * configure.ac: Check for Linux device-mapper support.
3955 * util/hostdisk.c (device_is_mapped): New function.
3956 (find_partition_start): New function, partly broken out from
3957 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
3958 device-mapper support added.
3959 (linux_find_partition): Use find_partition_start.
3960 (convert_system_partition_to_system_disk): Add `st' argument.
3961 Support Linux /dev/mapper/* devices if device-mapper support is
3962 available; only DM-RAID devices are understood at present.
3963 (find_system_device): Add `st' argument. Pass it to
3964 convert_system_partition_to_system_disk.
3965 (grub_util_biosdisk_get_grub_dev): Pass stat result to
3966 find_system_device and convert_system_partition_to_system_disk. Use
3967 find_partition_start.
3969 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
3970 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
3971 * util/deviceiter.c [__linux__]: Define MINOR.
3972 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
3973 * util/mkdevicemap.c (grub_putchar): New function.
3974 (grub_getkey): New function.
3975 (grub_refresh): New function.
3976 (main): Set debug=all if -v -v is used.
3978 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
3980 Fix build with non-GNU libcs.
3982 * util/misc.c (canonicalize_file_name): Move to ...
3983 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
3984 grub_make_system_path_relative_to_its_root.
3986 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
3988 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
3989 we handle finding grub-mkimage. Default to finding grub-mkimage in
3990 ${bindir} with program_transform_name applied, and provide a
3991 --grub-mkimage option to override this.
3993 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3995 Remove grub-mkisofs.
3997 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
3998 (grub_mkisofs_SOURCES): Removed.
3999 (grub_mkisofs_CFLAGS): Removed.
4000 * util/mkisofs/defaults.h: Removed.
4001 * util/mkisofs/eltorito.c: Likewise.
4002 * util/mkisofs/exclude.h: Likewise.
4003 * util/mkisofs/hash.c: Likewise.
4004 * util/mkisofs/include/: Likewise.
4005 * util/mkisofs/include/fctldefs.h: Likewise.
4006 * util/mkisofs/include/mconfig.h: Likewise.
4007 * util/mkisofs/include/prototyp.h: Likewise.
4008 * util/mkisofs/include/statdefs.h: Likewise.
4009 * util/mkisofs/iso9660.h: Likewise.
4010 * util/mkisofs/joliet.c: Likewise.
4011 * util/mkisofs/match.c: Likewise.
4012 * util/mkisofs/match.h: Likewise.
4013 * util/mkisofs/mkisofs.c: Likewise.
4014 * util/mkisofs/mkisofs.h: Likewise.
4015 * util/mkisofs/msdos_partition.h: Likewise.
4016 * util/mkisofs/multi.c: Likewise.
4017 * util/mkisofs/name.c: Likewise.
4018 * util/mkisofs/rock.c: Likewise.
4019 * util/mkisofs/tree.c: Likewise.
4020 * util/mkisofs/write.c: Likewise.
4022 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4024 Unify grub-mkimage accross platforms.
4026 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
4027 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
4028 (grub_mkelfimage_SOURCES): Removed.
4029 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
4030 (util/grub-mkimage.c_DEPENDENCIES): .. this.
4031 (bin_UTILITIES): Add grub-mkimage.
4032 (grub_mkimage_SOURCES): New variable.
4033 (kernel_img_HEADERS): Remove machine/kernel.h.
4034 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
4035 (pkglib_PROGRAMS): Add kernel.img.
4036 (kernel_img_HEADERS): Add machine/kernel.h.
4037 (kernel_img_FORMAT): Removed.
4038 (bin_UTILITIES): Remove grub-mkimage.
4039 (grub_mkimage_SOURCES): Removed.
4040 (grub_mkimage_CFLAGS): Likewise.
4041 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4042 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
4043 (pkglib_PROGRAMS): Add kernel.img.
4044 (bin_UTILITIES): Remove grub-mkimage.
4045 (grub_mkimage_SOURCES): Removed.
4046 (grub_mkimage_CFLAGS): Likewise.
4047 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4048 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
4049 (pkglib_PROGRAMS): Add kernel.img.
4050 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
4051 (pkglib_PROGRAMS): Add kernel.img.
4052 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
4053 (grub_mkimage_SOURCES): Removed.
4054 (grub_mkimage_CFLAGS): Likewise.
4055 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4056 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
4057 (pkglib_PROGRAMS): Add kernel.img.
4058 (bin_UTILITIES): Remove grub-mkimage.
4059 (grub_mkimage_SOURCES): Removed.
4060 (grub_mkimage_CFLAGS): Likewise.
4061 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4062 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
4063 (grub_mkimage_SOURCES): Removed.
4064 (grub_mkimage_CFLAGS): Likewise.
4065 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4066 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
4067 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
4068 (grub_pe32_optional_header): ... this.
4069 (grub_pe64_optional_header): ... and this. All users updated.
4070 (GRUB_PE32_PE32_MAGIC): Split into ..
4071 (GRUB_PE32_PE32_MAGIC): .. this.
4072 (GRUB_PE32_PE64_MAGIC): .. and this.
4073 (GRUB_PE32_SIGNATURE_SIZE): New definition.
4074 * include/grub/elf.h (PT_GNU_STACK): New definition.
4075 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
4076 * include/grub/i386/efi/kernel.h: Likewise.
4077 * include/grub/i386/kernel.h: Likewise.
4078 * include/grub/i386/pc/kernel.h: Likewise.
4079 * include/grub/i386/qemu/boot.h: Likewise.
4080 * include/grub/mips/kernel.h: Likewise.
4081 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4082 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
4083 * include/grub/powerpc/kernel.h: Likewise.
4084 * include/grub/sparc64/ieee1275/boot.h: Likewise.
4085 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
4086 * include/grub/sparc64/kernel.h: Likewise.
4087 * include/grub/x86_64/efi/kernel.h: Likewise.
4088 * include/grub/x86_64/kernel.h: Likewise.
4089 * include/grub/offsets.h: New file.
4090 * include/grub/kernel.h (grub_module_info): Split into ...
4091 (grub_module_info32): ... this.
4092 (grub_module_info64): ... and this.
4093 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
4094 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
4095 (grub_boot_blocklist): Moved from here ...
4096 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
4097 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
4098 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
4099 * include/grub/types.h (grub_target_to_host16): Removed.
4100 (grub_target_to_host32): Likewise.
4101 (grub_target_to_host64): Likewise.
4102 (grub_host_to_target16): Likewise.
4103 (grub_host_to_target32): Likewise.
4104 (grub_host_to_target64): Likewise.
4105 (grub_host_to_target_addr): Likewise.
4107 Support grub-mkrescue for efi, coreboot and qemu.
4109 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
4110 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
4111 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
4112 * util/grub-mkrawimage.c: Moved from here ...
4113 * util/grub-mkimage.c: ... here. All users updated.
4114 (ALIGN_ADDR): Use image_target.
4115 (TARGET_NO_FIELD): New const.
4116 (image_target_desc): New type.
4117 (image_targets): New array.
4118 (grub_target_to_host64): Use image_target.
4119 (grub_target_to_host32): Likewise.
4120 (grub_target_to_host16): Likewise.
4121 (grub_host_to_target64): Likewise.
4122 (grub_host_to_target32): Likewise.
4123 (grub_host_to_target16): Likewise.
4124 (grub_host_to_target_addr): Likewise.
4125 (generate_image): Handle multiimage.
4126 (main): Require -O parameter. All users updated.
4127 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
4128 util/efi/grub-mkimage.c
4129 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
4130 New option --rom-directory.
4132 * util/i386/efi/grub-mkimage.c: Removed.
4133 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
4134 (grub_target_to_host32): Likewise.
4135 (grub_target_to_host64): Likewise.
4136 (grub_host_to_target16): Likewise.
4137 (grub_host_to_target32): Likewise.
4138 (grub_host_to_target64): Likewise.
4139 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
4140 (grub_target_to_host32): Likewise.
4141 (grub_target_to_host64): Likewise.
4142 (grub_host_to_target16): Likewise.
4143 (grub_host_to_target32): Likewise.
4144 (grub_host_to_target64): Likewise.
4146 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
4148 Source tree is reorganized for emu build.
4150 * include/grub/util/console.h: Move from here...
4151 * include/grub/emu/console.h: ...to here.
4152 * include/grub/util/getroot.h: Move from here...
4153 * include/grub/emu/getroot.h: ...to here.
4154 * include/grub/util/hostdisk.h: Move from here...
4155 * include/grub/emu/hostdisk.h: ...to here.
4156 * util/console.c: Move from here...
4157 * kern/emu/console.c: ...to here.
4158 * util/getroot.c: Move from here...
4159 * kern/emu/getroot.c: ...to here.
4160 * util/grub-emu.c: Move from here...
4161 * kern/emu/main.c: ...to here.
4162 * util/hostdisk.c: Move from here...
4163 * kern/emu/hostdisk.c: ...to here.
4164 * util/hostfs.c: Move from here...
4165 * kern/emu/hostfs.c: ...to here.
4166 * util/mm.c: Move from here...
4167 * kern/emu/mm.c: ...to here.
4168 * util/pci.c: Move from here...
4169 * bus/emu/pci.c: ...to here.
4170 * util/sdl.c: Move from here...
4171 * video/emu/sdl.c: ...to here.
4172 * util/time.c: Move from here...
4173 * kern/emu/time.c: ...to here.
4174 * util/usb.c: Move from here...
4175 * bus/usb/emu/usb.c: ...to here.
4177 * include/grub/emu/misc.h: New header for grub-emu functions.
4178 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
4180 * conf/any-emu.rmk: Rule updates for above renames.
4181 * conf/common.rmk: Likewise.
4182 * conf/i386-pc.rmk: Likewise.
4183 * conf/i386-qemu.rmk: Likewise.
4184 * conf/mips.rmk: Likewise.
4185 * conf/sparc64-ieee1275.rmk: Likewise.
4186 * conf/x86-efi.rmk: Likewise.
4188 * disk/lvm.h: #include updates for above renames.
4189 * util/grub-mkrelpath.c: Likewise.
4190 * util/grub-probe.c: Likewise.
4191 * util/i386/pc/grub-setup.c: Likewise.
4192 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4193 * kern/emu/console.c: Likewise.
4194 * kern/emu/getroot.c: Likewise.
4195 * kern/emu/hostdisk.c: Likewise.
4196 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
4198 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
4199 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
4200 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
4201 * util/misc.c: Remove grub-emu functions.
4203 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4206 Reported by: Thorsten Grützmacher.
4208 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
4210 (circprog_set_property): Register and unregister timeout hook.
4211 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
4212 (label_destroy): Free template. and unregister hook.
4213 (label_set_state): New function.
4214 (label_set_property): Handle templates and hooks.
4215 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
4217 (progress_bar_set_property): Register and unregister timeout hook.
4218 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
4219 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
4220 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
4221 (update_timeout_visit): Removed.
4222 (update_timeouts): New function.
4223 (redraw_timeouts): Likewise.
4224 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
4225 (grub_gfxmenu_clear_timeout): Likewise.
4226 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
4227 (grub_gfxmenu_timeout_notify): Likewise.
4228 (grub_gfxmenu_timeout_notifications): New external variable.
4229 (grub_gfxmenu_timeout_register): New function.
4230 (grub_gfxmenu_timeout_unregister): Likewise.
4232 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4234 Transform (broken) vga terminal into (working) vga video driver.
4236 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
4237 video/i386/pc/vga.c.
4238 * include/grub/video.h (grub_video_driver_id):
4239 Add GRUB_VIDEO_DRIVER_VGA.
4240 * term/i386/pc/vga.c: Renamed to ...
4241 * video/i386/pc/vga.c: ...this
4242 (DEBUG_VGA): Removed.
4243 (CHAR_WIDTH): Likewise.
4244 (CHAR_HEIGHT): Likewise.
4245 (TEXT_WIDTH): Likewise.
4246 (TEXT_HEIGHT): Likewise.
4247 (DEFAULT_FG_COLOR): Likewise.
4248 (DEFAULT_BG_COLOR): Likewise.
4249 (colored_char): Likewise.
4252 (cursor_state): Likewise.
4253 (fg_color): Likewise.
4254 (bg_color): Likewise.
4255 (text_buf): Likewise.
4258 (framebuffer): New variable.
4259 (set_read_map): Disabled.
4260 (setup): New variable.
4261 (is_target): Likewise.
4262 (grub_vga_mod_init): Likewise.
4263 (grub_vga_mod_fini): Likewise.
4264 (check_vga_mem): Likewise.
4265 (write_char): Likewise.
4266 (write_cursor): Likewise.
4267 (scroll_up): Likewise.
4268 (grub_vga_putchar): Likewise.
4269 (grub_vga_getcharwidth): Likewise.
4270 (grub_vga_getwh): Likewise.
4271 (grub_vga_getxy): Likewise.
4272 (grub_vga_gotoxy): Likewise.
4273 (grub_vga_cls): Likewise.
4274 (grub_vga_setcolorstate): Likewise.
4275 (grub_vga_setcursor): Likewise.
4276 (grub_video_vga_init): New function.
4277 (grub_video_vga_setup): Likewise.
4278 (grub_video_vga_fini): Likewise.
4279 (update_target): Likewise.
4280 (grub_video_vga_blit_bitmap): Likewise.
4281 (grub_video_vga_blit_render_target): Likewise.
4282 (grub_video_vga_set_active_render_target): Likewise.
4283 (grub_video_vga_get_active_render_target): Likewise.
4284 (grub_video_vga_swap_buffers): Likewise.
4285 (grub_video_vga_set_palette): Likewise.
4286 (grub_video_vga_get_info_and_fini): Likewise.
4287 (grub_vga_term): Removed.
4288 (grub_video_vga_adapter): New variable.
4289 (GRUB_MOD_INIT): Register a video driver instead of terminal.
4290 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
4292 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4294 * video/readers/jpeg.c: Indented.
4296 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4298 Various jpeg cleanups.
4300 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
4301 (grub_jpeg_decode_quan_table): Use sizeof.
4302 (grub_jpeg_decode_du): Use ARRAY_SIZE.
4304 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
4306 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
4307 tables. Ignore non-last ac bit.
4308 (grub_jpeg_decode_quan_table): Likewise.
4310 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4312 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
4313 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
4314 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4315 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
4316 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
4317 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
4319 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4321 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
4324 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4326 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
4328 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4330 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
4333 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4335 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
4338 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4340 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
4343 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4345 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
4347 2010-05-01 Christian Franke <franke@computer.org>
4349 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
4350 Remove broken Cygwin path conversion.
4351 * util/misc.c: [__CYGWIN__] Add include and define.
4352 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
4354 (make_system_path_relative_to_its_root): Simplify loop, replace early
4356 [__CYGWIN__] Add conversion to win32 path.
4357 Include "/" case in trailing slash removal.
4359 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4361 * kern/main.c (grub_load_config): Fix copy-pasted comment.
4362 Reported by: Seth Goldberg
4364 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4366 * commands/help.c (grub_cmd_help): Fix a typo.
4367 Reported by: Seth Goldberg
4369 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4371 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
4373 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
4374 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
4375 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
4376 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
4377 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
4378 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
4379 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
4380 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
4381 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
4382 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
4383 * normal/context.c (GRUB_MOD_INIT): Likewise.
4384 * normal/main.c (GRUB_MOD_INIT): Likewise.
4385 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
4386 * term/serial.c (GRUB_MOD_INIT): Likewise.
4387 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
4389 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4391 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
4394 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4396 * commands/iorw.c: New file.
4397 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
4398 (iorw_mod_SOURCES): New variable.
4399 (iorw_mod_CFLAGS): Likewise.
4400 (iorw_mod_LDFLAGS): Likewise.
4402 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4406 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
4407 * normal/main.c (hotkey_aliases): New variable.
4408 (grub_normal_add_menu_entry): Parse "--hotkey".
4409 * normal/menu_text.c (run_menu): Handle hotkeys.
4411 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4413 * kern/i386/coreboot/init.c (grub_machine_init): Call
4414 grub_machine_mmap_init on qemu.
4416 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4418 * boot/i386/qemu/boot.S: Add a missing .code16.
4420 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4422 Use LBIO on coreboot.
4424 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
4425 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
4426 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
4428 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
4429 grub_machine_mmap_init on coreboot.
4430 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
4431 GRUB_LINUXBIOS_MEMBER_LINK.
4432 (grub_machine_mmap_iterate): Fix declaration.
4433 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
4435 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4437 Split coreboot and multiboot ports.
4439 * conf/i386-multiboot.rmk: New file.
4440 * configure.ac: Add multiboot port.
4441 * include/grub/i386/multiboot/boot.h: New file.
4442 * include/grub/i386/multiboot/console.h: Likewise.
4443 * include/grub/i386/multiboot/init.h: Likewise.
4444 * include/grub/i386/multiboot/kernel.h: Likewise.
4445 * include/grub/i386/multiboot/loader.h: Likewise.
4446 * include/grub/i386/multiboot/memory.h: Likewise.
4447 * include/grub/i386/multiboot/serial.h: Likewise.
4448 * include/grub/i386/multiboot/time.h: Likewise.
4449 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
4450 * loader/multiboot.c: Likewise.
4451 * loader/multiboot_mbi2.c: Likewise.
4452 * util/grub-mkrescue.in: Generate multiboot rescue.
4454 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4456 * kern/parser.c (grub_parser_execute): Cope with read-only config.
4458 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4460 Merge handling of input and output terminals. Fix a hang.
4462 * commands/terminal.c (abstract_terminal): New struct.
4463 (handle_command): New function. Based on grub_cmd_terminal_input.
4464 (grub_cmd_terminal_input): Use handle_command.
4465 (grub_cmd_terminal_output): Use handle_command.
4467 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
4469 Fix comment handling.
4471 * tests/grub_script_comments.in: New testcase.
4472 * conf/tests.rmk: Rules for new testcase.
4473 * script/yylex.l: Updated flex rules.
4475 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4477 * docs/grub.texi (play): Document that zero pitches produce rests.
4478 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
4481 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4483 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
4486 2010-04-26 Christian Franke <franke@computer.org>
4488 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
4489 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
4490 (grub_get_prefix): Remove function.
4491 * util/grub-emu.c (main): Replace grub_get_prefix () call by
4492 make_system_path_relative_to_its_root ().
4493 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
4495 2010-04-24 Christian Franke <franke@computer.org>
4497 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
4498 (kernel_img_LDFLAGS): Remove -static-libgcc.
4500 2010-04-24 Christian Franke <franke@computer.org>
4502 * configure.ac: Do not CHECK_BSS_START_SYMBOL
4503 and CHECK_END_SYMBOL if grub-emu is built.
4504 Unset TARGET_OBJ2ELF if grub-emu is built
4505 without module support.
4507 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
4511 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
4512 (grub_fstest_SOURCES): Likewise.
4513 (pkglib_MODULES): Add nilfs2.mod.
4514 (nilfs2_mod_SOURCES): New variable.
4515 (nilfs2_mod_CFLAGS): Likewise.
4516 (nilfs2_mod_LDFLAGS): Likewise.
4517 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
4518 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
4519 * fs/nilfs2.c: New file.
4521 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4523 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
4526 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
4528 Add grub-mkconfig support for NetBSD.
4530 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
4531 * util/grub-mkconfig.in: export new NetBSD specific variables.
4532 * po/POTFILES-shell: added 10_netbsd.in.
4533 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
4535 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
4537 Fix emu build with grub-emu-pci and grub-emu-modules.
4539 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
4541 * include/grub/libpciaccess.h: New file.
4542 * conf/any-emu.rmk: Update kernel headers for emu build.
4544 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4546 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
4548 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4550 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
4552 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4554 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
4555 Retrieve chosen/bootpath if bootpath isn't hardcoded.
4556 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
4557 util/ieee1275/ofpath.c.
4558 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
4559 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
4560 * include/grub/sparc64/ieee1275/boot.h
4561 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
4562 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
4563 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
4564 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
4566 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
4567 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
4568 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
4571 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
4573 * util/grub-mkconfig.in: Corrected two == equality tests.
4574 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
4575 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
4576 expect a number appended to it.
4577 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
4578 expects a number appended to it.
4580 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4582 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
4584 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4586 * util/hostdisk.c (make_device_name): Change to new partition naming.
4588 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4590 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
4592 2010-04-17 Christian Franke <franke@computer.org>
4594 * Makefile.in: Add missing localedir setting.
4596 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
4598 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
4599 mistake in r2156. Noticed by Anthony Fok.
4601 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
4603 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
4605 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
4607 Fix a spurious, uninitialized variable warning.
4609 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
4610 Initialize variable, shdr.
4611 (grub_freebsd_load_elfmodule): Likewise.
4612 (grub_freebsd_load_elf_meta): Likewise.
4614 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
4616 Fix for escaped dollar in double quoted strings.
4618 * script/yylex.l: Updated flex rules.
4619 * conf/tests.rmk: Rule for new testcase.
4620 * tests/grub_script_dollar.in: New testcase.
4622 2010-04-13 Carles Pina i Estany <carles@pina.cat>
4623 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
4625 Enclose all translated strings in grub.cfg in single quotes, and
4626 escape them appropriately (Ubuntu bug #552921).
4628 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
4629 * util/grub.d/10_hurd.in: Use it.
4630 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
4631 * util/grub.d/10_linux.in (linux_entry): Likewise.
4633 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4635 Fix cygwin compilation.
4637 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
4638 * include/grub/misc.h (__register_frame_info)
4639 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
4640 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
4641 * kern/misc.c (__register_frame_info)
4642 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
4643 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
4645 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4647 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
4649 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4651 Unify libgcc processing.
4653 * Makefile.in (kernel_img_LDFLAGS): New variable.
4654 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
4655 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
4657 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
4658 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
4659 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
4660 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
4661 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
4662 overwriting. Remove -lgcc and -static-libgcc
4663 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
4664 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
4665 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
4666 (kernel_img_LDFLAGS): Append instead of overwriting.
4667 Remove -lgcc and -static-libgcc
4668 * conf/sparc64-ieee1275.rmk: Likewise.
4669 * include/grub/powerpc/libgcc.h: Move to ...
4670 * include/grub/libgcc.h: .. this.
4671 * include/grub/libgcc.h: Don't export most of the function on x86.
4672 (__bswapsi2): New export.
4673 (__bswapdi2): Likewise.
4674 * include/grub/mips/libgcc.h: Removed.
4675 * include/grub/sparc64/libgcc.h: Likewise.
4677 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4679 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
4680 disk_info_msg (conflicts with gettexting into languages with cases).
4682 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
4684 Add grub-probe support for NetBSD.
4686 * util/getroot.c (find_root_device): Convert block device to
4687 character device on NetBSD.
4688 * util/probe.c (probe): Require character device on NetBSD.
4689 * util/hostdisk.c: NetBSD specific headers.
4690 (configure_device_driver): new function to tune device driver
4691 parameters (currently only for NetBSD floppy driver).
4692 (grub_util_biosdisk_open): NetBSD specific code (get disk size
4693 via disklabel ioctl).
4694 (open_device): call configure_device_driver on NetBSD.
4695 (convert_system_partition_to_system_disk): NetBSD specific code.
4696 (device_is_wholedisk): Likewise.
4697 (grub_util_biosdisk_get_grub_dev): Likewise.
4698 (make_device_name): Fixed a typo in bsd_part_str.
4699 * configure.ac: check for opendisk() and getrawpartition() on
4700 NetBSD and set LIBUTIL.
4701 * Makefile.in: add LIBUTIL to LIBS.
4703 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
4707 * util/grub-script-check.c: Better help message.
4709 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
4713 * configure.ac: Flex version check.
4714 * conf/common.rmk: Add -Wno-error to sh.mod.
4715 * script/yylex.l: Remove all #pragma.
4717 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4719 * include/grub/util/misc.h (canonicalise_file_name): Add missing
4721 Reported by: Seth Goldberg.
4723 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4725 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
4726 Rename "module" to "module2".
4727 Reported by: Seth Goldberg.
4729 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4731 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
4733 Reported by: Seth Goldberg.
4735 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4737 * lib/posix_wrap/locale.h: Add missing file.
4738 Reported by: Seth Goldberg.
4740 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4742 grub-emu module load support.
4744 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
4745 NO_DYNAMIC_MODULES switched to this.
4746 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
4748 * conf/any-emu.rmk: Generate symlist.
4749 (kernel_img_HEADERS): Add util/datetime.h.
4750 (kernel_img_HEADERS) [sdl]: Add sdl.h.
4751 (kernel_img_HEADERS) [libusb]: Add libusb.h.
4752 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
4753 kern/$(target_cpu)/cache.S.
4754 * configure.ac (grub-emu-modules): New option.
4755 * genmk.rb: Handle multiple source lists.
4756 * include/grub/sdl.h: New file.
4757 * include/grub/libusb.h: Likewise.
4758 * util/grub-emu.c (main): Hanle (host) root.
4759 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
4760 GRUB_ERR_UNKNOWN_DEVICE.
4761 * util/misc.c: Move mm functions to ...
4762 * util/mm.c: ... here. All users updated.
4764 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4766 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
4767 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
4769 (maintainer-clean): Remove libgcrypt-grub.
4771 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4773 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
4775 2010-04-09 EFI Coder <eficoder@hotmail.com>
4777 * normal/menu_text.c (print_message): Clean up the message and show
4778 the Fn information when on EFI
4779 * term/efi/console.c (grub_console_checkkey): Add F4 support.
4781 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4783 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
4785 * normal/crypto.c (read_crypto_list): Likewise.
4786 * normal/dyncmd.c (read_command_list): Likewise.
4787 * normal/term.c (read_terminal_list): Likewise.
4788 * normal/main.c (read_lists): Use explicit prefix.
4789 (read_lists_hook): Use read_lists.
4790 (grub_normal_execute): Likewise.
4792 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4794 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
4795 Reported by: Thomas Schmitt.
4796 Add -no-emul-boot to grub-mkisofs parameters.
4798 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4800 * font/font.c: Indented.
4802 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
4804 Elif support to GRUB script (by Deepak Vankadaru).
4806 * tests/grub_script_if.in: New testcase.
4807 * conf/tests.rmk: Rule for new testcase.
4808 * script/parser.y: Grammar rules for elif.
4810 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
4812 While and until loops support to GRUB script.
4814 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
4815 (grub_script_create_cmdwhile): New function prototype.
4816 (grub_script_execute_cmdwhile): New function prototype.
4817 * script/execute.c (grub_script_execute_cmdwhile): New function.
4818 * script/parser.y (command): New commands.
4819 (whilecmd): New grammar rule.
4820 (untilcmd): New grammar rule.
4821 * script/script.c (grub_script_create_cmdwhile): New function.
4822 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
4825 * tests/grub_script_while1.in: New testcase.
4826 * conf/tests.rmk: Rule for new testcase.
4828 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4830 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
4833 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
4835 GRUB_BACKGROUND support.
4837 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
4838 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
4840 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4842 Load fonts and modules for gfxmenu in grub-mkconfig.
4843 Idea by: Mario Vazquez
4845 * util/grub.d/00_header.in: Load pf2 and image modules.
4847 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4849 grub-mkconfig multiple terminal support.
4851 * util/grub-mkconfig.in: Handle multiple terminals correctly.
4852 * util/grub.d/00_header.in: Likewise.
4854 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
4856 * Makefile.in: Specify files explicitly instead of using $< and $@ since
4857 we use cd $(srcdir).
4859 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
4861 * util/grub.d/10_linux.in: Only use the first word of
4862 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
4863 spaces in GRUB_DISTRIBUTOR.
4864 * util/grub.d/10_kfreebsd.in: Likewise.
4865 * util/grub.d/10_hurd.in: Likewise.
4867 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
4869 Fix unit testing framework for Qemu 0.12.
4871 * tests/util/grub-shell.in: Remove -serial stdio option.
4873 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4875 POSIX header file wrappers.
4877 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
4879 * lib/posix_wrap/ctype.h: Likewise.
4880 * lib/posix_wrap/errno.h: Likewise.
4881 * lib/posix_wrap/langinfo.h: Likewise.
4882 * lib/posix_wrap/limits.h: Likewise.
4883 * lib/posix_wrap/localcharset.h: Likewise.
4884 * lib/posix_wrap/stdint.h: Likewise.
4885 * lib/posix_wrap/stdio.h: Likewise.
4886 * lib/posix_wrap/stdlib.h: Likewise.
4887 * lib/posix_wrap/string.h: Likewise.
4888 * lib/posix_wrap/sys/types.h: Likewise.
4889 * lib/posix_wrap/unistd.h: Likewise.
4890 * lib/posix_wrap/wchar.h: Likewise.
4891 * lib/posix_wrap/wctype.h: Likewise.
4892 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
4893 (grub_script.yy.h): Likewise.
4894 * script/yylex.l: Remove POSIX emulation #defines.
4895 * Makefile.in (POSIX_CFLAGS): New variable.
4896 (GNULIB_UTIL_CFLAGS): Likewise.
4900 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
4901 (regexp_mod_SOURCES): New variable.
4902 (regexp_mod_CFLAGS): Likewise.
4903 (regexp_mod_LDFLAGS): Likewise.
4904 * commands/regexp.c: New file.
4905 * gnulib/regcomp.c: New file. Imported from gnulib.
4906 * gnulib/regex.c: Likewise.
4907 * gnulib/regex_internal.c: Likewise.
4908 * gnulib/regex_internal.h: Likewise.
4909 * gnulib/regexec.c: Likewise.
4910 * gnulib/regex.h: Likewise.
4912 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4914 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
4915 unsupported video mode types.
4917 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4919 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
4921 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4923 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
4924 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
4926 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4928 Remove unused grub_vga_get_font.
4930 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
4931 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
4933 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
4935 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
4936 * include/grub/misc.h: Likewise.
4938 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
4940 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
4941 for which failure is fatal.
4943 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
4945 * util/grub-install.in: Use mkdir -p to create grub directory.
4946 * util/i386/efi/grub-install.in: Likewise.
4947 * util/ieee1275/grub-install.in: Likewise.
4949 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
4951 * Makefile.in (LEX): new variable.
4953 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
4955 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
4956 `=' and added double quotes on operands of this equality test.
4958 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4960 * Makefile.in (uninstall): Remove a leftover debug echo.
4961 Reported by: Grégoire Sutre
4963 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4965 MIPS multiboot2 support.
4967 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
4968 (multiboot2_mod_SOURCES): New variable.
4969 (multiboot2_mod_CFLAGS): Likewise.
4970 (multiboot2_mod_LDFLAGS): Likewise.
4971 (multiboot2_mod_ASFLAGS): Likewise.
4972 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
4974 (MULTIBOOT_ENTRY_REGISTER): Likewise.
4975 (MULTIBOOT_MBI_REGISTER): Likewise.
4976 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
4977 (MULTIBOOT_ELF32_MACHINE): Likewise.
4978 (MULTIBOOT_ELF64_MACHINE): Likewise.
4979 * include/grub/mips/multiboot.h: New file.
4980 * include/grub/video.h (grub_video_driver_id): New type
4981 GRUB_VIDEO_DRIVER_SM712.
4982 (grub_video_get_info_and_fini): Export.
4983 (grub_video_get_palette): Likewise.
4984 (grub_video_get_driver_id): Likewise.
4985 * include/multiboot2.h: Resynced with spec.
4986 * loader/i386/multiboot.c: Moved from here ...
4987 * loader/multiboot.c: ... here. All users updated.
4988 (grub_multiboot_boot): Use platform-specific macros.
4989 * loader/i386/multiboot_elfxx.c: Moved from here ...
4990 * loader/multiboot_elfxx.c: ... here. All users updated.
4991 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
4992 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
4993 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
4995 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4997 Import gnulib argp module.
4999 * gnulib/argp-ba.c: New file.
5000 * gnulib/argp-eexst.c: Likewise.
5001 * gnulib/argp-fmtstream.c: Likewise.
5002 * gnulib/argp-fmtstream.h: Likewise.
5003 * gnulib/argp-fs-xinl.c: Likewise.
5004 * gnulib/argp-help.c: Likewise.
5005 * gnulib/argp-namefrob.h: Likewise.
5006 * gnulib/argp-parse.c: Likewise.
5007 * gnulib/argp-pin.c: Likewise.
5008 * gnulib/argp-pv.c: Likewise.
5009 * gnulib/argp-pvh.c: Likewise.
5010 * gnulib/argp-version-etc.c: Likewise.
5011 * gnulib/argp-version-etc.h: Likewise.
5012 * gnulib/argp-xinl.c: Likewise.
5013 * gnulib/argp.h: Likewise.
5015 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5017 * kern/device.c (grub_device_iterate): Clear errors after failed
5020 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5022 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
5023 returned by firmware.
5025 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5027 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
5028 compilation on coreboot and qemu
5030 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5032 * include/multiboot2.h: Resync with spec.
5034 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5036 Multiboot2 tag support
5038 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
5039 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
5040 Remove loader/multiboot_loader.c.
5041 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
5042 (grub_multiboot2_real_boot): Likewise.
5043 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
5044 (grub_get_multiboot_mmap_count): New proto.
5045 (grub_fill_multiboot_mmap): Likewise.
5046 (grub_multiboot_set_video_mode): Likewise.
5047 (grub_multiboot_set_console): Likewise.
5048 (grub_multiboot_load): Likewise.
5049 (grub_multiboot_load_elf): Likewise.
5050 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
5051 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
5052 * include/multiboot.h: Resynced with specification.
5053 * include/multiboot2.h: Resynced with specification.
5054 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
5055 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
5056 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
5057 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
5059 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
5060 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
5061 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
5063 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
5065 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
5066 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
5068 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
5069 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
5070 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
5072 * loader/i386/multiboot_mbi2.c: New file.
5074 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5078 * Makefile.in (GNULIB_CFLAGS): New variable.
5079 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
5080 (grub_script_check_CFLAGS): New variable.
5081 * gnulib/alloca.h: Resync with gnulib.
5082 * gnulib/error.c: Likewise.
5083 * gnulib/error.h: Likewise.
5084 * gnulib/fnmatch.c: Likewise.
5085 * gnulib/fnmatch_loop.c: Likewise.
5086 * gnulib/getdelim.c: Likewise.
5087 * gnulib/getline.c: Likewise.
5088 * gnulib/getopt.c: Likewise.
5089 * gnulib/getopt1.c: Likewise.
5090 * gnulib/getopt_int.h: Likewise.
5091 * gnulib/gettext.h: Likewise.
5092 * gnulib/progname.c: Likewise.
5093 * gnulib/progname.h: Likewise.
5095 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
5097 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
5098 which is the case with --disabled-nls.
5100 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
5101 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
5102 * util/misc.c: Likewise.
5103 * util/mkisofs/mkisofs.c: Likewise.
5104 * util/mkisofs/mkisofs.h: Likewise.
5106 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5108 Simplify Apple CC support.
5110 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
5111 Add 0 byte at the end not to have a symbol with empty target.
5112 * mmap/i386/pc/mmap_helper.S: Likewise.
5113 * genmk.rb: Ignore errors 2030 and 2050.
5114 * kern/i386/pc/startup.S: Use LOCAL when possible.
5116 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
5118 Testcase and the fix for final semicolon on cmdline.
5120 * tests/grub_script_final_semicolon.in: New testcase.
5121 * conf/tests.rmk: Rules for the new testcase.
5122 * script/parser.y: Grammar fix.
5124 2010-03-26 BVK Chaitanya <bvk@localhost>
5126 Blank lines testcase for GRUB script.
5128 * tests/grub_script_blanklines.in: New testcase.
5129 * conf/tests.rmk: Rules for the new testcase.
5131 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5135 * genmk.rb: Add -DGRUB_FILE to all C targets.
5136 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
5137 * include/grub/list.h: Likewise.
5138 * include/grub/misc.h: Likewise.
5139 * include/grub/mm.h: Likewise.
5140 * include/grub/test.h: Likewise.
5141 * kern/mm.c: Likewise.
5142 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5144 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5146 Sunpc partitions support.
5148 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
5149 (grub_fstest_SOURCES): Likewise.
5150 (pkglib_MODULES): Add part_sunpc.mod.
5151 (part_sunpc_mod_SOURCES): New variable.
5152 (part_sunpc_mod_CFLAGS): Likewise.
5153 (part_sunpc_mod_LDFLAGS): Likewise.
5154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
5155 * partmap/sunpc.c: New file.
5157 2010-03-26 BVK Chaitanya <bvk@localhost>
5159 For loop support to GRUB script.
5161 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
5162 (grub_script_create_cmdfor): New function prototype.
5163 (grub_script_execute_cmdfor): New function prototype.
5164 * script/execute.c (grub_script_execute_cmdfor): New function.
5165 * script/parser.y (command): New for command.
5166 (forcmd): New grammar rule.
5167 * script/script.c (grub_script_create_cmdfor): New function.
5168 * util/grub-script-check.c (grub_script_execute_cmdfor): New
5170 * tests/grub_script_for1.in: New testcase.
5171 * conf/tests.rmk: Rules for new testcase.
5173 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5177 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
5178 'partition' is NULL, grub_partition_get_start already does that.
5179 * commands/loadenv.c (check_blocklists): Likewise.
5180 (write_blocklists): Likewise.
5181 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
5182 (grub_fstest_SOURCES): Likewise.
5183 (pkglib_MODULES): Add part_bsd.mod.
5184 (part_bsd_mod_SOURCES): New variable.
5185 (part_bsd_mod_CFLAGS): Likewise.
5186 (part_bsd_mod_LDFLAGS): Likewise.
5187 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
5188 (grub_emu_SOURCES): Likewise.
5189 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5190 * include/grub/bsdlabel.h: New file.
5191 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
5193 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
5194 (grub_partition_map_list): New variable.
5195 (grub_partition_map_register): Inline.
5196 (grub_partition_map_unregister): Likewise.
5197 (FOR_PARTITION_MAPS): New macro.
5198 (grub_partition_map_iterate): Removed.
5199 (grub_partition_get_start): Handle nested partitions.
5200 * include/grub/msdos_partition.h: Remove bsd-related entries.
5201 (grub_pc_partition): Remove.
5202 * kern/disk.c (grub_disk_close): Free partition data.
5203 (grub_disk_adjust_range): Handle nested partitions.
5204 * kern/partition.c (grub_partition_map_probe): New function.
5205 (grub_partition_probe): Parse name to number, handle subpartitions.
5206 (get_partmap): New function.
5207 (grub_partition_iterate): Handle subpartitions.
5208 (grub_partition_get_name): Likewise.
5209 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
5210 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
5211 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
5212 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
5214 (acorn_partition_map_probe): Remove.
5215 (acorn_partition_map_get_name): Likewise.
5216 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
5218 Set 'index' to 0 since there can be only one partition entry per sector.
5219 (amiga_partition_map_probe): Remove.
5220 (amiga_partition_map_get_name): Likewise.
5221 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
5223 Set 'offset' and 'index' to real positions of partitions.
5224 (apple_partition_map_probe): Remove.
5225 (apple_partition_map_get_name): Likewise.
5226 * partmap/bsdlabel.c: New file.
5227 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
5229 Allocate 'data' so it can be correctly freed.
5230 Set 'index' to offset inside sector.
5231 (gpt_partition_map_probe): Remove.
5232 (gpt_partition_map_get_name): Likewise.
5233 * partmap/msdos.c (grub_partition_parse): Remove.
5234 (pc_partition_map_iterate): Don't force raw access.
5236 Make 'ext_offset' a local variable.
5237 (pc_partition_map_probe): Remove.
5238 (pc_partition_map_get_name): Remove.
5239 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
5241 (sun_partition_map_probe): Remove.
5242 (sun_partition_map_get_name): Likewise.
5243 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
5244 (grub_pcpart_type): Likewise.
5245 * util/hostdisk.c (open_device): Handle new numbering scheme.
5246 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
5247 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
5248 * util/grub-probe.c (probe_partmap): Handle nested paritions.
5249 * util/grub-install.in: Insert all subpartition modules.
5250 * util/ieee1275/grub-install.in: Likewise.
5252 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
5254 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
5257 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
5259 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
5261 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
5263 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
5264 match where 'make install' puts them.
5265 * util/i386/efi/grub-install.in: Likewise.
5267 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
5269 * .bzrignore: Add gentrigtables, grub-script-check,
5270 grub_script_check_init.c, grub_script_check_init.h, and
5273 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
5275 * kern/parser.c: Indented.
5277 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
5279 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
5281 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
5283 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
5284 alpha_mask_size == 0 case.
5286 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
5288 GRUB shell lexer and parser improvements.
5290 * conf/any-emu.rmk: Build rule updates.
5291 * conf/common.rmk: Likewise.
5292 * conf/i386-coreboot.rmk: Likewise.
5293 * conf/i386-efi.rmk: Likewise.
5294 * conf/i386-ieee1275.rmk: Likewise.
5295 * conf/i386-pc.rmk: Likewise.
5296 * conf/powerpc-ieee1275.rmk: Likewise.
5297 * conf/x86_64-efi.rmk: Likewise.
5299 * configure.ac: Configure check for flex.
5301 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
5303 (grub_lexer_param): Struct member updates.
5304 (grub_parser_param): Likewise.
5305 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
5306 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
5307 (grub_script_lexer_init): Prototype update.
5308 (grub_script_lexer_record_start): Likewise.
5309 (grub_script_lexer_record_stop): Likewise.
5310 (grub_script_lexer_yywrap): New function prototype.
5311 (grub_script_lexer_fini): Likewise.
5312 (grub_script_execute_argument_to_string): Removed by...
5313 (grub_script_execute_argument_to_argv): ...better version.
5315 * script/execute.c (ROUND_UPTO): New macro.
5316 (grub_script_execute_cmdline): Out of memory fixes.
5317 (grub_script_execute_menuentry): Likewise.
5318 (grub_script_execute_argument_to_string): Removed. Update all
5320 (grub_script_execute_argument_to_argv): ...better version.
5321 * script/function.c (grub_script_function_create): Use
5322 grub_script_execute_argument_to_argv instead of
5323 grub_script_execute_argument_to_string.
5325 * script/lexer.c (check_varstate): Removed.
5326 (check_textstate): Removed.
5327 (grub_script_lexer_record_start): Likewise.
5328 (grub_script_lexer_record_stop): Likewise.
5329 (recordchar): Replaced with...
5330 (grub_script_lexer_record): ...new function.
5331 (nextchar): Removed.
5332 (grub_script_lexer_init): Rewritten.
5333 (grub_script_yylex): Rewritten.
5334 (append_newline): New function.
5335 (grub_script_lexer_yywrap): New function.
5336 (grub_script_lexer_fini): New function.
5337 (grub_script_yyerror): Sets error flag.
5339 * script/yylex.l: New file.
5340 (grub_lexer_yyfree): Wrapper for flex yyffre.
5341 (grub_lexer_yyalloc): Likewise.
5342 (grub_lexer_yyrealloc): Likewise.
5343 * script/parser.y: Refactored.
5345 * script/script.c (grub_script_arg_add): Out of memory fixes.
5346 (grub_script_add_arglist): Likewise.
5347 (grub_script_create_cmdline): Likewise.
5348 (grub_script_create_cmdmenu): Likewise.
5349 (grub_script_add_cmd): Likewise.
5350 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
5351 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
5354 * tests/grub_script_echo1.in: New testcase.
5355 * tests/grub_script_vars1.in: New testcase.
5356 * tests/grub_script_echo_keywords.in: New testcase.
5358 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5360 Remove some redundancy in build system.
5362 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
5363 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
5364 (TARGET_LDFLAGS): Add -nostdlib.
5365 (TARGET_IMG_LDFLAGS): Likewise.
5366 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
5367 anything since mmap isn't available.
5368 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
5370 (pkglib_MODULES): Remove reboot.mod.
5371 (reboot_mod_SOURCES): Removed.
5372 (reboot_mod_CFLAGS): Likewise.
5373 (reboot_mod_LDFLAGS): Likewise.
5374 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
5375 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
5376 (DEFSYMFILES): Add kernel_syms.lst.
5377 (kernel_img_HEADERS): Add common headers.
5378 (symlist.c): New target.
5379 (kernel_syms.lst): Likewise.
5380 (pkglib_MODULES): Add memdisk.mod.
5381 (memdisk_mod_SOURCES): New variable.
5382 (memdisk_mod_CFLAGS): Likewise.
5383 (memdisk_mod_LDFLAGS): Likewise.
5384 (pkglib_MODULES): Add reboot.mod.
5385 (reboot_mod_SOURCES): New variable.
5386 (reboot_mod_CFLAGS): Likewise.
5387 (reboot_mod_LDFLAGS): Likewise.
5388 (pkglib_MODULES): Add date.mod.
5389 (date_mod_SOURCES): New variable.
5390 (date_mod_CFLAGS): Likewise.
5391 (date_mod_LDFLAGS): Likewise.
5392 (pkglib_MODULES): Add datehook.mod.
5393 (datehook_mod_SOURCES): New variable.
5394 (datehook_mod_CFLAGS): Likewise.
5395 (datehook_mod_LDFLAGS): Likewise.
5396 (pkglib_MODULES): Add lsmmap.mod.
5397 (lsmmap_mod_SOURCES): New variable.
5398 (lsmmap_mod_CFLAGS): Likewise.
5399 (lsmmap_mod_LDFLAGS): Likewise.
5400 (pkglib_MODULES): Add boot.mod.
5401 (boot_mod_SOURCES): New variable.
5402 (boot_mod_CFLAGS): Likewise.
5403 (boot_mod_LDFLAGS): Likewise.
5404 * conf/i386-coreboot.rmk: Removed redundant parts.
5405 * conf/i386-ieee1275.rmk: Likewise.
5406 * conf/i386-pc.rmk: Likewise.
5407 * conf/mips-yeeloong.rmk: Likewise.
5408 * conf/mips.rmk: Likewise.
5409 * conf/powerpc-ieee1275.rmk: Likewise.
5410 * conf/sparc64-ieee1275.rmk: Likewise.
5411 * conf/x86_64-efi.rmk: Likewise.
5412 * conf/i386-coreboot.rmk: Moved qemu parts ..
5413 * conf/i386-qemu.rmk: ... here
5414 * conf/i386-efi.rmk: Moved common parts to...
5415 * conf/x86-efi.rmk: ... here.
5416 * conf/i386.rmk: Added modules common to all x86 variants.
5417 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
5418 * disk/memdisk.c: Remove grub/machine/kernel.h.
5419 * gensymlist.sh.in: Include symbol.h.
5420 * hook/datehook.c: Correct module name.
5421 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
5422 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
5423 * include/grub/i386/efi/serial.h: New file.
5424 * include/grub/x86_64/efi/serial.h: Likewise.
5425 * util/time.c: Likewise.
5426 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
5428 2010-03-14 Colin King <colin.king@ubuntu.com>
5429 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
5431 Shrink the pre-partition-table part of boot.img by eight bytes.
5433 * boot/i386/pc/boot.S (ERR): New macro.
5434 (chs_mode): Use ERR.
5435 (geometry_error): Likewise.
5436 (hd_probe_error): Remove. This is only used once, so we wrwite
5438 (read_error): Instead of printing read_error_string, just set up
5439 %si and fall through to ...
5440 (error_message): ... this new function, also used by ERR.
5442 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
5444 Speed up consecutive hostdisk operations on the same device.
5446 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
5447 (grub_util_biosdisk_open): Initialise disk->data.
5448 (struct linux_partition_cache): New structure.
5449 (linux_find_partition): Cache partition start positions; these are
5450 expensive to compute on every read and write.
5451 (open_device): Cache open file descriptor in disk->data, so that we
5452 don't have to reopen it and flush the buffer cache for consecutive
5453 operations on the same device.
5454 (grub_util_biosdisk_close): New function.
5455 (grub_util_biosdisk_dev): Set `close' member.
5457 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
5458 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
5459 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
5460 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
5461 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
5463 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5465 Compile parts of grub-emu as modules.
5467 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
5468 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
5469 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
5470 (all-local): Add $(GRUB_EMU).
5471 (install-local): Install $(GRUB_EMU).
5472 (uninstall): Uninstall $(GRUB_EMU).
5473 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
5474 * kern/dl.c: Likewise.
5475 * commands/sleep.c: Not include machine/time.h.
5476 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
5477 (COMMON_CFLAGS): Likewise.
5478 (sbin_UTILITIES): Remove grub-emu.
5479 (grub_emu_SOURCES): Removed.
5480 (kernel_img_RELOCATABLE): New variable.
5481 (pkglib_PROGRAMS): Add kernel.img.
5482 (kernel_img_SOURCES): New variable
5483 (kernel_img_CFLAGS): Likewise.
5484 (kernel_img_LDFLAGS): Likewise.
5485 (TARGET_NO_STRIP): Likewise.
5486 (TARGET_NO_DYNAMIC_MODULES): Likewise.
5487 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
5488 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
5489 (grub-emu): New target.
5490 (GRUB_EMU): New variable.
5491 * configure.ac: Whitelist -emu as possible x86_64 architecture.
5492 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
5493 * loader/xnu.c: Likewise.
5494 * include/grub/pci.h: Likewise.
5495 * genemuinit.sh: New file.
5496 * genemuinitheader.sh: Likewise.
5497 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
5498 Support TARGET_NO_DYNAMIC_MODULES.
5499 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
5500 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
5501 * disk/loopback.c: Likewise.
5502 * font/font_cmd.c: Likewise.
5503 * partmap/acorn.c: Likewise.
5504 * partmap/amiga.c: Likewise.
5505 * partmap/apple.c: Likewise.
5506 * partmap/gpt.c: Likewise.
5507 * partmap/msdos.c: Likewise.
5508 * partmap/sun.c: Likewise.
5509 * parttool/msdospart.c: Likewise.
5510 * term/gfxterm.c: Likewise.
5511 * video/bitmap.c: Likewise.
5512 * video/readers/jpeg.c: Likewise.
5513 * video/readers/png.c: Likewise.
5514 * video/readers/tga.c: Likewise.
5515 * video/video.c: Likewise.
5516 * util/grub-emu.c (read_command_list): Removed.
5517 (main): Don't call util_init_nls.
5518 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
5519 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
5521 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5523 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
5524 date.mod, datehook.mod.
5525 (datetime_mod_SOURCES): New variable.
5526 (datetime_mod_CFLAGS): Likewise.
5527 (datetime_mod_LDFLAGS): Likewise.
5528 (date_mod_SOURCES): Likewise.
5529 (date_mod_CFLAGS): Likewise.
5530 (date_mod_LDFLAGS): Likewise.
5531 (datehook_mod_SOURCES): Likewise.
5532 (datehook_mod_CFLAGS): Likewise.
5533 (datehook_mod_LDFLAGS): Likewise.
5534 * conf/sparc64-ieee1275.rmk: Likewise.
5535 * lib/ieee1275/datetime.c: New file.
5537 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5539 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
5540 (ieee1275_fb_mod_SOURCES): New variable.
5541 (ieee1275_fb_mod_CFLAGS): Likewise.
5542 (ieee1275_fb_mod_LDFLAGS): Likewise.
5543 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
5545 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
5546 (HEAP_MAX_ADDR): Likewise.
5547 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
5549 Correct stop condition.
5550 (grub_ieee1275_devices_iterate): New function.
5551 * video/ieee1275.c: New file.
5553 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5555 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
5557 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
5559 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
5560 SCRATCH_PAD_DISKBOOT as scratch.
5561 (bootit): Pass Openfirmware pointer in %o4.
5562 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
5564 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
5565 with util/grub-mkrawimage.c.
5566 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
5567 * include/grub/aout.h (AOUT_MID_SUN): New definition.
5568 (grub_aout_get_type) [GRUB_UTIL]: Removed.
5569 (grub_aout_load) [GRUB_UTIL]: Likewise.
5570 * include/grub/kernel.h (grub_modules_get_end): New proto.
5571 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
5572 (SCRATCH_PAD_BOOT): New definition.
5573 (SCRATCH_PAD_DISKBOOT): Likewise.
5574 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
5575 * include/grub/sparc64/ieee1275/ieee1275.h
5576 (grub_ieee1275_original_stack): New variable
5577 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
5579 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
5580 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
5581 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
5582 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
5583 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
5584 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
5585 (grub_platform_image_format_t): New type.
5586 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
5587 * kern/main.c (grub_modules_get_end)
5588 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
5589 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
5590 (codestart): Switch stacks.
5591 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
5593 (grub_heap_init): Use grub_modules_get_end.
5594 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
5596 * util/grub-mkrawimage.c (generate_image): Support sparc64.
5598 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
5600 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
5602 * util/grub-mkrescue.in: Base ISO UUID on UTC.
5604 2010-03-08 Matt Kraai <kraai@ftbfs.org>
5606 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
5609 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
5611 * genmoddep.awk: Output all missing symbols and not only first.
5613 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5615 * NEWS: Put the date of 1.98 release.
5617 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5619 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
5622 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5624 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
5625 completition in the middle of string.
5627 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5629 * util/grub-mkrescue.in: Use mktemp with explicit template.
5631 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5633 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
5635 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5637 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
5640 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5642 Fix FreeBSD compilation.
5644 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
5645 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
5647 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5649 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
5651 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5653 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
5655 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5657 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
5659 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
5661 Support relative image path in theme file.
5663 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
5664 (image_set_property): Handle theme_dir and relative path.
5666 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5668 * configure.ac: Alias amd64 to x86_64.
5670 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5672 * NEWS: mention multiboot on EFI.
5674 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5676 * kern/main.c (grub_load_modules): Handle errors from init functions of
5679 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5681 * normal/autofs.c (autoload_fs_module): Handle errors.
5683 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5685 Disable linux.mod on qemu-mips since it's not functional and leads
5686 to compilation failure.
5688 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
5689 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
5690 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
5691 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
5692 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
5693 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
5694 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
5695 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
5696 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
5697 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
5698 Reported by: BVK Chaitanya
5700 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
5702 * INSTALL: Add gettext as a dependency and add qemu to a new section
5703 "Prerequisites for make-check".
5705 2010-03-04 Christian Franke <franke@computer.org>
5707 * util/grub-pe2elf.c: Add missing include "progname.h".
5709 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5711 * normal/crypto.c (read_crypto_list): Fix a typo.
5712 Reported by: Seth Goldberg.
5714 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5716 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
5717 Reported by: Seth Goldberg.
5719 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5721 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
5724 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5726 * genmk.rb: Remove terminal*.lst in make clean.
5727 Reported by: Seth Goldberg.
5729 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5731 * util/i386/efi/grub-install.in: Copy gettext files.
5733 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
5735 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
5737 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
5739 Wait for user entry basing on presence of output rather than on errors.
5741 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
5742 (grub_install_newline_hook): Likewise.
5743 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
5744 * normal/menu.c (show_menu): Check line_counter to determine presence
5746 * normal/term.c (grub_normal_line_counter): New variable.
5747 (grub_normal_get_line_counter): New function.
5748 (grub_install_newline_hook): Likewise.
5750 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
5752 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
5754 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
5756 * configure.ac: Update version to 1.98.
5758 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5760 * util/grub.d/10_linux.in (linux_entry): Don't default to
5761 gfxpayload=keep if Linux doesn't support video handover.
5763 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5765 Don't compile video modules on yeeloong since video subsystem is part
5768 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
5769 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
5770 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
5771 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
5772 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
5773 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
5774 * include/grub/bitmap_scale.h: Likewise.
5775 * include/grub/bufio.h: Likewise.
5776 * include/grub/font.h: Likewise.
5777 * include/grub/gfxterm.h: Likewise.
5778 * include/grub/video.h: Likewise.
5779 * include/grub/vbe.h: Don't include video_fb.h.
5780 * video/i386/pc/vbe.c: Include video_fb.h.
5781 * commands/i386/pc/vbetest.c: Include video.h.
5783 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
5785 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
5786 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
5787 default entry if GRUB_SAVEDEFAULT=true. This allows using
5788 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
5789 saving a new default on every boot.
5791 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5793 * normal/crypto.c (read_crypto_list): Fix a memory leak.
5794 * normal/term.c (read_terminal_list): Likewise.
5795 * normal/main.c (grub_normal_init_page): Likewise.
5796 (grub_normal_read_line_real): Likewise.
5798 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5800 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
5802 Reported by: Seth Goldberg.
5804 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
5806 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
5807 duplicate declaration of `start'.
5809 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
5811 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
5813 Reported by: Georgy Buranov
5815 2010-02-20 Carles Pina i Estany <carles@pina.cat>
5817 * util/grub-mkrawimage.c (usage): Change string formatting to
5820 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
5822 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
5825 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
5827 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
5828 Reported by: Michael Suchanek.
5830 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5832 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
5833 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
5835 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
5837 Remove any reference to non-free fonts.
5839 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
5840 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
5841 uses non-free components.
5842 * font/font.c (grub_font_get_name): Remove example name.
5843 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
5844 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
5845 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
5846 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
5848 2010-02-16 Georgy Buranov <gburanov@gmail.com>
5850 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
5852 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
5854 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
5856 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
5858 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
5860 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
5862 * gensymlist.sh.in: Use TARGET_CC instead of CC.
5864 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5866 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
5867 * docs/grub.texi (Command-line and menu entry commands): Document play
5870 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5872 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
5873 parse arguments as inline tempo and notes. Move code for playing notes
5875 (play): ... new function.
5877 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5879 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
5880 grub_uint16_t instead of short.
5881 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
5882 disk from little endian to cpu endianness.
5884 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5886 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
5887 GRUB_TICKS_PER_SECOND instead of 120.
5889 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5891 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
5892 escape sequence after \e.
5894 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5896 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
5897 non-ASCII characters.
5899 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5901 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
5902 set root in single quotes to prevent \, from being unescaped.
5904 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5906 Prevent unknown commands from stopping menuentry execution.
5908 * script/execute.c (grub_script_execute_cmdline): Print error after
5911 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5913 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
5914 Reported by: Pavel Pisa.
5916 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5918 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
5920 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5922 Merge grub_ieee1275_map_physical into grub_map and rename to
5925 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
5926 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
5928 * kern/ieee1275/openfw.c (grub_map): Rename to ...
5929 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
5931 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
5933 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5935 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
5936 opening and not after.
5938 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5940 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
5943 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5945 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
5946 (alloc_phys): Use ALIGN_UP instead of align_addr.
5948 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5950 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
5952 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5954 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
5956 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5958 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
5961 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5963 Fix over-4GiB seek on sparc64.
5965 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
5966 Replace pos_i and pos_lo with pos. All users updated.
5967 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
5969 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
5971 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
5974 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5976 * util/grub-mkrawimage.c (main): Call set_program_name.
5978 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5980 Properly align 64-bit targets.
5982 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
5983 (generate_image): Use ALIGN_ADDR.
5985 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5987 Properly create cross-endian images.
5989 * include/grub/types.h (grub_host_to_target_addr): New macro
5990 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
5992 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
5994 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
5996 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5998 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
6000 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
6001 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
6002 (grub_linux_boot): Divide by 64K when on VESA.
6004 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6006 Support GRUB_GFXPAYLOAD_LINUX.
6008 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
6009 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
6011 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6013 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
6014 to show messages instead of discarding them.
6015 Process errors after executing command and not before. Keep old method
6018 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6020 * configure.ac: Check for ft2build.h.
6022 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6024 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
6026 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6028 * genkernsyms.sh.in: Use TARGET_CC.
6030 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
6034 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6036 * include/grub/multiboot2.h: Remove leftover file.
6037 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
6038 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6040 2010-02-07 Yves Blusseau <blusseau@zetam.org>
6042 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
6044 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6046 Fix warnings in grub-emu when compiling with maximum warning options.
6048 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
6049 (grub_arch_modules_addr): Return 0 and not NULL.
6050 * util/misc.c (ENABLE_RELOCATABLE): New definition.
6051 (xstrdup): Use newstr instead of dup.
6052 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
6053 of disk to dsk to avoid shadowing.
6054 (find_free_slot): Fix prototype.
6055 * util/getroot.c (grub_util_is_dmraid): Make static.
6056 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
6057 Add missing prototype.
6058 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
6060 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6062 * loader/i386/linux.c (grub_linux_setup_video): Handle error
6065 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6067 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
6070 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6072 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
6073 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
6074 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
6075 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
6076 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
6077 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
6079 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6081 * include/grub/err.h (grub_err_printf): Don't export.
6083 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6085 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
6087 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6089 * include/grub/i18n.h (grub_gettext_dummy): Removed.
6090 * kern/misc.c (grub_gettext_dummy): Make static.
6092 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6094 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
6096 * kern/term.c (grub_putchar): Likewise.
6098 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6100 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
6101 buggy hook call and memory leak.
6103 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6105 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
6107 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6109 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
6111 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6113 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
6115 Return grub_errno on allocation error.
6117 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6119 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
6121 2010-02-06 Yves Blusseau <blusseau@zetam.org>
6123 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
6124 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
6126 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6128 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
6130 (grub_pxefs_open): Likewise.
6132 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
6134 * util/grub.d/10_hurd.in: Add --class information to menuentries.
6135 * util/grub.d/10_kfreebsd.in: Likewise.
6136 * util/grub.d/10_linux.in: Likewise.
6138 2010-02-06 Colin D Bennett <colin@gibibit.com>
6140 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
6141 (gfxmenu_mod_SOURCES): New variable.
6142 (gfxmenu_mod_CFLAGS): Likewise.
6143 (gfxmenu_mod_LDFLAGS): Likewise.
6144 * include/grub/term.h (grub_term_set_current_output): Declare
6146 * docs/gfxmenu-theme-example.txt: New file.
6147 * gfxmenu/gfxmenu.c: Likewise.
6148 * gfxmenu/gui_box.c: Likewise.
6149 * gfxmenu/gui_canvas.c: Likewise.
6150 * gfxmenu/gui_circular_progress.c: Likewise.
6151 * gfxmenu/gui_image.c: Likewise.
6152 * gfxmenu/gui_label.c: Likewise.
6153 * gfxmenu/gui_list.c: Likewise.
6154 * gfxmenu/gui_progress_bar.c: Likewise.
6155 * gfxmenu/gui_string_util.c: Likewise.
6156 * gfxmenu/gui_util.c: Likewise.
6157 * gfxmenu/icon_manager.c: Likewise.
6158 * gfxmenu/model.c: Likewise.
6159 * gfxmenu/named_colors.c: Likewise.
6160 * gfxmenu/theme_loader.c: Likewise.
6161 * gfxmenu/view.c: Likewise.
6162 * gfxmenu/widget-box.c: Likewise.
6163 * include/grub/gfxmenu_model.h: Likewise.
6164 * include/grub/gfxmenu_view.h: Likewise.
6165 * include/grub/gfxwidgets.h: Likewise.
6166 * include/grub/gui.h: Likewise.
6167 * include/grub/gui_string_util.h: Likewise.
6168 * include/grub/icon_manager.h: Likewise.
6170 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6172 Agglomerate scrolling in gfxterm.
6174 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
6175 (grub_virtual_screen_setup): Initialise 'total_screen'.
6176 (write_char): Split to ...
6177 (paint_char): ... this ...
6178 (write_char): ... and this.
6179 (paint_char): Handle delayed scrolling.
6180 (draw_cursor): Likewise.
6181 (scroll_up): Split to ...
6182 (real_scroll): ... this ...
6183 (scroll_up): ... and this.
6184 (real_scroll): Handle multi-line scroll and draw below-the-bottom
6186 (grub_gfxterm_refresh): Call real_scroll.
6188 2010-02-06 Colin D Bennett <colin@gibibit.com>
6190 * include/grub/misc.h (grub_iscntrl): New inline function.
6191 (grub_isalnum): Likewise.
6192 (grub_strtol): Likewise.
6194 2010-02-06 Colin D Bennett <colin@gibibit.com>
6196 * normal/menu_text.c (get_entry_number): Move from here ...
6197 * normal/menu.c (get_entry_number): ... moved here.
6198 * include/grub/menu.h (grub_menu_get_default_entry_index):
6200 * normal/menu.c (grub_menu_get_default_entry_index): New function.
6201 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
6202 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
6203 (grub_menu_viewer_should_return): Likewise.
6204 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
6205 * normal/menu_text.c (run_menu): Enable menu switching.
6206 * normal/menu_viewer.c (should_return): New variable.
6207 (menu_viewer_changed): Likewise.
6208 (grub_menu_viewer_show_menu): Handle menu viewer changes.
6209 (grub_menu_viewer_should_return): New function.
6210 (menuviewer_write_hook): Likewise.
6211 (grub_menu_viewer_init): Likewise.
6213 2010-02-06 Colin D Bennet <colin@gibibit.com>
6214 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6216 Support for gfxterm in a window.
6218 * include/grub/gfxterm.h: New file.
6219 * include/grub/video.h (struct grub_video_rect): New declaration.
6220 (grub_video_rect_t): Likewise.
6221 * term/gfxterm.c (struct grub_gfxterm_window): New type.
6222 (refcount): New variable.
6223 (render_target): Likewise.
6225 (repaint_callback): Likewise.
6226 (grub_virtual_screen_setup): Use 'render_target'.
6227 (init_window): New function.
6228 (grub_gfxterm_init_window): Likewise.
6229 (grub_gfxterm_init): Check reference counter.
6231 (destroy_window): New function.
6232 (grub_gfxterm_destroy_window): Likewise.
6233 (grub_gfxterm_fini): Check reference counter.
6235 (redraw_screen_rect): Restore viewport.
6236 Use 'render_target' and 'window'.
6237 Call 'repaint_callback'.
6238 (write_char): Use 'render_target'.
6239 (draw_cursor): Likewise.
6240 (scroll_up): Restore viewport.
6241 Use 'render_target' and 'window'.
6242 Call 'repaint_callback'.
6243 (grub_gfxterm_cls): Likewise.
6244 (grub_gfxterm_refresh): Use 'window'.
6245 (grub_gfxterm_set_repaint_callback): New function.
6246 (grub_gfxterm_background_image_cmd): Use 'window'.
6247 (grub_gfxterm_get_term): New function.
6248 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
6250 2010-02-06 Colin D Bennett <colin@gibibit.com>
6252 Bitmap scaling support.
6254 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
6255 (bitmap_scale_mod_SOURCES): New variable.
6256 (bitmap_scale_mod_CFLAGS): Likewise.
6257 (bitmap_scale_mod_LDFLAGS): Likewise.
6258 * include/grub/bitmap_scale.h: New file.
6259 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
6260 (background_image_cmd_options): New variable.
6261 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
6262 (cmd): Rename and change type to ...
6263 (background_image_cmd_handle): ... this. All users updated.
6264 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
6265 * video/bitmap_scale.c: New file.
6267 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6271 * Makefile.in (LIBSDL): New variable.
6272 (enable_grub_emu_sdl): Likewise.
6273 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
6274 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
6275 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
6276 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
6277 * util/sdl.c: New file.
6279 2010-02-06 Colin D Bennett <colin@gibibit.com>
6280 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6282 Double buffering support.
6284 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
6285 * include/grub/video.h: Update comment.
6286 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
6288 (grub_video_fb_doublebuf_blit_init): New prototype.
6289 * term/gfxterm.c (scroll_up): Support double buffering.
6290 (grub_gfxterm_refresh): Likewise.
6291 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
6292 (grub_video_fb_doublebuf_blit_init): Likewise.
6293 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
6294 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
6295 'displayed_page', 'render_page' and 'update_screen'.
6296 (grub_video_vbe_fini): Free offscreen buffer.
6297 (doublebuf_pageflipping_commit): New function.
6298 (doublebuf_pageflipping_update_screen): Likewise.
6299 (doublebuf_pageflipping_init): Likewise.
6300 (double_buffering_init): Likewise.
6301 (grub_video_vbe_setup): Enable doublebuffering.
6302 (grub_video_vbe_swap_buffers): Implement.
6303 (grub_video_vbe_set_active_render_target): Handle double buffering.
6304 (grub_video_vbe_get_active_render_target): Likewise.
6305 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
6306 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
6307 (grub_video_vbe_enable_double_buffering): Likewise.
6308 (grub_video_vbe_swap_buffers): Use update_screen.
6309 (grub_video_set_mode): Use double buffering.
6311 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
6313 * maintainance/gentrigtables.py: Remove.
6314 * lib/trig.c: Likewise.
6316 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
6318 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
6320 (trigtables.c): New rule.
6321 (gentrigtables): Likewise.
6322 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
6324 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
6326 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
6329 2010-02-06 Colin D Bennet <colin@gibibit.com>
6331 Trigonometry support.
6333 * include/grub/trig.h: New file.
6334 * lib/trig.c: Likewise.
6335 * maintainance/gentrigtables.py: Likewise.
6336 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
6337 (trig_mod_SOURCES): New variable.
6338 (trig_mod_CFLAGS): Likewise.
6339 (trig_mod_LDFLAGS): Likewise.
6341 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6343 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
6346 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6348 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
6351 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6353 * util/hostdisk.c (open_device): Don't use partition device when reading
6354 before the partition.
6355 (grub_util_biosdisk_read): Don't read from partition and before the
6356 partition in single operation.
6357 (grub_util_biosdisk_write): Don't write to partition and before the
6358 partition in single operation.
6360 2010-02-03 Torsten Landschoff <torsten@debian.org>
6362 * kern/disk.c (grub_disk_read): Fix offset computation when reading
6365 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6367 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
6369 (grub_biosdisk_write): Refuse to write to CDROM.
6371 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6373 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
6375 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6377 * font/font.c (find_glyph): Check that bmp_idx is available before
6379 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
6380 with (font == NULL).
6382 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
6384 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
6386 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
6388 * include/grub/script_sh.h (sourcecode): Add const qualifier.
6389 * util/grub-script-check.c (getline): Fix empty lines case.
6391 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
6393 * Makefile.in (check): Exit with fail status when one of the tests
6395 * tests/example_functional_test.c (example_test): Fix reversed assert.
6396 * tests/example_unit_test.c (example_test): Likewise.
6398 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
6400 * util/grub.d/10_linux.in: This script does not use any of the
6401 contents of gettext.sh, only the external command `gettext', so stop
6402 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
6403 the same prefix as GRUB.)
6404 * util/grub.d/10_kfreebsd.in: Likewise.
6406 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6408 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
6411 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6413 * kern/disk.c (grub_disk_read): Fix offset computation when reading
6416 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6418 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
6419 having a 4KiB and not 32KiB buffer size.
6421 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6423 * util/hostfs.c: Include `<errno.h>'.
6424 (grub_hostfs_read): Handle errors from fseeko() and fread().
6426 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6428 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
6429 loop when using read hooks on files whose size isn't sector-aligned.
6431 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6433 Remove unused parameter.
6435 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
6436 (grub_iso9660_open): Remove initialization of `data->length'.
6438 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6440 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
6443 2010-01-27 Carles Pina i Estany <carles@pina.cat>
6445 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
6446 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
6448 2010-01-26 Carles Pina i Estany <carles@pina.cat>
6450 * util/bin2h.c (usage): Fix warning (space after backslash).
6452 2010-01-26 Carles Pina i Estany <carles@pina.cat>
6454 * font/font.c: Include `grub/fontformat.h.
6455 Remove font file format constants.
6456 (grub_font_load): Use the new macros.
6457 * include/grub/fontformat.h: New file.
6458 * util/grub-mkfont.c: Include `grub/fontformat.c'.
6459 (write_font_pf2): Use the new macros.
6461 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
6463 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
6466 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
6468 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
6470 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
6471 (_start): Macroify `0x7F'.
6473 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
6474 (make_install_device): Use "(pxe)" as fallback prefix when booting
6477 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6479 * configure.ac: Reset LIBS after check for libgcc symbols.
6481 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
6483 * util/hostdisk.c (open_device): Add trailing newline to debug
6486 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
6488 * configure.ac: Check for `limits.h'.
6489 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
6491 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
6493 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
6494 capitalize error strings.
6496 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6498 * util/grub.d/10_hurd.in: Add a recovery mode.
6500 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6502 * configure.ac: Check for libgcc symbols with -nostdlib.
6504 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
6506 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
6508 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6510 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
6511 stack since heap may be unavailable at that point.
6512 (grub_ofconsole_gotoxy): Likewise.
6514 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6516 * configure.ac: Check for _restgpr_14_x.
6517 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
6518 and _savegpr_* prototypes.
6520 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
6522 Use generic grub_reboot() for i386-efi.
6524 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
6525 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
6526 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
6528 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6530 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
6531 presence of "prefix" variable as it breaks when normal.mod is
6534 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6536 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
6537 stack since heap is unavailable at that point.
6539 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6541 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
6542 (grub_freebsd_bootinfo): Rewritten.
6543 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
6545 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6547 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
6549 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
6551 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
6554 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
6556 * util/misc.c (make_system_path_relative_to_its_root): Change the work
6557 around for handling "/" to the correct fix. Fix a memory leak. Use
6558 xstrdup instead of strdup.
6560 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6562 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
6564 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6566 Optimise glyph lookup by Basic Multilingual Plane lookup array.
6568 * font/font.c (struct grub_font): New member 'bmp_idx'.
6569 (font_init): Initialise 'bmp_idx'.
6570 (load_font_index): Fill 'bmp_idx'.
6571 (find_glyph): Make inline. Use bmp_idx for BMP characters.
6573 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6575 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
6578 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6580 Move context handling out of the kernel.
6582 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
6583 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
6584 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
6585 * conf/i386-efi.rmk: Likewise.
6586 * conf/i386-ieee1275.rmk: Likewise.
6587 * conf/i386-pc.rmk: Likewise.
6588 * conf/powerpc-ieee1275.rmk: Likewise.
6589 * conf/sparc64-ieee1275.rmk: Likewise.
6590 * conf/x86_64-efi.rmk: Likewise.
6591 * include/grub/env.h: Include grub/menu.h.
6592 (grub_env_var_type): Removed.
6593 (grub_env_var): Replaced field 'type' with 'global'.
6594 (grub_env_find): New prototype.
6595 (grub_env_context_open): Remove EXPORT_FUNC.
6596 (grub_env_context_close): Likewise.
6597 (grub_env_export): Likewise.
6598 (grub_env_set_data_slot): Removed.
6599 (grub_env_get_data_slot): Likewise.
6600 (grub_env_unset_data_slot): Likewise.
6601 (grub_env_unset_menu): New prototype.
6602 (grub_env_set_menu): Likewise.
6603 (grub_env_get_menu): Likewise.
6604 * include/grub/env_private.h: New file.
6605 * include/grub/normal.h (grub_context_init): New prototype.
6606 (grub_context_fini): Likewise.
6607 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
6608 * normal/context.c (grub_cmd_export): ... to here.
6609 * kern/env.c: Include env_private.h.
6610 (HASHSZ): Moved to include/grub/env_private.h.
6611 (grub_env_context): Likewise.
6612 (grub_env_sorted_var): Likewise.
6613 (current_context): Renamed from this ...
6614 (grub_current_context): ...to this. 'static' removed. All users updated.
6615 (grub_env_find): Removed 'static'.
6616 (grub_env_context_open): Moved to normal/context.c.
6617 (grub_env_context_close): Likewise.
6618 (grub_env_export): Likewise.
6619 (mangle_data_slot_name): Removed.
6620 (grub_env_set_data_slot): Likewise.
6621 (grub_env_get_data_slot): Likewise.
6622 (grub_env_unset_data_slot): Likewise.
6623 * kern/main.c (grub_set_root_dev): Don't export root.
6624 It will be done later.
6625 (grub_main): Don't export prefix.
6626 It will be done later.
6627 * normal/context.c: New file.
6628 * normal/main.c (free_menu): Use grub_env_unset_menu.
6629 (grub_normal_add_menu_entry): Use grub_env_get_menu.
6630 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
6631 (GRUB_MOD_INIT(normal)): Call grub_context_init.
6632 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
6634 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6638 * commands/setpci.c: New file.
6639 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
6640 (setpci_mod_SOURCES): New variable.
6641 (setpci_mod_CFLAGS): Likewise.
6642 (setpci_mod_LDFLAGS): Likewise.
6644 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6646 Byte-addressable PCI configuration space.
6648 * bus/pci.c (grub_pci_make_address): Use byte address instead of
6650 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
6651 GRUB_PCI_REG_CACHELINE.
6652 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
6653 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
6654 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
6655 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
6656 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
6657 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
6658 grub_pci_make_address.
6659 (lock_rom_area): Likewise.
6660 * commands/lspci.c (grub_lspci_iter): Use macroses
6661 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
6662 of grub_pci_make_address.
6663 * disk/ata.c (grub_ata_pciinit): Likewise.
6664 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
6665 (GRUB_PCI_REG_VENDOR): Likewise.
6666 (GRUB_PCI_REG_DEVICE): Likewise.
6667 (GRUB_PCI_REG_COMMAND): Likewise.
6668 (GRUB_PCI_REG_STATUS): Likewise.
6669 (GRUB_PCI_REG_REVISION): Likewise.
6670 (GRUB_PCI_REG_CLASS): Likewise.
6671 (GRUB_PCI_REG_CACHELINE): Likewise.
6672 (GRUB_PCI_REG_LAT_TIMER): Likewise.
6673 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
6674 (GRUB_PCI_REG_BIST): Likewise.
6675 (GRUB_PCI_REG_ADDRESSES): Likewise.
6676 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
6677 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
6678 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
6679 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
6680 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
6681 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
6682 (GRUB_PCI_REG_CIS_POINTER): Likewise.
6683 (GRUB_PCI_REG_SUBVENDOR): Likewise.
6684 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
6685 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
6686 (GRUB_PCI_REG_CAP_POINTER): Likewise.
6687 (GRUB_PCI_REG_IRQ_LINE): Likewise.
6688 (GRUB_PCI_REG_IRQ_PIN): Likewise.
6689 (GRUB_PCI_REG_MIN_GNT): Likewise.
6690 (GRUB_PCI_REG_MAX_LAT): Likewise.
6691 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
6692 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
6693 * video/efi_uga.c (find_framebuf): Likewise.
6694 * video/sm712.c (grub_video_sm712_setup): Likewise.
6695 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
6698 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
6700 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
6701 can be reliably determined to be supported.
6703 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
6705 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
6706 that VESA is supported.
6707 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
6710 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6712 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
6714 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
6716 * util/misc.c (make_system_path_relative_to_its_root): Work around
6717 special-casing of "/", as previous incarnation of this routine did.
6719 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6721 Fix any-emu compilation.
6723 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
6724 * grub_bin2h_SOURCES: New variable.
6726 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
6728 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
6730 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
6732 * util/grub.d/00_header.in: Fix handling of locale_dir.
6734 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6736 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
6737 as possible unifont location (Gentoo).
6738 Reported by: Alexander Brüning
6740 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6742 Don't try to generate lists for kernel.img.
6744 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
6745 (pkglib_MODULES): Remove kernel.img.
6746 (kernel_img_EXPORTS): Removed.
6747 (kernel_img_RELOCATABLE): New variable.
6748 * conf/x86_64-efi.rmk: Likewise.
6749 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
6751 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6753 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
6754 grub_xasprintf or grub_snprintf.
6755 (grub_vsprintf): Likewise.
6756 (grub_snprintf): New proto.
6757 (grub_vsnprintf): Likewise.
6758 (grub_xasprintf): Likewise.
6759 (grub_xvasprintf): Likewise.
6760 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
6761 (grub_sprintf): Removed.
6762 (grub_vsnprintf): New function.
6763 (grub_snprintf): Likewise.
6764 (grub_xvasprintf): Likewise.
6765 (grub_xasprintf): Likewise.
6766 (grub_vsprintf): Renamed to ...
6767 (grub_vsnprintf_real): ...this. New argument max_len.
6769 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
6771 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
6772 fix grub-script-check warning.
6774 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6776 * include/grub/font.h (grub_font_load): Fix prototype.
6778 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6780 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
6782 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6784 * include/grub/x86_64/at_keyboard.h: New file.
6786 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6788 * loader/mips/linux.c: Include missing grub/i18n.h.
6790 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
6792 * normal/menu.c (notify_execution_failure): Clarify error message.
6794 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
6796 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
6797 return value (and revert all return statements). Update users.
6799 2010-01-20 Dan Merillat <debian@dan.merillat.org>
6801 * kern/device.c (grub_device_iterate): Allocate new part_ent
6802 structure based on sizeof (*p) rather than sizeof (p->next), to
6803 account for structure padding.
6805 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
6806 disk is NULL, which might happen for LVM physical volumes with no
6809 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
6811 * loader/mips/linux.c (grub_cmd_initrd)
6812 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
6814 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
6816 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
6817 (grub_video_video_init, grub_video_bitmap_init)
6818 (grub_font_manager_init, grub_term_gfxterm_init)
6819 (grub_at_keyboard_init): New extern declarations.
6820 (grub_machine_init): Initialize gfxterm and at_keyboard.
6822 * kern/main.c (grub_main): Revert grub_printf delay kludge.
6824 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
6825 `gfxterm.mod' into core image.
6827 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
6828 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
6829 (kernel_img_FORMAT): Copy to ...
6831 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
6832 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
6833 (kernel_img_FORMAT): ... here, and ...
6835 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
6836 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
6837 (kernel_img_FORMAT): ... here.
6839 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
6840 and input (at_keyboard) terminals in kernel.
6841 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
6843 (pkglib_MODULES): Remove `pci.mod'.
6844 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
6845 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
6846 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6847 (at_keyboard_mod_LDFLAGS): Remove variables.
6849 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
6851 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
6853 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
6855 * include/grub/mips/libgcc.h: Only export symbols for functions
6856 that libgcc provides.
6858 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
6862 * bus/bonito.c: New file.
6863 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
6864 GRUB_PCI_NUM_DEVICES.
6865 * term/i386/pc/serial.c: Move to ...
6866 * term/serial.c: ... here. All users updated.
6867 * util/i386/pc/grub-mkimage.c: Move to ...
6868 * util/grub-mkrawimage.c: ... here. All users updated.
6869 * term/i386/pc/at_keyboard.c: Move to ...
6870 * term/at_keyboard.c: ... here. All users updated.
6871 * conf/mips-qemu-mips.rmk: New file.
6872 * conf/mips-yeeloong.rmk: Likewise.
6873 * conf/mips.rmk: Likewise.
6874 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
6876 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
6878 (grub_ata_pciinit): Support CS5536.
6879 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
6880 * font/font_cmd.c (loadfont_command): Open file before passing it to
6882 (pseudo_file_read): New function.
6883 (pseudo_file_close): Likewise.
6884 (pseudo_fs): New structure.
6885 (load_font_module): New function.
6886 (GRUB_MOD_INIT(font_manager)): Load embedded font.
6887 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
6888 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
6889 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
6890 * include/grub/i386/at_keyboard.h: Split into ...
6891 * include/grub/at_keyboard.h: ... this ...
6892 * include/grub/i386/at_keyboard.h: ... and this.
6893 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
6895 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
6897 (grub_elf64_size): Likewise.
6898 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
6900 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
6901 * include/grub/i386/coreboot/serial.h: Rewritten.
6902 * include/grub/i386/ieee1275/serial.h: Include
6903 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
6904 * include/grub/i386/pc/serial.h: Moved from here ...
6905 * include/grub/serial.h: ... to here. All users updated.
6906 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
6907 (GRUB_PCI_NUM_BUS): Likewise.
6908 (GRUB_PCI_NUM_DEVICES): Likewise.
6909 (grub_pci_device_map_range): Add missing volatile keyword.
6910 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
6911 * include/grub/mips/at_keyboard.h: New file.
6912 * include/grub/mips/cache.h: Likewise.
6913 * include/grub/mips/io.h: Likewise.
6914 * include/grub/mips/kernel.h: Likewise.
6915 * include/grub/mips/libgcc.h: Likewise.
6916 * include/grub/mips/pci.h: Likewise.
6917 * include/grub/mips/qemu-mips/boot.h: Likewise.
6918 * include/grub/mips/qemu-mips/kernel.h: Likewise.
6919 * include/grub/mips/qemu-mips/loader.h: Likewise.
6920 * include/grub/mips/qemu-mips/memory.h: Likewise.
6921 * include/grub/mips/qemu-mips/serial.h: Likewise.
6922 * include/grub/mips/qemu-mips/time.h: Likewise.
6923 * include/grub/mips/relocator.h: Likewise.
6924 * include/grub/mips/time.h: Likewise.
6925 * include/grub/mips/types.h: Likewise.
6926 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
6927 * include/grub/mips/yeeloong/boot.h: Likewise.
6928 * include/grub/mips/yeeloong/kernel.h: Likewise.
6929 * include/grub/mips/yeeloong/loader.h: Likewise.
6930 * include/grub/mips/yeeloong/memory.h: Likewise.
6931 * include/grub/mips/yeeloong/pci.h: Likewise.
6932 * include/grub/mips/yeeloong/serial.h: Likewise.
6933 * include/grub/mips/yeeloong/time.h: Likewise.
6934 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
6935 * kern/elf.c (grub_elf32_size): New parameter. All users
6937 (grub_elf64_size): Likewise.
6938 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
6939 Load modules before saying "Welcome to GRUB!".
6940 Call grub_refresh after saying "Welcome to GRUB!".
6941 * kern/mips/cache.S: New file.
6942 * kern/mips/cache_flush.S: Likewise.
6943 * kern/mips/dl.c: Likewise.
6944 * kern/mips/init.c: Likewise.
6945 * kern/mips/qemu-mips/init.c: Likewise.
6946 * kern/mips/startup.S: Likewise.
6947 * kern/mips/yeeloong/init.c: Likewise.
6948 * kern/term.c (grub_putcode): Handle NULL terminal.
6949 (grub_getcharwidth): Likewise.
6950 (grub_getkey): Likewise.
6951 (grub_checkkey): Likewise.
6952 (grub_getkeystatus): Likewise.
6953 (grub_getxy): Likewise.
6954 (grub_getwh): Likewise.
6955 (grub_gotoxy): Likewise.
6956 (grub_cls): Likewise.
6957 (grub_setcolorstate): Likewise.
6958 (grub_setcolor): Likewise.
6959 (grub_getcolor): Likewise.
6960 (grub_refresh): Likewise.
6961 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
6962 (write_jump): Add hatch nop.
6963 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
6964 * lib/mips/setjmp.S: New file.
6965 * loader/mips/linux.c: Likewise.
6966 * term/i386/pc/at_keyboard.c: Move from here ...
6967 * term/at_keyboard.c: ... to here.
6968 * term/i386/pc/serial.c: Moved from here ...
6969 * term/serial.c: ... to here. All users updated.
6970 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
6971 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
6972 (serial_translate_key_sequence): Avoid deadlock.
6973 (grub_serial_getkey): Handle backspace.
6974 (grub_serial_putchar): Fix newline handling.
6975 * util/i386/pc/grub-mkimage.c: Move from here ...
6976 * util/grub-mkrawimage.c: ... to here. All users updated.
6977 (generate_image): New parameters 'font_path' and 'format'.
6978 Support embedding font.
6979 Use grub_host_to_target* instead of grub_cpu_to_le*.
6980 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
6981 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
6982 (options): New option "--font".
6984 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
6985 (main): Handle "--font".
6986 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
6987 (grub_virtual_screen_setup): Set bg_color_display.
6988 (redraw_screen_rect): Use bg_color_display instead of incorrect
6990 (grub_gfxterm_cls): Likewise.
6991 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
6992 Support embedding config file.
6993 (add_segments): Likewise.
6994 (options): New option "--config".
6995 (main): Handle "--config".
6996 * video/sm712.c: New file.
6998 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7000 Fix parallel builds.
7002 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
7003 font.c depend on ascii.h).
7005 2010-01-12 Carles Pina i Estany <carles@pina.cat>
7007 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
7009 2010-01-11 Carles Pina i Estany <carles@pina.cat>
7011 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
7012 By default: disabled.
7013 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
7016 2010-01-10 Carles Pina i Estany <carles@pina.cat>
7018 * font/font.c: Update copyright years.
7019 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
7021 2010-01-10 Carles Pina i Estany <carles@pina.cat>
7023 * font/font.c: Include `ascii.h'.
7024 (ASCII_BITMAP_SIZE): New macro.
7025 (ascii_font_glyph): Define.
7026 (ascii_glyph_lookup): New function.
7027 (grub_font_get_string_width): Change comment. If glyph not found, use
7029 (grub_font_get_glyph_with_fallback): If glyph not available returns
7031 * util/grub-mkfont.c (file_formats): New enum.
7032 (options): Add `ascii-bitmaps' new option.
7033 (usage): Add `asii-bitmaps' new option.
7034 (write_font_ascii_bitmap): New function.
7035 (write_font): Rename to ...
7036 (write_font_p2): ... this. Remove print_glyphs call.
7037 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
7038 used. Call print_glyphs.
7039 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
7041 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
7043 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
7044 (grub_bin2h_SOURCES): New variable.
7045 * util/bin2h.c: New file.
7047 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7049 * include/multiboot.h: Resynced with spec.
7050 * include/multiboot2.h: Likewise.
7051 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
7052 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
7054 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7056 * include/grub/term.h (grub_term_register_input,
7057 grub_term_register_output): Check return of terminal init()
7058 routines, and abort if errors are raised.
7060 * commands/terminal.c: Update copyright year.
7062 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7064 * commands/terminal.c (grub_cmd_terminal_input)
7065 (grub_cmd_terminal_output): Check return of terminal init()
7066 routines, and abort if errors are raised.
7068 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7070 * include/grub/i386/bsd.h: Fix include pathes.
7072 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7074 Add missing *BSD copyright headers.
7076 * include/grub/aout.h: Add BSD licence.
7077 * include/grub/i386/bsd.h: Parts under different licences moved to ...
7078 * include/grub/i386/freebsd_linker.h: ... here,
7079 * include/grub/i386/freebsd_reboot.h: ... here,
7080 * include/grub/i386/netbsd_bootinfo.h: ... here,
7081 * include/grub/i386/netbsd_reboot.h: ... here,
7082 * include/grub/i386/openbsd_bootarg.h: ... here,
7083 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
7084 licence to each file.
7086 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7088 * acinclude.m4: Remove `nop' assembly instruction; it's not
7089 implemented by all architectures.
7091 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7093 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
7094 ELILO. This is no longer necessary.
7096 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
7098 Added new tool, grub-scrit-check to verify grub.cfg syntax.
7100 * util/grub-script-check.c: grub-script-check tool.
7101 * conf/common.rmk: Make rules for grub-script-check.
7103 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7105 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
7106 spotting it back in 2008. Shame on me for forgetting he did.
7108 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
7110 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7112 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
7113 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
7114 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
7115 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
7116 (GRUB_VIDEO_TYPE_EFI): Rename to ...
7117 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
7119 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
7121 * include/grub/test.h: Add license header.
7122 * tests/example_functional_test.c: Likewise.
7123 * tests/example_unit_test.c: Likewise.
7124 * tests/lib/functional_test.c: Likewise.
7125 * tests/lib/test.c: Likewise.
7126 * tests/lib/unit_test.c: Likewise.
7128 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7130 Use flag-based instead of hook-based video mode selection and "auto"
7133 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
7134 (grub_video_set_mode): Changed prototype. All users updated.
7135 (grub_video_check_mode_flag): New inline function.
7136 * video/video.c (parse_modespec): New function.
7137 (grub_video_set_mode): Parse flags and keywords.
7139 2010-01-17 Carles Pina i Estany <carles@pina.cat>
7141 * util/misc.c (grub_util_info): Fix the order of the parameters in a
7144 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
7146 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
7148 2010-01-16 Carles Pina i Estany <carles@pina.cat>
7150 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
7152 * util/grub-emu.c (usage): Likewise.
7153 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
7154 * util/i386/efi/grub-mkimage.c (usage): Likewise.
7155 * util/i386/pc/grub-mkimage.c (usage): Likewise.
7156 * util/i386/pc/grub-setup.c (usage): Likewise.
7158 2010-01-16 Carles Pina i Estany <carles@pina.cat>
7160 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
7162 (grub_util_info): Likewise.
7163 (grub_util_error): Likewise.
7164 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
7165 and/or new lines in `grub_util_warna', `grub_util_info',
7166 `grub_util_error' calls.
7167 * util/getroot.c: Likewise.
7168 * util/grub-editenv.c: Likewise.
7169 * util/grub-emu.c: Likewise.
7170 * util/grub-fstest.c: Likewise.
7171 * util/grub-mkdevicemap.c: Likewise.
7172 * util/grub-mkfont.c: Likewise.
7173 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7174 * util/grub-mkrelpath.c: Likewise.
7175 * util/grub-pe2elf.c: Likewise.
7176 * util/grub-probe.c: Likewise.
7177 * util/hostdisk.c: Likewise.
7178 * util/i386/efi/grub-mkimage.c: Likewise.
7179 * util/i386/pc/grub-mkimage.c: Likewise.
7180 * util/i386/pc/grub-setup.c: Likewise.
7181 * util/ieee1275/ofpath.c: Likewise.
7182 * util/mkisofs/eltorito.c: Likewise.
7183 * util/mkisofs/rock.c: Likewise.
7184 * util/mkisofs/write.c: Likewise.
7185 * util/raid.c: Likewise.
7186 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7187 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7189 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7191 Enable multiboot on non-pc.
7193 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
7194 multiboot.mod and multiboot2.mod to ...
7195 * conf/i386.rmk (pkglib_MODULES): ... here.
7196 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
7198 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
7199 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
7201 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
7202 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
7204 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
7205 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
7207 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
7208 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
7210 (ata_mod_SOURCES): Removed.
7211 (ata_mod_CFLAGS): Likewise.
7212 (ata_mod_LDFLAGS): Likewise.
7213 (relocator_mod_SOURCES): Removed.
7214 (relocator_mod_CFLAGS): Likewise.
7215 (relocator_mod_ASFLAGS): Likewise.
7216 (relocator_mod_LDFLAGS): Likewise.
7218 * include/grub/x86_64/multiboot.h: New file.
7219 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
7222 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7224 Video multiboot support.
7226 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
7228 * include/multiboot.h: Resynced with multiboot specification.
7229 * include/multiboot2.h: Likewise.
7230 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
7231 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
7232 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
7233 (HAS_VGA_TEXT): Likewise.
7234 (accepts_video): New variable.
7235 (grub_multiboot_set_accepts_video): New function.
7236 (grub_multiboot_get_mbi_size): Account for video structures.
7237 (set_video_mode): New function.
7238 (retrieve_video_parameters): Likewise.
7239 (grub_multiboot_make_mbi): Fill video fields.
7241 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7245 * include/grub/video.h (grub_video_driver_id): New type.
7246 (grub_video_adapter): New member 'id'. All users updated.
7247 (grub_video_get_driver_id): New proto.
7248 * video/video.c (grub_video_get_driver_id): New function.
7250 2010-01-14 Carles Pina i Estany <carles@pina.cat>
7252 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
7255 2010-01-14 Carles Pina i Estany <carles@pina.cat>
7257 * normal/cmdline.c (print_completion): Gettextizze.
7259 2001-01-14 Carles Pina i Estany <carles@pina.cat>
7261 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
7263 2010-01-14 Carles Pina i Estany <carles@pina.cat>
7265 * gettext/gettext.c (grub_gettext_translate): Push and pop
7267 (grub_gettext_delete_list): Change comment style.
7268 * kern/err.c (grub_error): Gettextizze.
7269 (grub_fatal): Gettextizze.
7271 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
7273 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
7274 (grub_linux16_real_boot): ... this.
7275 * kern/i386/loader.S: Likewise.
7276 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
7277 (grub_linux16_boot): New function. Switches to text mode and calls
7278 grub_linux16_real_boot().
7280 * loader/i386/bsd.c: Include `<grub/video.h>'.
7281 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
7282 text mode before calling grub_unix_real_boot().
7284 * loader/i386/multiboot.c: Include `<grub/video.h>'.
7285 (grub_multiboot_boot): Switch to text mode before calling
7286 grub_relocator32_boot().
7288 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
7289 (grub_chainloader_boot): Switch to text mode before calling
7290 grub_chainloader_real_boot().
7292 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
7293 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7295 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
7298 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
7299 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7301 * util/grub.d/00_header.in: Define a "savedefault" function for use
7303 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
7305 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
7306 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7308 * util/grub-mkconfig_lib.in (save_default_entry): Only set
7309 saved_entry if boot_once is unset.
7310 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
7311 previous saved entry (i.e. grub-reboot).
7313 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7315 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
7317 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7319 * util/grub.d/00_header.in: Use `set var=val' rather than plain
7321 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
7323 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7325 * util/grub-reboot.in: Fix --version output.
7326 * util/grub-set-default.in: Likewise.
7328 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7330 * util/grub.d/00_header.in: Silently ignore zero-sized environment
7333 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7335 * util/grub.d/00_header.in: Quote the value assigned to `default',
7336 in case it contains spaces.
7338 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7340 * util/grub.d/30_os-prober.in: Fix merge error that moved a
7341 `save_default_entry' call from the macosx case to the linux case.
7343 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
7344 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
7346 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
7347 in `chosen' environment variable.
7348 * normal/menu_text.c (get_entry_number): Check if the variable
7349 matches the title of a menu entry.
7350 (run_menu): Pass menu to get_entry_number.
7352 * util/grub-reboot.in: New file.
7353 * util/grub-set-default.in: New file.
7354 * conf/common.rmk (grub-reboot): New utility.
7355 (grub-set-default): New utility.
7357 * util/grub-mkconfig_lib.in (save_default_entry): New function.
7358 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
7359 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
7360 move it to `saved_entry' for the next boot. Load environment on
7362 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
7363 * util/grub.d/10_hurd.in: Likewise.
7364 * util/grub.d/10_linux.in (linux_entry): Likewise.
7365 * util/grub.d/10_windows.in: Likewise.
7366 * util/grub.d/30_os-prober.in: Likewise.
7368 * util/grub-install.in: Create environment block.
7369 * util/i386/efi/grub-install.in: Likewise.
7370 * util/ieee1275/grub-install.in: Likewise.
7371 * util/sparc64/ieee1275/grub-install.in: Likewise.
7373 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
7375 Unit testing framework for GRUB.
7377 * Makefile.in: Test framework build rules for 'make check'.
7378 * conf/tests.rmk: Build rules for individual tests and framework.
7380 * include/grub/test.h: Header file for whitebox tests.
7381 * tests/lib/functional_test.c: Framework support for whitebox
7383 * tests/lib/test.c: Common whitebox testing code for unit and
7385 * tests/lib/unit_test.c: Framework support for whitebox unit
7388 * tests/util/grub-shell-tester.in: Support utility for grub-script
7390 * tests/util/grub-shell.in: Utility to execute grub-script
7391 commands in a Qemu instance.
7393 * tests/example_functional_test.c: Example whitebox functional
7395 * tests/example_grub_script_test.in: Example grub-script test.
7396 * tests/example_scripted_test.in: Example scripted test.
7397 * tests/example_unit_test.c: Example whitebox unit test.
7399 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7401 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
7402 Add loader/i386/multiboot_mbi.c.
7403 (multiboot2_mod_SOURCES): Likewise.
7404 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
7405 (multiboot2_mod_SOURCES): Likewise.
7406 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
7407 (grub_multiboot_make_mbi): Likewise.
7408 (grub_multiboot_free_mbi): Likewise.
7409 (grub_multiboot_init_mbi): Likewise.
7410 (grub_multiboot_add_module): Likewise.
7411 (grub_multiboot_set_bootdev): Likewise.
7412 * loader/i386/multiboot.c (mbi): Removed.
7413 (mbi_dest): Likewise.
7414 (alloc_mbi): New variable.
7415 (grub_multiboot_payload_size): Removed. All users updated.
7416 (grub_multiboot_pure_size): New variable.
7417 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
7418 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
7419 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
7420 (grub_fill_multiboot_mmap): Likewise.
7421 (grub_multiboot_get_bootdev): Likewise.
7422 (grub_multiboot): Use multiboot_mbi functions.
7423 * loader/i386/multiboot_mbi.c: New file.
7425 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7427 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
7428 it would result in module crash.
7430 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7432 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
7433 (grub_ofconsole_getwh): Split to ...
7434 (grub_ofconsole_getwh): ... this.
7435 (grub_ofconsole_dimensions): ...and this.
7436 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
7438 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
7440 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
7442 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7444 * loader/i386/pc/multiboot2.c: Removed stalled file.
7446 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7448 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
7449 Reported by: Grégoire Sutre
7451 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
7453 * util/misc.c (canonicalize_file_name): New function.
7454 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
7455 instead of realpath().
7457 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
7459 * util/grub-install.in (usage): Clarify meaning of --root-directory,
7460 and make it clearer that it's optional. Based on confusion
7463 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7465 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
7466 in premature implicit newline.
7468 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7470 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
7471 which resulted in garbled command line at the end of screen.
7473 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
7475 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
7476 initialization with similar approach as with other Linux loaders.
7478 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
7480 Fix i386-ieee1275 build.
7482 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
7483 and grub_term_height() for video_{width,height} initialization.
7485 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
7489 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
7491 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7492 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
7494 Support for multiple terminals.
7496 * Makefile.in (pkglib_DATA): terminal.lst.
7497 (terminal.lst): New target.
7498 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
7499 (GRUB_MOD_INIT(handler)): Likewise.
7500 (GRUB_MOD_FINI(handler)): Likewise.
7501 * commands/help.c (grub_cmd_help): Handle multiple terminals.
7502 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
7503 * commands/sleep.c (do_print): Use grub_term_restore_pos.
7504 (grub_cmd_sleep): Use grub_term_save_pos.
7505 * commands/terminal.c: New file.
7506 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
7507 commands/terminal.c and lib/charset.c.
7508 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
7509 (pkglib_MODULES): Add terminal.mod.
7510 (terminal_mod_SOURCES): New variable.
7511 (terminal_mod_CFLAGS): Likewise.
7512 (terminal_mod_LDFLAGS): Likewise.
7513 * genhandlerlist.sh: Don't handle terminals.
7514 * genmk.rb: Generate terminal-*.lst.
7515 * genterminallist.sh: New file.
7516 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
7517 (grub_is_valid_utf8): Likewise.
7518 (grub_utf8_to_ucs4_alloc): Likewise.
7519 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
7520 (grub_menu_register_viewer): Changed argument.
7521 (grub_menu_try_text): New proto.
7522 (grub_gfxmenu_try_hook): New declaration.
7523 * include/grub/normal.h (grub_normal_exit_level): New declaration.
7524 (grub_menu_init_page): Additional argument term.
7525 (grub_normal_init_page): Likewise.
7526 (grub_cmdline_get): Arguments simplified.
7527 (grub_utf8_to_ucs4_alloc): Removed.
7528 (grub_print_ucs4): Additional argument term.
7529 (grub_getstringwidth): Likewise.
7530 (grub_print_message_indented): Likewise.
7531 (grub_menu_text_register_instances): New proto.
7532 (grub_show_menu): Likewise.
7533 (read_terminal_list): Likewise.
7534 (grub_set_more): Likewise.
7535 * include/grub/parser.h: Include handler.h.
7536 * include/grub/reader.h: Rewritten.
7537 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
7538 (GRUB_TERM_WIDTH): Changed to function.
7539 (GRUB_TERM_HEIGHT): Likewise.
7540 (GRUB_TERM_BORDER_WIDTH): Likewise.
7541 (GRUB_TERM_BORDER_HEIGHT): Likewise.
7542 (GRUB_TERM_NUM_ENTRIES): Likewise.
7543 (GRUB_TERM_ENTRY_WIDTH): Likewise.
7544 (GRUB_TERM_CURSOR_X): Likewise.
7545 (grub_term_input_class): Likewise.
7546 (grub_term_output_class): Likewise.
7547 (grub_term_outputs_disabled): New declaration.
7548 (grub_term_inputs_disabled): Likewise.
7549 (grub_term_outputs): Likewise.
7550 (grub_term_inputs): Likewise.
7551 (grub_term_register_input): Rewritten.
7552 (grub_term_register_output): Likewise.
7553 (grub_term_unregister_input): Likewise.
7554 (grub_term_unregister_output): Likewise.
7555 (FOR_ACTIVE_TERM_INPUTS): New macro.
7556 (FOR_DISABLED_TERM_INPUTS): Likewise.
7557 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
7558 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
7559 * include/grub/terminfo.h: Add oterm argument to all protypes.
7560 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
7561 Use grub_rescue_run.
7562 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
7564 * kern/reader.c: Removed. All users updated.
7565 * kern/rescue_reader.c (grub_rescue_init): Removed.
7566 (grub_rescue_reader): Likewise.
7567 (grub_register_rescue_reader): Likewise.
7568 (grub_rescue_run): New function based on kern/reader.c.
7569 * kern/term.c: Adapted for multiterm.
7570 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
7571 (grub_is_valid_utf8): Likewise.
7572 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
7573 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
7575 * loader/i386/linux.c (grub_linux_boot): Likewise.
7576 * normal/auth.c (grub_username_get): New function.
7577 (grub_auth_check_authentication): Use grub_username_get.
7578 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
7579 * normal/color.c: Adapt for multiterm.
7580 * normal/main.c (read_config_file): Don't use grub_reader_loop.
7581 (grub_normal_init_page): Additional argument term.
7582 (read_lists): Call read_terminal_lists.
7583 (grub_enter_normal_mode): Call grub_cmdline_run.
7584 Handle grub_normal_exit_level.
7585 (grub_cmd_normal): Make reentrant.
7586 (grub_cmd_normal_exit): New function.
7587 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
7588 * normal/menu.c: Adapt for multiterm.
7589 * normal/menu_entry.c: Likewise.
7590 * normal/menu_text.c: Likewise.
7591 * normal/menu_viewer.c: Removed. All users updated.
7592 * normal/term.c: New file.
7593 * util/console.c: Change order of includes to workaround a bug in
7595 * term/terminfo.c: New argument oterm on all exported functions.
7597 * util/grub-editenv.c (grub_term_input_class): Removed.
7598 (grub_term_output_class): Likewise.
7600 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
7602 Make loader output a bit more user-friendly.
7604 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
7605 is being loaded. Likewise for the Hurd.
7607 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
7608 that kernel of FreeBSD ${version} is being loaded.
7610 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
7612 (grub_cmd_initrd): Likewise.
7613 * util/grub.d/10_linux.in (linux_entry): Print message indicating
7614 that Linux ${version} is being loaded. Likewise for initrd.
7616 2010-01-09 Carles Pina i Estany <carles@pina.cat>
7618 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
7620 2010-01-08 Carles Pina i Estany <carles@pina.cat>
7622 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
7623 (GRUB_MOD_INIT): Gettextizze.
7624 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
7625 (GRUB_MOD_INIT): Gettextizze.
7626 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
7627 (grub_cmd_linux): Capitalise Linux.
7628 (GRUB_MOD_INIT): Gettextizze.
7629 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
7630 (grub_cmd_linux): Capitalise Linux.
7631 (GRUB_MOD_INIT): Gettextizze.
7632 * loader/i386/linux.c: Include `<grub/i18n.h>'.
7633 (grub_cmd_linux): Capitalise Linux.
7634 (GRUB_MOD_INIT): Gettextizze.
7635 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
7636 (GRUB_MOD_INIT): Gettextizze.
7637 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
7638 (grub_cmd_linux): Capitalise Linux.
7639 (GRUB_MOD_INIT): Gettextizze.
7640 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
7641 (grub_cpu_xnu_init): Gettextizze.
7642 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
7643 (GRUB_MOD_INIT): Gettextizze.
7644 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
7645 (GRUB_MOD_INIT): Gettextizze.
7646 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
7647 (grub_linux_load64): Capitalise Linux.
7648 (GRUB_MOD_INIT): Gettextizze.
7649 * loader/xnu.c: Include `<grub/i18n.h>'.
7650 (GRUB_MOD_INIT): Gettextizze.
7651 * po/POTFILES: Add `loader/efi/appleloader.c',
7652 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
7653 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
7654 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
7655 `loader/i386/xnu.c', `loader/multiboot_loader.c',
7656 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
7659 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
7661 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
7663 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
7665 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
7666 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
7667 * util/mkisofs/mkisofs.c (main): Readjust --version output.
7669 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
7671 Reset Multiboot 2 support. New loader implements the draft in
7672 /branches/multiboot2 and shares as much code as possible with the
7673 production Multiboot 1 implementation.
7675 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
7676 * loader/multiboot2.c: Likewise.
7677 * loader/i386/multiboot_helper.S: Likewise.
7678 * include/multiboot2.h: Replace with latest version from the draft
7679 in /branches/multiboot2.
7681 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
7682 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
7683 and `loader/multiboot2.c'.
7684 (pkglib_MODULES): Add `multiboot2.mod'.
7685 (multiboot2_mod_SOURCES): New variable.
7686 (multiboot2_mod_LDFLAGS): Likewise.
7687 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
7689 * conf/i386-pc.rmk: Likewise.
7691 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7692 (multiboot_mod_SOURCES): Remove variable.
7693 (multiboot_mod_LDFLAGS): Likewise.
7694 (multiboot_mod_CFLAGS): Likewise.
7696 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
7697 `<multiboot2.h>' instead of `<multiboot.h>'.
7698 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
7699 (MULTIBOOT_HEADER_MAGIC): New macros.
7701 * loader/multiboot_loader.c (module_version_status): Remove variable.
7702 (find_multi_boot2_header): Remove function.
7703 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
7704 logic. Always check for the Multiboot version we're compiling for.
7705 (grub_cmd_module_loader): Likewise.
7706 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
7707 command instead of `multiboot'.
7709 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
7711 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
7712 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
7715 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
7716 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7718 Fix breakage introduced with previous commit.
7720 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
7722 * normal/handler.c (read_handler_list): Revert part of previous commit
7723 affecting this file.
7724 * normal/main.c (read_lists): Move read_handler_list() call back to ...
7725 (grub_normal_execute): ... here.
7727 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
7729 Merge prefix-redefinition-fix branch.
7731 * normal/autofs.c (read_fs_list): Make function capable of being
7732 run multiple times, gracefuly replacing the previous data
7734 * normal/dyncmd.c (read_command_list): Likewise.
7735 * normal/handler.c (read_handler_list): Likewise.
7736 * normal/main.c (read_lists): New function. Calls all the
7737 list reading functions.
7738 (grub_normal_execute): Use read_lists() instead of calling all
7739 list reading functions explicitly. Register read_lists() as a
7740 variable hook attached to ${prefix}.
7742 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7744 Merge crypto branch.
7746 * Makefile.in (pkglib_DATA): Add crypto.lst.
7747 (crypto.lst): New target.
7748 * commands/hashsum.c: New file.
7749 * commands/password.c (check_password): Use grub_crypto_memcmp.
7750 * commands/password_pbkdf2.c: New file.
7751 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
7752 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
7753 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
7754 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
7755 -I$(srcdir)/lib/libgcrypt_wrap.
7756 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
7757 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
7758 password_pbkdf2.mod.
7759 (crypto_mod_SOURCES): New variable.
7760 (crypto_mod_CFLAGS): Likewise.
7761 (crypto_mod_LDFLAGS): Likewise.
7762 (hashsum_mod_SOURCES): New variable.
7763 (hashsum_mod_CFLAGS): Likewise.
7764 (hashsum_mod_LDFLAGS): Likewise.
7765 (pbkdf2_mod_SOURCES): New variable.
7766 (pbkdf2_mod_CFLAGS): Likewise.
7767 (pbkdf2_mod_LDFLAGS): Likewise.
7768 (password_pbkdf2_mod_SOURCES): New variable.
7769 (password_pbkdf2_mod_CFLAGS): Likewise.
7770 (password_pbkdf2_mod_LDFLAGS): Likewise.
7771 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
7772 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
7773 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
7774 Include conf/gcry.rmk.
7775 * include/grub/auth.h: Rewritten.
7776 * include/grub/crypto.h: New file.
7777 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
7778 * include/grub/normal.h (read_crypto_list): New prototype.
7779 * lib/crypto.c: New file.
7780 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
7781 * lib/pbkdf2.c: Likewise.
7782 * normal/auth.c (grub_auth_strcmp): Removed.
7783 (grub_iswordseparator): Likewise.
7784 (grub_auth_strword): Likewise.
7785 (is_authenticated): Use grub_strword.
7786 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
7787 and grub_strword. Pass entered password to authentication callback.
7788 * normal/crypto.c: New file.
7789 * normal/main.c: Call read_crypto_list.
7790 * util/grub-mkpasswd-pbkdf2.c: New file.
7791 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
7793 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
7795 Fix descent and ascent calculation.
7797 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
7798 (options): New option "asce".
7800 (add_char): Ignore invalid glyphs for descent calculation.
7801 Calculate ascent from actual content.
7802 (print_glyphs): Use 'asce'.
7803 (write_font): Likewise. Allow ascent override.
7804 (main): Handle "asce" option.
7806 2010-01-06 Carles Pina i Estany <carles@pina.cat>
7808 * kern/err.c: Include `<grub/i18n.h>'.
7809 (grub_print_error): Add full stop. Gettextizze.
7810 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
7811 (grub_bsd_load_elf): Capitalise ELF.
7812 (grub_cmd_freebsd_loadenv): Add `s' in error string.
7813 (grub_cmd_freebsd_module): Likewise.
7814 (grub_cmd_freebsd_module_elf): Likewise.
7815 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
7817 2010-01-06 Carles Pina i Estany <carles@pina.cat>
7819 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
7820 * commands/search_file.c (HELP_MESSAGE): New macro.
7821 * commands/search_label.c (HELP_MESSAGE): Likewise.
7822 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
7823 * po/POTFILES: Add `commands/search_file.c',
7824 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
7825 `commands/search.c'.
7827 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
7829 * config.rpath: Update from Gnulib.
7831 2010-01-05 Yves Blusseau <blusseau@zetam.org>
7833 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
7835 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
7837 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
7839 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7841 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
7842 arguments to fread so that we get a return value in bytes, rather
7843 than something that will normally be rounded down to 0.
7844 Adjust error handling to avoid producing garbage when size_t is not
7845 the same size as long long.
7847 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7849 * util/mkisofs/write.c (padblock_write): Check return value of
7852 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
7854 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
7857 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
7859 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
7861 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
7862 instead of manual alignment.
7863 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
7864 verbose). Avoid attempts to read past end of the device
7865 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
7866 but GRUB_DISK_CACHE_SIZE may exceed that).
7868 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
7870 * commands/crc.c (grub_cmd_crc): Abort on read errors.
7871 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
7874 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7876 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
7878 (grub_efi_piwg_device_path): New structure
7879 (grub_efi_piwg_device_path_t): New type.
7880 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
7881 (devpath_1): Transform to a structure. All users updated.
7882 (devpath_2): Likewise.
7883 (devpath_3): Likewise.
7884 (devpath_4): Likewise.
7885 (devpath_5): Likewise.
7887 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7889 * loader/efi/appleloader.c: Restored. Update all users.
7891 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
7893 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
7895 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
7896 (struct boot_blocklist): Move from here ...
7897 * include/grub/i386/pc/boot.h [ASM_FILE]
7898 (struct grub_boot_blocklist): ... to here. Update all users.
7899 (setup): Only initialize `start' member of `first_block'
7900 structure. Add assert() calls to verify the other members.
7902 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
7903 (generate_image): Fix broken blocklist length initialization.
7904 Add assert() call to verify blocklist `segment' field.
7906 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
7908 * loader/efi/appleloader.c: Remove. Update all users.
7910 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
7912 * boot/i386/pc/boot.S: Update copyright year.
7913 * boot/i386/pc/cdboot.S: Likewise.
7914 * boot/i386/pc/diskboot.S: Likewise.
7915 * boot/i386/pc/lnxboot.S: Likewise.
7916 * boot/i386/pc/pxeboot.S: Likewise.
7917 * bus/pci.c: Likewise.
7918 * commands/cmp.c: Likewise.
7919 * commands/help.c: Likewise.
7920 * commands/hexdump.c: Likewise.
7921 * commands/i386/pc/halt.c: Likewise.
7922 * commands/i386/pc/play.c: Likewise.
7923 * commands/i386/pc/vbeinfo.c: Likewise.
7924 * commands/ls.c: Likewise.
7925 * commands/test.c: Likewise.
7926 * disk/dmraid_nvidia.c: Likewise.
7927 * disk/i386/pc/biosdisk.c: Likewise.
7928 * disk/ieee1275/nand.c: Likewise.
7929 * disk/ieee1275/ofdisk.c: Likewise.
7930 * disk/lvm.c: Likewise.
7931 * disk/raid.c: Likewise.
7932 * disk/raid6_recover.c: Likewise.
7933 * disk/scsi.c: Likewise.
7934 * fs/affs.c: Likewise.
7935 * fs/cpio.c: Likewise.
7936 * fs/ext2.c: Likewise.
7937 * fs/hfs.c: Likewise.
7938 * fs/iso9660.c: Likewise.
7939 * fs/ntfs.c: Likewise.
7940 * fs/sfs.c: Likewise.
7941 * fs/udf.c: Likewise.
7942 * fs/ufs.c: Likewise.
7943 * fs/xfs.c: Likewise.
7944 * gencmdlist.sh: Likewise.
7945 * genmk.rb: Likewise.
7946 * include/grub/disk.h: Likewise.
7947 * include/grub/efi/api.h: Likewise.
7948 * include/grub/efi/efi.h: Likewise.
7949 * include/grub/efi/pe32.h: Likewise.
7950 * include/grub/elf.h: Likewise.
7951 * include/grub/fs.h: Likewise.
7952 * include/grub/i386/at_keyboard.h: Likewise.
7953 * include/grub/i386/pc/memory.h: Likewise.
7954 * include/grub/i386/pc/vbe.h: Likewise.
7955 * include/grub/i386/pci.h: Likewise.
7956 * include/grub/i386/tsc.h: Likewise.
7957 * include/grub/ieee1275/ieee1275.h: Likewise.
7958 * include/grub/ntfs.h: Likewise.
7959 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
7960 * include/grub/sparc64/libgcc.h: Likewise.
7961 * include/grub/symbol.h: Likewise.
7962 * include/grub/types.h: Likewise.
7963 * include/multiboot2.h: Likewise.
7964 * io/gzio.c: Likewise.
7965 * kern/device.c: Likewise.
7966 * kern/disk.c: Likewise.
7967 * kern/efi/efi.c: Likewise.
7968 * kern/efi/mm.c: Likewise.
7969 * kern/elf.c: Likewise.
7970 * kern/file.c: Likewise.
7971 * kern/i386/dl.c: Likewise.
7972 * kern/i386/pc/init.c: Likewise.
7973 * kern/i386/pc/startup.S: Likewise.
7974 * kern/ieee1275/ieee1275.c: Likewise.
7975 * kern/ieee1275/init.c: Likewise.
7976 * kern/main.c: Likewise.
7977 * kern/mm.c: Likewise.
7978 * kern/powerpc/dl.c: Likewise.
7979 * kern/sparc64/dl.c: Likewise.
7980 * kern/x86_64/dl.c: Likewise.
7981 * lib/hexdump.c: Likewise.
7982 * loader/efi/appleloader.c: Likewise.
7983 * loader/i386/ieee1275/linux.c: Likewise.
7984 * loader/i386/pc/chainloader.c: Likewise.
7985 * loader/i386/pc/linux.c: Likewise.
7986 * loader/i386/pc/multiboot2.c: Likewise.
7987 * loader/ieee1275/multiboot2.c: Likewise.
7988 * loader/multiboot2.c: Likewise.
7989 * loader/multiboot_loader.c: Likewise.
7990 * loader/powerpc/ieee1275/linux.c: Likewise.
7991 * normal/completion.c: Likewise.
7992 * normal/menu_entry.c: Likewise.
7993 * partmap/apple.c: Likewise.
7994 * util/grub.d/10_hurd.in: Likewise.
7995 * util/hostfs.c: Likewise.
7996 * video/readers/png.c: Likewise.
7998 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
8000 * include/grub/misc.h (GNUC_PREREQ): New macro.
8001 (ATTRIBUTE_ERROR): New macro.
8002 * include/grub/list.h (grub_bad_type_cast_real): Use
8005 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8007 * normal/menu_text.c (print_message): Change messages.
8009 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8011 * normal/menu_entry.c (store_completion): Gettextizze.
8013 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8015 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
8017 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8019 * po/POTFILES: Sort correctly.
8021 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8023 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
8024 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
8025 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
8027 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
8028 summary. Gettextizze the strings.
8029 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
8030 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
8031 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
8033 (GRUB_MOD_INIT): Remove command name from summary.
8034 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
8036 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
8037 * term/i386/pc/serial.c (options): Add full stops.
8038 (GRUB_MOD_INIT): Remove command name from the summary.
8040 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8042 * commands/acpi.c: Gettextizze help strings and/or options. Include
8043 `grub/i18n.h' if needed.
8044 * commands/blocklist.c: Likewise.
8045 * commands/boot.c: Likewise.
8046 * commands/cat.c: Likewise.
8047 * commands/cmp.c: Likewise.
8048 * commands/configfile.c: Likewise.
8049 * commands/crc.c: Likewise.
8050 * commands/date.c: Likewise.
8051 * commands/echo.c: Likewise.
8052 * commands/efi/fixvideo.c: Likewise.
8053 * commands/efi/loadbios.c: Likewise.
8054 * commands/gptsync.c: Likewise.
8055 * commands/halt.c: Likewise.
8056 * commands/handler.c: Likewise.
8057 * commands/hdparm.c: Likewise.
8058 * commands/hexdump.c: Likewise.
8059 * commands/i386/cpuid.c: Likewise.
8060 * commands/i386/pc/drivemap.c: Likewise.
8061 * commands/i386/pc/halt.c: Likewise.
8062 * commands/i386/pc/pxecmd.c: Likewise.
8063 * commands/i386/pc/vbeinfo.c: Likewise.
8064 * commands/i386/pc/vbetest.c: Likewise.
8065 * commands/ieee1275/suspend.c: Likewise.
8066 * commands/keystatus.c: Likewise.
8067 * commands/loadenv.c: Likewise.
8068 * commands/ls.c: Likewise.
8069 * commands/lsmmap.c: Likewise.
8070 * commands/lspci.c: Likewise.
8071 * commands/memrw.c: Likewise.
8072 * commands/minicmd.c: Likewise.
8073 * commands/parttool.c: Likewise.
8074 * commands/password.c: Likewise.
8075 * commands/probe.c: Likewise.
8076 * commands/read.c: Likewise.
8077 * commands/reboot.c: Likewise.
8078 * commands/search.c: Likewise.
8079 * commands/sleep.c: Likewise.
8080 * commands/test.c: Likewise.
8081 * commands/true.c: Likewise.
8082 * commands/usbtest.c: Likewise.
8083 * commands/videotest.c: Likewise.
8084 * commands/xnu_uuid.c: Likewise.
8085 * disk/loopback.c: Likewise.
8086 * hello/hello.c: Likewise.
8087 * loader/i386/bsd.c: Likewise.
8088 * term/i386/pc/serial.c: Likewise.
8089 * po/POTFILES: Add new files.
8091 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
8093 * term/i386/pc/at_keyboard.c
8094 (keyboard_controller_wait_untill_ready): Rename to ...
8095 (keyboard_controller_wait_until_ready): ... this. Update all users.
8097 2010-01-01 Carles Pina i Estany <carles@pina.cat>
8099 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
8100 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
8101 string using string width.
8102 * normal/menu_text.c (grub_print_message_indented): Use
8103 grub_print_spaces and not print_spaces.
8104 (print_timeout): Likewise.
8105 (print_spaces): Move to...
8106 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
8108 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
8112 * gnulib/getdelim.c: New file.
8113 * gnulib/getline.c: Likewise.
8115 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
8117 * include/grub/list.h (grub_assert_fail): Removed.
8118 (grub_bad_type_cast_real): New function.
8119 (grub_bad_type_cast): New macro.
8120 (GRUB_AS_LIST): Use grub_bad_type_cast.
8121 (GRUB_AS_LIST_P): Likewise.
8122 (GRUB_AS_NAMED_LIST): Likewise.
8123 (GRUB_AS_NAMED_LIST_P): Likewise.
8124 (GRUB_AS_PRIO_LIST): Likewise.
8125 (GRUB_AS_PRIO_LIST_P): Likewise.
8126 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
8128 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
8130 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
8133 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
8135 * configure.ac: Check for TARGET_CFLAGS initialization before we
8136 initialize it ourselves (sigh).
8137 Move a few modifications to TARGET_CFLAGS to be unconditional
8138 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
8141 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
8142 * term/i386/pc/at_keyboard.c
8143 (keyboard_controller_wait_untill_ready): Likewise.
8144 (keyboard_controller_led): Rename `led_status' paramter to avoid
8147 2009-12-28 Carles Pina i Estany <carles@pina.cat>
8149 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
8152 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8154 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
8156 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8158 * normal/menu_text.c (grub_print_message_indented): Prevent
8159 past-the-end-of-array dereference.
8161 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8163 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
8164 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
8166 2009-12-27 Carles Pina i Estany <carles@pina.cat>
8168 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
8169 * normal/main.c (grub_normal_read_line): Remove a space from the
8172 2009-12-27 Carles Pina i Estany <carles@pina.cat>
8174 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
8175 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8176 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
8177 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
8178 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8179 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8180 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
8182 2009-12-26 Carles Pina i Estany <carles@pina.cat>
8184 * video/readers/jpeg.c (cmd): Declare.
8185 (grub_cmd_jpegtest): Use `grub_command_t' type.
8186 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
8188 (GRUB_MOD_FINI): Use `cmd' to unregister.
8189 * video/readers/png.c (cmd): Declare.
8190 (grub_cmd_pngtest): Use `grub_command_t' type.
8191 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
8193 (GRUB_MOD_FINI): Use `cmd' to unregister.
8194 * video/readers/tga.c (cmd): Declare.
8195 (grub_cmd_tgatest): Use `grub_command_t' type.
8196 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
8198 (GRUB_MOD_FINI): Use `cmd' to unregister.
8200 2009-12-26 Carles Pina i Estany <carles@pina.cat>
8202 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
8204 * kern/corecmd.c (grub_register_core_commands): Likewise.
8205 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
8206 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
8207 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
8208 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8209 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
8210 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
8211 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
8212 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
8213 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8214 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8215 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
8216 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
8217 * normal/handler.c (insert_handler): Likewise.
8218 * normal/main.c (GRUB_MOD_INIT): Likewise.
8219 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
8221 2009-12-26 Carles Pina i Estany <carles@pina.cat>
8223 * commands/help.c (grub_cmd_help): Print the command name before the
8225 (GRUB_MOD_INIT): Remove command name from the summary.
8226 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
8228 * lib/arg.c (find_long): Print the command name before the summary.
8229 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
8231 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
8232 * commands/cat.c (GRUB_MOD_INIT): Likewise.
8233 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
8234 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
8235 * commands/crc.c (GRUB_MOD_INIT): Likewise.
8236 * commands/date.c (GRUB_MOD_INIT): Likewise.
8237 * commands/echo.c (GRUB_MOD_INIT): Likewise.
8238 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
8239 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
8240 * commands/handler.c (GRUB_MOD_INIT): Likewise.
8241 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
8242 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
8243 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
8244 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
8245 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
8246 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
8247 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
8248 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
8249 * commands/ls.c (GRUB_MOD_INIT): Likewise.
8250 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
8251 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
8252 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
8253 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
8254 * commands/password.c (GRUB_MOD_INIT): Likewise.
8255 * commands/probe.c (GRUB_MOD_INIT): Likewise.
8256 * commands/read.c (GRUB_MOD_INIT): Likewise.
8257 * commands/search.c (GRUB_MOD_INIT): Likewise.
8258 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
8259 * commands/test.c (GRUB_MOD_INIT): Likewise.
8260 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
8261 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
8262 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
8263 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
8264 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
8265 * lib/arg.c (GRUB_MOD_INIT): Likewise.
8266 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
8267 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
8268 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
8269 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
8270 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
8271 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
8272 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
8273 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
8275 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8277 Use search command for preliminar UUID search.
8279 * commands/search.c: Split into ...
8280 * commands/search_wrap.c: ...this
8281 * commands/search.c: ...and this.
8282 * commands/search_file.c: New file.
8283 * commands/search_label.c: New file.
8284 * commands/search_uuid.c: New file.
8285 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
8286 Add commands/search_wrap.c, commands/search_file.c,
8287 commands/search_label.c and commands/search_uuid.c.
8288 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
8289 (search_mod_SOURCES): Set to commands/search_wrap.c.
8290 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
8292 (search_fs_file_mod_SOURCES): New variable.
8293 (search_fs_file_mod_CFLAGS): Likewise.
8294 (search_fs_file_mod_LDFLAGS): Likewise.
8295 (search_label_mod_SOURCES): Likewise.
8296 (search_label_mod_CFLAGS): Likewise.
8297 (search_label_mod_LDFLAGS): Likewise.
8298 (search_fs_uuid_mod_SOURCES): New variable.
8299 (search_fs_uuid_mod_CFLAGS): Likewise.
8300 (search_fs_uuid_mod_LDFLAGS): Likewise.
8301 (fs_file_mod_SOURCES): Removed.
8302 (fs_file_mod_CFLAGS): Likewise.
8303 (fs_file_mod_LDFLAGS): Likewise.
8304 (fs_uuid_mod_SOURCES): Removed.
8305 (fs_uuid_mod_CFLAGS): Likewise.
8306 (fs_uuid_mod_LDFLAGS): Likewise.
8307 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
8308 Set to util/grub-install.in.
8309 * disk/fs_file.c: Removed.
8310 * disk/fs_uuid.c: Likewise.
8311 * include/grub/search.h: New file.
8312 * util/grub-install.in: Handle sparc64.
8313 Create and use load.cfg.
8314 * util/sparc64/ieee1275/grub-install.in: Removed.
8316 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8318 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
8319 Ignore return status if CF is cleared.
8320 (grub_biosdisk_get_diskinfo_standard): Likewise.
8322 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
8324 * term/i386/pc/at_keyboard.c
8325 (keyboard_controller_wait_untill_ready): New function.
8326 (grub_keyboard_controller_write, grub_keyboard_controller_read)
8327 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
8328 for keyboard polling, rather than duplicate the same loop. This
8329 saves a few bytes in code size.
8331 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8333 Support for (pxe[:server[:gateway]]) syntax and
8334 use environment variable for PXE.
8336 * commands/i386/pc/pxecmd.c (options): Removed.
8337 (print_ip): Removed.
8338 (grub_cmd_pxe): Removed
8339 (grub_cmd_pxe_unload): New function.
8340 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
8341 (grub_pxe_your_ip): Made static.
8342 (grub_pxe_default_server_ip): Likewise.
8343 (grub_pxe_default_gateway_ip): Likewise.
8344 (grub_pxe_blksize): Likewise.
8345 (parse_ip): New function.
8346 (grub_pxe_open): Support server and gateway specification.
8347 (grub_pxe_close): Free disk->data.
8348 (grub_pxefs_open): Use disk->data.
8349 (grub_pxefs_read): Likewise.
8350 (grub_env_write_readonly): New function.
8351 (set_mac_env): Likewise.
8352 (set_env_limn_ro): Likewise.
8353 (parse_dhcp_vendor): Likewise.
8354 (grub_pxe_detect): Set the environment variables.
8355 (set_ip_env): New function.
8356 (write_ip_env): Likewise.
8357 (grub_env_write_pxe_default_server): Likewise.
8358 (grub_env_write_pxe_default_gateway): Likewise.
8359 (grub_env_write_pxe_blocksize): Likewise.
8360 (GRUB_MOD_INIT(pxe)): Set environment variables.
8361 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
8362 (grub_pxe_mac_addr_t): ... this. All users updated.
8363 (grub_pxe_your_ip): Removed.
8364 (grub_pxe_server_ip): Likewise.
8365 (grub_pxe_gateway_ip): Likewise.
8366 (grub_pxe_blksize): Likewise.
8368 2009-12-25 Carles Pina i Estany <carles@pina.cat>
8370 * commands/help.c: Include `<grub/i18n.h>'.
8371 (grub_cmd_help): Gettextizze.
8372 (GRUB_MOD_INIT): Likewise.
8373 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
8374 (GRUB_MOD_INIT): Gettextizze.
8375 * commands/search.c: Include `<grub/i18n.h>'.
8376 (options): Gettextizze.
8377 (GRUB_MOD_INIT): Gettextizze.
8378 * lib/arg.c: Include `<grub/i18n.h>'.
8379 (help_options): Gettextizze.
8380 (find_long): Likewise.
8381 (grub_arg_show_help): Likewise.
8382 * normal/dyncmd.c: Include `<grub/i18n.h>'.
8383 (read_command_list): Gettextizze.
8384 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
8385 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
8387 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
8389 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
8390 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
8391 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
8392 (led_status): New variable.
8393 (keyboard_controller_led): New function.
8394 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
8395 update led status for caps lock, num lock and scroll lock.
8397 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
8399 * util/hostdisk.c (open_device): Fix a comment.
8401 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8403 * util/grub-install.in (host_os): New variable.
8404 * util/i386/efi/grub-install.in (host_os): Likewise.
8406 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8408 * util/mkisofs/write.c (padblock_write): Abort when given an
8409 excedingly large embed image, instead of silently truncating it.
8411 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8413 * include/multiboot.h: Indentation fixes.
8415 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8417 * include/multiboot.h (struct multiboot_aout_symbol_table)
8418 (struct multiboot_elf_section_header_table): New structure
8419 declarations (stolen from GRUB Legacy).
8420 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
8423 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
8424 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
8427 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8429 * include/multiboot.h: Make comments src2texi-friendly.
8431 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8433 For consistency with [multiboot]/docs/boot.S.
8435 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
8436 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
8437 (MULTIBOOT_MAGIC2): Rename from this ...
8438 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
8440 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8442 * include/multiboot.h: Remove `<grub/types.h>'.
8443 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
8444 types. Update all users.
8446 2009-12-25 Carles Pina i Estany <carles@pina.cat>
8448 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
8449 `couldn't' and `can not' by `cannot'.
8450 * commands/i386/pc/drivemap.c: Likewise.
8451 * disk/ata.c: Likewise.
8452 * disk/ieee1275/nand.c: Likewise.
8453 * fs/affs.c: Likewise.
8454 * fs/fat.c: Likewise.
8455 * fs/hfs.c: Likewise.
8456 * fs/hfsplus.c: Likewise.
8457 * fs/iso9660.c: Likewise.
8458 * fs/jfs.c: Likewise.
8459 * fs/minix.c: Likewise.
8460 * fs/reiserfs.c: Likewise.
8461 * fs/sfs.c: Likewise.
8462 * fs/udf.c: Likewise.
8463 * fs/ufs.c: Likewise.
8464 * fs/xfs.c: Likewise.
8465 * loader/powerpc/ieee1275/linux.c: Likewise.
8466 * loader/sparc64/ieee1275/linux.c: Likewise.
8467 * util/grub-probe.c: Likewise.
8468 * util/misc.c: Likewise.
8470 2009-12-24 Carles Pina i Estany <carles@pina.cat>
8472 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
8474 * commands/acpi.c: Likewise.
8475 * commands/blocklist.c: Likewise.
8476 * commands/efi/loadbios.c: Likewise.
8477 * commands/i386/pc/drivemap.c: Likewise.
8478 * commands/loadenv.c: Likewise.
8479 * commands/memrw.c: Likewise.
8480 * commands/password.c: Likewise.
8481 * commands/videotest.c: Likewise.
8482 * disk/ata.c: Likewise.
8483 * disk/ata_pthru.c: Likewise.
8484 * disk/dmraid_nvidia.c: Likewise.
8485 * disk/ieee1275/nand.c: Likewise.
8486 * disk/ieee1275/ofdisk.c: Likewise.
8487 * disk/loopback.c: Likewise.
8488 * disk/lvm.c: Likewise.
8489 * disk/mdraid_linux.c: Likewise.
8490 * disk/raid.c: Likewise.
8491 * disk/raid6_recover.c: Likewise.
8492 * disk/scsi.c: Likewise.
8493 * efiemu/main.c: Likewise.
8494 * efiemu/mm.c: Likewise.
8495 * efiemu/pnvram.c: Likewise.
8496 * efiemu/symbols.c: Likewise.
8497 * font/font.c: Likewise.
8498 * fs/cpio.c: Likewise.
8499 * fs/hfsplus.c: Likewise.
8500 * fs/iso9660.c: Likewise.
8501 * fs/jfs.c: Likewise.
8502 * fs/minix.c: Likewise.
8503 * fs/ntfs.c: Likewise.
8504 * fs/ntfscomp.c: Likewise.
8505 * fs/reiserfs.c: Likewise.
8506 * fs/ufs.c: Likewise.
8507 * fs/xfs.c: Likewise.
8508 * gettext/gettext.c: Likewise.
8509 * include/grub/auth.h: Likewise.
8510 * kern/elf.c: Likewise.
8511 * kern/file.c: Likewise.
8512 * kern/ieee1275/init.c: Likewise.
8513 * kern/ieee1275/mmap.c: Likewise.
8514 * kern/ieee1275/openfw.c: Likewise.
8515 * kern/powerpc/dl.c: Likewise.
8516 * kern/sparc64/dl.c: Likewise.
8517 * lib/arg.c: Likewise.
8518 * loader/i386/bsd.c: Likewise.
8519 * loader/i386/bsdXX.c: Likewise.
8520 * loader/i386/efi/linux.c: Likewise.
8521 * loader/i386/efi/xnu.c: Likewise.
8522 * loader/i386/ieee1275/linux.c: Likewise.
8523 * loader/i386/linux.c: Likewise.
8524 * loader/i386/multiboot.c: Likewise.
8525 * loader/i386/pc/linux.c: Likewise.
8526 * loader/i386/pc/multiboot2.c: Likewise.
8527 * loader/i386/xnu.c: Likewise.
8528 * loader/ieee1275/multiboot2.c: Likewise.
8529 * loader/macho.c: Likewise.
8530 * loader/machoXX.c: Likewise.
8531 * loader/multiboot2.c: Likewise.
8532 * loader/multiboot_loader.c: Likewise.
8533 * loader/powerpc/ieee1275/linux.c: Likewise.
8534 * loader/sparc64/ieee1275/linux.c: Likewise.
8535 * loader/xnu.c: Likewise.
8536 * loader/xnu_resume.c: Likewise.
8537 * mmap/i386/pc/mmap.c: Likewise.
8538 * normal/menu_viewer.c: Likewise.
8539 * partmap/acorn.c: Likewise.
8540 * partmap/amiga.c: Likewise.
8541 * partmap/apple.c: Likewise.
8542 * script/lexer.c: Likewise.
8543 * term/gfxterm.c: Likewise.
8544 * term/i386/pc/serial.c: Likewise.
8545 * term/i386/pc/vga.c: Likewise.
8546 * term/ieee1275/ofconsole.c: Likewise.
8547 * term/terminfo.c: Likewise.
8548 * video/bitmap.c: Likewise.
8549 * video/efi_gop.c: Likewise.
8550 * video/efi_uga.c: Likewise.
8551 * video/fb/video_fb.c: Likewise.
8552 * video/i386/pc/vbe.c: Likewise.
8553 * video/readers/tga.c: Likewise.
8554 * video/video.c: Likewise.
8556 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
8558 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
8559 * commands/lspci.c: Likewise.
8560 * commands/probe.c: Likewise.
8561 * commands/xnu_uuid.c: Likewise.
8562 * conf/i386-coreboot.rmk: Likewise.
8563 * conf/i386-efi.rmk: Likewise.
8564 * conf/i386-ieee1275.rmk: Likewise.
8565 * conf/i386-pc.rmk: Likewise.
8566 * conf/powerpc-ieee1275.rmk: Likewise.
8567 * conf/sparc64-ieee1275.rmk: Likewise.
8568 * conf/x86_64-efi.rmk: Likewise.
8569 * fs/i386/pc/pxe.c: Likewise.
8570 * gettext/gettext.c: Likewise.
8571 * include/grub/efi/graphics_output.h: Likewise.
8572 * include/grub/i386/pc/memory.h: Likewise.
8573 * kern/env.c: Likewise.
8574 * kern/i386/qemu/startup.S: Likewise.
8575 * lib/i386/pc/biosnum.c: Likewise.
8576 * lib/i386/relocator.c: Likewise.
8577 * lib/i386/relocator_asm.S: Likewise.
8578 * lib/relocator.c: Likewise.
8579 * loader/i386/bsd.c: Likewise.
8580 * loader/i386/multiboot.c: Likewise.
8581 * loader/i386/pc/chainloader.c: Likewise.
8582 * loader/i386/xnu.c: Likewise.
8583 * loader/xnu.c: Likewise.
8584 * normal/main.c: Likewise.
8585 * normal/menu_text.c: Likewise.
8586 * util/getroot.c: Likewise.
8587 * util/grub-mkconfig_lib.in: Likewise.
8588 * util/grub.d/00_header.in: Likewise.
8589 * util/i386/pc/grub-mkimage.c: Likewise.
8590 * util/mkisofs/eltorito.c: Likewise.
8591 * util/mkisofs/exclude.h: Likewise.
8592 * util/mkisofs/hash.c: Likewise.
8593 * util/mkisofs/iso9660.h: Likewise.
8594 * util/mkisofs/joliet.c: Likewise.
8595 * util/mkisofs/mkisofs.c: Likewise.
8596 * util/mkisofs/mkisofs.h: Likewise.
8597 * util/mkisofs/multi.c: Likewise.
8598 * util/mkisofs/name.c: Likewise.
8599 * util/mkisofs/rock.c: Likewise.
8600 * util/mkisofs/tree.c: Likewise.
8601 * util/mkisofs/write.c: Likewise.
8602 * video/efi_gop.c: Likewise.
8604 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8606 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
8609 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8611 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
8612 * genmk.rb (class SCRIPT): Modify the target file instead of source.
8614 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8616 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
8617 (GRUB_MOD_INIT(memrw)): Update help line.
8619 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8621 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
8622 Use grub_extcmd_t. All users updated.
8623 (options): New variable.
8624 (grub_cmd_read): Restructure for readability. Support "-v" option.
8625 (grub_cmd_write): Restructure for readability.
8627 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8629 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
8631 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8633 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
8634 with the actual contents of the correspondending make variable.
8635 * util/grub-mkrescue.in (pkglib_DATA): New variable.
8636 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
8637 specifying `*.lst' and `efiemu??.o'
8639 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8641 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
8642 after function name.
8643 Noticed by Rene Engelhard <rene@debian.org>.
8645 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8647 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
8648 (options): New variable.
8649 (iospace): Likewise.
8650 (grub_lspci_iter): List IO spaces if "-i" was given.
8651 (grub_cmd_lspci): Parse options.
8652 (GRUB_MOD_INIT(lspci)): Use extcmd.
8653 (GRUB_MOD_FINI(lspci)): Likewise.
8655 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8657 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
8659 Patch by Tony Mancill <tmancill@debian.org>.
8661 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8663 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
8664 (grub_uhci_portstatus): Likewise.
8665 (grub_uhci_portstatus): Add necessary delay.
8666 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
8668 2009-12-21 Carles Pina i Estany <carles@pina.cat>
8670 * commands/acpi.c (options): Fix capitalizations and/or full stops.
8671 (GRUB_MOD_INIT): Likewise.
8672 * commands/boot.c (GRUB_MOD_INIT): Likewise.
8673 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
8674 * commands/echo.c (options): Fix capitalizations and/or full stops.
8675 * commands/efi/loadbios.c (enable_rom_area): Likewise.
8676 (enable_rom_area): Likewise.
8677 (GRUB_MOD_INIT): Likewise.
8678 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
8679 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
8680 * commands/handler.c (GRUB_MOD_INIT): Likewise.
8681 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
8682 * commands/hexdump.c (options): Likewise.
8683 * commands/i386/cpuid.c (options): Likewise.
8684 (GRUB_MOD_INIT): Likewise.
8685 * commands/i386/pc/drivemap.c (options): Likewise.
8686 (GRUB_MOD_INIT): Likewise.
8687 * commands/i386/pc/halt (options): Likewise.
8688 (GRUB_MOD_INIT): Likewise.
8689 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
8690 * commands/i386/pc/pxecmd.c (options): Likewise.
8691 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
8692 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
8693 * commands/keystatus.c (options): Likewise.
8694 (GRUB_MOD_INIT): Likewise.
8695 * commands/loadenv.c (options): Likewise.
8696 * commands/ls.c (options): Likewise.
8697 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
8698 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
8699 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
8700 * commands/parttool.c (helpmsg): Likewise.
8701 * commands/probe.c (options): Likewise.
8702 * commands/read.c (GRUB_MOD_INIT): Likewise.
8703 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
8704 * commands/search.c (options): Likewise.
8705 * commands/sleep.c (options): Likewise.
8706 * commands/test.c (GRUB_MOD_INIT): Likewise.
8707 * commands/true.c (GRUB_MOD_INIT): Likewise.
8708 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
8709 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
8710 * lib/arg.c (help_options): Likewise.
8711 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
8713 * po/POTFILES: Add `commands/loadenv.c'.
8715 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
8717 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
8718 instead of specifying them explicit.
8720 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8722 * NEWS: Add grub-probe support for GNU/Hurd.
8724 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8726 * NEWS: gettext was added after 1.97.
8728 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8730 * util/mkisofs/msdos_partition.h: New file (based on
8731 include/grub/msdos_partition.h).
8732 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
8733 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
8734 (ld_options, main): Recognize --protective-msdos-label.
8735 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
8736 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
8737 (padblock_write): If `use_protective_msdos_label' is set, patch a
8738 protective DOS-style label in the output image.
8740 * util/grub-mkrescue.in: Use --protective-msdos-label.
8742 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8744 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
8747 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8749 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
8751 (ld_options, main): Recognize `--embedded-boot'.
8752 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
8754 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
8755 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
8756 (padblock_write): Likewise. Rewrite to support embedded boot image.
8758 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
8759 for BIOS-based disk boot instead of only ElTorito.
8761 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8763 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
8764 build (not needed for bootstrap).
8766 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8768 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
8769 from i386-pc build (not needed for bootstrap).
8770 Rewrite a pair of strings.
8772 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
8774 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
8776 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
8778 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
8780 2009-12-21 Andreas Born <futur.andy@googlemail.com>
8782 * kern/env.c (grub_env_context_open): Mark exported variable for
8785 2009-12-21 Andreas Born <futur.andy@googlemail.com>
8787 * kern/env.c (grub_env_export): Create nonexistent variables before
8790 2009-12-20 Carles Pina i Estany <carles@pina.cat>
8792 * include/grub/auth.h: Include `<grub/i18n.h>'.
8793 (GRUB_GET_PASSWORD): Gettextizze string.
8794 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
8796 (grub_utf8_to_ucs4_alloc): Fix indentation.
8797 (grub_print_ucs4): Likewise.
8798 (grub_getstringwidth): Likewise.
8799 (print_message_indented): New declaration.
8800 * normal/auth.c: Include `<grub/i18n.h>'.
8801 (grub_auth_check_authentication): Gettexttize string.
8802 * normal/cmdline.c: Include `<grub/i18n.h>'.
8803 (grub_cmdline_get): Gettextizze.
8804 * normal/color.c: Include `<grub/i18n.h>'.
8805 (grub_parse_color_name_pair): Gettexttize strings.
8806 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
8807 string (use `print_message_indented').
8808 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
8809 `include/grub/normal.h'.
8810 (print_message_indented): Renamed to ...
8811 (grub_print_message_indented): ... this. Remove `static' qualifer (now
8812 used in normal/main.c).
8813 (print_message): Use `grub_print_message_indented' instead of
8814 `print_message_indented'.
8815 (print_timeout): Likewise.
8816 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
8817 (grub_normal_print_device_info): Gettexttize strings.
8818 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
8820 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8822 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
8823 of arguments. Return number of tokens and not arguments. All users
8826 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8828 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
8829 non-MSDOS paritions.
8831 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
8833 * include/grub/types.h (UNUSED): Removed since it conflicts with
8834 NetBSD headers. All users changed to direct __attribute__ ((unused)).
8835 Reported by Grégoire Sutre.
8837 2009-12-19 Carles Pina i Estany <carles@pina.cat>
8839 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
8840 (grub_print_ucs4_alloc): Likewise.
8841 (grub_getstringwidth): Likewise.
8842 * normal/main.c (grub_normal_init_page): Gettextize version string.
8843 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
8844 (getstringwidth): Renamed to ...
8845 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
8846 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
8847 (grub_print_ucs4): Remove `static' qualifer (now used in
8849 * po/POTFILES: Add normal/main.c.
8851 2009-12-19 Carles Pina i Estany <carles@pina.cat>
8853 * normal/menu_text.c (STANDARD_MARGIN): New macro.
8854 (print_message_indented): Add `margin_left' and `margin_right'
8856 (print_message): Update `print_message_indented' calls. Adds '\n' to the
8858 (print_timeout): Use `print_message_indented' to print the message.
8859 Deletes `second_stage' parameter.
8860 (run_menu): Update `print_timeout' calls.
8862 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
8864 Fix console palette on OpenFirmware.
8866 * term/ieee1275/ofconsole.c (MAX): Removed.
8867 (colors): Redone based on VGA palette.
8868 (grub_ofconsole_setcolor): Discard brightness bit since only 8
8869 colors are supported.
8870 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
8872 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
8874 Fix potential EfiEmu double prepare.
8876 * efiemu/main.c (prepared): New variable
8877 (grub_efiemu_unload): Set prepare to '0'.
8878 (grub_efiemu_prepare): Return if already prepared. Set prepared.
8880 set_virtual_address_map support.
8882 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
8884 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
8886 (grub_efiemu_crc32): Likewise.
8887 (grub_efiemu_crc64): Likewise.
8888 (grub_efiemu_set_virtual_address_map): Likewise.
8889 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
8891 (grub_autoefi_set_virtual_address_map): Likewise.
8892 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
8893 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
8894 Restructure flow to accomodate it.
8895 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
8896 (grub_efiemu_crc): Recompute CRC32.
8897 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
8898 (efiemu_ptv_relocated): ... this. Made global. All users updated.
8899 * efiemu/symbols.c (relocated_handle): New variable.
8900 (grub_efiemu_free_syms): Free relocated_handle.
8901 (grub_efiemu_alloc_syms): Allocate relocated_handle.
8902 (grub_efiemu_write_sym_markers): New function.
8903 (grub_efiemu_set_virtual_address_map): Likewise.
8905 Newer XNU parameters.
8907 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
8908 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
8909 (grub_xnu_fill_devicetree): New prototype.
8910 (grub_xnu_heap_real_start): New variable.
8911 * loader/xnu.c (get_name_ptr): New function.
8912 (grub_xnu_load_driver): Fill namelen and name.
8916 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
8917 and 'loader/macho64.c'.
8918 * conf/i386-pc.rmk: Likewise.
8919 * conf/x86_64-efi.rmk: Likewise.
8920 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
8921 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
8922 * include/grub/macho.h (grub_macho_segment64): New structure.
8923 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
8924 (grub_macho_size32): ... to this.
8925 (grub_macho32_get_entry_point): Renamed from ...
8926 (grub_macho_get_entry_point32): ... to this.
8927 (grub_macho_contains_macho64): New prototype.
8928 (grub_macho_size64): Likewise.
8929 (grub_macho_get_entry_point64): Likewise.
8930 (grub_macho32_load): Renamed from ...
8931 (grub_macho_load32): ... to this.
8932 (grub_macho32_filesize): Renamed from ...
8933 (grub_macho_filesize32): ... to this.
8934 (grub_macho32_readfile): Renamed from ...
8935 (grub_macho_readfile32): ... to this.
8936 (grub_macho_filesize64): New prototype.
8937 (grub_macho_readfile64): Likewise.
8938 (grub_macho_parse32): Likewise.
8939 (grub_macho_parse64): Likewise.
8940 * loader/macho.c: Split into ...
8941 * loader/machoXX.c: ... and this. Replace 32 with XX.
8942 * loader/macho32.c: New file.
8943 * loader/macho64.c: Likewise.
8944 * loader/xnu.c (grub_xnu_is_64bit): New variable.
8945 (grub_cmd_xnu_kernel): Make 32-bit only.
8946 (grub_cmd_xnu_kernel64): New function.
8947 (grub_xnu_load_driver): Support Mach-O 64.
8948 (grub_cmd_xnu_mkext): Likewise.
8949 * util/grub.d/30_os-prober.in (osx_entry): New function.
8950 Generate entries for 64-bit boot too.
8952 Eliminate ad-hoc tree format in XNU and EfiEmu.
8954 * efiemu/main.c (grub_efiemu_prepare): Update comment.
8955 * efiemu/pnvram.c: Rewritten to use environment variables.
8958 Inline utf16_to_utf8.
8960 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
8961 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
8963 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
8965 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
8966 * commands/usbtest.c (grub_usb_get_string): ... move here.
8967 (usb_print_str): Fix error handling.
8968 * include/grub/usb.h (grub_usb_get_string): Remove.
8970 UTF-8 to UTF-16 transformation.
8972 * conf/common.rmk (pkglib_MODULES): Add charset.mod
8973 (charset_mod_SOURCES): New variable.
8974 (charset_mod_CFLAGS): Likewise.
8975 (charset_mod_LDFLAGS): Likewise.
8976 * include/grub/utf.h: New file.
8977 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
8979 Support for device properties.
8981 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
8982 (grub_xnu_devprop_device_header): Likewise.
8983 (grub_xnu_devprop_device_descriptor): Likewise.
8984 (grub_xnu_devprop_add_device): New prototype.
8985 (grub_xnu_devprop_remove_device): Likewise.
8986 (grub_xnu_devprop_remove_property): Likewise.
8987 (grub_xnu_devprop_add_property_utf8): Likewise.
8988 (grub_xnu_devprop_add_property_utf16): Likewise.
8989 (grub_cpu_xnu_init): Likewise.
8990 (grub_cpu_xnu_fini): Likewise.
8991 (grub_cpu_xnu_unload): Likewise.
8992 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
8993 (property_descriptor): Likewise.
8994 (devices): New variable.
8995 (grub_xnu_devprop_remove_property): New function.
8996 (grub_xnu_devprop_add_device): Likewise.
8997 (grub_xnu_devprop_remove_device): Likewise.
8998 (grub_xnu_devprop_add_property): Likewise.
8999 (grub_xnu_devprop_add_property_utf8): Likewise.
9000 (grub_xnu_devprop_add_property_utf16): Likewise.
9001 (hextoval): Likewise.
9002 (grub_cpu_xnu_fill_devprop): Likewise.
9003 (grub_cmd_devprop_load): Likewise.
9004 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
9005 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
9006 (cmd_devprop_load): New variable.
9007 (grub_cpu_xnu_init): New function.
9008 (grub_cpu_xnu_fini): Likewise.
9009 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
9010 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
9011 (grub_cmd_xnu_devtree): Likewise.
9012 (hextoval): New function.
9013 (unescape): Likewise.
9014 (grub_xnu_fill_devicetree): Likewise.
9016 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
9017 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
9019 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9021 Workaround for broken ATI VBE.
9023 * video/i386/pc/vbe.c (last_set_mode): New variable.
9024 (grub_vbe_set_video_mode): Set 'last_set_mode'.
9025 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
9026 (grub_video_vbe_setup): Don't check for reserved flag.
9028 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
9030 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
9033 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
9035 UUID support for HFS.
9037 * fs/hfs.c (grub_hfs_uuid): New function.
9038 (grub_hfs_fs): New value .uuid.
9039 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
9041 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
9043 Fix a segfault with parsing unknown long options.
9045 * util/grub-mkrelpath.c (options): Zero terminate it.
9047 2009-12-13 Carles Pina i Estany <carles@pina.cat>
9049 * include/grub/misc.h (grub_puts): New declaration.
9050 (grub_puts_): Likewise.
9051 * kern/misc.c (grub_puts): New definition.
9052 (grub_puts_): Likewise.
9054 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
9056 * util/grub-probe.c (probe): Improve error message.
9058 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
9060 * loader/i386/multiboot_elfxx.c
9061 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
9064 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9068 * loader/i386/xnu_helper.S: Removed. All users updated.
9069 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
9070 (relocator_mod_SOURCES): New variable.
9071 (relocator_mod_CFLAGS): Likewise.
9072 (relocator_mod_LDFLAGS): Likewise.
9073 (relocator_mod_ASFLAGS): Likewise.
9074 * conf/x86_64.rmk: Likewise.
9075 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
9076 (grub_multiboot_payload_entry_offset): Likewise.
9077 (grub_multiboot_forward_relocator): Likewise.
9078 (grub_multiboot_forward_relocator_end): Likewise.
9079 (grub_multiboot_backward_relocator): Likewise.
9080 (grub_multiboot_backward_relocator_end): Likewise.
9081 (grub_multiboot_payload_eip): New variable.
9082 (grub_multiboot_payload_orig): Likewise.
9083 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
9084 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
9085 * include/grub/i386/memory.h
9086 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
9087 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
9088 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
9089 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
9090 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
9091 * include/grub/i386/relocator.h: New file.
9092 * include/grub/x86_64/relocator.h: Likewise.
9093 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
9094 (XNU_RELOCATOR): New macro.
9095 (grub_xnu_launcher_start): Remove.
9096 (grub_xnu_launcher_end): Likewise.
9097 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
9098 (grub_xnu_heap_real_start): Remove.
9099 (grub_xnu_heap_start): Change to void *. All users updated.
9100 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
9101 * lib/i386/relocator.c: New file.
9102 * lib/i386/relocator_asm.S: Likewise.
9103 * lib/i386/relocator_backward.S: Likewise.
9104 * lib/mips/relocator.c: Likewise.
9105 * lib/mips/relocator_asm.S: Likewise.
9106 * lib/relocator.c: Likewise.
9107 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
9109 (playground): Likewise.
9110 (grub_multiboot_payload_orig): New variable.
9111 (grub_multiboot_payload_dest): Likewise.
9112 (grub_multiboot_payload_size): Likewise.
9113 (grub_multiboot_payload_eip): Likewise.
9114 (grub_multiboot_payload_esp): Likewise.
9115 (grub_multiboot_boot): Use grub_relocator32_boot.
9116 (grub_multiboot_unload): Free relocators.
9117 (grub_multiboot): Setup stack. Use relocators.
9118 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
9119 (grub_multiboot_load_elfXX): Use relocators.
9120 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
9121 (grub_multiboot_payload_size): Likewise.
9122 (grub_multiboot_payload_dest): Likewise.
9123 (grub_multiboot_payload_entry_offset): Likewise.
9124 (grub_multiboot_forward_relocator): Likewise.
9125 (grub_multiboot_backward_relocator): Likewise.
9126 (grub_multiboot_real_boot): Likewise.
9127 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
9128 (grub_xnu_entry_point): Likewise.
9129 (grub_xnu_arg1): Likewise.
9130 (grub_xnu_stack): Likewise.
9131 (grub_xnu_launch): Removed.
9132 (grub_xnu_boot_resume): New function.
9133 (grub_xnu_boot): Use relocators.
9134 * loader/i386/xnu_helper.S: Removed.
9135 * loader/xnu.c (grub_xnu_heap_start): New variable.
9136 (grub_xnu_heap_size): Likewise.
9137 (grub_xnu_heap_malloc): Use relocators.
9138 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
9140 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9142 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
9145 2009-12-13 Carles Pina i Estany <carles@pina.cat>
9147 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
9148 GRUB_ERR_NONE before calling grub_env_set.
9150 2009-12-12 Robert Millan <rmh@aybabtu.com>
9152 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
9153 * genmk.rb (video): New variable.
9154 (CLEANFILES, VIDEOFILES): Add #{video}.
9155 (#{video}): New target rule.
9156 * genvideolist.sh: New file.
9157 * Makefile.in (pkglib_DATA): Add video.lst.
9158 (video.lst): New target rule.
9159 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
9161 * util/grub.d/30_os-prober.in: Replace `vbe' with
9162 ${GRUB_VIDEO_BACKEND}.
9164 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
9166 * THANKS: Add David Miller.
9168 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
9170 libpciaccess support.
9172 * Makefile.in (LIBPCIACCESS): New variable.
9173 (enable_grub_emu_pci): Likewise.
9174 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
9175 util/pci.c and commands/lspci.c.
9176 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
9177 * configure.ac (grub-emu-pci): New option.
9178 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
9179 (grub_pci_device_unmap_range): Likewise.
9180 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
9181 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
9182 (grub_pci_address_t) [!GRUB_UTIL]: New type.
9183 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
9184 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
9185 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
9186 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
9187 * include/grub/pciutils.h: New file.
9188 * util/pci.c: Likewise.
9190 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
9192 * util/misc.c: Don't include <errno.h> twice.
9194 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
9196 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
9197 name in an error message.
9198 (grub_biosdisk_rw): Likewise.
9200 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9202 Eliminate NTFS 4Gib barrier.
9204 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
9205 (read_run_data): Likewise.
9206 (grub_ntfs_read_run_list): Likewise.
9207 (grub_ntfs_read_block): Likewise.
9208 (grub_ntfs_iterate_dir): Likewise.
9209 (read_mft): Likewise.
9210 (read_data): Likewise.
9212 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
9213 to avoid 64-bit division
9214 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
9215 (grub_ntfs_rlst): Use grub_disk_addr_t.
9217 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9219 Eliminate grub-fstest 4Gib barrier.
9221 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
9222 (read_file): Fix error reporting.
9224 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9226 Eliminate hexdump 4Gib barrier.
9228 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
9229 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
9231 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9233 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
9236 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
9238 Remove miscellaneous files in distclean target.
9240 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
9242 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
9244 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
9245 if they're already set. This resolves the conflict between my
9246 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
9247 fixing the --grub-probe option again.
9248 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
9249 change on 2009-10-06, so that we now once again source
9250 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
9252 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
9254 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
9255 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
9258 2009-12-08 Carles Pina i Estany <carles@pina.cat>
9260 * include/grub/misc.h (grub_printf_): New declaration.
9261 * kern/misc.c (grub_printf_): New definition.
9262 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
9263 instead of `grub_printf' and `_'.
9264 * normal/menu_entry.c (store_completion): Likewise.
9266 (grub_menu_entry_run): Likewise.
9267 * normal/menu_text.c (grub_wait_after_message): Likewise.
9268 (notify_booting): Likewise.
9269 (notify_fallback): Likewise.
9270 (notify_execution_failure): Likewise.
9272 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
9274 * configure.ac: Check for vasprintf.
9275 * util/misc.c (asprintf): Move allocation from here ...
9276 (vasprintf): ... to here. New function.
9277 (xasprintf): New function.
9278 * include/grub/util/misc.h (vasprintf, xasprintf): Add
9280 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
9281 * util/grub-mkfont.c (write_font): Likewise.
9282 * util/grub-probe.c (probe): Likewise.
9283 * util/hostdisk.c (make_device_name): Likewise.
9285 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
9287 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
9288 anything even prefixed with 'cdrom' as a cdrom.
9290 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
9292 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
9295 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9297 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
9298 grub_gettext_msg_list.
9299 (grub_gettext_gettranslation_from_position): Return const char *
9301 (grub_gettext_translate): Add the translated strings into a list,
9302 returns from the list if existing there.
9303 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
9304 (grub_gettext_delete_list): Delete the list.
9305 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
9306 lang environment variable is changed.
9307 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
9309 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
9311 Rename kernel.mod to kernel.img.
9313 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
9314 (kernel_mod_EXPORTS): Rename to ...
9315 (kernel_img_EXPORTS): ... this.
9316 (kernel_mod_SOURCES): Rename to ...
9317 (kernel_img_SOURCES): ... this.
9318 (kernel_mod_HEADERS): Rename to ...
9319 (kernel_img_HEADERS): ... this. All users updated.
9320 (kernel_mod_CFLAGS): Rename to ...
9321 (kernel_img_CFLAGS): ... this.
9322 (kernel_mod_ASFLAGS): Rename to ...
9323 (kernel_img_ASFLAGS): ... this.
9324 (kernel_mod_LDFLAGS): Rename to ...
9325 (kernel_img_LDFLAGS): ... this.
9326 * conf/x86_64-efi.rmk: Likewise.
9327 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
9328 (read_kernel_image): ... this. All users updated.
9329 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
9331 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9333 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
9334 (print_spaces): New function.
9335 (grub_print_ucs4): New function.
9336 (getstringwidth): New function.
9337 (print_message_indented): New function.
9338 (print_message): Gettexttize strings using print_message_indented.
9339 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
9341 (get_entry_number): Gettextize and uses dynamic terminal width.
9342 (notify_booting, notify_fallback, notify_execution_failure):
9344 * normal/menu_entry.c (store_completion): Cleanup the gettextized
9347 (grub_menu_entry_run): Likewise.
9348 * PO/POTFILES: Add normal/menu_entry.c.
9350 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
9352 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
9354 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9356 * util/grub-install.in: Install gettext .mo files.
9357 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
9359 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9361 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
9364 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
9366 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
9367 non-firmware-dependant one in realmode.S takes precedence.
9369 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
9371 * commands/halt.c: Replace misc arch-specific headers with
9373 * commands/reboot.c: Likewise.
9374 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
9376 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
9377 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
9378 (kernel_img_SOURCES): ... to here.
9380 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
9381 * include/grub/i386/pc/init.h: Likewise.
9382 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9383 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9385 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
9387 * include/grub/i386/halt.h: Remove.
9388 * include/grub/i386/reboot.h: Likewise.
9390 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
9392 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
9394 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
9395 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
9396 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
9398 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
9399 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9400 (usage): Add missing comma in printf.
9402 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
9404 Use the same reboot approach on i386 coreboot and qemu as we do on
9407 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
9408 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
9409 * kern/i386/reboot.c: Remove.
9410 * include/grub/i386/reboot.h (grub_reboot): Export function.
9411 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
9412 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
9413 0xf000:0xfff0 instead of 0xffff:0x0000.
9414 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
9415 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
9417 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
9419 Fix $srcdir != $objdir build.
9421 * Makefile.in (po/%.po): Rewrite as ...
9422 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
9424 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
9426 Fix GNU/Hurd grub-install crash.
9427 * util/grub-probe.c (probe): Try to access `path' only when it is not
9430 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
9432 Correct module naming.
9434 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
9435 (GRUB_MOD_INIT(efi_uga)): ... to this
9436 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
9437 (GRUB_MOD_FINI(efi_uga)): ... to this
9438 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
9439 (GRUB_MOD_INIT(efi_gop)): ... to this
9440 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
9441 (GRUB_MOD_FINI(efi_gop)): ... to this
9443 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
9445 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
9447 (usage): Translate `arg' strings using gettext().
9448 Thanks to Jordi Mallach for the suggestion.
9450 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
9452 GOP support. Based on patch from Bean
9453 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
9455 * video/efi_gop.c: New file.
9456 * include/grub/efi/graphics_output.h: Likewise.
9457 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
9458 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
9460 * conf/x86_64-efi.rmk: Likewise.
9462 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
9464 Rename efi_fb to efi_uga.
9466 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
9468 (efi_fb_mod_SOURCES): Rename this ...
9469 (efi_uga_mod_SOURCES): ... to this.
9470 (efi_fb_mod_CFLAGS): Rename this ...
9471 (efi_uga_mod_CFLAGS): ... to this.
9472 (efi_fb_mod_LDFLAGS): Rename this ...
9473 (efi_uga_mod_LDFLAGS): ... to this.
9474 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
9476 (efi_fb_mod_SOURCES): Rename this ...
9477 (efi_uga_mod_SOURCES): ... to this.
9478 (efi_fb_mod_CFLAGS): Rename this ...
9479 (efi_uga_mod_CFLAGS): ... to this.
9480 (efi_fb_mod_LDFLAGS): Rename this ...
9481 (efi_uga_mod_LDFLAGS): ... to this.
9482 * video/efi_fb.c: Move this ...
9483 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
9485 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
9487 * po/README: New file. Explain our PO file workflow.
9489 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
9491 * po/ChangeLog: Remove. Move relevant entries back to ...
9492 * ChangeLog: ... here.
9493 * po/ca.po: Remove (now handled by TLP).
9494 * po/id.po: Likewise.
9495 * po/zh_CN.po: Likewise.
9496 * Makefile.in (LINGUAS): Initialize in a way that supports
9499 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
9501 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
9502 reliing on po/LINGUAS.
9503 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
9504 (po/%.po): ... this.
9506 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9508 * util/i386/efi/grub-mkimage.c: Include "progname.h".
9509 (main): Use `program_name' instead of nonexistent `progname'.
9511 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9513 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
9514 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
9516 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
9518 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
9520 * conf/i386-efi.rmk: Likewise.
9521 * conf/i386-ieee1275.rmk: Likewise.
9522 * conf/powerpc-ieee1275.rmk: Likewise.
9523 * conf/sparc64-ieee1275.rmk: Likewise.
9524 * conf/x86_64-efi.rmk: Likewise.
9526 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9528 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
9530 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9532 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
9534 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
9536 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
9537 (grub_mkdevicemap_SOURCES): New variable.
9538 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
9539 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
9540 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
9541 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
9542 (grub_mkdevicemap_SOURCES): Remove.
9543 * conf/i386-efi.rmk: Likewise.
9544 * conf/i386-ieee1275.rmk: Likewise.
9545 * conf/i386-pc.rmk: Likewise.
9546 * conf/powerpc-ieee1275.rmk: Likewise.
9547 * conf/sparc64-ieee1275.rmk: Likewise.
9548 * conf/x86_64-efi.rmk: Likewise.
9549 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
9550 (usage): Fix strings to use `program_name'.
9551 (main): Initialize gettext.
9552 * util/grub-editenv.c: Likewise.
9553 * util/grub-emu.c: Likewise.
9554 * util/grub-fstest.c: Likewise.
9555 * util/grub-mkdevicemap.c: Likewise.
9556 * util/grub-mkfont.c: Likewise.
9557 * util/grub-mkrelpath.c: Likewise.
9558 * util/grub-pe2elf.c: Likewise.
9559 * util/grub-probe.c: Likewise.
9560 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
9561 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
9562 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9564 * util/misc.c: Include `"progname.h"'.
9565 (progname): Remove variable.
9566 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
9568 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
9570 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
9571 printf and print a newline after the menuentry header line.
9572 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
9574 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
9576 autoconf >= 2.60 support $(localedir).
9578 * INSTALL: Note that autoconf 2.60 is required.
9579 * configure.ac (AC_PREREQ): Bump to 2.60.
9580 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
9581 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
9583 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
9585 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
9588 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
9590 * normal/main.c (grub_normal_read_line): Fix off-by-one
9593 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
9595 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
9596 "parser.grub" in grub_command_execute() call.
9598 2009-11-24 Carles Pina i Estany <carles@pina.cat>
9600 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
9601 * conf/i386-efi.rmk: Likewise.
9602 * conf/i386-ieee1275.rmk: Likewise.
9603 * conf/i386-pc.rmk: Likewise.
9604 * conf/powerpc-ieee1275.rmk: Likewise.
9605 * conf/sparc64-ieee1275.rmk: Likewise.
9606 * conf/x86_64-efi.rmk: Likewise.
9607 * gettext/gettex.c: Include <grub/i18n.h>.
9608 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
9610 * include/grub/i18n.h: ... to here
9611 * include/grub/i18n.h: ... to here.
9612 * kern/misc.c: Include <grub/i18n.h>
9613 (grub_gettext_dummy): Move above user.
9615 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9617 * util/Makefile.in (install-local): Convert a `for' into a normal
9620 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
9622 * autogen.sh: Add automake call.
9623 * config.guess: Remove.
9624 * config.sub: Likewise.
9625 * install-sh: Likewise.
9627 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9629 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
9631 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9633 * util/Makefile.in (install-local): Convert a make `$(foreach)'
9634 function to a normal shell `for'.
9636 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9638 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
9640 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9642 * util/grub-mkrelpath.c: New file.
9643 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
9644 (grub_mkrelpath_SOURCES): New variable.
9645 * include/grub/util/misc.h: New function prototype.
9646 * util/misc.c (make_system_path_relative_to_its_root): New function.
9648 * util/grub-mkconfig_lib.in (bindir): New variable.
9649 (grub_mkrelpath): Likewise.
9650 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
9652 * util/probe.c (probe): Make the file path relative to its root.
9653 Change a info message to use the GRUB path. Enable again the
9654 check if we can read the file with GRUB facilities.
9656 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
9659 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9661 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
9664 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9666 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
9669 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9671 * util/getroot.c (grub_util_is_dmraid): New function.
9672 (grub_util_get_dev_abstraction): Treat dmraid and multipath
9673 devices as normal ones, not as LVM.
9675 2009-11-23 Carles Pina i Estany <carles@pina.cat>
9677 * conf/common.rmk: Add grub-gettext_lib target and updates
9678 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
9680 * gettext/gettext.c: New file. (Reads mo files).
9681 * include/grub/file.h (grub_file_pread): New prototype.
9682 * include/grub/i18n.h (_): New prototype.
9683 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
9685 * kern/misc.c (grub_gettext_dummy): New function.
9686 * normal/menu_text.c: Include <grub/i18n.h>.
9687 * normal/menu_text.c (print_timeout): Gettexttize string.
9688 * normal/menu_text.c (print_message): Gettexttize string.
9689 * po/POTFILES: Add `normal/menu_text.c'.
9690 * po/ca.po: Add new translations.
9691 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
9692 gettext module and defines locale_dir and lang in grub.cfg.
9693 * NEWS: Add gettext support.
9695 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
9697 * util/hostdisk.c: Include `<grub/i18n.h>'.
9698 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
9699 (make_device_name): Rewrite using asprintf.
9700 (convert_system_partition_to_system_disk): Replace 0 with NULL.
9701 (find_system_device): If a device is not found, generate one just
9702 by reusing the OS path name.
9703 (read_device_map): Make it permissible for device.map not to exist.
9705 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
9707 * script/sh/execute.c: Move from here ...
9708 * script/execute.c: ... to here. Update all users.
9709 * script/sh/function.c: Move from here ...
9710 * script/function.c: ... to here. Update all users.
9711 * script/sh/lexer.c: Move from here ...
9712 * script/lexer.c: ... to here. Update all users.
9713 * script/sh/main.c: Move from here ...
9714 * script/main.c: ... to here. Update all users.
9715 * script/sh/parser.y: Move from here ...
9716 * script/parser.y: ... to here. Update all users.
9717 * script/sh/script.c: Move from here ...
9718 * script/script.c: ... to here. Update all users.
9720 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
9722 * configure.ac: Detect all `emu' platforms. Define
9723 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
9724 --enable-grub-emu logic. Disable include/grub/machine
9725 symlink on `emu' platforms.
9727 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
9728 * gensymlist.sh.in: Likewise.
9730 * include/grub/i386/coreboot/machine.h: Remove file.
9731 * include/grub/i386/efi/machine.h: Likewise.
9732 * include/grub/i386/ieee1275/machine.h: Likewise.
9733 * include/grub/i386/pc/machine.h: Likewise.
9734 * include/grub/i386/qemu/machine.h: Likewise.
9735 * include/grub/powerpc/ieee1275/machine.h: Likewise.
9736 * include/grub/sparc64/ieee1275/machine.h: Likewise.
9737 * include/grub/x86_64/efi/machine.h: Likewise.
9739 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
9740 * commands/halt.c: Likewise.
9741 * commands/reboot.c: Likewise.
9742 * include/grub/autoefi.h: Likewise.
9743 * include/grub/i386/at_keyboard.h: Likewise.
9744 * include/grub/i386/kernel.h: Likewise.
9745 * include/grub/i386/loader.h: Likewise.
9746 * include/grub/i386/pc/memory.h: Likewise.
9747 * kern/dl.c: Likewise.
9748 * kern/i386/coreboot/init.c: Likewise.
9749 * loader/i386/bsd.c: Likewise.
9750 * loader/i386/linux.c: Likewise.
9751 * loader/multiboot_loader.c: Likewise.
9752 * term/i386/pc/serial.c: Likewise.
9753 * term/usb_keyboard.c: Likewise.
9755 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
9756 `<grub/machine/machine.h>'
9757 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
9758 * util/misc.c: Remove `<grub/machine/machine.h>' and
9759 `<grub/machine/time.h>'.
9761 * Makefile.in (enable_grub_emu): Remove variable.
9762 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
9764 * conf/any-emu.rmk: New file.
9765 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
9766 (grub_emu_init.c): Move from here ...
9767 * conf/any-emu.rmk: ... to here.
9769 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
9770 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
9771 * conf/any-emu.rmk: ... to here.
9773 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
9775 * include/grub/parser.h (grub_parser_register): Document need
9776 of `name' parameter.
9777 * normal/main.c (grub_normal_read_line): Simplify prompt string.
9778 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
9781 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
9783 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
9785 * include/grub/i18n.h (N_): New macro.
9786 * util/mkisofs/mkisofs.h: Likewise.
9787 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
9789 (usage): Use gettext() to translate help strings when printing them.
9791 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
9793 Based on patch from Bean
9794 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
9796 * video/efi_fb.c: New file.
9797 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
9798 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
9800 * conf/x86_64-efi.rmk: Likewise.
9802 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
9804 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
9805 * util/i386/pc/grub-setup.c: Likewise.
9807 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9809 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
9811 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
9812 file_get_storage_info to implement grub_guess_root_device.
9814 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
9816 * Makefile.in (target): Use make's builtin $(shell) function
9817 instead of calling directly $(SHELL) to create the locale directories,
9818 inside the $(foreach) function.
9820 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
9822 * util/grub-mkrescue.in: Print an error and usage if output option
9825 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
9827 Patch from Loïc Minier <loic.minier@ubuntu.com>.
9828 * util/grub.d/30_os-prober.in: Cope with Linux entries where
9829 root and /boot are on different devices.
9831 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
9833 Fix build for srcdir != objdir.
9835 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
9836 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
9838 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
9839 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
9840 reference for input.
9842 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
9844 * util/grub-mkrescue.in: Use source directory direcly (without copiing
9845 or hardlinking it). Remove -J option, Joliet is not compatible with
9846 multiple source directories.
9848 2009-11-21 Carles Pina i Estany <carles@pina.cat>
9849 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
9851 * util/grub-mkrescue.in: Recognize `--override-directory' option.
9852 (process_input_dir): New function. Process an arbitrary input
9854 Misc adjustments to support both "override mode" and system-wide mode.
9856 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
9858 * configure.ac (UNIFONT_BDF): Rename to ...
9859 (FONT_SOURCE): ... this. Update all users.
9861 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
9863 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
9864 to the list of unifont files to look for.
9866 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
9868 Patch from Joe Auricchio <jauricchio@gmail.com>
9869 * commands/minicmd.c (grub_mini_cmd_clear): New function.
9870 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
9871 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
9873 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
9875 * Makefile.in (install-local): Add a missing backslash.
9877 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
9879 * include/grub/x86_64/io.h: New file.
9881 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
9883 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
9884 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
9885 Include `"progname.h"'.
9886 (main): Initialize gettext.
9887 * util/i386/pc/grub-setup.c: Gettexttize.
9888 * util/i386/pc/grub-mkimage.c: Likewise.
9890 * Makefile.in (po/*.po): Redefine as ...
9891 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
9893 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
9895 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
9897 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
9898 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
9899 (program_name): Remove.
9900 (main): Initialize gettext support.
9901 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
9902 Include `<libintl.h>'.
9905 * util/mkisofs/eltorito.c: Gettexttize.
9906 * util/mkisofs/joliet.c: Likewise.
9907 * util/mkisofs/mkisofs.c: Likewise.
9908 * util/mkisofs/multi.c: Likewise.
9909 * util/mkisofs/rock.c: Likewise.
9910 * util/mkisofs/tree.c: Likewise.
9911 * util/mkisofs/write.c: Likewise.
9913 * po/POTFILES: Update with new files.
9915 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
9917 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
9918 * util/mkisofs/iso9660.h: Likewise.
9919 * util/mkisofs/joliet.c: Likewise.
9920 * util/mkisofs/mkisofs.c: Likewise.
9921 * util/mkisofs/mkisofs.h: Likewise.
9922 * util/mkisofs/rock.c: Likewise.
9923 * util/mkisofs/tree.c: Likewise.
9924 * util/mkisofs/write.c: Likewise.
9926 * util/mkisofs/eltorito.c (rcsid): Remove.
9927 * util/mkisofs/hash.c: Likewise.
9928 * util/mkisofs/joliet.c: Likewise.
9929 * util/mkisofs/name.c: Likewise.
9930 * util/mkisofs/rock.c: Likewise.
9931 * util/mkisofs/tree.c: Likewise.
9932 * util/mkisofs/write.c: Likewise.
9934 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
9936 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
9937 instead of static allocation.
9938 * util/mkisofs/match.h: Likewise.
9940 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
9942 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
9943 and `util/grub.d/10_linux.in'.
9944 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
9945 translatable Shell files.
9947 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
9949 * Makefile.in ($(srcdir)/aclocal.m4): New target.
9951 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
9953 * INSTALL: Document Automake is needed for bootstrap.
9954 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
9955 * util/grub.d/10_kfreebsd.in (bindir): New variable.
9956 Add gettext initialization.
9957 (kfreebsd_entry): Make menuentry output translatable.
9959 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
9961 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
9962 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
9963 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
9964 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
9965 (LINGUAS): Auto-generate using `po/LINGUAS'.
9966 * po/LINGUAS: New file.
9968 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
9970 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
9972 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
9973 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
9974 bindtextdomain() calls for gettext initialization.
9976 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
9978 * gnulib/progname.c: New file (imported from Gnulib).
9979 * gnulib/progname.h: Likewise.
9980 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
9981 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
9982 (usage): Replace `progname' with `program_name'.
9983 (main): Use set_program_name() for program name initialization.
9985 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
9987 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
9989 * Makefile.in (CPPFLAGS): ... to here.
9991 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
9993 * aclocal.m4: Move from here ...
9994 * acinclude.m4: ... to here.
9995 * autogen.sh: Add call to `aclocal'.
9996 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
9998 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10000 * Makefile.in (CLEANFILES): Add `po/*.mo'.
10001 (LINGUAS): New variable.
10002 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
10003 (install-local): Install MO files.
10004 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
10005 * include/grub/i18n.h: New file.
10006 * po/POTFILES: New file.
10007 * po/ca.po: New file.
10008 * util/grub.d/10_linux.in (bindir): New variable.
10009 Add gettext initialization.
10010 (linux_entry): Make menuentry output translatable.
10011 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
10012 (usage): Make --help output translatable.
10013 (main): Initialize gettext.
10015 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10017 * import_gcry.py: New file (written by Vladimir with minor
10019 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
10021 * INSTALL: Document that Python is required for bootstrap.
10023 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10025 Import ciphers from libgcrypt 1.4.4.
10027 * lib/libgcrypt/cipher/ChangeLog
10028 * lib/libgcrypt/cipher/ac.c
10029 * lib/libgcrypt/cipher/arcfour.c
10030 * lib/libgcrypt/cipher/bithelp.h
10031 * lib/libgcrypt/cipher/blowfish.c
10032 * lib/libgcrypt/cipher/camellia-glue.c
10033 * lib/libgcrypt/cipher/camellia.c
10034 * lib/libgcrypt/cipher/camellia.h
10035 * lib/libgcrypt/cipher/cast5.c
10036 * lib/libgcrypt/cipher/cipher.c
10037 * lib/libgcrypt/cipher/crc.c
10038 * lib/libgcrypt/cipher/des.c
10039 * lib/libgcrypt/cipher/dsa.c
10040 * lib/libgcrypt/cipher/ecc.c
10041 * lib/libgcrypt/cipher/elgamal.c
10042 * lib/libgcrypt/cipher/hash-common.c
10043 * lib/libgcrypt/cipher/hash-common.h
10044 * lib/libgcrypt/cipher/hmac-tests.c
10045 * lib/libgcrypt/cipher/md.c
10046 * lib/libgcrypt/cipher/md4.c
10047 * lib/libgcrypt/cipher/md5.c
10048 * lib/libgcrypt/cipher/primegen.c
10049 * lib/libgcrypt/cipher/pubkey.c
10050 * lib/libgcrypt/cipher/rfc2268.c
10051 * lib/libgcrypt/cipher/rijndael-tables.h
10052 * lib/libgcrypt/cipher/rijndael.c
10053 * lib/libgcrypt/cipher/rmd.h
10054 * lib/libgcrypt/cipher/rmd160.c
10055 * lib/libgcrypt/cipher/rsa.c
10056 * lib/libgcrypt/cipher/seed.c
10057 * lib/libgcrypt/cipher/serpent.c
10058 * lib/libgcrypt/cipher/sha1.c
10059 * lib/libgcrypt/cipher/sha256.c
10060 * lib/libgcrypt/cipher/sha512.c
10061 * lib/libgcrypt/cipher/tiger.c
10062 * lib/libgcrypt/cipher/twofish.c
10063 * lib/libgcrypt/cipher/whirlpool.c
10065 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10067 Fix build for systems without error().
10069 * gnulib/error.c: New file (imported from Gnulib).
10070 * gnulib/error.h: Likewise.
10071 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
10072 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
10073 (this variable is now used by error()).
10075 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
10077 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
10078 instead of relying that char is signed.
10080 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10082 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
10083 blocksize different from specified.
10084 (grub_pxefs_read): Likewise.
10086 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
10088 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
10090 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
10091 (grub_ata_readwrite): Likewise. Update 2 format strings.
10092 (grub_atapi_read): Likewise.
10094 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
10095 * conf/i386.rmk (pkglib_MODULES): ... to here ...
10096 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
10097 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
10098 (ata_mod_LDFLAGS): Move from here ...
10099 * conf/i386.rmk: ... to here ...
10100 * conf/x86_64-efi.rmk: ... and here.
10101 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
10102 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
10104 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10106 Relicense multiboot.h, with RMS' blessing.
10108 * include/multiboot.h: Change to X11 license.
10110 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
10112 Support --version in grub-mkisofs.
10114 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
10115 (OPTION_VERSION): New macro.
10116 (ld_options): Recognize --version.
10117 (usage): Move `program_name' from here ...
10118 (program_name): ... to here. Add `static' qualifier.
10119 (main): Recognize `OPTION_VERSION'.
10121 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
10123 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
10124 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
10126 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
10128 Fix help2man generation for mkisofs.
10130 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
10131 (usage): Send output to stdout (rather than stderr).
10133 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
10135 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
10136 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
10137 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
10138 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
10139 (bin_SCRIPTS): Add `grub-mkfloppy'.
10140 (grub_mkfloppy_SOURCES): New variable.
10142 * util/grub-mkrescue.in: New file.
10143 * util/i386/pc/grub-mkfloppy.in: New file.
10145 * util/i386/coreboot/grub-mkrescue.in: Remove.
10146 * util/i386/pc/grub-mkrescue.in: Remove.
10148 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
10150 * include/grub/multiboot.h (struct grub_multiboot_header): Move
10152 * include/multiboot.h (struct multiboot_header): ... to here. Update
10154 * include/grub/multiboot.h (struct grub_multiboot_info): Move
10156 * include/multiboot.h (struct multiboot_info): ... to here. Update
10158 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
10160 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
10162 * include/grub/multiboot.h (struct grub_mod_list): Move
10164 * include/multiboot.h (struct multiboot_mod_list): ... to here.
10167 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
10169 * include/multiboot2.h (multiboot_word): Rename from this ...
10170 (multiboot2_word): ... to this. Update all users.
10171 (multiboot_header): Rename from this ...
10172 (multiboot2_header): ... to this. Update all users.
10173 (multiboot_tag_header): Rename from this ...
10174 (multiboot2_tag_header): ... to this. Update all users.
10175 (multiboot_tag_start): Rename from this ...
10176 (multiboot2_tag_start): ... to this. Update all users.
10177 (multiboot_tag_name): Rename from this ...
10178 (multiboot2_tag_name): ... to this. Update all users.
10179 (multiboot_tag_module): Rename from this ...
10180 (multiboot2_tag_module): ... to this. Update all users.
10181 (multiboot_tag_memory): Rename from this ...
10182 (multiboot2_tag_memory): ... to this. Update all users.
10183 (multiboot_tag_unused): Rename from this ...
10184 (multiboot2_tag_unused): ... to this. Update all users.
10185 (multiboot_tag_end): Rename from this ...
10186 (multiboot2_tag_end): ... to this. Update all users.
10188 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
10190 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
10191 this platform we should support Multiboot1 first.
10193 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
10194 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
10195 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
10197 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
10199 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
10200 of write calls (converting them to fwrite() if they aren't already).
10201 (get_torito_desc): Likewise.
10202 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
10204 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
10206 * util/i386/pc/grub-install.in: Move from here ...
10207 * util/grub-install.in: ... to here. Update all users.
10209 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
10211 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
10213 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
10215 Support for El Torito without floppy emulation.
10217 * util/mkisofs/eltorito.c: Include `<errno.h>'.
10218 (init_boot_catalog): Improve error handling.
10219 (get_torito_desc): Don't use floppy emulation unless requested by
10220 user. Patch boot information table when requested via
10221 `-boot-info-table'.
10222 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
10223 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
10224 (use_boot_info_table): New variables.
10225 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
10226 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
10227 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
10228 `--eltorito-emul-floppy'.
10229 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
10230 and `OPTION_ELTORITO_EMUL_FLOPPY'.
10231 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
10232 (use_boot_info_table, get_731): New prototypes.
10233 * util/mkisofs/write.c (get_731): New function.
10235 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
10237 Fix the generation of the man page.
10239 * util/pc/i386/grub-install.in: Source
10240 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
10242 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
10244 Large file support for grub-mkisofs.
10246 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
10247 * util/mkisofs/mkisofs.c (next_extent, last_extent)
10248 (session_start): Upgrade type to `uint64_t'. Update all users.
10249 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
10250 (struct directory_entry): Upgrade type of `starting_block' and
10251 `size' to `uint64_t'. Update all users.
10252 (struct deferred): Remove unused structure.
10253 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
10255 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
10256 file is larger than `UINT32_MAX'.
10257 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
10258 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
10260 (struct deferred_write): Upgrade type of `extent' and `size' to
10261 `uint64_t'. Update all users.
10262 (last_extent_written): Upgrade type to `uint64_t'. Update all
10264 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
10265 Update all users. Upgrade type of `remain' to `int64_t' and
10266 `use' to `size_t'. Use error() to handle fread() errors.
10267 (write_files): Rely on write_one_file() rather than calling
10268 xfwrite() directly.
10270 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
10272 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
10274 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10276 * util/mkisofs/fnmatch.c: Remove.
10277 * util/mkisofs/getopt1.c: Likewise.
10278 * util/mkisofs/getopt.c: Likewise.
10279 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
10280 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
10281 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
10282 `gnulib/getopt1.c' and `gnulib/getopt.c'.
10283 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
10285 * configure.ac: Detect `mingw32msvc' host_os.
10286 Check for lstat(), getuid() and getgid().
10288 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
10289 instances of `u_char' with `uint8_t'.
10291 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
10292 [!HAVE_GETUID] (getuid): New function (stub).
10293 [!HAVE_GETGID] (getgid): Likewise.
10294 [!HAVE_LSTAT] (lstat): Likewise.
10295 [!S_IROTH] (S_IROTH): New macro (dummy).
10296 [!S_IRGRP] (S_IRGRP): Likewise.
10298 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10300 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
10301 conditional expression).
10303 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10305 Import from Gnulib.
10307 * gnulib/fnmatch.c: New file.
10308 * gnulib/fnmatch.h: Likewise.
10309 * gnulib/fnmatch_loop.c: Likewise.
10310 * gnulib/getopt.c: Likewise.
10311 * gnulib/getopt.h: Likewise.
10312 * gnulib/getopt1.c: Likewise.
10313 * gnulib/getopt_int.h: Likewise.
10314 * gnulib/gettext.h: Likewise.
10316 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10318 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
10319 * normal/handler.c (read_handler_list): Likewise.
10321 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10325 * kern/command.c (grub_register_command_prio): Use
10326 grub_zalloc() instead of explicitly zeroing data.
10327 * kern/list.c: Include `<grub/mm.h>'.
10328 (grub_named_list_find): Replace `0' with `NULL'.
10329 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
10330 (fs_module_list): Change type to `grub_named_list_t'. Update all
10332 * normal/dyncmd.c (read_command_list): Add space between function
10333 call and parenthesis.
10334 * normal/handler.c (read_handler_list): Likewise.
10336 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10338 * normal/auth.c (punishment_delay): Moved from here ...
10339 (grub_auth_strcmp): ... to here (inside function).
10341 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10343 * include/grub/list.h (struct grub_named_list): Remove `const'
10344 qualifier from `name'.
10345 (struct grub_prio_list): Likewise.
10347 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10349 * normal/auth.c: Include `<grub/time.h>'.
10350 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
10352 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10354 * normal/auth.c (punishment_delay): New variable.
10355 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
10356 (grub_auth_check_authentication): Punish failed login attempts with
10357 an incremental (2^N) delay.
10359 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10361 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
10362 path with $(srcdir).
10364 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10366 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
10368 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10370 * util/i386/coreboot/grub-mkrescue.in: New file.
10371 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
10374 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
10375 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
10376 * configure.ac: Add header and function checks to satisfy grub-mkisofs
10378 * util/mkisofs/defaults.h: New file.
10379 * util/mkisofs/eltorito.c: Likewise.
10380 * util/mkisofs/exclude.h: Likewise.
10381 * util/mkisofs/fnmatch.c: Likewise.
10382 * util/mkisofs/getopt.c: Likewise.
10383 * util/mkisofs/getopt1.c: Likewise.
10384 * util/mkisofs/hash.c: Likewise.
10385 * util/mkisofs/include/fctldefs.h: Likewise.
10386 * util/mkisofs/include/mconfig.h: Likewise.
10387 * util/mkisofs/include/prototyp.h: Likewise.
10388 * util/mkisofs/include/statdefs.h: Likewise.
10389 * util/mkisofs/iso9660.h: Likewise.
10390 * util/mkisofs/joliet.c: Likewise.
10391 * util/mkisofs/match.c: Likewise.
10392 * util/mkisofs/match.h: Likewise.
10393 * util/mkisofs/mkisofs.c: Likewise.
10394 * util/mkisofs/mkisofs.h: Likewise.
10395 * util/mkisofs/multi.c: Likewise.
10396 * util/mkisofs/name.c: Likewise.
10397 * util/mkisofs/rock.c: Likewise.
10398 * util/mkisofs/tree.c: Likewise.
10399 * util/mkisofs/write.c: Likewise.
10401 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10403 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
10406 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10408 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
10409 `grub-mkimage' (and use $0 when possible).
10411 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10413 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
10414 error message for excessively large memory map.
10416 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10418 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
10421 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10423 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
10424 message for coreboot users.
10426 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
10428 Fix build with GNU gold.
10430 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
10431 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
10432 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
10434 * aclocal.m4: Likewise.
10436 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
10438 * configure.ac (AC_PREREQ): Bump to 2.59d.
10439 * INSTALL: Make it more clear when Autoconf and Ruby are
10440 needed and when to run `./autogen.sh'.
10442 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10444 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
10447 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10449 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
10451 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10453 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
10454 giving it to GNU Mach.
10456 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10458 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
10459 GNU partition number to get internal GRUB partition number.
10461 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10463 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
10464 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
10466 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
10468 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
10469 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
10472 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
10474 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
10476 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
10480 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
10481 `-isystem=$(srcdir)/include'.
10483 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
10485 * util/i386/pc/grub-install.in: Remove hint that device.map should be
10486 checked (grub-install doesn't currently rely on it).
10488 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
10492 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
10493 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
10494 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
10495 * conf/i386-ieee1275.rmk: Likewise.
10496 * conf/i386-pc.rmk: Likewise.
10497 * conf/powerpc-ieee1275.rmk: Likewise.
10498 * conf/sparc64-ieee1275.rmk: Likewise.
10499 * conf/x86_64-efi.rmk: Likewise.
10501 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
10503 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
10505 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
10507 * include/grub/misc.h: Stop checking for APPLE_CC.
10509 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
10511 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
10512 doesn't cause an infinite call loop.
10514 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
10516 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
10519 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10521 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
10523 * Makefile.in: Likewise.
10525 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10527 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
10529 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10531 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
10533 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10535 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
10537 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10539 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
10541 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
10543 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10545 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
10546 in $(MAKEINFO) invocation. This makes it clear in output that
10547 errors are being ignored.
10549 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10551 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
10553 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
10554 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
10555 * conf/i386-ieee1275.rmk: Likewise.
10556 * conf/i386-pc.rmk: Likewise.
10557 * conf/powerpc-ieee1275.rmk: Likewise.
10558 * conf/sparc64-ieee1275.rmk: Likewise.
10559 * conf/x86_64-efi.rmk: Likewise.
10561 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
10563 * util/grub-editenv.c (main): If only a command is given, use
10564 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
10565 (usage): FILENAME is now optional and has a default.
10567 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
10569 Improve grub-mkconfig performance when there are several menu
10570 entries on a single filesystem.
10572 * util/grub.d/10_linux.in (linux_entry): Cache the output of
10573 prepare_grub_to_access_device.
10574 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
10575 * util/grub.d/30_os-prober.in: Likewise.
10577 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10579 * util/grub.d/10_freebsd.in: Remove.
10580 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
10581 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
10583 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10585 * docs/grub.cfg: Fix example usage of *BSD loaders.
10587 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10589 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
10590 grub_util_error() call.
10592 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10594 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
10595 `reserved_first_sector' member.
10596 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
10597 `reserved_first_sector' to 1.
10598 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
10599 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
10600 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
10601 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
10602 filesystems which begin at first sector.
10603 (options): New option --skip-fs-probe.
10604 (main): Handle --skip-fs-probe and pass it to setup().
10606 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10608 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
10609 (memset): Fix function prototype.
10611 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10612 2009-10-25 Vasily Averin <vvs@parallels.com>
10614 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
10615 `dirent.direntlen == 0'.
10617 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10619 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
10621 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
10623 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10625 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
10626 `__trampoline_setup' and `__ucmpdi2'.
10627 * include/grub/powerpc/libgcc.h: Only export symbols for functions
10628 that libgcc provides.
10630 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10632 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
10633 * include/grub/sparc64/libgcc.h (memset): Likewise.
10634 * include/grub/misc.h (memset, memcmp): New function prototypes.
10636 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10638 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
10640 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
10642 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10644 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
10645 * docs/grub.cfg: Compensate for recent change in multiboot
10646 loader (since 2009-08-14 it won't pass filename to payload).
10647 * util/grub.d/10_hurd.in: Likewise.
10649 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
10651 * config.guess: Update to latest version from config git
10653 * config.sub: Likewise.
10655 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
10657 Fix build on sparc64.
10659 * configure.ac: Perform checks for libgcc symbols before
10660 adding `-nostdlib' to LDFLAGS.
10662 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10664 Let user specify OpenBSD root device.
10666 * loader/i386/bsd.c (openbsd_root): New variable.
10667 (openbsd_opts): New option 'root'.
10668 (OPENBSD_ROOT_ARG): New macro.
10669 (grub_openbsd_boot): Use 'openbsd_root'.
10670 (grub_cmd_openbsd): Fill 'openbsd_root'.
10672 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
10674 * NEWS: Misc adjustments.
10676 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10678 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
10680 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
10682 * configure.ac: Bump version to 1.97.
10684 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
10686 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
10687 -mno-3dnow on x86 architectures. Some toolchains enable these
10688 features by default, but they rely on registers that aren't enabled
10689 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
10691 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
10693 Make entry text a bit more readable.
10695 * util/grub.d/10_linux.in: Add `with' before `Linux'.
10697 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
10699 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
10701 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
10703 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
10706 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
10708 * configure.ac: Add missing dollar.
10710 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
10712 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
10714 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
10715 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
10717 * include/grub/sparc64/libgcc.h: Likewise. Use
10718 preprocessor conditionals.
10720 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
10722 * conf/common.rmk (grub-dumpbios): Remove rule.
10723 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
10724 * util/grub-dumpbios.in: Remove file.
10726 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
10728 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
10729 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
10731 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
10732 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
10735 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
10736 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
10737 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
10738 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
10741 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
10743 * term/tparm.c: Switch to GPLv3.
10745 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
10747 * include/grub/i386/cpuid.h: Add header protection.
10749 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
10751 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
10753 * include/grub/i386/cpuid.h: New file.
10754 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
10755 (has_longmode): Rename to ...
10756 (grub_cpuid_has_longmode): ... this. Update all users. Remove
10757 `static' attribute.
10758 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
10759 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
10760 on a CPU that doesn't implement AMD64 instruction set.
10762 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
10764 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
10765 that version.texi is rebuilt on version number changes.
10767 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
10769 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
10772 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
10774 * util/i386/pc/grub-install.in: Source
10775 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
10776 that the --grub-probe option will work.
10777 * util/sparc64/ieee1275/grub-install.in: Likewise.
10779 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
10781 * configure.ac: Bump version to 1.97~beta4.
10783 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
10785 Resync grub-mkdevicemap in x86_64-efi.
10787 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
10788 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
10789 `util/devicemap.c'.
10791 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
10793 * util/grub-editenv.c (create_envblk_file): Write new block with a
10794 .new suffix and then rename it into place, to ensure atomic
10797 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
10799 Do not automatically install headers.
10801 * Makefile.in (include_DATA): Remove. Update all users.
10803 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
10805 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
10806 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
10808 * util/osdetect.lua: Remove.
10809 * script/lua/lauxlib.c: Likewise.
10810 * script/lua/ldebug.c: Likewise.
10811 * script/lua/grub_main.c: Likewise.
10812 * script/lua/lauxlib.h: Likewise.
10813 * script/lua/ldebug.h: Likewise.
10814 * script/lua/ltablib.c: Likewise.
10815 * script/lua/liolib.c: Likewise.
10816 * script/lua/lstrlib.c: Likewise.
10817 * script/lua/lualib.h: Likewise.
10818 * script/lua/ldo.c: Likewise.
10819 * script/lua/ldump.c: Likewise.
10820 * script/lua/ldo.h: Likewise.
10821 * script/lua/loslib.c: Likewise.
10822 * script/lua/lundump.c: Likewise.
10823 * script/lua/grub_lib.c: Likewise.
10824 * script/lua/ldblib.c: Likewise.
10825 * script/lua/lundump.h: Likewise.
10826 * script/lua/lmem.c: Likewise.
10827 * script/lua/grub_lib.h: Likewise.
10828 * script/lua/lmathlib.c: Likewise.
10829 * script/lua/lstate.c: Likewise.
10830 * script/lua/ltm.c: Likewise.
10831 * script/lua/lvm.c: Likewise.
10832 * script/lua/lmem.h: Likewise.
10833 * script/lua/lstate.h: Likewise.
10834 * script/lua/ltm.h: Likewise.
10835 * script/lua/ltable.c: Likewise.
10836 * script/lua/lvm.h: Likewise.
10837 * script/lua/llex.c: Likewise.
10838 * script/lua/lgc.c: Likewise.
10839 * script/lua/grub_lua.h: Likewise.
10840 * script/lua/loadlib.c: Likewise.
10841 * script/lua/lfunc.c: Likewise.
10842 * script/lua/lopcodes.c: Likewise.
10843 * script/lua/lparser.c: Likewise.
10844 * script/lua/ltable.h: Likewise.
10845 * script/lua/llex.h: Likewise.
10846 * script/lua/lgc.h: Likewise.
10847 * script/lua/lfunc.h: Likewise.
10848 * script/lua/lbaselib.c: Likewise.
10849 * script/lua/lopcodes.h: Likewise.
10850 * script/lua/lparser.h: Likewise.
10851 * script/lua/lzio.c: Likewise.
10852 * script/lua/linit.c: Likewise.
10853 * script/lua/lobject.c: Likewise.
10854 * script/lua/llimits.h: Likewise.
10855 * script/lua/lstring.c: Likewise.
10856 * script/lua/lzio.h: Likewise.
10857 * script/lua/lapi.c: Likewise.
10858 * script/lua/lcode.c: Likewise.
10859 * script/lua/lua.h: Likewise.
10860 * script/lua/lobject.h: Likewise.
10861 * script/lua/lstring.h: Likewise.
10862 * script/lua/lapi.h: Likewise.
10863 * script/lua/lcode.h: Likewise.
10864 * script/lua/luaconf.h: Likewise.
10866 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
10868 * docs/grub.texi (Command-line and menu entry commands): Document
10869 date and echo commands.
10871 2009-09-24 Pavel Roskin <proski@gnu.org>
10873 * include/grub/kernel.h (struct grub_module_header): Remove
10874 `grub_module_header_types'. Make `type' unsigned. Make `size'
10875 32-bit on all platforms.
10876 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
10877 8-bit field. Use grub_host_to_target32() for `size'.
10878 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
10879 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
10880 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
10882 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
10884 Fix "lost keypress" bug in at_keyboard.
10886 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
10887 Checks for readyness of input buffer (without flushing it).
10888 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
10889 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
10891 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
10893 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
10894 size check within GRUB_MACHINE_PCBIOS section.
10896 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
10898 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
10900 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
10901 KEYBOARD_ISREADY check.
10902 (grub_at_keyboard_checkkey): Rename to ...
10903 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
10904 Remove gratuitous cast.
10906 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
10908 * configure.ac: Call AC_PROG_MKDIR_P.
10909 * Makefile.in (docs/stamp-vti): Create docs directory. Create
10910 version.texi in $(builddir) rather than $(srcdir).
10911 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
10912 to makeinfo's @include search path.
10914 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
10916 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
10918 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
10920 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
10923 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
10925 Build info documentation. Some code borrowed from Automake.
10927 * configure.ac: Check for makeinfo.
10928 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
10929 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
10931 (MOSTLYCLEANFILES): Add vti.tmp.
10932 (docs/version.texi, docs/stamp-vti): Update automatically.
10933 (docs/grub.info): Build info documentation. Use --force and ignore
10935 (all-local): Add $(INFOS).
10936 (install-local): Install info files.
10937 (uninstall): Uninstall info files.
10938 * docs/version.texi: Remove from revision control. This file is
10939 automatically generated on build now.
10940 * gendistlist.sh: Add `*.info'.
10942 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
10944 * kern/term.c: Fix indentation.
10946 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
10948 * util/hostdisk.c: Fix a comment.
10950 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
10952 Fix regression introduced in r2539.
10954 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
10957 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
10959 * util/grub.d/30_os-prober.in: Don't throw away stderr from
10960 os-prober. Under normal operation, it does not print anything to
10961 stderr; if it does, we need to debug it, and throwing away stderr
10962 makes that excessively difficult.
10964 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
10966 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
10968 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
10970 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
10971 AC_LANG_PROGRAM from autoconf.
10972 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
10973 prototypes (fixes warning).
10975 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
10976 `--disable-werror' was used.
10978 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
10980 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
10981 uninitialized `lastaddr'.
10983 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
10985 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
10987 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
10989 * commands/test.c (get_fileinfo): Return immediately if
10990 grub_fs_probe fails.
10992 2009-09-14 José Martínez <xosemp@gmail.com>
10994 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
10996 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
10998 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
11001 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
11003 * configure.ac: Remove --enable-grub-pe2elf. Only build
11004 grub-pe2elf when needed by the build system itself.
11005 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
11007 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11009 * configure.ac: Bump version to 1.97~beta3.
11010 * docs/version.texi: Likewise.
11012 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11014 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
11015 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
11017 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
11018 (grub_linux_setup_video): ... to here (with some adjustments).
11020 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11022 Fix memory corruption issue (spotted by Colin Watson).
11024 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
11025 causing returned size to be stored in an incorrect memory location.
11026 Fix use of uninitialized value when storing the returned size.
11028 2009-09-12 Yves Blusseau <blusseau@zetam.org>
11030 Change clean rules to properly remove files
11032 * genmk.rb: add new clean rules
11033 * Makefile.in (clean): add the new targets
11034 (mostlyclean): likewise
11036 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
11038 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
11040 * fs/ntfs.c (init_file): Understand 64-bit sizes for
11041 non-resident files.
11043 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
11045 * configure.ac: Don't look for help2man when cross-compiling. Fixes
11046 part of bug #27349.
11048 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
11050 * util/grub-mkconfig.in: Make the created config mode 400 and
11051 print a warning if it fails.
11053 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
11055 * util/grub.d/40_custom.in: Ask user to type custom entries below
11056 comment, rather than below 'exec tail' line.
11058 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
11060 * util/grub.d/40_custom.in: Make sure that the explanatory text is
11061 visible in grub.cfg.
11063 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
11065 * util/grub.d/40_custom.in: Make it a little clearer how to use this
11068 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
11070 * docs/grub.cfg: Add an example menu entry for memtest86+.
11072 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
11074 * config.guess: Update to latest version from config git.
11075 * config.sub: Likewise.
11077 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
11079 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
11080 unknown-command case. Fixes bug #27320.
11082 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
11084 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
11085 `help' if the command exists.
11087 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
11089 * INSTALL: Require GCC 4.1.3 or later.
11091 2009-09-06 Yves Blusseau <blusseau@zetam.org>
11093 * Makefile.in (RMKFILES): add i386-qemu.rmk
11094 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
11095 $(srcdir)/stamp-h.in
11097 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
11099 * util/grub-probe.c (probe): Comment out buggy codepath, which
11100 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
11101 should be re-enabled after 1.97.
11103 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
11105 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
11108 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
11110 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
11111 unnecessary calls to grub_error.
11113 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
11115 * NEWS: Mention `keystatus' and Unicode fonts.
11117 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
11119 * configure.ac: Bump version to 1.97~beta2.
11120 * docs/version.texi: Likewise.
11122 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
11124 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
11125 containing unwind information in some cases where it previously did
11126 not. Use -fno-dwarf2-cfi-asm if available to restore the old
11127 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
11130 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
11132 Embedding loadenv module into grub-emu
11134 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
11136 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
11137 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
11138 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
11139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
11140 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
11141 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
11143 2009-09-03 Magnus Granberg <zorry@ume.nu>
11145 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
11146 include -fPIE in the default specs.
11147 * configure.ac: Check if pie_possible is yes and add -fno-PIE
11150 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
11152 * INSTALL: Note that GNU Bison 2.3 or later is required.
11154 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
11156 * kern/i386/pc/startup.S: Fix typo.
11158 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
11160 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
11163 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
11165 * docs/grub.texi (Naming convention): Describe one-based partition
11167 (Device syntax): Likewise.
11168 (File name syntax): Likewise.
11169 (Block list syntax): Likewise.
11170 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
11172 (File name syntax): Likewise.
11173 (Command-line and menu entry commands): Document acpi, blocklist,
11174 crc, export, insmod, keystatus, ls, set, and unset commands.
11176 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
11178 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
11179 to avoid implying that only one of --shift, --ctrl, or --alt may be
11182 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
11184 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
11185 rather than comparing against S_IFREG, which will almost never work.
11187 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
11189 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
11190 (write_blocklists): Likewise.
11192 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
11194 * script/lua/grub_lua.h (fputs): Supply a format string as the first
11195 argument to grub_printf.
11197 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
11199 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
11202 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
11204 * kern/file.c (grub_file_read): Spelling fix
11206 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
11208 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
11209 loading of headers in some cases.
11211 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
11213 * configure.ac: Bump version to 1.97~beta1.
11214 * docs/version.texi: Likewise.
11216 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11218 * include/grub/i386/xnu.h: Add license header.
11219 include grub/err.h explicitly.
11221 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
11223 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
11224 to `ufs' in the vfs.root.mountfrom kernel parameter.
11226 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
11228 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
11230 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
11231 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
11233 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
11234 `ARRAY_SIZE' macro.
11236 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11238 * kern/file.c (grub_file_read): Check offset.
11239 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
11240 * fs/jfs.c (grub_jfs_read_file): Likewise.
11241 * fs/ntfs.c (grub_ntfs_read): Likewise.
11242 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
11243 * fs/minix.c (grub_minix_read_file): Correct offset check.
11244 * fs/ufs.c (grub_ufs_read_file): Likewise.
11246 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
11248 * term/i386/pc/console.c (bios_data_area): Cast
11249 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
11251 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11253 1-bit optimised blitters.
11255 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
11257 (grub_video_fbblit_replace_24bit_1bit): Likewise.
11258 (grub_video_fbblit_replace_16bit_1bit): Likewise.
11259 (grub_video_fbblit_replace_8bit_1bit): Likewise.
11260 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
11261 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
11262 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
11263 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
11265 (grub_video_fbblit_replace_24bit_1bit): Likewise.
11266 (grub_video_fbblit_replace_16bit_1bit): Likewise.
11267 (grub_video_fbblit_replace_8bit_1bit): Likewise.
11268 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
11269 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
11270 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
11271 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
11273 * video/video.c (grub_video_get_blit_format): Return
11274 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
11276 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
11278 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
11279 the first argument to grub_printf.
11281 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
11282 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
11284 Add `getkeystatus' terminal method. Add a new `keystatus' command
11287 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
11288 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
11289 modifier key bitmasks.
11290 (struct grub_term_input): Add `getkeystatus' member.
11291 (grub_getkeystatus): Add prototype.
11292 * kern/term.c (grub_getkeystatus): New function.
11294 * include/grub/i386/pc/memory.h
11295 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
11296 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
11298 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
11299 (grub_console_term_input): Set `getkeystatus' member.
11300 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
11302 (grub_usb_keyboard_getreport): Likewise.
11303 (grub_usb_keyboard_checkkey): Likewise.
11304 (grub_usb_keyboard_getkeystatus): New function.
11305 (grub_usb_keyboard_term): Set `getkeystatus' member.
11307 * commands/keystatus.c: New file.
11308 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
11309 (keystatus_mod_SOURCES): New variable.
11310 (keystatus_mod_CFLAGS): Likewise.
11311 (keystatus_mod_LDFLAGS): Likewise.
11312 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
11313 commands/keystatus.c.
11314 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11315 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11316 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11318 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11319 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11321 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11323 Split befs.mod and afs.mod into *_be.mod and *.mod
11325 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
11326 (grub_fstest_SOURCES): Likewise.
11327 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
11328 (afs_be_mod_SOURCES): New variable.
11329 (afs_be_mod_CFLAGS): Likewise.
11330 (afs_be_mod_LDFLAGS): Likewise.
11331 (befs_be_mod_SOURCES): Likewise.
11332 (befs_be_mod_CFLAGS): Likewise.
11333 (befs_be_mod_LDFLAGS): Likewise.
11334 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
11335 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11336 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11337 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11338 (grub_emu_SOURCES): Likewise.
11339 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11340 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11341 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11342 * fs/afs_be.c: New file.
11343 * fs/befs_be.c: New file.
11344 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
11345 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
11346 (U16): Replaced with ...
11347 (grub_afs_to_cpu16): ...this. All users updated.
11348 (U32): Replaced with ...
11349 (grub_afs_to_cpu32): ...this. All users updated.
11350 (U64): Replaced with ...
11351 (grub_afs_to_cpu64): ...this. All users updated.
11352 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
11353 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
11354 (grub_afs_validate_sblock): Check only one endianness.
11355 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
11356 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
11357 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
11358 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
11359 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
11360 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
11361 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
11362 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
11364 2009-08-26 Bean <bean123ch@gmail.com>
11366 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
11368 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
11369 (grub_xfs_inode_block): Change return type to grub_uint64_t.
11370 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
11372 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11374 NetBSD memory map support.
11376 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
11377 (grub_netbsd_btinfo_mmap_header): New structure.
11378 (grub_netbsd_btinfo_mmap_entry): Likewise.
11379 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
11381 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11383 Enable bsd.mod on coreboot.
11385 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
11386 (bsd_mod_SOURCES): New variable.
11387 (bsd_mod_CFLAGS): Likewise.
11388 (bsd_mod_LDFLAGS): Likewise.
11389 (bsd_mod_ASFLAGS): Likewise.
11390 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
11391 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
11393 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11395 Cleanup NetBSD root support.
11397 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
11398 grub_bsd_get_device.
11401 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
11403 * util/grub.d/00_header.in: Move check for the video backend of
11404 gfxterm from here ...
11405 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
11406 a suitable video backend.
11408 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11410 Fix breakage in grub-setup.
11412 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
11413 "msdos_partition_map".
11415 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11417 Fix breakage in normal/auth.c.
11419 * normal/auth.c (grub_iswordseparator): New function.
11421 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11423 Authentication support.
11425 * commands/password.c: New file.
11426 * conf/common.rmk (pkglib_MODULES): Add password.mod.
11427 (password_mod_SOURCES): New variable.
11428 (password_mod_CFLAGS): Likewise.
11429 (password_mod_LDFLAGS): Likewise.
11430 (normal_mod_SOURCES): Add normal/auth.c.
11431 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
11433 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11434 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11435 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11436 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11437 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11438 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11439 * include/grub/auth.h: New file.
11440 * include/grub/err.h (grub_err_t): New enum value
11441 GRUB_ERR_ACCESS_DENIED.
11442 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
11444 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
11445 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
11447 * normal/auth.c: New file.
11448 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
11449 (grub_cmdline_run): Don't allow to go to command line without
11451 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
11452 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
11453 menuentry without superuser rights.
11454 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
11455 user isn't a superuser.
11457 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11459 Save space by inlining misc.c functions.
11461 * kern/misc.c (grub_iswordseparator): Made static.
11462 * kern/misc.c (grub_strcat): Moved from here ...
11463 * include/grub/misc.h (grub_strcat): ... here. Inlined.
11464 * kern/misc.c (grub_strncat): Moved from here ...
11465 * include/grub/misc.h (grub_strncat): ... here. Inlined.
11466 * kern/misc.c (grub_strcasecmp): Moved from here ...
11467 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
11468 * kern/misc.c (grub_strncasecmp): Moved from here ...
11469 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
11470 * kern/misc.c (grub_isalpha): Moved from here ...
11471 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
11472 * kern/misc.c (grub_isdigit): Moved from here ...
11473 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
11474 * kern/misc.c (grub_isgraph): Moved from here ...
11475 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
11476 * kern/misc.c (grub_tolower): Moved from here ...
11477 * include/grub/misc.h (grub_tolower): ... here. Inlined.
11479 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11481 * script/sh/function.c (grub_script_function_find): Cut error message
11482 not to flood terminal.
11483 * script/sh/lexer.c (grub_script_yylex): Remove command line length
11485 * script/sh/script.c (grub_script_arg_add): Duplicate string.
11487 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
11489 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
11490 `report' grub_uint8_t *.
11491 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
11492 Use a 50-millisecond timeout rather than just repeating
11493 grub_usb_keyboard_getreport 50 times.
11494 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
11496 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11498 Rename *_partition_map to part_*
11500 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
11501 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
11502 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
11503 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
11505 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
11507 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
11508 * util/grub-probe.c (probe_partmap): Don't transform partition name
11509 to get module name.
11511 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11513 Fix OpenBSD and NetBSD support.
11515 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
11516 memory address conflict.
11517 (OPENBSD_MMAP_ACPI): New definition.
11518 (OPENBSD_MMAP_NVS): Likewise.
11519 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
11520 and OPENBSD_MMAP_NVS.
11521 Add memory map terminator
11522 Explicit cast when calling grub_unix_real_boot.
11523 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
11525 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11527 Let user specify NetBSD root device.
11529 * loader/i386/bsd.c (netbsd_root): New variable.
11530 (netbsd_opts): New option 'root'.
11531 (NETBSD_ROOT_ARG): New macro.
11532 (grub_netbsd_boot): Use 'netbsd_root'.
11533 (grub_bsd_unload): Free 'netbsd_root'.
11534 (grub_cmd_netbsd): Fill 'netbsd_root'.
11536 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11538 Support for 64-bit NetBSD.
11540 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
11541 point when booting non-FreeBSD.
11543 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11545 Support --no-smp and --no-acpi for NetBSD.
11547 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
11548 (NETBSD_AB_NOACPI): Likewise.
11549 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
11550 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
11552 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11554 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
11556 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
11557 errors. Call grub_error when needed.
11559 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11561 * commands/search.c (search_fs): Try searching without autoload first.
11562 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11563 filesystem module explicitly for faster booting.
11565 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
11567 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
11569 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
11571 * util/grub.d/30_os-prober.in: Disable os-prober if
11572 `GRUB_DISABLE_OS_PROBER' was set to true.
11574 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
11576 * partmap/pc.c: Rename to ...
11577 * partmap/msdos.c: ... this. Update all users.
11578 (grub_pc_partition_map): Rename to ...
11579 (grub_msdos_partition_map): ... this. Update all users.
11581 * parttool/pcpart.c: Rename to ...
11582 * parttool/msdospart.c: ... this. Update all users.
11584 * include/grub/pc_partition.h: Rename to ...
11585 * include/grub/msdos_partition.h: ... this. Update all users.
11586 (grub_pc_partition_bsd_entry): Rename to ...
11587 (grub_msdos_partition_bsd_entry): ... this. Update all users.
11588 (grub_pc_partition_disk_label): Rename to ...
11589 (grub_msdos_partition_disk_label): ... this. Update all users.
11590 (grub_pc_partition_entry): Rename to ...
11591 (grub_msdos_partition_entry): ... this. Update all users.
11592 (grub_pc_partition_mbr): Rename to ...
11593 (grub_msdos_partition_mbr): ... this. Update all users.
11594 (grub_pc_partition): Rename to ...
11595 (grub_msdos_partition): ... this. Update all users.
11596 (grub_pc_partition_is_empty): Rename to ...
11597 (grub_msdos_partition_is_empty): ... this. Update all users.
11598 (grub_pc_partition_is_extended): Rename to ...
11599 (grub_msdos_partition_is_extended): ... this. Update all users.
11600 (grub_pc_partition_is_bsd): Rename to ...
11601 (grub_msdos_partition_is_bsd): ... this. Update all users.
11603 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
11604 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
11605 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
11606 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
11607 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
11608 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
11609 (gpt_mod_LDFLAGS): Rename to ...
11610 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
11611 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
11612 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
11613 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
11614 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
11615 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
11616 (part_gpt_mod_LDFLAGS): ... this.
11617 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
11618 `pcpart.mod' to `msdospart.mod'.
11619 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
11621 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
11622 (msdospart_mod_LDFLAGS): ... this.
11624 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11626 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
11627 (openbsd_opts): Likewise.
11628 (netbsd_opts): Likewise.
11629 (freebsd_flags): Added 0 terminator.
11630 (openbsd_flags): Likewise.
11631 (netbsd_flags): Likewise.
11632 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
11633 (grub_cmd_freebsd): Transformed into extended command.
11634 (grub_cmd_openbsd): Likewise.
11635 (grub_cmd_netbsd): Likewise.
11636 (cmd_freebsd): Changed type to grub_extcmd_t.
11637 (cmd_openbsd): Likewise.
11638 (cmd_netbsd): Likewise.
11639 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
11640 grub_cmd_openbsd as extended commands.
11641 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
11642 cmd_netbsd and cmd_openbsd
11644 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
11646 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
11648 2009-08-21 Pavel Roskin <proski@gnu.org>
11650 * Makefile.in (install-local): When checking if a file is in the
11651 build directory, use "test -e" to detect symlinks.
11653 * Makefile.in (install-local): Remove all files in
11654 $(DESTDIR)$(pkglibdir) before installing new files there.
11656 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
11658 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
11661 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
11663 * util/grub-mkconfig.in: Don't use gfxterm by default if not
11664 explicitly specified by the user.
11666 2009-08-18 Pavel Roskin <proski@gnu.org>
11668 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
11669 grub_uint8_t pointer for data.
11670 * include/grub/fbutil.h (struct grub_video_fbblit_info):
11672 * video/fb/fbutil.c: Remove unnecessary casts.
11674 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
11678 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
11679 (grub_vbe_set_video_mode): Save active mode info
11680 only after setting the mode.
11681 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
11684 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
11686 Rename variables for clarity.
11688 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
11689 (active_vbe_mode_info): ... this. All users updated.
11690 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
11692 (initial_mode): Rename to ...
11693 (initial_vbe_mode): ... this. All users updated.
11694 (mode_in_use): Rename to ..
11695 (vbe_mode_in_use): ... this. All users updated.
11696 (mode_list): Rename to ..
11697 (vbe_mode_list): ... this. All users updated.
11698 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
11699 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
11700 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
11701 'mode_list_size' to 'vbe_mode_list_size'.
11702 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
11703 'best_mode_info' to 'best_vbe_mode_info' and
11704 'best_mode' to 'best_vbe_mode'
11706 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
11708 Remove duplicate grub_video_fb_get_video_ptr.
11710 * include/grub/fbutil.h (get_data_ptr): Rename to ...
11711 (grub_video_fb_get_video_ptr): ... this.
11712 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
11713 * video/fb/fbutil.c: Add comment about addressing.
11714 (get_data_ptr): Rename to ...
11715 (grub_video_fb_get_video_ptr): ... this. All users updated.
11716 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
11718 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
11720 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
11721 grub_dprintf() that was just added.
11723 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
11725 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
11726 (DEFAULT_VIDEO_MODE): Remove macros.
11727 (grub_linux_boot): Remove assumption that Linux has FB support,
11728 and use "text" as default video mode.
11730 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
11732 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
11734 * fs/fat.c (grub_fat_read_data): Likewise.
11736 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
11738 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
11740 (grub_module): Likewise.
11742 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
11744 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
11745 mbi->cmdline but free playground.
11747 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
11749 Handle group offset on UFS1.
11751 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
11752 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
11754 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
11756 Split ufs.mod into ufs1.mod and ufs2.mod.
11758 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
11759 (grub_fstest_SOURCES): Likewise.
11760 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
11761 (ufs_mod_SOURCES): Remove.
11762 (ufs_mod_CFLAGS): Likewise.
11763 (ufs_mod_LDFLAGS): Likewise.
11764 (ufs1_mod_SOURCES): New variable.
11765 (ufs1_mod_CFLAGS): Likewise.
11766 (ufs1_mod_LDFLAGS): Likewise.
11767 (ufs2_mod_SOURCES): New variable.
11768 (ufs2_mod_CFLAGS): Likewise.
11769 (ufs2_mod_LDFLAGS): Likewise.
11770 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
11771 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
11773 (grub_emu_SOURCES): Likewise.
11774 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11775 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11776 (grub_setup_SOURCES): Likewise.
11777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11778 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
11779 (grub_setup_SOURCES): Likewise.
11780 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
11782 * fs/ufs2.c: New file.
11783 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
11785 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
11789 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
11790 subsystem at the end.
11791 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
11792 (video_fb_mod_SOURCES): New variable.
11793 (video_fb_mod_CFLAGS): Likewise.
11794 (video_fb_mod_LDFLAGS): Likewise.
11795 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
11796 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
11797 * video/i386/pc/vbeblit.c: Moved from here ...
11798 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
11799 * video/i386/pc/vbefill.c: Moved from here ...
11800 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
11801 * video/i386/pc/vbeutil.c: Moved from here ...
11802 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
11803 * include/grub/i386/pc/vbeblit.h: Moved from here ...
11804 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
11805 * include/grub/i386/pc/vbefill.h: Moved from here ...
11806 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
11807 * include/grub/i386/pc/vbeutil.h: Moved from here ...
11808 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
11809 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
11810 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
11811 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
11812 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
11813 (grub_video_adapter): Added 'get_info_and_fini'.
11814 (grub_video_get_info_and_fini): New prototype.
11815 (grub_video_set_mode): make modestring const char *.
11816 * loader/i386/linux.c (grub_linux_setup_video): Use
11817 grub_video_get_info_and_fini.
11818 (grub_linux_boot): Move modesetting just before booting.
11819 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
11820 grub_video_get_info_and_fini.
11821 * video/i386/pc/vbe.c: Moved framebuffer part ...
11822 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
11823 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
11824 grub_video_fbstd_colors and grub_video_fb_set_palette.
11825 (grub_video_vbe_init): Clear 'framebuffer' variable and use
11826 grub_video_fb_init.
11827 (grub_video_vbe_fini): Use grub_video_fb_fini.
11828 (grub_video_vbe_setup): Use framebuffer.render_target instead of
11829 render_target and use grub_video_fb_set_active_render_target and
11830 grub_video_fb_set_palette.
11831 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
11832 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
11833 (grub_video_vbe_adapter): Use framebuffer.
11834 * video/video.c (grub_video_get_info_and_fini): New function.
11835 (grub_video_set_mode): Make modestring const char *.
11836 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
11837 values are already initialised.
11839 2009-08-14 Pavel Roskin <proski@gnu.org>
11841 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
11843 * boot/i386/pc/diskboot.S: Likewise.
11844 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
11845 sectors allow compilation on MacOSX.
11846 * conf/i386-pc.rmk: Enable unconditional compilation of
11849 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
11851 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
11852 * util/grub.d/00_header.in: Enter interruptible sleep if
11853 GRUB_HIDDEN_TIMEOUT is set.
11855 2009-08-13 Yves Blusseau <blusseau@zetam.org>
11857 * include/grub/symbol.h: Add the LOCAL macro.
11858 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
11859 starting with "L_".
11861 2009-08-13 Pavel Roskin <proski@gnu.org>
11863 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
11864 any modern compilers we support.
11866 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
11867 Use local labels starting with "L_" so that Apple assembler
11868 knows they are local.
11870 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
11872 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
11873 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
11874 (bsd_kernel_types): ... this enum.
11876 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
11877 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
11878 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
11880 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
11881 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
11882 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
11885 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
11887 * util/grub-dumpdevtree: Moved from here ...
11888 * util/i386/efi/grub-dumpdevtree: ... to here.
11889 (hexify): New function. Converts a string to its hex version.
11890 Generate hex versions of "efi" and "device-properties" by calling
11891 hexify() on the ASCII strings rather than by hardcoding numbers.
11893 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
11895 * fs/jfs.c: Update copyright year.
11897 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
11899 * util/grub.d/00_header.in: Fix a comment.
11900 * util/grub.d/10_linux.in: Likewise.
11901 * util/grub.d/10_windows.in: Likewise.
11902 * util/grub.d/10_hurd.in: Likewise.
11904 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
11906 * util/grub-mkconfig.in: Allow the user to specify the used font
11909 2009-08-08 Pavel Roskin <proski@gnu.org>
11911 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
11912 available, xfs.mod needs it now.
11914 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
11915 the "g" modifier in sed when the intention is to strip something
11916 once. This fixes comparison of kernels with multiple dashes.
11918 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
11919 on it. Add missing space before closing bracket. Fix
11920 misleading formatting.
11922 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
11924 * docs/grub.texi: Major overhaul. Remove all sections that are
11925 specific to GRUB Legacy, or mostly composed of Legacy-specific
11928 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
11930 * docs/version.texi: New file. Provides version information for
11933 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
11935 * docs/grub.texi: Update CVS information to SVN.
11936 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
11938 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
11940 * util/grub-mkconfig.in: Remove a wrong `fi'.
11942 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
11944 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
11945 (grub_jfs_uuid): New function.
11946 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
11948 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
11950 * util/grub-mkconfig_lib.in (font_path): Move the functionality
11952 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
11953 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
11955 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
11957 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
11958 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
11961 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
11962 not just "vmlinu[zx]".
11963 Moved from here ...
11964 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
11967 * util/grub.d/10_linux.in (find_latest): Moved from here ...
11968 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
11971 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
11973 * util/grub.d/10_freebsd.in: Use an absolute device path for
11974 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
11976 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
11978 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
11979 handling of multiple abstraction modules.
11981 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
11983 Fix a bug resulting in black screen when loading Linux using a
11986 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
11989 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
11990 (grub_vbe_bios_getset_dac_palette_width): New function.
11991 (grub_vbe_bios_get_dac_palette_width)
11992 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
11993 grub_vbe_bios_getset_dac_palette_width()).
11995 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
11996 check for return status.
11997 (grub_vbe_get_video_mode_info): When getting information for a packed
11998 mode (<= 8 bpp), obtain DAC palette width using
11999 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
12000 {red,green,blue}_mark_size.
12002 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
12004 * commands/search.c (options): Fix help output to match actual code.
12006 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
12008 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
12011 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12013 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
12014 on XFS or ReiserFS.
12016 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12018 Support Apple partition map with sector size different from 512 bytes.
12020 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
12021 (apple_partition_map_iterate): Respect 'aheader.blocksize'
12022 and 'apart.partmap_size'.
12024 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12025 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
12029 * commands/i386/cpuid.c (options): New variable.
12030 (grub_cmd_cpuid): Return real error.
12031 (GRUB_MOD_INIT(cpuid)): Declare options.
12033 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
12035 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
12038 2009-07-31 Bean <bean123ch@gmail.com>
12040 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
12042 (grub_fshelp_node): Move inode field to the end.
12043 (grub_xfs_data): Remove inode field.
12044 (grub_xfs_inode_block): Calculate inode size using sblock.
12045 (grub_xfs_inode_offset): Likewise.
12046 (grub_xfs_read_inode): Calculate inode size using sblock.
12047 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
12048 (grub_xfs_iterate_dir): Calculate inode size using sblock.
12049 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
12050 to match inode size.
12051 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
12052 not accessible when data is null.
12053 (grub_xfs_open): Likewise.
12055 2009-07-31 Bean <bean123ch@gmail.com>
12057 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
12058 Don't change pv->disk if it's already set.
12060 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
12061 (grub_raid_register): ... here.
12062 (grub_raid_rescan): Removed.
12064 * include/grub/raid.h (grub_raid_rescan): Removed.
12066 * util/grub-fstest.c: Remove include file <grub/raid.h>.
12067 (fstest): Replace grub_raid_rescan with module fini function followed
12070 * util/grub-probe.c: Add include file <grub/raid.h>.
12071 (probe_raid_level): New function.
12072 (probe): Detect abstraction by walking the disk device, support two
12073 level of abstraction (LVM on RAID) when detecting partition map.
12075 2009-07-31 Pavel Roskin <proski@gnu.org>
12077 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
12078 to grub_zalloc(), it was erroneous.
12079 Reported by Bean <bean123ch@gmail.com>
12081 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
12083 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
12084 embedding zone, not only the first one.
12086 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
12088 * term/gfxterm.c (clear_char): New function.
12089 (grub_virtual_screen_setup): Use clear_char.
12090 (scroll_up): Likewise.
12091 (grub_virtual_screen_cls): Likewise.
12093 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
12095 * util/deviceiter.c (get_acceleraid_disk_name): New static
12097 (grub_util_iterate_devices): Handle Accelraid devices.
12098 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
12100 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
12102 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
12103 separator for the suggested gfxpayload string (';' collides with the
12104 parser and needs escaping).
12106 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
12108 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
12109 Clear direction flag before jumping to OS.
12110 (grub_multiboot2_real_boot): Likewise.
12112 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
12114 * util/i386/pc/grub-install: Fix parsing of --disk-module
12117 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
12119 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
12122 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
12124 * util/grub-mkconfig.in (package_version): New variable.
12125 Use it do display the version.
12127 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
12129 * kern/file.c (grub_file_open): Revert to previous check with
12132 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12134 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
12135 from help line. It's out of sync with code.
12137 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12139 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
12140 entries on failed boot.
12142 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
12144 * kern/file.c (grub_file_open): Fix an error check.
12146 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
12148 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
12149 partition map couldn't be identified.
12151 2009-07-23 Pavel Roskin <proski@gnu.org>
12153 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
12154 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
12155 case of little endian words becomes just an optimization.
12156 Respect const modifier.
12157 (md5_final): Use code that doesn't depend on endianness.
12159 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
12160 to avoid loss of upper bits if align is unsigned and shorter
12163 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
12165 UUID support for UFS
12167 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
12168 (grub_ufs_uuid): New function.
12169 (grub_ufs_fs): add .uuid
12171 2009-07-21 Pavel Roskin <proski@gnu.org>
12173 * kern/dl.c (grub_dl_check_header): Make static.
12175 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
12177 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
12178 add drivemap for Vista. It breaks Windows 7.
12180 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
12182 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
12185 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12189 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
12190 (grub_fstest_SOURCES): Likewise.
12191 (pkglib_MODULES): Add befs.mod.
12192 (befs_mod_SOURCES): New variable.
12193 (befs_mod_CFLAGS): Likewise.
12194 (befs_mod_LDFLAGS): Likewise.
12195 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12196 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12197 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12198 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12199 (grub_setup_SOURCES): Likewise.
12200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12201 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12202 (grub_setup_SOURCES): Likewise.
12203 * fs/befs.c: New file.
12204 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
12205 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
12206 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
12207 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
12208 (B_KEY_INDEX_ALIGN): New declaration.
12209 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
12210 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
12211 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
12212 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
12213 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
12214 (grub_afs_mount) [MODE_BFS]: Likewise.
12215 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
12216 (grub_afs_fs): Use GRUB_AFS_FSNAME
12217 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
12218 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
12219 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
12220 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
12222 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
12224 * util/getroot.c (find_root_device): Add support for MacOSX.
12225 * util/hostdisk.c: Likewise.
12227 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12229 * font/font.c (find_glyph): Check whether a font is present to avoid
12230 segmentation fault.
12232 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
12234 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
12236 2009-07-20 Pavel Roskin <proski@gnu.org>
12238 * configure.ac: Trim excessively wordy excuses.
12240 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12242 Add symlink, mtime and label support to AtheFS.
12244 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
12245 (grub_afs_iterate_dir): Handle symlinks.
12246 (grub_afs_open): Use grub_afs_read_symlink.
12247 (grub_afs_dir): Likewise.
12249 (grub_afs_label): New function.
12250 (grub_afs_fs): Add grub_afs_label.
12251 (grub_afs_read_symlink): New function.
12253 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12255 Fix AtheFS support.
12257 * fs/afs.c: Fix comments style.
12258 (grub_afs_blockrun): Declare as packed.
12259 (grub_afs_datastream): Likewise.
12260 (grub_afs_bnode): Likewise.
12261 (grub_afs_btree): Likewise.
12262 (grub_afs_sblock): Likewise.
12263 Declare `name' as char.
12264 (grub_afs_inode): Declare as packed.
12265 Change void *vnode to grub_uint32_t unused.
12266 (grub_afs_iterate_dir): Check that key_size is positive.
12267 (grub_afs_mount): Don't read superblock twice.
12268 (grub_afs_dir): Don't free node in case of error,
12269 grub_fshelp_find_file already handles this.
12270 (grub_afs_open): Likewise.
12272 2009-07-19 Pavel Roskin <proski@gnu.org>
12274 * Makefile.in: Remove LIBLZO and enable_lzo.
12275 * conf/i386-pc.rmk: Remove lzo support.
12276 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
12277 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
12279 * kern/i386/pc/lzo1x.S: Remove.
12280 * kern/i386/pc/startup.S: Remove lzo support.
12281 * util/i386/pc/grub-mkimage.c: Likewise.
12283 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
12285 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
12286 * fs/xfs.c (grub_xfs_dir): Likewise.
12287 * fs/afs.c (grub_afs_dir): Likewise.
12288 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12289 (grub_iso9660_open): Likewise.
12290 * fs/jfs.c (grub_jfs_open): Likewise.
12291 * fs/ext2.c (grub_ext2_dir): Likewise.
12292 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
12293 * script/sh/lexer.c (grub_script_yylex): Likewise.
12295 2009-07-16 Pavel Roskin <proski@gnu.org>
12297 * configure.ac: Never add "-c" to CFLAGS.
12299 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
12301 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
12302 grub_cv_cc_efiemu should be used.
12304 * configure.ac: Typo fixes.
12306 * kern/mm.c (grub_zalloc): New function.
12307 (grub_debug_zalloc): Likewise.
12308 * include/grub/mm.h: Declare grub_zalloc() and
12309 grub_debug_zalloc().
12310 * util/misc.c (grub_zalloc): New function.
12311 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
12312 instead of grub_malloc(), remove unneeded initializations.
12313 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
12314 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
12315 * commands/parttool.c (grub_cmd_parttool): Likewise.
12316 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
12317 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
12318 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
12319 * disk/usbms.c (grub_usbms_finddevs): Likewise.
12320 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
12321 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
12322 (grub_cmd_efiemu_pnvram): Likewise.
12323 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
12324 * fs/iso9660.c (grub_iso9660_mount): Likewise.
12325 (grub_iso9660_iterate_dir): Likewise.
12326 * fs/jfs.c (grub_jfs_opendir): Likewise.
12327 * fs/ntfs.c (list_file): Likewise.
12328 (grub_ntfs_mount): Likewise.
12329 * kern/disk.c (grub_disk_open): Likewise.
12330 * kern/dl.c (grub_dl_load_core): Likewise.
12331 * kern/elf.c (grub_elf_file): Likewise.
12332 * kern/env.c (grub_env_context_open): Likewise.
12333 (grub_env_set): Likewise.
12334 (grub_env_set_data_slot): Likewise.
12335 * kern/file.c (grub_file_open): Likewise.
12336 * kern/fs.c (grub_fs_blocklist_open): Likewise.
12337 * loader/i386/multiboot.c (grub_module): Likewise.
12338 * loader/xnu.c (grub_xnu_create_key): Likewise.
12339 (grub_xnu_create_value): Likewise.
12340 * normal/main.c (grub_normal_add_menu_entry): Likewise.
12341 (read_config_file): Likewise.
12342 * normal/menu_entry.c (make_screen): Likewise.
12343 * partmap/sun.c (sun_partition_map_iterate): Likewise.
12344 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
12345 * script/sh/script.c (grub_script_parse): Likewise.
12346 * video/bitmap.c (grub_video_bitmap_create): Likewise.
12347 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
12348 * video/readers/png.c (grub_png_output_byte): Likewise.
12349 (grub_video_reader_png): Likewise.
12351 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12353 Enable all targets that can be built by default
12355 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
12356 grub-mkfont and grub-fstest if they can be built
12358 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12360 Fix hang and segmentation fault in grub-emu-usb
12362 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
12363 * util/usb.c (grub_libusb_devices): likewise
12364 (grub_libusb_init): rename to ...
12365 (GRUB_MOD_INIT (libusb)):...this
12366 (grub_libusb_fini): rename to ..
12367 (GRUB_MOD_FINI (libusb)):...this
12368 * disk/usbms.c (grub_usbms_transfer): fix retry logic
12369 * include/grub/disk.h (grub_raid_init): removed, it's useless
12370 (grub_raid_fini): likewise
12371 (grub_lvm_init): likewise
12372 (grub_lvm_fini): likewise
12373 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
12376 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12380 * Makefile.in (LIBUSB): new macro
12381 * genmk.rb (Utility/print_tail): new method
12382 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
12383 (top level): call util.print_tail at the end.
12385 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12387 Make FreeBSD accept zpool.cache
12389 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
12390 type is /boot/zfs/zpool.cache
12392 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12396 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
12397 correct wrong typedef
12398 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
12400 2009-07-15 Pavel Roskin <proski@gnu.org>
12402 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
12403 * kern/disk.c (struct grub_disk_cache): Likewise.
12405 * commands/probe.c (options): Typo fix.
12407 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
12408 Increase to 0x5a to accommodate FAT32. Adjust other offsets
12410 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
12412 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
12413 the end of "Error" to make the message more readable.
12415 * boot/i386/pc/boot.S (kernel_segment): Remove.
12416 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
12419 * boot/i386/pc/boot.S (boot_version): Remove.
12420 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
12423 * include/grub/i386/pc/boot.h: Sort all offsets.
12424 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
12425 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
12426 * boot/i386/pc/boot.S: Assert location of every offset listed in
12427 include/grub/i386/pc/boot.h.
12429 2009-07-13 Pavel Roskin <proski@gnu.org>
12431 * include/grub/i386/coreboot/machine.h: Rename
12432 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
12433 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
12434 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
12436 * kern/dl.c: Force native word size to suppress warnings when
12437 compiling grub-emu.
12439 * kern/device.c (grub_device_iterate): Change struct part_ent to
12440 hold the name, not a pointer to it. Use one grub_malloc() per
12441 partition, not two. Free partition_name if grub_malloc() fails.
12442 Set ents to NULL only before grub_partition_iterate() is called.
12444 2009-07-11 Bean <bean123ch@gmail.com>
12446 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
12449 2009-07-10 Bean <bean123ch@gmail.com>
12450 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
12452 * kern/ieee1275/openfw.c (grub_children_iterate)
12453 (grub_devalias_iterate): Fix size evaluation for property or path
12454 strings, which was broken since r2132.
12456 2009-07-07 Pavel Roskin <proski@gnu.org>
12458 * commands/search.c (search_file): Merge into ...
12459 (search_fs): ... this. Accept search type as argument.
12460 (grub_cmd_search): Pass search type to search_fs().
12462 * include/grub/util/console.h: New file.
12463 * util/console.c: Use it instead of grub/machine/console.h.
12464 * util/grub-emu.c: Likewise.
12466 * lib/arg.c (find_long_option): Remove.
12467 (find_long): Add `len' argument, make `s' const char *.
12468 (grub_arg_parse): Parse long options in place, not in a
12471 2009-07-06 Pavel Roskin <proski@gnu.org>
12473 * commands/search.c (search_fs): Fix potential NULL pointer
12476 * commands/search.c (search_fs): Replace QUID macro with quid_fn
12479 2009-07-06 Daniel Mierswa <impulze@impulze.org>
12481 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
12484 2009-07-05 Pavel Roskin <proski@gnu.org>
12486 * include/grub/i386/linux.h (struct linux_kernel_params):
12487 Restore padding3, it's still needed.
12489 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
12491 * util/osdetect.lua: Likewise.
12493 2009-07-05 Bean <bean123ch@gmail.com>
12495 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
12497 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
12498 (grub_lua_getenv): Likewise.
12499 (grub_lua_setenv): Likewise.
12500 (save_errno): New function.
12501 (push_result): Likewise.
12502 (grub_lua_enum_device): Likewise.
12503 (grub_lua_enum_file): Likewise.
12504 (grub_lua_file_open): Likewise.
12505 (grub_lua_file_close): Likewise.
12506 (grub_lua_file_seek): Likewise.
12507 (grub_lua_file_read): Likewise.
12508 (grub_lua_file_getline): Likewise.
12509 (grub_lua_file_getsize): Likewise.
12510 (grub_lua_file_getpos): Likewise.
12511 (grub_lua_file_eof): Likewise.
12512 (grub_lua_file_exist): Likewise.
12513 (grub_lua_add_menu): Likewise.
12515 * script/lua/grub_lua.h (isupper): New inline function.
12516 (islower): Likewise.
12517 (ispunct): Likewise.
12518 (isxdigit): Likewise.
12519 (strcspn): Change to normal function.
12520 (strpbkr): New function declaration.
12521 (memchr): Likewise.
12523 * script/lua/grub_main.c (scan_str): New function.
12524 (strcspn): Likewise.
12525 (strpbrk): Likewise.
12526 (memchr): Likewise.
12528 * script/lua/linit.c (lualibs): Enable the string library.
12530 * util/osdetect.lua: New file.
12532 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
12534 * include/grub/i386/linux.h (struct linux_kernel_params): Add
12535 `capabilities' member.
12537 2009-07-02 Pavel Roskin <proski@gnu.org>
12539 * genparttoollist.sh: Add missing newline at the end.
12541 2009-07-01 Pavel Roskin <proski@gnu.org>
12543 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
12545 * util/hostdisk.c (open_device): Remove `const' from
12546 `sysctl_size', as sysctlbyname() can change it (in this case it
12547 doesn't actually happen).
12549 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
12550 using signed long int constants.
12552 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
12553 constant to avoid a warning on FreeBSD.
12555 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
12558 * Makefile.in: Install include/grub/machine symlink.
12560 * Makefile.in: When installing symlinks, use "cp -fR", which
12561 works on FreeBSD and MacOSX.
12562 From Yves Blusseau <cl7m42e02@sneakemail.com>
12564 * kern/dl.c (grub_dl_resolve_symbol): Make static.
12565 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
12567 * util/misc.c: Move grub_reboot() and grub_halt() ...
12568 * util/grub-emu.c: ... here. Make main_env static.
12569 * include/grub/util/misc.h: Remove main_env.
12571 * kern/mm.c: Use correct format to print size_t.
12573 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
12574 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
12575 * kern/powerpc/dl.c: Likewise.
12576 * kern/sparc64/dl.c: Likewise.
12577 * kern/x86_64/dl.c: Likewise.
12579 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12581 Fix grub-emu build on sparc64-ieee1275.
12583 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
12584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
12586 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12588 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
12589 (grub_reboot, grub_halt): New functions.
12591 * util/i386/pc/misc.c: Delete. Update all users.
12592 * util/sparc64/ieee1275/misc.c: Likewise.
12593 * util/powerpc/ieee1275/misc.c: Likewise.
12595 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12597 * conf/i386.rmk (setjmp_mod_SOURCES)
12598 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
12599 * conf/common.rmk (setjmp_mod_SOURCES)
12600 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
12601 to use $(target_cpu).
12602 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
12603 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
12604 * conf/powerpc-ieee1275.rmk: Likewise.
12605 * conf/sparc64-ieee1275.rmk: Likewise.
12607 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
12608 $(target_cpu) for kern/$(target_cpu)/dl.c.
12609 * conf/i386-efi.rmk: Likewise.
12610 * conf/i386-ieee1275.rmk: Likewise.
12611 * conf/x86_64-efi.rmk: Likewise.
12612 * conf/i386-coreboot.rmk: Likewise.
12613 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
12614 $(target_cpu) for kern/$(target_cpu)/dl.c and for
12615 kern/$(target_cpu)/cache.S.
12616 * conf/sparc64-ieee1275.rmk: Likewise.
12618 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12620 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
12621 type to `grub_uint8_t', and adjust `padding9' accordingly.
12623 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
12625 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
12627 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
12628 assembly in final jump, using register constraints.
12630 (grub_linux_boot): For text mode, initialize `have_vga' using
12631 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
12633 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
12634 right before the final jump.
12636 Set `video_mode' to 0x3.
12638 Document initialization of `video_page', `video_mode' and
12641 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
12643 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
12644 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
12645 and set GRUB_LINUX_FLAG_QUIET appropriately.
12647 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
12649 Fix build on Debian / sparc.
12651 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
12653 2009-06-28 Pavel Roskin <proski@gnu.org>
12655 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
12658 * util/grub.d/10_linux.in: Match SUSE style initrd names.
12660 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
12662 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
12665 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
12669 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
12670 file can't be opened. grub_file_open() is already supposed to set
12671 grub_errno / grub_errmsg appropriately.
12672 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12674 2009-06-27 Pavel Roskin <proski@gnu.org>
12675 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
12677 * include/grub/dl.h: Include grub/elf.h.
12678 (struct grub_dl): Add symtab field.
12679 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
12680 GRUB_MODULES_MACHINE_READONLY.
12681 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
12682 of the header for read-only modules.
12683 (grub_dl_unload): Free mod->symtab for read-only modules.
12684 * kern/i386/dl.c: Use mod->symtab.
12685 * kern/powerpc/dl.c: Likewise.
12686 * kern/sparc64/dl.c: Likewise.
12687 * kern/x86_64/dl.c: Likewise.
12689 * conf/i386-qemu.rmk: New file.
12690 * kern/i386/qemu/startup.S: Likewise.
12691 * kern/i386/qemu/mmap.c: Likewise.
12692 * boot/i386/qemu/boot.S: Likewise.
12693 * include/grub/i386/qemu/time.h: Likewise.
12694 * include/grub/i386/qemu/serial.h: Likewise.
12695 * include/grub/i386/qemu/kernel.h: Likewise.
12696 * include/grub/i386/qemu/console.h: Likewise.
12697 * include/grub/i386/qemu/boot.h: Likewise.
12698 * include/grub/i386/qemu/init.h: Likewise.
12699 * include/grub/i386/qemu/machine.h: Likewise.
12700 * include/grub/i386/qemu/loader.h: Likewise.
12701 * include/grub/i386/qemu/memory.h: Likewise.
12703 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
12704 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
12705 [qemu] (pkglib_IMAGES): Add `boot.img'.
12706 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
12707 [qemu] (boot_img_FORMAT): New variables.
12708 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
12709 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
12710 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
12711 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12712 [qemu] (kernel_img_FORMAT): New variables.
12714 * configure.ac: Recognise `i386-qemu'.
12716 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
12717 (for no compression).
12718 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
12719 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
12720 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
12721 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
12724 2009-06-27 Pavel Roskin <proski@gnu.org>
12726 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
12728 * efiemu/prepare32.c: Likewise.
12729 * efiemu/prepare64.c: Likewise.
12731 2009-06-26 Pavel Roskin <proski@gnu.org>
12733 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
12734 * include/grub/elf.h: Define symbols without "32" or "64" based
12735 on GRUB_TARGET_WORDSIZE.
12736 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
12737 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
12739 * efiemu/loadcore64.c: Likewise.
12740 * loader/i386/bsd32.c: Likewise.
12741 * loader/i386/bsd64.c: Likewise.
12742 * kern/dl.c: Remove own ELF definitions.
12743 * util/i386/efi/grub-mkimage.c: Likewise.
12745 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
12747 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
12748 segment 0x0 unconditionally, because the reference generated by
12749 GAS is an absolute address.
12751 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
12753 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
12754 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
12756 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
12758 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
12759 indexes. Check for -f explicitly.
12760 (search_file): Improve error message.
12761 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
12763 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
12765 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
12766 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
12768 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
12770 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
12771 * conf/i386-ieee1275.rmk: Likewise.
12772 * conf/i386-coreboot.rmk: Likewise.
12774 * kern/i386/pc/startup.S (grub_stop): Remove function.
12775 * kern/i386/ieee1275/startup.S: Likewise.
12776 * kern/i386/coreboot/startup.S: Likewise.
12777 * kern/i386/misc.S (grub_stop): New function.
12779 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
12781 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
12782 * kern/i386/realmode.S (real_to_prot): ... to here.
12784 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
12786 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
12788 (kernel_elf_SOURCES): Rename to ...
12789 (kernel_img_SOURCES): ... this.
12790 (kernel_elf_HEADERS): Rename to ...
12791 (kernel_img_HEADERS): ... this. Update all users.
12792 (kernel_elf_ASFLAGS): Rename to ...
12793 (kernel_img_ASFLAGS): ... this.
12794 (kernel_elf_CFLAGS): Rename to ...
12795 (kernel_img_CFLAGS): ... this.
12796 (kernel_elf_LDFLAGS): Rename to ...
12797 (kernel_img_LDFLAGS): ... this.
12798 * conf/i386-coreboot.rmk: Likewise.
12799 * conf/powerpc-ieee1275.rmk: Likewise.
12801 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
12804 2009-06-21 Pavel Roskin <proski@gnu.org>
12806 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
12807 to match nested functions.
12808 * loader/sparc64/ieee1275/linux.c: Likewise.
12810 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
12812 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
12814 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
12815 all i386 platforms.
12817 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
12819 Fix asm file handling on ELF, and remove workarounds.
12821 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
12822 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
12823 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
12824 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
12826 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
12828 Load BSD ELF modules
12830 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
12831 and loader/i386/bsd64.c
12832 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
12833 (FREEBSD_MODTYPE_ELF_MODULE): New definition
12834 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
12835 (grub_freebsd_load_elfmodule32): New declaration
12836 (grub_freebsd_load_elfmoduleobj64): Likewise
12837 (grub_freebsd_load_elf_meta32): Likewise
12838 (grub_freebsd_load_elf_meta64): Likewise
12839 (grub_freebsd_add_meta): Likewise
12840 (grub_freebsd_add_meta_module): Likewise
12841 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
12842 (grub_freebsd_add_meta_module): Likewise and move module-specific
12843 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
12844 (grub_cmd_freebsd): Add elf-kernel specific parts
12845 based on grub_freebsd_add_meta_module
12846 (grub_cmd_freebsd_module): Add type parsing moved from
12847 grub_freebsd_add_meta_module
12848 (grub_cmd_freebsd_module_elf): New function
12849 (cmd_freebsd_module_elf): New variable
12850 (GRUB_MOD_INIT): Register freebsd_module_elf
12851 * loader/i386/bsd32.c: New file
12852 * loader/i386/bsd64.c: Likewise
12853 * loader/i386/bsdXX.c: Likewise
12854 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
12855 (grub_elf64_load): Likewise
12856 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
12858 (grub_elf64_load_hook_t): Likewise
12860 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
12862 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
12864 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
12865 don't write a menu entry for recovery mode.
12867 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
12869 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
12870 after it's no longer needed.
12872 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
12874 * include/grub/i386/loader.h (grub_linux_prot_size)
12875 (grub_linux_tmp_addr, grub_linux_real_addr)
12876 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
12877 GRUB_MACHINE_PCBIOS.
12878 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
12879 common grub_util_info() call to ...
12880 (generate_image): ... here.
12881 Fix use of uninitialized memory, comparison of signed with
12882 unsigned integers and memory leak.
12883 Remove bogus module address message.
12885 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12887 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
12889 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
12891 2009-06-19 Pavel Roskin <proski@gnu.org>
12893 * configure.ac: Remove stray AC_MSG_CHECKING.
12895 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
12897 * disk/scsi.c (grub_scsi_open): use continue instead of big if
12899 2009-06-18 Pavel Roskin <proski@gnu.org>
12901 * conf/common.rmk: Add fs_file.mod.
12902 * disk/fs_file.c: New file.
12903 * include/grub/disk.h (enum grub_disk_dev_id): Add
12904 GRUB_DISK_DEVICE_FILE_ID.
12906 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
12908 Fix build with Apple's toolchain. Part 2
12910 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
12913 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
12915 Fix build with Apple's toolchain. Part 1
12917 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
12919 * configure.ac: remove a leftover AC_MSG_RESULT
12920 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
12923 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
12927 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
12928 (decomp_block): initialize ch
12929 use grub_memcpy instead of memcpy
12931 2009-06-17 Pavel Roskin <proski@gnu.org>
12933 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
12934 version, use declarations needed to use vga_text as the startup
12937 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
12938 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
12940 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
12941 and grub_at_keyboard_fini(), it's done on module load and
12944 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
12946 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
12947 file can't be found.
12948 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12950 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
12952 Fix newline handling
12954 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
12955 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
12956 (grub_script_yylex): don't segfault on unterminated script
12957 newline terminates command and variable
12959 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
12961 avoid double grub_adjust_range call. Bug reported by David Simner
12963 * kern/disk.c (grub_disk_write): change to raw disk access before
12966 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
12968 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
12969 spaces, for the benefit of help2man.
12970 * util/i386/efi/grub-mkimage.c (usage): Likewise.
12972 2009-06-16 Pavel Roskin <proski@gnu.org>
12974 * kern/i386/halt.c: Include grub/machine/init.h.
12975 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
12977 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
12979 * util/grub.d/30_os-prober.in: Use ${root} in the generated
12980 drivemap menuentry.
12982 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
12984 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
12987 2009-06-16 Pavel Roskin <proski@gnu.org>
12989 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
12990 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
12991 save %dx, we only need %dl and we never change it.
12992 * boot/i386/pc/cdboot.S: Don't set the root drive.
12993 * boot/i386/pc/pxeboot.S: Likewise.
12994 * include/grub/i386/pc/boot.h: Remove
12995 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
12996 GRUB_BOOT_MACHINE_DRIVE_CHECK.
12997 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
12998 * kern/i386/pc/init.c (make_install_device): Remove references
12999 to grub_root_drive.
13000 * kern/i386/pc/startup.S: Likewise.
13001 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
13003 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
13007 * commands/xnu_uuid.c: new file
13008 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
13009 (xnu_uuid_mod_SOURCES): new variable
13010 (xnu_uuid_mod_CFLAGS): likewise
13011 (xnu_uuid_mod_LDFLAGS): likewise
13012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
13013 * conf/i386-ieee1275.rmk: likewise
13014 * conf/i386-pc.rmk: likewise
13015 * conf/powerpc-ieee1275.rmk: likewise
13016 * conf/sparc64-ieee1275.rmk: likewise
13017 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
13019 2009-06-16 Pavel Roskin <proski@gnu.org>
13021 * configure.ac: Avoid '==' in test command, it's not portable.
13023 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
13027 * commands/probe.c: new file
13028 * conf/common.rmk (pkglib_MODULES): add probe.mod
13029 (probe_mod_SOURCES): new variable
13030 (probe_mod_CFLAGS): likewise
13031 (probe_mod_LDFLAGS): likewise
13032 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
13033 * conf/i386-ieee1275.rmk: likewise
13034 * conf/i386-pc.rmk: likewise
13035 * conf/powerpc-ieee1275.rmk: likewise
13036 * conf/sparc64-ieee1275.rmk: likewise
13038 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
13040 Fix handling of string like \"hello\" and "a
13043 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
13044 (grub_script_yylex): fix parsing of quoting, escaping and newline
13046 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
13048 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
13051 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
13053 * util/grub-mkconfig.in: Fix parsing of --output option.
13055 2009-06-12 Pavel Roskin <proski@gnu.org>
13057 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
13058 genmk.rb don't need to be generated or installed.
13060 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13062 * commands/i386/pc/drivemap_int13h.S: add more comments
13064 2009-06-11 Pavel Roskin <proski@gnu.org>
13066 * Makefile.in (uninstall): Uninstall manuals.
13068 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
13069 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
13070 and update-grub_lib in two places.
13071 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
13073 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
13074 a compiler warning.
13076 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
13077 `entry_lo' to fix variable shadowing.
13079 2009-06-11 Christian Franke <franke@computer.org>
13081 * kern/misc.c (__enable_execute_stack): Add missing return type
13082 to prevent gcc warning.
13084 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
13086 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
13088 2009-06-11 Pavel Roskin <proski@gnu.org>
13090 * Makefile.in: Don't rely on any scripts being executable.
13091 Always use $(SHELL) to run shell scripts.
13093 * configure.ac: Always define ___main if using -nostdlib. This
13094 fixes tests on Cygwin.
13096 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
13100 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
13101 is in bytes and not in blocks
13103 2009-06-11 Pavel Roskin <proski@gnu.org>
13105 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
13108 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
13110 * util/grub.d/30_os-prober.in: Fix a comment. Source
13111 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
13112 to set the root device. Place drivemap command in the generated
13115 2009-06-11 Pavel Roskin <proski@gnu.org>
13117 * configure.ac: Remove host_m32. Issues with 64-bit utilities
13118 have long been resolved.
13120 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
13122 * util/grub.d/10_linux.in: Capitalise "Linux".
13124 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
13126 2009-06-11 Pavel Roskin <proski@gnu.org>
13128 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
13129 fix a gcc warning and ensure that the function won't ever exit.
13131 * kern/i386/ieee1275/init.c: Add missing prototype for
13132 grub_stop_floppy().
13134 * loader/ieee1275/multiboot2.c [__i386__]: Include
13135 grub/cpu/multiboot.h.
13137 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
13138 casts to short - they are not portable and cause warnings. Fix
13139 use of uninitialized values in input_buf. Use ARRAY_SIZE.
13141 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
13145 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
13147 (grub_get_root_biosnumber_saved): new variable
13148 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
13149 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
13150 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
13151 %dx after the call if necessary
13152 * conf/common.rmk (pkglib_MODULES): remove boot.mod
13153 (boot_mod_SOURCES): remove
13154 (boot_mod_CFLAGS): remove
13155 (boot_mod_LDFLAGS): remove
13156 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
13157 (boot_mod_SOURCES): new variable
13158 (boot_mod_CFLAGS): likewise
13159 (boot_mod_LDFLAGS): likewise
13160 * conf/i386-efi.rmk: likewise
13161 * conf/i386-ieee1275.rmk: likewise
13162 * conf/i386-pc.rmk: likewise
13163 * conf/powerpc-ieee1275.rmk: likewise
13164 * conf/sparc64-ieee1275.rmk: likewise
13165 * conf/x86_64-efi.rmk: likewise
13166 * include/grub/i386/pc/biosnum.h: new file
13167 * lib/i386/pc/biosnum.c: likewise
13168 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
13169 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
13170 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
13172 2009-06-10 Pavel Roskin <proski@gnu.org>
13174 * io/gzio.c (test_header): Don't reuse one buffer for all data.
13175 Use separate variables. Read only the file size at the end, but
13176 not the checksum that we don't use.
13178 * kern/file.c (grub_file_read): Use void pointer for the buffer.
13179 Adjust all callers.
13181 * kern/ieee1275/openfw.c: Remove libc includes.
13182 * kern/ieee1275/cmain.c: Likewise.
13183 * include/grub/ieee1275/ieee1275.h: Likewise.
13185 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
13188 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
13190 * Makefile.in: Remove all trailing whitespace.
13191 * conf/i386-pc.rmk: Likewise.
13192 * conf/powerpc-ieee1275.rmk: Likewise.
13193 * conf/sparc64-ieee1275.rmk: Likewise.
13194 * docs/grub.texi: Likewise.
13195 * docs/texinfo.tex: Likewise.
13196 * disk/fs_uuid.c: Likewise.
13197 * disk/lvm.c: Likewise.
13198 * disk/scsi.c: Likewise.
13199 * disk/ata.c: Likewise.
13200 * disk/ieee1275/ofdisk.c: Likewise.
13201 * disk/i386/pc/biosdisk.c: Likewise.
13202 * disk/host.c: Likewise.
13203 * disk/raid.c: Likewise.
13204 * disk/efi/efidisk.c: Likewise.
13205 * disk/usbms.c: Likewise.
13206 * disk/memdisk.c: Likewise.
13207 * disk/loopback.c: Likewise.
13208 * kern/powerpc/dl.c: Likewise.
13209 * kern/device.c: Likewise.
13210 * kern/dl.c: Likewise.
13211 * kern/sparc64/dl.c: Likewise.
13212 * kern/ieee1275/ieee1275.c: Likewise.
13213 * kern/term.c: Likewise.
13214 * kern/fs.c: Likewise.
13215 * kern/i386/dl.c: Likewise.
13216 * kern/i386/pc/startup.S: Likewise.
13217 * kern/i386/pc/init.c: Likewise.
13218 * kern/i386/pc/mmap.c: Likewise.
13219 * kern/i386/pc/lzo1x.S: Likewise.
13220 * kern/i386/ieee1275/init.c: Likewise.
13221 * kern/i386/realmode.S: Likewise.
13222 * kern/i386/tsc.c: Likewise.
13223 * kern/partition.c: Likewise.
13224 * kern/corecmd.c: Likewise.
13225 * kern/file.c: Likewise.
13226 * kern/efi/efi.c: Likewise.
13227 * kern/efi/init.c: Likewise.
13228 * kern/efi/mm.c: Likewise.
13229 * kern/main.c: Likewise.
13230 * kern/err.c: Likewise.
13231 * kern/env.c: Likewise.
13232 * kern/disk.c: Likewise.
13233 * kern/generic/millisleep.c: Likewise.
13234 * kern/generic/rtc_get_time_ms.c: Likewise.
13235 * kern/misc.c: Likewise.
13236 * kern/parser.c: Likewise.
13237 * genmk.rb: Likewise.
13238 * configure.ac: Likewise.
13239 * boot/i386/pc/diskboot.S: Likewise.
13240 * boot/i386/pc/pxeboot.S: Likewise.
13241 * boot/i386/pc/boot.S: Likewise.
13242 * boot/i386/pc/lnxboot.S: Likewise.
13243 * boot/i386/pc/cdboot.S: Likewise.
13244 * parttool/pcpart.c: Likewise.
13245 * video/readers/tga.c: Likewise.
13246 * video/video.c: Likewise.
13247 * video/bitmap.c: Likewise.
13248 * lib/envblk.c: Likewise.
13249 * lib/i386/setjmp.S: Likewise.
13250 * fs/xfs.c: Likewise.
13251 * fs/afs.c: Likewise.
13252 * fs/fat.c: Likewise.
13253 * fs/ntfs.c: Likewise.
13254 * fs/udf.c: Likewise.
13255 * fs/affs.c: Likewise.
13256 * fs/iso9660.c: Likewise.
13257 * fs/hfs.c: Likewise.
13258 * fs/fshelp.c: Likewise.
13259 * fs/ext2.c: Likewise.
13260 * fs/jfs.c: Likewise.
13261 * fs/reiserfs.c: Likewise.
13262 * fs/hfsplus.c: Likewise.
13263 * fs/minix.c: Likewise.
13264 * fs/cpio.c: Likewise.
13265 * fs/sfs.c: Likewise.
13266 * fs/ufs.c: Likewise.
13267 * efiemu/prepare.c: Likewise.
13268 * efiemu/loadcore_common.c: Likewise.
13269 * efiemu/runtime/efiemu.sh: Likewise.
13270 * efiemu/runtime/efiemu.S: Likewise.
13271 * efiemu/runtime/efiemu.c: Likewise.
13272 * efiemu/pnvram.c: Likewise.
13273 * efiemu/main.c: Likewise.
13274 * efiemu/i386/pc/cfgtables.c: Likewise.
13275 * efiemu/i386/loadcore64.c: Likewise.
13276 * efiemu/i386/loadcore32.c: Likewise.
13277 * efiemu/loadcore.c: Likewise.
13278 * efiemu/symbols.c: Likewise.
13279 * efiemu/mm.c: Likewise.
13280 * include/grub/autoefi.h: Likewise.
13281 * include/grub/datetime.h: Likewise.
13282 * include/grub/term.h: Likewise.
13283 * include/grub/hfs.h: Likewise.
13284 * include/grub/lvm.h: Likewise.
13285 * include/grub/i386/tsc.h: Likewise.
13286 * include/grub/i386/linux.h: Likewise.
13287 * include/grub/i386/xnu.h: Likewise.
13288 * include/grub/i386/efiemu.h: Likewise.
13289 * include/grub/i386/pc/biosdisk.h: Likewise.
13290 * include/grub/i386/pc/memory.h: Likewise.
13291 * include/grub/i386/pc/vbe.h: Likewise.
13292 * include/grub/parttool.h: Likewise.
13293 * include/grub/video.h: Likewise.
13294 * include/grub/memory.h: Likewise.
13295 * include/grub/fs.h: Likewise.
13296 * include/grub/partition.h: Likewise.
13297 * include/grub/xnu.h: Likewise.
13298 * include/grub/efi/api.h: Likewise.
13299 * include/grub/efi/pe32.h: Likewise.
13300 * include/grub/efi/memory.h: Likewise.
13301 * include/grub/multiboot.h: Likewise.
13302 * include/grub/usbdesc.h: Likewise.
13303 * include/grub/multiboot2.h: Likewise.
13304 * include/grub/acpi.h: Likewise.
13305 * include/grub/efiemu/efiemu.h: Likewise.
13306 * include/grub/disk.h: Likewise.
13307 * include/grub/ieee1275/ieee1275.h: Likewise.
13308 * include/grub/net.h: Likewise.
13309 * include/grub/machoload.h: Likewise.
13310 * include/grub/macho.h: Likewise.
13311 * include/multiboot.h: Likewise.
13312 * genmoddep.awk: Likewise.
13313 * normal/main.c: Likewise.
13314 * normal/menu_entry.c: Likewise.
13315 * normal/menu_viewer.c: Likewise.
13316 * normal/completion.c: Likewise.
13317 * normal/cmdline.c: Likewise.
13318 * normal/misc.c: Likewise.
13319 * normal/datetime.c: Likewise.
13320 * bus/usb/usbtrans.c: Likewise.
13321 * bus/usb/ohci.c: Likewise.
13322 * bus/usb/uhci.c: Likewise.
13323 * bus/usb/usb.c: Likewise.
13324 * mmap/efi/mmap.c: Likewise.
13325 * mmap/i386/pc/mmap_helper.S: Likewise.
13326 * mmap/i386/pc/mmap.c: Likewise.
13327 * mmap/i386/mmap.c: Likewise.
13328 * mmap/i386/uppermem.c: Likewise.
13329 * mmap/mmap.c: Likewise.
13330 * commands/acpi.c: Likewise.
13331 * commands/echo.c: Likewise.
13332 * commands/blocklist.c: Likewise.
13333 * commands/loadenv.c: Likewise.
13334 * commands/usbtest.c: Likewise.
13335 * commands/boot.c: Likewise.
13336 * commands/parttool.c: Likewise.
13337 * commands/search.c: Likewise.
13338 * commands/cat.c: Likewise.
13339 * commands/i386/pc/play.c: Likewise.
13340 * commands/i386/pc/drivemap.c: Likewise.
13341 * commands/i386/pc/vbeinfo.c: Likewise.
13342 * commands/i386/pc/acpi.c: Likewise.
13343 * commands/i386/pc/vbetest.c: Likewise.
13344 * commands/ls.c: Likewise.
13345 * commands/cmp.c: Likewise.
13346 * commands/test.c: Likewise.
13347 * commands/efi/acpi.c: Likewise.
13348 * commands/gptsync.c: Likewise.
13349 * commands/help.c: Likewise.
13350 * partmap/amiga.c: Likewise.
13351 * partmap/apple.c: Likewise.
13352 * partmap/acorn.c: Likewise.
13353 * partmap/pc.c: Likewise.
13354 * partmap/sun.c: Likewise.
13355 * partmap/gpt.c: Likewise.
13356 * script/sh/lexer.c: Likewise.
13357 * script/sh/function.c: Likewise.
13358 * font/font.c: Likewise.
13359 * font/font_cmd.c: Likewise.
13360 * loader/powerpc/ieee1275/linux.c: Likewise.
13361 * loader/efi/chainloader.c: Likewise.
13362 * loader/multiboot_loader.c: Likewise.
13363 * loader/macho.c: Likewise.
13364 * loader/i386/multiboot.c: Likewise.
13365 * loader/i386/linux.c: Likewise.
13366 * loader/i386/pc/linux.c: Likewise.
13367 * loader/i386/pc/multiboot2.c: Likewise.
13368 * loader/i386/pc/chainloader.c: Likewise.
13369 * loader/i386/pc/xnu.c: Likewise.
13370 * loader/i386/bsd_trampoline.S: Likewise.
13371 * loader/i386/efi/linux.c: Likewise.
13372 * loader/i386/multiboot_elfxx.c: Likewise.
13373 * loader/i386/bsd_helper.S: Likewise.
13374 * loader/i386/bsd.c: Likewise.
13375 * loader/i386/linux_trampoline.S: Likewise.
13376 * loader/i386/xnu_helper.S: Likewise.
13377 * loader/i386/xnu.c: Likewise.
13378 * loader/i386/bsd_pagetable.c: Likewise.
13379 * loader/i386/multiboot_helper.S: Likewise.
13380 * loader/xnu.c: Likewise.
13381 * loader/xnu_resume.c: Likewise.
13382 * io/gzio.c: Likewise.
13383 * term/efi/console.c: Likewise.
13384 * term/terminfo.c: Likewise.
13385 * term/ieee1275/ofconsole.c: Likewise.
13386 * term/i386/pc/serial.c: Likewise.
13387 * term/i386/pc/vesafb.c: Likewise.
13388 * term/i386/pc/vga.c: Likewise.
13389 * term/usb_keyboard.c: Likewise.
13390 * term/gfxterm.c: Likewise.
13391 * aclocal.m4: Likewise.
13392 * util/lvm.c: Likewise.
13393 * util/grub.d/30_os-prober.in: Likewise.
13394 * util/grub.d/10_hurd.in: Likewise.
13395 * util/console.c: Likewise.
13396 * util/grub-macho2img.c: Likewise.
13397 * util/grub-probe.c: Likewise.
13398 * util/hostfs.c: Likewise.
13399 * util/i386/pc/grub-mkimage.c: Likewise.
13400 * util/i386/pc/grub-setup.c: Likewise.
13401 * util/i386/efi/grub-mkimage.c: Likewise.
13402 * util/grub-mkconfig.in: Likewise.
13403 * util/raid.c: Likewise.
13404 * util/resolve.c: Likewise.
13405 * util/grub-mkdevicemap.c: Likewise.
13406 * util/grub-emu.c: Likewise.
13407 * util/getroot.c: Likewise.
13408 * util/hostdisk.c: Likewise.
13409 * util/usb.c: Likewise.
13410 * util/grub-editenv.c: Likewise.
13411 * util/misc.c: Likewise.
13413 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
13415 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
13416 `genparttoollist.sh'.
13417 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
13418 Add `*.sh' to the list find searches for and change `mdate.sh'
13421 2009-06-10 Pavel Roskin <proski@gnu.org>
13423 * include/grub/multiboot2.h: Provide compatibility defines for
13425 * include/multiboot2.h: Include stdint.h only if needed, using
13427 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
13429 * loader/ieee1275/multiboot2.c: Likewise.
13430 * loader/multiboot2.c: Likewise.
13431 * loader/multiboot_loader.c: Likewise.
13433 * configure.ac: Use -nostdlib when probing for the target. It
13434 should not be required to have libc for the target.
13436 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
13437 they fail without libc headers for the target.
13438 * include/grub/powerpc/libgcc.h: Use weak attribute for all
13440 * include/grub/sparc64/libgcc.h: Likewise. Don't use
13441 preprocessor conditionals.
13443 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
13444 build system doesn't need to be aware of the tar.c internals.
13446 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
13448 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
13450 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
13452 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
13453 disk limit to 26 for IDE, Virtio, Xen and SCSI.
13455 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
13457 * util/i386/pc/grub-install.in: Change the error message if UUIDs
13458 aren't available if ata.mod gets used.
13460 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
13462 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
13463 initialising controller.
13464 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
13466 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13468 * util/i386/pc/grub-install.in: Add a parameter --disk-module
13469 to choose between ata and biosdisk module on i386-pc.
13471 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
13473 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
13474 Subclass and Programming Interface fields in terms of the 3 byte
13475 Class Code register.
13476 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
13478 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
13479 interface is OHCI. Add grub_dprintf for symmetry with
13481 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
13482 interface is UHCI. Add interf variable for programming
13483 interface. Print interface with class/subclass.
13485 * bus/usb/ohci.c: Set interf with correct field.
13487 * bus/usb/uhci.c: Remove unneeded doubled lines.
13488 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
13489 Remove whitespace inside comment.
13491 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
13493 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
13494 as fallback an equivalent option without depth.
13496 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
13498 Not fail if unable to retrieve C/H/S on LBA disks
13500 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
13501 if unable to retrieve C/H/S on LBA disks
13503 2009-06-08 Pavel Roskin <proski@gnu.org>
13505 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
13508 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13510 * Makefile.in (uninstall): Remove all $lib_DATA files.
13512 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
13514 Bugfix: install on partitionless device
13516 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
13519 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13521 * Makefile.in (uninstall): Remove all $include_DATA files.
13523 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13525 * commands/true.c: New file. Implement the true and false commands.
13526 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
13527 (true_mod_SOURCES): New variable.
13528 (true_mod_CFLAGS): Likewise.
13529 (true_mod_LDFLAGS): Likewise.
13531 2009-06-05 Colin D Bennett <colin@gibibit.com>
13533 Optimized font character lookup using binary search instead of linear
13534 search. Fonts now are required to have the character index ordered by
13537 * font/font.c (load_font_index): Verify that fonts have ordered
13539 (find_glyph): Use binary search instead of linear search to find a
13540 character in a font.
13542 2009-06-05 Michael Scherer <misc@mandriva.org>
13544 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
13545 uses case sensitive btree.
13546 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
13547 only for case insensitive filesystems.
13549 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
13551 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
13552 * conf/common.rmk (search_mod_CFLAGS): likewise
13554 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13556 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
13557 compensate a compiler bug
13559 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13561 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
13564 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13566 Definitions for creating asm symbols with Apple's CC
13568 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
13569 [APPLE_CC] (VARIABLE): likewise
13571 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13573 Disable lnxboot.img when compiled
13576 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
13577 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
13578 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
13579 [! APPLE_CC] (CODE_LENG): skip
13580 [! APPLE_CC] (setup_sects): likewise
13581 [! APPLE_CC]: skip filling
13583 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13585 Address in trampolines based on 32-bit registers when compiled
13588 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
13590 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
13592 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13594 Avoid aliases when compiling with Apple's CC for PCBIOS machine
13596 * kern/misc.c [APPLE_CC] (memcpy): new function
13597 [APPLE_CC] (memmove): likewise
13598 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
13599 (memcpy): define alias conditionally on !APPLE_CC
13602 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
13603 APPLE_CC are defined
13604 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
13605 (grub_assert_fail): make prototype conditional
13607 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13609 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
13611 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
13613 (CLEANFILES): add grub-macho2img
13614 (grub_macho2img_SOURCES): new variable
13615 * kern/i386/pc/startup.S (bss_start): new variable
13616 (bss_end): likewise
13617 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
13618 * util/grub-macho2img.c: new file
13620 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13622 Use objconv when compiling with Apple's CC
13624 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
13625 (efiemu64.o): likewise
13626 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
13627 when compiling with Apple's CC
13628 (efiemu64_s.o): likewise
13629 * configure.ac: check for objconv when compiling with Apple's CC
13630 * genmk.rb: use objconv for modules when compiled with Apple's CC
13632 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13634 Define segment as well as section when compiling with
13637 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
13638 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
13639 (efiemu_convert_pointer): likewise
13640 (efiemu_set_virtual_address_map): likewise
13641 (efiemu_convert_pointer): likewise
13642 (efiemu_getcrc32): likewise
13643 (init_crc32_table): likewise
13644 (reflect): likewise
13645 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
13646 (GRUB_MOD_DEP): likewise
13648 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13650 Allow a compilation without -mcmodel=large
13652 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
13653 when compiled without -mcmodel=large
13654 (filter_memory_map): remove memory post 4 GiB when compiled
13655 without -mcmodel=large
13656 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
13657 TARGET_CFLAGS when -mcmodel=large isn't supported
13659 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13661 Remove nested functions in efiemu core
13663 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
13665 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13667 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
13669 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
13671 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
13673 (grub_cpu_is_tsc_supported): likewise
13674 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
13676 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13678 Absolute addressing through constant with Apple's cc
13680 * kern/i386/pc/startup.S: Define necessary constants
13681 and address through it when using ABS with Apple's CC
13682 * boot/i386/pc/diskboot.S: likewise
13683 * boot/i386/pc/boot.S: likewise
13684 * boot/i386/pc/lnxboot.S: likewise
13685 * boot/i386/pc/cdboot.S: likewise
13686 * mmap/i386/pc/mmap_helper.S: likewise
13687 * commands/i386/pc/drivemap_int13h.S: likewise
13689 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13691 Check if compiler is apple cc
13693 * Makefile.in (ASFLAGS): new variable
13694 (TARGET_ASFLAGS): likewise
13695 (TARGET_MODULE_FORMAT): likewise
13696 (TARGET_APPLE_CC): likewise
13697 (OBJCONV): likewise
13698 (TARGET_IMG_CFLAGS): likewise
13699 (TARGET_CPPFLAGS): add includedir
13700 * configure.ac: call grub_apple_cc and grub_apple_target_cc
13701 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
13702 Check for linker script only if compiler isn't Apple's CC
13703 (TARGET_MODULE_FORMAT): set
13704 (TARGET_APPLE_CC): likewise
13705 (TARGET_ASFLAGS): likewise
13706 (ASFLAGS): likewise
13707 Check for objcopy only if compiler isn't Apple's CC
13708 Check for BSS symbol only if compiler isn't Apple's CC
13709 * genmk.rb: adapt nm options if we use Apple's utils
13710 * aclocal.m4 (grub_apple_cc): new test
13711 (grub_apple_target_cc): likewise
13713 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13715 Simplify sed expressions and improve awk
13717 * Makefile.in (install-local): simplify sed expression
13718 * gencmdlist.sh: likewise
13719 * genmoddep.awk: avoid adding module as a dependency of itself
13721 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13723 Add missing start symbols
13725 * boot/i386/pc/boot.S: add start
13726 * boot/i386/pc/pxeboot.S: likewise
13728 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13730 Fix wrong assumptions with grub-mkimage on EFI
13732 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
13733 (relocate_addresses): consider both r_addend and value at offset
13734 (make_mods_section): zerofill modinfo and header
13735 (convert_elf): write prefix here
13737 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13739 Use .asciz instead of .string
13741 * i386/pc/diskboot.S: use .asciz instead of .string
13742 * i386/pc/boot.S: likewise
13743 * include/grub/dl.h (GRUB_MOD_DEP): likewise
13744 (GRUB_MOD_NAME): likewise
13746 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13750 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
13751 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
13752 (grub_video_setup): remove
13753 (grub_video_set_mode): new prototype
13754 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
13756 (linux_vesafb_res): compile only on PCBIOS
13757 (grub_linux_boot): support gfxpayload
13758 * loader/i386/pc/xnu.c (video_hook): new function
13759 (grub_xnu_set_video): support gfxpayload
13760 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
13761 (DEFAULT_VIDEO_HEIGHT): likewise
13762 (DEFAULT_VIDEO_FLAGS): likewise
13763 (DEFAULT_VIDEO_MODE): new definition
13764 (video_hook): new function
13765 (grub_gfxterm_init): use grub_video_set_mode
13766 * util/grub.d/30_os-prober.in: remove explicit modesetting before
13768 * video/video.c (grub_video_setup): removed
13769 (grub_video_set_mode): new function based on grub_gfxterm_init and
13772 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13774 Avoid calling biosdisk in drivemap
13776 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
13777 (revparse_biosdisk): likewise
13778 (list_mappings): derive name from id directly
13779 (grub_cmd_drivemap): use tryparse_diskstring
13781 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13785 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
13786 (grub_lexer_param): add tokenonhold
13787 (grub_script_create_cmdline): remove cmdline. All callers updated
13788 (grub_script_function_create): make functionname
13789 grub_script_arg. All callers updated
13790 (grub_script_execute_argument_to_string): new prototype
13791 * kern/parser.c (state_transitions): reorder
13792 (grub_parser_cmdline_state): fix a bug and make more compact
13793 * script/sh/execute.c (grub_script_execute_argument_to_string):
13795 (grub_script_execute_cmdline): use new format
13796 * script/sh/function.c (grub_script_function_create): make functionname
13797 grub_script_arg. All callers updated
13798 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
13799 (grub_script_yylex): remove
13800 (grub_script_yylex2): renamed to ...
13801 (grub_script_yylex): ...renamed
13802 parse the expressions like a${b}c
13803 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
13804 (GRUB_PARSER_TOKEN_VAR): remove
13805 (GRUB_PARSER_TOKEN_NAME): likewise
13806 ("if"): declare as typeless
13807 ("while"): likewise
13808 ("function"): likewise
13813 (argument): likewise
13814 (script): accept empty scripts and make exit on error
13815 (arguments): use GRUB_PARSER_TOKEN_ARG
13816 (function): likewise
13817 (command): move error handling to script
13818 (menuentry): move grub_script_lexer_ref before
13819 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
13820 argument. All callers updated
13822 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
13824 Prevent GRUB from probing floppies during boot.
13826 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
13827 * commands/search.c (options): Add --no-floppy.
13828 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
13829 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
13830 --no-floppy when searching for UUIDs.
13832 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
13834 Simplify the code duplication in commands/search.c.
13836 * commands/search.c (search_label, search_fs_uuid): Merge into ...
13837 (search_fs): ... this. Update all users.
13839 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
13841 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
13843 2009-05-28 Pavel Roskin <proski@gnu.org>
13845 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
13846 Remove the original symlink explicitly.
13848 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
13849 just one slash. That's how grub_fshelp_find_file() does it.
13851 2009-05-26 Pavel Roskin <proski@gnu.org>
13853 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
13856 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
13859 2009-05-25 Christian Franke <franke@computer.org>
13861 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
13863 (grub_atapi_identify): Add wait after drive select.
13864 (grub_ata_identify): Do more strict status register check before
13865 calling grub_atapi_identify (). Suppress error message if status
13866 register is 0x00 after command failure. Add status register
13867 check after PIO read to avoid bogus identify due to stuck DRQ.
13868 Thanks to Pavel Roskin for testing.
13869 (grub_device_initialize): Remove unsafe status register check.
13870 Thanks to 'phcoder' for problem report and patch.
13871 Prevent sign extension in debug message.
13873 2009-05-23 Colin D Bennett <colin@gibibit.com>
13875 Cleaned up `include/grub/normal.h'. Grouped prototypes by
13876 definition file, and functions defined in `normal/menu.c' have had
13877 their prototypes moved to `include/grub/menu.h' for consistency.
13879 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
13881 (grub_menu_get_entry): Likewise.
13882 (grub_menu_get_timeout): Likewise.
13883 (grub_menu_set_timeout): Likewise.
13884 (grub_menu_execute_entry): Likewise.
13885 (grub_menu_execute_with_fallback): Likewise.
13886 (grub_menu_entry_run): Likewise.
13888 * include/grub/normal.h: Re-ordered and grouped function
13889 prototypes by file that the function is defined in.
13890 (grub_menu_execute_callback): Removed; moved to menu.h.
13891 (grub_menu_get_entry): Likewise.
13892 (grub_menu_get_timeout): Likewise.
13893 (grub_menu_set_timeout): Likewise.
13894 (grub_menu_execute_entry): Likewise.
13895 (grub_menu_execute_with_fallback): Likewise.
13896 (grub_menu_entry_run): Likewise.
13897 (grub_menu_addentry): Renamed from this ...
13898 (grub_normal_add_menu_entry): ... to this.
13900 * normal/main.c (grub_menu_addentry): Renamed from this ...
13901 (grub_normal_add_menu_entry): ... to this.
13903 * script/sh/execute.c (grub_script_execute_menuentry): Update
13904 reference to renamed grub_menu_addentry function.
13906 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
13908 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
13910 2009-05-22 Pavel Roskin <proski@gnu.org>
13912 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
13913 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
13914 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
13915 compiling for the i386 targets, but not for the utilities.
13917 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
13919 (grub_root_drive): Likewise.
13920 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
13922 (grub_root_drive): Change size to byte.
13923 (grub_start_addr): Remove.
13924 (grub_end_addr): Likewise.
13925 (grub_apm_bios_info): Likewise.
13927 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
13929 * normal/i386: Remove.
13930 * normal/powerpc: Likewise.
13931 * normal/sparc64: Likewise.
13932 * normal/x86_64: Likewise.
13934 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
13936 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
13937 * loader/i386/linux_trampoline.S: Fix indentation
13938 * loader/i386/xnu_helper.S: Likewise
13940 2009-05-18 Colin D Bennett <colin@gibibit.com>
13942 Display error messages when parsing a Lua statement fails.
13943 Previously, executing a syntactically invalid statement like
13944 ")foo" or "bar;" would silently fail.
13946 * script/lua/grub_main.c (handle_lua_error): New function.
13947 (grub_lua_parse_line): Improved reporting of Lua parser and
13950 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13952 Remove -Werror which causes build to fail on some systems
13954 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
13955 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
13956 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
13958 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13960 trampoline for linux on 64-bit platform
13962 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
13963 loader/i386/efi/linux_trampoline.S
13964 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
13966 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
13968 * loader/i386/linux_trampoline.S: moved here
13969 * loader/i386/efi/linux.c (allocate_pages): reserve space for
13971 (jumpvector): removed
13972 (grub_linux_trampoline_start): new declaration
13973 (grub_linux_trampoline_end): likewise
13974 (grub_linux_boot): use trampoline when on 64-bit platform
13975 * loader/i386/linux.c: likewise
13977 2009-05-16 Pavel Roskin <proski@gnu.org>
13979 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
13980 const to avoid a warning.
13981 (grub_lua_setenv): Likewise.
13982 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
13983 lmsg to fix a warning.
13985 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
13987 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
13988 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
13989 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
13990 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
13991 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
13992 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
13993 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
13994 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
13996 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
13998 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
14000 2009-05-16 Bean <bean123ch@gmail.com>
14002 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
14003 (lua_mod_SOURCES): New variable.
14004 (lua_mod_CFLAGS): Likewise.
14005 (lua_mod_LDFLAGS): Likewise.
14007 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
14008 (setjmp_mod_SOURCES): New variable.
14009 (setjmp_mod_CFLAGS): Likewise.
14010 (setjmp_LDFLAGS): Likewise.
14012 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
14013 (setjmp_mod_SOURCES): New variable.
14014 (setjmp_mod_CFLAGS): Likewise.
14015 (setjmp_LDFLAGS): Likewise.
14017 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
14018 (setjmp_mod_SOURCES): New variable.
14019 (setjmp_mod_CFLAGS): Likewise.
14020 (setjmp_LDFLAGS): Likewise.
14022 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
14023 (setjmp_mod_SOURCES): New variable.
14024 (setjmp_mod_CFLAGS): Likewise.
14025 (setjmp_LDFLAGS): Likewise.
14027 * normal/i386/setjmp.S: Moved from here ...
14028 * lib/i386/setjmp.S: ... Moved here
14029 * normal/x86_64/setjmp.S: Moved from here ...
14030 * lib/x86_64/setjmp.S: ... Moved here
14031 * normal/powerpc/setjmp.S: Moved from here ...
14032 * lib/powerpc/setjmp.S: ... Moved here
14033 * normal/sparc64/setjmp.S: Moved from here ...
14034 * lib/sparc64/setjmp.S: ... Moved here
14036 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
14037 returns_twice in mingw.
14039 * script/lua/grub_lib.c: New file.
14040 * script/lua/grub_lib.h: Likewise.
14041 * script/lua/grub_lua.h: Likewise.
14042 * script/lua/grub_main.c: Likewise.
14043 * script/lua/lapi.c: Likewise.
14044 * script/lua/lapi.h: Likewise.
14045 * script/lua/lauxlib.c: Likewise.
14046 * script/lua/lauxlib.h: Likewise.
14047 * script/lua/lbaselib.c: Likewise.
14048 * script/lua/lcode.c: Likewise.
14049 * script/lua/lcode.h: Likewise.
14050 * script/lua/ldblib.c: Likewise.
14051 * script/lua/ldebug.c: Likewise.
14052 * script/lua/ldebug.h: Likewise.
14053 * script/lua/ldo.c: Likewise.
14054 * script/lua/ldo.h: Likewise.
14055 * script/lua/ldump.c: Likewise.
14056 * script/lua/lfunc.c: Likewise.
14057 * script/lua/lfunc.h: Likewise.
14058 * script/lua/lgc.c: Likewise.
14059 * script/lua/lgc.h: Likewise.
14060 * script/lua/linit.c: Likewise.
14061 * script/lua/liolib.c: Likewise.
14062 * script/lua/llex.c: Likewise.
14063 * script/lua/llex.h: Likewise.
14064 * script/lua/llimits.h: Likewise.
14065 * script/lua/lmathlib.c: Likewise.
14066 * script/lua/lmem.c: Likewise.
14067 * script/lua/lmem.h: Likewise.
14068 * script/lua/loadlib.c: Likewise.
14069 * script/lua/lobject.c: Likewise.
14070 * script/lua/lobject.h: Likewise.
14071 * script/lua/lopcodes.c: Likewise.
14072 * script/lua/lopcodes.h: Likewise.
14073 * script/lua/loslib.c: Likewise.
14074 * script/lua/lparser.c: Likewise.
14075 * script/lua/lparser.h: Likewise.
14076 * script/lua/lstate.c: Likewise.
14077 * script/lua/lstate.h: Likewise.
14078 * script/lua/lstring.c: Likewise.
14079 * script/lua/lstring.h: Likewise.
14080 * script/lua/lstrlib.c: Likewise.
14081 * script/lua/ltable.c: Likewise.
14082 * script/lua/ltable.h: Likewise.
14083 * script/lua/ltablib.c: Likewise.
14084 * script/lua/ltm.c: Likewise.
14085 * script/lua/ltm.h: Likewise.
14086 * script/lua/lua.h: Likewise.
14087 * script/lua/luaconf.h: Likewise.
14088 * script/lua/lualib.h: Likewise.
14089 * script/lua/lundump.c: Likewise.
14090 * script/lua/lundump.h: Likewise.
14091 * script/lua/lvm.c: Likewise.
14092 * script/lua/lvm.h: Likewise.
14093 * script/lua/lzio.c: Likewise.
14094 * script/lua/lzio.h: Likewise.
14096 2009-05-16 Bean <bean123ch@gmail.com>
14098 * include/grub/kernel.h (grub_module_header_types): Add type
14101 * kern/main.c (grub_load_config): New function.
14102 (grub_main): Call grub_load_config to read boot config.
14104 * grub-mkimage (generate_image): New parameter config_path.
14105 (options): New option --config.
14106 (main): Parse --config option, and pass it to generate_image.
14108 2009-05-14 Christian Franke <franke@computer.org>
14110 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
14111 This fixes build on Cygwin.
14113 2009-05-14 Pavel Roskin <proski@gnu.org>
14115 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
14116 jump. This saves two bytes, so the typical case of 2 swapped
14117 drives would fit 32 bytes.
14119 2009-05-13 Pavel Roskin <proski@gnu.org>
14121 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
14122 grub_uint32_t to avoid a warning.
14124 * loader/i386/linux.c (allocate_pages): When assigning
14125 real_mode_mem, cast through grub_size_t to fix a warning. The
14126 code already makes sure that the value would fit a pointer.
14127 (grub_linux_setup_video): Cast render_target->data to
14128 grub_size_t to fix a warning.
14130 2009-05-13 Javier Martín <lordhabbit@gmail.com>
14132 * commands/i386/pc/drivemap.c: New file - implement drivemap
14134 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
14135 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
14137 2009-05-13 Pavel Roskin <proski@gnu.org>
14139 * util/i386/pc/grub-setup.c (setup): Remove unused variable
14140 embedding_area_exists.
14142 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
14144 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
14145 it easier to understand / work with.
14146 Improve warning messages for cases where there's no embedding area,
14147 or when it is too small (or core.img too large).
14149 2009-05-13 Pavel Roskin <proski@gnu.org>
14151 * loader/i386/pc/multiboot2.c: Add necessary includes for
14152 grub_multiboot2_real_boot().
14154 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
14155 PX record is always little-endian. We only need the lower 2
14158 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
14159 facilitate code reuse.
14160 (grub_cpio_mount): Use "struct head", not a char buffer. This
14161 fixes a warning reported by gcc 4.4.
14163 * kernel/disk.c (grub_disk_read): Use void pointer for the
14165 (grub_disk_write): Use const void pointer for the buffer.
14166 Adjust all callers. Remove unnecessary casts.
14168 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
14170 * util/i386/pc/grub-install.in: Update copyright year.
14172 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14176 * commands/gptsync.c: new file
14177 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
14178 (gptsync_mod_SOURCES): new variable
14179 (gptsync_mod_CFLAGS): likewise
14180 (gptsync_mod_LDFLAGS): likewise
14181 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
14183 (GRUB_PC_PARTITION_TYPE_HFS): likewise
14184 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
14185 * conf/i386-ieee1275.rmk: likewise
14186 * conf/i386-pc.rmk: likewise
14187 * conf/powerpc-ieee1275.rmk: likewise
14189 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14193 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
14194 (grub_dl_ref): likewise
14196 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
14198 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
14199 split in two functions (one for msdos and one for gpt).
14201 2009-05-08 Pavel Roskin <proski@gnu.org>
14203 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
14206 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
14207 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
14208 Initialize them with -1. Add sanity check for bad1. Eliminate
14211 2009-05-08 David S. Miller <davem@davemloft.net>
14213 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
14215 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
14217 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
14220 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
14222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14223 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
14225 2009-05-05 David S. Miller <davem@davemloft.net>
14227 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
14229 2009-05-05 Pavel Roskin <proski@gnu.org>
14231 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
14232 of grub_dl_ref() and grub_dl_unref().
14233 * commands/parttool.c: Remove preprocessor conditionals around
14234 grub_dl_ref() and grub_dl_unref().
14235 * fs/affs.c: Likewise.
14236 * fs/afs.c: Likewise.
14237 * fs/cpio.c: Likewise.
14238 * fs/ext2.c: Likewise.
14239 * fs/fat.c: Likewise.
14240 * fs/hfs.c: Likewise.
14241 * fs/hfsplus.c: Likewise.
14242 * fs/iso9660.c: Likewise.
14243 * fs/jfs.c: Likewise.
14244 * fs/minix.c: Likewise.
14245 * fs/ntfs.c: Likewise.
14246 * fs/reiserfs.c: Likewise.
14247 * fs/sfs.c: Likewise.
14248 * fs/udf.c: Likewise.
14249 * fs/ufs.c: Likewise.
14250 * fs/xfs.c: Likewise.
14251 * include/grub/dl.h: Likewise.
14252 * loader/xnu.c: Likewise.
14254 2009-05-04 Pavel Roskin <proski@gnu.org>
14256 * commands/acpi.c: Remove unused variable my_mod.
14257 * partmap/amiga.c: Likewise.
14258 * partmap/apple.c: Likewise.
14259 * partmap/gpt.c: Likewise.
14260 * partmap/pc.c: Likewise.
14261 * partmap/sun.c: Likewise.
14262 * term/gfxterm.c: Likewise.
14263 * term/i386/pc/vesafb.c: Likewise.
14264 * term/i386/pc/vga.c: Likewise.
14266 2009-05-04 David S. Miller <davem@davemloft.net>
14268 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
14269 pointer args to grub_ieee1275_get_property().
14271 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
14273 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
14274 devices, and do not traverse down under controller nodes.
14276 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
14277 (grub_ofdisk_open): Use it to un-escape "," characters.
14278 * kern/disk.c (find_part_sep): New.
14279 (grub_disk_open): Use it to find the first non-escaped ','
14280 character in the disk name.
14281 * util/ieee1275/devicemap.c (escape_of_path): New.
14282 (grub_util_emit_devicemap_entry): Use it.
14283 * util/sparc64/ieee1275/grub-install.in: Update script to
14284 strip partition specifiers properly by not triggering on
14285 '\' escaped ',' characters.
14287 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14289 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
14291 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
14293 (linux_vesafb_modes): Add a lot of additional modes to the list (based
14294 on documentation from Wikipedia).
14296 2009-05-04 Pavel Roskin <proski@gnu.org>
14298 * disk/ata.c: Spelling fixes.
14299 * disk/raid.c: Likewise.
14300 * disk/usbms.c: Likewise.
14301 * disk/dmraid_nvidia.c: Likewise.
14302 * kern/ieee1275/openfw.c: Likewise.
14303 * kern/ieee1275/init.c: Likewise.
14304 * kern/ieee1275/cmain.c: Likewise.
14305 * boot/i386/pc/cdboot.S: Likewise.
14306 * video/readers/png.c: Likewise.
14307 * video/i386/pc/vbe.c: Likewise.
14308 * fs/udf.c: Likewise.
14309 * fs/hfs.c: Likewise.
14310 * fs/reiserfs.c: Likewise.
14311 * efiemu/runtime/efiemu.c: Likewise.
14312 * efiemu/main.c: Likewise.
14313 * efiemu/mm.c: Likewise.
14314 * include/grub/elf.h: Likewise.
14315 * include/grub/xnu.h: Likewise.
14316 * include/grub/usbdesc.h: Likewise.
14317 * include/grub/usb.h: Likewise.
14318 * include/grub/script_sh.h: Likewise.
14319 * include/grub/lib/LzmaEnc.h: Likewise.
14320 * include/grub/efiemu/efiemu.h: Likewise.
14321 * include/grub/command.h: Likewise.
14322 * normal/menu.c: Likewise.
14323 * normal/main.c: Likewise.
14324 * normal/datetime.c: Likewise.
14325 * bus/usb/uhci.c: Likewise.
14326 * mmap/i386/uppermem.c: Likewise.
14327 * mmap/mmap.c: Likewise.
14328 * commands/acpi.c: Likewise.
14329 * commands/test.c: Likewise.
14330 * partmap/apple.c: Likewise.
14331 * font/font.c: Likewise.
14332 * loader/sparc64/ieee1275/linux.c: Likewise.
14333 * loader/macho.c: Likewise.
14334 * loader/i386/bsd_trampoline.S: Likewise.
14335 * loader/i386/bsd.c: Likewise.
14336 * loader/xnu.c: Likewise.
14337 * term/i386/pc/vesafb.c: Likewise.
14338 * term/usb_keyboard.c: Likewise.
14339 * util/resolve.c: Likewise.
14340 * util/getroot.c: Likewise.
14342 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
14344 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
14346 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14348 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
14351 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14353 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
14354 parameter only available on BIOS.
14356 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
14358 Removed wrong semicolon in declaration
14360 * grub/misc.h (grub_dprintf): remove semicolon
14362 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14364 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
14365 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
14366 is done by grub_cmd_linux() now).
14367 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
14368 restore video to text mode.
14369 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
14370 indicates lack of "vga=" parameter. "vga=0" is mapped to
14371 `GRUB_LINUX_VID_MODE_NORMAL'.
14373 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
14375 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
14376 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
14377 and `normal/script.c'. Add `kern/rescue_reader.c',
14378 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
14379 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
14380 `grub_script.tab.c'.
14382 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14383 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14385 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14386 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14388 * Makefile.in: Remove duplicated 2008 in Copyright line.
14390 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14392 * util/misc.c (grub_util_warn): New function. Emits a warning
14394 * include/grub/util/misc.h (grub_util_warn): New declaration.
14396 * util/i386/pc/grub-install.in: Understand --force and pass it down
14399 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
14401 (setup): Improve error messages and add warnings when requested to
14402 install in odd layouts. Refuse to install using blocklists unless
14405 2009-05-04 martin f. krafft <madduck@madduck.net>
14407 * disk/raid.c (grub_raid_scan_device): Improve debug message.
14409 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
14411 Updated copyright year
14413 * fs/hfsplus.c: updated copyright year
14415 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
14419 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
14420 in the space previously used by unused3
14421 (grub_hfsplus_uuid): new function
14422 (grub_hfsplus_fs): added uuid field
14424 2009-05-03 Pavel Roskin <proski@gnu.org>
14426 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
14427 suppress warnings. It's no longer needed.
14428 * disk/host.c: Likewise.
14429 * disk/ata_pthru.c: Likewise.
14430 * disk/loopback.c: Likewise.
14431 * hook/datehook.c: Likewise.
14432 * parttool/pcpart.c: Likewise.
14433 * fs/i386/pc/pxe.c: Likewise.
14434 * fs/ntfscomp.c: Likewise.
14435 * efiemu/main.c: Likewise.
14436 * mmap/mmap.c: Likewise.
14437 * commands/crc.c: Likewise.
14438 * commands/hexdump.c: Likewise.
14439 * commands/hdparm.c: Likewise.
14440 * commands/acpi.c: Likewise.
14441 * commands/echo.c: Likewise.
14442 * commands/minicmd.c: Likewise.
14443 * commands/blocklist.c: Likewise.
14444 * commands/memrw.c: Likewise.
14445 * commands/loadenv.c: Likewise.
14446 * commands/usbtest.c: Likewise.
14447 * commands/lsmmap.c: Likewise.
14448 * commands/boot.c: Likewise.
14449 * commands/parttool.c: Likewise.
14450 * commands/configfile.c: Likewise.
14451 * commands/search.c: Likewise.
14452 * commands/ieee1275/suspend.c: Likewise.
14453 * commands/cat.c: Likewise.
14454 * commands/i386/pc/pxecmd.c: Likewise.
14455 * commands/i386/pc/play.c: Likewise.
14456 * commands/i386/pc/halt.c: Likewise.
14457 * commands/i386/pc/vbeinfo.c: Likewise.
14458 * commands/i386/pc/vbetest.c: Likewise.
14459 * commands/lspci.c: Likewise.
14460 * commands/date.c: Likewise.
14461 * commands/handler.c: Likewise.
14462 * commands/ls.c: Likewise.
14463 * commands/test.c: Likewise.
14464 * commands/cmp.c: Likewise.
14465 * commands/efi/loadbios.c: Likewise.
14466 * commands/efi/fixvideo.c: Likewise.
14467 * commands/halt.c: Likewise.
14468 * commands/help.c: Likewise.
14469 * commands/reboot.c: Likewise.
14470 * hello/hello.c: Likewise.
14471 * script/sh/main.c: Likewise.
14472 * loader/xnu.c: Likewise.
14473 * term/terminfo.c: Likewise.
14474 * term/i386/pc/serial.c: Likewise.
14475 * term/usb_keyboard.c: Likewise.
14477 2009-05-03 David S. Miller <davem@davemloft.net>
14479 * normal/menu.c: Include grub/parser.h
14481 2009-05-03 Pavel Roskin <proski@gnu.org>
14483 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
14485 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
14486 Suggested by Javier Martín <lordhabbit@gmail.com>
14488 * util/i386/pc/grub-mkrescue.in: Allow for the case when
14489 efiemu??.o doesn't exist.
14490 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
14493 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
14495 FreeBSD 64-bit support
14497 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
14498 and loader/i386/bsd_trampoline.S
14499 (bsd_mod_ASFLAGS): new variable
14500 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
14501 (FREEBSD_MODTYPE_KERNEL64): likewise
14502 (grub_bsd64_trampoline_start): likewise
14503 (grub_bsd64_trampoline_end): likewise
14504 (grub_bsd64_trampoline_selfjump): likewise
14505 (grub_bsd64_trampoline_gdt): likewise
14506 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
14507 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
14508 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
14509 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
14510 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
14512 * loader/i386/bsd_pagetable.c: new file
14513 * loader/i386/bsd_trampoline.S: likewise
14514 * loader/i386/bsd.c (ALIGN_QWORD): new macro
14515 (ALIGN_VAR): likewise
14516 (entry_hi): new variable
14517 (kern_end_mdofs): likewise
14518 (is_64bit): likewise
14519 (grub_freebsd_add_meta): use ALIGN_VAR
14520 (grub_e820_mmap): new declaration
14521 (grub_freebsd_add_mmap): new function
14522 (grub_freebsd_add_meta_module): support 64 bit kernels
14523 (grub_freebsd_list_modules): use ALIGN_VAR
14524 (gdt_descriptor): new declaration
14525 (grub_freebsd_boot): support 64 bit kernels
14526 (grub_bsd_elf64_hook): new function
14527 (grub_bsd_load_elf): support elf64
14529 2009-05-03 Bean <bean123ch@gmail.com>
14531 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
14532 after we get the result of if statement.
14534 2009-05-03 Bean <bean123ch@gmail.com>
14536 * Makefile.in (enable_efiemu): New variable.
14538 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
14540 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
14542 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
14543 path, add -mno-red-zone option.
14544 (efiemu64_s.o): Likewise.
14545 (efiemu64.o): Use macro $^ for source file.
14547 * configure.ac (--enable-efiemu): New option.
14549 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14553 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
14554 (pkglib_MODULES): add xnu.mod
14555 (xnu_mod_SOURCES): new variable
14556 (xnu_mod_CFLAGS): likewise
14557 (xnu_mod_LDFLAGS): likewise
14558 (xnu_mod_ASFLAGS): likewise
14559 * conf/i386-pc.rmk: likewise
14560 * conf/x86_64-efi.rmk: likewise
14561 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
14563 * include/grub/i386/macho.h: new file
14564 * include/grub/i386/xnu.h: likewise
14565 * include/grub/macho.h: likewise
14566 * include/grub/machoload.h: likewise
14567 * include/grub/x86_64/macho.h: likewise
14568 * include/grub/x86_64/xnu.h: likewise
14569 * include/grub/xnu.h: likewise
14570 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
14571 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
14572 * loader/i386/efi/xnu.c: new file
14573 * loader/i386/pc/xnu.c: likewise
14574 * loader/i386/xnu.c: likewise
14575 * loader/i386/xnu_helper.S: likewise
14576 * loader/macho.c: likewise
14577 * loader/xnu.c: likewise
14578 * loader/xnu_resume.c: likewise
14579 * util/grub-dumpdevtree: likewise
14580 * include/grub/i386/pit.h: include grub/err.h
14581 (grub_pit_wait): export
14582 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
14584 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14588 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
14589 _linux_efi, linux_efi.
14590 new files in grub-emu
14591 new targets efiemu32.o and efiemu64.o
14592 * loader/linux_normal_efiemu.c: likewise
14593 * loader/i386/efi/linux.c: added preliminary efiemu support
14594 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
14596 * include/grub/autoefi.h: new file
14597 * include/grub/i386/efiemu.h: likewise
14598 * include/grub/i386/pc/efiemu.h: likewise
14599 * include/grub/efi/api.h: add LL suffix when necessary
14600 new definitions relating to tables
14601 * include/grub/efiemu/efiemu.h: new file
14602 * include/grub/efiemu/runtime.h: likewise
14603 * efiemu/prepare.c: likewise
14604 * efiemu/loadcore_common.c: likewise
14605 * efiemu/loadcore64.c: likewise
14606 * efiemu/runtime/efiemu.sh: likewise
14607 * efiemu/runtime/efiemu.S: likewise
14608 * efiemu/runtime/efiemu.c: likewise
14609 * efiemu/runtime/config.h: likewise
14610 * efiemu/prepare32.c: likewise
14611 * efiemu/main.c: likewise
14612 * efiemu/modules/pnvram.c: likewise
14613 * efiemu/modules/i386: likewise
14614 * efiemu/modules/i386/pc: likewise
14615 * efiemu/modules/acpi.c: likewise
14616 * efiemu/i386/pc/cfgtables.c: likewise
14617 * efiemu/i386/loadcore64.c: likewise
14618 * efiemu/i386/loadcore32.c: likewise
14619 * efiemu/prepare64.c: likewise
14620 * efiemu/loadcore.c: likewise
14621 * efiemu/symbols.c: likewise
14622 * efiemu/mm.c: likewise
14623 * efiemu/loadcore32.c: likewise
14625 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14629 * commands/acpi.c: new file
14630 * commands/i386/pc/acpi.c: likewise
14631 * commands/efi/acpi.c: likewise
14632 * include/grub/acpi.h: likewise
14633 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
14634 (acpi_mod_SOURCES): new variable
14635 (acpi_mod_CFLAGS): likewise
14636 (acpi_mod_LDFLAGS): likewise
14637 * conf/i386-efi.rmk: likewise
14638 * conf/x86_64-efi.rmk: likewise
14640 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14642 Missing part from mmap patch
14644 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
14645 (grub_mmap_unregister)
14646 (grub_mmap_free_and_unregister): use grub_mmap_register
14648 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14652 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
14653 * loader/i386/linux.c (find_mmap_size): likewise
14654 (allocate_pages): likewise
14655 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
14656 (grub_fill_multiboot_mmap): likewise
14657 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
14658 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
14659 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
14660 (OPENBSD_MMAP_RESERVED): likewise
14661 * include/grub/i386/pc/memory.h: include grub/memory.h
14662 (grub_lower_mem): removed
14663 (grub_upper_mem): likewise
14664 (GRUB_MACHINE_MEMORY_ACPI): new definition
14665 (GRUB_MACHINE_MEMORY_NVS): likewise
14666 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
14667 (GRUB_MACHINE_MEMORY_HOLE): likewise
14668 (grub_machine_mmap_register): likewise
14669 (grub_machine_mmap_unregister): likewise
14670 (grub_machine_get_upper): likewise
14671 (grub_machine_get_lower): likewise
14672 (grub_machine_get_post64): likewise
14673 * include/grub/i386/efi/memory.h: new file
14674 * include/grub/x86_64/efi/memory.h: likewise
14675 * include/grub/efi/memory.h: likewise
14676 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
14677 (mmap_mod_SOURCES): new variable
14678 (mmap_mod_LDFLAGS): likewise
14679 (mmap_mod_ASFLAGS): likewise
14680 * conf/i386-coreboot.rmk: likewise
14681 * conf/i386-ieee1275.rmk: likewise
14682 * conf/i386-efi.rmk: likewise
14683 * conf/x86_64-efi.rmk: likewise
14684 * include/grub/types.h (UINT_TO_PTR): new macro
14685 (PTR_TO_UINT32): likewise
14686 (PTR_TO_UINT64): likewise
14687 * include/grub/memory.h: new file
14688 * mmap/i386/pc/mmap.c: likewise
14689 * mmap/i386/pc/mmap_helper.S: likewise
14690 * mmap/i386/uppermem.c: likewise
14691 * mmap/mmap.c: likewise
14692 * mmap/efi/mmap.c: likewise
14693 * kern/i386/coreboot/init.c (grub_machine_init): don't use
14695 * kern/i386/pc/init.c (grub_lower_mem): removed variable
14696 (grub_upper_mem): likewise
14697 (grub_machine_init): don't use grub_upper_mem,
14698 make grub_lower_mem local
14699 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
14700 grub_mmap_iterate and grub_mmap_get_upper
14701 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
14703 2009-05-02 Bean <bean123ch@gmail.com>
14705 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
14706 script/sh/parser.y.
14707 (pkglib_MODULES): Add normal.mod and sh.mod.
14708 (normal_SOURCES): New variable.
14709 (normal_mod_CFLAGS): Likewise.
14710 (normal_mod_LDFLAGS): Likewise.
14711 (sh_mod_SOURCES): Likewise.
14712 (sh_mod_CFLAGS): Likewise.
14713 (sh_mod_LDFLAGS): Likewise.
14715 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
14716 script/sh/lexer.c_DEPENDENCIES.
14717 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
14718 kern/rescue_reader.c and kern/rescue_parser.c.
14719 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
14720 (grub_emu_SOURCES): Change source files.
14721 (pkglib_MODULES): Remove normal.mod.
14722 (normal_SOURCES): Removed.
14723 (normal_mod_CFLAGS): Likewise.
14724 (normal_mod_LDFLAGS): Likewise.
14725 * conf/i386-coreboot.rmk: Likewise.
14726 * conf/i386-efi.rmk: Likewise.
14727 * conf/i386-ieee1276.rmk: Likewise.
14728 * conf/powerpc-ieee1275.rmk: Likewise.
14729 * conf/sparc64-ieee1275.rmk: Likewise.
14730 * conf/x86_64-efi.rmk: Likewise.
14732 * include/grub/command.h (grub_command_execute): New inline function.
14734 * include/grub/menu.h (grub_menu_entry): Removed commands field.
14736 * include/grub/normal.h: Remove <grub/setjmp.h>.
14737 (grub_fs_module_list): Moved to normal/autofs.c.
14738 (grub_exit_env): Removed.
14739 (grub_command_execute): Likewise.
14740 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
14742 (read_command_list): New function declaration.
14743 (read_fs_list): Likewise.
14745 * include/parser.h: Include <grub/reader.h>.
14746 (grub_parser_split_cmdline): Change type of getline parameter.
14747 (grub_parser): New structure.
14748 (grub_parser_class): New variable.
14749 (grub_parser_execute): New function declaration.
14750 (grub_register_rescue_parser): Likewise.
14751 (grub_parser_register): New inline function.
14752 (grub_parser_unregister): Likewise.
14753 (grub_parser_get_current): Likewise.
14754 (grub_parser_set_current): Likewise.
14756 * include/grub/reader.h: New file.
14757 * kern/reader.c: Likewise.
14758 * kern/rescue_parser.c: Likewise.
14759 * kern/rescue_reader.c: Likewise.
14760 * normal/autofs.c: Likewise.
14761 * normal/dyncmd.c: Likewise.
14763 * include/grub/rescue.h: Removed.
14764 * normal/command.h: Likewise.
14766 * include/grub/script.h: Moved to ...
14767 * include/grub/script_sh.h: ... Moved here.
14768 * normal/execute.c: Moved to ...
14769 * script/sh/execute.c: ... Moved here.
14770 * normal/function.c: Moved to ...
14771 * script/sh/function.c: ... Moved here.
14772 * normal/lexer.c: Moved to ...
14773 * script/sh/lexer.c: ... Moved here.
14774 * normal/parser.y: Moved to ...
14775 * script/sh/parser.y: ... Moved here.
14776 * normal/script.c: Moved to ...
14777 * script/sh/script.c: ... Moved here.
14779 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
14781 (grub_exit_env): Removed.
14782 (fs_module_list): Moved to normal/autofs.c.
14783 (grub_file_getline): Don't handle comment here.
14784 (free_menu): Skip removed field entry->commands.
14785 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
14787 (read_config_file): Removed nested parameter, change getline function.
14788 (grub_enter_normal_mode): Removed.
14789 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
14790 (read_command_list): Likewise.
14791 (autoload_fs_module): Moved to normal/autofs.c.
14792 (read_fs_list): Likewise.
14793 (reader_nested): New variable.
14794 (grub_normal_execute): Run parser.sh to switch to sh parser.
14795 (grub_cmd_rescue): Removed.
14796 (cmd_normal): Removed.
14797 (grub_cmd_normal): Unregister itself at the beginning. Don't register
14799 (grub_cmdline_run): New function.
14800 (grub_normal_reader_init): Likewise.
14801 (grub_normal_read_line): Likewise.
14802 (grub_env_write_pager): Likewise.
14803 (cmdline): New variable.
14804 (grub_normal_reader): Likewise.
14805 (GRUB_MOD_INIT): Register normal reader and set as current, register
14806 pager hook, register normal command with grub_register_command_prio,
14807 so that it won't show up in command.lst.
14808 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
14809 grub_fs_autoload_hook.
14811 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
14812 (grub_menu_execute_entry): Replace grub_script_execute with
14813 grub_parser_execute, change parameter to grub_command_execute.
14815 * normal/menu_text.c: Remove <grub/script.h>.
14817 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
14818 and <grub/parser.h>.
14819 (run): Change editor_getline to use new parser interface. Change
14820 parameter to grub_command_execute.
14822 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
14823 <grub/reader.h> and <grub/parser.h>.
14824 (grub_load_normal_mode): Execute normal command.
14825 (grub_main): Call grub_register_core_commands,
14826 grub_register_rescue_parser and grub_register_rescue_reader, use
14827 grub_reader_loop to enter input loop.
14829 * kern/parser.c (grub_parser_split_cmdline): Change type of
14831 (grub_parser_class): New variable.
14832 (grub_parser_execute): New function.
14834 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
14835 * loader/multiboot2.c: Likewise.
14836 * loader/sparc64/ieee1275/linux.c: Likewise.
14838 * util/grub-emu.c (read_command_list): New dummy function.
14840 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
14842 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
14843 count to 16 for CCISS and IDA.
14845 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
14847 * normal/menu_text.c (grub_wait_after_message): Print a newline
14848 after waiting for user input.
14850 * loader/i386/linux.c: Include `<grub/normal.h>'.
14851 (grub_cmd_linux): Improve the error message about `ask' mode, by
14852 waiting for user input so it's not missed (we can do this, since
14853 user requested interaction).
14855 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14857 Added missing lst to grub-mkrescue
14859 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
14860 and ${input_dir}/parttool.lst
14862 2009-04-30 David S. Miller <davem@davemloft.net>
14864 * util/hostdisk.c (device_is_wholedisk): New function.
14865 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
14866 zero only if device_is_wholedisk() returns true.
14868 * util/hostdisk.c (convert_system_partition_to_system_disk):
14869 Handle virtual disk devices named /dev/vdiskX as found on sparc
14872 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
14873 lettered partition specifier is found, convert to numbered.
14875 2009-04-29 David S. Miller <davem@davemloft.net>
14877 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
14878 * include/grub/sparc64/ieee1275/memory.h: Likewise.
14880 * normal/command.c: Add missing newline at end of file.
14882 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
14884 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
14885 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
14886 grub_ofdisk_read): Likewise, and deal similarly with the fact that
14887 ihandles have a 32-bit type but need to be stored in a "void *".
14889 2009-04-28 Pavel Roskin <proski@gnu.org>
14891 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
14892 not disk. Adjust all dependencies.
14893 (grub_fs_uuid_close): Use grub_device_close(), not
14896 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
14897 parent's partition, don't copy it by reference, as it gets freed
14900 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14902 Preboot hooks support
14904 * commands/boot.c (struct grub_preboot_t): new declaration
14905 (preboots_head): new variable
14906 (preboots_tail): likewise
14907 (grub_loader_register_preboot_hook): new function
14908 (grub_loader_unregister_preboot_hook): likewise
14909 (grub_loader_set): launch preboot hooks
14910 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
14911 (grub_loader_register_preboot_hook): new declaration
14912 (grub_loader_unregister_preboot_hook): likewise
14914 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14918 * disk/scsi.c (grub_scsi_open): added missing cast when
14919 calling grub_dprintf
14921 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
14923 Bug and warning fixes
14925 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
14927 * commands/test.c (test_parse): fixed bug with file tests and corrected
14928 declaration of find_file
14930 2009-04-26 Pavel Roskin <proski@gnu.org>
14932 * Makefile.in: Don't install empty manual pages if help2man is
14933 missing. Use help2man option for output, not shell redirection.
14935 2009-04-26 David S. Miller <davem@davemloft.net>
14937 * util/grub-mkdevicemap.c (make_device_map): Add missing
14938 NESTED_FUNC_ATTR to process_device().
14940 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14944 * commands/test.c: rewritten to use bash-like test
14946 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14948 Parttool autoloading and improvements
14950 * Makefile.in (pkglib_DATA): add parttool.lst
14951 (parttool.lst): new target
14952 * genmk.rb: generate parttool-*
14953 (CLEANFILES): add #{parttool}
14954 (PARTTOOLFILES): new variable
14955 * genparttoollist.sh: new file
14956 * parttool/pcpart.c (grub_pcpart_boot): more feedback
14957 (grub_pcpart_type): likewise
14958 * commands/parttool.c (helpmsg): new variable
14959 (grub_cmd_parttool): output help if not enough arguments are supplied
14961 (GRUB_MOD_INIT(parttool)): use helpmsg
14963 2009-04-24 David S. Miller <davem@davemloft.net>
14965 Avoiding opening same device multiple times in device iterator.
14967 * kern/device.c: (grub_device_iterate): Define struct part_ent,
14968 and use it to build a list of partitions in iterate_disk() and
14969 iterate_partition().
14971 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
14974 * disk/ieee1275/nand.c (grub_nand_iterate): Return
14975 grub_devalias_iterate() result instead of unconditional 0.
14976 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
14977 Also, capture hook return value, either directly or via
14978 grub_children_iterate(), and propagate to caller.
14979 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
14980 grub_children_iterate): Return value is now 'int' instead of
14982 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
14983 like a proper iterator, stopping when hooks return non-zero.
14984 (grub_devalias_iterate): Likewise.
14986 2009-04-23 David S. Miller <davem@davemloft.net>
14988 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
14990 2009-04-22 David S. Miller <davem@davemloft.net>
14992 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
14993 is larger than address_cells, use that value for address_cells too.
14995 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
14996 IEEE1275_MAX_PATH_LEN): Define.
14997 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
14998 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
14999 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
15000 'devtype'. Explicitly NULL terminate devalias expansion.
15002 * util/sparc64/ieee1275/misc.c: New file.
15003 * util/sparc64/ieee1275/grub-setup.c: New file.
15004 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
15005 * util/sparc64/ieee1275/grub-mkimage.c: New file.
15006 * util/sparc64/ieee1275/grub-install.in: New file.
15007 * util/ieee1275/ofpath.c: New file.
15008 * util/ieee1275/devicemap.c: New file.
15009 * util/devicemap.c: New file.
15010 * util/deviceiter.c: New file.
15011 * kern/sparc64/ieee1275/init.c: New file.
15012 * include/grub/util/ofpath.h: New file.
15013 * include/grub/util/deviceiter.h: New file.
15014 * util/grub-mkdevicemap.c: Include deviceiter.h.
15015 Implement using grub_util_emit_devicemap_entry and
15016 grub_util_iterate_devices.
15017 * conf/i386-corebook.rmk: Build util/deviceiter.c and
15018 util/devicemap.c into grub-mkdevicemap
15019 * conf/i386-efi.rmk: Likewise.
15020 * conf/i386-ieee1275.rmk: Likewise.
15021 * conf/i386-pc.rmk: Likewise.
15022 * conf/powerpc-ieee1275.rmk: Likewise.
15023 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
15024 images and installation utilities. Build kernel as image
15025 instead of as elf binary. Use common rules as much as possible.
15027 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15029 Correct GPT definition
15031 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
15034 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
15036 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
15038 2009-04-19 David S. Miller <davem@davemloft.net>
15040 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
15041 (grub_rescue_cmd_linux): Rename to...
15042 (grub_cmd_linux): and fix prototype.
15043 (grub_rescue_cmd_initrd): Rename to...
15044 (grub_cmd_initrd): and fix prototype.
15045 (cmd_linux, cmd_initrd): New.
15046 (GRUB_MOD_INIT(linux)): Use grub_register_command().
15047 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
15049 2009-04-17 Pavel Roskin <proski@gnu.org>
15051 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
15053 (grub_ohci_transfer): Likewise.
15055 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
15057 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
15058 return without a value. Fix inconsistent indentation.
15060 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
15061 match struct grub_fs.
15063 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
15064 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
15065 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
15066 * commands/lspci.c (grub_lspci_iter): Likewise.
15068 2009-04-16 Bean <bean123ch@gmail.com>
15070 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
15073 2009-04-15 Pavel Roskin <proski@gnu.org>
15075 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
15076 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
15077 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
15080 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
15082 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
15083 that no multiple data or metadata areas are supported and `Unknown
15086 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
15088 Move loader out of the kernel
15090 * kern/loader.c: moved to ...
15091 * commands/boot.c: ... moved here
15092 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
15093 * commands/boot.c (grub_cmd_boot): moved here. All users updated
15094 * include/grub/kernel.h (grub_machine_fini): export
15095 * include/grub/loader.h (grub_loader_is_loaded): update declaration
15096 (grub_loader_set): likewise
15097 (grub_loader_unset): likewise
15098 (grub_loader_boot): likewise
15099 * conf/common.rmk: new module boot.mod
15100 (pkglib_MODULES): add boot.mod
15101 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
15102 (grub_emu_SOURCES): likewise
15103 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
15104 (grub_emu_SOURCES): likewise
15105 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
15106 (grub_emu_SOURCES): likewise
15107 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
15108 (grub_emu_SOURCES): likewise
15109 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
15110 (grub_emu_SOURCES): likewise
15111 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
15112 (grub_emu_SOURCES): likewise
15113 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
15114 (grub_emu_SOURCES): likewise
15116 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
15118 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
15120 * kern/misc.c (grub_itoa): Removed function
15121 (grub_ltoa): likewise
15122 (grub_vsprintf): use grub_lltoa
15124 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
15128 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
15129 * conf/i386-coreboot.rmk: likewise
15130 * conf/i386-ieee1275.rmk: likewise
15131 * conf/powerpc-ieee1275.rmk: likewise
15133 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
15135 * INSTALL: Add that `./autogen.sh' needs to be run before
15138 2009-04-14 Bean <bean123ch@gmail.com>
15140 * Makefile.in (pkglib_DATA): Add handler.lst.
15141 (handler.lst): New rule.
15143 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
15144 * conf/i386-coreboot.rmk: Likewise.
15145 * conf/i386-ieee1275.rmk: Likewise.
15146 * conf/i386-efi.rmk: Likewise.
15147 * conf/x86_64-efi.rmk: Likewise.
15148 * conf/powerpc-ieee1275.rmk: Likewise.
15149 * conf/sparc64-ieee1275.rmk: Likewise.
15151 * genhandlerlist.sh: New file.
15153 * genmk.rb: Add rules to generate handler.lst.
15155 * include/grub/normal.h (grub_file_getline): New function definition.
15156 (read_handler_list): Likewise.
15157 (free_handler_list): Likewise.
15159 * include/grub/term.h (grub_term_register_input): Add name parameter
15160 for auto generation of handler.lst.
15161 (grub_term_register_output): Likewise.
15163 * normal/handler.c: New file.
15165 * normal/main.c (get_line): Renamed to grub_file_getline.
15166 (read_config_file): Use the newly renamed grub_file_getline.
15167 (read_command_list): Likewise.
15168 (read_fs_list): Likewise.
15169 (grub_normal_execute): Call read_handler_list to parse handler.lst.
15170 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
15172 * term/efi/console.c (grub_console_init): Add name parameter for auto
15173 generation of handler.lst.
15174 * term/gfxterm.c: Likewise.
15175 * term/i386/pc/at_keyboard.c: Likewise.
15176 * term/i386/pc/console.c: Likewise.
15177 * term/i386/pc/serial.c: Likewise.
15178 * term/i386/pc/vesafb.c: Likewise.
15179 * term/i386/pc/vga.c: Likewise.
15180 * term/i386/pc/vga_text.c: Likewise.
15181 * term/ieee1275/ofconsole.c: Likewise.
15182 * term/usb_keyboard.c: Likewise.
15184 2009-04-14 Bean <bean123ch@gmail.com>
15186 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
15187 properly with null character.
15189 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
15191 * configure: Remove.
15192 * config.h.in: Likewise.
15193 * stamp-h.in: Likewise.
15194 * DISTLIST: Likewise.
15195 * conf/common.mk: Likewise.
15196 * conf/i386-coreboot.mk: Likewise.
15197 * conf/i386-efi.mk: Likewise.
15198 * conf/i386-ieee1275.mk: Likewise.
15199 * conf/i386.mk: Likewise.
15200 * conf/i386-pc.mk: Likewise.
15201 * conf/powerpc-ieee1275.mk: Likewise.
15202 * conf/sparc64-ieee1275.mk: Likewise.
15203 * conf/x86_64-efi.mk: Likewise.
15205 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
15208 2009-04-14 John Stanley <jpsinthemix@verizon.net>
15209 David S. Miller <davem@davemloft.net>
15211 * util/hostdisk.c (make_device_name): Fix buffer length
15214 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
15216 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
15217 <sys/param.h> and <sys/sysctl.h>.
15218 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
15219 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
15220 opening the device and reset them afterwards.
15222 2009-04-13 Pavel Roskin <proski@gnu.org>
15224 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
15225 Reported by John Stanley <jpsinthemix@verizon.net>
15227 2009-04-13 Robert Millan <rmh@aybabtu.com>
15229 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
15230 that name for menuentries when appropriate.
15232 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
15234 * util/grub.d/10_freebsd.in: Add a missing `fi'.
15236 2009-04-13 Robert Millan <rmh@aybabtu.com>
15238 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
15239 to Linux, simply abort telling the user it's no longer supported.
15241 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
15243 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
15244 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
15245 `freebsd_loadenv' only when devices.hints exist.
15247 2009-04-13 Pavel Roskin <proski@gnu.org>
15249 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
15251 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
15253 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
15255 (grub_drive): Likewise.
15257 2009-04-13 David S. Miller <davem@davemloft.net>
15259 * kern/sparc64/ieee1275/ieee1275.c: New file.
15260 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
15261 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
15262 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
15263 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
15264 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
15265 grub_ieee1275_alloc_physmem): Declare new exported functions.
15267 * include/grub/sparc64/ieee1275/loader.h: New file.
15268 * include/grub/sparc64/ieee1275/memory.h: Likewise.
15269 * include/grub/sparc64/kernel.h: Likewise.
15270 * loader/sparc64/ieee1275/linux.c: Likewise.
15272 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
15273 (grub_fstest_SOURCES): Likewise.
15275 * util/hostdisk.c (make_device_name): Do not make any assumptions
15276 about the length of drive names.
15278 * kern/dl.c (grub_dl_load_file): Close file immediately when
15279 we are done using it.
15281 2009-04-12 David S. Miller <davem@davemloft.net>
15283 * kern/misc.c (grub_ltoa): Fix cast when handling negative
15284 values. Noticed by Pavel Roskin.
15286 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
15289 * genmk.rb: Add more flexible image type specification, also
15290 pass --strip-unneeded to objcopy.
15291 * conf/i386-pc.rmk: Use *_FORMAT.
15292 * conf/i386-pc.mk: Rebuilt.
15294 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
15295 (OFDISK_HASH_SZ): Define.
15296 (ofdisk_hash): New hash table.
15297 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
15298 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
15299 instead of device phandle which is not unique.
15301 * kern/sparc64/ieee1275/init.c: Delete, replace with...
15302 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
15303 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
15304 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
15305 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
15306 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
15307 GRUB_KERNEL_MACHINE_DATA_END): Define.
15308 (grub_kernel_image_size, grub_total_module_size): Declare.
15310 2009-04-12 Pavel Roskin <proski@gnu.org>
15312 * configure.ac: Change the logic when we check for target tools.
15313 Do it when the target is specified and it's different from the
15314 specified value of the host.
15316 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
15318 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
15319 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
15320 GNU/kFreeBSD. Check if a device is a character device. Use
15321 DIOCGMEDIASIZE to get the size.
15322 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
15323 support for GNU/kFreeBSD.
15324 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
15325 is a character device instead of a block device. Add support for
15326 FreeBSD device names.
15328 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
15329 is a character device instead of a block device.
15331 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
15332 is a character device instead of a block device.
15334 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
15336 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
15337 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
15338 FreeBSD. Check if a device is a character device. Use
15339 DIOCGMEDIASIZE to get the size.
15340 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
15341 support for FreeBSD.
15342 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
15343 is a character device instead of a block device. Add support for
15344 FreeBSD device names.
15346 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
15347 a character device instead of a block device.
15348 (grub_util_check_char_device): New function.
15350 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
15351 a character device instead of a block device.
15353 * include/grub/util/getroot.h (grub_util_check_char_device): New
15356 2009-04-11 David S. Miller <davem@davemloft.net>
15358 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
15360 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
15361 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
15362 function, if present.
15363 (__bswapdi2): Likewise.
15365 * include/grub/sparc64/ieee1275/boot.h: New file.
15366 * boot/sparc64/ieee1275/boot.S: Likewise.
15367 * boot/sparc64/ieee1275/diskboot.S: Likewise.
15369 * kern/misc.c (grub_ltoa): New function.
15370 (grub_vsprintf): Use it to format 'long' integers.
15372 2009-04-10 David S. Miller <davem@davemloft.net>
15374 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
15375 slots are of type grub_ieee1275_cell_t.
15376 (grub_nand_read): Likewise.
15377 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
15378 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
15379 macros are used to compare values in arg/ret block of the call.
15380 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
15381 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
15382 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
15383 grub_ieee1275_instance_to_path, grub_ieee1275_write,
15384 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
15385 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
15386 grub_ieee1275_close, grub_ieee1275_set_property,
15387 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
15388 grub_ieee1275_cell_t.
15389 * kern/ieee1275/openfw.c (grub_map): Likewise.
15390 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
15391 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
15393 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
15394 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15395 (grub_devalias_iterate): Likewise.
15397 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15401 * fs/ufs.c (INODE_NBLOCKS): new definition
15402 (struct grub_ufs_dirent): added fields for non-BSD dirents
15403 (grub_ufs_get_file_block): fixed double indirect handling
15404 (grub_ufs_lookup_symlink): use more robust way to determine whether
15406 (grub_ufs_find_file): support for non-BSD dirents
15407 (grub_ufs_dir): support for non-BSD dirents
15409 2009-04-10 Bean <bean123ch@gnail.com>
15411 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
15412 attribute, otherwise the size would be wrong for i386 platform.
15414 * include/grub/pci.h (grub_pci_read_word): New inline function.
15415 (grub_pci_read_byte): Likewise.
15416 (grub_pci_write): Likewise.
15417 (grub_pci_write_word): Likewise.
15418 (grub_pci_write_byte): Likewise.
15420 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
15422 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
15423 (find_framebuf): Scan pci to locate the frame buffer address.
15425 * commands/efi/fixvideo.c: New file.
15427 * commands/efi/loadbios.c: Likewise.
15429 * commands/memrw.c: Likewise.
15431 * util/grub-dumpbios.in: Likewise.
15433 * conf/common.rmk (grub-dumpbios): New utility.
15434 (pkglib_MODULES): New module memrw.mod.
15435 (memrw_mod_SOURCE): New macro.
15436 (memrw_mod_CFLAGS): Likewise.
15437 (memrw_mod_LDFLAGS): Likewise.
15439 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
15441 (loadbios_mod_SOURCE): New macro.
15442 (loadbios_mod_CFLAGS): Likewise.
15443 (loadbios_mod_LDFLAGS): Likewise.
15444 (fixvideo_mod_SOURCE): Likewise.
15445 (fixvideo_mod_CFLAGS): Likewise.
15446 (fixvideo_mod_LDFLAGS): Likewise.
15448 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
15450 (loadbios_mod_SOURCE): New macro.
15451 (loadbios_mod_CFLAGS): Likewise.
15452 (loadbios_mod_LDFLAGS): Likewise.
15453 (fixvideo_mod_SOURCE): Likewise.
15454 (fixvideo_mod_CFLAGS): Likewise.
15455 (fixvideo_mod_LDFLAGS): Likewise.
15457 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
15459 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
15461 2009-04-07 David S. Miller <davem@davemloft.net>
15463 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
15464 support for R_SPARC_OLO10 relocations. Fix compile warning for
15465 R_SPARC_WDISP30 case.
15466 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
15468 2009-04-06 Pavel Roskin <proski@gnu.org>
15470 * include/grub/misc.h (ARRAY_SIZE): New macro.
15471 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
15473 * loader/i386/linux.c (allocate_pages): Use free_pages().
15474 (grub_linux_unload): Don't use free_pages().
15475 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
15476 wrong index. Treat all other modes as text modes.
15477 (grub_cmd_linux): Initialize vid_mode unconditionally to
15478 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
15480 * commands/help.c (print_command_help): Use cmd->prio, not
15481 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
15483 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15487 * parttool/pcpart.c: new file
15488 * commands/parttool.c: likewise
15489 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
15490 (parttool_mod_SOURCES): new variable
15491 (parttool_mod_CFLAGS): likewise
15492 (parttool_mod_LDFLAGS): likewise
15493 (pcpart_mod_SOURCES): likewise
15494 (pcpart_mod_CFLAGS): likewise
15495 (pcpart_mod_LDFLAGS): likewise
15496 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
15497 and parttool/pcpart.c
15498 * conf/i386-efi.rmk: likewise
15499 * conf/i386-ieee1275.rmk: likewise
15500 * conf/i386-pc.rmk: likewise
15501 * conf/powerpc-ieee1275.rmk: likewise
15502 * conf/sparc64-ieee1275.rmk: likewise
15503 * conf/x86_64-ieee1275.rmk: likewise
15505 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15507 Support for mtime and further expandability of dir command
15509 * include/grub/lib/datetime.h: moved to ...
15510 * include/grub/datetime.h: ... moved here and added
15511 declaration of grub_unixtime2datetime. All users updated
15512 * include/grub/fs.h: new syntax for dir and mtime functions in
15514 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
15515 and GRUB_FSHELP_FLAGS_MASK
15516 * commands/ls.c (grub_ls_list_files): Write mtime in long format
15517 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
15518 (grub_ext2_mtime): new function
15519 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
15520 (grub_hfsplus_mtime): new function
15521 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
15522 (GRUB_UFS_ATTR_FILE): likewise
15523 (GRUB_UFS_ATTR_LNK): likewise
15524 (struct grub_ufs_sblock): new fields mtime
15525 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
15527 (grub_ufs_dir): mtime support
15528 (grub_ufs_mtime): new function
15529 * fs/affs.c (grub_affs_dir): use new dir syntax
15530 * fs/afs.c (grub_afs_dir): likewise
15531 * fs/cpio.c (grub_cpio_dir): likewise
15532 * fs/fat.c (grub_fat_find_dir): likewise
15533 * fs/hfs.c (grub_hfs_dir): likewise
15534 * fs/iso9660.c (grub_iso9660_dir): likewise
15535 * fs/jfs.c (grub_jfs_dir): likewise
15536 * fs/minix.c (grub_minix_dir): likewise
15537 * fs/ntfs.c (grub_ntfs_dir): likewise
15538 * fs/reiserfs.c (grub_reiserfs_dir): likewise
15539 * fs/sfs.c (grub_sfs_dir): likewise
15540 * fs/xfs.c (grub_xfs_dir): likewise
15541 * util/hostfs.c (grub_hostfs_dir): likewise
15542 * lib/datetime.c: moved to ...
15543 * normal/datetime.c: ... moved here
15544 (grub_unixtime2datetime): new function
15545 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
15546 * normal/completion.c (iterate_dir): use new dir syntax
15547 * normal/misc.c (grub_normal_print_device_info): tell the
15548 last modification time of a volume
15549 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
15550 * conf/common.rmk: added lib/datetime.c to ls.mod
15551 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
15552 (normal_mod_SOURCES): likewise
15553 (datetime_mod_SOURCES): Removed lib/datetime.c
15554 * conf/i386-efi.rmk: likewise
15555 * conf/i386-ieee1275.rmk: likewise
15556 * conf/i386-pc.rmk: likewise
15557 * conf/powerpc-ieee1275.rmk: likewise
15558 * conf/sparc64-ieee1275.rmk: likewise
15559 * conf/x86_64-efi.rmk: likewise
15561 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15563 Trim trailing spaces in FAT label and support mtools-like labels
15565 * fs/fat.c (grub_fat_iterate_dir): New function based
15566 on grub_fat_find_dir
15567 (grub_fat_find_dir): use grub_fat_iterate_dir
15568 (grub_fat_label): likewise
15570 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
15572 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
15574 remove extraneous kernel_elf_HEADERS
15576 2009-04-04 Bean <bean123ch@gnail.com>
15578 * include/grub/util/misc.h: Add dummy function fsync for mingw.
15580 * util/misc.c: Likewise.
15582 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
15584 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
15585 instead of grub_printf.
15587 2009-04-03 Robert Millan <rmh@aybabtu.com>
15589 * loader/i386/linux.c (grub_linux_setup_video): Fill
15590 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
15591 values from `mode info' structure instead of hardcoded
15594 2009-04-01 Pavel Roskin <proski@gnu.org>
15596 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
15598 * genmk.rb: Likewise.
15599 * configure.ac: Likewise.
15601 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
15603 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
15604 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
15606 2009-04-01 David S. Miller <davem@davemloft.net>
15608 * normal/sparc64/setjmp.S: Fix setjmp implementation.
15609 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
15610 (grub_setjmp): Mark with 'returns_twice' attribute.
15611 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
15612 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
15613 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
15615 2009-04-01 Robert Millan <rmh@aybabtu.com>
15617 Reapply fix from 2008-07-28 which was accidentally reverted; also
15618 perform the same fix to a similar check in same function.
15620 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
15621 with the same number are found, just use issue a warning with
15622 grub_dprintf(), as this error has been reported to be non-fatal.
15624 2009-03-31 Pavel Roskin <proski@gnu.org>
15626 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
15627 for cross-compilation.
15629 2009-03-30 Robert Millan <rmh@aybabtu.com>
15631 Fix i386-ieee1275 build.
15633 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
15634 Remove declaration.
15636 2009-03-30 Pavel Roskin <proski@gnu.org>
15638 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
15639 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
15640 zero-terminated, rely only on the strlen value. Fix comparison
15641 of strings differing in length.
15643 2009-03-30 Robert Millan <rmh@aybabtu.com>
15645 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
15646 checking for abi version. Improve error messages on BIOS to notify
15647 user about `linux16' command.
15649 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15653 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
15654 in case of collision
15655 * disk/scsi.c (grub_scsi_open): free scsi in case of error
15657 2009-03-29 Robert Millan <rmh@aybabtu.com>
15659 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
15660 set `vid_mode' accordingly.
15661 (grub_linux_boot): Process `vid_mode' and set video mode.
15663 2009-03-29 Robert Millan <rmh@aybabtu.com>
15665 * util/grub.d/10_linux.in (linux_entry): New function.
15666 Factorize generation of Linux boot entries.
15668 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
15670 Make the format of Environment Block plain text. The boot loader
15671 part is not tested well yet.
15673 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
15675 (envblk): Likewise.
15676 (usage): Remove "info" and "clear". Add "unset". Update the
15677 description of "set", as this does not delete variables any
15679 (create_envblk_file): Complete rewrite.
15680 (open_envblk_file): Likewise.
15681 (cmd_info): Removed.
15682 (cmd_list): Likewise.
15683 (cmd_set): Likewise.
15684 (cmd_clear): Likewise.
15685 (list_variables): New function.
15686 (write_envblk): Likewise.
15687 (set_variables): Likewise.
15688 (unset_variables): Likewise.
15689 (main): Complete rewrite.
15691 * commands/loadenv.c (buffer): Removed.
15692 (envblk): Likewise.
15693 (open_envblk_file): New function.
15694 (read_envblk_file): Complete rewrite.
15695 (grub_cmd_load_env): Likewise.
15696 (grub_cmd_list_env): Likewise.
15697 (struct blocklist): New struct.
15698 (free_blocklists): New function.
15699 (check_blocklists): Likewise.
15700 (write_blocklists): Likewise.
15701 (grub_cmd_save_env): Complete rewrite.
15703 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
15704 a plain text signature.
15705 (GRUB_ENVBLK_MAXLEN): Removed.
15706 (struct grub_envblk): Complete rewrite.
15707 (grub_envblk_find): Removed.
15708 (grub_envblk_insert): Likewise.
15709 (grub_envblk_open): New prototype.
15710 (grub_envblk_set): Likewise.
15711 (grub_envblk_delete): Put const to VALUE.
15712 (grub_envblk_iterate): Put const to NAME and VALUE.
15713 (grub_envblk_close): New prototype.
15714 (grub_envblk_buffer): New inline function.
15715 (grub_envblk_size): Likewise.
15717 * lib/envblk.c: Include grub/mm.h.
15718 (grub_env_find): Removed.
15719 (grub_envblk_open): New function.
15720 (grub_envblk_close): Likewise.
15721 (escaped_value_len): Likewise.
15722 (find_next_line): Likewise.
15723 (grub_envblk_insert): Removed.
15724 (grub_envblk_set): New function.
15725 (grub_envblk_delete): Complete rewrite.
15726 (grub_envblk_iterate): Likewise.
15728 2009-03-28 Robert Millan <rmh@aybabtu.com>
15730 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
15731 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
15732 variables. Use 16-bit loader.
15733 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
15735 * kern/i386/loader.S (grub_linux_boot): Rename to ...
15736 (grub_linux16_boot): ... this. Update all users.
15737 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
15738 (grub_linux_boot): ... this. Update all users.
15740 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
15741 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
15742 commands to `linux16' and `initrd16'.
15743 (GRUB_MOD_FINI(linux)): Rename to ...
15744 (GRUB_MOD_FINI(linux16)): ... this.
15746 2009-03-24 Pavel Roskin <proski@gnu.org>
15748 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
15749 not just for compilation.
15751 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
15753 Move multiboot helper out of kernel
15755 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
15756 `loader/i386/multiboot_helper.S'.
15757 * conf/i386-coreboot.rmk: Likewise
15758 * conf/i386-ieee1275.rmk: Likewise
15760 * kern/i386/loader.S: Move multiboot helpers from here...
15761 * loader/i386/multiboot_helper.S: ...moved here
15762 * include/grub/i386/loader.h: Move declarations of multiboot
15763 helpers from here...
15764 * include/grub/i386/multiboot.h: ...moved here
15765 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
15767 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
15769 * kern/env.c (grub_env_context_open): Added an argument to specify
15770 whether a new context inherits exported variables from current
15771 one. This is useful when making a sandbox to interpret a config
15773 All callers updated.
15775 * include/grub/env.h (grub_env_context_open): Updated the prototype.
15777 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
15779 * kern/env.c (grub_env_context_close): Fix memory leaks.
15781 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
15783 * normal/main.c (grub_normal_execute): Added an argument
15784 BATCH to specify if an interactive interface should be provided
15785 after reading a config file.
15786 All callers updated.
15787 (read_command_list): Prevent being executed twice.
15788 (read_fs_list): Likewise.
15790 * include/grub/normal.h (grub_normal_execute): Updated the
15793 2009-03-22 Pavel Roskin <proski@gno.org>
15795 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
15797 * kern/i386/pc/startup.S: Likewise.
15798 * kern/i386/efi/startup.S: Likewise.
15799 * kern/i386/ieee1275/startup.S: Likewise.
15800 * kern/i386/coreboot/startup.S: Likewise.
15801 * kern/x86_64/efi/startup.S: Likewise.
15803 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
15804 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
15805 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
15807 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
15809 Bugfixes in multiboot for bugs uncovered by solaris kernel.
15811 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
15813 Use vaddr of correct segment for entry_point.
15815 2009-03-21 Bean <bean123ch@gmail.com>
15817 * commands/blocklist.c: Add include file <grub/command.h>, remove
15818 <grub/normal.h> and <grub/arg.h>.
15819 (grub_cmd_blocklist): Use the new command interface.
15820 (GRUB_MOD_INIT): Likewise.
15821 (GRUB_MOD_FINI): Likewise.
15822 * commands/boot.c: Likewise.
15823 * commands/cat.c: Likewise.
15824 * commands/cmp.c: Likewise.
15825 * commands/configfile.c: Likewise.
15826 * commands/crc.c: Likewise.
15827 * commands/echo.c: Likewise.
15828 * commands/halt.c: Likewise.
15829 * commands/handler.c: Likewise.
15830 * commands/hdparm.c: Likewise.
15831 * commands/help.c: Likewise.
15832 * commands/hexdump.c: Likewise.
15833 * commands/loadenv.c: Likewise.
15834 * commands/ls.c: Likewise.
15835 * commands/lsmmap.c: Likewise.
15836 * commands/lspci.c: Likewise.
15837 * commands/loadenv.c: Likewise.
15838 * commands/read.c: Likewise.
15839 * commands/reboot.c: Likewise.
15840 * commands/search.c: Likewise.
15841 * commands/sleep.c: Likewise.
15842 * commands/test.c: Likewise.
15843 * commands/usbtest.c: Likewise.
15844 * commands/videotest.c: Likewise.
15845 * commands/i386/cpuid.c: Likewise.
15846 * commands/i386/pc/halt.c: Likewise.
15847 * commands/i386/pc/play.c: Likewise.
15848 * commands/i386/pc/pxecmd.c: Likewise.
15849 * commands/i386/pc/vbeinfo.c: Likewise.
15850 * commands/i386/pc/vbetest.c: Likewise.
15851 * commands/ieee1275/suspend.c: Likewise.
15852 * disk/loopback.c: Likewise.
15853 * font/font_cmd.c: Likewise.
15854 * hello/hello.c: Likewise.
15855 * loader/efi/appleloader.c: Likewise.
15856 * loader/efi/chainloader.c: Likewise.
15857 * loader/i386/bsd.c: Likewise.
15858 * loader/i386/efi/linux.c: Likewise.
15859 * loader/i386/ieee1275/linux.c: Likewise.
15860 * loader/i386/linux.c: Likewise.
15861 * loader/i386/pc/chainloader.c: Likewise.
15862 * loader/i386/pc/linux.c: Likewise.
15863 * loader/powerpc/ieee1275/linux.c: Likewise.
15864 * loader/multiboot_loader.c: Likewise.
15865 * term/gfxterm.c: Likewise.
15866 * term/i386/pc/serial.c: Likewise.
15867 * term/terminfo.c: Likewise.
15869 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
15870 * term/i386/pc/vga.c: Likewise.
15871 * video/readers/jpeg.c: Likewise.
15872 * video/readers/png.c: Likewise.
15873 * video/readers/tga.c: Likewise.
15875 * util/grub-fstest (cmd_loopback): Removed.
15876 (cmd_blocklist): Likewise.
15877 (cmd_ls): Likewise.
15878 (grub_register_command): Likewise.
15879 (grub_unregister_command): Likewise.
15880 (execute_command): Use grub_command_find to locate command and execute
15883 * include/grub/efi/chainloader.h: Removed.
15884 * loader/efi/chainloader_normal.c: Likewise.
15885 * loader/i386/bsd_normal.c: Likewise.
15886 * loader/i386/pc/chainloader_normal.c: Likewise.
15887 * loader/i386/pc/multiboot_normal.c: Likewise.
15888 * loader/linux_normal.c: Likewise.
15889 * loader/multiboot_loader_normal.c: Likewise.
15890 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
15892 * gencmdlist.sh: Scan new registration command grub_register_extcmd
15893 and grub_register_command_p1.
15895 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
15896 kern/command.c, lib/arg.c and commands/extcmd.c.
15897 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
15898 (minicmd_mod_SOURCES): New variable.
15899 (minicmd_mod_CFLAGS): Likewise.
15900 (minicmd_mod_LDFLAGS): Likewise.
15901 (extcmd_mod_SOURCES): Likewise.
15902 (extcmd_mod_CFLAGS): Likewise.
15903 (extcmd_mod_LDFLAGS): Likewise.
15904 (boot_mod_SOURCES): Removed.
15905 (boot_mod_CFLAGS): Likewise.
15906 (boot_mod_LDFLAGS): Likewise.
15908 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
15910 (kernel_img_HEADERS): Add command.h.
15911 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
15912 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
15914 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
15915 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
15916 remove the corresponding normal mode command.
15917 (normal_mod_SOURCES): Remove normal/arg.c.
15918 * conf/i386-coreboot.rmk: Likewise.
15919 * conf/i386-efi.rmk: Likewise.
15920 * conf/i386-ieee1275.rmk: Likewise.
15921 * conf/powerpc-ieee1275.rmk: Likewise.
15922 * conf/x86_64-efi.rmk: Likewise.
15924 * include/grub/arg.h: Move from here ...
15925 * include/grub/lib/arg.h: ... to here.
15927 * normal/arg.c: Move from here ...
15928 * lib/arg.c: ... to here.
15930 * commands/extcmd.c: New file.
15931 * commands/minicmd.c: Likewise.
15932 * include/grub/command.h: Likewise.
15933 * include/grub/extcmd.h: Likewise.
15934 * kern/command.c: Likewise.
15935 * kern/corecmd.c: Likewise.
15937 * kern/list.c (grub_list_iterate): Return int instead of void.
15938 (grub_list_insert): New function.
15939 (grub_prio_list_insert): Likewise.
15941 * kern/rescue.c (grub_rescue_command): Removed.
15942 (grub_rescue_command_list): Likewise.
15943 (grub_rescue_register_command): Likewise.
15944 (grub_rescue_unregister_command): Likewise.
15945 (grub_rescue_cmd_boot): Move to minicmd.c
15946 (grub_rescue_cmd_help): Likewise.
15947 (grub_rescue_cmd_info): Likewise.
15948 (grub_rescue_cmd_boot): Likewise.
15949 (grub_rescue_cmd_testload): Likewise.
15950 (grub_rescue_cmd_dump): Likewise.
15951 (grub_rescue_cmd_rmmod): Likewise.
15952 (grub_rescue_cmd_lsmod): Likewise.
15953 (grub_rescue_cmd_exit): Likewise.
15954 (grub_rescue_print_devices): Moved to corecmd.c.
15955 (grub_rescue_print_files): Likewise.
15956 (grub_rescue_cmd_ls): Likewise.
15957 (grub_rescue_cmd_insmod): Likewise.
15958 (grub_rescue_cmd_set): Likewise.
15959 (grub_rescue_cmd_unset): Likewise.
15960 (attempt_normal_mode): Use grub_command_find to get normal module.
15961 (grub_enter_rescue_mode): Use grub_register_core_commands to register
15962 commands, remove grub_rescue_register_command calls.
15964 * normal/command.c (grub_register_command): Removed.
15965 (grub_unregister_command): Likewise.
15966 (grub_command_find): Likewise.
15967 (grub_iterate_commands): Likewise.
15968 (rescue_command): Likewise.
15969 (export_command): Moved to corecmd.c.
15970 (set_command): Removed.
15971 (unset_command): Likewise.
15972 (insmod_command): Likewise.
15973 (rmmod_command): Likewise.
15974 (lsmod_command): Likewise.
15975 (grub_command_init): Likewise.
15977 * normal/completion.c (iterate_command): Use cmd->prio to check for
15979 (complete_arguments): Use grub_extcmd_t structure to find options.
15980 (grub_normal_do_completion): Change function grub_iterate_commands to
15981 grub_command_iterate.
15983 * normal/execute.c (grub_script_execute_cmd): No need to parse
15986 * normal/main.c (grub_dyncmd_dispatcher): New function.
15987 (read_command_list): Register unload commands as dyncmd.
15988 (grub_cmd_normal): Use new command interface, register rescue,
15989 unregister normal at entry, register normal, unregister rescue at exit.
15991 * include/grub/list.h (grub_list_test_t): New type.
15992 (grub_list_iterate): Return int instead of void.
15993 (grub_list_insert): New function.
15994 (GRUB_AS_NAMED_LIST_P): New macro.
15995 (GRUB_AS_PRIO_LIST): Likewise.
15996 (GRUB_AS_PRIO_LIST_P): Likewise.
15997 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
15998 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
15999 (grub_prio_list): New structure.
16000 (grub_prio_list_insert): New function.
16001 (grub_prio_list_remove): New inline function.
16003 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
16004 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
16005 (GRUB_COMMAND_FLAG_MENU): Likewise.
16006 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16007 (GRUB_COMMAND_FLAG_TITLE): Likewise.
16008 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16009 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
16010 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
16011 (grub_command): Likewise.
16012 (grub_register_command): Likewise.
16013 (grub_command_find): Likewise.
16014 (grub_iterate_commands): Likewise.
16015 (grub_command_init): Likewise.
16016 (grub_arg_parse): Likewise.
16017 (grub_arg_show_help): Likewise.
16019 * include/grub/rescue.h (grub_rescue_register_command): Removed.
16020 (grub_rescue_unregister_command): Likewise.
16022 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
16023 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
16024 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
16026 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
16027 grub_rescue_cmd_initrd.
16028 * include/grub/i386/loader.h: Likewise.
16029 * include/grub/x86_64/loader.h: Likewise.
16031 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
16033 2009-03-21 Bean <bean123ch@gmail.com>
16035 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
16036 instead of stat in mingw environment.
16038 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
16040 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
16042 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
16045 2009-03-21 Bean <bean123ch@gmail.com>
16047 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
16048 out of range error.
16050 2009-03-18 Michel Dänzer <michel@daenzer.net>
16052 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
16053 checking inode flags for EXT4_EXTENTS_FLAG.
16055 2009-03-18 Robert Millan <rmh@aybabtu.com>
16057 * loader/i386/linux.c: Include `<grub/video.h>' and
16058 `<grub/i386/pc/vbe.h>'..
16059 (grub_linux_setup_video): New function. Loosely based on the EFI one.
16060 (grub_linux32_boot): Attempt to configure video settings with
16061 grub_linux_setup_video().
16062 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
16063 to avoid grub_console_fini() which would step out of graphical mode
16066 2009-03-14 Robert Millan <rmh@aybabtu.com>
16068 Fix build on powerpc.
16069 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
16071 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
16073 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
16074 background image command.
16076 2009-03-12 Colin D Bennett <colin@gibibit.com>
16078 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
16079 (grub_gfxterm_putchar): Extract pairs of identical calls to
16080 draw_cursor out of conditional blocks.
16082 2009-03-11 Pavel Roskin <proski@gnu.org>
16084 * fs/hfs.c (grub_hfs_strncasecmp): New function.
16085 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
16087 2009-03-11 Robert Millan <rmh@aybabtu.com>
16089 * loader/i386/multiboot_elfxx.c
16090 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
16092 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
16094 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
16097 2009-03-11 Robert Millan <rmh@aybabtu.com>
16099 * loader/i386/multiboot.c (code_size): New variable.
16100 (grub_multiboot): Define offsets by adding to `code_size' rather
16101 than subtracting from `grub_multiboot_payload_size'. Provide
16102 4-byte alignment to MBI and others by increasing
16103 `boot_loader_name_length' appropriately.
16105 * loader/i386/multiboot_elfxx.c
16106 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
16108 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
16110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
16113 2009-03-08 Robert Millan <rmh@aybabtu.com>
16115 Make loader/i386/linux.c usable on i386-pc again.
16117 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
16119 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
16122 2009-03-07 Bean <bean123ch@gmail.com>
16124 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
16127 2009-03-06 Robert Millan <rmh@aybabtu.com>
16129 Fix display issue on terminals with screen size other than 80x25
16130 (e.g. gfxterm with resolution higher than 640x480).
16132 * normal/main.c (grub_normal_init_page): Display title text in a
16133 position relative to the center of the terminal instead of relying
16134 on a hardcoded offset.
16136 2009-03-04 Robert Millan <rmh@aybabtu.com>
16138 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
16141 * Makefile.in (host_kernel): New variable.
16142 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
16143 scripts instead of just the windows one.
16144 * configure.ac: Initialize and AC_SUBST `host_kernel'.
16146 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
16148 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
16150 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16151 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16152 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16153 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16154 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16155 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16157 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
16159 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
16160 or if there's no space for the disk label and print the partition number on a
16163 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
16165 * util/misc.c: Include <time.h>.
16166 (grub_millisleep): New function.
16168 2009-03-04 Bean <bean123ch@gmail.com>
16170 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
16171 another option -mno-red-zone.
16173 * commands/handler.c: Change module description.
16175 * kern/handler.c: Add missing space at the end of description line.
16177 * kern/list.c: Likewise.
16179 2009-03-03 Robert Millan <rmh@aybabtu.com>
16181 Move more components to the relocation area, and fix mbi pointer
16182 handling to use the destination rather than the origin (thanks to
16183 Vladimir Serbinenko for spotting).
16185 * loader/i386/multiboot.c (mbi_dest): New variable.
16186 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
16187 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
16190 2009-03-01 Bean <bean123ch@gmail.com>
16192 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
16193 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
16194 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
16195 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
16197 * loader/i386/efi/linux.c (acpi_guid): New variable.
16198 (acpi_guid): Likewise.
16199 (EBDA_SEG_ADDR): New constant.
16200 (LOW_MEM_ADDR): Likewise.
16201 (FAKE_EBDA_SEG): Likewise.
16202 (fake_bios_data): New function.
16203 (grub_linux_boot): Call fake_bios_data.
16205 2009-03-01 Bean <bean123ch@gmail.com>
16207 * commands/terminal.c: Removed.
16209 * commands/handler.c: New file.
16211 * include/grub/list.h: Likewise.
16213 * include/grub/handler.h: Likewise.
16215 * kern/list.c: Likewise.
16217 * kern/handler.c: Likewise.
16219 * kern/term.h: Include header file <grub/handler.h>.
16220 (grub_term_input): Move next field to the beginning.
16221 (grub_term_output): Likewise.
16222 (grub_term_input_class): New variable.
16223 (grub_term_output_class): Likewise.
16224 (grub_term_register_input): Changed to inline function.
16225 (grub_term_register_output): Likewise.
16226 (grub_term_unregister_input): Likewise.
16227 (grub_term_unregister_output): Likewise.
16228 (grub_term_set_current_input): Likewise.
16229 (grub_term_set_current_output): Likewise.
16230 (grub_term_get_current_input): Likewise.
16231 (grub_term_get_current_output): Likewise.
16232 (grub_term_iterate_input): Removed.
16233 (grub_term_iterate_output): Likewise.
16235 * kern/term.c (grub_term_list_input): Removed.
16236 (grub_term_list_output): Likewise.
16237 (grub_term_input_class): New variable.
16238 (grub_term_output_class): Likewise.
16239 (grub_cur_term_input): Change variable as macro.
16240 (grub_cur_term_output): Likewise.
16241 (grub_term_register_input): Removed.
16242 (grub_term_register_output): Likewise.
16243 (grub_term_unregister_input): Likewise.
16244 (grub_term_unregister_output): Likewise.
16245 (grub_term_set_current_input): Likewise.
16246 (grub_term_set_current_output): Likewise.
16247 (grub_term_iterate_input): Likewise.
16248 (grub_term_iterate_output): Likewise.
16249 (grub_term_get_current_input): Likewise.
16250 (grub_term_get_current_output): Likewise.
16252 * util/grub-editenv.c: Include header file <grub/handler.h>.
16253 (grub_term_get_current_input): Removed.
16254 (grub_term_get_current_output): Likewise.
16255 (grub_term_input_class): New variable.
16256 (grub_term_output_class): Likewise.
16258 * util/grub-fstest.c (grub_term_get_current_input): Removed.
16259 (grub_term_get_current_output): Likewise.
16260 (grub_term_input_class): New variable.
16261 (grub_term_output_class): Likewise.
16263 * util/grub-probe.c (grub_term_get_current_input): Removed.
16264 (grub_term_get_current_output): Likewise.
16265 (grub_term_input_class): New variable.
16266 (grub_term_output_class): Likewise.
16268 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
16269 (grub_term_get_current_output): Likewise.
16270 (grub_term_input_class): New variable.
16271 (grub_term_output_class): Likewise.
16273 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
16274 (terminal_mod_SOURCES): Likewise.
16275 (terminal_mod_CFLAGS): Likewise.
16276 (terminal_mod_LDFLAGS): Likewise.
16278 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
16280 (kernel_img_SOURCES): Add list.c and handler.c.
16281 (kernel_img_HEADERS): Add list.h and handler.h.
16283 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
16285 (kernel_mod_SOURCES): Add list.c and handler.c.
16286 (kernel_mod_HEADERS): Add list.h and handler.h.
16288 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
16290 (kernel_elf_SOURCES): Add list.c and handler.c.
16291 (kernel_elf_HEADERS): Add list.h and handler.h.
16293 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
16295 (kernel_elf_SOURCES): Add list.c and handler.c.
16296 (kernel_elf_HEADERS): Add list.h and handler.h.
16298 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
16300 (kernel_mod_SOURCES): Add list.c and handler.c.
16301 (kernel_mod_HEADERS): Add list.h and handler.h.
16303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
16305 (kernel_elf_SOURCES): Add list.c and handler.c.
16306 (kernel_elf_HEADERS): Add list.h and handler.h.
16308 2009-02-27 Robert Millan <rmh@aybabtu.com>
16310 Factorize elf32 / elf64 code in Multiboot loader. This will
16311 prevent it from getting out of sync again.
16313 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
16314 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
16315 grub_multiboot_load_elf64): Move from here ...
16316 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
16317 grub_multiboot_load_elf): ... to here (new file).
16319 2009-02-27 Robert Millan <rmh@aybabtu.com>
16321 * util/grub.d/10_linux.in: Rename "single-user mode" to
16324 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
16326 Don't leak in SCSI code.
16327 * disk/scsi.c (grub_scsi_close): free `scsi'.
16329 2009-02-27 Robert Millan <rmh@aybabtu.com>
16331 * loader/i386/pc/multiboot.c: Move from here ...
16332 * loader/i386/multiboot.c: ... to here. Update all users.
16334 2009-02-27 Robert Millan <rmh@aybabtu.com>
16336 Patch from Alexandre Bique <bique.alexandre@gmail.com>
16337 * util/i386/pc/grub-setup.c (setup): Fix directory path.
16339 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
16341 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
16344 2009-02-27 Robert Millan <rmh@aybabtu.com>
16346 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
16347 `0x' qualifier as 0 when base is specified as parameter).
16349 2009-02-24 Bean <bean123ch@gmail.com>
16351 * configure.ac: Check for -mcmodel=large in x86_64 target.
16353 * include/grub/efi/api.h (efi_call_10): New macro.
16354 (efi_wrap_10): New function.
16356 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
16357 (GRUB_PE32_REL_BASED_HIGH): Likewise.
16358 (GRUB_PE32_REL_BASED_LOW): Likewise.
16359 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
16360 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
16361 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
16362 (GRUB_PE32_REL_BASED_SECTION): Likewise.
16363 (GRUB_PE32_REL_BASED_REL): Likewise.
16364 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
16365 (GRUB_PE32_REL_BASED_DIR64): Likewise.
16366 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
16368 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
16371 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
16372 (efi_wrap_10): New function.
16374 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
16376 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
16377 MB/MBP model (NV chipset).
16378 (devdata_devs): Add devpath_5 to the list.
16380 * load/i386/efi/linux.c (video_base): Remove variable.
16381 (RGB_MASK): New macro.
16382 (RGB_MAGIC): Likewise.
16383 (LINE_MIN): Likewise.
16384 (LINE_MAX): Likewise.
16385 (FBTEST_STEP): Likewise.
16386 (FBTEST_COUNT): Likewise.
16387 (fb_list): New variable.
16388 (grub_find_video_card): Remove function.
16389 (find_framebuf): New function.
16390 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
16393 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
16394 problem for x86_64.
16396 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
16398 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
16400 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
16403 2009-02-22 Robert Millan <rmh@aybabtu.com>
16405 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
16406 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
16407 in our relocation, instead of using it directly from heap. Also
16408 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
16410 2009-02-21 Robert Millan <rmh@aybabtu.com>
16412 Implement USB keyboard support (based on patch by Marco Gerards)
16414 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
16415 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
16416 (usb_keyboard_mod_LDFLAGS): New variables.
16418 * term/usb_keyboard.c: New file.
16420 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16422 Corrected wrong declaration
16424 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
16426 2009-02-14 Christian Franke <franke@computer.org>
16428 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
16429 (grub_lspci_iter): Print class code and programming interface byte.
16431 2009-02-14 Christian Franke <franke@computer.org>
16433 * gendistlist.sh: Ignore `.svn' directories.
16435 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
16437 * fs/fat.c: Add 2009 to Copyright line.
16439 2009-02-14 Christian Franke <franke@computer.org>
16441 * commands/hdparm.c: New file. Provides `hdparm' command
16442 which sends ATA commands via grub_disk_ata_pass_through ().
16444 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
16446 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
16447 and <grub/cpu/io.h> to include/grub/ata.h.
16448 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
16449 (GRUB_CDROM_SECTOR_SIZE): Remove.
16450 (GRUB_ATA_*): Move to include/grub/ata.h.
16451 (GRUB_ATAPI_*): Likewise.
16452 (enum grub_ata_commands): Likewise.
16453 (enum grub_ata_timeout_milliseconds): Likewise.
16454 (struct grub_ata_device): Likewise.
16455 (grub_ata_regset): Likewise.
16456 (grub_ata_regget): Likewise.
16457 (grub_ata_regset2): Likewise.
16458 (grub_ata_regget2): Likewise.
16459 (grub_ata_check_ready): Likewise.
16460 (grub_ata_wait_not_busy): Remove static, exported in
16461 include/grub/ata.h.
16462 (grub_ata_wait_drq): Likewise.
16463 (grub_ata_pio_read): Likewise.
16465 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
16466 function for hdparm.mod.
16468 * include/grub/ata.h: New file, contains declarations from
16470 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
16472 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
16473 (grub_disk_ata_pass_through): New exported variable.
16475 * kern/disk.c (grub_disk_ata_pass_through): New variable.
16477 2009-02-13 Colin D Bennett <colin@gibibit.com>
16479 Support multiple fallback entries, and provide an API to support
16480 executing default+fallback menu entries. Renamed the `terminal' menu
16483 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
16484 variable declaration.
16485 (grub_menu_execute_callback): New structure declaration.
16486 (grub_menu_execute_callback_t): New typedef.
16487 (grub_menu_execute_with_fallback): New function declaration.
16488 (grub_menu_get_entry): Likewise.
16489 (grub_menu_get_timeout): Likewise.
16490 (grub_menu_set_timeout): Likewise.
16492 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
16494 * normal/menu.c (grub_wait_after_message): Moved to
16495 `normal/menu_text.c'.
16496 (draw_border): Likewise.
16497 (print_message): Likewise.
16498 (print_entry): Likewise.
16499 (print_entries): Likewise.
16500 (grub_menu_init_page): Likewise.
16501 (get_entry_number): Likewise.
16502 (print_timeout): Likewise.
16503 (run_menu): Likewise.
16504 (grub_menu_execute_entry): Likewise.
16505 (show_text_menu): Likewise.
16506 (get_and_remove_first_entry_number): New function.
16507 (grub_menu_execute_with_fallback): Likewise.
16508 (get_entry): Renamed to ...
16509 (grub_menu_get_entry): .. this and made it global.
16510 (get_timeout): Renamed to ...
16511 (grub_menu_get_timeout): ... this and made it global.
16512 (set_timeout): Renamed to ...
16513 (grub_menu_set_timeout): ... this and made it global.
16514 (grub_normal_terminal_menu_viewer): Renamed to ...
16515 (grub_normal_text_menu_viewer): ... this.
16517 * normal/menu_text.c: New file. Extracted text-menu-specific code
16518 from normal/menu.c.
16520 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
16521 (normal_mod_SOURCES): Likewise.
16523 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16524 (normal_mod_SOURCES): Likewise.
16526 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16527 (normal_mod_SOURCES): Likewise.
16529 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
16530 (normal_mod_SOURCES): Likewise.
16532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16533 (normal_mod_SOURCES): Likewise.
16535 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16536 (normal_mod_SOURCES): Likewise.
16538 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16539 (normal_mod_SOURCES): Likewise.
16541 2009-02-11 Robert Millan <rmh@aybabtu.com>
16543 * util/grub.d/00_header.in: Update old reference to `font' command.
16545 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
16547 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
16549 Based on patch from Javier Martín.
16551 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
16553 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
16554 to avoid false positives with FAT.
16555 (grub_fstest_SOURCES): Likewise.
16556 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16557 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16559 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16560 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16561 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16563 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
16565 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
16566 bpb.version_specific.fat12_or_fat16.fstype and
16567 bpb.version_specific.fat32.fstype.
16569 2009-02-08 Robert Millan <rmh@aybabtu.com>
16571 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
16573 2009-02-08 Robert Millan <rmh@aybabtu.com>
16575 * Makefile.in (host_os, host_cpu): New variables.
16576 (target_os): Remove. Update all users.
16578 2009-02-08 Marco Gerards <marco@gnu.org>
16580 * Makefile.in (enable_grub_emu_usb): New variable.
16581 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
16582 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
16583 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
16584 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
16585 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
16586 `usbtest.mod' and `usbms.mod'.
16587 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
16588 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
16589 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
16590 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
16591 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
16594 * disk/usbms.c: New file.
16596 * include/grub/usb.h: Likewise.
16598 * include/grub/usbtrans.h: Likewise.
16600 * include/grub/usbdesc.h: Likewise.
16602 * bus/usb/usbtrans.c: Likewise.
16604 * bus/usb/ohci.c: Likewise.
16606 * bus/usb/uhci.c: Likewise.
16608 * bus/usb/usbhub.c: Likewise.
16610 * bus/usb/usb.c: Likewise.
16612 * commands/usbtest.c: Likewise.
16614 * util/usb.c: Likewise.
16616 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
16618 * configure.ac: Test for libusb presence.
16620 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
16622 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
16624 * kern/mm.c: Add more comments.
16626 2009-02-08 Robert Millan <rmh@aybabtu.com>
16628 Patch from Javier Martín.
16629 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
16630 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
16632 2009-02-08 Robert Millan <rmh@aybabtu.com>
16634 * fs/cpio.c: Split tar functionality to ...
16635 * fs/tar.c: ... here (new file). Update all users.
16637 2009-02-07 Robert Millan <rmh@aybabtu.com>
16639 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
16640 backward-incompatible features.
16642 Based on patch from Javier Martín, with some adjustments.
16644 2009-02-07 Michael Scherer <misc@mandriva.org>
16646 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
16648 2009-02-07 Robert Millan <rmh@aybabtu.com>
16650 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
16651 position of `disk/lvm.c' to ensure grub_init_all() always picks it
16652 after the RAID stuff.
16654 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
16656 Fixes problem when running vbetest command as reported by
16657 Vladimir Serbinenko <phcoder@gmail.com>.
16659 * (grub_vbe_set_video_mode): Fixed problem with text modes.
16661 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
16663 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
16664 /dev/md/NpN style mdraid devices.
16666 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
16668 * util/unifont2pff.rb: Remove.
16670 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
16672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
16675 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
16677 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
16678 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16679 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16680 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16682 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16683 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16685 2009-02-02 Christian Franke <franke@computer.org>
16687 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
16689 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
16691 * INSTALL: Note that we now require at least autoconf 2.59 and
16692 that LZO is optional.
16694 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
16696 Base on patch on bug #24154 created by Tomas Tintera
16697 <trosos@seznam.cz>.
16699 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
16701 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
16703 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
16704 <bero@arklinux.org>.
16706 * normal/parser.y (script_init): Add missing semicolon.
16708 2009-01-31 Colin D Bennett <colin@gibibit.com>
16710 * normal/main.c: Add include to grub/menu_viewer.h.
16711 (free_menu_entry_classes): Added.
16712 (grub_normal_menu_addentry): Added class property handling.
16713 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
16714 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
16716 * normal/menu_viewer.c: New file.
16718 * normal/menu.c (run_menu_entry): Renamed to ...
16719 (grub_menu_execute_entry): ... this and made it as global.
16720 (grub_menu_run): Renamed to ...
16721 (show_text_menu): ... this and made it local.
16722 (show_text_menu): Adapt to new function names.
16723 (grub_normal_terminal_menu_viewer): New global variable.
16725 * include/grub/menu.h: New file.
16727 * include/grub/menu_viewer.h: New file.
16729 * include/grub/normal.h: Added include to grub/menu.h.
16730 (grub_menu_entry): Moved to include/grub/menu.h.
16731 (grub_menu_entry_t): Likewise.
16732 (grub_menu): Likewise.
16733 (grub_menu_t): Likewise.
16734 (grub_normal_terminal_menu_viewer): Added.
16735 (grub_menu_execute_entry): Likewise.
16736 (grub_menu_run): Removed.
16738 * DISTLIST: Added include/grub/menu.h.
16739 Added include/grub/menu_viewer.h.
16740 Added normal/menu_viewer.c.
16742 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
16744 * normal/execute.c (grub_script_execute_menuentry): Changed to use
16745 arglist for menutitle arguments.
16747 * normal/main.c (grub_normal_menu_addentry): Likewise.
16749 * normal/parser.y (menuentry): Likewise.
16751 * normal/script.c (grub_script_create_cmdmenu): Likewise.
16753 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
16754 (grub_script_create_cmdmenu): Likewise.
16756 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
16758 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
16761 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
16763 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
16765 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
16767 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
16769 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
16771 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
16773 2009-01-30 Christian Franke <franke@computer.org>
16775 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
16776 in option help text.
16778 2009-01-27 Pavel Roskin <proski@gnu.org>
16780 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
16782 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
16784 * commands/lsmmap.c: Add include to grub/machine/memory.h.
16786 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
16788 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
16789 unregister function.
16791 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
16793 * disk/scsi.c (grub_scsi_read): Fix sign problem.
16795 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
16797 * util/grub-mkfont.c (usage): Fix typo.
16799 * util/elf/grub-mkimage.c (load_modules): Fix warning.
16801 2009-01-26 Daniel Mierswa <impulze@impulze.org>
16803 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
16805 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
16807 * kern/misc.c (grub_strcasecmp): New function.
16808 (grub_strcasecmp): Use grub_size_t instead of int for length.
16810 * include/grub/misc.h: Update function prototypes.
16812 2009-01-26 Robert Millan <rmh@aybabtu.com>
16814 * configure.ac: Fix cross-compilation check.
16816 2009-01-22 Christian Franke <franke@computer.org>
16818 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
16819 (precision) digit string. Allow `.format2' without `format1' (width).
16820 Limit input chars for `%s' output to `format2' if specified. This is
16821 compatible with standard printf ().
16823 2009-01-22 Christian Franke <franke@computer.org>
16825 * disk/ata.c (grub_ata_wait_status): Replace by ...
16826 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
16827 other status bits may be invalid while BSY is asserted.
16828 (grub_ata_check_ready): New function.
16829 (grub_ata_cmd): Removed.
16830 (grub_ata_wait_drq): New function.
16831 (grub_ata_strncpy): Remove inline.
16832 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
16833 and error check now done by grub_ata_wait_drq ().
16834 (grub_ata_pio_write): Likewise.
16835 (grub_atapi_identify): Set DEV before check for !BSY. Use
16836 grub_ata_wait_drq () to wait for data.
16837 (grub_ata_device_initialize): Add status register check to
16838 detect missing SATA slave devices. Add debug messages.
16839 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
16840 (grub_atapi_packet): Set DEV before check for !BSY. Replace
16841 transfer loop by grub_ata_pio_write ().
16842 (grub_ata_identify): Set DEV before check for !BSY. Use
16843 grub_ata_wait_drq () to wait for data.
16844 (grub_ata_setaddress): Set DEV before check for !BSY.
16845 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
16846 read/write in one loop. Fix invalid command on write. Fix incomplete
16847 command on (size % batch) == 0. Add missing error check after write of
16848 last block. Add debug messages.
16849 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
16851 2009-01-19 Christian Franke <franke@computer.org>
16853 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
16854 (GRUB_ATAPI_IREASON_*): Likewise.
16855 (grub_ata_pio_write): Fix timeout error return.
16856 (grub_atapi_identify): Add grub_ata_wait () after cmd.
16857 (grub_atapi_wait_drq): New function.
16858 (grub_atapi_packet): New parameter `size'.
16859 Use grub_atapi_wait_drq () and direct write instead of
16860 grub_ata_pio_write ().
16861 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
16862 reads the number of bytes requested by the device for each DRQ
16864 (grub_atapi_write): Remove old implementation, return not
16865 implemented instead.
16867 2009-01-19 Christian Franke <franke@computer.org>
16869 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
16870 of 512 to calculate data size.
16871 (grub_scsi_read12): Likewise.
16872 (grub_scsi_write10): Likewise.
16873 (grub_scsi_write12): Likewise.
16874 (grub_scsi_read): Adjust size according to blocksize.
16875 Add checks for invalid blocksize and unaligned transfer.
16877 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
16879 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
16881 * term/gfxterm.c (write_char): Fix background rendering for wide
16884 2009-01-19 Robert Millan <rmh@aybabtu.com>
16886 * config.guess: Update to latest version from config git.
16887 * config.sub: Likewise.
16889 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
16891 * Makefile.in: Change font compilation to use new grub-mkfont instead
16894 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
16895 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
16896 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
16897 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
16898 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
16899 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
16900 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
16901 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
16902 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
16904 2009-01-16 Christian Franke <franke@computer.org>
16906 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
16907 (enum grub_ata_timeout_milliseconds): New enum.
16908 (grub_ata_wait_status): Add parameter milliseconds.
16909 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
16910 recovery from timed-out commands.
16911 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
16912 return grub_errno instead of REG_ERROR.
16913 (grub_ata_pio_write): Add parameter milliseconds.
16914 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
16915 Pass milliseconds to grub_ata_wait_status () and
16916 grub_ata_pio_read ().
16917 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
16918 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
16919 grub_ata_wait_status (). Fix IDENTIFY timeout check.
16920 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
16921 It is not suitable for device detection, because DEV bit is ignored,
16922 the command may run too long, and not all devices set the signature
16924 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
16925 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
16926 Fix device selection, DEV bit must be set first to address the registers
16927 of the correct device.
16928 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
16929 grub_ata_pio_read/write ().
16930 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
16931 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
16933 2009-01-13 Carles Pina i Estany <carles@pina.cat>
16935 * util/grub-editenv.c (main): Use fseeko(), not fseek().
16937 2009-01-13 Bean <bean123ch@gmail.com>
16939 * util/grub-mkfont.c (write_font): forget to remove some debug code.
16941 2009-01-13 Bean <bean123ch@gmail.com>
16943 * Makefile.in: (enable_grub_mkfont): New variable.
16944 (freetype_cflags): Likewise.
16945 (freetype_libs): Likewise.
16947 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
16948 (grub_mkfont_SOURCES): New variable.
16949 (grub_mkfont_CFLAGS): Likewise.
16950 (grub_mkfont_LDFLAGS): Likewise.
16952 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
16953 library if `--enable-grub-mkfont' is requested.
16954 (enable_grub_mkfont): New variable.
16955 (freetype_cflags): Likewise.
16956 (freetype_libs): Likewise.
16958 * util/grub-mkfont.c: New file.
16960 2009-01-12 Christian Franke <franke@computer.org>
16962 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
16963 mode check. Fix setting of compat_use[].
16965 2009-01-10 Robert Millan <rmh@aybabtu.com>
16967 Update a few copyright years which we forgot to do in 2008 (only for
16968 files whose changes made in 2008 were copyright-significant)
16970 * Makefile.in: Add 2008 to Copyright line.
16971 * disk/ieee1275/ofdisk.c: Likewise.
16972 * disk/efi/efidisk.c: Likewise.
16973 * kern/dl.c: Likewise.
16974 * kern/sparc64/ieee1275/init.c: Likewise.
16975 * kern/mm.c: Likewise.
16976 * kern/efi/mm.c: Likewise.
16977 * boot/i386/pc/boot.S: Likewise.
16978 * genfslist.sh: Likewise.
16979 * fs/iso9660.c: Likewise.
16980 * fs/hfs.c: Likewise.
16981 * fs/jfs.c: Likewise.
16982 * fs/minix.c: Likewise.
16983 * fs/ufs.c: Likewise.
16984 * gensymlist.sh.in: Likewise.
16985 * genkernsyms.sh.in: Likewise.
16986 * include/grub/misc.h: Likewise.
16987 * include/grub/types.h: Likewise.
16988 * include/grub/symbol.h: Likewise.
16989 * include/grub/elf.h: Likewise.
16990 * include/grub/kernel.h: Likewise.
16991 * include/grub/disk.h: Likewise.
16992 * include/grub/dl.h: Likewise.
16993 * include/grub/i386/linux.h: Likewise.
16994 * include/grub/i386/pc/biosdisk.h: Likewise.
16995 * include/grub/efi/api.h: Likewise.
16996 * include/grub/efi/pe32.h: Likewise.
16997 * include/grub/util/misc.h: Likewise.
16998 * normal/execute.c: Likewise.
16999 * normal/arg.c: Likewise.
17000 * normal/completion.c: Likewise.
17001 * normal/lexer.c: Likewise.
17002 * normal/parser.y: Likewise.
17003 * normal/misc.c: Likewise.
17004 * commands/i386/pc/vbeinfo.c: Likewise.
17005 * commands/hexdump.c: Likewise.
17006 * commands/terminal.c: Likewise.
17007 * commands/ls.c: Likewise.
17008 * commands/help.c: Likewise.
17009 * partmap/pc.c: Likewise.
17010 * loader/efi/chainloader.c: Likewise.
17011 * loader/multiboot_loader.c: Likewise.
17012 * loader/i386/pc/multiboot2.c: Likewise.
17013 * term/efi/console.c: Likewise.
17014 * term/i386/pc/serial.c: Likewise.
17015 * util/lvm.c: Likewise.
17016 * util/console.c: Likewise.
17017 * util/i386/efi/grub-mkimage.c: Likewise.
17018 * util/raid.c: Likewise.
17020 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
17022 * commands/videotest.c: Removed include to grub/machine/memory.h.
17024 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
17025 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
17026 (video_mod_SOURCES): Removed.
17027 (video_mod_CFLAGS): Likewise.
17028 (video_mod_LDFLAGS): Likewise.
17029 (gfxterm_mod_SOURCES): Likewise.
17030 (gfxterm_mod_CFLAGS): Likewise.
17031 (gfxterm_mod_LDFLAGS): Likewise.
17032 (videotest_mod_SOURCES): Likewise.
17033 (videotest_mod_CFLAGS): Likewise.
17034 (videotest_mod_LDFLAGS): Likewise.
17035 (bitmap_mod_SOURCES): Likewise.
17036 (bitmap_mod_CFLAGS): Likewise.
17037 (bitmap_mod_LDFLAGS): Likewise.
17038 (tga_mod_SOURCES): Likewise.
17039 (tga_mod_CFLAGS): Likewise.
17040 (tga_mod_LDFLAGS): Likewise.
17041 (jpeg_mod_SOURCES): Likewise.
17042 (jpeg_mod_CFLAGS): Likewise.
17043 (jpeg_mod_LDFLAGS): Likewise.
17044 (png_mod_SOURCES): Likewise.
17045 (png_mod_CFLAGS): Likewise.
17046 (png_mod_LDFLAGS): Likewise.
17048 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
17049 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
17050 (video_mod_SOURCES): Added.
17051 (video_mod_CFLAGS): Likewise.
17052 (video_mod_LDFLAGS): Likewise.
17053 (videotest_mod_SOURCES): Likewise.
17054 (videotest_mod_CFLAGS): Likewise.
17055 (videotest_mod_LDFLAGS): Likewise.
17056 (bitmap_mod_SOURCES): Likewise.
17057 (bitmap_mod_CFLAGS): Likewise.
17058 (bitmap_mod_LDFLAGS): Likewise.
17059 (tga_mod_SOURCES): Likewise.
17060 (tga_mod_CFLAGS): Likewise.
17061 (tga_mod_LDFLAGS): Likewise.
17062 (jpeg_mod_SOURCES): Likewise.
17063 (jpeg_mod_CFLAGS): Likewise.
17064 (jpeg_mod_LDFLAGS): Likewise.
17065 (png_mod_SOURCES): Likewise.
17066 (png_mod_CFLAGS): Likewise.
17067 (png_mod_LDFLAGS): Likewise.
17068 (gfxterm_mod_SOURCES): Likewise.
17069 (gfxterm_mod_CFLAGS): Likewise.
17070 (gfxterm_mod_LDFLAGS): Likewise.
17072 * term/gfxterm.c: Removed include to grub/machine/memory.h,
17073 grub/machine/console.h.
17075 2009-01-04 Jerone Young <jerone@gmail.com>
17077 Make on screen instructions clearer
17079 Based on patch created by Jidanni <jidanni@jidanni.org>
17081 * normal/menu.c: print clearer instructions on the screen
17083 2009-01-02 Colin D Bennett <colin@gibibit.com>
17087 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
17088 build system and fixed gfxterm.c to work with different sized fonts.
17090 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
17092 * configure: Re-generated.
17094 * DISTLIST: Removed font/manager.c.
17096 Added font/font_cmd.c.
17098 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
17101 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
17103 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
17105 * kern/term.c: Changed users of grub_utf8_to_ucs4.
17107 * normal/menu.c: Likewise.
17109 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
17110 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
17112 * include/grub/font.h: Replaced with new file.
17114 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
17115 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
17116 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
17117 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
17118 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
17119 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
17120 fg_red, fg_green, fg_blue, fg_alpha.
17121 (grub_video_adapter): Removed blit_glyph.
17122 (grub_video_blit_glyph): Removed.
17124 * font/manager.c: Removed file.
17126 * font/font.c: New file.
17128 * font/font_cmd.c: Likewise.
17130 * video/video.c (grub_video_blit_glyph): Removed.
17132 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
17133 (grub_video_vbe_map_rgba): Likewise.
17134 (grub_video_vbe_unmap_color_int): Likewise.
17135 (grub_video_vbe_blit_glyph): Removed.
17136 (grub_video_vbe_adapter): Removed blit_glyph.
17138 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
17139 (get_pixel): Likewise.
17140 (set_pixel): Likewise.
17142 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
17144 * term/gfxterm.c: Adapted to new font engine.
17146 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
17148 * term/i386/pc/vga.c: Likewise.
17150 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
17152 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
17154 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17156 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17158 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
17160 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
17162 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
17164 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
17166 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
17168 * util/grub.d/00_header.in: Changed to use new loadfont command.
17170 * util/grub-mkconfig_lib.in: Changed font extension.
17172 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
17174 * util/getroot.c (grub_util_get_grub_dev): Add support for
17175 /dev/md/dNNpNN style partitionable mdraid devices.
17177 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
17179 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
17180 at a time limit of the PXE TFTP API correctly.
17181 (grub_pxefs_close): Likewise.
17183 2008-11-29 Robert Millan <rmh@aybabtu.com>
17185 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
17186 grub_ata_device_initialize() calls.
17188 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
17190 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
17192 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
17194 2008-11-28 Robert Millan <rmh@aybabtu.com>
17196 Fix build on powerpc-ieee1275. Based on patch created by
17197 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
17198 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
17199 `kern/ieee1275/mmap.c'.
17200 * include/grub/powerpc/ieee1275/memory.h: New file.
17202 Provide grub-install on coreboot.
17203 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
17204 (grub_install_SOURCES): New variable.
17205 * util/i386/pc/grub-install.in: Add a few condition checks to make it
17206 usable on coreboot.
17208 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
17210 * util/grub-fstest.c (grub_term_get_current_input): Change return type
17211 to `grub_term_input_t'.
17212 (grub_term_get_current_output): Change return type to
17213 `grub_term_output_t'.
17215 2008-11-22 Robert Millan <rmh@aybabtu.com>
17217 Fix breakage on coreboot due to declaration mismatch.
17218 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
17219 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
17220 grub_vga_text_cls().
17222 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
17223 comments. Avoid copying one more byte than necessary (just in case).
17225 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
17226 to 0x200000 (avoids trouble with some OFW implementations, and matches
17227 with the one in Yaboot).
17228 Reported by Manoel Abranches
17230 2008-11-20 Robert Millan <rmh@aybabtu.com>
17232 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
17233 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
17235 * util/grub-mkconfig_lib.in (grub_warn): New function.
17236 (convert_system_path_to_grub_path): Use grub_warn() when issuing
17237 warnings, to obtain consistent formatting.
17238 * util/grub.d/00_header.in: Likewise.
17239 * util/update-grub_lib.in: Likewise.
17241 * loader/i386/linux.c (allocate_pages): Fix a warning.
17242 Move comment text to `#error' stanza.
17244 Harmonize ieee1275's grub_available_iterate() with the generic
17245 grub_machine_mmap_iterate() interface (fixes a recently-introduced
17246 build problem on i386-ieee1275):
17247 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
17248 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
17249 parameter `type'. Update all users of this function.
17250 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
17251 `kern/ieee1275/mmap.c'.
17252 * kern/ieee1275/init.c
17253 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
17255 (grub_machine_mmap_iterate): ... this.
17256 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
17257 return type to `grub_err_t'. Update all implementations of this
17258 function prototype.
17259 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
17262 Add `lsmmap' command (lists firmware-provided memory map):
17263 * commands/lsmmap.c: New file.
17264 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
17265 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
17267 * conf/powerpc-ieee1275.rmk: Likewise.
17268 * conf/i386-coreboot.rmk: Likewise.
17269 * conf/i386-ieee1275.rmk: Likewise.
17271 2008-11-19 Robert Millan <rmh@aybabtu.com>
17273 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
17274 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
17275 constraints to initrd allocation (based on code from
17276 loader/i386/pc/linux.c). Without them, initrd was allocated too high
17277 for Linux to find it.
17279 2008-11-14 Robert Millan <rmh@aybabtu.com>
17281 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
17282 order to cope with duplicate slashes.
17284 2008-11-14 Robert Millan <rmh@aybabtu.com>
17286 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
17287 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
17288 don't want to mess with lower memory, because it is used in the Linux
17291 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
17292 an appropriate place in lower memory, between 0x10000 and 0x90000,
17293 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
17294 is in our heap (probably as a result of it being corrupted during
17295 decompression). Add #error instance with comment to explain why this
17296 loader isn't currently usable on PC/BIOS.
17298 2008-11-14 Robert Millan <rmh@aybabtu.com>
17300 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
17301 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
17303 2008-11-12 Robert Millan <rmh@aybabtu.com>
17305 Make loader/i386/linux.c buildable on i386-pc (although disabled).
17307 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
17308 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
17310 * include/grub/i386/pc/memory.h: ... to here.
17312 2008-11-12 Robert Millan <rmh@aybabtu.com>
17314 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
17317 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
17318 (grub_console_cur_color, grub_console_real_putchar)
17319 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
17320 (grub_console_setcolorstate, grub_console_setcolor)
17321 (grub_console_getcolor): Move from here ...
17322 * include/grub/i386/vga_common.h: ... to here (new file).
17324 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
17325 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
17326 `<grub/i386/io.h>'.
17327 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
17328 `<grub/i386/vga_common.h>'.
17330 2008-11-12 Robert Millan <rmh@aybabtu.com>
17332 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
17333 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
17334 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
17336 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
17337 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
17339 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
17340 grub_console_init() with call to grub_vga_text_init().
17341 (grub_machine_fini): Replace call to
17342 grub_console_fini() with call to grub_vga_text_fini() and
17343 grub_at_keyboard_fini().
17345 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
17346 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
17347 (grub_console_setcolorstate, grub_console_setcolor)
17348 (grub_console_getcolor): New function prototypes.
17350 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
17351 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
17352 (grub_vga_text_setcursor): Static-ize.
17353 (grub_vga_text_term): New structure.
17354 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
17356 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
17357 (grub_console_cur_color, grub_console_standard_color)
17358 (grub_console_normal_color, grub_console_highlight_color)
17359 (map_char, grub_console_putchar, grub_console_getcharwidth)
17360 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
17361 (grub_console_getcolor): Move from here ...
17362 * term/i386/vga_common.c: ... to here (same function names).
17364 2008-11-12 Robert Millan <rmh@aybabtu.com>
17366 Use newly-added Multiboot support in coreboot.
17368 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
17369 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
17371 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
17372 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
17373 (codestart): Store the MBI in `startup_multiboot_info' when we're
17374 being loaded using Multiboot.
17376 * kern/i386/coreboot/init.c (grub_machine_init): Move
17377 grub_at_keyboard_init() call to beginning of function (useful for
17378 debugging). Call grub_machine_mmap_init() before attempting to use
17379 grub_machine_mmap_iterate().
17380 (grub_lower_mem, grub_upper_mem): Move from here ...
17381 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
17384 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
17385 function prototype.
17387 2008-11-12 Robert Millan <rmh@aybabtu.com>
17389 Fix a regression introduced by the at_keyboard.mod split. Because
17390 some terminals are default on some platforms and non-default on
17391 others, the first terminal being registered determines which is
17392 going to be default.
17394 * kern/term.c (grub_term_register_input): If this is the first
17395 terminal being registered, set it as the current one.
17396 (grub_term_register_output): Likewise.
17398 * term/efi/console.c (grub_console_init): Do not call
17399 grub_term_set_current_output() or grub_term_set_current_input().
17400 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
17401 * term/i386/pc/console.c (grub_console_init): Likewise.
17402 (grub_console_fini): Do not call grub_term_set_current_input()
17403 (but leave grub_term_set_current_output() to restore text mode).
17405 2008-11-10 Robert Millan <rmh@aybabtu.com>
17407 * util/grub.d/00_header.in: Add backward compatibility check for
17408 versions of terminal.mod that don't understand `terminal_input' or
17411 2008-11-09 Robert Millan <rmh@aybabtu.com>
17413 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
17414 `terminal_input' / `terminal_output', not `terminal'.
17416 2008-11-08 Robert Millan <rmh@aybabtu.com>
17418 * Makefile.in (include_DATA): Fix srcdir=. assumption.
17419 (DISTCLEANFILES): Add `build_env.mk'.
17421 2008-11-08 Robert Millan <rmh@aybabtu.com>
17423 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
17424 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
17425 members. Update all users.
17426 * util/console.c (grub_ncurses_term): Split in ...
17427 (grub_ncurses_term_input): ... this, and ...
17428 (grub_ncurses_term_output): ... this. Update all users.
17429 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
17431 2008-11-08 Robert Millan <rmh@aybabtu.com>
17433 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
17434 (PKGDATA): Add $(pkgdata_SRCDIR).
17435 (pkglib_BUILDDIR): New variable.
17436 (pkgdata_SRCDIR): New variable.
17437 (build_env.mk): New target.
17438 (include_DATA): New variable.
17439 (install-local): Install $(include_DATA) files in $(includedir).
17441 2008-11-07 Pavel Roskin <proski@gnu.org>
17443 * gendistlist.sh: Use C locale for sorting to ensure consistent
17444 output on all systems.
17446 * util/grub.d/00_header.in: Remove incorrect space before
17449 2008-11-07 Robert Millan <rmh@aybabtu.com>
17451 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
17453 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
17454 * loader/multiboot_loader.c (find_multi_boot2_header): New function
17455 (based on find_multi_boot1_header).
17456 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
17457 using find_multi_boot2_header(), and abort if neither Multiboot or
17458 Multiboot headers were found.
17460 2008-11-07 Robert Millan <rmh@aybabtu.com>
17462 Modularize at_keyboard.mod:
17464 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
17465 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
17466 (at_keyboard_mod_LDFLAGS): New variables.
17468 Actual terminal split:
17470 * include/grub/term.h (struct grub_term): Split in ...
17471 (struct grub_term_input): ... this, and ...
17472 (struct grub_term_output): ... this. Update all users.
17473 (grub_term_set_current): Split in ...
17474 (grub_term_set_current_input): ... this, and ...
17475 (grub_term_set_current_output): ... this.
17476 (grub_term_get_current): Split in ...
17477 (grub_term_get_current_input): ... this, and ...
17478 (grub_term_get_current_output): ... this.
17479 (grub_term_register): Split in ...
17480 (grub_term_register_input): ... this, and ...
17481 (grub_term_register_output): ... this.
17482 (grub_term_unregister): Split in ...
17483 (grub_term_unregister_input): ... this, and ...
17484 (grub_term_unregister_output): ... this.
17485 (grub_term_iterate): Split in ...
17486 (grub_term_iterate_input): ... this, and ...
17487 (grub_term_iterate_output): ... this.
17489 * kern/term.c (grub_term_list): Split in ...
17490 (grub_term_list_input): ... this, and ...
17491 (grub_term_list_output): ... this. Update all users.
17492 (grub_cur_term): Split in ...
17493 (grub_cur_term_input): ... this, and ...
17494 (grub_cur_term_output): ... this. Update all users.
17495 (grub_term_set_current): Split in ...
17496 (grub_term_set_current_input): ... this, and ...
17497 (grub_term_set_current_output): ... this.
17498 (grub_term_get_current): Split in ...
17499 (grub_term_get_current_input): ... this, and ...
17500 (grub_term_get_current_output): ... this.
17501 (grub_term_register): Split in ...
17502 (grub_term_register_input): ... this, and ...
17503 (grub_term_register_output): ... this.
17504 (grub_term_unregister): Split in ...
17505 (grub_term_unregister_input): ... this, and ...
17506 (grub_term_unregister_output): ... this.
17507 (grub_term_iterate): Split in ...
17508 (grub_term_iterate_input): ... this, and ...
17509 (grub_term_iterate_output): ... this.
17511 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
17512 a check for input and one for output (and only attempt to get keys
17513 from user when input works).
17515 * util/grub-probe.c (grub_term_get_current): Split in ...
17516 (grub_term_get_current_input): ... this, and ...
17517 (grub_term_get_current_output): ... this.
17518 * util/grub-fstest.c: Likewise.
17519 * util/i386/pc/grub-setup.c: Likewise.
17520 * util/grub-editenv.c: Likewise.
17522 Portability adjustments:
17524 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
17525 `term/i386/pc/at_keyboard.c'.
17526 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
17527 grub_keyboard_controller_init() (now handled by terminal .init).
17528 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
17529 grub_at_keyboard_init().
17530 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
17531 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
17532 at_keyboard.mod via input terminal interface).
17533 * include/grub/i386/coreboot/console.h: Convert into a stub for
17534 `<grub/i386/pc/console.h>'.
17536 Migrate full terminals to new API:
17538 * term/efi/console.c (grub_console_term): Split into ...
17539 (grub_console_term_input): ... this, and ...
17540 (grub_console_term_output): ... this. Update all users.
17541 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
17542 (grub_ofconsole_init): Split into ...
17543 (grub_ofconsole_init_input): ... this, and ...
17544 (grub_ofconsole_init_output): ... this.
17545 (grub_ofconsole_term): Split into ...
17546 (grub_ofconsole_term_input): ... this, and ...
17547 (grub_ofconsole_term_output): ... this. Update all users.
17548 * term/i386/pc/serial.c (grub_serial_term): Split into ...
17549 (grub_serial_term_input): ... this, and ...
17550 (grub_serial_term_output): ... this. Update all users.
17551 * term/i386/pc/console.c (grub_console_term): Split into ...
17552 (grub_console_term_input): ... this, and ...
17553 (grub_console_term_output): ... this. Update all users.
17554 (grub_console_term_input): Only enable it on PC/BIOS platform.
17555 (grub_console_init): Remove grub_keyboard_controller_init() call.
17557 Migrate input terminals to new API:
17559 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
17560 `i386' and `i386/pc' to enable build on x86_64 (this driver is
17561 i386-specific anyway).
17562 (grub_console_checkkey): Rename to ...
17563 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
17565 (grub_keyboard_controller_orig): New variable.
17566 (grub_console_getkey): Rename to ...
17567 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
17569 (grub_keyboard_controller_init): Static-ize. Save original
17570 controller value so that it can be restored ...
17571 (grub_keyboard_controller_fini): ... here (new function).
17572 (grub_at_keyboard_term): New structure.
17573 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
17576 Migrate output terminals to new API:
17578 * term/i386/pc/vga.c (grub_vga_term): Change type to
17579 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
17580 members. Update all users.
17581 * term/gfxterm.c (grub_video_term): Change type to
17582 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
17583 members. Update all users.
17584 * include/grub/i386/pc/console.h (grub_console_checkkey)
17585 (grub_console_getkey): Do not export (no longer needed by gfxterm,
17588 Migrate `terminal' command and userland tools to new API:
17590 * commands/terminal.c (grub_cmd_terminal): Split into ...
17591 (grub_cmd_terminal_input): ... this, and ...
17592 (grub_cmd_terminal_output): ... this.
17593 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
17594 `terminal_input' and `terminal_output'.
17595 * util/grub.d/00_header.in: Adjust `terminal' calls to new
17596 `terminal_input' / `terminal_output' API.
17597 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
17598 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
17599 provided ${GRUB_TERMINAL}, convert it).
17601 2008-11-04 Robert Millan <rmh@aybabtu.com>
17603 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
17605 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
17607 2008-11-03 Bean <bean123ch@gmail.com>
17609 * kern/elf.c (grub_elf32_load): Revert to previous code.
17610 (grub_elf64_load): Likewise.
17612 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
17614 2008-11-01 Robert Millan <rmh@aybabtu.com>
17616 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
17617 (TARGET_CPPFLAGS): Likewise.
17618 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
17620 2008-11-01 Carles Pina i Estany <carles@pina.cat>
17622 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
17624 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
17626 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
17627 addition of objects until the code is not going to be able to fail.
17629 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
17631 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
17632 (add a missing NULL check, and correct them by moving the pointer
17633 operations after the actual check).
17635 2008-10-29 Robert Millan <rmh@aybabtu.com>
17637 * util/i386/pc/grub-install.in: Handle empty string as output from
17638 make_system_path_relative_to_its_root().
17640 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
17642 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
17643 circular metadata worst case scenario. If the metadata is circular
17644 then copy the wrap in place.
17645 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
17646 project lib/format_text/layout.h
17647 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
17649 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
17651 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
17653 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
17655 * util/update-grub_lib.in: Mention filename in warning message.
17657 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
17659 * NEWS: Update for rename of update-grub to grub-mkconfig.
17661 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
17663 * util/update-grub_lib.in: Copy to ...
17664 * util/grub-mkconfig_lib.in: ... this. Update all users.
17665 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
17666 * util/update-grub.in: Rename to ...
17667 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
17668 option. Add `--output' option to allow users to specify the generated
17669 configuration file. Default to stdout.
17670 (update_grub_dir): Rename to ...
17671 (grub_mkconfig_dir): ... this.
17672 (grub_cfg): Default to an empty string.
17673 * conf/common.rmk (update-grub): Rename to ...
17674 (grub-mkconfig): ... this.
17675 (update-grub_lib): Copy to ...
17676 (grub-mkconfig_lib): ... this.
17677 (update-grub_SCRIPTS): Copy to ...
17678 (grub-mkconfig_SCRIPTS): ... this. Update all users.
17679 (update-grub_DATA): Rename to ...
17680 (grub-mkconfig_DATA): ... this.
17682 2008-09-28 Robert Millan <rmh@aybabtu.com>
17684 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
17685 to `modified'. Add the real `created' field.
17686 (grub_iso9660_uuid): Use `modified' rather than `created' for
17687 constructing the UUID.
17689 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
17691 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
17692 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
17694 2008-09-28 Bean <bean123ch@gmail.com>
17696 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
17697 Thanks to Christian Franke for finding this bug.
17699 2008-09-25 Robert Millan <rmh@aybabtu.com>
17701 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
17702 instances of grub_util_get_disk_name() (see previous commit).
17704 2008-09-25 Robert Millan <rmh@aybabtu.com>
17706 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
17707 `util/i386/get_disk_name.c'.
17708 * conf/i386-efi.rmk: Likewise.
17709 * conf/x86_64-efi.rmk: Likewise.
17710 * conf/i386-coreboot.rmk: Likewise.
17711 * conf/i386-ieee1275.rmk: Likewise.
17712 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
17713 `util/ieee1275/get_disk_name.c'.
17714 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
17715 * util/ieee1275/get_disk_name.c: Remove file.
17716 * util/i386/get_disk_name.c: Remove file.
17717 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
17718 "hd%d" for device.map entries, rather than using
17719 grub_util_get_disk_name().
17721 2008-09-24 Carles Pina i Estany <carles@pina.cat>
17723 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
17725 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
17727 2008-09-24 Carles Pina i Estany <carles@pina.cat>
17729 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
17731 (GRUB_TERM_PPAGE): Changed to 0x4900.
17733 2008-09-24 Robert Millan <rmh@aybabtu.com>
17735 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
17736 macros (they were i386-pc specific).
17737 * include/grub/sparc64/ieee1275/console.h: Likewise.
17738 * include/grub/efi/console.h: Likewise.
17740 2008-09-22 Bean <bean123ch@gmail.com>
17742 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
17743 resident and in attribute list.
17745 * include/grub/ntfs.h (BMP_LEN): Removed.
17747 2008-09-22 Bean <bean123ch@gmail.com>
17749 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
17750 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
17752 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
17753 error occurs, as grub_disk_open will call grub_disk_close, which will
17754 call p->close (scsi).
17756 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
17758 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
17759 (AC_PREREQ): Bumped to 2.59.
17760 (AC_TRY_COMPILE): Replace obsolete macro with ...
17761 (AC_COMPILE_IFELSE): ... this.
17762 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
17763 (AC_LINK_IFELSE): ... this.
17765 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
17767 * autogen.sh: Add a call to `gendistlist.sh'.
17769 2008-09-19 Christian Franke <franke@computer.org>
17771 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
17772 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
17773 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
17774 Export __enable_execute_stack() to modules.
17775 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
17778 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
17780 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
17783 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
17785 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
17786 #include <grub/util/hostdisk.h>.
17788 2008-09-08 Robert Millan <rmh@aybabtu.com>
17790 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
17791 segments when their filesz is zero (grub_file_read() interprets
17792 zero-size as "read until EOF", which results in memory corruption).
17793 Use `lowest_segment' rather than 0 for calculating the current
17794 segment load address.
17796 2008-09-08 Robert Millan <rmh@aybabtu.com>
17798 * util/hostdisk.c (open_device): Replace a grub_util_info() call
17799 with grub_dprintf("hostdisk", ...), as it was so verbose that it
17800 clobbered useful information.
17802 2008-09-08 Robert Millan <rmh@aybabtu.com>
17804 * include/grub/util/biosdisk.h: Move to ...
17805 * include/grub/util/hostdisk.h: ... here. Update all users.
17806 * util/biosdisk.c: Move to ...
17807 * util/hostdisk.c: ... here. Update all users.
17809 2008-09-07 Robert Millan <rmh@aybabtu.com>
17811 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
17813 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
17814 and length can be stored directly in the `mbi->mmap_addr' and
17815 `mbi->mmap_length' struct fields.
17817 2008-09-07 Robert Millan <rmh@aybabtu.com>
17819 * conf/i386.rmk: New file. Provides declaration for building
17821 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
17822 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
17824 Include `conf/i386.mk'.
17825 * conf/i386-efi.rmk: Likewise.
17826 * conf/x86_64-efi.rmk: Likewise.
17827 * conf/i386-coreboot.rmk: Likewise.
17828 * conf/i386-ieee1275.rmk: Likewise.
17830 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
17832 Based on patch created by Colin D Bennett <colin@gibibit.com>.
17833 Adds optimization support for BGR based modes.
17835 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
17836 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
17837 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
17838 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
17839 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
17840 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
17841 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
17842 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
17843 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
17844 (grub_video_i386_vbeblit_index_index): Likewise.
17845 (grub_video_i386_vbeblit_replace_directN): Added.
17846 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
17847 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
17848 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
17849 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
17850 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
17851 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
17852 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
17853 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
17854 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
17855 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
17856 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
17857 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
17858 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
17860 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
17861 (grub_video_i386_vbefill_R8G8B8): Likewise.
17862 (grub_video_i386_vbefill_index): Likewise.
17863 (grub_video_i386_vbefill_direct32): Added.
17864 (grub_video_i386_vbefill_direct24): Likewise.
17865 (grub_video_i386_vbefill_direct16): Likewise.
17866 (grub_video_i386_vbefill_direct8): Likewise.
17868 * include/grub/video.h (grub_video_blit_format): Removed
17869 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
17870 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
17871 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
17872 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
17873 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
17875 * video/video.c (grub_video_get_blit_format): Updated to use new
17876 blit formats. Added handling for 16 bit color modes.
17878 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
17880 (common_blitter): Updated to use new blitters.
17882 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
17884 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
17885 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
17886 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
17887 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
17888 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
17889 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
17890 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
17891 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
17892 (grub_video_i386_vbeblit_index_index): Likewise.
17893 (grub_video_i386_vbeblit_replace_directN): Added.
17894 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
17895 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
17896 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
17897 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
17898 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
17899 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
17900 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
17901 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
17902 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
17903 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
17904 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
17905 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
17906 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
17908 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
17909 (grub_video_i386_vbefill_R8G8B8): Likewise.
17910 (grub_video_i386_vbefill_index): Likewise.
17911 (grub_video_i386_vbefill_direct32): Added.
17912 (grub_video_i386_vbefill_direct24): Likewise.
17913 (grub_video_i386_vbefill_direct16): Likewise.
17914 (grub_video_i386_vbefill_direct8): Likewise.
17916 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
17919 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
17922 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
17925 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
17928 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
17930 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
17933 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
17935 * fs/iso9660.c (grub_iso9660_date): New structure.
17936 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
17937 (grub_iso9660_uuid): New function.
17939 2008-09-05 Bean <bean123ch@gmail.com>
17941 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
17943 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
17944 insensitive bit for names in Win32 and Win32 & DOS namespace.
17946 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
17948 * include/grub/types.h (LONG_MAX): Likewise.
17950 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
17952 * util/getroot.c: Include <config.h>.
17953 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
17954 add support for /dev/md/N devices and handle LVM double dash escaping.
17956 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
17958 * config.guess: Update to latest version from config git.
17959 * config.sub: Likewise.
17961 2008-09-03 Robert Millan <rmh@aybabtu.com>
17963 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
17964 `disk->total_sectors'.
17966 2008-09-01 Colin D Bennett <colin@gibibit.com>
17968 * include/grub/normal.h: Fixed incorrect comment for
17969 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
17971 2008-09-01 Colin D Bennett <colin@gibibit.com>
17973 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
17974 values with defines.
17976 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
17977 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
17978 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
17979 (GRUB_VBE_MODEATTR_COLOR): Likewise.
17980 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
17981 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
17982 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
17983 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
17984 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
17985 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
17986 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
17987 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
17988 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
17989 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
17990 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
17991 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
17992 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
17993 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
17994 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
17996 2008-08-31 Robert Millan <rmh@aybabtu.com>
17998 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
18000 (grub_multiboot): Fix a few warnings.
18002 2008-08-31 Robert Millan <rmh@aybabtu.com>
18004 * loader/i386/pc/multiboot.c: Update comment not to say that
18005 boot_device support is unimplemented.
18007 2008-08-31 Robert Millan <rmh@aybabtu.com>
18009 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
18010 or memory map support are unimplemented.
18012 2008-08-31 Colin D Bennett <colin@gibibit.com>
18014 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
18016 2008-08-31 Colin D Bennett <colin@gibibit.com>
18018 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
18019 total video memory in 'vbeinfo' output; show color format details for
18022 2008-08-30 Pavel Roskin <proski@gnu.org>
18024 * util/genmoddep.c: Remove for real this time.
18025 * DISTLIST: Remove util/genmoddep.c.
18027 2008-08-30 Robert Millan <rmh@aybabtu.com>
18029 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
18030 as required by Multiboot spec (it was already 4-byte aligned, but
18033 2008-08-29 Pavel Roskin <proski@gnu.org>
18035 * kern/powerpc/ieee1275/crt0.S: Rename to ...
18036 * kern/powerpc/ieee1275/startup.S: ... this.
18037 * conf/powerpc-ieee1275.rmk: Adjust for the above.
18038 * DISTLIST: Likewise.
18040 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
18041 grub/cpu/kernel.h. Add start label for consistency with other
18042 platforms. Add grub_prefix immediately after start. Add jump
18043 to the code after grub_prefix.
18044 * include/grub/powerpc/kernel.h: Provide valid values for
18045 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
18047 2008-08-29 Bean <bean123ch@gmail.com>
18049 * configure.ac: Change host_os to cygwin for mingw.
18050 (asprintf): New check for function.
18052 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
18053 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
18055 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
18056 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
18057 sync, sleep and grub_util_get_disk_size for mingw.
18059 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
18060 to get size in mingw.
18061 (open_device): Use flag O_BINARY if it's defined.
18062 (find_root_device): Add dummy code for mingw.
18064 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
18065 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
18066 (get_scsi_disk_name): Return 0 for mingw.
18068 * util/hostfs.c: #include <grub/util/misc.h>.
18069 (grub_hostfs_open): Use "rb" flag to open file, use
18070 grub_util_get_disk_size to get disk size for mingw.
18072 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
18073 (asprintf): New function if HAVE_ASPRINTF is not set.
18074 (sync): New function for mingw.
18076 (grub_util_get_disk_size): Likewise.
18078 2008-08-28 Pavel Roskin <proski@gnu.org>
18080 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
18083 2008-08-28 Robert Millan <rmh@aybabtu.com>
18085 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
18087 2008-08-28 Robert Millan <rmh@aybabtu.com>
18089 Change find_grub_drive() syntax so it doesn't prevent it from
18090 detecting NULL names as errors.
18092 * util/biosdisk.c (find_grub_drive): Move free slot search code
18094 (find_free_slot): ... to here.
18095 (read_device_map): Use find_free_slot() to search for free slots.
18097 2008-08-27 Marco Gerards <marco@gnu.org>
18099 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
18100 (scsi_mod_SOURCES): New variable.
18101 (scsi_mod_CFLAGS): Likewise
18102 (scsi_mod_LDFLAGS): Likewise.
18104 * disk/scsi.c: New file.
18106 * include/grub/scsi.h: Likewise.
18108 * include/grub/scsicmd.h: Likewise.
18110 * disk/ata.c: Include <grub/scsi.h>.
18111 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
18113 (grub_ata_iterate): Skip ATAPI devices.
18114 (grub_ata_open): Only handle ATAPI devices.
18115 (struct grub_atapi_read): Removed.
18116 (grub_atapi_readsector): Likewise.
18117 (grub_ata_read): No longer handle ATAPI devices.
18118 (grub_ata_write): Likewise.
18119 (grub_atapi_iterate): New function.
18120 (grub_atapi_read): Likewise.
18121 (grub_atapi_write): Likewise.
18122 (grub_atapi_open): Likewise.
18123 (grub_atapi_close): Likewise.
18124 (grub_atapi_dev): New variable.
18125 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
18126 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
18128 * include/grub/disk.h (enum grub_disk_dev_id): Add
18129 `GRUB_DISK_DEVICE_SCSI_ID'.
18131 2008-08-26 Robert Millan <rmh@aybabtu.com>
18133 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
18134 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
18137 2008-08-23 Bean <bean123ch@gmail.com>
18139 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
18140 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
18141 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
18142 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
18144 (raid5rec_mod_SOURCES): New macro.
18145 (raid5rec_mod_CFLAGS): Likewise.
18146 (raid5rec_mod_LDFLAGS): Likewise.
18147 (raid6rec_mod_SOURCES): Likewise.
18148 (raid6rec_mod_CFLAGS): Likewise.
18149 (raid6rec_mod_LDFLAGS): Likewise.
18150 (mdraid_mod_SOURCES): Likewise.
18151 (mdraid_mod_CFLAGS): Likewise.
18152 (mdraid_mod_LDFLAGS): Likewise.
18153 (dm_nv_mod_SOURCES): Likewise.
18154 (dm_nv_mod_CFLAGS): Likewise.
18155 (dm_nv_mod_LDFLAGS): Likewise.
18157 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
18158 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
18159 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
18161 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
18162 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
18164 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18166 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18168 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18172 * disk/raid5_recover.c: New file.
18174 * disk/raid6_recover.c: Likewise.
18176 * disk/mdraid_linux.c: Likewise.
18178 * disk/dmraid_nvidia.c: Likewise.
18180 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
18183 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
18184 calculate the size of raid device.
18185 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
18186 different layout of raid5.
18187 (grub_raid_scan_device): Remove code specific to mdraid.
18188 (grub_raid_list): New variable.
18189 (free_array): New function.
18190 (grub_raid_register): Likewise.
18191 (grub_raid_unregister): Likewise.
18192 (grub_raid_rescan): Likewise.
18193 (GRUB_MOD_INIT): Don't iterate device here.
18194 (GRUB_MOD_FINI): Use free_array to release resource.
18196 * include/grub/raid.h: Remove macro and structure specific to mdraid.
18197 (grub_raid5_recover_func_t): New function variable type.
18198 (grub_raid6_recover_func_t): Likewise.
18199 (grub_raid5_recover_func): New variable.
18200 (grub_raid6_recover_func): Likewise.
18201 (grub_raid_register): New function.
18202 (grub_raid_unregister): Likewise.
18203 (grub_raid_rescan): Likewise.
18204 (grub_raid_block_xor): Likewise.
18206 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
18207 (CMD_CRC): New macro.
18209 (read_file): Handle device as well as file.
18210 (cmd_crc): New function.
18211 (fstest): Handle multiple disks.
18212 (options): Remove part, raw and long, add root and diskcount.
18213 (usage): Add crc, remove -p, -r, -l, add -r and -c.
18214 (main): Find the first non option entry and ignore subsequent options,
18215 add handling for the new options, support multiple disks.
18217 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
18219 2008-08-23 Bean <bean123ch@gmail.com>
18221 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
18223 * genfslist.sh: Ignore kernel.mod.
18225 * genpartmaplist.sh: Likewise.
18227 2008-08-23 Robert Millan <rmh@aybabtu.com>
18229 * util/getroot.c (find_root_device): Skip anything that starts with
18230 a dot, not just directories. This avoids things like /dev/.tmp.md0.
18232 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
18234 * util/update-grub.in (GRUB_GFXMODE): Export variable.
18235 * util/grub.d/00_header.in: Allow the administrator to change default
18236 gfxmode via ${GRUB_GFXMODE}.
18238 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
18240 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
18242 2008-08-21 Robert Millan <rmh@aybabtu.com>
18244 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
18246 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
18247 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
18249 2008-08-20 Carles Pina i Estany <carles@pina.cat>
18251 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
18252 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
18254 2008-08-19 Robert Millan <rmh@aybabtu.com>
18256 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
18257 (struct grub_virtual_screen): Remove `cursor_color'.
18258 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
18260 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
18262 2008-08-18 Robert Millan <rmh@aybabtu.com>
18264 Unify (identical) linux_normal.c files.
18265 * loader/i386/efi/linux_normal.c: Move from here ...
18266 * loader/linux_normal.c: ... to here. Update all users.
18267 * loader/i386/pc/linux_normal.c: Delete. Update all users.
18268 * loader/i386/ieee1275/linux_normal.c: Likewise.
18270 2008-08-18 Robert Millan <rmh@aybabtu.com>
18272 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
18273 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
18274 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
18275 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
18276 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
18278 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
18279 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
18280 (GRUB_LINUX_CL_END_OFFSET): ... to here.
18281 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
18282 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
18283 (GRUB_EFI_CL_END_OFFSET): Rename to ...
18284 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
18285 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
18286 Initialize `params->video_cursor_x' and `params->video_cursor_y'
18287 portably using grub_getxy().
18288 Replace `-EFI' with `-bzImage' in boot message.
18290 2008-08-17 Robert Millan <rmh@aybabtu.com>
18292 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
18294 2008-08-17 Robert Millan <rmh@aybabtu.com>
18296 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
18298 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
18299 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
18300 (grub_machine_mmap_iterate): New function declaration.
18301 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
18303 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
18306 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
18307 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
18308 Move e820 parsing from here ...
18309 * kern/i386/pc/mmap.c: New file.
18310 (grub_machine_mmap_iterate): ... to here.
18312 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
18313 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
18314 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
18315 (grub_available_iterate): Redeclare to return `void', and redeclare
18316 its hook to use grub_uint64_t as addr and size parameters, and rename
18318 (grub_machine_mmap_iterate): ... this. Update all users.
18320 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
18321 to make it more readable. Rename to ...
18322 (grub_machine_mmap_iterate): ... this.
18324 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
18325 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
18326 (grub_multiboot): Allocate an extra region after the payload, and fill
18327 it with a Multiboot memory map. Adjust a.out loader to calculate size
18328 with the extra space.
18329 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
18330 with the extra space.
18332 2008-08-17 Carles Pina i Estany <carles@pina.cat>
18334 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
18336 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
18338 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
18339 mdate-sh to the list `find' searches for.
18340 * DISTLIST: Regenerated.
18342 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
18344 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
18345 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
18346 genmoddep.awk, gensymlist.sh.in.
18347 (DISTDIRS): Add bus, docs, hook, lib.
18348 * DISTLIST: Regenerated.
18349 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
18351 2008-08-16 Robert Millan <rmh@aybabtu.com>
18353 * disk/raid.c (grub_raid_init): Handle/report errors set by
18354 grub_device_iterate().
18355 * disk/lvm.c (grub_lvm_init): Likewise.
18357 2008-08-15 Bean <bean123ch@gmail.com>
18359 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18361 (datetime_mod_SOURCES): New macro.
18362 (datetime_mod_CFLAGS): Likewise.
18363 (datetime_mod_LDFLAGS): Likewise.
18364 (date_mod_SOURCES): Likewise.
18365 (date_mod_CFLAGS): Likewise.
18366 (date_mod_LDFLAGS): Likewise.
18367 (datehook_mod_SOURCES): Likewise.
18368 (datehook_mod_CFLAGS): Likewise.
18369 (datehook_mod_LDFLAGS): Likewise.
18371 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18373 (datetime_mod_SOURCES): New macro.
18374 (datetime_mod_CFLAGS): Likewise.
18375 (datetime_mod_LDFLAGS): Likewise.
18376 (date_mod_SOURCES): Likewise.
18377 (date_mod_CFLAGS): Likewise.
18378 (date_mod_LDFLAGS): Likewise.
18379 (datehook_mod_SOURCES): Likewise.
18380 (datehook_mod_CFLAGS): Likewise.
18381 (datehook_mod_LDFLAGS): Likewise.
18383 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18385 (datetime_mod_SOURCES): New macro.
18386 (datetime_mod_CFLAGS): Likewise.
18387 (datetime_mod_LDFLAGS): Likewise.
18388 (date_mod_SOURCES): Likewise.
18389 (date_mod_CFLAGS): Likewise.
18390 (date_mod_LDFLAGS): Likewise.
18391 (datehook_mod_SOURCES): Likewise.
18392 (datehook_mod_CFLAGS): Likewise.
18393 (datehook_mod_LDFLAGS): Likewise.
18395 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18397 (datetime_mod_SOURCES): New macro.
18398 (datetime_mod_CFLAGS): Likewise.
18399 (datetime_mod_LDFLAGS): Likewise.
18400 (date_mod_SOURCES): Likewise.
18401 (date_mod_CFLAGS): Likewise.
18402 (date_mod_LDFLAGS): Likewise.
18403 (datehook_mod_SOURCES): Likewise.
18404 (datehook_mod_CFLAGS): Likewise.
18405 (datehook_mod_LDFLAGS): Likewise.
18407 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18409 (datetime_mod_SOURCES): New macro.
18410 (datetime_mod_CFLAGS): Likewise.
18411 (datetime_mod_LDFLAGS): Likewise.
18412 (date_mod_SOURCES): Likewise.
18413 (date_mod_CFLAGS): Likewise.
18414 (date_mod_LDFLAGS): Likewise.
18415 (datehook_mod_SOURCES): Likewise.
18416 (datehook_mod_CFLAGS): Likewise.
18417 (datehook_mod_LDFLAGS): Likewise.
18419 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
18421 * commands/date.c: New file.
18423 * hook/datehook.c: Likewise.
18425 * include/grub/lib/datetime.h: Likewise.
18427 * include/grub/i386/cmos.h: Likewise.
18429 * lib/datetime.c: Likewise.
18431 * lib/i386/datetime.c: Likewise.
18433 * lib/efi/datetime.c: Likewise.
18435 2008-08-14 Robert Millan <rmh@aybabtu.com>
18437 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
18438 (grub_mkelfimage_SOURCES): New variable.
18439 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
18441 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
18442 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
18443 * conf/powerpc-ieee1275.rmk: Likewise.
18444 * conf/i386-ieee1275.rmk: Likewise.
18446 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
18447 * kern/i386/coreboot/init.c: Likewise.
18449 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
18450 with `<grub/cpu/kernel.h>'.
18451 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
18453 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
18454 * kern/i386/coreboot/startup.S: Likewise.
18456 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
18457 (GRUB_MOD_GAP): Remove.
18458 * include/grub/powerpc/kernel.h: New file.
18459 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
18460 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
18461 * include/grub/i386/kernel.h: New file.
18462 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
18463 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
18464 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
18466 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
18468 Use --directory when invoking grub_mkimage.
18470 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
18471 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
18472 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
18473 and GRUB_KERNEL_CPU_PREFIX.
18475 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
18477 * include/grub/err.h (grub_err_printf): New function prototype.
18478 * util/misc.c (grub_err_printf): New function.
18479 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
18481 * kern/err.c (grub_print_error): Use grub_err_printf.
18483 2008-08-13 Robert Millan <rmh@aybabtu.com>
18485 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
18487 2008-08-13 Robert Millan <rmh@aybabtu.com>
18489 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
18492 2008-08-12 Robert Millan <rmh@aybabtu.com>
18494 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
18495 of the relocation code from here ...
18496 (grub_multiboot): ... to here.
18497 (forward_relocator, backward_relocator): Move from here ...
18498 * kern/i386/loader.S (grub_multiboot_forward_relocator)
18499 (grub_multiboot_backward_relocator): ... to here.
18500 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
18501 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
18502 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
18503 (grub_multiboot_forward_relocator_end)
18504 (grub_multiboot_backward_relocator)
18505 (grub_multiboot_backward_relocator_end): New variables.
18507 2008-08-12 Bean <bean123ch@gmail.com>
18509 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
18511 2008-08-11 Robert Millan <rmh@aybabtu.com>
18513 * kern/i386/linuxbios/startup.S: Move from here ...
18514 * kern/i386/coreboot/startup.S: ... to here.
18516 * kern/i386/linuxbios/init.c: Move from here ...
18517 * kern/i386/coreboot/init.c: ... to here.
18519 * kern/i386/linuxbios/table.c: Move from here ...
18520 * kern/i386/coreboot/mmap.c: ... to here.
18522 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
18524 2008-08-11 Robert Millan <rmh@aybabtu.com>
18526 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
18527 errors. Leave it to the upper layer to handle them.
18529 2008-08-09 Christian Franke <franke@computer.org>
18531 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
18532 * conf/common.rmk: Install `grub-pe2elf' only if requested.
18533 Install `grub.d/10_windows' only on Cygwin.
18534 * configure.ac: Add subst of `target_os'.
18535 Check `target_os' also before setting TARGET_OBJ2ELF.
18536 Add `--enable-grub-pe2elf'.
18538 2008-08-08 Robert Millan <rmh@aybabtu.com>
18540 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
18541 (grub_last_time): Change type to grub_uint64_t.
18542 (grub_disk_open): Migrate code from to using grub_get_time_ms().
18543 (grub_disk_close): Likewise.
18545 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
18546 (run_menu): Migrate code from to using grub_get_time_ms().
18548 * util/misc.c (grub_get_time_ms): New function.
18550 2008-08-08 Marco Gerards <marco@gnu.org>
18552 * disk/ata.c (grub_ata_regget): Change return type to
18554 (grub_ata_regget2): Likewise.
18555 (grub_ata_wait_status): New function.
18556 (grub_ata_wait_busy): Removed function, updated all users to use
18557 `grub_ata_wait_status'.
18558 (grub_ata_wait_drq): Likewise.
18559 (grub_ata_cmd): New function.
18560 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
18562 (grub_ata_pio_write): Add error handling.
18563 (grub_atapi_identify): Likewise.
18564 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
18566 (grub_ata_identify): Use `grub_ata_cmd' and improve error
18567 handling. Actually use the detected registers. Reorder the
18568 detection logic such that it is easier to read.
18569 (grub_ata_pciinit): Do not assign the same ID to each controller.
18570 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
18572 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
18574 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
18576 2008-08-08 Marco Gerards <marco@gnu.org>
18580 2008-08-07 Bean <bean123ch@gmail.com>
18582 * include/grub/x86_64/pci.h: New file.
18584 2008-08-07 Christian Franke <franke@computer.org>
18586 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
18587 (TIMER2_GATE): Likewise.
18588 (grub_pit_wait): Add enable/disable of the timer2 gate
18589 bit of port 0x61. This fixes a possible infinite loop.
18591 2008-08-07 Bean <bean123ch@gmail.com>
18593 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
18594 kern/i386/tsc.c and kern/i386/pit.c.
18596 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
18599 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
18602 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
18604 2008-08-07 Bean <bean123ch@gmail.com>
18606 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
18608 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
18610 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
18611 multiple inclusion. Add #include <grub/types.h>.
18613 2008-08-06 Christian Franke <franke@computer.org>
18615 * conf/common.rmk: Build and install `10_windows'.
18616 * util/grub.d/10_windows.in: New script.
18618 2008-08-06 Pavel Roskin <proski@gnu.org>
18620 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
18622 2008-08-06 Robert Millan <rmh@aybabtu.com>
18624 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
18625 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
18627 2008-08-06 Bean <bean123ch@gmail.com>
18629 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
18630 (grub_pxefs_fs_int): Remove dummy definition.
18631 (grub_pxefs_open): Use data->block_size to store the current block
18633 (grub_pxefs_read): Use block size stored in data->block_size. As the
18634 value of grub_pxe_blksize can be changed after the file is opened.
18636 2008-08-06 Bean <bean123ch@gmail.com>
18638 * fs/i386/pc/pxe.c (curr_file): new variable.
18639 (grub_pxefs_open): Simply the handling of pxe file system. Don't
18640 require the dummy internal file system anymore.
18641 (grub_pxefs_read): Removed.
18642 (grub_pxefs_close): Likewise.
18643 (grub_pxefs_fs_int): Likewise.
18644 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
18645 connection when we switch file.
18646 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
18648 2008-08-06 Robert Millan <rmh@aybabtu.com>
18650 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
18652 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
18653 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
18655 * kern/i386/halt.c: New file.
18656 * kern/i386/reboot.c: Likewise.
18657 * include/grub/i386/reboot.h: Likewise.
18658 * include/grub/i386/halt.h: Likewise.
18660 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
18661 Include `<grub/cpu/halt.h>'.
18662 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
18663 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
18665 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
18666 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
18667 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
18668 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
18669 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
18670 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
18672 * include/grub/i386/at_keyboard.h: ... to here.
18674 2008-08-05 Robert Millan <rmh@aybabtu.com>
18676 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
18677 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
18678 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
18679 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
18680 `kern/generic/millisleep.c'.
18682 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
18683 instead of grub_get_rtc().
18684 (grub_tsc_init): Initialize `tsc_boot_time'.
18686 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
18687 (grub_machine_init): Use grub_tsc_init() rather than
18688 installing an RTC-based handler via grub_install_get_time_ms().
18690 * kern/i386/pit.c: New file.
18691 * include/grub/i386/pit.h: Likewise.
18693 2008-08-05 Bean <bean123ch@gmail.com>
18695 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
18697 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
18698 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
18699 (pxe_mod_SOURCES): New macro.
18700 (pxe_mod_CFLAGS): Likewise.
18701 (pxe_mod_LDFLAGS): Likewise.
18702 (pxecmd_mod_SOURCES): Likewise.
18703 (pxecmd_mod_CFLAGS): Likewise.
18704 (pxecmd_mod_LDFLAGS): Likewise.
18706 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
18707 (grub_pxe_call): Likewise.
18709 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
18711 * commands/i386/pc/pxecmd.c: New file.
18713 * fs/i386/pc/pxe.c: Likewise.
18715 * include/grub/i386/pc/pxe.h: Likewise.
18717 2008-08-05 Bean <bean123ch@gmail.com>
18719 * util/console.c (grub_console_cur_color): New variable.
18720 (grub_console_standard_color): Likewise.
18721 (grub_console_normal_color): Likewise.
18722 (grub_console_highlight_color): Likewise.
18723 (color_map): Likewise.
18724 (use_color): Likewise.
18725 (NUM_COLORS): New macro.
18726 (grub_ncurses_setcolorstate): Handle color properly.
18727 (grub_ncurses_setcolor): Don't change color here, just remember the
18728 settings, color will be set in grub_ncurses_setcolorstate.
18729 (grub_ncurses_getcolor): New function.
18730 (grub_ncurses_init): Initialize color pairs.
18731 (grub_ncurses_term): New member grub_ncurses_getcolor.
18733 2008-08-05 Colin D Bennett <colin@gibibit.com>
18735 High resolution timer support. Implemented for x86 CPUs using TSC.
18736 Extracted generic grub_millisleep() so it's linked in only as needed.
18737 This requires a Pentium compatible CPU; if the RDTSC instruction is
18738 not supported, then it falls back on the generic grub_get_time_ms()
18739 implementation that uses the machine's RTC.
18741 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
18742 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
18743 `kern/generic/millisleep.c'.
18745 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
18746 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
18748 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
18749 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
18751 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
18753 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
18754 `kern/generic/millisleep.c'.
18756 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
18758 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
18760 * kern/generic/rtc_get_time_ms.c: New file.
18762 * kern/generic/millisleep.c: New file.
18764 * kern/misc.c: Don't include
18765 <kern/time.h> anymore.
18766 (grub_millisleep_generic): Removed.
18768 * commands/sleep.c (grub_interruptible_millisleep): Uses
18769 grub_get_time_ms() instead of grub_get_rtc().
18771 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
18773 (grub_cpu_is_cpuid_supported): New inline function.
18774 (grub_cpu_is_tsc_supported): New inline function.
18775 (grub_tsc_init): New function prototype.
18776 (grub_tsc_get_time_ms): New function prototype.
18778 * kern/i386/tsc.c (grub_get_time_ms): New file.
18780 * include/grub/time.h: Include <grub/types.h.
18781 (grub_millisleep_generic): Removed.
18782 (grub_get_time_ms): New prototype.
18783 (grub_install_get_time_ms): New prototype.
18784 (grub_rtc_get_time_ms): New prototype.
18786 * kern/time.c (grub_get_time_ms): New function.
18787 (grub_install_get_time_ms): New function.
18789 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
18790 <grub/time.h> anymore.
18791 (grub_millisleep): Removed.
18792 (grub_machine_init): Call grub_tsc_init.
18794 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
18795 get_time_ms() implementation.
18797 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
18798 (ieee1275_get_time_ms): New function.
18799 (grub_machine_init): Install get_time_ms() implementation.
18801 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
18802 (grub_machine_init): Call grub_tsc_init().
18803 (grub_millisleep): Removed.
18805 * kern/ieee1275/init.c (grub_millisleep): Removed.
18806 (grub_machine_init): Install ieee1275_get_time_ms()
18808 (ieee1275_get_time_ms): New function.
18809 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
18812 2008-08-05 Marco Gerards <marco@gnu.org>
18814 * disk/ata.c: Include <grub/pci.h>.
18815 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
18816 (grub_ata_initialize): Rewritten.
18817 (grub_ata_device_initialize): New function.
18819 2008-08-04 Pavel Roskin <proski@gnu.org>
18821 * kern/main.c: Include grub/mm.h.
18823 2008-08-04 Robert Millan <rmh@aybabtu.com>
18825 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
18826 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
18827 corruption problem).
18829 2008-08-04 Robert Millan <rmh@aybabtu.com>
18831 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
18832 warnings introduced in my last commit.
18834 2008-08-03 Robert Millan <rmh@aybabtu.com>
18836 Make PCI available on all i386 architectures.
18838 * include/grub/i386/pc/pci.h: Move from here ...
18839 * include/grub/i386/pci.h: ... to here.
18841 * include/grub/i386/pc/pci.h: Remove.
18842 * include/grub/i386/efi/pci.h: Remove.
18843 * include/grub/x86_64/efi/pci.h: Remove.
18845 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
18846 `<grub/cpu/pci.h>'.
18848 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
18849 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
18850 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
18852 * conf/i386-ieee1275.rmk: Likewise.
18854 2008-08-03 Robert Millan <rmh@aybabtu.com>
18856 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
18857 (grub_console_setcursor): Make it possible to set cursor off.
18859 2008-08-03 Robert Millan <rmh@aybabtu.com>
18861 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
18862 of modules instead of assuming which platform provides what.
18863 * util/update-grub.in: Likewise.
18865 2008-08-03 Robert Millan <rmh@aybabtu.com>
18867 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
18868 instead of `grub_install_dos_part' to determine whether a drive needs
18869 to be prepended to prefix (`grub_install_dos_part' is not reliable,
18870 because it can be overridden when loading GRUB via Multiboot).
18872 2008-08-02 Robert Millan <rmh@aybabtu.com>
18874 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
18876 2008-08-02 Robert Millan <rmh@aybabtu.com>
18878 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
18879 of informational grub_dprintf() calls.
18881 2008-08-02 Robert Millan <rmh@aybabtu.com>
18883 * disk/memdisk.c (memdisk_size): Don't initialize.
18884 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
18886 * include/grub/i386/pc/kernel.h
18887 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
18888 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
18889 (grub_memdisk_image_size, grub_arch_memdisk_addr)
18890 (grub_arch_memdisk_size): Remove.
18892 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
18893 field (was only used to transfer a constant). Add `type' field to
18894 support multiple module types.
18895 (grub_module_iterate): New function.
18897 * kern/device.c (grub_device_open): Do not hide error messages
18898 when grub_disk_open() fails. Use grub_print_error() instead.
18900 * kern/i386/pc/init.c (grub_arch_modules_addr)
18901 (grub_arch_memdisk_size): Remove functions.
18902 (grub_arch_modules_addr): Return the module address in high memory
18903 (now that it isn't copied anymore).
18905 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
18906 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
18907 decompression routine (grub_total_module_size already includes that
18908 now). Don't copy modules back to low memory.
18910 * kern/main.c: Include `<grub/mm.h>'.
18911 (grub_load_modules): Split out (and use) ...
18912 (grub_module_iterate): ... this function, which iterates through
18913 module objects and runs a hook.
18914 Comment out grub_mm_init_region() call, as it would cause non-ELF
18915 modules to be overwritten.
18917 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
18918 the memdisk image in its own region, make it part of the module list.
18919 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
18920 (main): Parse --memdisk|-m option, and pass user-provided path as
18921 parameter to generate_image().
18922 (add_segments): Pass `memdisk_path' down to load_modules().
18923 (load_modules): Embed memdisk image in module section when requested.
18924 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
18925 `header.type' instead of `header.offset'.
18927 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
18928 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
18929 (memdisk_mod_LDFLAGS): New variables.
18930 * conf/i386-coreboot.rmk: Likewise.
18931 * conf/i386-ieee1275.rmk: Likewise.
18933 2008-08-02 Robert Millan <rmh@aybabtu.com>
18935 * loader/i386/pc/multiboot.c (playground, forward_relocator)
18936 (backward_relocator): New variables. Used to allocate and relocate
18937 the payload, respectively.
18938 (grub_multiboot_load_elf32): Load into heap instead of requested
18939 address, install the appropriate relocator code in each bound of
18940 the payload, and set the entry point such that
18941 grub_multiboot_real_boot() will jump to one of them.
18943 * kern/i386/loader.S (grub_multiboot_payload_size)
18944 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
18945 (grub_multiboot_payload_entry_offset): New variables.
18946 (grub_multiboot_real_boot): Set cpu context to what the relocator
18947 expects, and jump to the relocator instead of the payload.
18949 * include/grub/i386/loader.h (grub_multiboot_payload_size)
18950 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
18951 (grub_multiboot_payload_entry_offset): Export.
18953 2008-08-01 Bean <bean123ch@gmail.com>
18955 * normal/menu_entry.c (editor_getline): Don't return the original
18956 string as result, as it will be released by lexer once it has done
18959 2008-08-01 Robert Millan <rmh@aybabtu.com>
18961 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
18962 within menuentries, not before them.
18963 util/grub.d/10_hurd.in: Likewise.
18965 2008-08-01 Bean <bean123ch@gmail.com>
18967 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
18968 (bufio_mod_SOURCES): New macro.
18969 (bufio_mod_CFLAGS): Likewise.
18970 (bufio_mod_LDFLAGS): Likewise.
18972 * include/grub/bufio.h: New file.
18974 * io/bufio.c: Likewise.
18976 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
18977 (grub_video_reader_png): Use grub_buffile_open to open file.
18979 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
18980 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
18982 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
18983 (grub_video_reader_tga): Use grub_buffile_open to open file.
18985 * font/manager.c: Include <grub/bufio.h>.
18986 (add_font): Use grub_buffile_open to open file.
18988 2008-07-31 Robert Millan <rmh@aybabtu.com>
18990 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
18991 ELF segments, use a macro for arbitrarily accessing any of them instead
18992 of preparing a pointer that allows access to one at a time.
18993 (grub_multiboot_load_elf64): Likewise.
18995 2008-07-31 Bean <bean123ch@gmail.com>
18997 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
18998 GRUB_KERNEL_MACHINE_DATA_END.
19000 2008-07-30 Robert Millan <rmh@aybabtu.com>
19002 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
19003 Increase from 0x50 to 0x60.
19004 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
19005 use UUIDs to identify the root drive for them. If that's not
19007 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
19008 check, for cross-disk installs.
19010 2008-07-30 Robert Millan <rmh@aybabtu.com>
19012 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
19013 is non-empty, use it to set the `prefix' environment variable instead
19014 of the usual approach.
19015 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
19016 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
19017 environment variable instead of dummy make_install_device().
19019 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
19020 (start): Insert a data section, with `grub_prefix' variable.
19021 * kern/i386/linuxbios/startup.S: Likewise.
19023 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
19024 New variable reference.
19025 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
19026 New macro. Defines offset of `grub_prefix' within startup.S (relative
19028 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
19029 section within startup.S (relative to `start').
19030 * include/grub/i386/coreboot/kernel.h: Likewise.
19032 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
19033 Overwrite grub_prefix with its contents, at the beginning of the
19035 (main): Understand -p|--prefix.
19037 2008-07-30 Robert Millan <rmh@aybabtu.com>
19039 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
19041 2008-07-30 Robert Millan <rmh@aybabtu.com>
19043 * term/i386/pc/vga_text.c (grub_console_cls): Use
19044 grub_console_gotoxy() to go back to beginning of the screen.
19045 Found by Patrick Georgi <patrick.georgi@coresystems.de>
19047 2008-07-29 Christian Franke <franke@computer.org>
19049 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
19050 Add conversion of emulated mount points on Cygwin.
19052 2008-07-29 Christian Franke <franke@computer.org>
19054 * util/update-grub.in: Add a check for admin
19056 Remove old `grub.cfg.new' before creation.
19057 Add `-f' to `mv' to handle the different filesystem
19058 semantics of Windows.
19060 2008-07-29 Bean <bean123ch@gmail.com>
19062 * normal/main.c (get_line): Fix buffer overflow bug.
19064 2008-07-28 Robert Millan <rmh@aybabtu.com>
19066 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
19067 (struct grub_apple_header): New struct. Describes the layout of
19068 the partmap header.
19069 (apple_partition_map_iterate): Check the header magic as well as the
19070 partition magic (which was already being checked).
19072 2008-07-28 Pavel Roskin <proski@gnu.org>
19074 * genmk.rb: Add a warning to the beginning of the output that
19075 it's a generated file and should not be edited.
19077 2008-07-28 Robert Millan <rmh@aybabtu.com>
19079 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
19080 with the same number are found, just use issue a warning with
19081 grub_dprintf(), as this error has been reported to be non-fatal.
19083 2008-07-27 Robert Millan <rmh@aybabtu.com>
19085 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
19088 2008-07-27 Bean <bean123ch@gmail.com>
19090 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
19091 (grub_fat_find_dir): Ignore case when comparing filename.
19093 2008-07-27 Bean <bean123ch@gmail.com>
19095 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
19096 smallino, as it's more descriptive, and i8count can be confused with
19097 the other field count.
19098 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
19101 2008-07-27 Bean <bean123ch@gmail.com>
19103 * commands/crc.c: New file.
19105 * lib/crc.c: Likewise.
19107 * include/grub/lib/crc.h: Likewise.
19109 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
19111 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
19112 (hexdump): Move this function to ...
19114 * lib/hexdump.c: ... here.
19116 * include/grub/hexdump.h: Renamed to ...
19118 * include/grub/lib/hexdump.h: ... this.
19120 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
19122 * util/grub-editenv.c: Likewise.
19124 * include/envblk.h: Renamed to ...
19126 * include/lib/envblk.h: ... this.
19128 * util/envblk.c: Renamed to ...
19130 * lib/envblk.c: ... this.
19132 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
19134 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
19135 (pkglib_MODULES): Add crc.mod.
19136 (hexdump_mod_SOURCES): Add lib/hexdump.c.
19137 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
19138 (crc_mod_SOURCES): New macro.
19139 (crc_mod_CFLAGS): Likewise.
19140 (crc_mod_LDFLAGS): Likewise.
19142 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
19144 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19146 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19150 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19152 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
19154 * commands/help.c: Include <grub/term.h>.
19155 (TERM_WIDTH): Removed. Updated all users.
19157 2008-07-27 Pavel Roskin <proski@gnu.org>
19159 * util/getroot.c (find_root_device): Rephrase a comment to avoid
19160 spurious warnings about a comment within a comment.
19162 2008-07-25 Robert Millan <rmh@aybabtu.com>
19164 * util/getroot.c (find_root_device): Skip devices that match
19165 /dev/dm-[0-9]. This lets the real device be found for any type of
19166 abstraction (LVM, EVMS, RAID..).
19167 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
19168 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
19169 device is found first, find_root_device() will now skip it.
19171 2008-07-24 Pavel Roskin <proski@gnu.org>
19173 * include/grub/types.h: Use __builtin_bswap32() and
19174 __builtin_bswap64() with gcc 4.3 and newer.
19176 2008-07-24 Christian Franke <franke@computer.org>
19178 * util/i386/pc/grub-install.in: If `--debug' is specified,
19179 pass `--verbose' to grub-setup.
19180 Abort script if make_system_path_relative_to_its_root() fails.
19182 2008-07-24 Bean <bean123ch@gmail.com>
19184 * configure.ac: Fixed a bug caused by the previous cygwin patch,
19185 variable `target_platform' should be `platform'.
19187 2008-07-24 Bean <bean123ch@gmail.com>
19189 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
19190 (grub_png_init_fixed_block): New function.
19191 (grub_png_decode_image_data): Handle fixed huffman code compression.
19193 2008-07-24 Bean <bean123ch@gmail.com>
19195 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
19196 (grub_pe2elf_SOURCES): New macro.
19197 (CLEANFILES): Add grub-pe2elf.
19199 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
19200 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
19201 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
19202 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
19203 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
19204 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
19205 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
19206 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
19207 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
19208 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
19209 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
19210 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
19211 (GRUB_PE32_DT_FUNCTION): Likewise.
19212 (GRUB_PE32_REL_I386_DIR32): Likewise.
19213 (GRUB_PE32_REL_I386_REL32): Likewise.
19214 (grub_pe32_symbol): New structure.
19215 (grub_pe32_reloc): Likewise.
19217 * util/grub-pe2elf.c: New file.
19219 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
19220 start symbol in non pc platform.
19222 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
19224 The following patches are from Christian Franke.
19226 * include/grub/dl.h: Remove .previous, gas supports this only
19229 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
19230 Remove .type, gas supports this only for ELF format.
19232 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
19233 nullbytes in symbol table. This fixes an infinite loop if table is
19236 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
19237 TARGET_IMG_LDFLAGS and EXEEXT.
19239 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
19240 TARGET_IMG_LDFLAGS_AC.
19241 (grub_CHECK_STACK_ARG_PROBE): New function.
19243 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
19245 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
19247 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
19248 to set TARGET_IMG_LD* accordingly.
19249 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
19250 Add call to grub_CHECK_STACK_ARG_PROBE.
19251 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
19253 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
19255 * genmk.rb: Add EXEEXT to CLEANFILES.
19257 2008-07-23 Robert Millan <rmh@aybabtu.com>
19259 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
19260 define the codes for arrows and lines used for the menu).
19261 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
19264 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
19265 fonts, because the latter are too slow.
19267 2008-07-21 Bean <bean123ch@gmail.com>
19269 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
19270 a20. Run keyboard test last, as it will cause macbook to halt.
19272 2008-07-18 Pavel Roskin <proski@gnu.org>
19274 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
19275 load foreign architecture modules correctly anyway. Keep
19276 support for loading host architecture modules, whether we
19277 compile them or not.
19279 2008-07-17 Pavel Roskin <proski@gnu.org>
19281 * configure.ac: Use -m32 or -m64 regardless of whether we had to
19282 change target_cpu. The compiler default can mismatch target_cpu
19285 * disk/efi/efidisk.c: Fix format warnings on x86_64.
19286 * kern/efi/efi.c: Likewise.
19288 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
19289 target compiler is functional.
19290 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
19293 * configure.ac: Default to efi platform for x86_64-apple. Allow
19294 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
19295 adjustments from the rest, only do them if target is not
19296 explicitly given. Merge other adjustments with the final sanity
19297 check. Remove an extraneous check for supported CPU. Be
19298 specific which CPU and which platform is not supported.
19300 * configure.ac: Default to pc platform for x86_64.
19302 2008-07-17 Robert Millan <rmh@aybabtu.com>
19304 Partial LinuxBIOS -> Coreboot rename.
19306 * conf/i386-linuxbios.rmk: Renamed to ...
19307 * conf/i386-coreboot.rmk: ... this.
19308 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
19309 * configure.ac: Accept "coreboot" as input platform (but maintain
19310 compatibility with "linuxbios").
19311 * include/grub/i386/linuxbios: Renamed to ...
19312 * include/grub/i386/coreboot: ... this.
19314 2008-07-17 Bean <bean123ch@gmail.com>
19316 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
19317 (appleldr_mod_SOURCE): New variable.
19318 (appleldr_mod_CFLAGS): Likewise.
19319 (appleldr_mod_LDFLAGS): Likewise.
19320 (pci_mod_SOURCES): Likewise.
19321 (pci_mod_CFLAGS): Likewise.
19322 (pci_mod_LDFLAGS): Likewise.
19323 (lspci_mod_SOURCES): Likewise.
19324 (lspci_mod_CFLAGS): Likewise.
19325 (lspci_mod_LDFLAGS): Likewise.
19327 * conf/x86_64-efi.rmk: New file.
19329 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
19331 (grub_efidisk_write): Likewise.
19333 * include/efi/api.h (efi_call_0): New macro.
19334 (efi_call_1): Likewise.
19335 (efi_call_2): Likewise.
19336 (efi_call_3): Likewise.
19337 (efi_call_4): Likewise.
19338 (efi_call_5): Likewise.
19339 (efi_call_6): Likewise.
19341 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
19342 grub_rescue_cmd_chainloader.
19344 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
19345 (grub_pe32_optional_header): Change some fields based on i386 or
19347 (GRUB_PE32_PE32_MAGIC): Likewise.
19349 * include/grub/efi/uga_draw.h: New file.
19351 * include/grub/elf.h (STN_ABS): New constant.
19352 (R_X86_64_NONE): Relocation constant for x86_64.
19353 (R_X86_64_64): Likewise.
19354 (R_X86_64_PC32): Likewise.
19355 (R_X86_64_GOT32): Likewise.
19356 (R_X86_64_PLT32): Likewise.
19357 (R_X86_64_COPY): Likewise.
19358 (R_X86_64_GLOB_DAT): Likewise.
19359 (R_X86_64_JUMP_SLOT): Likewise.
19360 (R_X86_64_RELATIVE): Likewise.
19361 (R_X86_64_GOTPCREL): Likewise.
19362 (R_X86_64_32): Likewise.
19363 (R_X86_64_32S): Likewise.
19364 (R_X86_64_16): Likewise.
19365 (R_X86_64_PC16): Likewise.
19366 (R_X86_64_8): Likewise.
19367 (R_X86_64_PC8): Likewise.
19369 * include/grub/i386/efi/pci.h: New file.
19371 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
19372 Change it value based on platform.
19373 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
19374 (GRUB_E820_RAM): Likewise.
19375 (GRUB_E820_RESERVED): Likewise.
19376 (GRUB_E820_ACPI): Likewise.
19377 (GRUB_E820_NVS): Likewise.
19378 (GRUB_E820_EXEC_CODE): Likewise.
19379 (GRUB_E820_MAX_ENTRY): Likewise.
19380 (grub_e820_mmap): New structure.
19381 (linux_kernel_header): Change the efi field according to different
19382 kernel version, also field from linux_kernel_header.
19384 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
19386 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
19387 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
19388 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
19389 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
19390 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
19391 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
19392 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
19393 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
19394 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
19395 (GRUB_PCI_ADDR_IO_MASK): Likewise.
19397 * include/grub/x86_64/efi/kernel.h: New file.
19399 * include/grub/x86_64/efi/loader.h: Likewise.
19401 * include/grub/x86_64/efi/machine.h: Likewise.
19403 * include/grub/x86_64/efi/pci.h: Likewise.
19405 * include/grub/x86_64/efi/time.h: Likewise.
19407 * include/grub/x86_64/linux.h: Likewise.
19409 * include/grub/x86_64/setjmp.h: Likewise.
19411 * include/grub/x86_64/time.h: Likewise.
19413 * include/grub/x86_64/types.h: Likewise.
19415 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
19416 GRUB_TARGET_SIZEOF_VOID_P.
19418 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
19419 (grub_efi_locate_handle): Likewise.
19420 (grub_efi_open_protocol): Likewise.
19421 (grub_efi_set_text_mode): Likewise.
19422 (grub_efi_stall): Likewise.
19423 (grub_exit): Likewise.
19424 (grub_reboot): Likewise.
19425 (grub_halt): Likewise.
19426 (grub_efi_exit_boot_services): Likewise.
19427 (grub_get_rtc): Likewise.
19429 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
19430 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
19431 (grub_efi_allocate_pages): Wrap efi calls.
19432 (grub_efi_free_pages): Wrap efi calls.
19433 (grub_efi_get_memory_map): Wrap efi calls.
19435 * kern/x86_64/dl.c: New file.
19437 * kern/x86_64/efi/callwrap.S: Likewise.
19439 * kern/x86_64/efi/startup.S: Likewise.
19441 * loader/efi/appleloader.c: Likewise.
19443 * loader/efi/chainloader.c (cmdline): New variable.
19444 (grub_chainloader_unload): Wrap efi calls.
19445 (grub_chainloader_boot): Likewise.
19446 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
19449 * loader/efi/chainloader_normal.c (chainloader_command):
19450 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
19453 * loader/i386/efi/linux.c (allocate_pages): Change allocation
19455 (grub_e820_add_region): New function.
19456 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
19458 (grub_find_video_card): New function.
19459 (grub_linux_setup_video): New function.
19460 (grub_rescue_cmd_linux): Probe for video information.
19462 * normal/x86_64/setjmp.S: New file.
19464 * term/efi/console.c (map_char): New function.
19465 (grub_console_putchar): Map unicode char.
19466 (grub_console_checkkey): Wrap efi calls.
19467 (grub_console_getkey): Likewise.
19468 (grub_console_getwh): Likewise.
19469 (grub_console_gotoxy): Likewise.
19470 (grub_console_cls): Likewise.
19471 (grub_console_setcolorstate): Likewise.
19472 (grub_console_setcursor): Likewise.
19474 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
19476 2008-07-16 Pavel Roskin <proski@gnu.org>
19478 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
19481 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
19482 pointer, not an integer. This fixes a warning and prevents
19483 precision loss on 64-bit systems.
19484 (relocate_addresses): Remove unneeded cast.
19486 2008-07-15 Pavel Roskin <proski@gnu.org>
19488 * kern/i386/ieee1275/init.c: Include grub/cache.h.
19490 * term/ieee1275/ofconsole.c: Disable code unused on i386.
19492 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
19493 Fix comparison between signed and unsigned.
19495 * include/grub/i386/ieee1275/console.h: Declare
19496 grub_console_init() and grub_console_fini().
19498 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
19499 It's empty and unused.
19501 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
19502 beginning to avoid warnings with some compilers.
19504 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
19505 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
19507 2008-07-14 Pavel Roskin <proski@gnu.org>
19509 * kern/env.c (grub_register_variable_hook): Don't copy empty
19510 string, it leaks memory. Pass "" to grub_env_set(), it should
19511 handle constant strings.
19513 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
19514 * commands/cmp.c (grub_cmd_cmp): Likewise.
19515 * kern/dl.c (grub_dl_flush_cache): Likewise.
19516 (grub_dl_load_core): Likewise.
19517 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
19518 (grub_elf64_load_phdrs): Likewise.
19520 2008-07-13 Pavel Roskin <proski@gnu.org>
19522 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
19523 between signed and unsigned.
19524 (LzmaEnc_Finish): Fix warning about an unused parameter.
19526 2008-07-13 Bean <bean123ch@gmail.com>
19528 * Makefile.in (enable_lzo): New rule.
19530 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
19532 * configure.ac (ENABLE_LZO): New option --enable-lzo.
19534 * boot/i386/pc/lnxboot.S: #include <config.h>.
19536 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
19537 its value according to the compression algorithm used, lzo or lzma.
19539 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
19540 compression algorithm according to configure macro.
19542 * kern/i386/pc/startup.S (codestart): Likewise.
19544 * kern/i386/pc/lzma_decode.S: New file.
19546 * include/grub/lib/LzFind.h: Likewise.
19548 * include/grub/lib/LzHash.h: Likewise.
19550 * include/grub/lib/LzmaDec.h: Likewise.
19552 * include/grub/lib/LzmaEnc.h: Likewise.
19554 * include/grub/lib/LzmaTypes.h: Likewise.
19556 * lib/LzFind.c: Likewise.
19558 * lib/LzmaDec.c: Likewise.
19560 * lib/LzmaEnc.c: Likewise.
19562 2008-07-13 Bean <bean123ch@gmail.com>
19564 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
19565 (grub_ext4_extent_header): New structure.
19566 (grub_ext4_extent): Likewise.
19567 (grub_ext4_extent_idx): Likewise.
19568 (grub_ext4_find_leaf): New function.
19569 (grub_ext2_read_block): Handle extents.
19571 2008-07-12 Robert Millan <rmh@aybabtu.com>
19573 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
19575 2008-07-11 Robert Millan <rmh@aybabtu.com>
19577 * util/grub.d/40_custom.in: New file. Example on how to add custom
19578 entries to /etc/grub.d.
19579 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
19580 40_custom (implicitly, by merging all the grub.d rules).
19582 2008-07-11 Pavel Roskin <proski@gnu.org>
19584 * commands/read.c (grub_getline): Fix invalid memory access.
19585 Don't add newline to the variable value.
19587 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
19588 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
19589 (serial_hw_get_port): Check validity of the port number.
19590 (grub_cmd_serial): Check return value of serial_hw_get_port().
19592 2008-07-07 Pavel Roskin <proski@gnu.org>
19594 * boot/i386/pc/diskboot.S (notification_string): Replace
19595 "Loading kernel" with just "loading". This is shorter, less
19596 confusing and saves a few bytes for possible future changes.
19598 2008-07-05 Pavel Roskin <proski@gnu.org>
19600 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
19601 size for ATAPI devices, they are undefined. Output sector
19602 number in decimal form.
19604 * disk/ata.c: Use named constants for status bits.
19606 2008-07-04 Pavel Roskin <proski@gnu.org>
19608 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
19609 grub_addr_t before casting it to the void pointer to fix a
19610 warning. Non-addressable regions are discarded earlier.
19611 (grub_arch_modules_addr): Cast _end to grub_addr_t.
19612 * kern/i386/linuxbios/table.c: Include grub/misc.h.
19613 (check_signature): Don't shadow table_header.
19614 (grub_linuxbios_table_iterate): Cast numeric constants to
19615 grub_linuxbios_table_header_t.
19616 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
19619 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
19622 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
19623 pointer, which can cause warnings. Support 64-bit addresses.
19625 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
19626 of sizeof(long). This fixes PowerPC image generation on x86_64.
19628 2008-07-04 Robert Millan <rmh@aybabtu.com>
19630 This fixes a performance issue when pc & gpt partmap iterators
19631 didn't abort iteration even after our hook found what it was
19632 looking for (often causing expensive probes of non-existent drives).
19634 Some callers relied on previous buggy behaviour, since they would
19635 raise an error when their own hooks caused early abortion of its
19638 * kern/device.c (grub_device_open): Improve error message.
19639 * disk/lvm.c (grub_lvm_open): Likewise.
19640 * disk/raid.c (grub_raid_open): Likewise.
19642 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
19643 when hook requests it, independently of grub_errno.
19644 (pc_partition_map_probe): Do not fail when find_func() caused
19645 early abortion of pc_partition_map_iterate().
19647 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
19648 when hook requests it, independently of grub_errno.
19649 (gpt_partition_map_probe): Do not fail when find_func() caused
19650 early abortion of gpt_partition_map_iterate().
19652 * kern/partition.c (grub_partition_iterate): Abort parent iteration
19653 when hook requests it, independently of grub_errno. Do not fail when
19654 part_map_iterate_hook() caused early abortion of p->iterate().
19656 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
19657 when grub_partition_iterate() returned with non-zero.
19659 2008-07-03 Pavel Roskin <proski@gnu.org>
19661 * disk/ata.c (grub_ata_pio_write): Check status before writing,
19662 like we do in grub_ata_pio_read().
19663 (grub_ata_readwrite): Always write individual sectors. Fix the
19664 sector count for the remainder.
19665 (grub_ata_write): Enable writing to ATA devices. Correctly
19666 report error for ATAPI devices.
19668 2008-07-02 Pavel Roskin <proski@gnu.org>
19670 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
19673 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
19674 for every read sector, we already increment it for the whole
19675 batch. This fixes reading more than 256 sectors at once.
19677 * util/grub-editenv.c (cmd_info): Cast argument to long
19678 explicitly. ptrdiff_t reduces to int on i386.
19680 * util/grub-editenv.c (main): Be specific which parameter is
19683 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
19684 (memdisk): Make memdisk_orig_addr a pointer.
19686 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
19687 for file offsets, use grub_off_t instead. Fix printf format
19690 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
19691 there. Real unexpected warnings should not drown in the noise
19692 about known problems.
19694 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
19695 grub_disk_addr_t for memory addresses.
19697 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
19698 explicitly to fix a warning.
19700 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
19702 * Makefile.in (MODULE_LDFLAGS): New variable.
19703 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
19704 the linker accepts --build-id=none.
19705 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
19707 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
19709 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
19710 those in Linux XFS code. Provide a way to access 64-bit parent
19712 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
19713 the end of struct grub_xfs_dir_header.
19715 2008-07-02 Bean <bean123ch@gmail.com>
19717 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
19718 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
19719 and GRUB_IEEE1275_FLAG_NO_ANSI.
19721 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
19722 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
19723 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
19725 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
19726 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
19728 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
19729 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
19731 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
19732 esc sequence on non ANSI terminal.
19733 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
19735 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
19738 2008-07-02 Bean <bean123ch@gmail.com>
19740 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
19741 (grub_editenv_SOURCES): New variable.
19742 (pkglib_MODULES): Add loadenv.mod.
19743 (loadenv_mod_SOURCES): New variable.
19744 (loadenv_mod_CFLAGS): Likewise.
19745 (loadenv_mod_LDFLAGS): Likewise.
19747 * include/grub/envblk.h: New file.
19749 * util/envblk.c: New file.
19751 * util/grub-editenv.c: New file.
19753 * commands/loadenv.c: New file.
19755 2008-07-01 Pavel Roskin <proski@gnu.org>
19757 * include/multiboot2.h (struct multiboot_tag_module): Use char,
19758 not unsigned char. This fixes warnings and is consistent with
19761 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
19763 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
19765 * term/tparm.c (analyze): Always set *popcount.
19767 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
19768 cast to fix a warning.
19770 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
19771 cast to suppress a warning.
19773 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
19774 grub_fshelp_read_file() expects.
19776 * fs/fat.c: Fix UUID calculation on big-endian systems. We
19777 write uuid as a 32-bit value in CPU byte order, so declare and
19780 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
19781 long if the format specifier expects it.
19782 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
19783 * partmap/pc.c (pc_partition_map_iterate): Likewise.
19784 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
19785 long to fix a warning.
19786 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
19787 grub_dprintf() arguments to fix warnings.
19789 2008-06-30 Pavel Roskin <proski@gnu.org>
19791 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
19792 install_bsd_part immediately before core.img is embedded or
19793 modified on disk. This fixes core.img verification if core.img
19794 cannot be embedded.
19796 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
19797 core_path to calculate the blocklist.
19798 Patch from Javier Martín <lordhabbit@gmail.com>
19800 2008-06-29 Robert Millan <rmh@aybabtu.com>
19802 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
19803 block to disk block.
19804 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
19805 Patch from Niels Böhm <bitbucket@arcor.de>
19807 2008-06-29 Robert Millan <rmh@aybabtu.com>
19809 * util/update-grub_lib.in (font_path): Search for fonts in
19810 /boot/grub first, which is more likely to be readable (we aren't
19811 deciding where fonts live, just looking for them).
19813 2008-06-26 Pavel Roskin <proski@gnu.org>
19815 * util/biosdisk.c (read_device_map): Don't leave dead map
19816 entries for devices failing stat() check.
19818 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
19819 core_path_dev for the core.img path on the target device.
19821 2008-06-26 Robert Millan <rmh@aybabtu.com>
19823 * disk/fs_uuid.c: New file.
19824 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
19825 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
19826 (fs_uuid_mod_LDFLAGS): New variables.
19827 * include/grub/disk.h (grub_disk_dev_id): Add
19828 `GRUB_DISK_DEVICE_UUID_ID'.
19829 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
19830 implement iterate().
19832 2008-06-26 Robert Millan <rmh@aybabtu.com>
19834 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
19835 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
19836 Linux image includes no initrd.
19838 2008-06-21 Javier Martín <lordhabbit@gmail.com>
19840 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
19841 call to resolve the core image location that effectively appended the
19844 2008-06-21 Robert Millan <rmh@aybabtu.com>
19846 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
19849 * util/grub.d/10_hurd.in: ... to here ...
19850 * util/grub.d/10_linux.in: ... and here.
19852 2008-06-19 Robert Millan <rmh@aybabtu.com>
19854 * kern/main.c (grub_main): Export `prefix' variable immediately
19855 after it has been set by grub_machine_set_prefix().
19857 2008-06-19 Robert Millan <rmh@aybabtu.com>
19859 * commands/search.c (search_label, search_fs_uuid, search_file): Print
19860 search result when not saving to variable, not the other way around.
19861 When saving to variable, abort iteration as soon as a match is found.
19863 2008-06-19 Robert Millan <rmh@aybabtu.com>
19865 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
19866 check for partition that provides /boot/grub. Its logic is flawed,
19867 as it prevents prepare_grub_to_access_device() from being called
19870 2008-06-19 Robert Millan <rmh@aybabtu.com>
19872 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
19873 "insmod" command directly when abstraction modules are needed,
19874 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
19875 since it had already been processed).
19877 2008-06-19 Pavel Roskin <proski@gnu.org>
19879 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
19880 changed. This is needed in case GRUB_LIBDIR changes.
19881 * conf/i386-ieee1275.rmk: Likewise.
19882 * conf/i386-linuxbios.rmk: Likewise.
19883 * conf/i386-pc.rmk: Likewise.
19884 * conf/powerpc-ieee1275.rmk: Likewise.
19886 2008-06-18 Pavel Roskin <proski@gnu.org>
19888 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
19889 kernel_elf_symlist.c to symlist.c for consistency with other
19890 architectures. Update all users.
19891 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
19893 2008-06-18 Robert Millan <rmh@aybabtu.com>
19895 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
19898 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
19899 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
19900 a RAID device, run setup() for all members independently on whether
19901 LVM abstraction is being used.
19902 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
19903 If grub-mkimage has set `*install_dos_part == -2', don't override this
19905 Perform *install_dos_part adjustments independently on whether
19906 we're embedding or not.
19907 Clarify error message when image is too big for embedding.
19908 Remove duplicate *install_dos_part stanza.
19910 2008-06-17 Robert Millan <rmh@aybabtu.com>
19912 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
19913 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
19915 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
19916 values in grub_ofconsole_normal_color and
19917 grub_ofconsole_highlight_color (they're not directly related to
19918 background and foreground).
19919 (grub_ofconsole_setcolorstate): Extract background and foreground
19920 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
19922 2008-06-17 Robert Millan <rmh@aybabtu.com>
19924 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
19925 /boot/grub for the check in last commit, not /boot (they could be
19926 different partitions).
19928 2008-06-16 Robert Millan <rmh@aybabtu.com>
19930 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
19931 asked to setup access for the same partition that provides /boot,
19932 don't bother using UUIDs since our root already has the value we
19935 2008-06-16 Robert Millan <rmh@aybabtu.com>
19937 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
19939 Patch from Sven Mueller <sven@debian.org>.
19941 2008-06-16 Robert Millan <rmh@aybabtu.com>
19943 * util/update-grub.in: Check for $EUID instead of $UID.
19944 Reported by Vincent Zweije.
19946 2008-06-16 Bean <bean123ch@gmail.com>
19948 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
19949 (grub_ext2_read_block): Likewise.
19950 (grub_ext2_read_inode): Likewise.
19951 (grub_ext2_mount): Likewise.
19952 (grub_ext2_close): Likewise.
19953 (grub_ext3_get_journal): Removed.
19955 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
19956 (grub_reiserfs_read_symlink): Likewise.
19957 (grub_reiserfs_mount): Likewise.
19958 (grub_reiserfs_open): Likewise.
19959 (grub_reiserfs_read): Likewise.
19960 (grub_reiserfs_close): Likewise.
19961 (grub_reiserfs_get_journal): Removed.
19963 * fs/fshelp.c (grub_fshelp_read): Removed.
19964 (grub_fshelp_map_block): Likewise.
19966 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
19967 (grub_fshelp_journal): Likewise.
19968 (grub_fshelp_read): Likewise.
19969 (grub_fshelp_map_block): Likewise.
19971 2008-06-16 Pavel Roskin <proski@gnu.org>
19973 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
19974 floating point anymore.
19975 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
19977 2008-06-15 Pavel Roskin <proski@gnu.org>
19979 * commands/ls.c (grub_ls_list_files): Use integer calculations
19980 for human readable format, avoid floating point use.
19981 * kern/misc.c (grub_ftoa): Remove.
19982 (grub_vsprintf): Remove floating point support.
19984 2008-06-15 Robert Millan <rmh@aybabtu.com>
19986 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
19988 Reported by Max Vozeler.
19990 2008-06-15 Robert Millan <rmh@aybabtu.com>
19992 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
19993 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
19995 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
19996 the beginning of the prefix.
19998 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
19999 It is assumed that if we have a memdisk, grub-mkimage has set
20000 grub_prefix to include the "(memdisk)" drive in it.
20002 2008-06-15 Robert Millan <rmh@aybabtu.com>
20004 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
20005 Initialize keyboard controller after registering the terminal, so that
20006 grub_printf() can be called from grub_keyboard_controller_init().
20008 2008-06-15 Robert Millan <rmh@aybabtu.com>
20010 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
20011 extent-btree which is written as big endian on disk.
20012 Reported by Alain Greppin <al@chilibi.org>.
20014 2008-06-14 Robert Millan <rmh@aybabtu.com>
20016 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
20017 * util/i386/pc/grub-install.in (modules): Likewise.
20019 2008-06-13 Pavel Roskin <proski@gnu.org>
20021 * commands/ls.c (grub_ls_list_files): Fix format warnings.
20023 2008-06-13 Bean <bean123ch@gmail.com>
20025 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
20027 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
20029 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
20030 to indicate sparse block.
20032 2008-06-12 Pavel Roskin <proski@gnu.org>
20034 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
20035 number, grub_fshelp_read() does it for us.
20037 * fs/fshelp.c (grub_fshelp_read): New function. Implement
20038 linear disk read with journal translation.
20039 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
20040 * include/grub/fshelp.h: Declare grub_fshelp_read().
20042 2008-06-09 Pavel Roskin <proski@gnu.org>
20044 * fs/minix.c (grub_minix_mount): Handle error reading
20047 2008-06-08 Robert Millan <rmh@aybabtu.com>
20049 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
20050 don't append the RAID prefix afterwards.
20051 Reported by Clint Adams.
20053 2008-06-08 Robert Millan <rmh@aybabtu.com>
20055 Based on description from Pavel:
20056 * kern/disk.c (grub_disk_check_range): Rename to ...
20057 (grub_disk_adjust_range): ... this. Add a comment explaining the
20058 tasks performed by this function.
20060 2008-06-08 Robert Millan <rmh@aybabtu.com>
20062 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
20063 `num_serial' (for consistency with other variables).
20064 (struct grub_ntfs_data): Add `uuid' member.
20065 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
20066 (grub_ntfs_uuid): New function.
20067 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
20069 2008-06-07 Pavel Roskin <proski@gnu.org>
20071 * util/biosdisk.c (open_device): Revert last change to the
20072 function, it broke installation. The sector needs to be
20073 different dependent on which device is opened.
20075 2008-06-06 Robert Millan <rmh@aybabtu.com>
20077 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
20078 rest of GRUB, and breakage doesn't happen if its value were modified.
20080 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
20081 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
20082 a constant (same value).
20083 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
20084 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
20086 2008-06-06 Robert Millan <rmh@aybabtu.com>
20088 * util/biosdisk.c (open_device): Do not modify sector offset when
20089 accessing a partition. kern/disk.c already handles this for us.
20091 2008-06-06 Robert Millan <rmh@aybabtu.com>
20093 * util/grub-emu.c (grub_machine_init): Move code in this function from
20095 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
20096 segfault in case grub_printf() is called).
20098 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
20099 grub_probe. Update all users not to explicitly add it again.
20100 (grub_device): New variable; contains corresponding device for grubdir.
20101 (fs_module, partmap_module, devabstraction_module): Pass
20102 `--device ${grub_device}' to grub_probe to avoid traversing /dev
20105 2008-06-05 Robert Millan <rmh@aybabtu.com>
20107 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
20108 is found, print it (same layout as with labels).
20110 2008-06-04 Robert Millan <rmh@aybabtu.com>
20112 * util/biosdisk.c (get_drive): Rename to ...
20113 (find_grub_drive): ... this. Update all users.
20115 (get_os_disk): Rename to ...
20116 (convert_system_partition_to_system_disk): ... this. Update all users.
20118 (find_drive): Rename to ...
20119 (find_system_device): ... this. Update all users.
20121 2008-06-04 Robert Millan <rmh@aybabtu.com>
20123 * util/biosdisk.c (get_os_disk): Handle IDA devices.
20124 * util/grub-mkdevicemap.c (get_mmc_disk_name)
20125 (make_device_map): Likewise.
20127 2008-06-01 Robert Millan <rmh@aybabtu.com>
20129 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
20130 before dereferencing it.
20132 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
20133 union with fat12/fat16-specific ones. Add some new fields, including
20134 `num_serial' for both versions.
20135 (struct grub_fat_data): Add `uuid' member.
20136 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
20137 names. Initialize `data->uuid' using `num_serial'.
20138 (grub_fat_uuid): New function.
20139 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
20141 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
20142 (grub_reiserfs_uuid): New function.
20143 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
20146 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
20147 (grub_xfs_uuid): New function.
20148 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
20150 2008-06-01 Robert Millan <rmh@aybabtu.com>
20152 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
20153 code that is backward compatible with pre-uuid search command.
20155 2008-05-31 Robert Millan <rmh@aybabtu.com>
20157 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
20158 floppies after everything else, to ensure floppy drive isn't accessed
20159 unnecessarily (patch from Bean).
20161 2008-05-31 Robert Millan <rmh@aybabtu.com>
20163 * commands/search.c (search_label, search_fs_uuid, search_file): Do
20164 not print device names when we were asked to set a variable.
20166 2008-05-31 Robert Millan <rmh@aybabtu.com>
20168 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
20169 using "cursor-on" and "cursor-off" commands (understood at least by
20170 the Open Firmware flavour on OLPC).
20172 2008-05-31 Michael Gorven <michael@gorven.za.net>
20174 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
20175 on and off sequences.
20177 2008-05-31 Robert Millan <rmh@aybabtu.com>
20179 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
20180 * util/update-grub.in: Likewise.
20182 2008-05-30 Pavel Roskin <proski@gnu.org>
20184 * util/biosdisk.c (linux_find_partition): Simplify logic and
20185 make the code more universal. Keep special processing for
20186 devfs, but use a simple rule for all other devices. If the
20187 device ends with a number, append 'p' and the partition number.
20188 Otherwise, append only the partition number.
20190 2008-05-30 Robert Millan <rmh@aybabtu.com>
20192 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
20193 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
20194 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
20195 the `root' parameter to Linux.
20197 2008-05-30 Robert Millan <rmh@aybabtu.com>
20199 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
20200 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
20201 --fs_uuid with --fs-uuid.
20202 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
20203 all filesystems support them).
20205 2008-05-30 Robert Millan <rmh@aybabtu.com>
20207 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
20208 grub_printf() flags, since we're printing in units of 2 bytes.
20210 2008-05-30 Robert Millan <rmh@aybabtu.com>
20212 * util/grub.d/00_header.in: Remove obsolete comment referencing
20213 convert_system_path_to_grub_path().
20214 * util/update-grub.in: Likewise.
20215 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
20216 (convert_system_path_to_grub_path): Add a warning message explaining
20217 that this function is deprecated. Rely on is_path_readable_by_grub()
20218 for the readability checks.
20219 (font_path): Use is_path_readable_by_grub() for the readability
20220 check rather than convert_system_path_to_grub_path().
20222 2008-05-30 Robert Millan <rmh@aybabtu.com>
20224 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
20225 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
20226 converting it first.
20227 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
20228 grub.cfg for access to font file, and afterwards call it again to set
20231 2008-05-30 Robert Millan <rmh@aybabtu.com>
20233 * commands/search.c (options): Add --fs_uuid option.
20234 (search_fs_uuid): New function.
20235 (grub_cmd_search): Fix --set argument passing.
20236 Use search_fs_uuid() when requested via --fs_uuid.
20237 (grub_search_init): Update help message.
20238 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
20239 and redeclare it as an array of 16-bit words.
20240 (grub_ext2_uuid): New function.
20241 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
20242 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
20243 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
20244 (GRUB_DEVICE_BOOT_UUID): New variables.
20245 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
20246 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
20248 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
20249 just assume `root' variable has the right value.
20250 * util/grub.d/10_linux.in: Likewise.
20251 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
20253 (main): Recognise `-t fs_uuid' argument.
20255 2008-05-30 Robert Millan <rmh@aybabtu.com>
20257 * util/biosdisk.c (map): Redefine structure to hold information
20258 about GRUB drive name.
20259 (get_drive): Reimplement without assuming (and verifying) BIOS-like
20261 (call_hook): Remove.
20262 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
20263 member. Assume drive has partitions.
20264 (grub_util_biosdisk_open): Access device names via `.device' struct
20266 (open_device): Likewise.
20267 (find_drive): Likewise.
20268 (read_device_map): Adjust map[] usage to match the new struct
20269 definition. Don't check for duplicates (still possible, but not cheap
20271 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
20272 (make_device_name): Remove assumption of BIOS-like drive names.
20274 2008-05-30 Pavel Roskin <proski@gnu.org>
20276 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
20277 compiling execute.c doesn't need grub_script.tab.h anymore.
20278 (normal/command.c_DEPENDENCIES): Likewise.
20279 (normal/function.c_DEPENDENCIES): Likewise.
20280 * conf/i386-ieee1275.rmk: Likewise.
20281 * conf/i386-linuxbios.rmk: Likewise.
20282 * conf/i386-pc.rmk: Likewise.
20283 * conf/powerpc-ieee1275.rmk: Likewise.
20284 * conf/sparc64-ieee1275.rmk: Likewise.
20286 2008-05-29 Pavel Roskin <proski@gnu.org>
20288 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
20289 when scanning metadata for volume group name.
20291 * include/grub/script.h: Don't include grub_script.tab.h. It's
20292 a generated file, which may only be included from the files with
20293 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
20294 use union YYSTYPE, as the later allows forward declaration.
20295 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
20297 2008-05-29 Robert Millan <rmh@aybabtu.com>
20299 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
20300 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
20301 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
20302 (grub_console_checkkey): Add grub_dprintf() call to report unknown
20305 2008-05-29 Robert Millan <rmh@aybabtu.com>
20307 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
20308 control key combinations.
20310 2008-05-29 Robert Millan <rmh@aybabtu.com>
20312 * util/powerpc/ieee1275/grub-install.in: Move from here ...
20313 * util/ieee1275/grub-install.in: ... to here.
20314 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
20315 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
20316 (grub_install_SOURCES): Likewise.
20318 2008-05-29 Robert Millan <rmh@aybabtu.com>
20320 * fs/affs.c: Update copyright year.
20321 * fs/ext2.c: Likewise.
20322 * fs/fshelp.c: Likewise.
20323 * fs/hfsplus.c: Likewise.
20324 * fs/ntfs.c: Likewise.
20325 * fs/xfs.c: Likewise.
20326 * include/grub/fshelp.h: Likewise.
20327 * util/grub-mkdevicemap.c: Likewise.
20329 2008-05-28 Robert Millan <rmh@aybabtu.com>
20331 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
20332 might need to be fatfs to support some firmware implementations
20335 2008-05-28 Robert Millan <rmh@aybabtu.com>
20337 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
20339 * util/grub-mkdevicemap.c (get_mmc_disk_name)
20340 (make_device_map): Likewise.
20342 2008-05-20 Bean <bean123ch@gmail.com>
20344 * fs/fshelp.c (grub_fshelp_map_block): New function.
20345 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
20346 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
20348 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
20349 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
20350 (grub_fshelp_journal): New structure.
20351 (grub_fshelp_map_block): New function prototype.
20352 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
20353 (grub_fshelp_map_block): Likewise.
20355 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
20356 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
20357 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
20358 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
20359 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
20360 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
20361 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
20362 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
20363 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
20364 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
20365 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
20366 (grub_ext2_sblock): New members for journal support.
20367 (grub_ext3_journal_header): New structure.
20368 (grub_ext3_journal_revoke_header): Likewise.
20369 (grub_ext3_journal_block_tag): Likewise.
20370 (grub_ext3_journal_sblock): Likewise.
20371 (grub_fshelp_node): New members logfile and journal.
20372 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
20373 grub_fshelp_map_block to get real block number.
20374 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
20376 (grub_ext2_read_inode): Likewise.
20377 (grub_ext3_get_journal): New function.
20378 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
20379 (grub_ext2_close): Release memory used by journal.
20381 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
20382 (REISERFS_MAGIC_DESC_BLOCK): New macro.
20383 (grub_reiserfs_transaction_header): Renamed to
20384 grub_reiserfs_description_block, replace field data with real_blocks.
20385 (grub_reiserfs_commit_block): New structure.
20386 (grub_reiserfs_data): New member journal.
20387 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
20389 (grub_reiserfs_read_symlink): Likewise.
20390 (grub_reiserfs_iterate_dir): Likewise.
20391 (grub_reiserfs_open): Likewise.
20392 (grub_reiserfs_read): Likewise.
20393 (grub_reiserfs_get_journal): New function.
20394 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
20395 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
20396 using grub_reiserfs_get_journal.
20397 (grub_reiserfs_close): Release memory used by journal.
20399 * fs/affs.c (grub_affs_read_block): Change block type to
20400 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
20402 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
20404 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
20406 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
20408 * fs/udf.c (grub_udf_read_block): Change block type to
20409 grub_disk_addr_t. Use type cast to avoid warning.
20411 * fs/xfs.c (grub_xfs_read_block): Likewise.
20413 2008-05-16 Christian Franke <franke@computer.org>
20415 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
20416 to ensure that break with ESC will always work.
20417 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
20418 Remove ESC from keyboard queue.
20420 2008-05-16 Christian Franke <franke@computer.org>
20422 * util/biosdisk.c: [__CYGWIN__] Add includes.
20423 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
20424 (get_os_disk): Move variable declarations to OS specific
20425 parts to avoid warning.
20426 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
20427 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
20428 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
20430 * util/getroot.c: [__CYGWIN__] Add includes.
20431 (strip_extra_slashes): Fix "/" case.
20432 [__CYGWIN__] (get_win32_path): New function.
20433 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
20434 [__CYGWIN__] (find_root_device): Disable.
20435 [__CYGWIN__] (get_bootsec_serial): New function.
20436 [__CYGWIN__] (find_cygwin_root_device): Likewise.
20437 [__linux__] (grub_guess_root_device): Add early returns to simplify
20439 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
20440 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
20441 check for Linux only.
20443 2008-05-15 Bean <bean123ch@gmail.com>
20445 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
20446 keyboard hang problem in apple's intel mac.
20448 2008-05-09 Robert Millan <rmh@aybabtu.com>
20450 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
20452 * util/grub-mkdevicemap.c (get_virtio_disk_name)
20453 (make_device_map): Likewise.
20454 Reported by Aurelien Jarno <aurel32@debian.org>
20456 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
20458 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
20459 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
20460 (make_device_map): Output entries for xvd type disks.
20462 2008-05-07 Robert Millan <rmh@aybabtu.com>
20464 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
20466 * util/grub-mkdevicemap.c (get_cciss_disk_name)
20467 (make_device_map): Likewise.
20468 Reported by Roland Dreier <rdreier@cisco.com>
20470 2008-05-07 Robert Millan <rmh@aybabtu.com>
20472 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
20473 grub_strstr() call. Correct a few mistakes in failure path handling.
20475 2008-05-06 Robert Millan <rmh@aybabtu.com>
20477 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
20478 Do not print a trailing slash (therefore, the root directory is an
20480 (convert_system_path_to_grub_path): Do not remove trailing slash
20481 from make_system_path_relative_to_its_root() output.
20483 * util/i386/pc/grub-install.in: Add trailing slash to output from
20484 make_system_path_relative_to_its_root().
20486 2008-05-06 Robert Millan <rmh@aybabtu.com>
20488 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
20489 ensures that output lines aren't intermangled with those sent to
20490 stderr (via grub_util_info()).
20491 * util/grub-probe.c (grub_refresh): Likewise.
20492 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
20494 2008-05-05 Christian Franke <franke@computer.org>
20496 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
20497 Add Cygwin device names.
20498 (get_ide_disk_name) [__CYGWIN__]: Likewise.
20499 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
20500 (check_device): Return error instead of success on empty name.
20501 (make_device_map): Move label inside linux specific code to
20502 prevent compiler warning.
20504 2008-04-30 Robert Millan <rmh@aybabtu.com>
20506 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
20507 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
20509 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
20511 2008-04-29 Robert Millan <rmh@aybabtu.com>
20513 * docs/grub.cfg: New file (example GRUB configuration).
20515 2008-04-26 Robert Millan <rmh@aybabtu.com>
20517 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
20518 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
20519 and `disk/ieee1275/nand.c'.
20521 2008-04-25 Bean <bean123ch@gmail.com>
20523 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
20526 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
20527 change the buffer size to 4096 for cdrom device.
20529 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
20531 (_linux_mod_SOURCES): New variable.
20532 (_linux_mod_CFLAGS): Likewise.
20533 (_linux_mod_LDFLAGS): Likewise.
20534 (linux_mod_SOURCES): Likewise.
20535 (linux_mod_CFLAGS): Likewise.
20536 (linux_mod_LDFLAGS): Likewise.
20537 (nand_mod_SOURCES): Likewise.
20538 (nand_mod_CFLAGS): Likewise.
20539 (nand_mod_LDFLAGS): Likewise.
20541 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
20542 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
20543 type property. (nand device in olpc don't have this property)
20545 * include/grub/disk.h (grub_disk_dev_id): New macro
20546 GRUB_DISK_DEVICE_NAND_ID.
20548 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
20549 function prototype.
20550 (grub_rescue_cmd_initrd): Likewise.
20552 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
20553 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
20554 ofw_cif_handler and ofw_idt, adjust padding number.
20556 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
20557 GRUB_MACHINE_IEEE1275 is defined.
20559 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
20560 Use NESTED_FUNC_ATTR attribute on the hook parameter.
20562 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
20563 on nested function heap_init.
20564 (grub_upper_mem): New variable for i386-ieee1275.
20565 (grub_get_extended_memory): New function for i386-ieee1275.
20566 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
20568 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
20569 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
20572 * loader/i386/ieee1275/linux.c: New file.
20574 * loader/i386/ieee1275/linux_normal.c: New file.
20576 * disk/ieee1275/nand.c: New file.
20578 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
20580 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
20582 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
20584 2008-04-18 Robert Millan <rmh@aybabtu.com>
20586 Restructures early code path on ieee1275 to unify grub_main() as
20587 the first C function that is executed in every platform.
20589 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
20590 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
20592 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
20593 * kern/ieee1275/cmain.c (cmain): Rename to ...
20594 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
20595 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
20598 2008-04-18 Robert Millan <rmh@aybabtu.com>
20600 * util/update-grub.in: Fix syntax error when setting
20601 `GRUB_PRELOAD_MODULES'.
20602 Reported by Stephane Chazelas <stephane@artesyncp.com>
20604 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
20606 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
20607 section into account, newer toolchains generate unique build ids
20608 * configure.ac: remove the test for --build-id=none acceptance,
20609 we want build ids to be preserved
20610 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
20611 far from other sections don't cause the raw binary images grow
20614 2008-04-15 Robert Millan <rmh@aybabtu.com>
20616 * disk/lvm.c: Update copyright year.
20617 * kern/misc.c: Likewise.
20619 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
20621 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
20622 there is no memory left for physical volume name.
20624 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
20626 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
20627 volume name mapping to support bigger than 9 character names properly.
20629 2008-04-13 Robert Millan <rmh@aybabtu.com>
20631 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
20632 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
20634 2008-04-13 Christian Franke <franke@computer.org>
20636 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
20637 to create a floppy emulation boot CD when non emulation mode
20639 Enable Joliet CD filesystem extension.
20641 2008-04-13 Robert Millan <rmh@aybabtu.com>
20643 * kern/misc.c (grub_strncat): Fix off-by-one error.
20644 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
20646 * kern/env.c (grub_env_context_close): Clear current context, not
20648 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
20650 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
20652 2008-04-13 Robert Millan <rmh@aybabtu.com>
20654 Improve robustness when handling LVM.
20656 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
20657 (and leave `*p' unmodified).
20658 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
20660 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
20661 iterating through it.
20662 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
20664 (grub_lvm_scan_device): Check the return value (and fail gracefully
20665 when due) on each grub_lvm_getvalue() or grub_strstr() call.
20666 Don't assume `vg->pvs != NULL' when iterating through it.
20668 2008-04-13 Robert Millan <rmh@aybabtu.com>
20670 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
20671 * genmk.rb (partmap): New variable.
20672 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
20673 (#{partmap}): New target rule.
20674 * genpartmaplist.sh: New file.
20675 * Makefile.in (pkglib_DATA): Add partmap.lst.
20676 (partmap.lst): New target rule.
20677 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
20678 modules (including all partition maps), instead of preloading them.
20680 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
20682 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
20683 `linux-boot-prober' (if installed) to detect other operating
20684 systems which are installed on the computer and add them to
20686 * conf/common.rmk: Build and install 30_os-prober.
20688 2008-04-12 Robert Millan <rmh@aybabtu.com>
20690 * kern/powerpc/ieee1275/init.c: Move from here ...
20691 * kern/ieee1275/init.c: ... to here. Update all users.
20693 * kern/powerpc/ieee1275/cmain.c: Move from here ...
20694 * kern/ieee1275/cmain.c: ... to here. Update all users.
20696 * kern/powerpc/ieee1275/openfw.c: Move from here ...
20697 * kern/ieee1275/openfw.c: ... to here. Update all users.
20699 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
20700 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
20702 2008-04-10 Pavel Roskin <proski@gnu.org>
20704 * configure.ac: Always use "_cv_" in cache variables for
20705 compatibility with Autoconf 2.62.
20707 2008-04-07 Robert Millan <rmh@aybabtu.com>
20709 Revert grub/machine/init.h addition by Pavel (since it breaks on
20710 i386-ieee1275 and others):
20711 * util/i386/pc/misc.c: Remove grub/machine/init.h.
20712 * util/powerpc/ieee1275/misc.c: Likewise.
20714 2008-04-07 Robert Millan <rmh@aybabtu.com>
20716 * util/grub-probe.c (probe): Improve error message.
20718 2008-04-07 Robert Millan <rmh@aybabtu.com>
20720 * util/biosdisk.c (read_device_map): Skip devices that don't exist
20721 (this prevents the presence of a bogus entry from ruining the whole
20724 2008-04-06 Pavel Roskin <proski@gnu.org>
20726 * util/biosdisk.c: Include grub/util/biosdisk.h.
20727 * util/grub-fstest.c (execute_command): Make static.
20728 * util/grub-mkdevicemap.c (check_device): Likewise.
20729 * util/i386/pc/misc.c: Include grub/machine/init.h.
20730 * util/powerpc/ieee1275/misc.c: Likewise.
20731 * util/lvm.c: Include grub/util/lvm.h.
20732 * util/misc.c: Include grub/kernel.h, grub/misc.h and
20734 * util/raid.c: Include grub/util/raid.h.
20735 (grub_util_getdiskname): Make static.
20737 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
20738 grub_hostfs_fini(), as they are called from grub_init_all() and
20739 grub_fini_all() respectively. This fixes an infinite loop in
20740 grub-fstest due to double registration of hostfs.
20741 Reported by Christian Franke <Christian.Franke@t-online.de>
20743 2008-04-05 Pavel Roskin <proski@gnu.org>
20745 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
20746 all 8 functions. Otherwise, probe function 0 only.
20748 2008-04-04 Pavel Roskin <proski@gnu.org>
20750 * commands/lspci.c (grub_lspci_iter): Print the bus number
20753 * commands/lspci.c (grub_pci_classes): Fix typos.
20754 (grub_lspci_iter): Don't print func twice. Print vendor ID
20755 before device ID, as it's normally done.
20757 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
20758 Fix signedness warnings.
20759 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
20761 * util/ieee1275/get_disk_name.c: Include config.h so that
20762 _GNU_SOURCE is defined and getline() is declared. Mark an
20763 unused argument as such. Fix a signedness warning.
20765 2008-04-02 Pavel Roskin <proski@gnu.org>
20767 * genkernsyms.sh.in: Use more robust assignments for CC and
20768 srcdir. Quote srcdir.
20769 * gensymlist.sh.in: Likewise. Assert at the compile time that
20770 the symbol table is not empty.
20772 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
20773 * fs/cpio.c (grub_cpio_read): Likewise.
20775 2008-04-01 Pavel Roskin <proski@gnu.org>
20777 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
20778 * disk/host.c (grub_host_open): Likewise.
20779 * disk/loopback.c (grub_loopback_open): Likewise.
20780 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
20781 disk->id as in disk/host.c, not a multi-character constant.
20783 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
20784 later is obsolete, potentially dangerous and sets a bad example.
20785 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
20786 * util/misc.c (grub_util_get_image_size): Likewise.
20788 * disk/loopback.c (options): Improve help for "--partitions".
20790 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
20791 options to align them with the short options, e.g. "echo -e".
20793 2008-03-31 Bean <bean123ch@gmail.com>
20795 * video/reader/png.c (grub_png_data): New member is_16bit and
20797 (grub_png_decode_image_header): Detect 16 bit png image.
20798 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
20799 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
20800 (grub_video_reader_png): Release memory occupied by image_data.
20802 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
20804 (grub_nfs_mount): Skip the test for sector per cluster.
20806 * include/grub/ntfs.h (MAX_SPC): Removed.
20808 2008-03-31 Bean <bean123ch@gmail.com>
20810 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
20811 (grub_probe_SOURCES): Add fs/afs.c.
20812 (grub_fstest_SOURCES): Likewise.
20813 (afs_mod_SOURCES): New variable.
20814 (afs_mod_CFLAGS): Likewise.
20815 (afs_mod_LDFLAGS): Likewise.
20817 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
20818 (grub_emu_SOURCES): Likewise.
20820 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20822 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20824 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20828 * fs/afs.c: New file.
20830 2008-03-30 Pavel Roskin <proski@gnu.org>
20832 * disk/host.c: Include grub/misc.h to fix a warning.
20833 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
20834 warnings about implicit declarations.
20836 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
20838 * include/grub/i386/loader.h: Change declaration of
20839 grub_linux_boot() to match what grub_loader_set() expects.
20840 * util/getroot.c (grub_guess_root_device): Return const char* to
20842 * util/grub-probe.c (probe): Fix a warning about uninitialized
20843 abstraction_name variable.
20844 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
20845 second argument as unused to fix a warning.
20847 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
20848 missing grub_error() call.
20850 * util/update-grub_lib.in: Define datarootdir, since Autoconf
20851 2.60 and newer uses it to define datadir.
20853 * commands/sleep.c: Fix warning about implicit declaration.
20854 * disk/memdisk.c: Likewise.
20855 * loader/aout.c: Likewise.
20856 * loader/i386/bsd_normal.c: Likewise.
20857 * util/grub-probe.c: Likewise.
20859 * commands/i386/cpuid.c (has_longmode): Make static.
20860 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
20861 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
20863 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
20864 GDT. This is more robust, as %ds can change.
20865 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
20866 calling real_to_prot().
20867 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
20869 2008-03-28 Pavel Roskin <proski@gnu.org>
20871 * kern/i386/pc/startup.S: Assert that uncompressed functions
20872 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
20873 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
20874 code, as they push parts of the code (error handlers) beyond
20875 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
20876 code as correctness and size.
20878 2008-03-28 Pavel Roskin <proski@gnu.org>
20880 * kern/i386/pc/startup.S
20881 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
20882 data block address to the real mode, keep offset minimal. This
20883 works around a bug in AWARD BIOS on old Athlon systems, which
20884 makes CD detection hang.
20886 2008-03-26 Pavel Roskin <proski@gnu.org>
20888 * normal/color.c (grub_parse_color_name_pair): Make `name' a
20890 * include/grub/normal.h: Add grub_parse_color_name_pair()
20893 2008-03-24 Bean <bean123ch@gmail.com>
20895 * disk/i386/pc/biosdisk.c (cd_start): Removed.
20896 (cd_count): Removed.
20897 (cd_drive): New variable.
20898 (grub_biosdisk_get_drive): Don't check for (cdN) device.
20899 (grub_biosdisk_call_hook): Likewise.
20900 (grub_biosdisk_iterate): Change cdrom detection method.
20901 (grub_biosdisk_open): Replace cd_start with cd_drive.
20902 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
20903 detect cdrom device.
20905 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
20907 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
20908 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
20909 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
20910 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
20911 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
20912 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
20913 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
20914 (grub_biosdisk_cdrp): New structure.
20915 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
20917 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
20919 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
20922 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
20925 2008-03-20 Robert Millan <rmh@aybabtu.com>
20927 Remove 2 TiB limit in ata.mod.
20928 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
20929 (grub_ata_dumpinfo): Print sector count with 0x%llx.
20930 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
20931 grub_uint64_t instead of grub_uint32_t.
20933 2008-03-05 Bean <bean123ch@gmail.com>
20935 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
20936 (grub_multiboot): Set boot device.
20938 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
20940 2008-03-02 Bean <bean123ch@gmail.com>
20942 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
20945 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
20947 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
20950 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
20953 * docs/fdl.texi: New file.
20955 * docs/mdate-sh: New file. Copied from gnulib.
20956 * docs/texinfo.tex: Likewise.
20958 * config.guess: Updated from gnulib.
20959 * install-sh: Likewise.
20961 2008-02-28 Robert Millan <rmh@aybabtu.com>
20963 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
20964 (aout_mod_SOURCES): New variable.
20965 (aout_mod_CFLAGS): Likewise.
20966 (aout_mod_LDFLAGS): Likewise.
20968 * conf/i386-ieee1275.rmk: Likewise.
20970 2008-02-28 Robert Millan <rmh@aybabtu.com>
20972 * util/update-grub.in: Reorganise terminal validity check. Accept
20973 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
20974 Based on suggestion by Franklin PIAT.
20976 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
20978 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
20980 * util/getroot.c (grub_util_check_block_device): New function that
20981 returns the given argument if it is a block device and returns NULL else.
20982 * util/grub-probe.c (argument_is_device): New variable.
20983 (probe): Promote device_name from a variable to an argument. Receive
20984 device_name from grub_util_check_block_device() if path is NULL and from
20985 grub_guess_root_device() else. Do not free() device_name anymore.
20986 (options): Introduce new parameter '-d, --device'.
20987 (main): Add description of the new parameter to the help screen.
20988 Rename path variable to argument. Set argument_is_device if the '-d'
20989 option is given. Pass argument to probe() depending on
20990 argument_is_device.
20992 2008-02-24 Bean <bean123ch@gmail.com>
20994 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
20995 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
20996 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
20997 (GRUB_ISO9660_VOLDESC_PART): Likewise.
20998 (GRUB_ISO9660_VOLDESC_END): Likewise.
20999 (grub_iso9660_primary_voldesc): New member escape.
21000 (grub_iso9660_data): New member joliet.
21001 (grub_iso9660_convert_string): New function.
21002 (grub_iso9660_mount): Detect joliet extension.
21003 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
21004 (grub_iso9660_iso9660_label): Likewise.
21006 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
21007 (grub_setup_SOURCES): Add fs/udf.c.
21008 (grub_fstest_SOURCES): Likewise.
21009 (udf_mod_SOURCES): New variable.
21010 (udf_mod_CFLAGS): Likewise.
21011 (udf_mod_LDFLAGS): Likewise.
21013 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
21014 (grub_emu_SOURCES): Likewise.
21016 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21018 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21020 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21022 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21024 * fs/udf.c: New file.
21026 2008-02-24 Robert Millan <rmh@aybabtu.com>
21028 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
21029 (normal/lexer.c_DEPENDENCIES): New variables.
21030 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21031 (normal/lexer.c_DEPENDENCIES): Likewise.
21032 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
21033 (normal/lexer.c_DEPENDENCIES): Likewise.
21034 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
21035 (normal/lexer.c_DEPENDENCIES): Likewise.
21036 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21037 (normal/lexer.c_DEPENDENCIES): Likewise.
21038 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21039 (normal/lexer.c_DEPENDENCIES): Likewise.
21041 2008-02-23 Robert Millan <rmh@aybabtu.com>
21043 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
21044 since they were intended to be in hex. This didn't break previously
21045 because of a bug in gpt_partition_map_iterate() (see below).
21047 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
21048 when checking the validity of GPT header.
21049 Remove `partno', since it always provides the same information as `i'.
21051 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
21053 * include/grub/efi/time.h: Fix a wrong comment.
21055 2008-02-19 Pavel Roskin <proski@gnu.org>
21057 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
21060 2008-02-19 Bean <bean123ch@gmail.com>
21062 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
21063 (aout_mod_SOURCES): New variable.
21064 (aout_mod_CFLAGS): Likewise.
21065 (aout_mod_LDFLAGS): Likewise.
21066 (_bsd_mod_SOURCES): New variable.
21067 (_bsd_mod_CFLAGS): Likewise.
21068 (_bsd_mod_LDFLAGS): Likewise.
21069 (bsd_mod_SOURCES): New variable.
21070 (bsd_mod_CFLAGS): Likewise.
21071 (bsd_mod_LDFLAGS): Likewise.
21073 * include/grub/aout.h: New file.
21075 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
21077 * include/grub/i386/bsd.h: New file.
21079 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
21082 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
21083 function is called, so that it's possible to change it inside the hook.
21084 (grub_elf64_load): Likewise.
21085 (grub_elf_file): Don't close the file if elf header is not found.
21086 (grub_elf_close): Close the file if grub_elf_file fails (The new
21087 grub_elf_file won't close it).
21088 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
21089 (grub_elf64_size): Likewise.
21091 * kern/i386/loader.S (grub_unix_real_boot): New function.
21093 * loader/aout.c: New file.
21095 * loader/i386/bsd.c: New file.
21097 * loader/i386/bsd_normal.c: New file.
21099 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
21101 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
21102 can test other formats.
21104 2008-02-19 Robert Millan <rmh@aybabtu.com>
21106 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
21107 (grub_gpt_partition_type_empty): Redefine with macro from
21108 `<grub/gpt_partition.h>'.
21109 (gpt_partition_map_iterate): Adjust partition type comparison.
21111 Export `entry' as partmap-specific `part.data' struct.
21112 (grub_gpt_header, grub_gpt_partentry): Move from here ...
21114 * include/grub/gpt_partition.h (grub_gpt_header)
21115 (grub_gpt_partentry): ... to here (new file).
21117 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
21119 (grub_gpt_partition_type_bios_boot): New const variable, defined
21120 with macro from `<grub/gpt_partition.h>'.
21122 (setup): Replace `first_start' with `embed_region', which keeps
21123 track of the embed region (and is partmap-agnostic).
21125 Replace find_first_partition_start() with find_usable_region(),
21126 which finds a usable region for embedding using partmap-specific
21127 knowledge (supports PC/MSDOS and GPT).
21129 Fix all assumptions that the embed region start at sector 1, using
21130 `embed_region.start' from now on. Similarly, use `embed_region.end'
21131 rather than `first_start' to calculate available size.
21133 In grub_util_info() message, replace "into after the MBR" with an
21134 indication of the specific sector our embed region starts at.
21136 2008-02-19 Robert Millan <rmh@aybabtu.com>
21138 * DISTLIST: Replace `commands/ieee1275/halt.c' and
21139 `commands/ieee1275/reboot.c' with `commands/halt.c' and
21140 `commands/reboot.c'.
21141 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
21142 (halt_mod_SOURCES): Likewise.
21143 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
21144 (halt_mod_SOURCES): Likewise.
21146 2008-02-17 Christian Franke <franke@computer.org>
21148 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
21150 2008-02-17 Robert Millan <rmh@aybabtu.com>
21152 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
21153 set `first_start' to 0 for non-PC/MSDOS partition maps.
21155 2008-02-16 Robert Millan <rmh@aybabtu.com>
21157 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
21158 do not assume partition map is PC/MSDOS before performing checks that
21159 are specific to that layout.
21161 2008-02-13 Robert Millan <rmh@aybabtu.com>
21163 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
21164 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
21165 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
21167 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
21169 * configure.ac: Only a cosmetic change on the handling of
21170 -fno-stack-protector.
21172 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
21174 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
21175 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
21177 (grub_install_SOURCES): Add halt.mod and reboot.mod.
21178 (halt_mod_SOURCES): New variable.
21179 (halt_mod_CFLAGS): Likewise.
21180 (halt_mod_LDFLAGS): Likewise.
21181 (reboot_mod_SOURCES): Likewise.
21182 (reboot_mod_CFLAGS): Likewise.
21183 (reboot_mod_LDFLAGS): Likewise.
21185 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
21186 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
21188 (halt_mod_SOURCES): Likewise.
21189 (reboot_mod_SOURCES): Likewise.
21191 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
21192 commands/i386/pc/reboot.c by commands/reboot.c.
21193 (reboot_mod_SOURCES): Likewise.
21195 * commands/i386/pc/reboot.c: merge this file ...
21197 * commands/ieee1275/reboot.c: ... and this file ...
21199 * commands/reboot.c: ... to this file.
21200 Add some precompiler directive to include the correct header for
21203 * commands/ieee1275/halt.c: move this file ...
21205 * commands/halt.c: ... to here.
21206 Add some precompiler directive to include the correct header for
21209 * include/grub/efi/efi.h (grub_reboot): New function declaration.
21210 (grub_halt): Likewise.
21212 * kern/efi/efi.c (grub_reboot): New function.
21213 (grub_halt): Likewise.
21215 2008-02-12 Robert Millan <rmh@aybabtu.com>
21217 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
21218 /dev (like it is done for /dev/mapper). This doesn't provide support
21219 for EVMS, but at least it is now easy to identify the problem when it
21222 2008-02-11 Robert Millan <rmh@aybabtu.com>
21224 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
21225 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
21226 comparing it with -1, not 0.
21228 2008-02-10 Robert Millan <rmh@aybabtu.com>
21230 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
21232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21233 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21235 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
21236 `disk/lvm.c' to the end of the list.
21237 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21238 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21240 2008-02-10 Robert Millan <rmh@aybabtu.com>
21242 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
21243 grub_print_error() instead. This will let user know why we're entering
21245 Based on suggestions from Sam Morris.
21247 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
21249 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
21250 on remaining N args, instead of "--" arg N times.
21252 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
21254 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
21255 (fill_with_default_glyph): Changed to use unknown_glyph for fill
21256 pattern for unknown glyphs.
21258 2008-02-09 Robert Millan <rmh@aybabtu.com>
21260 * configure.ac: Probe for `help2man'.
21261 * Makefile.in (builddir): New variable.
21262 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
21263 or otherwise add a few flags/options to it.
21264 (install-local): For every executable utility or script that is
21265 installed, invoke $(HELP2MAN) to install a manpage based on --help
21268 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
21269 that it doesn't prevent --help from working in build tree.
21271 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
21272 with `bug-grub@gnu.org'.
21273 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
21274 * util/update-grub.in (usage): New function.
21275 Implement proper argument check, with support for --help and --version
21276 (as well as existing -y).
21278 2008-02-09 Christian Franke <franke@computer.org>
21280 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
21281 avoid overwriting previous output.
21282 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
21284 2008-02-09 Robert Millan <rmh@aybabtu.com>
21286 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
21289 2008-02-09 Robert Millan <rmh@aybabtu.com>
21291 * commands/sleep.c: New file.
21292 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
21293 (sleep_mod_SOURCES): New variable.
21294 (sleep_mod_CFLAGS): Likewise.
21295 (sleep_mod_LDFLAGS): Likewise.
21297 2008-02-09 Robert Millan <rmh@aybabtu.com>
21299 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
21300 situations in which we can deduce the RAID size and the superblock
21303 2008-02-09 Robert Millan <rmh@aybabtu.com>
21305 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
21306 and return a grub_diskmemberlist_t composed of LVM physical volumes.
21307 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
21309 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
21310 and return a grub_diskmemberlist_t composed of physical array members.
21311 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
21313 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
21315 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
21316 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
21317 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
21319 * util/grub-probe.c (probe): Move partmap probing code from here ...
21320 (probe_partmap): ... to here.
21321 (probe): Use probe_partmap() once for the disk we're probing, and
21322 additionally, when such disk contains a memberlist() struct member,
21323 once for each disk that is contained in the structure returned by
21326 2008-02-09 Robert Millan <rmh@aybabtu.com>
21328 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
21329 environment variable to 'all' in order to obtain debug output from
21331 * util/i386/pc/grub-setup.c (main): Likewise.
21333 2008-02-08 Robert Millan <rmh@aybabtu.com>
21335 * disk/raid.c (grub_raid_scan_device): Check for
21336 `array->device[sb.this_disk.number]' rather than for
21337 `array->device[sb.this_disk.number]->name', since the latter is not
21338 guaranteed to be accessible.
21340 2008-02-08 Robert Millan <rmh@aybabtu.com>
21342 * disk/raid.c: Update copyright.
21343 * fs/cpio.c: Likewise.
21344 * include/grub/raid.h: Likewise.
21345 * loader/i386/pc/multiboot.c: Likewise.
21346 * util/hostfs.c: Likewise.
21348 2008-02-08 Robert Millan <rmh@aybabtu.com>
21350 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
21351 to a grub_disk_t array.
21352 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
21354 (grub_raid_scan_device): Replace `device[x].name' accesses with
21355 `device[x]->name'. Simplify initialization of `array->device[x]'.
21357 2008-02-08 Robert Millan <rmh@aybabtu.com>
21359 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
21360 grub_dprintf() calls.
21361 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
21364 2008-02-07 Christian Franke <franke@computer.org>
21366 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
21367 instead of fseek and ftell to support large files.
21368 (grub_hostfs_read): Likewise.
21370 2008-02-07 Robert Millan <rmh@aybabtu.com>
21372 Patch from Jeroen Dekkers.
21373 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
21374 failure, since successfully reading all array members might not be
21377 2008-02-06 Robert Millan <rmh@aybabtu.com>
21379 * util/grub-probe.c (probe): Simplify partmap probing (with the
21380 assumption that the first word up to the underscore equals to
21383 2008-02-06 Christian Franke <franke@computer.org>
21385 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
21386 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
21387 last block of a cpio or tar stream.
21388 Check for "TRAILER!!!" instead of any empty data
21389 block to detect last block of a cpio stream.
21390 (grub_cpio_dir): Fix constness of variable np.
21391 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
21392 cpio or tar trailer is detected. This fixes a crash
21393 on open of a non existing file.
21395 2008-02-05 Bean <bean123ch@gmail.com>
21397 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
21399 (grub_multiboot_load_elf64): Likewise.
21400 (grub_multiboot): Initialize mbi structure.
21402 * util/grub-fstest.c: Don't include unused header file script.h.
21404 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
21406 (grub_fstest_SOURCES): Likewise.
21408 2008-02-05 Robert Millan <rmh@aybabtu.com>
21410 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
21411 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
21412 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
21413 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
21415 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
21416 (translation_table): Replace hardcoded values with macros
21417 provided by `<grub/term.h>'.
21419 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
21420 (keyboard_map): Correct/add a few values, with macros provided
21421 by `<grub/term.h>'.
21422 (keyboard_map_shift): Zero values that don't differ from their
21423 `keyboard_map' equivalents.
21424 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
21425 Discard the second scan code that is always sent by Caps lock.
21426 Only use `keyboard_map_shift' when it provides a non-zero value,
21427 otherwise fallback to `keyboard_map'.
21429 2008-02-04 Bean <bean123ch@gmail.com>
21431 * Makefile.in (enable_grub_fstest): New variable.
21433 * conf/common.rmk (grub_fstest_init.lst): New rule.
21434 (grub_fstest_init.h): Likewise.
21435 (grub_fstest_init.c): Likewise.
21436 (util/grub-fstest.c_DEPENDENCIES): New variable.
21437 (grub_fstest_SOURCES): Likewise.
21439 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
21441 * util/grub-fstest.c: New file.
21443 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
21445 Make grub-setup handle a separate root device.
21447 * util/i386/pc/grub-setup.c (setup): Always open the root device,
21448 so that the root device can be compared with the destination
21450 When embedding the core image, if the root and destination devices
21451 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
21453 When not embedding, set ROOT_DRIVE to 0xFF.
21455 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
21457 Add support for having a grub directory in a different drive. This
21458 is still only the data handling part.
21460 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
21461 (codestart): Save %dh in GRUB_ROOT_DRIVE.
21462 (grub_root_drive): New variable.
21464 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
21465 instead of GRUB_BOOT_DRIVE to construct a device name. Set
21466 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
21469 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
21471 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
21473 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
21475 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
21476 is bogus, because PXE booting does not specify any drive
21479 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
21480 am not sure if this is really correct.
21482 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
21483 is always identical to the boot drive when booting from a CD.
21485 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
21487 (root_drive): New variable.
21488 (real_start): Unconditionally set %dh to ROOT_DRIVE.
21489 (setup_sectors): Push %dx right after popping it, because %dh will
21491 (copy_buffer): Restore %dx.
21493 2008-02-03 Robert Millan <rmh@aybabtu.com>
21495 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
21496 use `cdboot.img' for cdrom images.
21498 2008-02-03 Robert Millan <rmh@aybabtu.com>
21500 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
21501 only setup gfxterm when `font' command has succeeded.
21503 2008-02-03 Robert Millan <rmh@aybabtu.com>
21505 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
21506 (grub_rescue_cmd_multiboot_loader)
21507 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
21509 2008-02-03 Pavel Roskin <proski@gnu.org>
21511 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
21512 %edx and %esi from stack only after grub_gate_a20() is called.
21513 grub_gate_a20() clobbers %edx.
21515 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
21517 * configure.ac (AC_INIT): Bumped to 1.96.
21519 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
21520 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
21521 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
21522 video/readers/png.c.
21524 2008-02-03 Bean <bean123ch@gmail.com>
21526 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
21527 (cdboot_img_SOURCES): New variable.
21528 (cdboot_img_ASFLAGS): New variable.
21529 (cdboot_img_LDFLAGS): New variable.
21531 * boot/i386/pc/cdboot.S: New file.
21533 * disk/i386/pc/biosdisk.c (cd_start): New variable.
21534 (cd_count): Likewise.
21535 (grub_biosdisk_get_drive): Add support for cd device.
21536 (grub_biosdisk_call_hook): Likewise.
21537 (grub_biosdisk_iterate): Likewise.
21538 (grub_biosdisk_open): Likewise.
21539 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
21540 (grub_biosdisk_rw): Support reading from cd device.
21541 (GRUB_MOD_INIT): Iterate cd devices.
21543 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
21544 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
21545 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
21547 * kern/i386/pc/init.c (make_install_device): Check for cd device.
21549 2008-02-02 Robert Millan <rmh@aybabtu.com>
21551 * commands/read.c: New file.
21552 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
21553 (read_mod_SOURCES): New variable.
21554 (read_mod_CFLAGS): Likewise.
21555 (read_mod_LDFLAGS): Likewise.
21557 2008-02-02 Robert Millan <rmh@aybabtu.com>
21559 * normal/main.c (grub_normal_execute): Check for `menu->size' when
21560 determining whether menu has to be displayed.
21562 2008-02-02 Marco Gerards <marco@gnu.org>
21564 * bus/pci.c: New file.
21566 * include/grub/pci.h: Likewise.
21568 * include/grub/i386/pc/pci.h: Likewise.
21570 * commands/lspci.c: Likewise.
21572 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
21574 (pci_mod_SOURCES): New variable.
21575 (pci_mod_CFLAGS): Likewise.
21576 (pci_mod_LDFLAGS): Likewise.
21577 (lspci_mod_SOURCES): Likewise.
21578 (lspci_mod_CFLAGS): Likewise.
21579 (lspci_mod_LDFLAGS): Likewise.
21581 2008-02-02 Bean <bean123ch@gmail.com>
21583 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
21584 (grub_ufs_get_file_block): Fix indirect block calculation problem.
21586 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
21587 (grub_xfs_btree_node): New structure.
21588 (grub_xfs_btree_root): New structure.
21589 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
21590 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
21591 (GRUB_XFS_EXTENT_BLOCK): Likewise.
21592 (GRUB_XFS_EXTENT_SIZE): Likewise.
21593 (grub_xfs_read_block): Support btree format type.
21594 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
21595 Use directory block as basic unit.
21597 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
21599 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
21600 __attribute__ ((__regparm__ (1))).
21602 2008-02-01 Robert Millan <rmh@aybabtu.com>
21604 Correct a mistake in previous commit.
21606 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
21608 (normal/command.c_DEPENDENCIES): New variable.
21610 2008-02-01 Robert Millan <rmh@aybabtu.com>
21612 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
21614 (normal/command.c_DEPENDENCIES): New variable.
21615 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
21616 * conf/i386-ieee1275.rmk: Likewise.
21617 * conf/i386-linuxbios.rmk: Likewise.
21618 * conf/i386-pc.rmk: Likewise.
21619 * conf/sparc64-ieee1275.rmk: Likewise.
21620 * conf/powerpc-ieee1275.rmk: Likewise.
21621 (grub_emu_SOURCES): Add `fs/fshelp.c'.
21623 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
21625 2008-02-01 Robert Millan <rmh@aybabtu.com>
21627 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
21628 call at beginning of function.
21630 2008-01-31 Pavel Roskin <proski@gnu.org>
21632 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
21633 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
21634 (grub_mkrescue_SOURCES): Likewise.
21635 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
21637 2008-01-30 Robert Millan <rmh@aybabtu.com>
21639 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
21640 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
21641 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
21642 (grub_probe_SOURCES): ... to here.
21644 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
21645 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
21646 * conf/i386-ieee1275.rmk: Likewise.
21647 * conf/i386-linuxbios.rmk: Likewise.
21648 * conf/powerpc-ieee1275.rmk: Likewise.
21650 2008-01-30 Tristan Gingold <gingold@free.fr>
21652 * kern/rescue.c: Silently accept empty lines.
21654 2008-01-29 Bean <bean123ch@gmail.com>
21656 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
21657 (real_code_2): Code cleanup and change comment style.
21658 (move_memory): Avoid using 32-bit address mode.
21660 2008-01-29 Bean <bean123ch@gmail.com>
21662 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
21663 (png_mod_SOURCES): New variable.
21664 (png_mod_CFLAGS): Likewise.
21665 (png_mod_LDFLAGS): Likewise.
21667 * video/readers/png.c: New file.
21669 2008-01-28 Robert Millan <rmh@aybabtu.com>
21671 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
21672 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
21673 `ifndef GRUB_MOD_GAP' hack.
21674 * util/elf/grub-mkimage.c (add_segments): Likewise.
21676 2008-01-27 Robert Millan <rmh@aybabtu.com>
21678 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
21679 `GRUB_MOD_GAP' for platforms in which it's not defined.
21680 * util/elf/grub-mkimage.c (add_segments): Likewise.
21682 2008-01-27 Robert Millan <rmh@aybabtu.com>
21684 Get grub-emu to build again (including parallel builds).
21686 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
21688 (util/grub-emu.c_DEPENDENCIES): ... this, ...
21689 (normal/execute.c_DEPENDENCIES): ... this, ...
21690 (grub-emu_DEPENDENCIES): ... and this.
21692 * conf/i386-efi.rmk: Likewise.
21693 * conf/i386-linuxbios.rmk: Likewise.
21694 * conf/i386-ieee1275.rmk: Likewise.
21695 * conf/powerpc-ieee1275.rmk: Likewise.
21696 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
21698 2008-01-27 Robert Millan <rmh@aybabtu.com>
21700 * NEWS: Add a few items.
21702 2008-01-27 Robert Millan <rmh@aybabtu.com>
21704 Fix parallel builds with grub-emu. Based on earlier commit for
21705 grub-probe and grub-setup.
21707 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
21708 (util/grub-emu.c_DEPENDENCIES): ... this.
21709 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
21710 (util/grub-emu.c_DEPENDENCIES): ... this.
21711 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
21712 (util/grub-emu.c_DEPENDENCIES): ... this.
21713 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
21714 (util/grub-emu.c_DEPENDENCIES): ... this.
21715 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
21716 (util/grub-emu.c_DEPENDENCIES): ... this.
21718 2008-01-27 Pavel Roskin <proski@gnu.org>
21720 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
21721 to create a gap between _end and the modules added to the image
21722 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
21723 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
21724 * util/elf/grub-mkimage.c (add_segments): Likewise.
21726 2008-01-26 Pavel Roskin <proski@gnu.org>
21728 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
21729 just return an error.
21731 2008-01-26 Bean <bean123ch@gmail.com>
21733 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
21734 (grub_reiserfs_get_item): Save offset of the next item.
21735 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
21737 2008-01-25 Robert Millan <rmh@aybabtu.com>
21739 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
21740 make all filesystem sources appear together (possibly fixing omissions
21742 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21743 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21744 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21745 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21747 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
21749 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
21750 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
21751 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
21752 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
21754 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
21755 (probe): Add a sanity check to make sure of our ability to read
21756 requested files when probing for filesystem type.
21758 * genmk.rb: Update copyright year (2007).
21760 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
21761 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
21762 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
21763 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
21764 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
21765 : Remove function prototypes.
21767 2008-01-25 Robert Millan <rmh@aybabtu.com>
21769 Revert my previous commits (based on wrong assumption of how grub_errno
21772 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
21773 * kern/file.c (grub_file_open): Likewise.
21775 2008-01-24 Pavel Roskin <proski@gnu.org>
21777 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
21778 that hang if GRUB tries to setup colors.
21779 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
21780 colors for firmwares that don't support it.
21781 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
21782 Recognize Open Hack'Ware, set flags to work around its
21785 2008-01-24 Robert Millan <rmh@aybabtu.com>
21787 * kern/file.c (grub_file_open): Do not account previous failures of
21788 unrelated functions when grub_errno is checked for.
21789 Reported by Oleg Strikov.
21791 2008-01-24 Bean <bean123ch@gmail.com>
21793 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
21794 (grub_ufs_sblock): New member volume name.
21795 (grub_ufs_find_file): Fix string copy bug.
21796 (grub_ufs_label): Implement this function properly.
21798 * fs/hfs.c (grub_hfs_cnid_type): New enum.
21799 (grub_hfs_iterate_records): Use the correct file number for extents
21800 and catalog file. Fix problem in next index calculation.
21801 (grub_hfs_find_node): Replace recursive function call with loop.
21802 (grub_hfs_iterate_dir): Replace recursive function call with loop.
21804 2008-01-23 Robert Millan <rmh@aybabtu.com>
21806 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
21807 `<grub/symbol.h>' and `<grub/multiboot.h>'.
21808 (grub_multiboot2_real_boot): New function prototype.
21810 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
21811 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
21813 * kern/i386/ieee1275/init.c (grub_os_area_addr)
21814 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
21816 2008-01-23 Robert Millan <rmh@aybabtu.com>
21818 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
21819 #ifdef'ed out grub_printf().
21821 2008-01-23 Robert Millan <rmh@aybabtu.com>
21823 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
21824 grub_dprintf calls, since they make "debug=all" mode unusable.
21825 (grub_console_checkkey): Likewise.
21827 2008-01-23 Robert Millan <rmh@aybabtu.com>
21829 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
21830 `term/i386/pc/at_keyboard.c'.
21831 (pkglib_MODULES): Add `serial.mod'.
21832 (serial_mod_SOURCES): New variable.
21833 (serial_mod_CFLAGS): Likewise.
21834 (serial_mod_LDFLAGS): Likewise.
21836 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
21837 `<grub/powerpc/ieee1275/console.h>'.
21838 (grub_keyboard_controller_init): New function prototype.
21839 (grub_console_checkkey): Likewise.
21840 (grub_console_getkey): Likewise.
21842 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
21845 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
21846 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
21848 2008-01-23 Robert Millan <rmh@aybabtu.com>
21850 * kern/i386/pc/init.c (make_install_device): When memdisk image is
21851 present, "(memdisk)/boot/grub" becomes the default prefix.
21853 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
21854 a memdisk tarball with all the modules. Add --overlay=DIR option that
21855 allows users to overlay additional files into the image.
21857 2008-01-23 Robert Millan <rmh@aybabtu.com>
21859 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
21860 and `machine/memory.h'.
21861 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
21862 (_multiboot_mod_SOURCES): New variable.
21863 (_multiboot_mod_CFLAGS): Likewise.
21864 (_multiboot_mod_LDFLAGS): Likewise.
21865 (multiboot_mod_SOURCES): Likewise.
21866 (multiboot_mod_CFLAGS): Likewise.
21867 (multiboot_mod_LDFLAGS): Likewise.
21869 * include/grub/i386/ieee1275/loader.h: New file.
21871 * include/grub/i386/ieee1275/machine.h: Likewise.
21873 * include/grub/i386/ieee1275/memory.h: Likewise.
21875 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
21876 variable declaration.
21877 (grub_os_area_size): Likewise.
21879 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
21880 (grub_lower_mem, grub_upper_mem): New variables.
21881 (grub_stop_floppy): New function (just to make
21882 grub_multiboot2_real_boot() happy).
21884 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
21885 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
21886 (grub_stop): New function.
21887 Include `"../realmode.S"' and `"../loader.S"'.
21889 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
21890 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
21892 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
21893 rely on grub_multiboot2_real_boot() for final boot.
21895 2008-01-22 Robert Millan <rmh@aybabtu.com>
21897 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
21898 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
21899 device that doesn't look like an SD card.
21900 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
21901 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
21902 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
21903 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
21906 2008-01-22 Robert Millan <rmh@aybabtu.com>
21908 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
21909 avoid claiming over our own code.
21911 2008-01-22 Bean <bean123ch@gmail.com>
21913 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
21914 (jpeg_mod_SOURCES): New variable.
21915 (jpeg_mod_CFLAGS): Likewise.
21916 (jpeg_mod_LDFLAGS): Likewise.
21918 * video/readers/jpeg.c : New file.
21920 2008-01-22 Bean <bean123ch@gmail.com>
21922 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
21923 there are no more items.
21925 2008-01-21 Robert Millan <rmh@aybabtu.com>
21927 * kern/mm.c (grub_mm_init_region): Improve debug message.
21929 2008-01-21 Robert Millan <rmh@aybabtu.com>
21931 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
21932 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
21934 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
21936 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
21937 Indicates start of upper memory.
21938 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
21939 (generate_image): Abort when image size is big enough to corrupt
21942 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
21943 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
21944 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
21945 instead of hardcoding 0xA0000.
21946 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
21947 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
21948 instead of hardcoding 0xA0000.
21950 2008-01-21 Robert Millan <rmh@aybabtu.com>
21952 * disk/memdisk.c (memdisk_size): New variable.
21953 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
21955 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
21956 image to dynamic memory.
21957 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
21958 `memdisk_size'. Free memdisk block.
21960 2008-01-21 Robert Millan <rmh@aybabtu.com>
21962 Fix detection of very small filesystems (like tar).
21964 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
21965 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
21966 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
21967 a problem with this disk).
21969 2008-01-21 Robert Millan <rmh@aybabtu.com>
21971 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
21972 on grub_biosdisk_rw_standard() error.
21974 2008-01-21 Robert Millan <rmh@aybabtu.com>
21976 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
21978 * kern/elf.c: Likewise.
21979 * kern/ieee1275/ieee1275.c: Likewise.
21980 * kern/powerpc/ieee1275/openfw.c: Likewise.
21981 * term/ieee1275/ofconsole.c: Likewise.
21983 2008-01-21 Robert Millan <rmh@aybabtu.com>
21985 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
21987 * include/grub/kernel.h (grub_arch_memdisk_addr)
21988 (grub_arch_memdisk_size): Moved from here ...
21990 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
21991 (grub_arch_memdisk_size): ... to here.
21993 2008-01-21 Robert Millan <rmh@aybabtu.com>
21995 Mostly based on bugfix from Bean.
21997 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
21998 attribute with hook() parameter.
21999 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
22001 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
22002 attribute with hook() parameter.
22003 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
22006 2008-01-21 Robert Millan <rmh@aybabtu.com>
22008 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
22009 (pkglib_MODULES): Add `memdisk.mod'.
22010 (memdisk_mod_SOURCES): New variable.
22011 (memdisk_mod_CFLAGS): Likewise.
22012 (memdisk_mod_LDFLAGS): Likewise.
22014 * disk/memdisk.c: New file.
22016 * include/grub/disk.h (grub_disk_dev_id): Add
22017 `GRUB_DISK_DEVICE_MEMDISK_ID'.
22019 * include/grub/i386/pc/kernel.h
22020 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
22021 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
22022 (grub_kernel_image_size): New variable declaration.
22023 (grub_total_module_size): Likewise.
22024 (grub_memdisk_image_size): Likewise.
22026 * include/grub/i386/pc/memory.h
22027 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
22029 * include/grub/kernel.h: Include `<grub/symbol.h>'.
22030 (grub_arch_memdisk_addr): New variable declaration.
22031 (grub_arch_memdisk_size): Likewise.
22033 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
22034 (grub_arch_memdisk_size): Likewise.
22036 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
22037 (codestart): Replace hardcoded `0x100000' with
22038 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
22040 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
22041 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
22042 not NULL, append the contents of the file it refers to, at the end of
22043 the compressed kernel image. Initialize `grub_memdisk_image_size'
22044 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
22045 (options): Add "memdisk"|'m' option.
22046 (main): Parse --memdisk|-m option, and pass user-provided path as
22047 parameter to generate_image().
22049 2008-01-20 Robert Millan <rmh@aybabtu.com>
22051 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
22052 grub_dprintf() calls from here ...
22053 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
22055 2008-01-20 Robert Millan <rmh@aybabtu.com>
22057 Fix detection of "real mode" when /options/real-mode? doesn't exist.
22059 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
22061 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
22062 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
22063 `GRUB_IEEE1275_FLAG_REAL_MODE'.
22064 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
22066 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
22067 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
22069 2008-01-19 Robert Millan <rmh@aybabtu.com>
22071 Get rid of confusing function (superseded by
22072 `grub_ieee1275_get_integer_property')
22073 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
22075 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
22077 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
22078 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
22079 in native endianness from grub_ieee1275_get_integer_property().
22081 2008-01-19 Robert Millan <rmh@aybabtu.com>
22083 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
22084 command after "shut-down", since implementations differ on which
22085 the command for halt is.
22087 2008-01-19 Robert Millan <rmh@aybabtu.com>
22089 * include/grub/i386/linuxbios/console.h: Add header protection.
22090 (grub_keyboard_controller_init): New function prototype.
22091 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
22092 (KEYBOARD_COMMAND_READ): Likewise.
22093 (KEYBOARD_COMMAND_WRITE): Likewise.
22094 (KEYBOARD_SCANCODE_SET1): Likewise.
22095 (grub_keyboard_controller_write): New function.
22096 (grub_keyboard_controller_read): Likewise.
22097 (grub_keyboard_controller_init): Likewise.
22099 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
22100 (grub_console_init): On coreboot/LinuxBIOS, call
22101 grub_keyboard_controller_init().
22103 2008-01-19 Robert Millan <rmh@aybabtu.com>
22105 PowerPC changes provided by Pavel Roskin.
22107 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
22108 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
22109 don't rely on cmain() doing it.
22110 * kern/i386/ieee1275/startup.S (_start): Store %eax in
22111 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
22113 2008-01-16 Robert Millan <rmh@aybabtu.com>
22115 * include/grub/i386/linuxbios/memory.h
22116 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
22117 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
22118 receive `table_header' as argument. Instead, probe for it in the
22119 known memory ranges where it can be present.
22120 (grub_available_iterate): Do not pass a fixed `table_header' address
22121 to grub_linuxbios_table_iterate().
22123 2008-01-15 Robert Millan <rmh@aybabtu.com>
22125 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
22126 * conf/i386-ieee1275.rmk: New file.
22127 * include/grub/i386/ieee1275/console.h: Likewise.
22128 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
22129 * include/grub/i386/ieee1275/kernel.h: Likewise.
22130 * include/grub/i386/ieee1275/time.h: Likewise.
22131 * kern/i386/ieee1275/init.c: Likewise.
22132 * kern/i386/ieee1275/startup.S: Likewise.
22134 2008-01-15 Robert Millan <rmh@aybabtu.com>
22136 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
22137 when pointers are 32-bit (but still do set it to one when they are
22140 2008-01-15 Robert Millan <rmh@aybabtu.com>
22142 * include/grub/ieee1275/ieee1275.h
22143 (grub_ieee1275_get_integer_property): New function prototype.
22145 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
22146 (grub_ieee1275_get_integer_property): New function. Wraps around
22147 grub_ieee1275_get_property() to handle endianness.
22149 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
22150 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
22152 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
22153 (grub_map): Likewise.
22154 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
22156 2008-01-15 Bean <bean123ch@gmail.com>
22158 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
22159 (grub_script_execute_cmdline): Reset grub_errno.
22161 * normal/main.c (read_config_file): Reset grub_errno.
22163 * normal/parse.y (script_init): New.
22164 (script): Move function and menuentry here.
22166 (command): Add delimiter at the end of command.
22167 (commands): Adjust to match the new command.
22168 (commandblock): Remove grub_script_lexer_record_start.
22169 (menuentry): Add grub_script_lexer_record_start, use the new commands.
22170 (if): Use the new commands.
22172 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
22174 2008-01-15 Robert Millan <rmh@aybabtu.com>
22176 * normal/menu.c (run_menu): Move timeout message from here ...
22177 (print_timeout): ... to here.
22178 (run_menu): Use print_timeout() once during initial draw to print
22179 the whole message, and again in every clock tick to update only
22180 the number of seconds.
22182 2008-01-15 Robert Millan <rmh@aybabtu.com>
22184 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
22185 actual size of `available' from grub_ieee1275_get_property(), and
22186 restrict parsing to that bound.
22188 2008-01-15 Christian Franke <franke@computer.org>
22190 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
22191 (argp_program_version): Remove variable.
22192 (argp_program_bug_address): Likewise.
22193 (options): Convert from struct argp_option to struct option.
22194 (struct arguments): Remove.
22195 (parse_opt): Remove.
22196 (usage): New function.
22197 (main): Replace struct args members by simple variables.
22198 Replace argp_parse() by getopt_long().
22199 Add switch to evaluate options.
22200 Add missing "(...)" around root_dev in prefix string.
22202 2008-01-14 Robert Millan <rmh@aybabtu.com>
22204 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
22205 for grub_ieee1275_exit(), in order to improve portability.
22207 2008-01-14 Robert Millan <rmh@aybabtu.com>
22209 * util/grub.d/10_linux.in (prefix): Define.
22210 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
22212 2008-01-13 Pavel Roskin <proski@gnu.org>
22214 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
22215 grub_errno if no errors have been detected.
22217 2008-01-12 Robert Millan <rmh@aybabtu.com>
22219 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
22220 (grub_util_get_dev_abstraction): New function prototype.
22222 * util/getroot.c: Include `<grub/util/getroot.h>'
22223 (grub_util_get_grub_dev): Move detection of abstraction type to ...
22224 (grub_util_get_dev_abstraction): ... here (new function).
22226 * util/grub-probe.c: Convert PRINT_* to an enum. Add
22227 `PRINT_ABSTRACTION'.
22228 (probe): Probe for abstraction type when requested.
22229 (main): Understand `--target=abstraction'.
22231 * util/i386/efi/grub-install.in: Add abstraction module to core
22232 image when it is found to be necessary.
22233 * util/i386/pc/grub-install.in: Likewise.
22234 * util/powerpc/ieee1275/grub-install.in: Likewise.
22236 * util/update-grub_lib.in (font_path): Return system path without
22237 converting to GRUB path.
22238 * util/update-grub.in: Convert system path returned by font_path()
22239 to a GRUB path. Use `grub-probe -t abstraction' to determine what
22240 abstraction module is needed for loading fonts (if any). Export
22241 that as `GRUB_PRELOAD_MODULES'.
22242 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
22245 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
22247 Remove some unused code from reiserfs.
22249 * fs/reiserfs.c (struct grub_reiserfs_key)
22250 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
22251 (struct grub_reiserfs_node_body): Removed.
22252 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
22254 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
22256 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
22258 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
22260 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
22262 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
22264 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
22265 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
22266 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
22268 2008-01-10 Robert Millan <rmh@aybabtu.com>
22270 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
22271 Determines if a file is garbage left by packaging systems, etc.
22272 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
22273 for processing /etc/grub.d scripts.
22274 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
22275 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
22276 as a condition for processing Linux images.
22278 2008-01-10 Pavel Roskin <proski@gnu.org>
22280 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
22281 to compile reiserfs.c on PowerPC.
22283 2008-01-10 Robert Millan <rmh@aybabtu.com>
22285 * kern/device.c (grub_device_iterate): Do not abort device iteration
22286 when one of the devices cannot be opened.
22287 * kern/disk.c (grub_disk_open): Do not account previous failures of
22288 unrelated functions when grub_errno is checked for.
22290 2008-01-08 Robert Millan <rmh@aybabtu.com>
22292 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
22293 `! grub_linux_is_bzimage', change order of address comparison to make
22294 it more intuitive, and improve "too big zImage" error message.
22296 2008-01-08 Robert Millan <rmh@aybabtu.com>
22298 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
22299 `$(update-grub_DATA)'.
22300 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
22303 2008-01-07 Robert Millan <rmh@aybabtu.com>
22305 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
22306 which instruction is modified by grub-setup during installation
22307 (since it wasn't obvious by only looking at this file).
22309 2008-01-07 Robert Millan <rmh@aybabtu.com>
22311 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
22312 listing actual TODO items.
22314 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
22316 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
22318 (grub_reiserfs_get_key_offset): Likewise.
22319 (grub_reiserfs_set_key_offset): Likewise.
22320 (grub_reiserfs_set_key_type): Likewise.
22321 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
22323 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
22324 better to remove the bitfield version completely.
22326 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
22328 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
22329 allocated from the heap, due to the fshelp implementation.
22330 (grub_reiserfs_dir): Free NODE, due to the same reason.
22332 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
22334 Mostly from Vincent Pelletier:
22336 * fs/reiserfs.c: New file.
22338 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
22339 (reiserfs_mod_SOURCES): New variable.
22340 (reiserfs_mod_CFLAGS): Likewise.
22341 (reiserfs_mod_LDFLAGS): Likewise.
22343 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
22344 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
22345 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
22348 2008-01-06 Robert Millan <rmh@aybabtu.com>
22350 * normal/color.c: Remove `<grub/env.h>'.
22352 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
22354 * include/grub/normal.h: Include <grub/env.h>.
22356 2008-01-05 Robert Millan <rmh@aybabtu.com>
22358 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
22359 usage example with `(hd0,1)'.
22360 Reported by Samuel Thibault.
22362 2008-01-05 Robert Millan <rmh@aybabtu.com>
22364 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
22365 (grub_linux_boot_zimage): Rename to ...
22366 (grub_linux_boot): ... this.
22367 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
22368 (grub_linux_boot_zimage): Conditionalize zImage copy.
22370 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
22371 (grub_linux_boot_bzimage): Remove prototype.
22372 (grub_linux_boot_zimage): Rename to ...
22373 (grub_linux_boot): ... this.
22375 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
22376 (grub_linux_boot): Remove function.
22378 2008-01-05 Robert Millan <rmh@aybabtu.com>
22380 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
22381 (grub_env_write_color_highlight): Likewise.
22382 (grub_wait_after_message): Likewise.
22384 * normal/color.c: New file.
22386 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22387 (normal_mod_DEPENDENCIES): Likewise.
22389 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22390 (normal_mod_DEPENDENCIES): Likewise.
22392 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22393 (normal_mod_DEPENDENCIES): Likewise.
22395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22396 (normal_mod_DEPENDENCIES): Likewise.
22398 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
22399 for waiting after a message is printed.
22400 * normal/main.c (read_config_file): Likewise.
22401 (grub_normal_init): Register grub_env_write_color_normal() and
22402 grub_env_write_color_highlight() hooks. Mark `color_normal' and
22403 `color_highlight' variables as global.
22405 * normal/menu.c (grub_wait_after_message): New function.
22406 (grub_color_menu_normal): New variable. Replaces ...
22407 (GRUB_COLOR_MENU_NORMAL): ... this macro.
22408 (grub_color_menu_highlight): New variable. Replaces ...
22409 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
22410 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
22411 `GRUB_TERM_COLOR_STANDARD'.
22412 (print_message): Use `grub_setcolorstate' to reload colors. Rename
22413 `normal_code' and `highlight_code' to `old_color_normal' and
22414 `old_color_highlight', respectively.
22415 (grub_menu_init_page): Update colors when drawing the menu, based on
22416 `menu_color_normal' and `menu_color_highlight' variables.
22417 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
22418 a message is printed.
22420 2008-01-05 Robert Millan <rmh@aybabtu.com>
22422 * kern/env.c (grub_env_context_open): Propagate hooks for global
22423 variables to new context.
22425 * kern/main.c (grub_set_root_dev): Export `root' variable.
22427 2008-01-05 Robert Millan <rmh@aybabtu.com>
22429 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
22430 discs unconditionally, since udev and others have options to provide
22433 2008-01-05 Robert Millan <rmh@aybabtu.com>
22435 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
22437 2008-01-04 Christian Franke <franke@computer.org>
22439 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
22442 2008-01-03 Pavel Roskin <proski@gnu.org>
22444 * kern/i386/linuxbios/init.c: Put "void" to all function
22445 declarations with no arguments.
22446 * kern/powerpc/ieee1275/init.c: Likewise.
22447 * term/i386/pc/at_keyboard.c: Likewise.
22448 * term/i386/pc/vga_text.c: Likewise.
22449 * util/grub-mkdevicemap.c: Likewise.
22451 2008-01-02 Robert Millan <rmh@aybabtu.com>
22453 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
22454 message when loaded image is out of bounds.
22455 (grub_multiboot_load_elf64): Likewise.
22457 2008-01-02 Pavel Roskin <proski@gnu.org>
22459 * util/grub.d/10_linux.in: Try version without ".old" when
22460 looking for initrd. It's better to use initrd from the newer
22461 kernel of the same version than no initrd at all.
22463 2008-01-01 Robert Millan <rmh@aybabtu.com>
22465 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
22467 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
22469 * include/grub/video.h: Added grub_video_unmap_color and
22470 grub_video_get_active_render_target.
22471 (grub_video_adapter): Added unmap_color and get_active_render_target.
22473 * video/video.c: Added grub_video_unmap_color and
22474 grub_video_get_active_render_target.
22475 (grub_video_get_info): Changed method to accept NULL pointer as an
22476 argument to allow detection of active video adapter.
22478 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
22479 grub_video_vbe_unmap_color_int.
22480 Added grub_video_vbe_unmap_color and
22481 grub_video_vbe_get_active_render_target.
22482 (grub_video_vbe_adapter): Added unmap_color and
22483 get_active_render_target.
22485 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
22486 with grub_video_vbe_unmap_color_int.
22488 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
22489 (DEFAULT_NORMAL_COLOR): Likewise.
22490 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
22491 (DEFAULT_FG_COLOR): Removed.
22492 (DEFAULT_BG_COLOR): Likewise.
22493 (DEFAULT_CURSOR_COLOR): Changed value.
22494 (grub_virtual_screen): Added standard_color_setting,
22495 normal_color_setting, highlight_color_setting and term_color.
22496 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
22497 (bitmap_width): Added.
22498 (bitmap_height): Likewise.
22499 (bitmap): Likewise.
22500 (set_term_color): Likewise.
22501 (grub_virtual_screen_setup): Changed to use new terminal coloring
22503 (grub_gfxterm_init): Added init for bitmap.
22504 (grub_gfxterm_fini): Added destroy for bitmap.
22505 (redraw_screen_rect): Updated to use background bitmap and new
22507 (scroll_up): Added optimization for case when there is no bitmap.
22508 (grub_gfxterm_cls): Fixed to use correct background color.
22509 (grub_virtual_screen_setcolorstate): Changed to use new terminal
22511 (grub_virtual_screen_setcolor): Likewise.
22512 (grub_virtual_screen_getcolor): Added.
22513 (grub_gfxterm_background_image_cmd): Likewise.
22514 (grub_video_term): Added setcolor and getcolor.
22515 (MOD_INIT): Added registration of background_image command.
22516 (MOD_TERM): Added unregistration for background_image command.
22518 2007-12-30 Pavel Roskin <proski@gnu.org>
22520 * loader/multiboot_loader.c: Fix multiboot command
22521 unregistration. Fix all typos in the word "multiboot".
22523 2007-12-29 Pavel Roskin <proski@gnu.org>
22525 * util/grub.d/10_linux.in: Refactor search for initrd. Add
22526 support for initrd names used in Fedora.
22528 2007-12-26 Bean <bean123ch@gmail.com>
22530 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
22531 (cpio_mod_SOURCES): New variable.
22532 (cpio_mod_CFLAGS): Likewise.
22533 (cpio_mod_LDFLAGS): Likewise.
22535 * fs/cpio.c: New file.
22537 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
22539 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22541 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22545 2007-12-25 Robert Millan <rmh@aybabtu.com>
22547 * include/grub/term.h (struct grub_term): Add `getcolor' function.
22548 (grub_getcolor): New function.
22550 * kern/term.c (grub_getcolor): New function.
22551 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
22552 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
22553 (print_entry): Set normal and highlight colors to
22554 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
22555 respectively, before printing and restore them to old
22557 (grub_menu_init_page): Likewise. Fill an additional colored space
22558 that would otherwise be left blank.
22560 * term/efi/console.c (grub_console_getcolor): New function.
22561 (struct grub_console_term.getcolor): New variable.
22562 * term/i386/pc/console.c (grub_console_getcolor): New function.
22563 (struct grub_console_term.getcolor): New variable.
22564 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
22565 (struct grub_console_term.getcolor): New variable.
22567 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
22568 (struct grub_console_term.setcolor): Remove variable.
22569 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
22570 (struct grub_console_term.setcolor): Remove variable.
22571 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
22572 (struct grub_console_term.setcolor): Remove variable.
22573 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
22574 (struct grub_console_term.setcolor): Remove variable.
22576 2007-12-25 Robert Millan <rmh@aybabtu.com>
22578 * configure.ac: Search for possible unifont.hex locations, and
22579 define UNIFONT_HEX if found.
22581 * Makefile.in (UNIFONT_HEX): Define variable.
22582 (DATA): Rename to ...
22583 (PKGLIB): ... this. Update all users.
22584 (PKGDATA): New variable.
22585 (pkgdata_IMAGES): Rename to ...
22586 (pkglib_IMAGES): ... this. Update all users.
22587 (pkgdata_MODULES): Rename to ...
22588 (pkglib_MODULES): ... this. Update all users.
22589 (pkgdata_PROGRAMS): Rename to ...
22590 (pkglib_PROGRAMS): ... this. Update all users.
22591 (pkgdata_DATA): Rename to ...
22592 (pkglib_DATA): ... this. Update all users.
22593 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
22594 (unicode.pff, ascii.pff): New rules.
22595 (all-local): Add `$(PKGDATA)' dependency.
22596 (install-local): Process `$(PKGDATA)'.
22598 * util/update-grub_lib.in (font_path): Search for *.pff files in
22599 a few more locations, including `${pkgdata}'.
22601 2007-12-23 Robert Millan <rmh@aybabtu.com>
22603 Patch from Bean <bean123ch@gmail.com>:
22604 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
22607 2007-12-21 Bean <bean123ch@gmail.com>
22609 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
22610 (ntfscomp_mod_SOURCES): New variable.
22611 (ntfscomp_mod_CFLAGS): Likewise.
22612 (ntfscomp_mod_LDFLAGS): Likewise.
22614 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
22615 (grub_probe_SOURCES): Likewise.
22616 (grub_emu_SOURCES): Likewise.
22618 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
22619 (grub_emu_SOURCES): Likewise.
22621 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
22622 (grub_emu_SOURCES): Likewise.
22624 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
22625 (grub_emu_SOURCES): Likewise.
22627 * fs/ntfs.c (grub_ntfscomp_func): New variable.
22628 (read_run_list): Renamed to grub_ntfs_read_run_list.
22629 (decomp_nextvcn): Moved to ntfscomp.c.
22630 (decomp_getch): Likewise.
22631 (decomp_get16): Likewise.
22632 (decomp_block): Likewise.
22633 (read_block): Likewise.
22634 (read_data): Partially moved to ntfscomp.c.
22635 (fixup): Change unsigned to grub_uint16_t.
22636 (read_mft): Change unsigned long to grub_uint32_t.
22637 (read_attr): Likewise.
22638 (read_data): Likewise.
22639 (read_run_data): Likewise.
22640 (read_run_list): Likewise.
22641 (read_mft): Likewise.
22643 * fs/ntfscomp.c: New file.
22645 * include/grub/ntfs.h: New file.
22647 2007-12-16 Robert Millan <rmh@aybabtu.com>
22649 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
22650 IDE disk check, since Linux is known to support 20 IDE disks.
22651 Reported by Colin Watson.
22653 2007-12-15 Bean <bean123ch@gmail.com>
22655 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
22656 (lnxboot_img_SOURCES): New variable.
22657 (lnxboot_img_ASFLAGS): Likewise.
22658 (lnxboot_img_LDFLAGS): Likewise.
22660 * boot/i386/pc/lnxboot.S: New file.
22662 2007-11-24 Pavel Roskin <proski@gnu.org>
22664 * configure.ac: Test if '--build-id=none' is supported by the
22665 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
22666 objcopy to generate incorrect binary files (binutils
22667 2.17.50.0.18-1 as shipped by Fedora 8).
22668 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
22669 linking, so that build ID doesn't break the test.
22671 2007-11-24 Pavel Roskin <proski@gnu.org>
22673 * include/grub/i386/time.h: use "void" in the argument list
22674 of grub_cpu_idle().
22675 * include/grub/powerpc/time.h: Likewise.
22676 * include/grub/sparc64/time.h: Likewise.
22678 2007-11-18 Christian Franke <franke@computer.org>
22680 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
22681 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
22682 This fixes the problem that function keys did not work in grub-emu.
22684 2007-11-18 Christian Franke <franke@computer.org>
22686 * disk/host.c (grub_host_open): Remove attribute unused from
22687 name parameter. Add check for "host". This fixes the problem
22688 that grub-emu does not find partitions.
22690 2007-11-18 Christian Franke <franke@computer.org>
22692 * util/hostfs.c (is_dir): New function.
22693 (grub_hostfs_dir): Handle missing dirent.d_type case.
22694 (grub_hostfs_read): Add missing fseek().
22695 (grub_hostfs_label): Clear label pointer. This fixes a crash
22696 of grub-emu on "ls (host)".
22698 2007-11-18 Christian Franke <franke@computer.org>
22700 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
22701 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
22702 to 64 bit boundary by default.
22704 2007-11-18 Bean <bean123ch@gmail.com>
22706 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
22707 (hexdump_mod_SOURCES): New variable.
22708 (hexdump_mod_CFLAGS): Likewise.
22709 (hexdump_mod_LDFLAGS): Likewise.
22711 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
22713 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
22715 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
22717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
22719 * include/grub/hexdump.h: New file.
22721 * commands/hexdump.c: New file.
22723 2007-11-10 Robert Millan <rmh@aybabtu.com>
22725 * commands/i386/pc/play.c (beep_off): Switch order of arguments
22726 in grub_outb() calls.
22727 (beep_on): Likewise.
22729 2007-11-10 Christian Franke <franke@computer.org>
22731 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
22732 (grub_menu_run): Likewise.
22734 2007-11-10 Robert Millan <rmh@aybabtu.com>
22736 * include/grub/i386/efi/machine.h: New file.
22737 * include/grub/i386/linuxbios/machine.h: Likewise.
22738 * include/grub/i386/pc/machine.h: Likewise.
22739 * include/grub/powerpc/ieee1275/machine.h: Likewise.
22740 * include/grub/sparc64/ieee1275/machine.h: Likewise.
22742 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
22743 (serial_hw_io_addr): New variable.
22744 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
22745 instead of `(unsigned short *) 0x400'.
22747 2007-11-10 Bean <bean123ch@gmail.com>
22749 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
22751 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
22753 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
22754 (vga_mod_SOURCES): Added.
22755 (vga_mod_CFLAGS): Likewise.
22756 (vga_mod_LDFLAGS): Likewise.
22758 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
22760 (set_map_mask): Likewise.
22761 (set_read_map): Likewise.
22762 (set_read_address): Likewise.
22763 (vga_font): Removed variable.
22764 (get_vga_glyph): Removed function.
22765 (invalidate_char): Likewise.
22766 (write_char): Changed to use grub_font_get_glyph() for font
22768 (grub_vga_putchar): Likewise.
22769 (grub_vga_getcharwidth): Likewise.
22771 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
22773 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
22775 (pxeboot_img_LDFLAGS): Likewise.
22776 (diskboot_img_LDFLAGS): Likewise.
22777 (kernel_img_LDFLAGS): Likewise.
22779 2007-11-06 Robert Millan <rmh@aybabtu.com>
22781 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
22782 in grub_outb() calls.
22783 (serial_hw_init): Likewise.
22785 2007-11-05 Robert Millan <rmh@aybabtu.com>
22787 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
22788 spaces. Skip non-regular files.
22790 2007-11-05 Robert Millan <rmh@aybabtu.com>
22792 * kern/disk.c (grub_disk_firmware_fini)
22793 (grub_disk_firmware_is_tainted): New variables.
22795 * include/grub/disk.h (grub_disk_firmware_fini)
22796 (grub_disk_firmware_is_tainted): Likewise.
22798 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
22799 (grub_disk_biosdisk_fini): ... to here.
22800 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
22801 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
22802 is set. Register grub_disk_biosdisk_fini() in
22803 `grub_disk_firmware_fini'.
22805 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
22806 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
22807 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
22808 to finish existing firmware disk interface.
22810 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
22811 (ata_mod_SOURCES): New variable.
22812 (ata_mod_CFLAGS): Likewise.
22813 (ata_mod_LDFLAGS): Likewise.
22815 2007-11-05 Robert Millan <rmh@aybabtu.com>
22817 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
22818 (grub_ata_wait): Reimplement using grub_millisleep().
22820 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
22821 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
22823 2007-11-03 Marco Gerards <marco@gnu.org>
22825 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
22826 (CRTC_ADDR_PORT): New macro.
22827 (CRTC_DATA_PORT): Likewise.
22828 (CRTC_CURSOR): Likewise.
22829 (CRTC_CURSOR_ADDR_HIGH): Likewise.
22830 (CRTC_CURSOR_ADDR_LOW): Likewise.
22831 (update_cursor): New function.
22832 (grub_console_real_putchar): Call `update_cursor'.
22833 (grub_console_gotoxy): Likewise.
22834 (grub_console_cls): Set the default color when clearing the
22836 (grub_console_setcursor): Implemented.
22838 2007-11-03 Marco Gerards <marco@gnu.org>
22840 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
22842 (grub_ata_pio_write): Likewise.
22844 (grub_atapi_identify): Wait after issuing an ATA command.
22845 (grub_atapi_packet): Likewise.
22846 (grub_ata_identify): Likewise.
22847 (grub_ata_readwrite): Likewise.
22849 2007-11-03 Marco Gerards <marco@gnu.org>
22851 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
22852 (grub_ata_pio_write): Likewise.
22853 (grub_ata_readwrite): Use `grub_error', instead of
22854 returning `grub_errno'.
22856 2007-11-03 Marco Gerards <marco@gnu.org>
22858 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
22859 grub_ata_pio_write once for every single sector, instead of for
22862 2007-10-31 Robert Millan <rmh@aybabtu.com>
22864 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
22866 * conf/i386-linuxbios.rmk: New file.
22868 * kern/i386/pc/hardware.c: Likewise.
22869 * term/i386/pc/at_keyboard.c: Likewise.
22870 * term/i386/pc/vga_text.c: Likewise.
22872 * include/grub/i386/linuxbios/boot.h: Likewise.
22873 * include/grub/i386/linuxbios/console.h: Likewise.
22874 * include/grub/i386/linuxbios/init.h: Likewise.
22875 * include/grub/i386/linuxbios/kernel.h: Likewise.
22876 * include/grub/i386/linuxbios/loader.h: Likewise.
22877 * include/grub/i386/linuxbios/memory.h: Likewise.
22878 * include/grub/i386/linuxbios/serial.h: Likewise.
22879 * include/grub/i386/linuxbios/time.h: Likewise.
22881 * kern/i386/linuxbios/init.c: Likewise.
22882 * kern/i386/linuxbios/startup.S: Likewise.
22883 * kern/i386/linuxbios/table.c: Likewise.
22885 2007-10-31 Marco Gerards <marco@gnu.org>
22887 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
22888 (ata_mod_SOURCES): New variable.
22889 (ata_mod_CFLAGS): Likewise.
22890 (ata_mod_LDFLAGS): Likewise.
22892 * disk/ata.c: New file.
22894 * include/grub/disk.h (grub_disk_dev_id): Add
22895 `GRUB_DISK_DEV_ATA_ID'.
22897 2007-10-31 Robert Millan <rmh@aybabtu.com>
22899 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
22900 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
22902 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
22903 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
22905 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
22908 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
22910 2007-10-27 Robert Millan <rmh@aybabtu.com>
22912 * include/grub/types.h (ULONG_MAX): Define macro.
22914 2007-10-22 Robert Millan <rmh@aybabtu.com>
22916 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
22918 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
22920 2007-10-22 Robert Millan <rmh@aybabtu.com>
22922 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
22923 (pkgdata_MODULES): Add `biosdisk.mod'.
22924 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
22927 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
22928 (grub_biosdisk_init): Replace with ...
22929 (GRUB_MOD_INIT(biosdisk)): ... this.
22930 (grub_biosdisk_fini): Replace with ...
22931 (GRUB_MOD_FINI(biosdisk)): ... this.
22933 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
22934 (grub_machine_init): Remove call to grub_biosdisk_init().
22935 (grub_machine_fini): Remove call to grub_machine_fini().
22937 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
22939 2007-10-22 Robert Millan <rmh@aybabtu.com>
22941 * include/grub/time.h: New file.
22942 * include/grub/i386/time.h: Likewise.
22943 * include/grub/powerpc/time.h: Likewise.
22944 * include/grub/sparc64/time.h: Likewise.
22946 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
22948 (KERNEL_MACHINE_TIME_HEADER): ... this.
22949 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
22951 (KERNEL_MACHINE_TIME_HEADER): ... this.
22952 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
22954 (KERNEL_MACHINE_TIME_HEADER): ... this.
22956 * kern/i386/efi/init.c: Include `<grub/time.h>'.
22957 (grub_millisleep): New function.
22958 * kern/i386/pc/init.c: Include `<grub/time.h>'.
22959 (grub_millisleep): New function.
22960 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
22961 Remove `grub/machine/time.h' include.
22962 (grub_millisleep): New function.
22963 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
22964 Remove `grub/machine/time.h' include.
22965 (grub_millisleep): New function.
22967 * include/grub/misc.h (grub_div_roundup): New function.
22969 * kern/misc.c: Include `<grub/time.h>'.
22970 (grub_millisleep_generic): New function.
22972 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
22974 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
22976 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
22977 `machine/time.h'. Add `time.h'.
22978 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22980 2007-10-21 Robert Millan <rmh@aybabtu.com>
22982 * include/grub/misc.h (grub_max): New function.
22984 2007-10-21 Robert Millan <rmh@aybabtu.com>
22986 * util/misc.c (grub_util_info): Call fflush() before returning.
22988 2007-10-20 Robert Millan <rmh@aybabtu.com>
22990 * genmk.rb (Image): Copy `extra_flags' from here ...
22991 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
22993 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
22994 to `argc' and `args' arguments.
22996 2007-10-17 Robert Millan <rmh@aybabtu.com>
22998 * kern/i386/loader.S: New file.
23000 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
23001 * kern/i386/loader.S (grub_linux_prot_size)... to here.
23002 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
23003 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
23004 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
23005 * kern/i386/loader.S (grub_linux_real_addr)... to here.
23006 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
23007 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
23008 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
23009 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
23010 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
23011 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
23012 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
23013 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
23015 * kern/i386/realmode.S: New file.
23017 * kern/i386/pc/startup.S (protstack): Moved from here ...
23018 * kern/i386/realmode.S (protstack)... to here.
23019 * kern/i386/pc/startup.S (gdt): Moved from here ...
23020 * kern/i386/realmode.S (gdt)... to here.
23021 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
23022 * kern/i386/realmode.S (prot_to_real)... to here.
23024 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
23025 `kern/i386/realmode.S'.
23027 2007-10-17 Robert Millan <rmh@aybabtu.com>
23029 * include/grub/i386/loader.h: New file.
23031 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
23032 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
23033 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
23034 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
23035 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
23036 * include/grub/i386/loader.h (grub_linux_prot_size)
23037 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
23038 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
23039 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
23040 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
23042 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
23044 2007-10-15 Robert Millan <rmh@aybabtu.com>
23046 * normal/misc.c (grub_normal_print_device_info): Do not probe for
23047 filesystem when dev->disk is unset.
23048 Do probe for filesystem even when dev->disk->has_partitions is set.
23049 In case a filesystem is found, always report it.
23050 In case it isn't, if dev->disk->has_partitions is set, report that
23051 a partition table was found instead of reporting that no filesystem
23052 could be identified.
23054 2007-10-12 Robert Millan <rmh@aybabtu.com>
23056 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
23057 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
23059 * include/grub/types.h (grub_host_to_target16): New macro.
23060 (grub_host_to_target32): Likewise.
23061 (grub_host_to_target64): Likewise.
23062 (grub_target_to_host16): Likewise.
23063 (grub_target_to_host32): Likewise.
23064 (grub_target_to_host64): Likewise.
23066 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
23067 Renamed from to ...
23068 (GRUB_MOD_ALIGN): ...this. Update all users.
23070 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
23071 grub_host_to_target32.
23072 Replace grub_be_to_cpu32 with grub_target_to_host32.
23073 (load_modules): Likewise.
23074 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
23075 Replace grub_be_to_cpu32 with grub_target_to_host32.
23076 Replace grub_cpu_to_be16 with grub_host_to_target16.
23077 Replace grub_cpu_to_be32 grub_host_to_target32.
23079 2007-10-12 Robert Millan <rmh@aybabtu.com>
23081 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
23082 * util/elf/grub-mkimage.c: ... here.
23084 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
23085 `util/powerpc/ieee1275/grub-mkimage.c'.
23087 2007-10-07 Robert Millan <rmh@aybabtu.com>
23089 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
23090 and make it easier to figure out.
23091 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
23092 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
23093 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
23094 leave us with less than HEAP_MIN_SIZE total heap.
23095 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
23097 2007-10-03 Robert Millan <rmh@aybabtu.com>
23099 * include/grub/i386/io.h: New file.
23100 * commands/i386/pc/play.c (inb): Removed.
23102 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
23104 * term/i386/pc/serial.c (inb): Removed.
23106 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
23108 * term/i386/pc/vga.c (inb): Removed.
23110 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
23113 2007-10-02 Robert Millan <rmh@aybabtu.com>
23115 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
23116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23117 Reported by Marcin Kurek.
23119 2007-09-07 Robert Millan <rmh@aybabtu.com>
23121 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
23122 SmartFirmware version updates (as released by Sven Luther), and avoid
23123 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
23124 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
23127 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23129 From Hitoshi Ozeki:
23130 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
23131 when merging two regions.
23133 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23135 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
23136 * normal/completion.c (grub_normal_do_completion): Likewise.
23137 Reported by Hitoshi Ozeki.
23139 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23141 Do not use devices at boot in chainloading.
23143 * loader/i386/pc/chainloader.c (boot_drive): New variable.
23144 (boot_part_addr): Likewise.
23145 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
23146 with BOOT_DRIVE and BOOT_PART_ADDR.
23147 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
23148 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
23150 2007-08-29 Robert Millan <rmh@aybabtu.com>
23152 Patch from Simon Peter <dn.tlp@gmx.net>:
23153 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
23154 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
23155 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
23156 util/i386/pc/grub-setup.c_DEPENDENCIES.
23157 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
23158 util/grub-probe.c_DEPENDENCIES.
23159 * conf/powerpc-ieee1275.rmk: Likewise.
23161 2007-08-28 Robert Millan <rmh@aybabtu.com>
23163 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
23164 to tell grub-mkdevicemap how to name devices.
23165 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
23168 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
23169 util/i386/get_disk_name.c.
23170 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
23171 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
23172 util/ieee1275/get_disk_name.c.
23174 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
23176 * DISTLIST: Add util/i386/get_disk_name.c and
23177 util/ieee1275/get_disk_name.c.
23179 * util/grub-mkdevicemap.c: Replace device naming logic with
23180 grub_util_get_disk_name() calls.
23182 2007-08-20 Robert Millan <rmh@aybabtu.com>
23184 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
23185 (so that it works for both plural and singular quantities).
23187 2007-08-05 Robert Millan <rmh@aybabtu.com>
23189 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
23190 so that [xz] isn't taken into account when determining order.
23192 2007-08-02 Marco Gerards <marco@gnu.org>
23194 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
23195 `include/multiboot2.h', `include/grub/elfload.h',
23196 `include/multiboot.h', `include/grub/multiboot.h',
23197 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
23198 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
23199 `kern/elf.c', `loader/multiboot_loader.c',
23200 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
23201 `loader/i386/pc/multiboot2.c',
23202 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
23203 `util/i386/pc/grub-mkrescue.in'. Remove
23204 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
23205 `include/grub/i386/pc/util/biosdisk.h' and
23206 `include/grub/powerpc/ieee1275/multiboot.h'.
23208 2007-08-02 Bean <bean123ch@gmail.com>
23210 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
23211 (ntfs_mod_SOURCES): New variable.
23212 (ntfs_mod_CFLAGS): Likewise.
23213 (ntfs_mod_LDFLAGS): Likewise.
23215 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
23216 (grub_probe_SOURCES): Likewise.
23217 (grub_emu_SOURCES): Likewise.
23219 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
23220 (grub_emu_SOURCES): Likewise.
23222 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
23223 (grub_emu_SOURCES): Likewise.
23225 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
23227 * fs/ntfs.c: New file.
23229 2007-08-02 Bean <bean123ch@gmail.com>
23231 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
23233 * file.h (grub_file): Likewise.
23235 * fshelp.h (grub_fshelp_read_file): Likewise.
23237 * util/i386/pc/grub-setup.c (setup): Likewise.
23238 (save_first_sector): Likewise.
23239 (save_blocklists): Likewise.
23241 * fs/affs.c (grub_affs_read_file): Likewise.
23243 * fs/ext2.c (grub_ext2_read_file): Likewise.
23245 * fs/fat.c (grub_fat_read_data): Likewise.
23247 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
23249 * fs/hfs.c (grub_hfs_read_file): Likewise.
23251 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
23253 * fs/jfs.c (grub_jfs_read_file): Likewise.
23255 * fs/minix.c (grub_minix_read_file): Likewise.
23257 * fs/sfs.c (grub_sfs_read_file): Likewise.
23259 * fs/ufs.c (grub_ufs_read_file): Likewise.
23261 * fs/xfs.c (grub_xfs_read_file): Likewise.
23263 * command/blocklist.c (read_blocklist): Likewise.
23264 (print_blocklist): Likewise.
23266 2007-08-02 Marco Gerards <marco@gnu.org>
23268 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
23271 * disk/host.c: New file.
23273 * util/hostfs.c: Likewise.
23275 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
23276 return `GRUB_ERR_BAD_FS'.
23277 * fs/sfs.c (grub_sfs_mount): Likewise.
23278 * fs/xfs.c (grub_xfs_mount): Likewise.
23280 * include/grub/disk.h (enum grub_disk_dev_id): Add
23281 `GRUB_DISK_DEVICE_HOST_ID'.
23283 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
23285 2007-07-24 Jerone Young <jerone@gmail.com>
23287 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
23288 modules for compilation.
23289 * conf/powerpc-ieee1275.rmk: Likewise.
23291 * include/multiboot.h: Move multiboot definitions to one file. Rename
23292 many definitions to not get grub specific.
23293 * include/multiboot2.h: Create header with multiboot 2 definitions.
23294 * include/grub/multiboot.h: Header for grub specific function
23295 prototypes and definitions.
23296 * include/grub/multiboot2.h: Likewise.
23297 * include/grub/multiboot_loader.h: Likewise.
23298 * include/grub/i386/pc/multiboot.h: Removed.
23299 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
23301 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
23302 and 2 to allow for one multiboot and module commands.
23303 * loader/multiboot2.c: Add multiboot2 functionality.
23304 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
23305 and definition names.
23306 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
23308 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
23309 ieee1275 specific multiboot2 code.
23311 * kern/i386/pc/startup.S: Change headers and definition names for
23312 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
23314 2007-07-22 Robert Millan <rmh@aybabtu.com>
23316 * geninitheader.sh: Process file specified in first parameter rather
23317 than hardcoding grub_modules_init.lst.
23318 * geninit.sh: Likewise. Also, construct header name dynamically rather
23319 than hardcoding grub_modules_init.h.
23321 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
23322 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
23323 grub_probe_init.[ch] and grub_setup_init.[ch].
23325 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
23326 grub_modules_init.h with grub_emu_init.h.
23327 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
23328 grub_probe_init.[ch] files.
23329 * conf/i386-efi.rmk: Likewise.
23330 * conf/i386-pc.rmk: Likewise.
23331 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
23332 grub_setup_init.[ch] files.
23334 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
23335 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
23336 to initialize modules rather than a list of hardcoded functions.
23337 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
23338 grub_init_all() to initialize modules rather than a list of hardcoded
23341 2007-07-22 Robert Millan <rmh@aybabtu.com>
23343 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23344 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
23346 2007-07-22 Robert Millan <rmh@aybabtu.com>
23348 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
23349 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
23350 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
23351 flag when running on SmartFirmware.
23352 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
23353 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
23356 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
23357 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
23358 rather than decreasing it.
23360 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
23361 there's not enough space to do it, fail in the same way as when it
23362 can't be done because there are no partitions.
23364 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
23365 when nvsetenv failed.
23367 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
23369 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
23370 because this rule is automatically generated.
23371 (grub-mkrescue): Removed for the same reason as above.
23373 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
23375 Migrate to GNU General Public License Version 3.
23377 * COPYING: Replaced with the plain text version of GPLv3.
23379 * config.guess: Updated from gnulib.
23380 * config.sub: Likewise.
23382 * geninit.sh: Output a GPLv3 copyright notice.
23383 * geninitheader.sh: Likewise.
23384 * genmodsrc.sh: Likewise.
23385 * gensymlist.sh.in: Likewise.
23387 * boot/i386/pc/boot.S: Upgraded to GPLv3.
23388 * boot/i386/pc/diskboot.S: Likewise.
23389 * boot/i386/pc/pxeboot.S: Likewise.
23390 * commands/blocklist.c: Likewise.
23391 * commands/boot.c: Likewise.
23392 * commands/cat.c: Likewise.
23393 * commands/cmp.c: Likewise.
23394 * commands/configfile.c: Likewise.
23395 * commands/echo.c: Likewise.
23396 * commands/help.c: Likewise.
23397 * commands/ls.c: Likewise.
23398 * commands/search.c: Likewise.
23399 * commands/terminal.c: Likewise.
23400 * commands/test.c: Likewise.
23401 * commands/videotest.c: Likewise.
23402 * commands/i386/cpuid.c: Likewise.
23403 * commands/i386/pc/halt.c: Likewise.
23404 * commands/i386/pc/play.c: Likewise.
23405 * commands/i386/pc/reboot.c: Likewise.
23406 * commands/i386/pc/vbeinfo.c: Likewise.
23407 * commands/i386/pc/vbetest.c: Likewise.
23408 * commands/ieee1275/halt.c: Likewise.
23409 * commands/ieee1275/reboot.c: Likewise.
23410 * commands/ieee1275/suspend.c: Likewise.
23411 * disk/loopback.c: Likewise.
23412 * disk/lvm.c: Likewise.
23413 * disk/raid.c: Likewise.
23414 * disk/efi/efidisk.c: Likewise.
23415 * disk/i386/pc/biosdisk.c: Likewise.
23416 * disk/ieee1275/ofdisk.c: Likewise.
23417 * font/manager.c: Likewise.
23418 * fs/affs.c: Likewise.
23419 * fs/ext2.c: Likewise.
23420 * fs/fat.c: Likewise.
23421 * fs/fshelp.c: Likewise.
23422 * fs/hfs.c: Likewise.
23423 * fs/hfsplus.c: Likewise.
23424 * fs/iso9660.c: Likewise.
23425 * fs/jfs.c: Likewise.
23426 * fs/minix.c: Likewise.
23427 * fs/sfs.c: Likewise.
23428 * fs/ufs.c: Likewise.
23429 * fs/xfs.c: Likewise.
23430 * hello/hello.c: Likewise.
23431 * include/grub/acorn_filecore.h: Likewise.
23432 * include/grub/arg.h: Likewise.
23433 * include/grub/bitmap.h: Likewise.
23434 * include/grub/boot.h: Likewise.
23435 * include/grub/cache.h: Likewise.
23436 * include/grub/device.h: Likewise.
23437 * include/grub/disk.h: Likewise.
23438 * include/grub/dl.h: Likewise.
23439 * include/grub/elfload.h: Likewise.
23440 * include/grub/env.h: Likewise.
23441 * include/grub/err.h: Likewise.
23442 * include/grub/file.h: Likewise.
23443 * include/grub/font.h: Likewise.
23444 * include/grub/fs.h: Likewise.
23445 * include/grub/fshelp.h: Likewise.
23446 * include/grub/gzio.h: Likewise.
23447 * include/grub/hfs.h: Likewise.
23448 * include/grub/kernel.h: Likewise.
23449 * include/grub/loader.h: Likewise.
23450 * include/grub/lvm.h: Likewise.
23451 * include/grub/misc.h: Likewise.
23452 * include/grub/mm.h: Likewise.
23453 * include/grub/net.h: Likewise.
23454 * include/grub/normal.h: Likewise.
23455 * include/grub/parser.h: Likewise.
23456 * include/grub/partition.h: Likewise.
23457 * include/grub/pc_partition.h: Likewise.
23458 * include/grub/raid.h: Likewise.
23459 * include/grub/rescue.h: Likewise.
23460 * include/grub/script.h: Likewise.
23461 * include/grub/setjmp.h: Likewise.
23462 * include/grub/symbol.h: Likewise.
23463 * include/grub/term.h: Likewise.
23464 * include/grub/terminfo.h: Likewise.
23465 * include/grub/tparm.h: Likewise.
23466 * include/grub/types.h: Likewise.
23467 * include/grub/video.h: Likewise.
23468 * include/grub/efi/api.h: Likewise.
23469 * include/grub/efi/chainloader.h: Likewise.
23470 * include/grub/efi/console.h: Likewise.
23471 * include/grub/efi/console_control.h: Likewise.
23472 * include/grub/efi/disk.h: Likewise.
23473 * include/grub/efi/efi.h: Likewise.
23474 * include/grub/efi/pe32.h: Likewise.
23475 * include/grub/efi/time.h: Likewise.
23476 * include/grub/i386/linux.h: Likewise.
23477 * include/grub/i386/setjmp.h: Likewise.
23478 * include/grub/i386/types.h: Likewise.
23479 * include/grub/i386/efi/kernel.h: Likewise.
23480 * include/grub/i386/efi/loader.h: Likewise.
23481 * include/grub/i386/efi/time.h: Likewise.
23482 * include/grub/i386/pc/biosdisk.h: Likewise.
23483 * include/grub/i386/pc/boot.h: Likewise.
23484 * include/grub/i386/pc/chainloader.h: Likewise.
23485 * include/grub/i386/pc/console.h: Likewise.
23486 * include/grub/i386/pc/init.h: Likewise.
23487 * include/grub/i386/pc/kernel.h: Likewise.
23488 * include/grub/i386/pc/loader.h: Likewise.
23489 * include/grub/i386/pc/memory.h: Likewise.
23490 * include/grub/i386/pc/multiboot.h: Likewise.
23491 * include/grub/i386/pc/serial.h: Likewise.
23492 * include/grub/i386/pc/time.h: Likewise.
23493 * include/grub/i386/pc/vbe.h: Likewise.
23494 * include/grub/i386/pc/vbeblit.h: Likewise.
23495 * include/grub/i386/pc/vbefill.h: Likewise.
23496 * include/grub/i386/pc/vbeutil.h: Likewise.
23497 * include/grub/i386/pc/vga.h: Likewise.
23498 * include/grub/ieee1275/ieee1275.h: Likewise.
23499 * include/grub/ieee1275/ofdisk.h: Likewise.
23500 * include/grub/powerpc/libgcc.h: Likewise.
23501 * include/grub/powerpc/setjmp.h: Likewise.
23502 * include/grub/powerpc/types.h: Likewise.
23503 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
23504 * include/grub/powerpc/ieee1275/console.h: Likewise.
23505 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
23506 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
23507 * include/grub/powerpc/ieee1275/loader.h: Likewise.
23508 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
23509 * include/grub/powerpc/ieee1275/time.h: Likewise.
23510 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
23511 * include/grub/sparc64/libgcc.h: Likewise.
23512 * include/grub/sparc64/setjmp.h: Likewise.
23513 * include/grub/sparc64/types.h: Likewise.
23514 * include/grub/sparc64/ieee1275/console.h: Likewise.
23515 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
23516 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23517 * include/grub/sparc64/ieee1275/time.h: Likewise.
23518 * include/grub/util/biosdisk.h: Likewise.
23519 * include/grub/util/getroot.h: Likewise.
23520 * include/grub/util/lvm.h: Likewise.
23521 * include/grub/util/misc.h: Likewise.
23522 * include/grub/util/raid.h: Likewise.
23523 * include/grub/util/resolve.h: Likewise.
23524 * io/gzio.c: Likewise.
23525 * kern/device.c: Likewise.
23526 * kern/disk.c: Likewise.
23527 * kern/dl.c: Likewise.
23528 * kern/elf.c: Likewise.
23529 * kern/env.c: Likewise.
23530 * kern/err.c: Likewise.
23531 * kern/file.c: Likewise.
23532 * kern/fs.c: Likewise.
23533 * kern/loader.c: Likewise.
23534 * kern/main.c: Likewise.
23535 * kern/misc.c: Likewise.
23536 * kern/mm.c: Likewise.
23537 * kern/parser.c: Likewise.
23538 * kern/partition.c: Likewise.
23539 * kern/rescue.c: Likewise.
23540 * kern/term.c: Likewise.
23541 * kern/efi/efi.c: Likewise.
23542 * kern/efi/init.c: Likewise.
23543 * kern/efi/mm.c: Likewise.
23544 * kern/i386/dl.c: Likewise.
23545 * kern/i386/efi/init.c: Likewise.
23546 * kern/i386/efi/startup.S: Likewise.
23547 * kern/i386/pc/init.c: Likewise.
23548 * kern/i386/pc/lzo1x.S: Likewise.
23549 * kern/i386/pc/startup.S: Likewise.
23550 * kern/ieee1275/ieee1275.c: Likewise.
23551 * kern/powerpc/cache.S: Likewise.
23552 * kern/powerpc/dl.c: Likewise.
23553 * kern/powerpc/ieee1275/cmain.c: Likewise.
23554 * kern/powerpc/ieee1275/crt0.S: Likewise.
23555 * kern/powerpc/ieee1275/init.c: Likewise.
23556 * kern/powerpc/ieee1275/openfw.c: Likewise.
23557 * kern/sparc64/cache.S: Likewise.
23558 * kern/sparc64/dl.c: Likewise.
23559 * kern/sparc64/ieee1275/init.c: Likewise.
23560 * kern/sparc64/ieee1275/openfw.c: Likewise.
23561 * loader/efi/chainloader.c: Likewise.
23562 * loader/efi/chainloader_normal.c: Likewise.
23563 * loader/i386/efi/linux.c: Likewise.
23564 * loader/i386/efi/linux_normal.c: Likewise.
23565 * loader/i386/pc/chainloader.c: Likewise.
23566 * loader/i386/pc/chainloader_normal.c: Likewise.
23567 * loader/i386/pc/linux.c: Likewise.
23568 * loader/i386/pc/linux_normal.c: Likewise.
23569 * loader/i386/pc/multiboot.c: Likewise.
23570 * loader/i386/pc/multiboot_normal.c: Likewise.
23571 * loader/powerpc/ieee1275/linux.c: Likewise.
23572 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
23573 * normal/arg.c: Likewise.
23574 * normal/cmdline.c: Likewise.
23575 * normal/command.c: Likewise.
23576 * normal/completion.c: Likewise.
23577 * normal/execute.c: Likewise.
23578 * normal/function.c: Likewise.
23579 * normal/lexer.c: Likewise.
23580 * normal/main.c: Likewise.
23581 * normal/menu.c: Likewise.
23582 * normal/menu_entry.c: Likewise.
23583 * normal/misc.c: Likewise.
23584 * normal/parser.y: Likewise.
23585 * normal/script.c: Likewise.
23586 * normal/i386/setjmp.S: Likewise.
23587 * normal/powerpc/setjmp.S: Likewise.
23588 * normal/sparc64/setjmp.S: Likewise.
23589 * partmap/acorn.c: Likewise.
23590 * partmap/amiga.c: Likewise.
23591 * partmap/apple.c: Likewise.
23592 * partmap/gpt.c: Likewise.
23593 * partmap/pc.c: Likewise.
23594 * partmap/sun.c: Likewise.
23595 * term/gfxterm.c: Likewise.
23596 * term/terminfo.c: Likewise.
23597 * term/efi/console.c: Likewise.
23598 * term/i386/pc/console.c: Likewise.
23599 * term/i386/pc/serial.c: Likewise.
23600 * term/i386/pc/vesafb.c: Likewise.
23601 * term/i386/pc/vga.c: Likewise.
23602 * term/ieee1275/ofconsole.c: Likewise.
23603 * util/biosdisk.c: Likewise.
23604 * util/console.c: Likewise.
23605 * util/genmoddep.c: Likewise.
23606 * util/getroot.c: Likewise.
23607 * util/grub-emu.c: Likewise.
23608 * util/grub-mkdevicemap.c: Likewise.
23609 * util/grub-probe.c: Likewise.
23610 * util/lvm.c: Likewise.
23611 * util/misc.c: Likewise.
23612 * util/raid.c: Likewise.
23613 * util/resolve.c: Likewise.
23614 * util/update-grub.in: Likewise.
23615 * util/update-grub_lib.in: Likewise.
23616 * util/grub.d/00_header.in: Likewise.
23617 * util/grub.d/10_hurd.in: Likewise.
23618 * util/grub.d/10_linux.in: Likewise.
23619 * util/i386/efi/grub-install.in: Likewise.
23620 * util/i386/efi/grub-mkimage.c: Likewise.
23621 * util/i386/pc/grub-install.in: Likewise.
23622 * util/i386/pc/grub-mkimage.c: Likewise.
23623 * util/i386/pc/grub-mkrescue.in: Likewise.
23624 * util/i386/pc/grub-setup.c: Likewise.
23625 * util/i386/pc/misc.c: Likewise.
23626 * util/powerpc/ieee1275/grub-install.in: Likewise.
23627 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
23628 * util/powerpc/ieee1275/misc.c: Likewise.
23629 * video/bitmap.c: Likewise.
23630 * video/video.c: Likewise.
23631 * video/i386/pc/vbe.c: Likewise.
23632 * video/i386/pc/vbeblit.c: Likewise.
23633 * video/i386/pc/vbefill.c: Likewise.
23634 * video/i386/pc/vbeutil.c: Likewise.
23635 * video/readers/tga.c: Likewise.
23637 2007-07-02 Robert Millan <rmh@aybabtu.com>
23639 * conf/i386-efi.rmk: Replace obsolete reference to
23640 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
23641 with util/getroot.c.
23642 * conf/powerpc-ieee1275.rmk: Likewise.
23643 * conf/sparc64-ieee1275.rmk: Likewise.
23645 * util/grub-emu.c (main): Fix unchecked pointer handling.
23647 2007-07-02 Robert Millan <rmh@aybabtu.com>
23649 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
23650 invocation to fail, in order to support partition-less media.
23652 * util/i386/pc/grub-install.in: Likewise.
23654 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
23655 which fs or partmap modules are needed (akin to its sister scripts).
23657 Also use grub-probe to get rid of unportable /proc/mounts check.
23659 Print the same informational message that the other scripts do, before
23662 2007-06-23 Robert Millan <rmh@aybabtu.com>
23664 * util/update-grub_lib.in (font_path): New function. Determine whether
23665 a font file can be found and, if so, echo the GRUB path to it.
23667 * util/update-grub.in: Handle multiple terminals depending on user
23668 input, platform availability and font file presence. Propagate
23669 variables of our findings to /etc/grub.d/ children.
23671 * util/grub.d/00_header.in: Handle multiple terminals, based on
23672 environment setup by update-grub.
23674 2007-06-23 Robert Millan <rmh@aybabtu.com>
23676 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
23678 2007-06-21 Robert Millan <rmh@aybabtu.com>
23680 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
23681 indicate end of data section in kernel image.
23682 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
23683 GRUB_KERNEL_MACHINE_DATA_END.
23685 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
23687 * kern/i386/efi/startup.S: Likewise.
23689 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
23690 during image generation. Implement --prefix option to override this
23692 * util/i386/efi/grub-mkimage.c: Likewise.
23694 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
23695 code to make path relative to its root into a separate function.
23697 * util/i386/pc/grub-install.in: Use newly provided
23698 make_system_path_relative_to_its_root() to convert ${grubdir}, then
23699 pass the result to grub-install --prefix.
23701 2007-06-13 Robert Millan <rmh@aybabtu.com>
23703 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
23704 DEFAULT_DEVICE_MAP.
23705 * util/grub-emu.c: Use above definitions from misc.h instead of
23707 * util/grub-mkdevicemap.c: Likewise.
23708 * util/i386/pc/grub-setup.c: Likewise.
23709 * util/grub-probe.c: Likewise.
23710 (probe): Abort with grub_util_error() when either
23711 grub_guess_root_device or grub_util_get_grub_dev fails.
23713 2007-06-12 Robert Millan <rmh@aybabtu.com>
23715 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
23716 "pager" assignment.
23717 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
23719 * util/grub-probe.c (probe): Likewise for "drive_name".
23721 2007-06-11 Robert Millan <rmh@aybabtu.com>
23723 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
23724 not just the cdrom one.
23726 2007-06-11 Robert Millan <rmh@aybabtu.com>
23728 * util/i386/pc/grub-mkrescue.in: Add "set -e".
23729 Add --pkglibdir=DIR option to override pkglibdir.
23730 Mention --image-type=TYPE in help output.
23731 Fix --grub-mkimage (it was a no-op).
23732 Abort gracefully when no parameter is given.
23734 2007-06-11 Robert Millan <rmh@aybabtu.com>
23736 * util/i386/pc/grub-mkrescue.in: New file.
23737 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
23738 * Makefile.in: Handle bin_SCRIPTS.
23740 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
23742 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
23743 list of video modes.
23745 2007-06-06 Robert Millan <rmh@aybabtu.com>
23747 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
23748 file doesn't exist, or if it is in a filesystem grub can't read.
23750 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
23751 not abort if GRUB_DRIVE could not be defined. Rearrange generated
23752 header comment to fit in 80 columns when the variables are resolved.
23754 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
23755 could be identified by update-grub. Remove redundant check for
23756 unifont.pff existence (since convert_system_path_to_grub_path now
23759 2007-06-04 Robert Millan <rmh@aybabtu.com>
23761 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
23763 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
23765 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
23767 2007-06-04 Robert Millan <rmh@aybabtu.com>
23769 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
23771 * include/grub/partition.h: Declare grub_apple_partition_map_init and
23772 grub_apple_partition_map_fini.
23775 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
23776 to access >2 TiB disks).
23778 Print disk->total_sectors with %llu instead of %lu, since this
23779 variable is always 64-bit (prevents wrong disk size from being displayed
23780 on either >2 TiB disk or big-endian CPU).
23782 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
23783 into a generic case that supports all (sane) partition maps.
23785 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
23788 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
23789 and grub_apple_partition_map_fini() after that.
23791 2007-06-01 Robert Millan <rmh@aybabtu.com>
23793 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
23795 * util/grub.d/00_header.in: Only enable gfxterm when
23796 convert_system_path_to_grub_path() succeeds.
23798 2007-05-20 Robert Millan <rmh@aybabtu.com>
23800 * util/update-grub_lib.in: New file.
23801 * DISTLIST: Add update-grub_lib.in.
23802 * conf/common.rmk: Generate update-grub_lib and install it in
23804 * Makefile.in: Add install routine for $(lib_DATA).
23806 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
23807 function provided by update-grub_lib to support arbitrary paths of
23809 * util/update-grub.in: Use convert_system_path_to_grub_path() to
23810 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
23812 2007-05-19 Robert Millan <rmh@aybabtu.com>
23814 * commands/i386/cpuid.c: New module.
23815 * DISTLIST: Add it.
23816 * conf/i386-efi.rmk: Enable cpuid.mod.
23817 * conf/i386-pc.rmk: Likewise.
23819 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
23821 * kern/disk.c (grub_disk_read): Check return value of
23824 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
23826 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
23828 * disk/raid.c (grub_raid_open): Likewise.
23830 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
23832 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
23833 stack instead of on the heap.
23835 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
23836 before doing a read on it.
23838 * configure.ac: Only use -fno-stack-protector for the target
23841 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
23843 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
23844 __attribute_ ((unused)) to mode_type argument.
23846 * util/getroot.c (grub_guess_root_device): Fix #endif.
23848 * kern/misc.c (memcmp): Fix prototype.
23850 * include/grub/partition.h [GRUB_UTIL]
23851 (grub_gpt_partition_map_init): Add prototype.
23852 (grub_gpt_partition_map_fini): Likewise.
23854 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
23855 at the right place.
23857 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
23858 (grub_fat_read_data): Likewise.
23859 (grub_fat_find_dir): Likewise.
23861 * font/manager.c (find_glyph): Make table a const.
23862 (grub_font_get_glyph): Remove bitmap from if statement.
23864 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
23866 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
23867 code, first search for device in /dev/mapper, then in /dev.
23868 (grub_util_get_grub_dev): New function.
23869 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
23871 * util/grub-probe.c (probe): Remove check for RAID, call
23872 grub_util_get_grub_dev() instead of
23873 grub_util_biosdisk_get_grub_dev().
23874 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
23875 grub_util_biosdisk_get_grub_dev().
23876 * util/i386/pc/grub-setup.c (main): Likewise.
23878 2007-05-16 Robert Millan <rmh@aybabtu.com>
23880 * DISTLIST: Update for the latest changes.
23881 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
23882 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
23883 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
23884 grub/util/biosdisk.h.
23885 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
23886 grub/util/biosdisk.h.
23888 2007-05-16 Robert Millan <rmh@aybabtu.com>
23890 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
23892 2007-05-16 Robert Millan <rmh@aybabtu.com>
23894 * util/i386/efi/grub-install.in: New.
23895 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
23896 newly added grub-install.
23897 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
23899 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
23900 grub/util/biosdisk.h.
23901 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
23902 grub/util/biosdisk.h.
23904 2007-05-16 Robert Millan <rmh@aybabtu.com>
23906 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
23907 * include/grub/util/biosdisk.h: ... here.
23908 * util/i386/pc/biosdisk.c: Moved to ...
23909 * util/biosdisk.c: ... here.
23910 * util/i386/pc/getroot.c: Moved to ...
23911 * util/getroot.c: ... here.
23912 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
23913 * util/grub-mkdevicemap.c: ... here.
23914 * util/i386/pc/grub-probe.c: Moved to ...
23915 * util/grub-probe.c: ... here.
23917 2007-05-15 Robert Millan <rmh@aybabtu.com>
23919 * util/update-grub.in: Remove duplicated line in grub.cfg header
23922 2007-05-13 Robert Millan <rmh@aybabtu.com>
23924 * util/update-grub.in: Fix a few assumptions about the devices holding
23925 /, /boot and /boot/grub being the same.
23926 * util/grub.d/00_header.in: Likewise.
23927 * util/grub.d/10_hurd.in: Likewise.
23928 * util/grub.d/10_linux.in: Likewise.
23930 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
23931 patterns. Use that to define the `.old' suffix as older than `'.
23933 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
23935 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
23936 the grub.cfg header message.
23938 2007-05-11 Robert Millan <rmh@aybabtu.com>
23940 * util/update-grub.in: Create device.map if it doesn't already exist,
23941 before attempting to run grub-probe.
23942 Check for grub-probe and grub-mkdevicemap with the same code
23943 grub-install is using.
23946 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
23948 * Makefile.in: Add the datarootdir autoconf variable.
23950 2007-05-09 Robert Millan <rmh@aybabtu.com>
23952 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
23953 fail gracefully if dev->disk->partition == NULL.
23955 2007-05-07 Robert Millan <rmh@aybabtu.com>
23957 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
23958 determine partition map module.
23959 * util/i386/pc/grub-install.in: Use this feature to decide which
23960 partition module to load, instead of hardcoding pc and gpt.
23962 2007-05-07 Robert Millan <rmh@aybabtu.com>
23964 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
23965 source directory differs from build directory.
23967 2007-05-05 Robert Millan <rmh@aybabtu.com>
23969 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
23972 2007-05-05 Robert Millan <rmh@aybabtu.com>
23974 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
23976 2007-05-05 Robert Millan <rmh@aybabtu.com>
23978 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
23979 command-line arguments via ${GRUB_CMDLINE_LINUX}.
23981 2007-05-05 Robert Millan <rmh@aybabtu.com>
23983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
23984 (grub_probe_SOURCES): Likewise.
23985 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
23986 GPT and initialize dos_part and bsd_part accordingly.
23987 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
23989 (main): Activate gpt module for use during partition identification,
23990 and deactivate it afterwards.
23991 * util/i386/pc/grub-install.in: Add gpt module to core.img.
23992 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
23993 partition identification, and deactivate it afterwards.
23995 2007-05-05 Robert Millan <rmh@aybabtu.com>
23997 * term/i386/pc/console.c (grub_console_fini): Call
23998 grub_term_set_current() before grub_term_unregister().
24000 2007-05-04 Robert Millan <rmh@aybabtu.com>
24002 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
24003 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
24004 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
24005 and update-grub_DATA.
24006 * conf/common.rmk: Build and install update-grub components.
24007 * conf/common.mk: Regenerate.
24008 * util/update-grub.in: New. Core of update-grub.
24009 * util/grub.d/00_header.in: New. Generates grub.cfg header.
24010 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
24011 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
24012 * util/grub.d/README: New. Document grub.d directory layout.
24014 2007-05-01 Robert Millan <rmh@aybabtu.com>
24016 * util/grub-emu.c: Move initialization functions
24017 grub_util_biosdisk_init() and grub_init_all() before
24018 grub_util_biosdisk_get_grub_dev(), which relies on them.
24020 2007-04-19 Robert Millan <rmh@aybabtu.com>
24022 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
24025 2007-04-18 Jerone Young <jerone@gmail.com>
24027 * kernel/elf.c: Add missing parenthesis for conditional statement
24030 2007-04-10 Jerone Young <jerone@gmail.com>
24032 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
24033 continue on and look for device node with real device name.
24035 2007-04-10 Jerone Young <jerone@gmail.com>
24037 * configure.ac: Add argument for autoconf to use transformation
24039 * Makefile.in: Add autoconf package transformation code.
24040 * util/i386/pc/grub-install.in: Likewise.
24041 * util/powerpc/ieee1275/grub-install.in: Likewise.
24043 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
24045 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
24046 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
24047 (EXT2_REVISION): Likewise.
24048 (EXT2_INODE_SIZE): Likewise.
24049 (struct grub_ext2_block_group): Added a missing member
24051 (grub_ext2_read_inode): Divide by the inode size in a superblock
24052 instead of 128 to obtain INODES_PER_BLOCK.
24053 Use the macro EXT2_INODE_SIZE instead of directly using
24054 SBLOCK->INODE_SIZE.
24056 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
24058 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
24059 superblock instead of the structure size to compute an
24060 offset. This fixes the problem that GRUB could not read a
24061 filesystem when inode size is different from 128-byte.
24063 2007-03-05 Marco Gerards <marco@gnu.org>
24065 * normal/main.c (read_config_file): When "menu" is not set, create
24066 an initial context.
24068 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
24070 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
24071 (HEAP_LIMIT): New macro.
24072 (grub_claim_heap): Claim memory up to `heaplimit'.
24074 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
24076 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
24077 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
24078 (_start): Likewise.
24079 (grub_arch_modules_addr): Return address after `_end'.
24080 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
24081 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
24082 (add_segments): Calculate `_end' from phdr size and location.
24083 (ALIGN_UP): Moved to ...
24084 * include/grub/misc.h: here.
24085 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
24087 (GRUB_IEEE1275_MODULE_BASE): Removed.
24089 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
24091 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
24094 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
24096 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
24098 (grub_elf64_load_hook_t): Likewise.
24099 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
24102 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
24104 * kern/mm.c: Update copyright.
24105 (grub_mm_debug): Correct syntax error.
24106 (grub_mm_dump_free): New function.
24107 (grub_debug_free): Call `grub_free'.
24108 * include/grub/mm.h: Update copyright.
24109 (grub_mm_dump_free): Add declaration.
24111 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
24113 * include/grub/ieee1275/ieee1275.h: Update copyright.
24114 * kern/powerpc/ieee1275/init.c: Likewise.
24115 * kern/powerpc/ieee1275/openfw.c: Likewise.
24117 * loader/powerpc/ieee1275/linux.c: Likewise.
24118 * include/grub/elfload.h: Likewise.
24119 * kern/elf.c: Likewise.
24120 (grub_elf32_load): Pass `base' and `size' parameters. Update all
24122 (grub_elf64_load): Likewise.
24123 (grub_elf32_load_segment): Move to a nested function.
24124 (grub_elf64_load_segment): Likewise.
24126 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
24128 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
24130 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
24131 (grub_heap_len): Likewise.
24132 (HEAP_SIZE): New macro.
24133 (grub_claim_heap): New function.
24134 (grub_machine_init): Don't claim heap directly. Call
24136 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
24137 (grub_available_iterate): New function.
24139 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
24141 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
24142 * configure.ac: Use it for testing the HOST and TARGET compilers.
24144 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
24146 * Makefile.in (enable_grub_emu): New variable.
24147 * configure.ac (--enable-grub-emu): New option.
24148 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
24149 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
24150 * conf/i386-pc.rmk: Likewise.
24151 * conf/powerpc-ieee1275.rmk: Likewise.
24152 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
24154 2006-12-12 Marco Gerards <marco@gnu.org>
24156 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
24158 * kern/env.c (grub_env_unset): Don't free the member `value' when
24159 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
24162 * normal/main.c (current_menu): Removed.
24163 (free_menu): Unset the `menu' environment variable.
24164 (grub_normal_menu_addentry): Make use of the environment variable
24165 `menu', instead of using the global `current_menu'. Allocate
24166 memory for the sourcecode of this entry.
24167 (read_config_file): New argument `nested', changed all callers.
24168 Only in the case of a new context, initialize a new menu. Set the
24169 `menu' environment variable.
24170 (grub_normal_execute): Don't set and unset the environment
24171 variable `menu' here anymore. Only free the menu when leaving the
24174 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
24177 2006-12-11 Marco Gerards <marco@gnu.org>
24179 * normal/menu_entry.c (run): Fix off by one bug so the last line
24180 is executed. Move the loader check to outside the loop.
24182 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
24184 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
24186 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
24188 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
24189 the number of sectors. Reported by Andrey Shuvikov
24190 <mr_hyro@yahoo.com>.
24192 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
24194 * kern/disk.c (grub_disk_read): When there is a read error, always
24195 try to read only the necessary data.
24197 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
24199 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
24201 [GRUB_UTIL] (grub_raid_fini): Likewise.
24202 [GRUB_UTIL] (grub_lvm_init): Likewise.
24203 [GRUB_UTIL] (grub_lvm_fini): Likewise.
24204 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
24205 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
24206 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
24207 and grub_raid_fini().
24209 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
24211 * include/grub/types.h (__unused): Rename to UNUSED.
24212 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
24213 (grub_elf64_size): Likewise.
24215 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
24217 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
24218 grub_error_push and grub_error_pop in the error-handling path.
24219 (grub_elf32_load_segment): Only call grub_file_read with non-zero
24222 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
24224 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
24225 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24227 (kernel_elf_SOURCES): Likewise.
24228 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
24229 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
24230 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
24231 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
24232 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
24233 (elf_mod_SOURCES): New variable.
24234 (elf_mod_CFLAGS): Likewise.
24235 (elf_mod_LDFLAGS): Likewise.
24236 * include/grub/types.h (__unused): New macro.
24237 * include/grub/elfload.h: New file.
24238 * kern/elf.c: Likewise.
24239 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
24240 (ELF32_LOADMASK): New macro.
24241 (ELF64_LOADMASK): Likewise.
24242 (vmlinux): Removed.
24243 (grub_linux_load32): New function.
24244 (grub_linux_load64): Likewise.
24245 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
24246 Use grub_elf_t instead of grub_file_t.
24248 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
24250 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
24251 `catch_result' to struct set_color_args.
24253 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24255 * normal/menu.c: Include grub/script.h.
24256 * normal/menu_entry.c: Likewise.
24257 * include/grub/normal.h: Do not include grub/script.h.
24259 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
24261 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
24263 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
24265 * kern/disk.c (grub_disk_open): Print debug messages when opening a
24267 (grub_disk_close): Print debug messages when closing a disk.
24268 (grub_disk_read): Print debug messages when disk read fails.
24269 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
24271 * kern/partition.c: Include misc.h.
24272 (grub_partition_iterate): Print debug messages when detecting
24275 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
24277 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
24279 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
24281 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
24283 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
24284 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
24286 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
24288 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
24289 instead of sizeof(lv). Patch by Michael Guntsche.
24291 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
24293 * disk/lvm.c: Rename VGS to VG_LIST.
24294 (grub_lvm_iterate): Change VGS->LV to VG-LV.
24295 (grub_lvm_open): Likewise.
24296 Thanks to Michael Guntsche for finding this bug.
24298 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24300 * configure.ac (AC_INIT): Bumped to 1.95.
24302 2006-10-14 Robert Millan <rmh@aybabtu.com>
24304 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
24305 with "/dev/.static/dev/md".
24307 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
24309 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
24310 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
24311 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
24312 DRIVE_NAME are always freed.
24314 * util/i386/pc/biosdisk.c (make_device_name): Add one into
24315 DOS_PART, as a DOS partition is counted from one instead of zero
24316 now. Reported by Robert Millan.
24318 2006-10-14 Robert Millan <rmh@aybabtu.com>
24320 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
24321 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
24322 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
24323 string returned by grub_guess_root_device.
24324 * util/i386/pc/grub-setup.c: Likewise.
24325 * util/i386/pc/grub-probefs.c: Likewise.
24327 * util/i386/pc/grub-probefs.c: Rename to ...
24328 * util/i386/pc/grub-probe.c: ... this.
24329 * DISTLIST: Remove grub-probefs, add grub-probe.
24330 * conf/i386-efi.rmk: Likewise.
24331 * conf/i386-pc.rmk: Likewise.
24332 * util/i386/pc/grub-install.in: Likewise.
24334 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
24335 choose which information we want to print.
24337 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
24339 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
24340 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
24341 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
24342 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
24343 video/readers/tga.c and video/i386/pc/vbeutil.c.
24345 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
24347 Added support for RAID and LVM.
24349 * disk/lvm.c: New file.
24350 * disk/raid.c: Likewise.
24351 * include/grub/lvm.h: Likewise.
24352 * include/grub/raid.h: Likewise.
24353 * include/grub/util/lvm.h: Likewise.
24354 * include/grub/util/raid.h: Likewise.
24355 * util/lvm.c: Likewise.
24356 * util/raid.c: Likewise.
24358 * include/grub/disk.h (grub_disk_dev_id): Add
24359 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
24360 (grub_disk_get_size): New prototype.
24361 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
24362 returns a partition.
24363 (grub_disk_get_size): New function.
24365 * kern/i386/pc/init.c (make_install_device): Copy the prefix
24366 verbatim if grub_install_dos_part is -2.
24368 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
24371 * util/i386/pc/grub-setup.c (setup): New argument
24372 MUST_EMBED. Force embedding of GRUB when the argument is
24373 true. Close FILE before returning.
24374 (main): Add support for RAID and LVM.
24376 * conf/common.rmk: Add RAID and LVM modules.
24377 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
24379 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
24381 * kern/misc.c (grub_strstr): New function.
24382 * include/grub/misc.h (grub_strstr): New prototype.
24384 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
24386 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
24388 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
24390 * kern/misc.c (grub_strtoull): Guess the base only if not
24393 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
24395 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
24398 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
24400 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
24402 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
24403 Remove `flags' argument. All callers changed.
24404 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
24405 (IEEE1275_IHANDLE_INVALID): New variable.
24406 (IEEE1275_CELL_INVALID): New variable.
24407 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
24408 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
24409 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
24410 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
24411 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
24412 codes from Open Firmware. All callers updated.
24413 (grub_ieee1275_next_property): Directly return Open Firmware return
24415 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
24416 Standardize error checking from `grub_ieee1275_get_property'.
24417 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
24418 `devalias' to `aliases'. Correct comments. Consolidate error paths.
24420 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
24422 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
24423 `instance_to_package_args' to `instance_to_path_args'.
24425 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
24426 `grub_ieee1275_chosen'.
24428 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
24429 `grub_ieee1275_interpret'.
24431 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
24433 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
24435 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
24437 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
24438 (__cmpdi): Likewise.
24440 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
24441 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
24444 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
24446 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
24447 to type `grub_ssize_t'.
24448 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
24450 2006-09-22 Marco Gerards <marco@gnu.org>
24452 * normal/script.c (grub_script_create_cmdmenu): Skip leading
24455 2006-09-22 Marco Gerards <marco@gnu.org>
24457 * commands/echo.c: New file.
24459 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
24461 * conf/common.rmk (echo_mod_SOURCES): New variable.
24462 (echo_mod_CFLAGS): Likewise.
24463 (echo_mod_LDFLAGS): Likewise.
24465 2006-09-22 Marco Gerards <marco@gnu.org>
24467 * normal/main.c (get_line): Malloc memory instead of using
24468 preallocated memory. Removed the arguments `cmdline' and
24469 `max_len'. Updated all callers.
24471 2006-09-22 Marco Gerards <marco@gnu.org>
24473 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
24474 (normal_mod_DEPENDENCIES): Likewise.
24476 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
24477 (normal_mod_DEPENDENCIES): Likewise.
24479 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
24481 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
24483 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
24485 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
24486 (normal_mod_DEPENDENCIES): Likewise.
24487 * conf/i386-pc.mk: Regenerate.
24488 * conf/i386-efi.mk: Likewise
24489 * conf/common.mk: Likewise.
24490 * conf/powerpc-ieee1275.mk: Likewise.
24491 * conf/sparc64-ieee1275.mk: Likewise.
24493 2006-09-22 Robert Millan <rmh@aybabtu.com>
24495 Sync with i386 version.
24496 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
24497 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
24499 2006-09-21 Robert Millan <rmh@aybabtu.com>
24501 Import from GRUB Legacy (lib/device.c):
24502 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
24503 (init_device_map) [__linux__]: Add support for I2O devices.
24505 2006-09-14 Marco Gerards <marco@gnu.org>
24507 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
24510 2006-09-14 Robert Millan <rmh@aybabtu.com>
24512 * util/i386/pc/grub-install.in: Skip menu.lst when removing
24515 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
24517 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
24518 before adding it to device.map.
24520 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
24522 * genmk.rb: Let GCC generate dependencies the first time it
24523 compiles a file; using the -MD option.
24524 * conf/common.mk: Regenerate.
24525 * conf/i386-pc.mk: Likewise.
24526 * conf/i386-efi.mk: Likewise.
24527 * conf/powerpc-ieee1275.mk: Likewise.
24528 * conf/sparc64-ieee1275.mk: Likewise.
24530 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
24532 Move the prototypes of grub_setjmp and grub_longjmp to
24533 cpu/setjmp.h, so that each architecture may specify different
24536 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
24537 (grub_longjmp): Likewise.
24538 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
24539 (grub_longjmp): Likewise.
24540 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
24541 (grub_longjmp): Likewise.
24543 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
24544 [!GRUB_UTIL] (grub_longjmp): Removed.
24546 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
24548 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
24549 "color!" method does not return any value.
24551 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
24553 * include/grub/bitmap.h: New file.
24555 * include/grub/i386/pc/vbeutil.h: Likewise.
24557 * video/bitmap.c: Likewise.
24559 * video/readers/tga.c: Likewise.
24561 * video/i386/pc/vbeutil.c: Likewise.
24563 * commands/videotest.c: Code cleanup and updated to reflect to new
24566 * term/gfxterm.c: Likewise.
24568 * video/video.c: Likewise.
24570 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
24571 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
24572 (bitmap_mod_SOURCES): New entry.
24573 (bitmap_mod_CFLAGS): Likewise.
24574 (bitmap_mod_LDFLAGS): Likewise.
24575 (tga_mod_SOURCES): Likewise.
24576 (tga_mod_CFLAGS): Likewise.
24577 (tga_mod_LDFLAGS): Likewise.
24579 * include/grub/video.h (grub_video_blit_operators): New enum type.
24580 (grub_video_render_target): Changed as forward declaration and moved
24581 actual definition to be video driver specific.
24582 (grub_video_adapter.blit_bitmap): Added blitting operator.
24583 (grub_video_adapter.blit_render_target): Likewise.
24584 (grub_video_blit_bitmap): Likewise.
24585 (grub_video_blit_render_target): Likewise.
24587 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
24588 driver specific render target definition.
24589 (grub_video_vbe_map_rgba): Added driver internal helper.
24590 (grub_video_vbe_unmap_color): Updated to use
24591 grub_video_i386_vbeblit_info.
24592 (grub_video_vbe_get_video_ptr): Likewise.
24594 * include/grub/i386/pc/vbeblit.h
24595 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
24596 grub_video_i386_vbeblit_info.
24597 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
24598 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
24599 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
24600 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
24601 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
24602 (grub_video_i386_vbeblit_index_index): Likewise.
24603 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
24604 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
24605 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
24606 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
24608 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
24611 * video/i386/pc/vbeblit.c: Updated to reflect changes on
24612 include/grub/i386/pc/vbeblit.h.
24614 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
24615 Updated to use grub_video_i386_vbeblit_info.
24616 (grub_video_i386_vbefill_R8G8B8): Likewise.
24617 (grub_video_i386_vbefill_index): Likewise.
24618 (grub_video_i386_vbefill): Added generic filler.
24620 * video/i386/pc/vbefill.c: Updated to reflect changes on
24621 include/grub/i386/pc/vbefill.h.
24623 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
24624 grub_video_i386_vbeblit_info.
24625 (grub_video_vbe_unmap_color): Likewise.
24626 (grub_video_vbe_blit_glyph): Likewise.
24627 (grub_video_vbe_scroll): Likewise.
24628 (grub_video_vbe_draw_pixel): Removed function.
24629 (grub_video_vbe_get_pixel): Likewise.
24630 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
24631 updated code to use it.
24632 (common_blitter): Added common blitter for render target and bitmap.
24633 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
24634 (grub_video_vbe_blit_render_target): Likewise.
24636 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
24638 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
24639 is in text mode if there is no console control protocol instance
24642 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
24644 * include/grub/video.h: Code cleanup.
24646 * include/grub/i386/pc/vbe.h: Likewise.
24648 * video/i386/pc/vbe.c: Likewise.
24650 * video/i386/pc/vbeblit.c: Likewise.
24652 * video/i386/pc/vbefill.c: Likewise.
24654 * video/video.c: Likewise. Also added more comments.
24656 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
24658 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
24659 (struct grub_biosdisk_dap): Likewise.
24661 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
24662 linkage settings for all functions.
24664 2006-07-12 Marco Gerards <marco@gnu.org>
24666 * configure.ac (--enable-mm-debug): Fix typo.
24668 * genkernsyms.sh.in: Use proper quoting for `CC'.
24670 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
24672 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
24673 (normal_mod_ASFLAGS): Remove "-m32".
24675 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
24677 * util/misc.c: Include config.h.
24678 [!HAVE_MEMALIGN]: Do not include malloc.h.
24679 (grub_memalign): Use posix_memalign, if present. Then, use
24680 memalign, if present. Otherwise, emit an error.
24682 * util/grub-emu.c: Do not include malloc.h.
24684 * include/grub/util/misc.h: Include unistd.h. This is required for
24685 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
24686 D. Eades III <hde@foobar-qux.org>.
24688 * configure.ac (AC_GNU_SOURCE): Added.
24689 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
24692 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
24694 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
24695 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
24697 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
24699 * include/grub/types.h (grub_host_addr_t): Rename to
24700 grub_target_addr_t.
24701 (grub_host_off_t): Rename to grub_target_off_t.
24702 (grub_host_size_t): Rename to grub_target_size_t.
24703 (grub_host_ssize_t): Rename to grub_target_ssize_t.
24704 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
24706 * include/grub/kernel.h (struct grub_module_header): Change type
24707 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
24708 (grub_module_info): Likewise.
24710 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
24712 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
24713 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
24714 Velazquez <jesus.velazquez@gmail.com>.
24716 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
24718 Count partitions from 1 instead of 0 in the string representation
24719 of partitions. Still use 0-based internally.
24721 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
24722 (sun_partition_map_iterate): Use grub_partition_t instead of
24723 struct grub_partition *. Cast DESC->START_CYLINDER to
24724 grub_uint64_t after converting the endian.
24725 (sun_partition_map_probe): Subtract 1 for PARTNUM.
24726 (sun_partition_map_get_name): Add 1 to P->INDEX.
24728 * partmap/pc.c (grub_partition_parse): Subtract 1 for
24730 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
24732 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
24733 zero instead of one.
24734 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
24735 (gpt_partition_map_get_name): Add 1 into P->INDEX.
24737 * partmap/apple.c (apple_partition_map_iterate): Change the type
24738 of POS to unsigned.
24739 (apple_partition_map_probe): Subtract 1 for PARTNUM.
24740 (apple_partition_map_get_name): Add 1 into P->INDEX.
24742 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
24743 of POS to unsigned.
24744 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
24745 calculate the offset of a partition.
24746 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
24747 (amiga_partition_map_get_name): Add 1 into P->INDEX.
24749 * partmap/acorn.c (acorn_partition_map_find): Change the type of
24750 SECTOR to grub_disk_addr_t.
24751 (acorn_partition_map_iterate): Likewise.
24752 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
24753 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
24755 (acorn_partition_map_get_name): Add 1 into P->INDEX.
24757 * kern/i386/pc/init.c (make_install_device): Add 1 into
24758 GRUB_INSTALL_DOS_PART.
24760 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
24763 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
24765 Clean up the code to support 64-bit addressing in disks and
24766 files. This change is not enough for filesystems yet.
24768 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
24769 type of "start" to grub_uint64_t.
24770 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
24771 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
24772 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
24775 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
24776 to grub_disk_addr_t.
24778 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
24781 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24783 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
24786 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
24788 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
24790 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
24792 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
24793 to grub_off_t, to detect an error from grub_file_seek.
24794 (grub_multiboot_load_elf32): Likewise.
24796 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
24797 maximum unsigned long value when an overflow is detected.
24798 (grub_strtoull): New function.
24799 (grub_divmod64): Likewise.
24800 (grub_lltoa): use grub_divmod64.
24802 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
24804 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
24805 the pointer to next character. Use grub_strtoull instead of
24807 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
24808 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
24811 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
24812 return value is signed.
24813 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
24814 test if OFFSET is less than zero, as OFFSET is unsigned now.
24816 * kern/disk.c (struct grub_disk_cache): Change the type of
24817 "sector" to grub_disk_addr_t.
24818 (grub_disk_cache_get_index): Change the type of SECTOR to
24819 grub_disk_addr_t. Calculate the hash with SECTOR casted to
24820 unsigned after shifting.
24821 (grub_disk_cache_invalidate): Change the type of SECTOR to
24823 (grub_disk_cache_unlock): Likewise.
24824 (grub_disk_cache_store): Likewise.
24825 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
24826 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
24827 grub_disk_addr_t and grub_uint64_t, respectively.
24828 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
24829 body, as the value of OFFSET is tweaked by
24830 grub_disk_check_range. Change the types of START_SECTOR, LEN and
24831 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
24833 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
24834 body, as the value of OFFSET is tweaked by
24835 grub_disk_check_range. Change the types of LEN and N to
24838 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
24839 and "saved_offset" to grub_off_t.
24840 (test_header): Cast BUF to char *.
24841 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
24843 (grub_gzio_read): Change the types of OFFSET and SIZE to
24844 grub_off_t and grub_size_t, respectively.
24846 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
24848 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
24849 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
24850 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
24851 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
24852 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
24854 * include/grub/types.h (grub_off_t): Unconditionally set to
24856 (grub_disk_addr_t): Changed to grub_uint64_t.
24858 * include/grub/partition.h (struct grub_partition): Change the
24859 types of "start", "len" and "offset" to grub_disk_addr_t,
24860 grub_uint64_t and grub_disk_addr_t, respectively.
24861 (grub_partition_get_start): Return grub_disk_addr_t.
24862 (grub_partition_get_len): Return grub_uint64_t.
24864 * include/grub/misc.h (grub_strtoull): New prototype.
24865 (grub_divmod64): Likewise.
24867 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
24868 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
24869 grub_off_t, respectively.
24870 All callers and references changed.
24872 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
24873 grub_size_t in "read".
24874 All callers and references changed.
24876 * include/grub/file.h (struct grub_file): Change the types of
24877 "offset" and "size" to grub_off_t and grub_off_t,
24878 respectively. Change the type of SECTOR to grub_disk_addr_t in
24880 (grub_file_read): Change the type of LEN to grub_size_t.
24881 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
24883 (grub_file_size): Return grub_off_t.
24884 (grub_file_tell): Likewise.
24885 All callers and references changed.
24887 * include/grub/disk.h (struct grub_disk_dev): Change the types of
24888 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
24890 (struct grub_disk): Change the type of "total_sectors" to
24891 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
24893 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
24894 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
24895 (grub_disk_write): Likewise.
24896 All callers and references changed.
24898 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
24899 char * for grub_strncmp to silence gcc.
24900 (grub_iso9660_mount): Likewise.
24901 (grub_iso9660_mount): Likewise.
24902 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
24904 (grub_iso9660_iterate_dir): Likewise.
24905 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
24907 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
24908 LEN to grub_disk_addr_t and grub_size_t, respectively.
24910 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
24912 * fs/jfs.c (grub_jfs_read_file): Likewise.
24914 * fs/minix.c (grub_jfs_read_file): Likewise.
24916 * fs/sfs.c (grub_jfs_read_file): Likewise.
24918 * fs/ufs.c (grub_jfs_read_file): Likewise.
24920 * fs/xfs.c (grub_jfs_read_file): Likewise.
24922 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
24923 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
24926 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
24927 BLKNR to -1 instead of returning GRUB_ERRNO.
24928 (grub_ext2_read_file): Change the types of SECTOR and
24929 LEN to grub_disk_addr_t and grub_size_t, respectively.
24931 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
24932 LEN to grub_disk_addr_t and grub_size_t, respectively.
24934 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
24937 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
24938 string. Do not cast SECTOR explicitly.
24940 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
24941 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
24942 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
24943 grub_disk_addr_t and grub_size_t, respectively. If the sector is
24944 over 2TB and LBA mode is not supported, raise an error.
24945 (get_safe_sectors): New function.
24946 (grub_biosdisk_read): Use get_safe_sectors.
24947 (grub_biosdisk_write): Likewise.
24949 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
24950 (grub_efidisk_write): Likewise.
24952 * disk/loopback.c (delete_loopback): Cosmetic changes.
24953 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
24955 (grub_loopback_open): Likewise.
24956 (grub_loopback_read): Likewise. Also, change the type of POS to
24957 grub_off_t, and fix the usage of grub_memset.
24959 * commands/i386/pc/play.c: Include grub/machine/time.h.
24961 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
24964 * commands/configfile.c: Include grub/env.h.
24966 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
24967 GRUB_ERRNO directly instead. Change the type of POS to
24968 grub_off_t. Follow the coding standard.
24970 * commands/blocklist.c: Include grub/partition.h.
24971 (grub_cmd_blocklist): Return an error if the underlying device is
24972 not a disk. Take the starting sector of a partition into account,
24973 if a partition is used.
24975 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
24977 (lba_mode): Support 64-bit addresses.
24978 (chs_mode): Likewise.
24979 (copy_buffer): Adapted to the new offsets of a length field and a
24981 (blocklist_default_start): Allocate 64-bit space.
24983 * boot/i386/pc/boot.S (force_lba): Removed.
24984 (boot_drive): Moved to under KERNEL_SECTOR.
24985 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
24987 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
24989 (lba_mode): Refactored to support a 64-bit address. More size
24991 (setup_sectors): Likewise.
24993 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
24995 * DISTLIST: Added include/grub/i386/linux.h. Removed
24996 include/grub/i386/pc/linux.h
24998 * configure.ac (AC_INIT): Bumped to 1.94.
25000 * config.guess: Updated from gnulib.
25001 * config.sub: Likewise.
25002 * install-sh: Likewise.
25003 * mkinstalldirs: Likewise.
25005 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
25007 * conf/common.rmk (grub_modules_init.lst): Depended on
25008 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
25011 * genmk.rb (PModule::rule): Reverted the previous change.
25013 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
25015 * conf/common.rmk (grub_modules_init.lst): Depends on
25016 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
25017 that the target does not exist before producing.
25018 (grub_modules_init.h): Remove the target before generating.
25019 (grub_emu_init.c): Likewise.
25021 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
25023 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
25025 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
25026 for the target-specific tests. Make sure that we also have the
25027 up-to-date target variables for those tests.
25029 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
25031 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
25032 (PModule::rule): Likewise.
25034 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
25036 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
25037 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
25038 target-specific flags should be prefixed.
25039 (PModule::rule): Likewise.
25041 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
25043 * configure.ac (CMP): Check if cmp is available explicitly.
25045 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
25047 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
25048 (target_cpu): New variable.
25049 (pkglibdir): Use target_cpu instead of host_cpu.
25051 * util/i386/pc/grub-install.in (host_cpu): Removed.
25052 (target_cpu): New variable.
25053 (pkglibdir): Use target_cpu instead of host_cpu.
25055 * util/genmoddep.c: Removed.
25057 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
25058 instead of GRUB_HOST_SIZEOF_VOID_P.
25059 * kern/dl.c: Likewise.
25061 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
25063 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
25064 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
25065 (GRUB_TARGET_SIZEOF_LONG): ... this.
25066 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
25067 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
25068 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
25070 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
25071 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
25072 (GRUB_TARGET_SIZEOF_LONG): ... this.
25073 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
25074 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
25075 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
25077 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
25078 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
25079 (GRUB_TARGET_SIZEOF_LONG): ... this.
25080 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
25081 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
25083 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
25084 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
25085 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
25086 instead of GRUB_HOST_SIZEOF_LONG.
25087 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
25088 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
25089 GRUB_CPU_WORDS_BIGENDIAN.
25090 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
25091 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
25094 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
25095 (genmoddep_SOURCES): Likewise.
25096 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
25097 (genmoddep_SOURCES): Likewise.
25098 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
25099 (genmoddep_SOURCES): Likewise.
25100 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
25102 (genmoddep_SOURCES): Likewise.
25104 * genmoddep.awk: New file.
25106 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
25107 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
25108 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
25109 (PModule::rule): Likewise.
25110 (Program::rule): Likewise.
25111 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
25112 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
25115 * configure.ac: Rewritten intensively to use host and target
25116 instead of build and host, respectively.
25118 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
25119 (host_cpu): Removed.
25120 (target_cpu): New variable.
25121 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
25122 (BUILD_CC): Removed.
25123 (BUILD_CFLAGS): Likewise.
25124 (BUILD_CPPFLAGS): Likewise.
25125 (TARGET_CC): New variable.
25126 (TARGET_CFLAGS): Likewise.
25127 (TARGET_CPPFLAGS): Likewise.
25128 (TARGET_LDFLAGS): Likewise.
25130 (include): Use target_cpu instead of host_cpu.
25131 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
25133 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
25135 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
25137 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
25138 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
25139 field 'false' to 'exec_on_false'.
25140 (grub_script_create_cmdif): Renamed argument names to reflect above
25143 * normal/execute.c (grub_script_execute_cmdif): Likewise.
25145 * normal/script.c (grub_script_create_cmdif): Likewise.
25147 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
25149 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
25151 (grub_hfsplus_btree_recptr): Likewise.
25152 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
25153 FILEBLOCK both to pass a block number and store next block
25155 (grub_hfsplus_read_block): Rewritten heavily to support an extent
25156 overflow file correctly. Specify errors appropriately, because
25157 fshelp expects that GRUB_ERRNO is set when fails. Reuse
25158 grub_hfsplus_btree_recptr to get the pointer to a found key.
25159 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
25162 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
25164 (_linux_mod_SOURCES): New variable.
25165 (_linux_mod_CFLAGS): Likewise.
25166 (_linux_mod_LDFLAGS): Likewise.
25167 (linux_mod_SOURCES): Likewise.
25168 (linux_mod_CFLAGS): Likewise.
25169 (linux_mod_LDFLAGS): Likewise.
25171 * DISTLIST: Added loader/i386/efi/linux.c,
25172 loader/i386/efi/linux_normal.c and
25173 include/grub/i386/efi/loader.h.
25175 * loader/i386/efi/linux.c: New file.
25176 * loader/i386/efi/linux_normal.c: Likewise.
25177 * include/grub/i386/efi/loader.h: Likewise.
25179 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
25181 * commands/blocklist.c: New file.
25183 * DISTLIST: Added commands/blocklist.c.
25185 * term/efi/console.c (grub_console_highlight_color): Use a lighter
25186 color for the background, and a darker color for the foreground.
25187 (grub_console_checkkey): Return READ_KEY.
25188 (grub_console_cls): Set the background to
25189 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
25191 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
25193 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
25194 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
25196 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
25199 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
25200 BG. The spec is wrong again.
25202 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
25204 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
25206 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25207 commands/blocklist.c.
25208 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25210 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
25211 (blocklist_mod_SOURCES): New variable.
25212 (blocklist_mod_CFLAGS): Likewise.
25213 (blocklist_mod_LDFLAGS): Likewise.
25215 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
25217 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
25219 (lba_mode): Use %eax more intensively to reduce the code size.
25221 2006-05-20 Marco Gerards <marco@gnu.org>
25223 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
25225 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
25227 (script): Accept leading newlines.
25228 (newlines): New rule to describe 0 or more newlines.
25229 (commands): Accept `command' with trailing newline. Fixed the
25230 order in which arguments were passed to `grub_script_add_cmd'.
25231 Accept commands separated by newlines.
25232 (function): Changed to accept newlines.
25233 (menuentry) Rewritten.
25235 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
25236 front of the list, instead of to the end.
25238 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
25240 * util/i386/pc/grub-install.in (bindir): New variable.
25241 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
25242 Shaver <lbgwjl@gmail.com>.
25244 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
25246 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
25247 grub/machine/linux.h
25248 * loader/i386/pc/linux.c: Likewise.
25250 * include/grub/i386/pc/linux.h: Moved to ...
25251 * include/grub/i386/linux.h: ... here.
25253 * include/grub/i386/linux.h (struct linux_kernel_params): New
25256 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
25258 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
25260 (grub_video_vbe_blit_glyph): Likewise.
25261 (grub_video_vbe_blit_bitmap): Likewise.
25262 (grub_video_vbe_blit_render_target): Likewise.
25264 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
25266 * configure.ac (--with-platform): Properly quote the square
25269 2006-05-08 Marco Gerards <marco@gnu.org>
25271 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
25273 (kernel_elf_HEADERS): ...to this. Updated all users.
25274 (grubof_symlist.c): Renamed from this...
25275 (kernel_elf_symlist.c): ...to this. Updated all users.
25276 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
25277 (grubof_SOURCES): Renamed from this...
25278 (kernel_elf_SOURCES): ...to this.
25279 (grubof_HEADERS): Renamed from this...
25280 (kernel_elf_HEADERS): ...to this.
25281 (grubof_CFLAGS): Renamed from this...
25282 (kernel_elf_CFLAGS): ...to this.
25283 (grubof_ASFLAGS): Renamed from this...
25284 (kernel_elf_ASFLAGS): ...to this.
25285 (grubof_LDFLAGS): Renamed from this...
25286 (kernel_elf_LDFLAGS): ...to this.
25288 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
25290 (kernel_elf_HEADERS): ...to this. Updated all users.
25291 (grubof_symlist.c): Renamed from this...
25292 (kernel_elf_symlist.c): ...to this. Updated all users.
25293 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
25294 (grubof_SOURCES): Renamed from this...
25295 (kernel_elf_SOURCES): ...to this.
25296 (grubof_HEADERS): Renamed from this...
25297 (kernel_elf_HEADERS): ...to this.
25298 (grubof_CFLAGS): Renamed from this...
25299 (kernel_elf_CFLAGS): ...to this.
25300 (grubof_ASFLAGS): Renamed from this...
25301 (kernel_elf_ASFLAGS): ...to this.
25302 (grubof_LDFLAGS): Renamed from this...
25303 (kernel_elf_LDFLAGS): ...to this.
25305 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
25306 `kernel.elf' instead of `grubof'.
25308 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
25310 Add --with-platform to configure. Use pkglibdir instead of
25311 pkgdatadir. This is reported by Roger Leigh.
25313 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
25314 (host_vendor): Likewise.
25315 (host_os): Likewise.
25316 (pkgdatadir): Likewise.
25317 (platform): New variable.
25318 (pkglibdir): Likewise.
25319 Use PKGLIBDIR instead of PKGDATADIR.
25321 * util/i386/pc/grub-install.in (datadir): Removed.
25322 (host_vendor): Likewise.
25323 (host_os): Likewise.
25324 (pkgdatadir): Likewise.
25325 (platform): New variable.
25326 (pkglibdir): Likewise.
25327 Use PKGLIBDIR instead of PKGDATADIR.
25329 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
25330 instead of GRUB_DATADIR.
25332 * util/i386/pc/grub-mkimage.c (usage): Likewise.
25334 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25337 * configure.ac (--with-platform): New option.
25338 Use PLATFORM instead of HOST_VENDOR to specify a platform.
25340 * Makefile.in: Include a makefile based on PLATFORM instead of
25342 (pkgdatadir): Not appended by the machine type.
25343 (pkglibdir): Appended by the machine type.
25344 (host_vendor): Removed.
25345 (platform): New variable.
25346 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
25347 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
25348 (uninstall): Likewise.
25350 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
25352 Use the environment context in the menu. Remove the commands
25353 "default" and "timeout", and use variables instead.
25355 * normal/menu.c: Include grub/env.h.
25356 (print_entry): Cast TITLE to silence gcc.
25357 (get_timeout): New function.
25358 (set_timeout): Likewise.
25359 (get_entry_number): Likewise.
25360 (run_menu): Use a default entry, a fallback entry and a timeout
25361 in the environment variables "default", "fallback" and
25362 "timeout". Also, tweak the default entry if it is not within the
25363 current menu entries.
25364 (grub_menu_run): Use a fallback entry in the environment variable
25367 * normal/main.c (read_config_file): Do not initialize
25368 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
25370 (grub_normal_execute): Use a data slot to store the menu.
25372 * include/grub/normal.h (struct grub_menu): Removed default_entry,
25373 fallback_entry and timeout.
25374 (struct grub_menu_list): Removed.
25375 (grub_menu_list_t): Likewise.
25376 (struct grub_context): Likewise.
25377 (grub_context_t): Likewise.
25378 (grub_context_get): Likewise.
25379 (grub_context_get_current_menu): Likewise.
25380 (grub_context_push_menu): Likewise.
25381 (grub_context_pop_menu): Likewise.
25382 (grub_default_init): Likewise.
25383 (grub_default_fini): Likewise.
25384 (grub_timeout_init): Likewise.
25385 (grub_timeout_fini): Likewise.
25387 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
25389 (normal_mod_SOURCES): Removed normal/context.c.
25391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
25392 commands/default.c, commands/timeout.c and normal/context.c.
25393 (normal_mod_SOURCES): Removed normal/context.c.
25395 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
25396 commands/timeout.c and normal/context.c.
25397 (normal_mod_SOURCES): Removed normal/context.c.
25399 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
25400 commands/default.c, commands/timeout.c and normal/context.c.
25401 (normal_mod_SOURCES): Removed normal/context.c.
25403 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
25405 (default_mod_SOURCES): Removed.
25406 (default_mod_CFLAGS): Likewise.
25407 (default_mod_LDFLAGS): Likewise.
25408 (timeout_mod_SOURCES): Removed.
25409 (timeout_mod_CFLAGS): Likewise.
25410 (timeout_mod_LDFLAGS): Likewise.
25412 * DISTLIST: Removed commands/default.c, commands/timeout.c and
25415 * commands/default.c: Removed.
25416 * commands/timeout.c: Likewise.
25417 * normal/context.c: Likewise.
25419 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
25421 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
25423 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
25425 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
25426 "next" to "prev" for readability.
25427 (struct grub_env_sorted_var): New struct.
25428 (grub_env_context): Renamed to ...
25429 (initial_context): ... this.
25430 (grub_env_var_context): Renamed to ...
25431 (current_context): ... this.
25432 (grub_env_find): Look only at CURRENT_CONTEXT.
25433 (grub_env_context_open): Rewritten to copy exported variables from
25435 (grub_env_context_close): Rewritten according to the new
25436 scheme. Also, add an assertion to prevent the initial context from
25438 (grub_env_insert): Removed the code for the sorted list.
25439 (grub_env_remove): Likewise.
25440 (grub_env_export): Simply mark the variable with
25441 GRUB_ENV_VAR_GLOBAL.
25442 (grub_env_set): A cosmetic change for naming consistency.
25443 (grub_env_get): Likewise.
25444 (grub_env_unset): Likewise.
25445 (grub_env_iterate): Rewritten to sort variables within this
25447 (grub_register_variable_hook): Fixed for naming consistency. Call
25448 grub_env_find again, only if NAME is not found at the first time.
25449 (mangle_data_slot_name): New function.
25450 (grub_env_set_data_slot): Likewise.
25451 (grub_env_get_data_slot): Likewise.
25452 (grub_env_unset_data_slot): Likewise.
25454 * include/grub/env.h (grub_env_var_type): New enum.
25455 (GRUB_ENV_VAR_LOCAL): New constant.
25456 (GRUB_ENV_VAR_GLOBAL): Likewise.
25457 (GRUB_ENV_VAR_DATA): Likewise.
25458 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
25460 (grub_env_set): Replace VAR with NAME for consistency.
25461 (grub_register_variable_hook): Likewise.
25462 (grub_env_export): Specify the name of the argument.
25463 (grub_env_set_data_slot): New prototype.
25464 (grub_env_get_data_slot): Likewise.
25465 (grub_env_unset_data_slot): Likewise.
25467 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
25469 Extend the loader so that GRUB can accept a loader which comes
25470 back to GRUB when a loaded image exits. Also, this change adds
25471 support for a chainloader on EFI.
25473 * term/efi/console.c: Include grub/misc.h.
25474 (grub_console_checkkey): Display a scan code on the top for
25475 debugging. This will be removed once the EFI port gets stable.
25476 Correct the scan code mapping.
25478 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
25479 allocate memory from larger regions, in order to reduce the number
25480 of allocated regions. Otherwise, the MacOSX loader panics.
25481 (filter_memory_map): Avoid less than 1MB for compatibility with
25483 (add_memory_regions): Allocate from the tail of a region, if
25484 possible, to avoid allocating a region near to 1MB, for the MacOSX
25487 * kern/efi/init.c (grub_efi_set_prefix): Specify
25488 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
25490 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
25491 argument IMAGE_HANDLE and specify it to get a loaded image.
25492 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
25493 grub_efi_get_loaded_image.
25494 (grub_efi_get_filename): Divide the length by the size of
25496 (grub_efi_get_device_path): New function.
25497 (grub_efi_print_device_path): Print End Device Path nodes. Divide
25498 the length by the size of grub_efi_char16_t for a file path device
25501 * kern/loader.c (grub_loader_noreturn): New variable.
25502 (grub_loader_set): Accept a new argument NORETURN. Set
25503 GRUB_LOADER_NORETURN to NORETURN.
25504 All callers changed.
25505 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
25508 * include/grub/efi/efi.h (grub_efi_get_device_path): New
25510 (grub_efi_get_loaded_image): Take an argument to specify an image
25513 * include/grub/loader.h (grub_loader_set): Added one more argument
25516 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
25517 instead of grub_efi_open_protocol.
25518 (grub_efidisk_get_device_name): Likewise.
25519 (grub_efidisk_close): Print a newline.
25520 (grub_efidisk_get_device_handle): Fixed to use
25521 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
25522 GRUB_EFI_DEVICE_PATH_TYPE.
25524 * disk/efi/efidisk.c (device_path_guid): Moved to ...
25525 * kern/efi/efi.c (device_path_guid): ... here.
25527 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
25529 (kernel_mod_HEADERS): Added efi/disk.h.
25530 (_chain_mod_SOURCES): New variable.
25531 (_chain_mod_CFLAGS): Likewise.
25532 (_chain_mod_LDFLAGS): Likewise.
25533 (chain_mod_SOURCES): Likewise.
25534 (chain_mod_CFLAGS): Likewise.
25535 (chain_mod_LDFLAGS): Likewise.
25537 * DISTLIST: Added include/grub/efi/chainloader.h,
25538 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
25540 * include/grub/efi/chainloader.h: New file.
25541 * loader/efi/chainloader.c: Likewise.
25542 * loader/efi/chainloader_normal.c: Likewise.
25544 2006-04-30 Marco Gerards <marco@gnu.org>
25546 * commands/configfile.c (grub_cmd_source): New function.
25547 (GRUB_MOD_INIT): Register the commands `source' and `.'.
25548 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
25550 2006-04-30 Marco Gerards <marco@gnu.org>
25552 * normal/execute.c (grub_script_execute_cmd): Change the return
25553 type to `grub_err_t'. Correctly return the error.
25554 (grub_script_execute_cmdline): In case a command line is not a
25555 command or a function, try to interpret it as an assignment.
25557 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
25559 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
25560 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
25561 skip a node whose name is obviously invalid as UTF-16,
25562 i.e. contains a NUL character. Stop the iteration when the last
25563 directory entry is found. Instead of using the return value of
25564 grub_hfsplus_btree_iterate_node, store the value in RET and use
25565 it, because the iterator can be stopped by the last directory
25568 2006-04-30 Marco Gerards <marco@gnu.org>
25570 * include/grub/env.h (grub_env_export): New prototype. Reported
25571 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
25573 2006-04-30 Marco Gerards <marco@gnu.org>
25575 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
25576 size of the extents in a catalog file record.
25578 2006-04-29 Marco Gerards <marco@gnu.org>
25580 * commands/configfile.c (grub_cmd_configfile): Execute the
25581 configfile within its own context.
25583 * include/grub/env.h (grub_env_context_open): New prototype.
25584 (grub_env_context_close): Likewise.
25586 * kern/env.c (grub_env): Removed.
25587 (grub_env_sorted): Likewise.
25588 (grub_env_context): New variable.
25589 (grub_env_var_context): Likewise.
25590 (grub_env_find): Search both the active context and the global
25592 (grub_env_context_open): New function.
25593 (grub_env_context_close): Likewise.
25594 (grub_env_insert): Likewise.
25595 (grub_env_remove): Likewise.
25596 (grub_env_export): Likewise.
25597 (grub_env_set): Changed to use helper functions to avoid code
25599 (grub_env_iterate): Rewritten so both the current context and the
25600 global context are being used.
25602 * normal/command.c (export_command): New function.
25603 (grub_command_init): Register the `export' function.
25605 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
25607 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
25608 explicitly to suppress gcc's warnings.
25609 * fs/fat.c (grub_fat_find_dir): Likewise.
25610 (grub_fat_label): Likewise.
25611 * fs/xfs.c (grub_xfs_read_inode): Likewise.
25612 (grub_xfs_mount): Likewise.
25613 (grub_xfs_label): Likewise.
25614 * fs/affs.c (grub_affs_mount): Likewise.
25615 (grub_affs_label): Likewise.
25616 (grub_affs_iterate_dir): Likewise.
25617 * fs/sfs.c (grub_sfs_mount): Likewise.
25618 (grub_sfs_iterate_dir): Likewise.
25619 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
25620 * fs/hfs.c (grub_hfs_mount): Likewise.
25621 (grub_hfs_cmp_catkeys): Likewise.
25622 (grub_hfs_find_dir): Likewise.
25623 (grub_hfs_dir): Likewise.
25624 (grub_hfs_label): Likewise.
25625 * fs/jfs.c (grub_jfs_mount): Likewise.
25626 (grub_jfs_opendir): Likewise.
25627 (grub_jfs_getent): Likewise.
25628 (grub_jfs_lookup_symlink): Likewise.
25629 (grub_jfs_label): Likewise.
25630 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
25631 (grub_hfsplus_iterate_dir): Likewise.
25632 (grub_hfsplus_btree_iterate_node): Made static.
25634 * util/grub-emu.c (prefix): New variable.
25635 (grub_machine_set_prefix): New function.
25636 (main): Do not set the environment variable "prefix" here. Only
25637 set PREFIX, which is used later by grub_machine_set_prefix.
25639 * include/grub/video.h: Do not include grub/symbol.h.
25640 (grub_video_register): Not exported. This symbol is not defined in
25642 (grub_video_unregister): Likewise.
25643 (grub_video_iterate): Likewise.
25644 (grub_video_setup): Likewise.
25645 (grub_video_restore): Likewise.
25646 (grub_video_get_info): Likewise.
25647 (grub_video_get_blit_format): Likewise.
25648 (grub_video_set_palette): Likewise.
25649 (grub_video_get_palette): Likewise.
25650 (grub_video_set_viewport): Likewise.
25651 (grub_video_get_viewport): Likewise.
25652 (grub_video_map_color): Likewise.
25653 (grub_video_map_rgb): Likewise.
25654 (grub_video_map_rgba): Likewise.
25655 (grub_video_fill_rect): Likewise.
25656 (grub_video_blit_glyph): Likewise.
25657 (grub_video_blit_bitmap): Likewise.
25658 (grub_video_blit_render_target): Likewise.
25659 (grub_video_scroll): Likewise.
25660 (grub_video_swap_buffers): Likewise.
25661 (grub_video_create_render_target): Likewise.
25662 (grub_video_delete_render_target): Likewise.
25663 (grub_video_set_active_render_target): Likewise.
25665 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
25667 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
25669 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
25670 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
25671 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
25672 instead of $(srcdir)/genkernsyms.sh.
25674 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
25675 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
25676 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
25677 instead of $(srcdir)/genkernsyms.sh.
25679 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
25680 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
25681 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
25682 instead of $(srcdir)/genkernsyms.sh.
25684 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
25685 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
25686 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
25687 instead of $(srcdir)/genkernsyms.sh.
25689 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
25692 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
25694 (gensymlist.sh): New target.
25695 (genkernsyms.sh): Likewise.
25697 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
25698 genkernsyms.sh.in and gensymlist.sh.in.
25700 * genkernsyms.sh: Removed.
25701 * gensymlist.sh: Likewise.
25703 * genkernsyms.sh.in: New file.
25704 * gensymlist.sh.in: Likewise.
25706 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
25708 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
25709 clobber "prefix", since we may have already set it manually.
25711 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
25713 * kern/misc.c (abort): New alias for grub_abort.
25715 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
25717 A new machine-specific function "grub_machine_set_prefix" is
25718 defined. This is called after loading modules, so that a prefix
25719 initialization can use modules. Also, this change adds an
25720 intensive debugging feature for the memory manager via the
25721 configure option "--enable-mm-debug".
25723 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
25726 * kern/sparc64/ieee1275/init.c (abort): Removed.
25727 (grub_stop): Likewise.
25728 (grub_exit): New function.
25729 (grub_set_prefix): Renamed to ...
25730 (grub_machine_set_prefix): ... this.
25731 (grub_machine_init): Do not call grub_set_prefix.
25733 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
25734 (grub_machine_set_prefix): ... this.
25735 (grub_machine_init): Do not call grub_set_prefix.
25737 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
25738 (grub_machine_init): Do not set the prefix here.
25740 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
25742 * kern/efi/init.c: Include grub/mm.h.
25743 (grub_efi_set_prefix): New function.
25745 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
25746 (grub_efi_get_filename): New function.
25747 (grub_print_device_path): Renamed to ...
25748 (grub_efi_print_device_path): ... this.
25750 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
25751 [MM_DEBUG] (grub_realloc): Likewise.
25752 [MM_DEBUG] (grub_free): Likewise.
25753 [MM_DEBUG] (grub_memalign): Likewise.
25754 [MM_DEBUG] (grub_mm_debug): New variable.
25755 [MM_DEBUG] (grub_debug_malloc): New function.
25756 [MM_DEBUG] (grub_debug_free): New function.
25757 [MM_DEBUG] (grub_debug_realloc): New function.
25758 [MM_DEBUG] (grub_debug_memalign): New function.
25760 * kern/misc.c (grub_abort): Print a newline to distinguish
25763 * kern/main.c (grub_main): Call grub_machine_set_prefix and
25764 grub_set_root_dev after loading modules. This is necessary when
25765 setting a prefix depends on modules.
25767 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
25768 (grub_efi_print_device_path): ... this.
25769 (grub_efi_get_filename): New prototype.
25770 (grub_efi_set_prefix): Likewise.
25772 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
25774 (grub_efidisk_get_device_handle): New prototype.
25775 (grub_efidisk_get_device_name): Likewise.
25777 * include/grub/mm.h: Include config.h.
25778 (MM_DEBUG): Removed.
25779 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
25780 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
25781 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
25782 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
25783 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
25784 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
25785 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
25786 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
25787 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
25789 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
25791 * disk/efi/efidisk.c: Include grub/partition.h.
25792 (iterate_child_devices): New function.
25793 (add_device): First, compare only last device path nodes, so that
25794 devices are sorted by the types.
25795 (grub_efidisk_get_device_handle): New function.
25796 (grub_efidisk_get_device_name): Likewise.
25798 * configure.ac (--enable-mm-debug): New option to enable the
25799 memory manager debugging feature. This makes the binary much
25800 bigger, so is disabled by default.
25802 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
25804 Use grub_abort instead of grub_stop, and grub_exit must be
25805 define in each architecture now. Also, this change adds support
25808 * util/i386/pc/grub-probefs.c: Include grub/term.h.
25809 (grub_getkey): New function.
25810 (grub_term_get_current): Likewise.
25812 * util/i386/pc/grub-setup.c: Include grub/term.h.
25813 (grub_getkey): New function.
25814 (grub_term_get_current): Likewise.
25816 * util/misc.c (grub_stop): Renamed to ...
25817 (grub_exit): ... this.
25819 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
25820 (grub_exit): ... this.
25821 (grub_machine_init): Use grub_abort instead of abort.
25822 (grub_stop): Removed.
25824 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
25827 * kern/i386/pc/startup.S (grub_exit): New function.
25828 (cold_reboot): New label.
25830 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
25831 (grub_efi_init): Call grub_efidisk_init.
25832 (grub_efi_fini): Call grub_efidisk_fini.
25834 * kern/efi/efi.c: Include grub/mm.h.
25835 (grub_efi_console_control_guid): Renamed to ...
25836 (console_control_guid): ... this.
25837 (grub_efi_loaded_image_guid): Renamed to ...
25838 (loaded_image_guid): ... this.
25839 (grub_efi_locate_handle): New function.
25840 (grub_efi_open_protocol): Likewise.
25841 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
25842 GRUB_EFI_CONSOLE_CONTROL_GUID.
25843 (grub_efi_exit): Removed.
25844 (grub_stop): Likewise.
25845 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
25846 (grub_exit): New function.
25847 (grub_print_device_path): Likewise.
25849 * kern/rescue.c (grub_rescue_cmd_exit): New function.
25850 (grub_enter_rescue_mode): Register "exit".
25852 * kern/misc.c (grub_real_dprintf): A cosmetic change.
25853 (grub_abort): New function.
25855 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
25857 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
25859 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
25861 * include/grub/efi/efi.h (grub_efi_exit): Removed.
25862 (grub_print_device_path): New prototype.
25863 (grub_efi_locate_handle): Likewise.
25864 (grub_efi_open_protocol): Likewise.
25866 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
25867 * disk/efi/efidisk.c: Likewise.
25869 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
25871 * include/grub/efi/console_control.h
25872 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
25874 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
25875 last 8 bytes as an array.
25876 (GRUB_EFI_DISK_IO_GUID): New macro.
25877 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
25878 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
25879 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
25881 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
25882 (struct grub_efi_device_path): Rename the member "sub_type" to
25884 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
25885 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
25886 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
25887 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
25888 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
25889 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
25890 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
25891 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
25892 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
25893 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
25894 (struct grub_efi_pci_device_path): New structure.
25895 (grub_efi_pci_device_path_t): New type.
25896 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
25897 (struct grub_efi_pccard_device_path): New structure.
25898 (grub_efi_pccard_device_path_t): New type.
25899 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
25900 (struct grub_efi_memory_mapped_device_path): New structure.
25901 (grub_efi_memory_mapped_device_path_t): New type.
25902 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
25903 (struct grub_efi_vendor_device_path): New structure.
25904 (grub_efi_vendor_device_path_t): New type.
25905 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
25906 (struct grub_efi_controller_device_path): New structure.
25907 (grub_efi_controller_device_path_t): New type.
25908 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
25909 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
25910 (struct grub_efi_acpi_device_path): New structure.
25911 (grub_efi_acpi_device_path_t): New type.
25912 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
25913 (struct grub_efi_expanded_acpi_device_path): New structure.
25914 (grub_efi_expanded_acpi_device_path_t): New type.
25915 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
25916 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
25917 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
25918 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
25919 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
25920 (struct grub_efi_atapi_device_path): New structure.
25921 (grub_efi_atapi_device_path_t): New type.
25922 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
25923 (struct grub_efi_fibre_channel_device_path): New structure.
25924 (grub_efi_fibre_channel_device_path_t): New type.
25925 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
25926 (struct grub_efi_1394_device_path): New structure.
25927 (grub_efi_1394_device_path_t): New type.
25928 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
25929 (struct grub_efi_usb_device_path): New structure.
25930 (grub_efi_usb_device_path_t): New type.
25931 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
25932 (struct grub_efi_usb_class_device_path): New structure.
25933 (grub_efi_usb_class_device_path_t): New type.
25934 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
25935 (struct grub_efi_i2o_device_path): New structure.
25936 (grub_efi_i2o_device_path_t): New type.
25937 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
25938 (struct grub_efi_mac_address_device_path): New structure.
25939 (grub_efi_mac_address_device_path_t): New type.
25940 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
25941 (struct grub_efi_ipv4_device_path): New structure.
25942 (grub_efi_ipv4_device_path_t): New type.
25943 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
25944 (struct grub_efi_ipv6_device_path): New structure.
25945 (grub_efi_ipv6_device_path_t): New type.
25946 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
25947 (struct grub_efi_infiniband_device_path): New structure.
25948 (grub_efi_infiniband_device_path_t): New type.
25949 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
25950 (struct grub_efi_uart_device_path): New structure.
25951 (grub_efi_uart_device_path_t): New type.
25952 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
25953 (struct grub_efi_vendor_messaging_device_path): New structure.
25954 (grub_efi_vendor_messaging_device_path_t): New type.
25955 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
25956 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
25957 (struct grub_efi_hard_drive_device_path): New structure.
25958 (grub_efi_hard_drive_device_path_t): New type.
25959 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
25960 (struct grub_efi_cdrom_device_path): New structure.
25961 (grub_efi_cdrom_device_path_t): New type.
25962 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
25963 (struct grub_efi_vendor_media_device_path): New structure.
25964 (grub_efi_vendor_media_device_path_t): New type.
25965 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
25966 (struct grub_efi_file_path_device_path): New structure.
25967 (grub_efi_file_path_device_path_t): New type.
25968 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
25969 (struct grub_efi_protocol_device_path): New structure.
25970 (grub_efi_protocol_device_path_t): New type.
25971 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
25972 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
25973 (struct grub_efi_bios_device_path): New structure.
25974 (grub_efi_bios_device_path_t): New type.
25975 (struct grub_efi_disk_io): New structure.
25976 (grub_efi_disk_io_t): New type.
25977 (struct grub_efi_block_io_media): New structure.
25978 (grub_efi_block_io_media_t): New type.
25979 (struct grub_efi_block_io): New structure.
25980 (grub_efi_block_io_t): New type.
25982 * include/grub/misc.h (grub_stop): Removed.
25983 (grub_exit): New prototype.
25984 (grub_abort): Likewise.
25986 * include/grub/disk.h (enum grub_disk_dev_id): Added
25987 GRUB_DISK_DEVICE_EFIDISK_ID.
25989 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
25990 disk/efi/efidisk.c.
25991 (kernel_syms.lst): Remove the target if an error occurs.
25993 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
25995 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
25996 as it was simply too buggy.
25998 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
26000 * kern/misc.c (grub_lltoa): New function.
26001 (grub_vsprintf): Added support for the long long suffix,
26004 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
26006 * Makefile.in (LDFLAGS): Add variable.
26007 (LD): Remove variable.
26008 * configure.ac: Add -m32 to LDFLAGS.
26009 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
26010 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
26011 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
26012 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
26013 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
26015 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
26016 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
26017 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
26019 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
26021 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
26022 length for unknown glyph.
26024 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
26026 Add support for pre-loaded modules into the EFI port.
26028 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
26029 completely. Accept one more argument DIR. The caller has changed.
26031 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
26033 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
26034 (grub_efi_loaded_image_guid): New variable.
26035 (grub_efi_get_loaded_image): New function.
26036 (grub_arch_modules_addr): Likewise.
26038 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
26041 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
26042 (struct grub_efi_loaded_image): New structure.
26043 (grub_efi_loaded_image_t): New type.
26045 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
26047 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
26048 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
26049 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
26051 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
26053 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
26055 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
26057 * DISTLIST: Added include/grub/efi/console.h,
26058 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
26059 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
26061 * include/grub/efi/console.h: New file.
26062 * include/grub/efi/time.h: Likewise.
26063 * include/grub/i386/efi/kernel.h: Likewise.
26064 * kern/efi/init.c: Likewise.
26065 * kern/efi/mm.c: Likewise.
26066 * term/efi/console.c: Likewise.
26068 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
26069 (grub_stop): Removed.
26070 (grub_get_rtc): Likewise.
26071 (grub_machine_init): Simply call grub_efi_init.
26072 (grub_machine_fini): Call grub_efi_fini.
26074 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
26075 (grub_efi_output_string): Removed.
26076 (grub_efi_stall): New function.
26077 (grub_stop): Likewise.
26078 (grub_get_rtc): Likewise.
26080 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
26081 (grub_efi_stall): New prototype.
26082 (grub_efi_allocate_pages): Likewise.
26083 (grub_efi_free_pages): Likewise.
26084 (grub_efi_get_memory_map): Likewise.
26085 (grub_efi_mm_init): Likewise.
26086 (grub_efi_mm_fini): Likewise.
26087 (grub_efi_init): Likewise.
26088 (grub_efi_fini): Likewise.
26090 * include/grub/i386/efi/time.h: Do not include
26091 grub/symbol.h. Include grub/efi/time.h.
26092 (GRUB_TICKS_PER_SECOND): Removed.
26093 (grub_get_rtc): Likewise.
26095 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
26096 Added padding. The EFI spec is buggy.
26097 (GRUB_EFI_BLACK): New macro.
26098 (GRUB_EFI_BLUE): Likewise.
26099 (GRUB_EFI_GREEN): Likewise.
26100 (GRUB_EFI_CYAN): Likewise.
26101 (GRUB_EFI_RED): Likewise.
26102 (GRUB_EFI_MAGENTA): Likewise.
26103 (GRUB_EFI_BROWN): Likewise.
26104 (GRUB_EFI_LIGHTGRAY): Likewise.
26105 (GRUB_EFI_BRIGHT): Likewise.
26106 (GRUB_EFI_DARKGRAY): Likewise.
26107 (GRUB_EFI_LIGHTBLUE): Likewise.
26108 (GRUB_EFI_LIGHTGREEN): Likewise.
26109 (GRUB_EFI_LIGHTCYAN): Likewise.
26110 (GRUB_EFI_LIGHTRED): Likewise.
26111 (GRUB_EFI_LIGHTMAGENTA): Likewise.
26112 (GRUB_EFI_YELLOW): Likewise.
26113 (GRUB_EFI_WHITE): Likewise.
26114 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
26115 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
26116 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
26117 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
26118 (GRUB_EFI_BACKGROUND_RED): Likewise.
26119 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
26120 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
26121 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
26122 (GRUB_EFI_TEXT_ATTR): Likewise.
26124 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
26125 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
26126 (kernel_mod_HEADERS): Added efi/time.h.
26128 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
26130 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
26131 include/grub/efi/api.h, include/grub/efi/console_control.h,
26132 include/grub/efi/efi.h, include/grub/efi/pe32.h,
26133 include/grub/i386/efi/time.h, kern/efi/efi.c,
26134 kern/i386/efi/init.c, kern/i386/efi/startup.S,
26135 and util/i386/efi/grub-mkimage.c.
26137 * Makefile.in (RMKFILES): Added i386-efi.rmk.
26139 * genmk.rb (PModule#rule): Do not export symbols if
26140 #{prefix}_EXPORTS is set to "no".
26142 * conf/i386-efi.mk: New file.
26143 * conf/i386-efi.rmk: Likewise.
26144 * include/grub/efi/api.h: Likewise.
26145 * include/grub/efi/console_control.h: Likewise.
26146 * include/grub/efi/efi.h: Likewise.
26147 * include/grub/efi/pe32.h: Likewise.
26148 * include/grub/i386/efi/time.h: Likewise.
26149 * kern/efi/efi.c: Likewise.
26150 * kern/i386/efi/init.c: Likewise.
26151 * kern/i386/efi/startup.S: Likewise.
26152 * util/i386/efi/grub-mkimage.c: Likewise.
26154 2006-04-17 Marco Gerards <marco@gnu.org>
26156 * include/grub/script.h: Include <grub/parser.h> and
26157 "grub_script.tab.h".
26158 (struct grub_lexer_param): New struct.
26159 (struct grub_parser_param): Likewise.
26160 (grub_script_create_arglist): Pass the state in an argument.
26161 (grub_script_add_arglist): Likewise.
26162 (grub_script_create_cmdline): Likewise.
26163 (grub_script_create_cmdblock): Likewise.
26164 (grub_script_create_cmdif): Likewise.
26165 (grub_script_create_cmdmenu): Likewise.
26166 (grub_script_add_cmd): Likewise.
26167 (grub_script_arg_add): Likewise.
26168 (grub_script_lexer_ref): Likewise.
26169 (grub_script_lexer_deref): Likewise.
26170 (grub_script_lexer_record_start): Likewise.
26171 (grub_script_lexer_record_stop): Likewise.
26172 (grub_script_mem_record): Likewise.
26173 (grub_script_mem_record_stop): Likewise.
26174 (grub_script_malloc): Likewise.
26175 (grub_script_yylex): Likewise.
26176 (grub_script_yyparse): Likewise.
26177 (grub_script_yyerror): Likewise.
26178 (grub_script_yylex): Likewise.
26179 (grub_script_lexer_init): Return the state.
26181 * normal/lexer.c (grub_script_lexer_state): Removed variable.
26182 (grub_script_lexer_done): Likewise.
26183 (grub_script_lexer_getline): Likewise.
26184 (grub_script_lexer_refs): Likewise.
26185 (script): Likewise.
26186 (newscript): Likewise.
26187 (record): Likewise.
26188 (recording): Likewise.
26189 (recordpos): Likewise.
26190 (recordlen): Likewise.
26191 (grub_script_lexer_init): Return the state instead of setting
26193 (grub_script_lexer_ref): Use the newly added argument for state
26194 instead of globals.
26195 (grub_script_lexer_deref): Likewise.
26196 (grub_script_lexer_record_start): Likewise.
26197 (grub_script_lexer_record_stop): Likewise.
26198 (recordchar): Likewise.
26199 (nextchar): Likewise.
26200 (grub_script_yylex2): Likewise.
26201 (grub_script_yylex): Likewise.
26202 (grub_script_yyerror): Likewise.
26204 * normal/parser.y (func_mem): Removed variable.
26205 (menu_entry): Likewise.
26207 (%lex-param): New parser option.
26208 (%parse-param): Likewise.
26209 (script): Always return the AST.
26210 (argument): Pass the state around.
26211 (arguments): Likewise.
26212 (grubcmd): Likewise.
26213 (commands): Likewise.
26214 (function): Likewise.
26215 (menuentry): Likewise.
26216 (if_statement): Likewise.
26219 * normal/script.c (grub_script_memused): Removed variable.
26220 (grub_script_parsed): Likewise.
26221 (grub_script_malloc): Added a state argument. Use that instead of
26223 (grub_script_mem_record): Likewise.
26224 (grub_script_mem_record_stop): Likewise.
26225 (grub_script_arg_add): Likewise.
26226 (grub_script_add_arglist): Likewise.
26227 (grub_script_create_cmdline): Likewise.
26228 (grub_script_create_cmdif): Likewise.
26229 (grub_script_create_cmdmenu): Likewise.
26230 (grub_script_add_cmd): Likewise.
26231 (grub_script_parse): Setup the state before calling the parser.
26233 2006-04-16 Marco Gerards <marco@gnu.org>
26235 * normal/command.c (grub_command_init): Remove the title command.
26237 * normal/lexer.c (grub_script_yylex): Renamed from this...
26238 (grub_script_yylex2): ... to this.
26239 (grub_script_yylex): New function. Temporary
26240 introduced to filter some tokens.
26241 (grub_script_yyerror): Print a newline.
26243 * normal/main.c (read_config_file): Output information about the
26244 lines that contain errors. Wait for a key after all lines have
26245 been processed. Don't return an empty menu.
26247 * normal/parser.y (func_mem): Don't initialize.
26248 (menu_entry): Likewise.
26249 (err): New variable.
26250 (script): Don't return anything when an error was encountered.
26251 (ws, returns): Removed rules.
26252 (argument): Disabled concatenated variable support.
26253 (arguments): Remove explicit separators.
26254 (grubcmd): Likewise.
26255 (function): Likewise.
26256 (menuentry): Likewise.
26258 (commands): Likewise. Add error handling.
26260 * normal/script.c (grub_script_create_cmdline): If
26261 `grub_script_parsed' is 0, assume the parser encountered an error.
26263 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
26265 * configure.ac: Add support for EFI. Fix the typo
26266 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
26268 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
26270 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
26271 foreign multibyte characters should be shown correctly.
26273 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
26275 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
26277 (read_config_file): Made it to close file before returning.
26279 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
26281 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
26282 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
26283 video/i386/pc/vbefill.c.
26285 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
26286 video/i386/pc/vbefill.c.
26288 * include/grub/video.h (grub_video_blit_format): New enum.
26289 (grub_video_mode_info): Added new member blit_format.
26290 (grub_video_get_blit_format): New function prototype.
26292 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
26293 function prototype.
26294 (grub_video_vbe_map_rgb): Likewise.
26295 (grub_video_vbe_unmap_color): Likewise.
26297 * include/grub/i386/pc/vbeblit.h: New file.
26299 * include/grub/i386/pc/vbefill.h: New file.
26301 * video/video.c (grub_video_get_blit_format): New function.
26302 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
26303 (grub_video_vbe_map_rgb): Likewise.
26304 (grub_video_vbe_unmap_color): Likewise.
26306 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
26308 (grub_video_vbe_blit_render_target): Changed to use more optimized
26310 (grub_video_vbe_setup): Added detection for optimized settings.
26311 (grub_video_vbe_create_render_target): Likewise.
26313 * video/i386/pc/vbeblit.c: New file.
26315 * video/i386/pc/vbefill.c: New file.
26317 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
26319 * font/manager.c (grub_font_get_glyph): Removed font fixup from
26322 * util/unifont2pff.rb: ... and moved it to here. Improved argument
26323 parsing to support both hex and dec ranges. If filename was missing
26324 show usage information.
26326 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
26328 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
26329 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
26331 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
26332 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
26333 (video_mod_SOURCES): Added.
26334 (video_mod_CFLAGS): Likewise.
26335 (video_mod_LDFLAGS): Likewise.
26336 (gfxterm_mod_SOURCES): Likewise.
26337 (gfxterm_mod_CFLAGS): Likewise.
26338 (gfxterm_mod_LDFLAGS): Likewise.
26339 (videotest_mod_SOURCES): Likewise.
26340 (videotest_mod_CFLAGS): Likewise.
26341 (videotest_mod_LDFLAGS): Likewise.
26342 (vesafb_mod_SOURCES): Removed.
26343 (vesafb_mod_CFLAGS): Likewise.
26344 (vesafb_mod_LDFLAGS): Likewise.
26345 (vga_mod_SOURCES): Likewise.
26346 (vga_mod_CFLAGS): Likewise.
26347 (vga_mod_LDFLAGS): Likewise.
26349 * commands/videotest.c: New file.
26351 * font/manager.c (fill_with_default_glyph): Modified to use
26353 (grub_font_get_glyph): Likewise.
26354 (fontmanager): Renamed from this...
26355 (font_manager): ... to this.
26357 * include/grub/font.h (grub_font_glyph): Added new structure.
26358 (grub_font_get_glyph): Modified to use grub_font_glyph.
26360 * include/grub/misc.h (grub_abs): Added as inline function.
26362 * include/grub/video.h: New file.
26364 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
26365 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
26366 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
26367 (grub_vbe_get_controller_info): Renamed from this...
26368 (grub_vbe_bios_get_controller_info): ... to this.
26369 (grub_vbe_get_mode_info): Renamed from this...
26370 (grub_vbe_bios_get_mode_info): ... to this.
26371 (grub_vbe_set_mode): Renamed from this...
26372 (grub_vbe_bios_set_mode): ... to this.
26373 (grub_vbe_get_mode): Renamed from this...
26374 (grub_vbe_bios_get_mode): ... to this.
26375 (grub_vbe_set_memory_window): Renamed from this...
26376 (grub_vbe_bios_set_memory_window): ... to this.
26377 (grub_vbe_get_memory_window): Renamed from this...
26378 (grub_vbe_bios_get_memory_window): ... to this.
26379 (grub_vbe_set_scanline_length): Renamed from this...
26380 (grub_vbe_set_scanline_length): ... to this.
26381 (grub_vbe_get_scanline_length): Renamed from this...
26382 (grub_vbe_bios_get_scanline_length): ... to this.
26383 (grub_vbe_set_display_start): Renamed from this...
26384 (grub_vbe_bios_set_display_start): ... to this.
26385 (grub_vbe_get_display_start): Renamed from this...
26386 (grub_vbe_bios_get_display_start): ... to this.
26387 (grub_vbe_set_palette_data): Renamed from this...
26388 (grub_vbe_bios_set_palette_data): ... to this.
26389 (grub_vbe_set_pixel_rgb): Removed.
26390 (grub_vbe_set_pixel_index): Likewise.
26392 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
26394 (grub_vbe_bios_get_controller_info): ... to this.
26395 (grub_vbe_get_mode_info): Renamed from this...
26396 (grub_vbe_bios_get_mode_info): ... to this.
26397 (grub_vbe_set_mode): Renamed from this...
26398 (grub_vbe_bios_set_mode): ... to this.
26399 (grub_vbe_get_mode): Renamed from this...
26400 (grub_vbe_bios_get_mode): ... to this.
26401 (grub_vbe_set_memory_window): Renamed from this...
26402 (grub_vbe_bios_set_memory_window): ... to this.
26403 (grub_vbe_get_memory_window): Renamed from this...
26404 (grub_vbe_bios_get_memory_window): ... to this.
26405 (grub_vbe_set_scanline_length): Renamed from this...
26406 (grub_vbe_set_scanline_length): ... to this.
26407 (grub_vbe_get_scanline_length): Renamed from this...
26408 (grub_vbe_bios_get_scanline_length): ... to this.
26409 (grub_vbe_set_display_start): Renamed from this...
26410 (grub_vbe_bios_set_display_start): ... to this.
26411 (grub_vbe_get_display_start): Renamed from this...
26412 (grub_vbe_bios_get_display_start): ... to this.
26413 (grub_vbe_set_palette_data): Renamed from this...
26414 (grub_vbe_bios_set_palette_data): ... to this.
26415 (grub_vbe_bios_get_controller_info): Fixed problem with registers
26416 getting corrupted after calling it. Added more pushes and pops.
26417 (grub_vbe_bios_set_mode): Likewise.
26418 (grub_vbe_bios_get_mode): Likewise.
26419 (grub_vbe_bios_get_memory_window): Likewise.
26420 (grub_vbe_bios_set_scanline_length): Likewise.
26421 (grub_vbe_bios_get_scanline_length): Likewise.
26422 (grub_vbe_bios_get_display_start): Likewise.
26423 (grub_vbe_bios_set_palette_data): Likewise.
26425 * normal/cmdline.c (cl_set_pos): Refresh the screen.
26426 (cl_insert): Likewise.
26427 (cl_delete): Likewise.
26429 * term/gfxterm.c: New file.
26431 * term/i386/pc/vesafb.c: Removed file.
26433 * video/video.c: New file.
26435 * video/i386/pc/vbe.c (real2pm): Added new function.
26436 (grub_video_vbe_draw_pixel): Likewise.
26437 (grub_video_vbe_get_video_ptr): Likewise.
26438 (grub_video_vbe_get_pixel): Likewise
26439 (grub_video_vbe_init): Likewise.
26440 (grub_video_vbe_fini): Likewise.
26441 (grub_video_vbe_setup): Likewise.
26442 (grub_video_vbe_get_info): Likewise.
26443 (grub_video_vbe_set_palette): Likewise.
26444 (grub_video_vbe_get_palette): Likewise.
26445 (grub_video_vbe_set_viewport): Likewise.
26446 (grub_video_vbe_get_viewport): Likewise.
26447 (grub_video_vbe_map_color): Likewise.
26448 (grub_video_vbe_map_rgb): Likewise.
26449 (grub_video_vbe_map_rgba): Likewise.
26450 (grub_video_vbe_unmap_color): Likewise.
26451 (grub_video_vbe_fill_rect): Likewise.
26452 (grub_video_vbe_blit_glyph): Likewise.
26453 (grub_video_vbe_blit_bitmap): Likewise.
26454 (grub_video_vbe_blit_render_target): Likewise.
26455 (grub_video_vbe_scroll): Likewise.
26456 (grub_video_vbe_swap_buffers): Likewise.
26457 (grub_video_vbe_create_render_target): Likewise.
26458 (grub_video_vbe_delete_render_target): Likewise.
26459 (grub_video_vbe_set_active_render_target): Likewise.
26460 (grub_vbe_set_pixel_rgb): Remove function.
26461 (grub_vbe_set_pixel_index): Likewise.
26462 (index_color_mode): Remove static variable.
26463 (active_mode): Likewise.
26464 (framebuffer): Likewise.
26465 (bytes_per_scan_line): Likewise.
26466 (grub_video_vbe_adapter): Added new static variable.
26467 (framebuffer): Likewise.
26468 (render_target): Likewise.
26469 (initial_mode): Likewise.
26470 (mode_in_use): Likewise.
26471 (mode_list): Likewise.
26473 2006-03-10 Marco Gerards <marco@gnu.org>
26475 * configure.ac (AC_INIT): Bumped to 1.93.
26477 * DISTLIST: Added `include/grub/hfs.h'.
26479 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
26481 * boot/i386/pc/boot.S (general_error): Before looping, try INT
26482 18H, which might help the BIOS falling back to next boot media.
26484 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
26486 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
26487 Poe Chen <poe.poechen@gmail.com>.
26489 2006-01-17 Marco Gerards <marco@gnu.org>
26491 * include/grub/normal.h: Include <grub/script.h>.
26492 (grub_command_list): Removed struct.
26493 (grub_command_list_t): Removed type.
26494 (grub_menu_entry): Remove members `num' and `command_list'. Add
26495 members `commands' and `sourcecode'.
26496 * include/grub/script.h: Add inclusion guards.
26497 (grub_script_cmd_menuentry): New struct.
26498 (grub_script_execute_menuentry): New prototype.
26499 (grub_script_lexer_record_start): Likewise.
26500 (grub_script_lexer_record_stop): Likewise.
26501 * normal/execute.c (grub_script_execute_menuentry): New function.
26502 * normal/lexer.c (record, recording, recordpos, recordlen): New
26504 (grub_script_lexer_record_start): New function.
26505 (grub_script_lexer_record_stop): Likewise.
26506 (recordchar): Likewise.
26507 (nextchar): Likewise.
26508 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
26509 2048 as the buffer size. Add the tokens `menuentry' and `@'.
26510 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
26511 (current_menu): New variable.
26512 (free_menu): Mainly rewritten.
26513 (grub_normal_menu_addentry): New function.
26514 (read_config_file): Rewritten.
26515 * normal/menu.c (run_menu_entry): Mainly rewritten.
26516 * normal/menu_entry.c (make_screen): Rewritten the code to insert
26518 (run): Mainly rewritten.
26519 * normal/parser.y (menu_entry): New variable.
26520 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
26521 (menuentry): New rule.
26522 (command): Add `menuentry'.
26523 (if_statement): Allow additional returns before `fi'.
26524 * normal/script.c (grub_script_create_cmdmenu): New function.
26526 2006-01-03 Marco Gerards <marco@gnu.org>
26528 * INSTALL: GNU Bison is required.
26529 * configure.ac: Rewritten the test to detect Bison.
26530 * Makefile.in (YACC): New variable. Reported by Xun Sun
26531 <xun.sun.cn@gmail.com>.
26533 2006-01-03 Marco Gerards <marco@gnu.org>
26535 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
26536 the HFS+ filesystem to filesystem blocks.
26537 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
26538 GCC warning is silenced.
26540 2006-01-03 Marco Gerards <marco@gnu.org>
26542 * partmap/apple.c (apple_partition_map_iterate): Convert the data
26543 read from disk from big endian to host byte order.
26545 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
26547 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
26549 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
26550 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
26551 embedded HFS+ filesystem.
26552 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
26553 (grub_hfs_sblock): Move from here...
26554 * include/grub/hfs.h: To here... New file.
26555 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
26557 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
26559 (grub_hfsplus_volheader): Change type of member `magic' to
26561 (grub_hfsplus_data): Add new member `embedded_offset'.
26562 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
26564 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
26565 Calculate the offset.
26567 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26569 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
26571 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
26573 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26575 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
26576 ENV->NAME is NULL after allocating ENV->VALUE.
26578 2005-12-25 Marco Gerards <marco@gnu.org>
26580 * kern/env.c (grub_env_set): Rewritten the error handling code.
26582 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26584 * geninit.sh: Made more robust, and more portable.
26586 2005-12-25 Marco Gerards <marco@gnu.org>
26588 Add support for Apple HFS+ filesystems.
26590 * fs/hfsplus.c: New file.
26592 * DISTLIST: Added `fs/hfsplus.c'.
26594 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
26595 (hfsplus_mod_SOURCES): New variable.
26596 (hfsplus_mod_CFLAGS): Likewise.
26597 (hfsplus_mod_LDFLAGS): Likewise.
26598 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
26599 (grub_setup_SOURCES): Likewise.
26600 (grub_mkdevicemap_SOURCES): Likewise.
26601 (grub_emu_SOURCES): Likewise.
26602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26604 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
26606 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
26608 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26610 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
26611 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
26612 include/grub/parser.h, include/grub/script.h, kern/parser.c,
26613 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
26614 normal/lexer.c, normal/parser.y, normal/script.c, and
26616 Removed kern/sparc64/cache.c.
26618 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
26619 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
26622 * configure.ac (AC_INIT): Bumped to 1.92.
26624 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
26626 * kern/err.c (grub_error_push): Added new function to support error
26628 (grub_error_pop): Likewise.
26629 (grub_error_stack_items): New local variable to support error stacks.
26630 (grub_error_stack_pos): Likewise.
26631 (grub_error_stack_assert): Likewise.
26632 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
26634 (grub_print_error): Added support to print errors from error stack.
26636 * include/grub/err.h (grub_error_push): Added function prototype.
26637 (grub_error_pop): Likewise.
26639 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
26641 * configure.ac: Accept `powerpc64' as host_cpu.
26642 (amd64): Rename to `biarch32'.
26644 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
26645 non-cacheline-aligned addresses.
26647 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
26648 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
26649 if `size' is non-zero.
26651 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
26653 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
26654 and `cd' to make sure the filename is not prefixed with a
26656 (pkgdata_MODULES): Add `gpt.mod'.
26657 (gpt_mod_SOURCES): New variable.
26658 (gpt_mod_CFLAGS): Likewise.
26659 (gpt_mod_LDFLAGS): Likewise.
26661 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
26663 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
26666 * partmap/gpt.c: New file.
26668 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
26669 GPT partition map is detected.
26671 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
26673 * commands/i386/pc/play.c: New file.
26674 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
26675 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
26678 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
26680 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
26681 ((unused))' to silence gcc warning.
26683 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
26685 * configure.ac: Correct `AC_PROG_YACC' test.
26687 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
26689 * util/powerpc/ieee1275/grub-install.in: Run the mount point
26690 check before installing files.
26692 2005-11-22 Mike Small <smallm@panix.com>
26694 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
26695 number regex so multidigit numbers are recognized correctly.
26697 2005-11-22 Mike Small <smallm@panix.com>
26699 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
26700 debugging message before attempting to claim memory.
26701 (grub_rescue_cmd_initrd): Add a claim debugging message and try
26702 multiple addresses in case of failure.
26704 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
26706 * term/tparm.c (get_space): Remove empty `if' statement.
26708 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
26710 * kern/parser.c (check_varstate): Rename `state' to 's'.
26712 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
26714 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
26715 variable definitions to the beginning of each function. Sort stack
26717 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
26718 `buf' argument to `char *'.
26720 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
26722 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
26723 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
26724 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
26725 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
26726 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
26727 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
26728 configfile.mod, search.mod, gzio.mod and test.mod.
26729 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
26730 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
26731 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
26732 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
26733 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
26734 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
26735 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
26736 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
26737 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
26738 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
26739 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
26740 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
26741 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
26742 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
26743 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
26744 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
26745 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26746 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
26747 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
26748 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
26749 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
26750 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
26751 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
26753 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
26755 (pkgdata_MODULES): Add test.mod.
26757 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26759 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
26760 appending to variables with "+=".
26761 (PModule): Use full pathname to generate *.lst filenames.
26763 * Makefile.in: Fixed list rules moved from genmk.rb.
26764 (.DELETE_ON_ERROR): New special target.
26765 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
26767 * conf/i386-pc.rmk: Include conf/common.mk.
26768 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
26769 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
26770 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
26771 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
26772 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
26773 configfile.mod, search.mod, gzio.mod and test.mod.
26774 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
26775 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
26776 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
26777 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
26778 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
26779 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
26780 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
26781 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
26782 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
26783 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
26784 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
26785 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
26786 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
26787 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
26788 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
26789 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
26790 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26791 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
26792 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
26793 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
26794 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
26795 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
26796 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
26798 * conf/common.rmk: ... to here. New file.
26800 * conf/common.mk: New file.
26802 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
26804 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
26805 (grub_script.tab.c): ... here.
26807 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
26808 (grub_script.tab.c): ... here.
26810 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
26811 (grub_script.tab.c): ... here.
26813 * normal/command.c (grub_command_find): Fixed a memory leak of
26814 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
26816 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26818 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
26819 "@" which marks the start of a comment on ARM.
26820 (VARIABLE): Likewise.
26822 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26824 Add support for Linux/ADFS partition tables.
26826 * partmap/acorn.c: New file.
26828 * include/grub/acorn_filecore.h: Likewise.
26830 * DISTLIST: Added `partmap/acorn.c' and
26831 `include/grub/acorn_filecore.h'.
26833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26835 (pkgdata_MODULES): Add `acorn.mod'.
26836 (acorn_mod_SOURCES): New variable.
26837 (acorn_mod_CFLAGS): Likewise.
26839 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
26841 (pkgdata_MODULES): Add `acorn.mod'.
26842 (acorn_mod_SOURCES): New variable.
26843 (acorn_mod_CFLAGS): Likewise.
26845 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
26846 (pkgdata_MODULES): Add `acorn.mod'.
26847 (acorn_mod_SOURCES): New variable.
26848 (acorn_mod_CFLAGS): Likewise.
26849 (acorn_mod_LDFLAGS): Likewise.
26851 * include/types.h (grub_disk_addr_t): New typedef.
26853 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
26855 * geninit.sh: New file.
26857 * geninitheader.sh: Likewise.
26859 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
26860 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
26861 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
26862 * commands/configfile.c (grub_configfile_init)
26863 (grub_configfile_fini): Likewise.
26864 * commands/default.c (grub_default_init, grub_default_fini):
26866 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
26867 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
26868 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
26869 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
26871 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
26872 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
26874 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
26875 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
26877 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
26879 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
26881 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
26882 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
26883 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
26884 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
26885 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
26886 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
26887 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
26888 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
26889 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
26890 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
26891 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
26892 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
26893 * partmap/amiga.c (grub_amiga_partition_map_init)
26894 (grub_amiga_partition_map_fini): Likewise.
26895 * partmap/apple.c (grub_apple_partition_map_init)
26896 (grub_apple_partition_map_fini): Likewise.
26897 * partmap/pc.c (grub_pc_partition_map_init)
26898 (grub_pc_partition_map_fini): Likewise.
26899 * partmap/sun.c (grub_sun_partition_map_init,
26900 grub_sun_partition_map_fini): Likewise.
26901 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
26904 * util/grub-emu.c: Include <grub_modules_init.h>.
26905 (main): Don't initialize and de-initialize any modules directly,
26906 use `grub_init_all' and `grub_fini_all' instead.
26908 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
26909 `grub_vesafb_mod_init'.
26910 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
26912 * term/i386/pc/vga.c (grub_vga_init): Renamed to
26913 `grub_vga_mod_init'. Updated all users.
26914 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
26916 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
26917 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
26920 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
26921 Generate a function to initialize the module in utilities.
26922 Updated all callers.
26923 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
26924 initialize the module in utilities. Updated all callers.
26926 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
26928 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
26929 escape sequence and a literal ^L to clear the screen.
26931 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
26932 when returning from Open Firmware.
26934 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
26936 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
26937 (grub_ofconsole_height): Likewise.
26938 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
26939 manually insert a '\n'.
26940 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
26941 `grub_ofconsole_height'. Return early if these are already set.
26943 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
26945 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
26946 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
26947 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
26948 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
26949 and `normal/script.c'.
26950 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
26951 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
26952 (test_mod_SOURCES): New variable.
26953 (test_mod_CFLAGS): Likewise.
26954 (test_mod_LDFLAGS): Likewise.
26955 (pkgdata_MODULES): Add `test.mod'.
26956 (grub_script.tab.c): New rule.
26957 (grub_script.tab.h): Likewise.
26959 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
26961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26962 `commands/test.c', `normal/execute.c', `normal/lexer.c',
26963 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
26964 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
26965 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
26966 (test_mod_SOURCES): New variable.
26967 (test_mod_CFLAGS): Likewise.
26968 (pkgdata_MODULES): Add `test.mod'.
26969 (grub_script.tab.c): New rule.
26970 (grub_script.tab.h): Likewise.
26972 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
26974 Add initial scripting support.
26976 * commands/test.c: New file.
26977 * include/grub/script.h: Likewise.
26978 * normal/execute.c: Likewise.
26979 * normal/function.c: Likewise.
26980 * normal/lexer.c: Likewise.
26981 * normal/parser.y: Likewise.
26982 * normal/script.c: Likewise.
26984 * configure.ac: Add `AC_PROG_YACC' test.
26986 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
26987 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
26988 `normal/function.c' and `normal/script.c'.
26989 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
26990 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
26991 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
26993 (pkgdata_MODULES): Add `test.mod'.
26994 (grub_script.tab.c): New rule.
26995 (grub_script.tab.h): Likewise.
26997 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
26999 * include/grub/normal.h (grub_test_init): New prototype.
27000 (grub_test_fini): Likewise.
27002 * normal/command.c: Include <grub/script.h>.
27003 (grub_command_execute): Rewritten.
27005 * util/grub-emu.c (main): Call `grub_test_init' and
27008 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27010 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
27012 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
27013 there are no pending characters.
27015 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27017 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
27018 `grub_strndup' to drop device arguments. Replace unnecessary
27019 `grub_strndup' with `grub_strdup'.
27021 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27023 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
27024 `debug' environment variable has been set.
27026 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
27028 * Makefile.in (install-local): Use $(DATA).
27029 (uninstall): Likewise.
27030 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
27031 (sbin_UTILITIES): ... to here.
27032 (sbin_SCRIPTS): New variable.
27033 (grub_install_SOURCES): New variable.
27034 * util/powerpc/ieee1275/grub-install.in: New file.
27035 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
27037 (add_segments): Call `grub_util_get_path'.
27039 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
27041 From Timothy Baldwin:
27042 * commands/ls.c (grub_ls_list_files): Close FILE with
27044 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
27046 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
27048 * include/grub/parser.h: New file.
27050 * kern/parser.c: Likewise.
27052 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
27053 (grub_setup_SOURCES): Likewise.
27054 (grub_probefs_SOURCES): Likewise.
27055 (grub_emu_SOURCES): Likewise.
27056 (kernel_img_HEADERS): Add `parser.h'.
27058 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
27059 (grub_emu_SOURCES): Add `kern/parser.c'.
27060 (grubof_SOURCES): Likewise.
27062 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
27063 (grubof_SOURCES): Add `kern/parser.c'.
27065 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
27067 * kern/misc.c (grub_split_cmdline): Removed function.
27069 * kern/rescue.c: Include <grub/parser.h>.
27070 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
27071 of `grub_split_cmdline'.
27073 * normal/command.c: Include <grub/parser.h>.
27074 (grub_command_execute): Use `grub_parser_split_cmdline' instead
27075 of `grub_split_cmdline'.
27077 * normal/completion.c: Include <grub/parser.h>.
27078 (cmdline_state): New variable.
27079 (iterate_dir): End the filename with a quote depending on the
27080 command line state.
27081 (get_state): new function.
27082 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
27083 split the arguments and determine the current argument. When the
27084 argument string is not quoted, escape all spaces.
27086 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
27088 * normal/sparc64/setjmp.S: New file.
27090 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
27092 * include/grub/sparc64/libgcc.h: New file.
27093 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
27094 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
27095 normal/sparc64/setjmp.c.
27097 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
27099 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
27100 * kern/sparc64/cache.S: New file.
27101 * kern/sparc64/cache.c: Removed.
27102 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
27103 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
27105 (COMMON_LDFLAGS): Add -melf64_sparc.
27106 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
27107 (grubof_SOURCES): Use cache.S instead of cache.c.
27108 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
27109 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
27110 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
27112 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
27113 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
27114 (linux_mod_CFLAGS): Commented out.
27115 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
27116 out because module isn't built.
27117 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
27118 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
27119 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
27120 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
27121 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
27122 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
27123 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
27124 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
27125 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
27126 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
27127 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
27128 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
27129 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
27130 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
27132 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
27134 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
27135 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
27136 longer, because HFS should not be used on PC.
27138 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27140 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
27141 consistently within the loop.
27143 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
27145 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
27146 directory can not be read.
27148 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27150 * configure.ac (AC_INIT): Increase the version number to 1.91.
27152 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
27153 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
27154 term/i386/pc/serial.c.
27156 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27158 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
27159 file size must be permitted.
27161 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
27162 between %ah and %al.
27164 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27166 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
27168 Call the hook with a NUL-terminated filename.
27169 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
27172 * kern/term.c (cursor_state): New variable.
27173 (grub_term_set_current): Reset the cursor state on a new
27175 (grub_setcursor): Rewritten to use CURSOR_STATE.
27176 (grub_getcursor): New function.
27178 * include/grub/term.h (grub_getcursor): New prototype.
27180 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
27181 integers on ARM. Reported by Timothy Baldwin
27182 <T.E.Baldwin99@members.leeds.ac.uk>.
27184 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
27186 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
27188 (grub_sfs_dir): Likewise.
27190 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
27192 Add support for the SFS filesystem.
27194 * fs/sfs.c: New file.
27196 * DISTLIST: Added `fs/sfs.c'.
27198 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
27199 (grub_probefs_SOURCES): Likewise.
27200 (grub_emu_SOURCES): Likewise.
27201 (pkgdata_MODULES): Add `sfs.mod'.
27202 (sfs_mod_SOURCES): New variable.
27203 (sfs_mod_CFLAGS): Likewise.
27204 (sfs_mod_LDFLAGS): Likewise.
27206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
27207 (pkgdata_MODULES): Add `sfs.mod'.
27208 (sfs_mod_SOURCES): New variable.
27209 (sfs_mod_CFLAGS): Likewise.
27211 * util/grub-emu.c (main): Call `grub_sfs_init' and
27214 * include/grub/fs.h (grub_sfs_init): New prototype.
27215 (grub_sfs_fini): Likewise.
27217 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
27219 Add support for the AFFS filesystem.
27221 * fs/affs.c: New file.
27223 * DISTLIST: Added `fs/affs.c'.
27225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
27226 (grub_probefs_SOURCES): Likewise.
27227 (grub_emu_SOURCES): Likewise.
27228 (pkgdata_MODULES): Add `affs.mod'.
27229 (affs_mod_SOURCES): New variable.
27230 (affs_mod_CFLAGS): Likewise.
27231 (affs_mod_LDFLAGS): Likewise.
27233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
27234 (pkgdata_MODULES): Add `affs.mod'.
27235 (affs_mod_SOURCES): New variable.
27236 (affs_mod_CFLAGS): Likewise.
27238 * util/grub-emu.c (main): Call `grub_affs_init' and
27241 * include/grub/fs.h (grub_affs_init): New prototype.
27242 (grub_affs_fini): Likewise.
27244 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
27246 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
27248 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
27250 * configure.ac: Accept `x86_64' as host_cpu. In that case add
27253 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
27256 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
27257 (COMMON_LDFLAGS): New variable.
27258 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
27259 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
27260 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
27261 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
27262 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
27263 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
27264 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
27265 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
27266 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
27267 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
27268 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
27269 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
27270 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
27271 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
27272 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
27274 (normal_mod_ASFLAGS): Add `-m32'.
27276 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
27277 (grub_host_size_t, grub_host_ssize_t): New types.
27278 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
27279 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
27280 `GRUB_HOST_SIZEOF_VOID_P'.
27282 * include/grub/kernel.h (struct grub_module_header): Type of
27283 member offset changed to `grub_host_off_t'. Type of member size
27284 changed to `grub_host_size_t'.
27285 (struct grub_module_info): Type of member offset changed to
27286 `grub_host_off_t'. Type of member size changed to
27287 `grub_host_size_t'.
27289 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
27291 Make GRUB's kernel compliant to Multiboot Specification.
27293 * kern/i386/pc/startup.S (multiboot_header): New label.
27294 (multiboot_entry): Likewise.
27295 (multiboot_trampoline): Likewise.
27297 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27298 Increased to 0x4A0.
27300 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
27301 put parentheses after a question mark.
27302 [!GRUB_UTIL] (my_mod): New variable.
27304 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
27306 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
27308 Adds support for the XFS filesystem. Btrees are not supported
27311 * fs/xfs.c: New file.
27313 * DISTLIST: Added `fs/xfs.c'.
27315 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
27316 (grub_probefs_SOURCES): Likewise.
27317 (grub_emu_SOURCES): Likewise.
27318 (pkgdata_MODULES): Add `xfs.mod'.
27319 (xfs_mod_SOURCES): New variable.
27320 (xfs_mod_CFLAGS): Likewise.
27322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
27323 (pkgdata_MODULES): Add `xfs.mod'.
27324 (xfs_mod_SOURCES): New variable.
27325 (xfs_mod_CFLAGS): Likewise.
27327 * util/grub-emu.c (main): Call `grub_xfs_init' and
27330 * include/grub/fs.h (grub_xfs_init): New prototype.
27331 (grub_xfs_fini): Likewise.
27334 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
27336 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
27337 color modes, allow greater than 16 colors to be configured as
27340 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
27342 * normal/completion.c (complete_arguments): Add the qualifier
27343 const into OPTIONS.
27345 From Omniflux <omniflux+lists@omniflux.com>:
27346 * include/grub/terminfo.h: New file.
27347 * include/grub/tparm.h: Likewise.
27348 * include/grub/i386/pc/serial.h: Likewise.
27349 * term/terminfo.c: Likewise.
27350 * term/tparm.c: Likewise.
27351 * term/i386/pc/serial.c: Likewise.
27352 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
27354 (terminfo_mod_SOURCES): New variable.
27355 (terminfo_mod_CFLAGS): Likewise.
27356 (serial_mod_SOURCES): Likewise.
27357 (serial_mod_CFLAGS): Likewise.
27359 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
27361 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
27362 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
27363 and kern/powerpc/ieee1275/cmain.c, respectively.
27365 * boot/powerpc/ieee1275/crt0.S: Moved to ...
27366 * kern/powerpc/ieee1275/crt0.S: ... here.
27368 * boot/powerpc/ieee1275/cmain.c: Moved to ...
27369 * kern/powerpc/ieee1275/cmain.c: ... here.
27371 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
27372 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
27373 instead of boot/powerpc/ieee1275/crt0.S and
27374 boot/powerpc/ieee1275/cmain.c, respectively.
27376 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
27377 sectors. It was not used anyway.
27379 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
27381 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
27382 `unused parameter' warning.
27384 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
27386 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
27388 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
27391 2005-08-28 Marco Gerards <metgerards@student.han.nl>
27393 * include/grub/normal.h (enum grub_completion_type): Added
27394 `GRUB_COMPLETION_TYPE_ARGUMENT'.
27396 * normal/cmdline.c (print_completion): Handle
27397 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
27398 * normal/menu_entry.c (store_completion): Likewise.
27400 * normal/completion.c (complete_arguments): New function.
27401 (grub_normal_do_completion): Call `complete_arguments' when the
27402 current words start with a dash.
27404 2005-08-27 Marco Gerards <metgerards@student.han.nl>
27406 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
27407 `gzio.mod' instead of `io.mod').
27409 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
27411 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
27412 (DISTDIRS): Added io and video.
27413 Rewrite the search routine to make an output consistently.
27415 * DISTLIST: Added conf/sparc64-ieee1275.mk,
27416 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
27417 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
27418 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
27419 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
27420 util/powerpc/ieee1275/misc.c.
27422 * include/grub/gzio.h: New file.
27423 * io/gzio.c: Likewise.
27425 * kern/file.c (grub_file_close): Call grub_device_close only if
27426 FILE->DEVICE is not NULL.
27428 * include/grub/mm.h [!NULL] (NULL): New macro.
27430 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
27432 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
27433 (pkgdata_MODULES): Added gzio.mod.
27434 (gzio_mod_SOURCES): New variable.
27435 (gzio_mod_CFLAGS): Likewise.
27437 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
27438 (pkgdata_MODULES): Added gzio.mod.
27439 (gzio_mod_SOURCES): New variable.
27440 (gzio_mod_CFLAGS): Likewise.
27442 * commands/cat.c: Include grub/gzio.h.
27443 (grub_cmd_cat): Use grub_gzfile_open instead of
27446 * commands/cmp.c: Include grub/gzio.h.
27447 (grub_cmd_cmp): Use grub_gzfile_open instead of
27450 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
27451 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
27453 (grub_rescue_cmd_module): Likewise.
27455 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
27457 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
27458 kern/sparc64/ieee1275/init.c because it contains _start.
27459 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
27461 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
27463 * configure.ac: Add support for sparc64 host with ieee1275
27465 * configure: Generated from configure.ac.
27466 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
27468 (grub_ofdisk_read): Likewise.
27469 (grub_ofdisk_open): Use %p to print pointer values, and cast the
27470 pointers as (void *) to remove a warning.
27471 (grub_ofdisk_close): Likewise.
27472 (grub_ofdisk_read): Likewise.
27473 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
27474 returns, so make it return void to remove a warning.
27475 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
27476 Corresponding prototype change.
27477 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
27478 values, and cast the pointers as (void *) to remove a warning.
27479 (grub_mm_dump): Likewise.
27480 * conf/sparc64-ieee1275.mk: New file.
27481 * conf/sparc64-ieee1275.rmk: Likewise.
27482 * include/grub/sparc64/setjmp.h: Likewise.
27483 * include/grub/sparc64/types.h: Likewise.
27484 * include/grub/sparc64/ieee1275/console.h: Likewise.
27485 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27486 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27487 * include/grub/sparc64/ieee1275/time.h: Likewise.
27488 * kern/sparc64/cache.c: Likewise.
27489 * kern/sparc64/dl.c: Likewise.
27490 * kern/sparc64/ieee1275/init.c: Likewise.
27491 * kern/sparc64/ieee1275/openfw.c: Likewise.
27493 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27495 * util/console.c (grub_ncurses_putchar): If C is greater than
27496 0x7f, set C to a question mark.
27497 (grub_ncurses_getcharwidth): New function.
27498 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
27501 * normal/menu.c (print_entry): Made aware of Unicode. First,
27502 convert TITLE to UCS-4, and predict the cursor position by
27505 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
27507 * kern/misc.c (grub_utf16_to_utf8): Likewise.
27509 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
27511 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
27512 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
27515 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
27516 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
27517 grub_strcpy and grub_strlen. Take it into account that a space
27518 character is inserted as a delimiter.
27520 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
27522 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
27523 invalid magic in the error.
27525 * commands/search.c: New file.
27527 * util/grub-emu.c (main): Call grub_search_init and
27530 * kern/rescue.c (grub_rescue_print_disks): Removed.
27531 (grub_rescue_print_devices): New function.
27532 (grub_rescue_cmd_ls): Use grub_device_iterate with
27533 grub_rescue_print_devices instead of grub_disk_dev_iterate with
27534 grub_rescue_print_disks.
27536 * kern/partition.c (grub_partition_iterate): Return the result of
27537 PARTMAP->ITERATE instead of GRUB_ERRNO.
27539 * kern/device.c: Include grub/partition.h.
27540 (grub_device_iterate): New function.
27542 * include/grub/partition.h (grub_partition_iterate): Return int
27543 instead of grub_err_t.
27545 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
27547 [GRUB_UTIL] (grub_search_fini): Likewise.
27549 * include/grub/device.h (grub_device_iterate): New prototype.
27551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
27553 (pkgdata_MODULES): Added search.mod.
27554 (search_mod_SOURCES): New variable.
27555 (search_mod_CFLAGS): Likewise.
27557 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
27558 (pkgdata_MODULES): Added search.mod.
27559 (search_mod_SOURCES): New variable.
27560 (search_mod_CFLAGS): Likewise.
27562 * commands/ls.c (grub_ls_list_disks): Renamed to ...
27563 (grub_ls_list_devices): ... this, and use grub_device_iterate.
27564 All callers changed.
27566 * DISTLIST: Added commands/search.c.
27568 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
27570 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
27572 (grub_getcharwidth): New function.
27574 * kern/misc.c (grub_utf8_to_ucs4): New function.
27576 * include/grub/term.h (struct grub_term): Added a new member
27578 (grub_getcharwidth): New prototype.
27580 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
27582 * term/i386/pc/console.c (map_char): New function. Segregated from
27583 grub_console_putchar.
27584 (grub_console_putchar): Use map_char.
27585 (grub_console_getcharwidth): New function.
27586 (grub_console_term): Specified grub_console_getcharwidth as
27589 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
27590 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
27592 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
27594 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
27595 on grub_strtoul completely.
27596 (write_char): Declare local variables in the beginning of the
27598 (grub_vesafb_getcharwidth): New function.
27599 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
27602 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
27604 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
27605 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
27606 commands/i386/pc/vbetest.c.
27608 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
27609 call grub_vbe_get_controller_info again, because the returned
27610 information is volatile.
27611 (grub_vbe_set_video_mode): Mostly rewritten.
27612 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
27613 grub_vbe_status_t correctly.
27614 (grub_vbe_get_video_mode_info): Likewise.
27615 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
27616 several if statements.
27618 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
27619 * commands/i386/pc/vbeinfo.c: ... this.
27621 * commands/i386/pc/vbe_test.c: Renamed to ...
27622 * commands/i386/pc/vbetest.c: ... this.
27624 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
27626 (grub_cmd_vbeinfo): ... this. Save video modes before
27627 iterating. Skip a video mode, if it is not available, not enough
27628 information is given or it is monochrome. Show the memory
27629 model. Leave the interpretation of MODEVAR to grub_strtoul
27631 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
27632 (GRUB_MOD_FINI): Likewise.
27634 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
27635 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
27636 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
27637 duplicated grub_env_get. Leave the interpretation of MODEVAR to
27638 grub_strtoul completely.
27639 (real2pm): Removed.
27640 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
27641 (GRUB_MOD_FINI): Likewise.
27643 * normal/misc.c: Include grub/mm.h.
27645 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
27646 vbe_list_modes with vbetest.mod and vbeinfo.mod.
27647 (vbe_list_modes_mod_SOURCES): Removed.
27648 (vbe_list_modes_mod_CFLAGS): Likewise.
27649 (vbe_test_mod_SOURCES): Likewise.
27650 (vbe_test_mod_CFLAGS): Likewise.
27651 (vbeinfo_mod_SOURCES): New variable.
27652 (vbeinfo_mod_CFLAGS): Likewise.
27653 (vbetest_mod_SOURCES): Likewise.
27654 (vbetest_mod_CFLAGS): Likewise.
27656 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
27658 * normal/misc.c: New file.
27660 * DISTLIST: Added normal/misc.c.
27662 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
27663 DISK to HOOK. Call HOOK with DISK.
27664 * partmap/apple.c (apple_partition_map_iterate): Likewise.
27665 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27666 * partmap/sun.c (sun_partition_map_iterate): Likewise.
27668 * normal/menu_entry.c (struct screen): Added a new member
27669 "completion_shown".
27670 (completion_buffer): New global variable.
27671 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
27672 (store_completion): New function.
27673 (complete): Likewise.
27674 (clear_completions): Likewise.
27675 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
27676 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
27677 a tab, call complete.
27679 * normal/completion.c (disk_dev): Removed.
27680 (print_simple_completion): Likewise.
27681 (print_partition_completion): Likewise.
27682 (print_func): New global variable.
27683 (add_completion): Do not take the arguments WHAT or PRINT any
27684 longer. Added a new argument TYPE. Instead of printing directly,
27685 call PRINT_FUNC if not NULL.
27686 All callers changed.
27687 (complete_device): Use a local variable DEV instead of
27688 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
27689 (grub_normal_do_completion): Take a new argument HOOK. Do not
27690 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
27691 empty string, return NULL instead.
27692 All callers changed.
27694 * normal/cmdline.c (print_completion): New function.
27696 * kern/partition.c (grub_partition_iterate): Add an argument DISK
27698 All callers changed.
27700 * kern/disk.c (grub_print_partinfo): Removed.
27702 * include/grub/partition.h (struct grub_partition_map): Add a new
27703 argument DISK into HOOK of ITERATE.
27704 (grub_partition_iterate): Add a new argument DISK to HOOK.
27706 * include/grub/normal.h (enum grub_completion_type): New enum.
27707 (grub_completion_type_t): New type.
27708 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
27709 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
27710 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
27711 (GRUB_COMPLETION_TYPE_FILE): Likewise.
27712 (grub_normal_do_completion): Added a new argument HOOK.
27713 (grub_normal_print_device_info): New prototype.
27715 * include/grub/disk.h (grub_print_partinfo): Removed.
27717 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
27718 (normal_mod_SOURCES): Likewise.
27719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27720 (normal_mod_SOURCES): Likewise.
27722 * commands/ls.c (grub_ls_list_disks): Use
27723 grub_normal_print_device_info instead of grub_print_partinfo. Free
27725 (grub_ls_list_files): Use grub_normal_print_device_info instead of
27726 duplicating the code.
27728 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
27730 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
27731 follow GCS more precisely.
27732 * commands/i386/pc/vbe_test.c: Likewise.
27733 * include/grub/i386/pc/vbe.h: Likewise.
27734 * term/i386/pc/vesafb.c: Likewise.
27735 * video/i386/pc/vbe.c: Likewise.
27737 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
27739 * DISTLIST: Added term/i386/pc/vesafb.c
27740 DISTLIST: Added video/i386/pc/vbe.c
27741 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
27742 DISTLIST: Added commands/i386/pc/vbe_test.c.
27743 * commands/i386/pc/vbe_list_modes.c: New file.
27744 * commands/i386/pc/vbe_test.c: Likewise.
27745 * term/i386/pc/vesafb.c: Likewise.
27746 * video/i386/pc/vbe.c: Likewise.
27747 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
27748 (grub_vbe_probe) Added prototype.
27749 (grub_vbe_set_video_mode) Likewise.
27750 (grub_vbe_get_video_mode) Likewise.
27751 (grub_vbe_get_video_mode_info) Likewise.
27752 (grub_vbe_set_pixel_rgb) Likewise.
27753 (grub_vbe_set_pixel_index) Likewise.
27754 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
27755 (pkgdata_MODULES): Added vesafb.mod.
27756 (pkgdata_MODULES): Added vbe_list_modes.mod.
27757 (pkgdata_MODULES): Added vbe_test.mod.
27758 (vbe_mod_SOURCES): Added.
27759 (vbe_mod_CFLAGS): Likewise.
27760 (vesafb_mod_SOURCES): Likewise.
27761 (vesafb_mod_CFLAGS): Likewise.
27762 (vbe_list_modes_mod_SOURCES): Likewise.
27763 (vbe_list_modes_mod_CFLAGS): Likewise.
27764 (vbe_test_mod_SOURCES): Likewise.
27765 (vbe_test_mod_CFLAGS): Likewise.
27767 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
27769 * normal/command.c (grub_command_execute): If INTERACTIVE is
27770 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
27771 CMDLINE. Disable the pager if INTERACTIVE is true.
27772 All callers are changed.
27774 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
27775 before reading a config file.
27776 * normal/main.c (read_config_file): Even if a command is not
27777 found, register it if it is within an entry.
27779 * util/grub-emu.c: Include sys/types.h and unistd.h.
27780 (options): Added --hold.
27781 (struct arguments): Added a new member "hold".
27782 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
27784 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
27785 cleared by a debugger, if it is not zero.
27787 * include/grub/normal.h (grub_command_execute): Add an argument
27790 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
27792 * DISTLIST: Added include/grub/i386/pc/vbe.h.
27794 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
27796 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
27797 program with another one, because the old one didn't detect a bug
27798 in gcc-3.4. Always use regparm 2, because the new test is still
27799 not enough for gcc-4.0. Someone must investigate a simple test
27800 case which detects a bug in gcc-4.0.
27802 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
27804 * DISTLIST: Added normal/completion.c.
27806 * normal/completion.c: New file.
27808 * term/i386/pc/console.c (grub_console_getwh): New function.
27809 (grub_console_term): Assign grub_console_getwh to getwh.
27811 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
27812 function is defined in normal/completion.c as
27813 grub_normal_do_completion.
27814 (grub_cmdline_get): Use grub_normal_do_completion instead of
27817 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
27818 returns non-zero, otherwise return 0.
27819 (grub_partition_iterate): First, probe the partition map. Then,
27820 call ITERATE only for this partition map.
27822 * kern/misc.c (grub_strncmp): Rewritten.
27824 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
27825 returns non-zero. Otherwise return 0.
27827 * include/grub/partition.h (grub_partition_map_iterate): Return
27828 int instead of void.
27830 * include/grub/normal.h (grub_normal_do_completion): New prototype.
27832 * include/grub/misc.h (grub_strncmp): Change the type of N to
27835 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
27838 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
27839 unsigned explicitly before comparing it with I.
27841 * kern/main.c (grub_env_write_root): Add the attribute unused into
27844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
27845 normal/completion.c.
27846 (normal_mod_SOURCES): Likewise.
27847 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27848 (normal_mod_SOURCES): Likewise.
27850 * normal/command.c (grub_iterate_commands): If ITERATE returns
27851 non-zero, return one immediately.
27853 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
27855 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
27856 * kern/i386/pc/startup.S: Updated Global Descriptor table's
27858 (grub_vbe_get_controller_info): New function.
27859 (grub_vbe_get_mode_info): Likewise.
27860 (grub_vbe_set_mode): Likewise.
27861 (grub_vbe_get_mode): Likewise.
27862 (grub_vbe_set_memory_window): Likewise.
27863 (grub_vbe_get_memory_window): Likewise.
27864 (grub_vbe_set_scanline_length): Likewise.
27865 (grub_vbe_get_scanline_length): Likewise.
27866 (grub_vbe_set_display_start): Likewise.
27867 (grub_vbe_get_display_start): Likewise.
27868 (grub_vbe_set_palette_data): Likewise.
27869 * include/grub/i386/pc/vbe.h: New file.
27871 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
27873 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
27874 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
27875 * DISTLIST: Likewise.
27876 * kern/ieee1275/of.c: Moved to ...
27877 * kern/ieee1275/ieee1275.c: ... here.
27879 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
27881 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
27882 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
27883 Pass 0 as `end' parameter to grub_strtoul().
27885 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
27887 * include/grub/powerpc/ieee1275/console.h: Do not include
27888 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
27890 (grub_console_cur_color): Remove i386-specific prototype.
27891 (grub_console_real_putchar): Likewise.
27892 (grub_console_checkkey): Likewise.
27893 (grub_console_getkey): Likewise.
27894 (grub_console_getxy): Likewise.
27895 (grub_console_gotoxy): Likewise.
27896 (grub_console_cls): Likewise.
27897 (grub_console_setcursor): Likewise.
27898 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
27899 Include <grub/machine/console.h>.
27900 * term/ieee1275/ofconsole.c: Likewise.
27902 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
27904 * Makefile.in (LIBLZO): New variable.
27906 * configure.ac: Check for LZO version 2.
27908 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
27909 lzo/lzo1x.h instead of lzo1x.h.
27911 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
27914 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
27915 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
27917 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
27918 copying the data from PARTITION to P.
27920 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
27922 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
27923 negative, unload the module.
27925 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
27926 map is "pc_partition_map" but not "pc".
27927 (usage): Fix the description. The options are --boot-image and
27928 --core-image but not --boot-file or --core-file.
27929 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
27930 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
27933 * util/i386/pc/grub-install.in: Do not specify --boot-file or
27934 --core-file. Specify INSTALL_DEVICE as an argument.
27936 * util/console.c: Include config.h.
27937 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
27938 [HAVE_NCURSES_H]: Include ncurses.h.
27939 [HAVE_CURSES_H]: Include curses.h.
27940 [!A_NORMAL] (A_NORMAL): Defined as zero.
27941 [!A_STANDOUT] (A_STANDOUT): Likewise.
27943 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
27945 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
27947 * configure.ac: Check for curses libraries and headers.
27949 * Makefile.in (LIBCURSES): New variable.
27951 * genmk.rb (Script::rule): Set the executable bits.
27953 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
27954 name of the PC partition map is "pc_partition_map" but not "pc".
27956 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
27958 * util/i386/pc/grub-install.in (grub_probefs): New variable.
27959 (modules): Likewise.
27960 (usage): Added descriptions for --modules and --grub-probefs.
27961 Handle --modules and --grub-probefs. Save the arguments in MODULES
27962 and GRUB_PROBEFS, respectively.
27963 Auto-detect a filesystem module against GRUBDIR. If the result is
27964 empty and modules are not specified explicitly, abort the
27965 installation. Add the result to MODULES.
27967 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
27968 disk/powerpc/ieee1275/ofdisk.c,
27969 include/grub/powerpc/ieee1275/init.h and
27970 term/powerpc/ieee1275/ofconsole.c.
27971 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
27972 term/ieee1275/ofconsole.c.
27974 * include/grub/powerpc/ieee1275/console.h: Resurrected.
27976 * COPYING: Upgraded to the latest version. Only the address of the
27977 FSF office has changed.
27979 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
27981 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
27982 kern/ieee1275.c with kern/ieee1275/of.c.
27984 * kern/ieee1275.c: Moved to ...
27985 * kern/ieee1275/of.c: ... here.
27987 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
27989 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
27992 * config.guess: Updated to the latest version from gnulib.
27993 * config.sub: Likewise.
27994 * install.sh: Likewise.
27995 * mkinstalldirs: Likewise.
27997 * include/grub/console.h: Removed. This file is arch-specific. Do
27998 not put this in include/grub.
28000 * include/grub/i386/pc/console.h: Resurrected.
28002 * util/console.c: Include grub/machine/console.h instead of
28004 * util/grub-emu.c: Likewise.
28006 2005-08-04 Marco Gerards <metgerards@student.han.nl>
28008 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
28011 From Vincent Pelletier <subdino2004@yahoo.fr>
28012 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
28013 Redefined to use grub_getwh.
28014 (grub_term): New member named getwh.
28015 (grub_getwh): New prototype.
28016 * kern/term.c (grub_getwh): New function.
28017 * term/i386/pc/console.c (grub_console_getwh): New function.
28018 (grub_console_term): New member `getwh'.
28019 * term/i386/pc/vga.c (grub_vga_getwh): New function.
28020 (grub_vga_term): New member `getwh'.
28021 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
28023 (grub_ofconsole_getw): New function.
28024 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
28025 (grub_ofconsole_term): New field named getwh and new initial
28028 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
28030 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
28031 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
28032 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
28033 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
28034 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
28035 of <grub/machine/ieee1275.h>.
28036 * commands/ieee1275/reboot.c: Likewise.
28037 * boot/powerpc/ieee1275/ieee1275.c: Move ...
28038 * kern/ieee1275.c: ... to here. All users updated. Change all
28039 parameter structs to use new type `grub_ieee1275_cell_t'.
28040 * term/powerpc/ieee1275/ofconsole.c: Move ...
28041 * term/ieee1275/ofconsole.c: ... to here. All users updated.
28042 * disk/powerpc/ieee1275/ofdisk.c: Move ...
28043 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
28044 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
28046 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
28047 Remove unused prototypes. All users updated.
28048 * include/grub/powerpc/ieee1275/console.h: Removed.
28049 * include/grub/powerpc/ieee1275/ieee1275.h: Define
28050 `grub_ieee1275_cell_t'.
28051 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
28052 Cast comparisons with -1 to the correct type.
28053 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
28054 type to match `grub_ieee1275_entry_fn'.
28056 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
28058 * DISTLIST: Added util/i386/pc/grub-probefs.c.
28060 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
28061 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
28063 (grub_probefs_SOURCES): New variable.
28065 * util/i386/pc/grub-probefs.c: New file.
28067 * util/i386/pc/grub-setup.c (main): Call
28068 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
28069 grub_hfs_init and grub_jfs_init to initialize the system. Call
28070 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
28071 grub_pc_partition_map_fini to finish the system.
28073 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
28075 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
28077 (grub_multiboot_load_elf32): Likewise.
28078 (grub_multiboot_is_elf64): Likewise.
28079 (grub_multiboot_load_elf64): Likewise.
28080 (grub_multiboot_load_elf): Likewise.
28081 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
28082 an ELF32 or ELF64 file.
28083 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
28085 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
28086 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
28087 NULL before calling FS->LABEL.
28088 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
28089 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
28090 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
28091 before calling FS->LABEL.
28093 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
28095 * util/i386/pc/grub-install.in (datadir): New variable.
28097 (pkgdatadir): New variable.
28098 (pkglibdir): Removed.
28100 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
28102 * DISTLIST: Added util/i386/pc/grub-install.in.
28104 * util/i386/pc/grub-install.in: New file.
28106 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
28107 (grub_install_SOURCES): Likewise.
28109 * genmk.rb: Added support for scripts.
28110 (Script): New class.
28111 (scripts): New variable.
28113 * Makefile.in (install-local): Install sbin_SCRIPTS by
28115 (uninstall): Remove sbin_SCRIPTS.
28117 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
28118 device, try to get a GRUB device by
28119 grub_util_biosdisk_get_grub_dev.
28122 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
28123 description for --device-map.
28125 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
28127 Change the semantics of variable hooks. They now return strings
28128 instead of error values.
28130 * util/i386/pc/grub-setup.c: Include grub/env.h.
28131 (setup): Use grub_device_set_root instead of grub_env_set.
28133 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
28134 grub_env_get instead of grub_device_set_root and
28135 grub_device_get_root, respectively.
28137 * kern/main.c (grub_env_write_root): New function.
28138 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
28139 grub_env_set instead of grub_device_set_root.
28141 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
28143 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
28144 rather than calling ENV->WRITE_HOOK afterwards.
28145 (grub_env_get): Return the result of ENV->READ_HOOK rather than
28146 passing a pointer of a pointer.
28147 (grub_register_variable_hook): Change the types of "read_hook" and
28148 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
28150 Allocate the default empty string on the heap, because this string
28151 may be freed later.
28153 * kern/device.c: Include grub/env.h.
28154 (grub_device_set_root): Removed.
28155 (grub_device_get_root): Likewise.
28156 (grub_device_open): Use grub_env_get instead of
28157 grub_device_get_root.
28159 * include/grub/env.h (grub_env_read_hook_t): New type.
28160 (grub_env_write_hook_t): Likewise.
28161 (grub_env_var): Change the types of "read_hook" and "write_hook"
28162 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
28163 (grub_register_variable_hook): Likewise.
28165 * include/grub/device.h (grub_device_set_root): Removed.
28166 (grub_device_set_root): Likewise.
28168 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
28169 make sure that DIRNAME terminates with '/', so that
28170 grub_fat_find_dir will fail if PATH is not a directory.
28172 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
28174 Use the qualifier auto for print_files and print_files_long.
28175 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
28177 Put a newline only if there is no error.
28178 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
28181 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
28183 * kern/partition.c (grub_partition_probe): Initialize PART to
28184 NULL. Otherwise, when no partition map is registered, this returns
28187 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
28189 * partmap/apple.c (apple_partition_map_iterate): Check if POS
28190 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
28193 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
28195 * commands/ls.c (grub_ls_list_disks): Print the filesystem
28196 information on each device, if it does not have partitions. Print
28197 "Device" instead of "Disk", because this function is not specific
28200 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
28201 static to ensure that it is put on the memory rather than a
28204 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28206 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
28207 (grub_cat_init): Likewise.
28208 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
28209 (options): Likewise.
28210 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
28211 (grub_configfile_init): Likewise.
28212 * font/manager.c (GRUB_MOD_INIT): Likewise.
28213 * commands/help.c (GRUB_MOD_INIT): Likewise.
28214 (grub_help_init): Likewise.
28215 * normal/command.c (grub_command_init): Likewise.
28216 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
28217 * disk/loopback.c (grub_loop_init): Likewise.
28218 (GRUB_MOD_INIT): Likewise.
28219 * commands/ls.c (grub_ls_init): Likewise.
28220 (GRUB_MOD_INIT): Likewise.
28221 (options): Likewise.
28222 * commands/boot.c (grub_boot_init): Likewise.
28223 (GRUB_MOD_INIT): Likewise.
28224 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
28225 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
28226 (GRUB_MOD_INIT): Likewise.
28227 * commands/cmp.c (grub_cmp_init): Likewise.
28228 (GRUB_MOD_INIT): Likewise.
28230 * normal/arg.c: Use <> instead of "" to include header files.
28231 (SHORT_ARG_HELP): New macro.
28232 (SHORT_ARG_USAGE): Likewise.
28233 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
28234 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
28236 (find_short): Check if C is 'h' or 'u' explicitly.
28237 (grub_arg_show_help): Use space characters instead of tabs. Treat
28238 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
28239 are shown with --help and --usage only if they are not used for
28240 the command itself.
28241 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
28244 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
28245 const into "longarg". Change the type of "shortarg" to int.
28247 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28249 * boot/i386/pc/boot.S (boot_drive_check): New label.
28251 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
28254 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
28255 which do not pass a boot drive correctly. Copied from GRUB Legacy.
28257 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28259 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
28260 When turning off Gate A20, skip the check and return immediately,
28261 because this is not fatal usually.
28263 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28265 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
28266 be 0x7C00 instead of 0x8000.
28268 * boot/i386/pc/pxeboot.S: Rewritten.
28270 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
28272 (gate_a20_check_state): Read a byte from 0x108000. Invert the
28275 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
28277 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
28278 robustness. This routine now supports a BIOS call and System
28279 Control Port A to modify the gate A20.
28281 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28282 Increased to 0x440.
28284 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
28286 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
28287 device path and resulting ihandle.
28288 (grub_ofdisk_close): dprintf the ihandle being closed.
28289 (grub_ofdisk_read): dprintf function parameters.
28290 * kern/mm.c (grub_mm_init_region): Likewise.
28291 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
28292 (grub_linux_boot): dprintf the Linux entry point, initrd address and
28293 size, and boot arguments.
28294 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
28295 before loading into memory.
28296 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
28297 before loading into memory.
28299 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
28301 * kern/mm.c: Added much documentation.
28302 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
28303 8, set to 5 instead of 8.
28305 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
28307 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
28309 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
28310 (grub_mkdevicemap_SOURCES): New variable.
28312 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
28313 lib/device.c of GRUB Legacy.
28315 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
28317 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
28318 instead of PATH is NULL.
28320 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
28322 * commands/cmp.c (BUFFER_SIZE): New macro.
28323 (grub_cmd_cmp): Close the right file at the right time. Compare
28324 only data just read. Don't report files of different size as
28325 identical. Dynamically allocate buffers. Move variable
28326 declarations at the beginning of function.
28328 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
28330 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
28333 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
28335 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
28336 when backspace is pressed at beginning of line.
28338 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
28340 * DISTLIST: Added genfslist.sh.
28342 * normal/main.c (fs_module_list): New variable.
28343 (autoload_fs_module): New function.
28344 (read_fs_list): Likewise.
28345 (grub_normal_execute): Call read_fs_list.
28347 * kern/fs.c (grub_fs_autoload_hook): New variable.
28348 (grub_fs_probe): Added support for auto-loading.
28350 * include/grub/normal.h (struct grub_fs_module_list): New struct.
28351 (grub_fs_module_list_t): New type.
28353 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
28354 (grub_fs_autoload_hook): New prototype.
28356 * genfslist.sh: New file.
28358 * genmk.rb: Added a rule to generate a filesystem list.
28360 2005-06-30 Marco Gerards <metgerards@student.han.nl>
28362 * configure.ac: Fix the test for cross-compiling.
28364 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
28365 define GRUB_UTIL anymore.
28367 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
28368 so this function works on other systems than just big endian.
28369 (load_modules): Likewise.
28370 (add_segments): Likewise.
28372 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
28374 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
28375 contains `l' modifier, get a long from va_arg().
28377 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
28379 * kern/mm.c (grub_free): If the next free block which is being
28380 merged is the first free block, set the first block to the block
28382 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
28384 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
28386 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
28387 `grub_ieee1275_chosen'.
28389 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
28391 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
28392 (grub_ieee1275_chosen): New variable.
28393 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
28395 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
28396 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
28397 Rename first argument to `phandle' for consistency.
28398 (grub_ieee1275_get_property_length): Likewise.
28399 (grub_ieee1275_next_property): Likewise. Change type of first argument
28400 to grub_ieee1275_phandle_t.
28401 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
28402 Move export next to declaration.
28403 (grub_ieee1275_chosen): New variable.
28404 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
28405 Correct cosmetic typo.
28406 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
28407 `grub_ieee1275_chosen'.
28408 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
28409 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
28410 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
28411 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
28412 `grub_ieee1275_chosen'.
28414 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
28416 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
28418 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
28419 /chosen/bootargs as "variable=value" pairs.
28421 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
28423 * include/grub/misc.h (grub_dprintf): New macro.
28424 (grub_real_dprintf): New prototype.
28425 (grub_strword): Likewise.
28426 (grub_iswordseparator): Likewise.
28427 * kern/misc.c (grub_real_dprintf): New function.
28428 (grub_strword): Likewise.
28429 (grub_iswordseparator): Likewise.
28431 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
28433 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
28434 (roundup): Remove macro.
28435 (grub_ieee1275_flags): Make static.
28436 (grub_ieee1275_realmode): Remove.
28437 (grub_ieee1275_test_flag): New function.
28438 (grub_ieee1275_set_flag): Likewise.
28439 (find_options): Rename to `grub_ieee1275_find_options'; update
28440 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
28441 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
28442 (cmain): New prototype.
28443 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
28444 `grub_ieee1275_flags' directly.
28445 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
28446 machine/biosdisk.h.
28447 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
28448 Don't include grub/machine/init.h.
28449 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
28450 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
28452 (grub_ieee1275_realmode): Likewise.
28453 (grub_ieee1275_flag): New enum.
28454 (grub_ieee1275_test_flag): New prototype.
28455 (grub_ieee1275_set_flag): New prototype.
28456 * include/grub/powerpc/ieee1275/init.h: Remove file.
28457 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
28458 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
28459 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
28460 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
28462 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
28463 `grub_ieee1275_test_flag'.
28464 (grub_ieee1275_encode_devname): Likewise.
28466 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
28468 * include/grub/powerpc/ieee1275/ieee1275.h
28469 (grub_ieee1275_encode_devname): New prototype.
28470 (grub_ieee1275_get_filename): Likewise.
28471 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
28473 (grub_set_prefix): Likewise.
28474 (grub_machine_init): Call grub_set_prefix.
28475 * kern/powerpc/ieee1275/openfw.c: Fix typos.
28476 (grub_parse_type): New enum.
28477 (grub_ieee1275_get_devargs): New function.
28478 (grub_ieee1275_get_devname): Likewise.
28479 (grub_ieee1275_parse_args): Likewise.
28480 (grub_ieee1275_get_filename): Likewise.
28481 (grub_ieee1275_encode_devname): Likewise.
28483 2005-03-30 Marco Gerards <metgerards@student.han.nl>
28485 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
28486 `grub_loader_unset'.
28488 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
28490 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
28491 instead of grub_ieee1275_interpret.
28492 (grub_halt_init): New function.
28493 (grub_halt_fini): Likewise.
28494 (GRUB_MOD_INIT): Correct message grammar.
28495 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
28496 instead of grub_ieee1275_interpret.
28497 (grub_reboot_init): New function.
28498 (grub_reboot_fini): Likewise.
28499 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
28500 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
28501 util/i386/pc/misc.c with commands/ieee1275/halt.c,
28502 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
28503 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
28505 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
28507 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
28509 (grub_halt): Likewise.
28510 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
28511 (cmain): Remove __attribute__((unused)).
28512 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
28513 (grub_heap_len): Likewise.
28514 (grub_machine_fini): New function.
28515 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
28516 (grub_halt): Likewise.
28517 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
28519 * util/powerpc/ieee1275/misc.c: New file.
28521 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
28523 * DISTLIST: New file.
28524 * gendistlist.sh: Likewise.
28526 * Makefile.in (COMMON_DISTFILES): Removed.
28527 (BOOT_DISTFILES): Likewise.
28528 (CONF_DISTFILES): Likewise.
28529 (DISK_DISTFILES): Likewise.
28530 (FS_DISTFILES): Likewise.
28531 (INCLUDE_DISTFILES): Likewise.
28532 (KERN_DISTFILES): Likewise.
28533 (LOADER_DISTFILES): Likewise.
28534 (TERM_DISTFILES): Likewise.
28535 (UTIL_DISTFILES): Likewise.
28536 (DISTFILES): Likewise.
28537 (uninstall): Uninstall files in $(pkgdata_DATA).
28538 (DISTLIST): New target.
28539 (distdir): Use the contents of the file DISTLIST to get a list of
28542 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
28544 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
28545 descriptor. This is ported from GRUB Legacy.
28547 * gencmdlist.sh: Added an extra semicolon to make it work with
28548 old sed versions. Reported by Robert Bihlmeyer
28549 <robbe@orcus.priv.at>.
28551 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
28553 Automatic loading of commands is supported.
28555 * normal/main.c (read_command_list): New function.
28556 (grub_normal_execute): Call read_command_list.
28558 * normal/command.c (grub_register_command): Return zero or CMD.
28559 Allocate CMD->NAME from the heap.
28560 Initialize CMD->MODULE_NAME to zero.
28561 Find the same name as well. If the same command is found and it is
28562 a dummy command, overwrite members. If it is not a dummy command,
28564 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
28565 (grub_command_find): If a dummy command is found, load a module
28566 and retry to find a command only once.
28568 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
28569 make sure that each command is loaded.
28571 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
28573 (struct grub_command): Remove const from the member `name'.
28574 Add a new member `module_name'.
28575 (grub_register_command): Return grub_command_t.
28577 * commands/help.c (grub_cmd_help): Call grub_command_find to make
28578 sure that each command is loaded.
28580 * genmk.rb (PModule::rule): Specify a module name without the
28581 suffix ".mod" to gencmdlist.sh.
28583 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
28585 * gencmdlist.sh: New file.
28587 * genmk.rb (PModule::rule): Generate a rule for a command list.
28589 Generate command.lst from $(COMMANDFILES).
28591 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
28592 (DATA): Added $(pkgdata_DATA).
28593 (install-local): Install files in $(pkgdata_DATA).
28595 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
28597 * term/i386/pc/vga.c (debug_command): Removed.
28598 (GRUB_MOD_INIT): Do not register the command "debug".
28600 From Hollis Blanchard:
28601 * commands/configfile.c: New file.
28602 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
28603 commands/configfile.c.
28604 (pkgdata_MODULES): Added configfile.mod.
28605 (configfile_mod_SOURCES): New variable.
28606 (configfile_mod_CFLAGS): Likewise.
28607 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
28608 commands/configfile.c.
28609 (pkgdata_MODULES): Added configfile.mod.
28610 (configfile_mod_SOURCES): New variable.
28611 (configfile_mod_CFLAGS): Likewise.
28612 * util/grub-emu.c (main): Call grub_configfile_init and
28613 grub_configfile_fini.
28614 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
28616 [GRUB_UTIL] (grub_configfile_fini): Likewise.
28618 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
28620 * normal/arg.c (grub_arg_show_help): Do not show the bug report
28623 * commands/help.c (grub_cmd_help): Do not print newlines after
28624 the last command in print_command_help.
28626 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
28628 * commands/default.h: New file.
28629 * commands/timeout.h: Likewise.
28630 * normal/context.c: Likewise.
28632 * util/misc.c: Do not include sys/times.h.
28633 Include sys/time.h and grub/machine/time.h.
28634 (grub_get_rtc): Rewritten with gettimeofday.
28636 * util/grub-emu.c (main): Call grub_default_init and
28637 grub_timeout_init before grub_normal_init, and call
28638 grub_timeout_fini and grub_default_fini after grub_main.
28640 * util/console.c (grub_ncurses_checkkey): Return the read
28643 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
28646 * normal/main.c (read_config_file): Push MENU. If this fails,
28647 print an error and wait for a user input.
28648 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
28649 If a menu is empty or an error occurs, pop MENU.
28650 (grub_normal_execute): Pop and free MENU after grub_menu_run
28653 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
28655 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
28657 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
28659 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
28661 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
28664 * include/grub/normal.h (struct grub_menu_list): New struct.
28665 (grub_menu_list_t): New type.
28666 (struct grub_context): New struct.
28667 (grub_context_t): New type.
28668 (grub_register_command): Got rid of EXPORT_FUNC.
28669 (grub_unregister_command): Likewise.
28670 (grub_context_get): New prototype.
28671 (grub_context_get_current_menu): Likewise.
28672 (grub_context_push_menu): Likewise.
28673 (grub_context_pop_menu): Likewise.
28674 [GRUB_UTIL] (grub_default_init): Likewise.
28675 [GRUB_UTIL] (grub_default_fini): Likewise.
28676 [GRUB_UTIL] (grub_timeout_init): Likewise.
28677 [GRUB_UTIL] (grub_timeout_fini): Likewise.
28679 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
28680 commands/timeout.c and normal/context.c.
28681 (pkgdata_MODULES): Added default.mod and timeout.mod.
28682 (normal_mod_SOURCES): Added normal/context.c.
28683 (default_mod_SOURCES): New variable.
28684 (default_mod_CFLAGS): Likewise.
28685 (timeout_mod_SOURCES): Likewise.
28686 (timeout_mod_CFLAGS): Likewise.
28687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
28689 (pkgdata_MODULES): Added default.mod and timeout.mod.
28690 (normal_mod_SOURCES): Added normal/context.c.
28691 (default_mod_SOURCES): New variable.
28692 (default_mod_CFLAGS): Likewise.
28693 (timeout_mod_SOURCES): Likewise.
28694 (timeout_mod_CFLAGS): Likewise.
28696 * Makefile.in (all-local): Added $(MKFILES).
28698 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
28700 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
28701 (grub_emu_SOURCES): Likewise.
28702 (pkgdata_MODULES): Add `sun.mod'.
28703 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
28704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
28706 (pkgdata_MODULES): Add `sun.mod'.
28707 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
28708 * include/grub/partition.h (grub_sun_partition_map_init): New
28710 (grub_sun_partition_map_fini): Likewise.
28711 * partmap/sun.c: New file.
28712 * util/grub-emu.c (main): Initialize and de-initialize the sun
28713 partitionmap support.
28715 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
28717 This implements an Emacs-like menu entry editor.
28719 * normal/menu_entry.c: New file.
28721 * util/console.c (grub_ncurses_putchar): Translate some Unicode
28722 characters to ASCII.
28723 (saved_char): New variable.
28724 (grub_ncurses_checkkey): Rewritten completely.
28725 (grub_ncurses_getkey): Likewise.
28726 (grub_ncurses_init): Call raw instead of cbreak.
28728 * normal/menu.c (print_entry): Do not put a space.
28729 (init_page): Renamed to ...
28730 (grub_menu_init_page): ... this. All callers changed.
28731 (edit_menu_entry): Removed.
28732 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
28734 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
28736 * kern/misc.c (grub_vprintf): Call grub_refresh.
28738 * normal/menu.c (DISP_LEFT): Renamed to ...
28739 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
28740 * normal/menu.c (DISP_UP): Renamed to ...
28741 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
28742 * normal/menu.c (DISP_RIGHT): Renamed to ...
28743 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
28744 * normal/menu.c (DISP_DOWN): Renamed to ...
28745 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
28746 * normal/menu.c (DISP_HLINE): Renamed to ...
28747 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
28748 * normal/menu.c (DISP_VLINE): Renamed to ...
28749 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
28750 * normal/menu.c (DISP_UL): Renamed to ...
28751 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
28752 * normal/menu.c (DISP_UR): Renamed to ...
28753 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
28754 * normal/menu.c (DISP_LL): Renamed to ...
28755 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
28756 * normal/menu.c (DISP_LR): Renamed to ...
28757 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
28758 * normal/menu.c (TERM_WIDTH): Renamed to ...
28759 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
28760 * normal/menu.c (TERM_HEIGHT): Renamed to ...
28761 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
28762 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
28763 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
28764 * normal/menu.c (TERM_MARGIN): Renamed to ...
28765 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
28766 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
28767 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
28768 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
28769 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
28770 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
28771 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
28772 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
28773 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
28774 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
28775 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
28776 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
28777 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
28778 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
28779 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
28780 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
28781 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
28782 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
28783 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
28784 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
28785 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
28786 All callers changed.
28788 * include/grub/normal.h: New prototype.
28790 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
28791 normal/menu_entry.c.
28792 (normal_mod_SOURCES): Likewise.
28793 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28794 (normal_mod_SOURCES): Likewise.
28796 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
28798 * include/grub/normal.h (grub_halt_init): New prototype.
28799 (grub_halt_fini): Likewise.
28800 (grub_reboot_init): Likewise.
28801 (grub_reboot_fini): Likewise.
28803 * util/grub-emu.c: Include signal.h.
28804 (main_env): New global variable.
28805 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
28807 (grub_machine_fini): New function.
28808 (main): Call grub_halt_init and grub_reboot_init before
28809 grub_main, and grub_reboot_fini and grub_halt_fini after it.
28810 Call setjmp with MAIN_ENV to go back afterwards.
28811 Call grub_machine_fini right before return.
28813 * include/grub/util/misc.h: Include setjmp.h.
28814 (main_env): New prototype.
28816 * include/grub/kernel.h (grub_machine_fini): New prototype.
28817 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
28818 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
28820 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
28821 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
28822 * term/i386/pc/console.c (grub_console_fini): Likewise.
28824 * util/i386/pc/misc.c: New file.
28826 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
28827 util/i386/pc/misc.c, commands/i386/pc/halt.c and
28828 commands/i386/pc/reboot.c.
28830 2005-02-14 Guillem Jover <guillem@hadrons.org>
28832 * include/grub/dl.h (grub_dl_check_header): New prototype.
28833 (grub_arch_dl_check_header): Change return type to grub_err_t,
28834 remove size parameter and export function. Update all callers.
28835 * kern/dl.c (grub_dl_check_header): New function.
28836 (grub_dl_load_core): Use `grub_dl_check_header' instead of
28837 `grub_arch_dl_check_header'. Check ELF type. Check if sections
28838 are inside the core.
28839 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
28840 independent ELF header checks.
28841 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
28842 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
28843 `grub_dl_check_header' instead of explicit checks. Check for the
28845 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
28846 `grub_dl_check_header' instead of explicit checks. Remove arch
28847 specific ELF header checks.
28849 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
28852 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
28854 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
28855 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
28857 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
28859 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
28860 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
28861 (part_map_iterate): Clear `grub_errno' and return 0 if
28862 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
28863 * partmap/amiga.c (amiga_partition_map_iterate): Return
28864 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
28865 * partmap/apple.c (apple_partition_map_iterate): Likewise.
28867 2005-02-01 Guillem Jover <guillem@hadrons.org>
28869 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
28872 2005-01-31 Marco Gerards <metgerards@student.han.nl>
28874 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
28876 (grub_rescue_cmd_linux): New prototype.
28877 (grub_rescue_cmd_initrd): Likewise.
28878 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
28880 (grub_linux_release_mem): Release the memory for the initrd.
28881 (grub_load_linux): Renamed from this...
28882 (grub_rescue_cmd_linux): ...To this. Changed all callers.
28883 Changed `entry' not to be static. Loop over memory regions to
28884 find another one when the default fails.
28885 (grub_rescue_cmd_initrd): New function.
28886 (grub_linux_init): Remove function.
28887 (grub_linux_fini): Likewise.
28888 (GRUB_MOD_INIT): Register `initrd'.
28889 (GRUB_MOD_FINI): Unregister `initrd'.
28890 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
28892 (grub_linux_normal_fini): Likewise.
28893 (GRUB_MOD_INIT): Register `initrd'.
28894 (GRUB_MOD_FINI): Unregister `initrd'.
28896 2005-01-31 Marco Gerards <metgerards@student.han.nl>
28898 * commands/help.c: New file.
28899 * normal/arg.c (show_help): Renamed to...
28900 (grub_arg_show_help): ... this.
28901 * commands/i386/pc/halt.c: New file.
28902 * commands/i386/pc/reboot.c: Likewise.
28903 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
28904 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
28905 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
28906 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
28908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
28910 (pkgdata_MODULES): Add `help.mod'.
28911 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
28912 * grub/i386/pc/init.h (grub_reboot): New prototype.
28913 (grub_halt): Likewise.
28914 * include/grub/normal.h (grub_arg_show_help): New prototype.
28915 (grub_help_init): Likewise.
28916 (grub_help_fini): Likewise.
28917 * util/grub-emu.c (main): Initialize and deinitialize the help
28920 * normal/cmdline.c (grub_cmdline_get): Doc fix.
28922 * normal/command.c (grub_command_init): Fixed the description of
28923 the `set' and `unset' commands.
28925 2005-01-31 Marco Gerards <metgerards@student.han.nl>
28927 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
28929 * commands/ieee1275/halt.c: New file.
28930 * commands/ieee1275/reboot.c: Likewise.
28931 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
28932 `__attribute__ ((unused))'. Some GCS related fixed.
28933 (grub_suspend_init) [GRUB_UTIL]: Function removed.
28934 (grub_suspend_fini): Likewise.
28935 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
28937 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
28938 (halt_mod_CFLAGS): New variables.
28939 * include/grub/powerpc/ieee1275/ieee1275.h
28940 (grub_ieee1275_interpret): New prototype.
28942 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
28944 * include/grub/misc.h (memmove): New prototype.
28945 (memcpy): Likewise.
28947 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
28949 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
28950 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
28952 2005-01-22 Marco Gerards <metgerards@student.han.nl>
28954 * kern/misc.c (grub_strndup): Function rewritten.
28956 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
28958 * normal/menu.c (TERM_WIDTH): Macro redefined.
28959 (TERM_TOP_BORDER_Y): Likewise.
28960 (draw_border): Replaced while-loop by a for-loop. Make the number
28961 of lines consistent with the number of lines displayed in
28962 print_entries. Added a margin below the rectangle.
28963 (print_entry): Make the entry fit in the rectangle.
28964 (print_entries): Display the scroll arrows next to the right
28967 2005-01-21 Marco Gerards <metgerards@student.han.nl>
28969 * fs/minix.c (grub_minix_find_file): Reserve more space for
28970 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
28971 `grub_strncpy' to copy `path' into it.
28973 2005-01-21 Marco Gerards <metgerards@student.han.nl>
28975 Add the loopback device, a device via which files can be accessed
28978 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
28979 (pkgdata_MODULES): Add loopback.mod.
28980 (loopback_mod_SOURCES): New variable.
28981 (loopback_mod_CFLAGS): Likewise.
28982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
28984 (pkgdata_MODULES): Add loopback.mod.
28985 (loopback_mod_SOURCES): New variable.
28986 (loopback_mod_CFLAGS): Likewise.
28987 * disk/loopback.c: new file.
28988 * include/grub/normal.h (grub_loop_init): New prototype.
28989 (grub_loop_fini): New prototype.
28990 * util/grub-emu.c (main): Initialize and de-initialize loopback
28992 * include/grub/disk.h (grub_disk_dev_id): Add
28993 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
28995 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
28997 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
28999 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
29000 (suspend_mod_SOURCES): New variable.
29001 (suspend_mod_CFLAGS): Likewise.
29002 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
29004 * commands/ieee1275/suspend.c: New file.
29006 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29008 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
29009 ((unused))' to `__attribute__ ((used))'.
29010 (GRUB_MOD_FINI): Likewise.
29011 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
29012 * genmk.rb (PModule): Assign space to common symbols when linking
29015 2005-01-20 Marco Gerards <metgerards@student.han.nl>
29017 * include/grub/mm.h (grub_mm_init_region): Change the type of the
29018 `unsigned' arguments to `grub_size_t'.
29019 (grub_malloc): Likewise.
29020 (grub_realloc): Likewise.
29021 (grub_memalign): Likewise.
29022 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
29023 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
29024 * util/misc.c (grub_malloc): Likewise.
29025 (grub_realloc): Likewise.
29026 * kern/mm.c (get_header_from_pointer): Change the casts to
29027 `unsigned' into a cast to `grub_size_t'.
29029 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
29030 point to `currnode' when `currnode' is changed.
29032 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
29033 Schottelius <nico-linux@schottelius.org>.
29035 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
29037 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
29038 (note_path): Remove variable.
29039 (GRUB_IEEE1275_NOTE_NAME): New macro.
29040 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
29041 (grub_ieee1275_note_hdr): New structure.
29042 (grub_ieee1275_note_desc): Likewise.
29043 (grub_ieee1275_note): Likewise.
29044 (load_note): Remove `dir' argument. All callers updated. Remove
29045 `note_img' and `path'. Do not load a file from `note_path'.
29046 Initialize a struct grub_ieee1275_note and write that to `out'.
29047 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
29049 2005-01-05 Marco Gerards <metgerards@student.han.nl>
29051 * util/misc.c (grub_util_read_image): Revert last change. It
29052 called `grub_util_read_at', which seeks from the beginning of the
29055 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
29057 * TODO: Add note about endianness in grub-mkimage.
29058 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
29060 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
29061 (grub_mkimage_SOURCES): New target.
29062 * include/grub/kernel.h (grub_start_addr): Remove variable.
29063 (grub_end_addr): Likewise.
29064 (grub_total_module_size): Likewise.
29065 (grub_kernel_image_size): Likewise.
29066 (GRUB_MODULE_MAGIC): New constant.
29067 (grub_module_info): New structure.
29068 (grub_arch_modules_addr): New prototype.
29069 (grub_get_end_addr): Remove prototype.
29070 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
29071 * include/grub/powerpc/ieee1275/kernel.h: New file.
29072 * include/grub/util/misc.h (grub_util_get_fp_size): New
29074 (grub_util_read_at): Likewise.
29075 (grub_util_write_image_at): Likewise.
29076 * kern/main.c (grub_get_end_addr): Remove function.
29077 (grub_load_modules): Call grub_arch_modules_addr instead of using
29078 grub_end_addr. Look for a grub_module_info struct in memory. Use
29079 the grub_module_info fields instead of calling grub_get_end_addr
29080 as loop conditions. Move grub_add_unused_region code here.
29081 (grub_add_unused_region): Remove function.
29082 * kern/i386/pc/init.c: Include grub/cache.h.
29083 (grub_machine_init): Remove call to grub_get_end_addr. Remove
29084 one call to add_mem_region.
29085 (grub_arch_modules_addr): New function.
29086 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
29087 (grub_total_module_size): Likewise.
29088 Include grub/machine/kernel.h.
29089 (grub_arch_modules_addr): New function.
29090 * util/grub-emu.c (grub_end_addr): Remove variable.
29091 (grub_total_module_size): Likewise.
29092 (grub_arch_modules_addr): New function.
29093 * util/misc.c: Include unistd.h.
29094 (grub_util_get_fp_size): New function.
29095 (grub_util_read_at): Likewise.
29096 (grub_util_write_image_at): Likewise.
29097 (grub_util_read_image): Call grub_util_read_at.
29098 (grub_util_write_image): Call grub_util_write_image_at.
29099 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
29100 additional memory in kernel_img for a struct grub_module_info.
29101 Fill in that grub_module_info.
29102 * util/powerpc/ieee1275/grub-mkimage.c: New file.
29104 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
29106 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
29108 * include/grub/powerpc/ieee1275/ieee1275.h
29109 (grub_ieee1275_milliseconds): New prototype.
29110 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
29112 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
29113 grub_ieee1275_milliseconds.
29115 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
29117 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
29119 (find_options): New function.
29120 (cmain): Call find_options.
29121 * include/grub/powerpc/ieee1275/ieee1275.h
29122 (grub_ieee1275_realmode): New extern variable.
29123 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
29124 grub_map if grub_ieee1275_realmode is false.
29126 2004-12-29 Marco Gerards <metgerards@student.han.nl>
29128 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
29129 lines are inserted and make it work like readline. Reported by
29130 Vincent Pelletier <subdino2004@yahoo.fr>.
29132 2004-12-28 Marco Gerards <metgerards@student.han.nl>
29134 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
29136 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
29137 `kern/powerpc/cache.S'.
29139 2004-12-27 Marco Gerards <metgerards@student.han.nl>
29141 * genmk.rb: Handle the `Program' class in the main loop. Written
29142 by Johan Rydberg <jrydberg@gnu.org>.
29143 (Program): New class.
29144 (programs): New variable.
29145 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
29146 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
29147 instead of "grub/kernel.h". Include <grub/machine/init.h>.
29148 (help_arch): Function removed.
29149 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
29150 `powerpc/libgcc.h' and `loader.h'.
29151 (pkgdata_PROGRAMS): New variable.
29152 (sbin_UTILITIES): Variable removed.
29153 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
29154 (grubof_SOURCES): Variable re-defined so it only includes the
29155 core functionality.
29156 (grubof_CFLAGS): Remove `-DGRUBOF'.
29157 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
29158 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
29159 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
29160 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
29161 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
29162 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
29163 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
29164 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
29165 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
29166 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
29167 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29168 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
29169 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
29170 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
29171 (pc_mod_CFLAGS): New variables.
29172 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
29173 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
29174 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
29175 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
29177 * include/grub/i386/pc/init.h (grub_os_area_addr)
29178 (rub_os_area_size): ... to here.
29179 * include/grub/powerpc/ieee1275/ieee1275.h
29180 (grub_ieee1275_entry_fn): Export symbol.
29181 * include/grub/powerpc/ieee1275/init.h: New file.
29182 * include/grub/powerpc/libgcc.h: Likewise.
29183 * include/grub/cache.h: Likewise.
29184 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
29185 <hollis@penguinppc.org>.
29186 * kern/dl.c: Include <grub/cache.h>.
29187 (grub_dl_flush_cache): New function.
29188 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
29190 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
29191 (grub_console_init): Removed prototypes.
29192 (grub_machine_init): Don't initialize the modules anymore.
29193 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
29195 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
29196 Macro undef removed.
29197 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
29198 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
29199 relocation `R_PPC_REL32'. Return an error when the relocation is
29201 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
29202 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
29203 * util/misc.c (grub_arch_sync_caches): Likewise.
29205 2004-12-19 Marco Gerards <metgerards@student.han.nl>
29207 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
29208 `symlist.c', add `grubof_symlist.c'.
29209 (symlist.c): Variable removed.
29210 (grubof_HEADERS): Variable added.
29211 (grubof_symlist.c): New target.
29212 (kernel_syms.lst): Use `grubof_HEADERS' instead of
29213 `kernel_img_HEADERS'.
29214 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
29215 * kern/powerpc/dl.c: New file.
29216 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
29218 (grub_arch_dl_relocate_symbols): Likewise.
29219 (grub_register_exported_symbols): Likewise.
29221 2004-12-13 Marco Gerards <metgerards@student.han.nl>
29223 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
29224 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
29225 to fail instead. Reported by Vincent Pelletier
29226 <subdino2004@yahoo.fr>.
29228 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
29229 it is not allocated. Reported by Vincent Pelletier
29230 <subdino2004@yahoo.fr>.
29232 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
29233 output so the output looks better.
29235 2004-12-04 Marco Gerards <metgerards@student.han.nl>
29237 Modulize the partition map support and add support for the amiga
29240 * commands/ls.c: Include <grub/partition.h> instead of
29241 <grub/machine/partition.h>.
29242 * kern/disk.c: Likewise.
29243 * kern/rescue.c: Likewise.
29244 * loader/i386/pc/chainloader.c: Likewise.
29245 * normal/cmdline.c: Likewise.
29246 * kern/powerpc/ieee1275/init.c: Likewise.
29247 (grub_machine_init): Call `grub_pc_partition_map_init',
29248 `grub_amiga_partition_map_init' and
29249 `grub_apple_partition_map_init'.
29250 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
29251 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
29252 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
29253 `partition.h' and `pc_partition.h'.
29254 (grub_setup_SOURCES): Remove
29255 `disk/i386/pc/partition.c'. Add `kern/partition.c',
29256 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
29257 (grub_emu_SOURCES): Likewise.
29258 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
29259 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
29260 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
29261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
29262 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
29263 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
29264 (grubof_SOURCES): Likewise.
29265 * disk/i386/pc/partition.c: File removed.
29266 * disk/powerpc/ieee1275/partition.c: Likewise.
29267 * include/grub/powerpc/ieee1275/partition.h: Likewise.
29268 * include/grub/i386/pc/partition.h: Likewise.
29269 * kern/partition.c: New file.
29270 * partmap/amiga.c: Likewise.
29271 * partmap/apple.c: Likewise.
29272 * partmap/pc.c: Likewise.
29273 * include/grub/partition.h: Likewise..
29274 * include/grub/pc_partition.h: Likewise.
29275 * util/grub-emu.c: Include <grub/partition.h> instead of
29276 <grub/machine/partition.h>.
29277 (main): Call `grub_pc_partition_map_init',
29278 `grub_amiga_partition_map_init' and
29279 `grub_apple_partition_map_init' and deinitialize afterwards.
29280 * util/i386/pc/biosdisk.c: Include `#include
29281 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
29282 `<grub/machine/partition.h>'.
29283 * util/i386/pc/grub-setup.c: Likewise.
29284 * util/i386/pc/biosdisk.c: Likewise.
29285 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
29286 partition information in case of a PC partition.
29287 * util/i386/pc/grub-setup.c: Include `#include
29288 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
29289 `<grub/machine/partition.h>'.
29290 (setup): Only access the PC specific partition information in case
29293 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
29295 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
29296 (grub_longjmp): Likewise.
29297 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
29299 * normal/powerpc/setjmp.S: New file.
29300 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
29301 `normal/powerpc/setjmp.S'.
29302 (grubof_CFLAGS): Add `-DGRUBOF'.
29303 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
29304 [GRUB_UTIL && !GRUBOF].
29306 2004-11-16 Marco Gerards <metgerards@student.han.nl>
29308 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
29309 property named `name'. Correctly handle the error returned by
29310 `grub_ieee1275_finddevice' if a device can not be opened.
29312 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
29314 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
29315 `actual' for negativity.
29316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
29319 2004-11-01 Marco Gerards <metgerards@student.han.nl>
29321 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
29322 (PAGE_OFFSET): New macro.
29323 (CRTC_ADDR_PORT): Likewise.
29324 (CRTC_DATA_PORT): Likewise.
29325 (START_ADDR_HIGH_REGISTER): Likewise.
29326 (START_ADDR_LOW_REGISTER): Likewise.
29327 (GRAPHICS_ADDR_PORT): Likewise.
29328 (GRAPHICS_DATA_PORT): Likewise.
29329 (READ_MAP_REGISTER): Likewise.
29330 (INPUT_STATUS1_REGISTER): Likewise.
29331 (INPUT_STATUS1_VERTR_BIT): Likewise.
29332 (page): New variable.
29333 (wait_vretrace): New function.
29334 (set_read_map): Likewise.
29335 (set_start_address): Likewise.
29336 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
29338 (check_vga_mem): Take the page into account.
29339 (write_char): Likewise.
29340 (write_cursor): Likewise.
29341 (scroll_up): Likewise. Copy the page to the page that is not
29342 shown and switch between both pages.
29343 (grub_vga_putchar): Fix off by one error.
29344 (grub_vga_cls): Wait for the vertical retrace. Take the page into
29347 2004-11-01 Marco Gerards <metgerards@student.han.nl>
29349 Add support for iso9660 (including rockridge).
29351 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
29352 (iso9660_mod_SOURCES): New variable.
29353 (iso9660_mod_CFLAGS): Likewise.
29354 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
29355 * include/grub/fs.h (grub_iso9660_init): New prototype.
29356 * util/grub-emu.c (main): Call `grub_iso9660_init'.
29357 * fs/iso9660.c: New file.
29359 * include/grub/misc.h (grub_strncat): New prototype.
29360 * kern/misc.c (grub_strncat): New function.
29362 * fs/hfs.c (grub_hfs_mount): Translate the error
29363 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
29364 * fs/jfs.c (grub_jfs_mount): Likewise.
29365 * fs/ufs.c (grub_ufs_mount): Likewise.
29367 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
29369 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
29370 which initialized BAT registers.
29371 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
29372 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
29374 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
29375 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
29377 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
29378 (grub_mapclaim): Likewise.
29379 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
29380 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
29383 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
29385 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
29386 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
29387 -ffreestanding and -msoft-float.
29389 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
29391 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
29392 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
29393 set in grub_ieee1275_flags.
29395 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
29397 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
29399 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
29400 grub_console_init first.
29401 Change the memory range used for grub_ieee1275_claim and
29402 grub_mm_init_region.
29403 Print an error message if the claim fails.
29404 Include <grub/misc.h>.
29406 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
29408 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
29409 Call grub_children_iterate for device nodes of type `scsi',
29411 (grub_ofdisk_open): Remove manual device alias resolution.
29412 Fix memory leak when device cannot be opened.
29413 * include/grub/powerpc/ieee1275/ieee1275.h
29414 (grub_children_iterate): New prototype.
29415 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
29417 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
29418 Return -1 if args.size was -1.
29420 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
29422 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
29423 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
29424 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
29425 Open Firmware's memory for it; claim memory from _start to _end.
29426 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
29427 (_end): New extern.
29428 (_start): Zero BSS from __bss_start to _end.
29429 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
29431 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
29433 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
29435 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
29436 -1 if args.base was -1.
29438 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
29440 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
29441 escape sequence instead of a literal ^L. Also call
29442 grub_ofconsole_gotoxy.
29444 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
29446 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
29447 void * arguments to grub_addr_t. All callers updated. Also make
29448 the `result' argument optional.
29449 (grub_ieee1275_release): change void * arguments to grub_addr_t.
29450 All callers updated.
29452 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
29454 * commands/ls.c (grub_ls_list_files): Use the string following the
29455 initial ')', if present, as the filesystem path.
29456 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
29458 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
29460 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
29462 Make the source code of the menu interface more readable.
29464 * normal/menu.c: Include grub/mm.h.
29465 (TERM_WIDTH): New macro.
29466 (TERM_HEIGHT): Likewise.
29467 (TERM_INFO_HEIGHT): Likewise.
29468 (TERM_MARGIN): Likewise.
29469 (TERM_SCROLL_WIDTH): Likewise.
29470 (TERM_TOP_BORDER_Y): Likewise.
29471 (TERM_LEFT_BORDER_X): Likewise.
29472 (TERM_BORDER_WIDTH): Likewise.
29473 (TERM_MESSAGE_HEIGHT): Likewise.
29474 (TERM_BORDER_HEIGHT): Likewise.
29475 (TERM_NUM_ENTRIES): Likewise.
29476 (TERM_FIRST_ENTRY_Y): Likewise.
29477 (TERM_ENTRY_WIDTH): Likewise.
29478 (TERM_CURSOR_X): Likewise.
29479 (draw_border): Use macros instead of magic numbers.
29480 (print_entry): Likewise.
29481 (print_entries): Likewise.
29482 (run_menu): Likewise. Also, handle the key 'e'.
29483 (run_menu_entry): Ignore empty command lines.
29484 (print_message): Added a new argument EDIT. If EDIT is true,
29485 print a different message.
29486 (init_page): Likewise.
29487 (edit_menu_entry): New function. Not implemented yet.
29489 2004-09-17 Marco Gerards <metgerards@student.han.nl>
29491 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
29492 can be loaded from normal mode.
29494 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
29496 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
29497 (multiboot_mod_CFLAGS): New variables.
29498 * loader/i386/pc/linux_normal.c: New file.
29499 * loader/i386/pc/multiboot_normal.c: Likewise.
29501 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
29502 attribute `unused'.
29504 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
29505 `fdiro' to read the mode information from instead of `diro'.
29507 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
29508 looking up a symlink.
29510 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
29512 * normal/command.c (grub_command_execute): Don't parse the
29513 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
29514 flags of the command.
29516 * normal/menu.c (grub_menu_run): Fix typo.
29518 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
29520 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
29522 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
29523 `y + 1' instead of `y - 1'.
29525 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
29527 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
29529 From Hollis Blanchard <hollis@penguinppc.org>:
29530 * kern/misc.c (memmove): New alias for grub_memmove.
29531 (memcmp): New alias for grub_memcmp.
29532 (memset): New alias for grub_memset.
29533 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
29534 Change "int handle" to "grub_ieee1275_phandle_t handle".
29535 * include/grub/powerpc/ieee1275/ieee1275.h
29536 (grub_ieee1275_get_property): Likewise.
29538 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
29540 Added normal mode command `chainloader' as module chain.mod, which
29541 depends on normal.mod and _chain.mod.
29543 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
29544 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
29545 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
29547 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
29548 but arguments parsing moved to ...
29549 (grub_chainloader_cmd): ... here. New function.
29550 * include/grub/i386/pc/chainloader.h: New file.
29551 * loader/i386/pc/chainloader_normal.c: Likewise.
29553 2004-09-11 Marco Gerards <metgerards@student.han.nl>
29555 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
29556 (grub_mkimage_LDFLAGS): Likewise.
29557 (grub_emu_SOURCES): Likewise.
29558 (kernel_img_HEADERS): Added fshelp.h.
29559 * fs/ext2.c: Include <grub/fshelp.h>.
29560 (FILETYPE_REG): New macro.
29561 (FILETYPE_INO_REG): Likewise.
29562 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
29564 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
29566 (grub_fshelp_node): New struct.
29567 (grub_ext2_data): Added member `diropen'. Changed member `inode'
29569 (grub_ext2_get_file_block): Removed function.
29570 (grub_ext2_read_block): New function.
29571 (grub_ext2_read_file): Replaced parameter `data' by `node'.
29572 This function was written.
29573 (grub_ext2_mount): Read the root inode. Create a diropen struct.
29574 (grub_ext2_find_file): Removed function.
29575 (grub_ext2_read_symlink): New function.
29576 (grub_ext2_iterate_dir): Likewise.
29577 (grub_ext2_open): Rewritten.
29578 (grub_ext2_dir): Rewritten.
29579 * include/grub/fshelp.h: New file.
29580 * fs/fshelp.c: Likewise.
29582 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
29584 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
29585 (print_message): Add a missing newline.
29586 (run_menu): Added timeout support.
29587 (run_menu_entry): New local function.
29588 (grub_menu_run): Added support for booting.
29590 * kern/loader.c (grub_loader_is_loaded): New function.
29592 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
29593 (grub_get_rtc): Exported.
29595 * include/grub/i386/pc/time.h: Include grub/symbol.h.
29596 (grub_get_rtc): Exported.
29598 * include/grub/normal.h (struct grub_command_list): Remove
29599 constant from the member `command'.
29601 * include/grub/loader.h (grub_loader_is_loaded): Declared.
29603 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
29605 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
29607 2004-08-28 Marco Gerards <metgerards@student.han.nl>
29609 Add support for the JFS filesystem.
29611 * fs/jfs.c: New file.
29612 * include/grub/fs.h (grub_jfs_init): New prototype.
29613 (grub_jfs_fini): New prototype.
29614 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
29615 (grub_emu_SOURCES): Likewise.
29616 (pkgdata_MODULES): Add jfs.mod.
29617 (jfs_mod_SOURCES): New variable.
29618 (jfs_mod_CFLAGS): Likewise.
29619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
29620 (grubof_SOURCES): Likewise.
29621 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
29623 * fs/fat.c (grub_fat_find_dir): Convert the filename little
29624 endian to the host endian.
29625 (grub_fat_utf16_to_utf8): Move function from there...
29626 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
29627 the endianness of the source string anymore.
29628 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
29630 2004-08-24 Marco Gerards <metgerards@student.han.nl>
29632 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
29633 (grub_boot_fini) [GRUB_UTIL]: Likewise.
29634 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
29635 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
29637 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
29638 (grub_hfs_iterate_dir): Make the function static. Add prototypes
29639 for `node_found' and `it_dir'.
29640 (grub_hfs_dir): Add prototype for `dir_hook'.
29642 * fs/minix.c (grub_minix_get_file_block): Add prototype for
29643 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
29644 and `indir32' to silence a gcc warning.
29646 * include/grub/fs.h (grub_hfs_init): New prototype.
29647 (grub_hfs_fini): Likewise.
29650 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
29652 Each disk device has its own id now. This is useful to make use
29653 of multiple disk devices.
29655 * include/grub/disk.h (grub_disk_dev_id): New enum.
29656 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
29657 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
29659 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
29660 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
29662 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
29663 GRUB_DISK_DEVICE_OFDISK_ID as an id.
29665 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
29666 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
29668 * include/grub/disk.h (struct grub_disk_dev): Added a new member
29669 "id" which is used by the cache manager.
29671 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
29674 2004-08-18 Marco Gerards <metgerards@student.han.nl>
29676 * fs/hfs.c: New file.
29677 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
29678 (grub_emu_SOURCES): Likewise.
29679 (pkgdata_MODULES): Add hfs.mod.
29680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
29681 (grubof_SOURCES): Likewise.
29682 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
29684 * include/grub/misc.h (grub_strncasecmp): Add prototype.
29685 * kern/misc.c (grub_strncasecmp): Add function.
29687 2004-08-14 Marco Gerards <metgerards@student.han.nl>
29689 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
29692 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
29693 (grub_ext2_dir): In case the directory entry type is unknown, read
29696 2004-08-02 Peter Bruin <pjbruin@dds.nl>
29698 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
29699 grub_load_linux instead of grub_rescue_cmd_linux as second
29700 argument of grub_rescue_register_command.
29702 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
29704 2004-07-27 Marco Gerards <metgerards@student.han.nl>
29706 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
29708 * commands/boot.c: Remove the check for `GRUB_UTIL'.
29709 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
29710 `loader/powerpc/ieee1275/linux.c',
29711 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
29712 * include/grub/powerpc/ieee1275/ieee1275.h
29713 (grub_ieee1275_release): New prototype.
29714 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
29715 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
29716 normal, boot, linux and linux_normal.
29717 * loader/powerpc/ieee1275/linux.c: New file.
29718 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
29720 2004-07-12 Marco Gerards <metgerards@student.han.nl>
29722 * normal/arg.c (grub_arg_parse): Correct error handling after
29723 reallocating the argumentlist (check if `argl' is not null instead
29724 of checking if `args' is not null).
29725 * kern/mm.c (grub_realloc): Return the same pointer when using the
29726 same region, instead of returning the header address.
29728 2004-07-11 Marco Gerards <metgerards@student.han.nl>
29730 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
29731 one block instead of two when looking for the initial partition.
29732 (grub_partition_probe): Initialize the local variable `p' with 0.
29733 Use base 10 for the grub_strtoul call.
29734 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
29735 need for one local variable.
29736 (grub_strtoul): Don't add the new value to `num', instead of that
29739 2004-07-11 Marco Gerards <metgerards@student.han.nl>
29741 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
29742 (pxeboot_img_SOURCES): New variable.
29743 (pxeboot_img_ASFLAGS): Likewise.
29744 (pxeboot_img_LDFLAGS): Likewise.
29745 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
29746 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
29747 <lode_leroy@hotmail.com>.
29749 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
29751 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
29752 there was no input.
29754 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
29756 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
29757 the history buffer logic.
29759 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
29761 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
29762 (FILETYPE_INO_SYMLINK): New macros.
29763 (grub_ext2_find_file): Check if the node is a directory using the
29764 inode stat information instead of using the filetype in the
29765 dirent. Exclude the first character of an absolute symlink.
29766 (grub_ext2_dir): Mask out the filetype part of the mode member of
29769 2004-05-24 Marco Gerards <metgerards@student.han.nl>
29771 Add support for UFS version 1 and 2. Add support for the minix
29772 filesystem version 1 and 2, both the variants with 14 and 30 long
29775 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
29777 (grub_emu_SOURCES): Likewise.
29778 (pkgdata_MODULES): Add ufs.mod and minix.mod.
29779 (ufs_mod_SOURCES): New variable.
29780 (ufs_mod_CFLAGS): Likewise.
29781 (minix_mod_SOURCES): Likewise.
29782 (minix_mod_CFLAGS): Likewise.
29783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
29785 (grubof_SOURCES): Likewise.
29786 * fs/ufs.c: New file.
29787 * fs/minix.c: New file.
29788 * include/grub/fs.h (grub_ufs_init): New prototype.
29789 (grub_ufs_fini): Likewise.
29790 (grub_minix_init): Likewise.
29791 (grub_minix_fini): Likewise.
29792 * util/grub-emu.c (main): Initialize and deinitialize UFS and
29795 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
29797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
29798 commands/ls.c, commands/terminal.c, commands/boot.c,
29799 commands/cmp.c and commands/cat.c.
29800 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
29802 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
29805 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
29807 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
29808 and grub_, respectively. Because the conversion is trivial and
29809 mechanical, I omit the details here. Please refer to the CVS
29810 if you need more information.
29812 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
29814 * include/pupa: Renamed to ...
29815 * include/grub: ... this.
29816 * util/i386/pc/pupa-mkimage.c: Renamed to ...
29817 * util/i386/pc/grub-mkimage.c: ... this.
29818 * util/i386/pc/pupa-setup.c: Renamed to ...
29819 * util/i386/pc/grub-setup.c: ... this.
29820 * util/pupa-emu.c: Renamed to ...
29821 * util/grub-emu.c: ... this.
29823 2004-03-29 Marco Gerards <metgerards@student.han.nl>
29825 Add support for the newworld apple macintosh (PPC). This has been
29826 tested on the powerbook 2000 only. It only adds support for
29827 generic ieee1275 functions, console and disk support. This should
29828 be easy to port to other architectures with support for Open
29831 * configure.ac: Accept the powerpc as host_cpu. In the case of
29832 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
29833 specific tests are only executed while building for the i386.
29834 Inverse test for crosscompile.
29835 * genmk.rb (Utility): Allow assembler files.
29836 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
29837 * conf/powerpc-ieee1275.rmk: New file.
29838 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
29839 * disk/powerpc/ieee1275/partition.c: Likewise.
29840 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
29841 * include/pupa/powerpc/ieee1275/console.h: Likewise.
29842 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
29843 * include/pupa/powerpc/ieee1275/time.h: Likewise.
29844 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
29845 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
29846 * include/pupa/powerpc/ieee1275/loader.h
29847 * include/pupa/powerpc/setjmp.h: Likewise.
29848 * include/pupa/powerpc/types.h: Likewise.
29849 * kern/powerpc/ieee1275/init.c: Likewise.
29850 * kern/powerpc/ieee1275/openfw.c: Likewise.
29851 * term/powerpc/ieee1275/ofconsole.c: Likewise.
29853 These files were written by Johan Rydberg
29854 (jrydberg@night.trouble.net) and I only modified them slightly.
29856 * boot/powerpc/ieee1275/cmain.c: New file.
29857 * boot/powerpc/ieee1275/crt0.S: Likewise.
29858 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
29859 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
29861 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
29863 * Makefile.in: Update copyright.
29864 * genmodsrc.sh: Likewise.
29865 * gensymlist.sh: Likewise.
29866 * term/i386/pc/vga.c: Indent correctly.
29868 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
29869 bugreporting address.
29870 * util/i386/pc/pupa-setup.c (usage): Likewise,
29871 (main): Call pupa_ext2_init and pupa_ext2_fini.
29873 * fs/fat.c (log2): Renamed to ...
29874 (fat_log2): ... this.
29875 All callers changed.
29876 * kern/misc.c (memcpy): Alias to pupa_memmove.
29877 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
29879 * util/console.c (pupa_ncurses_fini): Return 0.
29881 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
29882 Move fail label here.
29883 [__GNU__]: Don't warn when using stat.
29884 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
29885 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
29886 long int. Use strtol instead of strtoul.
29888 2004-03-14 Marco Gerards <metgerards@student.han.nl>
29890 * commands/boot.c: New file.
29891 * commands/cat.c: Likewise.
29892 * commands/cmp.c: Likewise.
29893 * commands/ls.c: Likewise.
29894 * commands/terminal.c: Likewise.
29895 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
29896 (pupa_register_command): Changed interface to match the new
29898 (pupa_command_execute): Changed (almost rewritten) so it uses
29899 pupa_split_command. Added support for setting variables using the
29901 (rescue_command): Changed to work with the new argument parser.
29902 (terminal_command): Moved from here to commands/terminal.c.
29903 (set_command): New function.
29904 (unset_command): New function.
29905 (insmod_command): New function.
29906 (rmmod_command): New function.
29907 (lsmod_command): New function.
29908 (pupa_command_init): Don't initialize the command terminal
29909 anymore. Initialize the commands set, unset, insmod, rmmod and
29911 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
29912 (kernel_img_HEADERS): Add arg.h and env.h.
29913 (pupa_mkimage_LDFLAGS): Add kern/env.c.
29914 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
29915 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
29917 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
29919 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
29920 (boot_mod_SOURCES): New variable.
29921 (terminal_mod_SOURCES): Likewise.
29922 (ls_mod_SOURCES): Likewise.
29923 (cmp_mod_SOURCES): Likewise.
29924 (cat_mod_SOURCES): Likewise.
29926 * normal/arg.c: New file.
29927 * kern/env.c: Likewise.
29928 * include/pupa/arg.h: Likewise.
29929 * include/pupa/env.h: Likewise.
29930 * font/manager.c (font_command): Changed to match argument parsing
29932 (PUPA_MOD_INIT): Likewise.
29933 * hello/hello.c (pupa_cmd_hello): Likewise.
29934 (PUPA_MOD_INIT): Likewise.
29935 * include/pupa/disk.h: Include <pupa/device.h>.
29936 (pupa_print_partinfo): New prototype.
29937 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
29938 (pupa_dl_get_prefix): Likewise.
29939 * include/pupa/misc.h: Include <pupa/err.h>.
29940 (pupa_isgraph): New prototype.
29941 (pupa_isdigit): Likewise.
29942 (pupa_split_cmdline): Likewise.
29943 * include/pupa/normal.h: Include <pupa/arg.h>.
29944 (pupa_command): Changed the prototype of the member `func' to
29945 match the argument parsing interface. Added member `options'.
29946 (pupa_register_command): Updated to match function.
29947 (pupa_arg_parse): New prototype.
29948 (pupa_hello_init) [PUPA_UTIL]: New prototype.
29949 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
29950 (pupa_ls_init) [PUPA_UTIL]: Likewise.
29951 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
29952 (pupa_cat_init) [PUPA_UTIL]: Likewise.
29953 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
29954 (pupa_boot_init) [PUPA_UTIL]: Likewise.
29955 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
29956 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
29957 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
29958 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
29959 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
29960 * kern/disk.c: Include <pupa/file.h>.
29961 (pupa_print_partinfo): New function.
29962 * kern/dl.c: Include <pupa/env.h>.
29963 (pupa_dl_dir): Variable removed.
29964 (pupa_dl_load): Use the environment variable `prefix' instead of
29965 the variable pupa_dl_dir.
29966 (pupa_dl_set_prefix): Function removed.
29967 (pupa_dl_get_prefix): Likewise.
29968 * kern/i386/pc/init.c: Include <pupa/env.h>.
29969 (pupa_machine_init): Use the environment variable `prefix' instead of
29970 using pupa_dl_set_prefix to set the prefix.
29971 * kern/main.c: Include <pupa/env.h>.
29972 (pupa_set_root_dev): Use the environment variable `prefix' instead of
29973 using pupa_dl_get_prefix to get the prefix.
29974 * kern/misc.c: Include <pupa/env.h>.
29975 (pupa_isdigit): New function.
29976 (pupa_isgraph): Likewise.
29977 (pupa_ftoa): Likewise.
29978 (pupa_vsprintf): Added support for printing values of the type
29979 `double'. Make it possible to format variable output when using
29980 formatting like `%1.2%f'.
29981 (pupa_split_cmdline): New function.
29982 * kern/rescue.c: Include <pupa/env.h>.
29983 (next_word): Removed function.
29984 (pupa_rescue_cmd_prefix): Likewise.
29985 (pupa_rescue_cmd_set): New function.
29986 (pupa_rescue_cmd_unset): New function.
29987 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
29988 split the command line instead of splitting it here. Added
29989 support for setting variables using the syntax `foo=bar'. Don't
29990 initialize the prefix command anymore. Initialized the set and
29992 * normal/cmdline.c: Include <pupa/env.h>.
29993 (pupa_tab_complete): Added prototypes for print_simple_completion,
29994 print_partition_completion, add_completion, iterate_commands,
29995 iterate_dev, iterate_part and iterate_dir. Moved code to print
29996 partition information from here to kern/disk.c.
29997 (pupa_cmdline_run): Don't check if the function exists anymore.
29998 * normal/main.c: Include <pupa/env.h>.
29999 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
30000 instead of using pupa_dl_get_prefix to get the prefix.
30001 * term/i386/pc/vga.c: Include <pupa/arg.h>.
30002 (check_vga_mem): Cast pointers to `void *' to silence a gcc
30004 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
30005 (pupa_vga_setcolor): Declare unused variables with `__attribute__
30006 ((unused))' to silence a gcc warning.
30007 (pupa_vga_setcolor): Likewise.
30008 (debug_command): Changed to match argument parsing
30010 * util/pupa-emu.c: Include <pupa/env.h>.
30011 (options): Added 0's for unused fields to silence a gcc warning.
30013 (main): Use the environment variable `prefix' instead of using
30014 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
30015 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
30018 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
30019 * util/misc.c: Include <malloc.h>.
30020 (pupa_malloc): Rewritten so errors are correctly reported.
30021 (pupa_realloc): Likewise.
30022 (pupa_memalign): Likewise.
30023 (pupa_mm_init_region): Declare unused variables with
30024 `__attribute__ ((unused))' to silence a gcc warning.
30025 * normal/i386/setjmp.S: Remove tab at the end of the file to
30026 silence a gcc warning.
30027 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
30028 variables with `__attribute__ ((unused))' to silence a gcc
30030 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
30031 local variable i unsigned to silence a gcc warning.
30033 * kern/term.c: Include <pupa/misc.h>.
30034 (pupa_more_lines): New variable.
30035 (pupa_more): Likewise.
30036 (pupa_putcode): When the pager is active pause at the end of every
30038 (pupa_set_more): New function.
30039 * include/pupa/term.h (pupa_set_more): New prototype.
30042 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
30044 Now this project is GRUB 2 rather than PUPA. The location of
30045 the CVS repository was moved to GRUB's.
30047 * configure.ac: Use bug-grub as the reporting address.
30048 Use GRUB instead of PUPA.
30049 Change the version number to 1.90.
30051 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
30053 * genkernsyms.sh: Updated copyright information.
30054 * genmk.rb: Likewise.
30055 * genmodsrc.sh: Likewise.
30056 * gensymlist.sh: Likewise.
30057 * boot/i386/pc/boot.S: Likewise.
30058 * boot/i386/pc/diskboot.S: Likewise.
30059 * disk/i386/pc/biosdisk.c: Likewise.
30060 * disk/i386/pc/partition.c: Likewise.
30061 * font/manager.c: Likewise.
30062 * fs/ext2.c: Likewise.
30063 * fs/fat.c: Likewise.
30064 * include/pupa/boot.h: Likewise.
30065 * include/pupa/device.h: Likewise.
30066 * include/pupa/disk.h: Likewise.
30067 * include/pupa/dl.h: Likewise.
30068 * include/pupa/elf.h: Likewise.
30069 * include/pupa/err.h: Likewise.
30070 * include/pupa/file.h: Likewise.
30071 * include/pupa/font.h: Likewise.
30072 * include/pupa/fs.h: Likewise.
30073 * include/pupa/kernel.h: Likewise.
30074 * include/pupa/loader.h: Likewise.
30075 * include/pupa/misc.h: Likewise.
30076 * include/pupa/mm.h: Likewise.
30077 * include/pupa/net.h: Likewise.
30078 * include/pupa/normal.h: Likewise.
30079 * include/pupa/rescue.h: Likewise.
30080 * include/pupa/setjmp.h: Likewise.
30081 * include/pupa/symbol.h: Likewise.
30082 * include/pupa/term.h: Likewise.
30083 * include/pupa/types.h: Likewise.
30084 * include/pupa/i386/setjmp.h: Likewise.
30085 * include/pupa/i386/types.h: Likewise.
30086 * include/pupa/i386/pc/biosdisk.h: Likewise.
30087 * include/pupa/i386/pc/boot.h: Likewise.
30088 * include/pupa/i386/pc/console.h: Likewise.
30089 * include/pupa/i386/pc/init.h: Likewise.
30090 * include/pupa/i386/pc/kernel.h: Likewise.
30091 * include/pupa/i386/pc/linux.h: Likewise.
30092 * include/pupa/i386/pc/loader.h: Likewise.
30093 * include/pupa/i386/pc/memory.h: Likewise.
30094 * include/pupa/i386/pc/multiboot.h: Likewise.
30095 * include/pupa/i386/pc/partition.h: Likewise.
30096 * include/pupa/i386/pc/time.h: Likewise.
30097 * include/pupa/i386/pc/vga.h: Likewise.
30098 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
30099 * include/pupa/util/getroot.h: Likewise.
30100 * include/pupa/util/misc.h: Likewise.
30101 * include/pupa/util/resolve.h: Likewise.
30102 * kern/device.c: Likewise.
30103 * kern/disk.c: Likewise.
30104 * kern/dl.c: Likewise.
30105 * kern/err.c: Likewise.
30106 * kern/file.c: Likewise.
30107 * kern/fs.c: Likewise.
30108 * kern/loader.c: Likewise.
30109 * kern/main.c: Likewise.
30110 * kern/misc.c: Likewise.
30111 * kern/mm.c: Likewise.
30112 * kern/rescue.c: Likewise.
30113 * kern/term.c: Likewise.
30114 * kern/i386/dl.c: Likewise.
30115 * kern/i386/pc/init.c: Likewise.
30116 * kern/i386/pc/lzo1x.S: Likewise.
30117 * kern/i386/pc/startup.S: Likewise.
30118 * loader/i386/pc/chainloader.c: Likewise.
30119 * loader/i386/pc/linux.c: Likewise.
30120 * loader/i386/pc/multiboot.c: Likewise.
30121 * normal/cmdline.c: Likewise.
30122 * normal/command.c: Likewise.
30123 * normal/main.c: Likewise.
30124 * normal/menu.c: Likewise.
30125 * normal/i386/setjmp.S: Likewise.
30126 * term/i386/pc/console.c: Likewise.
30127 * term/i386/pc/vga.c: Likewise.
30128 * util/console.c: Likewise.
30129 * util/genmoddep.c: Likewise.
30130 * util/misc.c: Likewise.
30131 * util/pupa-emu.c: Likewise.
30132 * util/resolve.c: Likewise.
30133 * util/unifont2pff.rb: Likewise.
30134 * util/i386/pc/biosdisk.c: Likewise.
30135 * util/i386/pc/getroot.c: Likewise.
30136 * util/i386/pc/pupa-mkimage.c: Likewise.
30137 * util/i386/pc/pupa-setup.c: Likewise.
30139 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
30141 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
30142 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
30143 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
30144 reading and reset it after reading.
30145 (pupa_ext2_close): Return PUPA_ERR_NONE.
30147 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
30149 (struct linux_kernel_header): Add kernel_version and
30151 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
30152 pupa_file_read succeeds.
30153 (pupa_rescue_cmd_initrd): Implement.
30155 2003-12-03 Marco Gerards <metgerards@student.han.nl>
30157 * fs/ext2.c (pupa_ext2_label): New function.
30158 (pupa_ext2_fs): Added label.
30159 * fs/fat.c (pupa_fat_label): New function.
30160 (pupa_fat_fs): Added label.
30161 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
30163 * kern/misc.c (pupa_strndup): New function.
30164 * include/pupa/misc.h (pupa_strndup): New prototype.
30166 * include/pupa/normal.h: Include <pupa/err.h>.
30167 (pupa_set_history): New prototype.
30168 (pupa_iterate_commands): New prototype.
30169 * normal/cmdline.c: Include <pupa/machine/partition.h>,
30170 <pupa/disk.h>, <pupa/file.h>.
30171 (hist_size): New variable.
30172 (hist_lines): Likewise.
30173 (hist_end): Likewise.
30174 (hist_used): Likewise.
30175 (pupa_set_history): New function.
30176 (pupa_history_get): Likewise.
30177 (pupa_history_add): Likewise.
30178 (pupa_history_replace): Likewise.
30179 (pupa_tab_complete): Likewise.
30180 (pupa_cmdline_run): Added tab completion and history buffer. Tab
30181 completion shows partitionnames while completing partitions, this
30182 feature was suggested by Jeff Bailey.
30183 * normal/command.c (pupa_iterate_commands): New function.
30184 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
30185 (pupa_normal_init): Initialize history buffer.
30186 (PUPA_MOD_INIT): Likewise.
30187 (pupa_normal_fini): Free the history buffer.
30188 (PUPA_MOD_FINI): Likewise.
30190 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
30193 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
30194 * configure.ac [i386]: Check for regparam bug.
30195 (NESTED_FUNC_ATTR) [! i386]: Defined.
30197 2003-11-17 Marco Gerards <metgerards@student.han.nl>
30199 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
30200 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
30201 (pupa_emu_SOURCES): New variable.
30202 (pupa_emu_LDFLAGS): Likewise.
30203 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
30204 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
30205 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
30206 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
30207 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
30208 (pupa_jmp_buf): New typedef.
30209 (pupa_setjmp) [PUPA_UTIL]: New macro.
30210 (pupa_longjmp) [PUPA_UTIL]: Likewise.
30211 * include/pupa/term.h (struct pupa_term): New member `refresh'.
30212 (pupa_refresh): New prototype.
30213 * include/pupa/util/getroot.h: New file.
30214 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
30216 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
30217 (pupa_rescue_cmd_cat): Likewise.
30218 (pupa_rescue_cmd_ls): Likewise.
30219 (pupa_rescue_cmd_testload): Likewise.
30220 (pupa_rescue_cmd_lsmod): Likewise.
30221 * normal/cmdline.c (pupa_cmdline_get): Likewise.
30222 * normal/menu.c (run_menu): Likewise.
30223 * kern/term.c (pupa_cls): Likewise.
30224 (pupa_refresh): New function.
30225 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
30226 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
30227 * util/console.c: New file.
30229 * util/i386/pc/getroot.c: New file.
30230 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
30231 (pupa_putchar): New function.
30232 (pupa_refresh): Likewise.
30233 (xgetcwd): Function moved to ...
30234 (strip_extra_slashes): Likewise.
30235 (get_prefix): Likewise.
30236 * util/i386/pc/getroot.c: ... here.
30237 (find_root_device): Function moved and renamed to...
30238 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
30239 Changed all callers.
30240 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
30242 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
30243 Changed all callers.
30244 * util/misc.c (pupa_memalign): New function.
30245 (pupa_mm_init_region): Likewise.
30246 (pupa_register_exported_symbols): Likewise.
30247 (pupa_putchar): Function removed.
30248 * util/pupa-emu.c: New file.
30250 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
30252 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
30253 (_multiboot_mod_SOURCES): New variable.
30254 (_multiboot_mod_CFLAGS): Likewise.
30255 * loader/i386/pc/multiboot.c: New file.
30256 * include/pupa/i386/pc/multiboot.h: Likewise.
30257 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
30258 (pupa_multiboot_real_boot): New function.
30259 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
30260 (pupa_multiboot_real_boot): New prototype.
30261 (pupa_rescue_cmd_multiboot): Likewise
30262 (pupa_rescue_cmd_module): Likewise.
30264 * kern/loader.c (pupa_loader_set): Continue when
30265 pupa_loader_unload_func() fails.
30266 (pupa_loader_unset): New function.
30267 * include/pupa/loader.h (pupa_loader_unset): New prototype.
30269 * kern/misc.c (pupa_stpcpy): New function.
30270 * include/pupa/misc.h (pupa_stpcpy): New prototype.
30272 2003-11-12 Marco Gerards <metgerards@student.han.nl>
30274 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
30275 for available extensions.
30277 * include/pupa/i386/pc/time.h: New file.
30278 * kern/disk.c: Include <pupa/machine/time.h>.
30279 (PUPA_CACHE_TIMEOUT): New macro.
30280 (pupa_last_time): New variable.
30281 (pupa_disk_open): Flush the cache when there was a timeout.
30282 (pupa_disk_close): Reset the timer.
30283 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
30285 * util/misc.c: Include <sys/times.h>
30286 (pupa_get_rtc): New function.
30288 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
30290 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
30292 (pupa_ext2_get_file_block): Use blocks member.
30294 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
30295 first block. Return -1 instead of pupa_errno on error.
30297 2003-10-27 Marco Gerards <metgerards@student.han.nl>
30299 * README: In the pupa-mkimage example use _chain instead of chain
30300 and ext2 instead of fat.
30301 * TODO: Replace ext2fs with jfs as an example. Add an item for
30302 adding journal playback for ext2fs.
30303 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
30304 (pkgdata_MODULES): Added ext2.mod.
30305 (ext2_mod_SOURCES): New variable.
30306 (ext2_mod_CFLAGS): Likewise.
30307 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
30308 * include/pupa/misc.h (pupa_strncpy): New prototype.
30309 (pupa_strcat): Likewise.
30310 (pupa_strncmp): Likewise.
30311 * kern/misc.c (pupa_strcat): Enable function.
30312 (pupa_strncpy): New function.
30313 (pupa_strncmp): Likewise.
30314 * fs/ext2.c: New file.
30316 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
30317 when the read failed before retrying.
30318 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
30319 (_FILE_OFFSET_BITS): Likewise.
30320 * configure.ac: Added AC_SYS_LARGEFILE.
30322 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
30324 * genmk.rb (PModule#rule): Make sure to get only symbol names
30325 from the output of nm.
30326 Reported by Robert Millan <rmh.grub@aybabtu.com>.
30328 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
30330 I forgot to check in these changes for a long time. This adds
30331 incomplete support for VGA console, and this is still very
30332 buggy. Also, a lot of consideration is required for I18N,
30333 UNICODE, and VGA font issues. Therefore, assume that this is
30334 such that "better than nothing".
30336 * font/manager.c: New file.
30337 * include/pupa/font.h: Likewise.
30338 * include/pupa/i386/pc/vga.h: Likewise.
30339 * term/i386/pc/vga.c: Likewise.
30340 * util/unifont2pff.rb: Likewise.
30342 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
30343 (pkgdata_MODULES): Added vga.mod and font.mod.
30344 (vga_mod_SOURCES): New variables.
30345 (vga_mod_CFLAGS): Likewise.
30346 (font_mod_SOURCES): Likewise.
30347 (font_mod_CFLAGS): Likewise.
30349 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
30351 * include/pupa/term.h: Include pupa/err.h.
30352 (struct pupa_term): Added init and fini.
30353 Changed the argument of putchar to pupa_uint32_t.
30355 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
30356 (pupa_console_real_putchar): New prototype.
30357 (pupa_console_putchar): Removed.
30358 (pupa_console_checkkey): Exported.
30359 (pupa_console_getkey): Likewise.
30361 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
30364 * kern/term.c (pupa_term_set_current): Rewritten.
30365 (pupa_putchar): Likewise.
30366 (pupa_putcode): New function.
30368 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
30369 (pupa_console_real_putchar): ... this.
30370 (pupa_vga_set_mode): New function.
30371 (pupa_vga_get_font): Likewise.
30373 * normal/command.c: Include pupa/term.h.
30374 (terminal_command): New function.
30375 (pupa_command_init): Register the command "terminal".
30377 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
30378 (DISP_UP): Likewise.
30379 (DISP_RIGHT): Likewise.
30380 (DISP_DOWN): Likewise.
30381 (DISP_HLINE): Likewise.
30382 (DISP_VLINE): Likewise.
30383 (DISP_UL): Likewise.
30384 (DISP_UR): Likewise.
30385 (DISP_LL): Likewise.
30386 (DISP_LR): Likewise.
30388 * term/i386/pc/console.c (pupa_console_putchar): New function.
30390 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
30392 * util/resolve.c (pupa_util_resolve_dependencies): BUG
30393 FIX. Reverse the path_list.
30395 * include/pupa/normal.h: Export pupa_register_command and
30396 pupa_unregister_command.
30398 * hello/hello.c (pupa_cmd_hello): New module.
30399 * conf/i386-pc.rmk: Added hello.mod.
30401 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
30403 * kern/i386/pc/lzo1x.S: New file.
30405 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
30406 (compress_kernel): New variable.
30407 (generate_image): Heavily modified to support compressing a
30408 large part of the core image.
30410 * util/misc.c (pupa_util_read_image): Fix a file descriptor
30412 (pupa_util_load_image): New function.
30414 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
30415 (pupa_compressed_size): New variable.
30416 (codestart): Enable Gate A20 here.
30417 Decompress the compressed part of the core image.
30418 Rearrange the code to put functions and variables which are
30419 required for initialization in the non-compressed part.
30422 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
30425 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
30427 * include/pupa/i386/pc/kernel.h
30428 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
30429 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
30430 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
30431 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
30432 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
30434 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
30436 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
30437 (Utility#rule): Likewise.
30439 * configure.ac: Check if LZO is available.
30441 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
30443 * include/pupa/normal.h: New file.
30444 * include/pupa/setjmp.h: Likewise.
30445 * include/pupa/i386/setjmp.h: Likewise.
30446 * normal/cmdline.c: Likewise.
30447 * normal/command.c: Likewise.
30448 * normal/main.c: Likewise.
30449 * normal/menu.c: Likewise.
30450 * normal/i386/setjmp.S: Likewise.
30452 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
30453 (pupa_rescue_cmd_initrd): Likewise.
30455 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
30458 * kern/i386/pc/startup.S (translation_table): New variable.
30459 (translate_keycode): New function.
30460 (pupa_console_getkey): Call translate_keycode.
30462 * kern/rescue.c (attempt_normal_mode): New function.
30463 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
30464 it failed, print a message.
30466 * kern/mm.c (pupa_real_malloc): Print more information when a
30467 free magic is broken.
30468 (pupa_free): If the first free header is not free actually, set
30471 * kern/main.c (pupa_load_normal_mode): Just load the module
30473 (pupa_main): Don't print the message
30474 "Entering into rescue mode..." here.
30476 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
30478 (pupa_rescue_cmd_initrd): Likewise.
30479 (pupa_rescue_cmd_initrd): Likewise.
30481 * include/pupa/symbol.h (FUNCTION): Specify the type.
30482 (VARIABLE): Likewise.
30484 * include/pupa/err.h (pupa_err_t): Added
30485 PUPA_ERR_UNKNOWN_COMMAND.
30487 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
30488 (pupa_dl_get_prefix): Likewise.
30490 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
30491 Added _chain.mod and _linux.mod instead of chain.mod and
30493 (chain_mod_SOURCES): Renamed to ...
30494 (_chain_mod_SOURCES): ... this.
30495 (chain_mod_CFLAGS): Renamed to ...
30496 (_chain_mod_CFLAGS): ... this.
30497 (linux_mod_SOURCES): Renamed to ...
30498 (_linux_mod_SOURCES): ... this.
30499 (linux_mod_CFLAGS): Renamed to ...
30500 (_linux_mod_CFLAGS): ... this.
30501 (normal_mod_SOURCES): New variable.
30502 (normal_mod_CFLAGS): Likewise.
30503 (normal_mod_ASFLAGS): Likewise.
30505 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
30507 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
30510 * kern/dl.c (pupa_dl_ref): Refer depending modules
30512 (pupa_dl_unref): Unrefer depending modules recursively.
30513 Don't call pupa_dl_unload implicitly, because PUPA can crash if
30514 a module is unloaded before one depending on that module is
30516 (pupa_dl_unload): Unload depending modules explicitly,
30519 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
30521 * include/pupa/i386/pc/linux.h: New file.
30522 * loader/i386/pc/linux.c: Likewise.
30524 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
30526 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
30527 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
30528 of PUPA_CHAINLOADER_BOOT_SECTOR.
30530 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
30531 (pupa_linux_prot_size): New variable.
30532 (pupa_linux_tmp_addr): Likewise.
30533 (pupa_linux_real_addr): Likewise.
30534 (pupa_linux_boot_zimage): New function.
30535 (pupa_linux_boot_bzimage): Likewise.
30537 * kern/i386/pc/init.c (struct mem_region): New structure.
30538 (MAX_REGIONS): New macro.
30539 (mem_regions): New variable.
30540 (num_regions): Likewise.
30541 (pupa_os_area_addr): Likewise.
30542 (pupa_os_area_size): Likewise.
30543 (pupa_lower_mem): Likewise.
30544 (pupa_upper_mem): Likewise.
30545 (add_mem_region): New function.
30546 (compact_mem_regions): Likewise.
30547 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
30548 the size of the conventional memory and that of so-called upper
30549 memory (before the first memory hole).
30550 Instead of adding each found region to free memory, use
30551 add_mem_region and add them after removing overlaps.
30552 Also, add only 1/4 of the upper memory to free memory. The rest
30553 is used for loading OS images. Maybe this is ad hoc, but this
30554 makes it much easier to relocate OS images when booting.
30556 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
30557 (pupa_enter_rescue_mode): Don't register initrd and module.
30559 * kern/mm.c: Include pupa/dl.h.
30561 * kern/main.c: Include pupa/file.h and pupa/device.h.
30563 * kern/loader.c (pupa_loader_load_module_func): Removed.
30564 (pupa_loader_load_module): Likewise.
30566 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
30569 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
30570 (pupa_linux_tmp_addr): Likewise.
30571 (pupa_linux_real_addr): Likewise.
30572 (pupa_linux_boot_zimage): Likewise.
30573 (pupa_linux_boot_bzimage): Likewise.
30575 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
30576 (pupa_upper_mem): Likewise.
30577 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
30578 module is too dangerous.
30580 * include/pupa/loader.h (pupa_os_area_addr): Declared.
30581 (pupa_os_area_size): Likewise.
30582 (pupa_loader_set): Remove the first argument. Loader doesn't
30583 manage modules or initrd any longer.
30584 (pupa_loader_load_module): Removed.
30586 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
30587 (linux_mod_SOURCES): New variable.
30588 (linux_mod_CFLAGS): Likewise.
30590 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
30592 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
30593 the length of a blocklist correctly.
30595 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
30596 Use ioctl only if the OS file is a block device.
30597 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
30598 not very useful for normal files.
30600 * kern/main.c (pupa_set_root_dev): New function.
30601 (pupa_load_normal_mode): Likewise.
30602 (pupa_main): Call those above.
30604 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
30607 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
30609 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30611 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
30612 (setup): Configure the installed partition information and the
30615 * loader/i386/pc/chainloader.c (my_mod): New variable.
30616 (pupa_chainloader_unload): New function.
30617 (pupa_rescue_cmd_chainloader): Refer itself.
30618 (PUPA_MOD_INIT): Save its own module in MY_MOD.
30620 * kern/i386/pc/startup.S (install_partition): Removed.
30621 (version_string): Likewise.
30622 (config_file): Likewise.
30623 (pupa_install_dos_part): New variable.
30624 (pupa_install_bsd_part): Likewise.
30625 (pupa_prefix): Likewise.
30626 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
30628 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
30630 (make_install_device): New function.
30631 (pupa_machine_init): Set the dl prefix.
30633 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
30634 (buf): Renamed to ...
30635 (linebuf): ... this.
30636 (pupa_rescue_cmd_prefix): New function.
30637 (pupa_rescue_cmd_insmod): Likewise.
30638 (pupa_rescue_cmd_rmmod): Likewise.
30639 (pupa_rescue_cmd_lsmod): Likewise.
30640 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
30643 * kern/mm.c (pupa_memalign): If failed even after invalidating
30644 disk caches, unload unneeded modules and retry.
30646 * kern/misc.c (pupa_memmove): New function.
30647 (pupa_memcpy): Removed.
30648 (pupa_strcpy): New function.
30649 (pupa_itoa): Made static.
30651 * kern/dl.c (pupa_dl_iterate): New function.
30652 (pupa_dl_ref): Likewise.
30653 (pupa_dl_unref): Likewise.
30654 (pupa_dl_unload): Return if succeeded or not.
30655 (pupa_dl_unload_unneeded): New function.
30656 (pupa_dl_unload_all): Likewise.
30657 (pupa_dl_init): Renamed to ...
30658 (pupa_dl_set_prefix): ... this.
30659 (pupa_dl_get_prefix): New function.
30661 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
30662 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
30663 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
30664 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
30665 (pupa_install_dos_part): Declared.
30666 (pupa_install_bsd_part): Likewise.
30667 (pupa_prefix): Likewise.
30668 (pupa_boot_drive): Likewise.
30670 * include/pupa/types.h: Fix a typo.
30672 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
30674 (pupa_memmove): Declared.
30675 (pupa_strcpy): Likewise.
30677 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
30678 pupa_mod_init takes one argument, its own module.
30679 (pupa_dl_unload_unneeded): Declared.
30680 (pupa_dl_unload_all): Likewise.
30681 (pupa_dl_ref): Likewise.
30682 (pupa_dl_unref): Likewise.
30683 (pupa_dl_iterate): Likewise.
30684 (pupa_dl_init): Renamed to ...
30685 (pupa_dl_set_prefix): ... this.
30686 (pupa_dl_get_prefix): Declared.
30688 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
30689 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
30691 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
30692 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
30694 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
30695 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
30697 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
30699 * util/i386/pc/pupa-setup.c (setup): Define the internal
30700 function find_first_partition_start at the top level, because GCC
30701 3.0.x cannot compile internal functions in deeper scopes
30703 (find_root_device): Use lstat instead of stat.
30704 Don't follow symbolic links.
30705 Fix the path-constructing code.
30707 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
30708 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
30709 by a BLKGETSIZE ioctl first, because block devices don't fill
30710 the member st_mode of the structure stat on Linux.
30711 [__linux__] (linux_find_partition): Use a temporary buffer
30712 REAL_DEV for the working space. Copy it to DEV before returning.
30713 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
30714 buffer cache consistent.
30715 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
30716 strncmp. The previous value was merely wrong.
30717 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
30719 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
30720 FAT size is 12. The previous value was merely wrong.
30722 * kern/main.c (pupa_main): Don't split the starting message from
30725 * kern/term.c (pupa_putchar): Put CR after LF instead of before
30726 LF, because BIOS goes crazy about character attributes in this
30729 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
30731 * include/i386/pc/util/biosdisk.h: New file.
30732 * util/i386/pc/biosdisk.c: Likewise.
30733 * util/i386/pc/pupa-setup.c: Likewise.
30735 * Makefile.in (INCLUDE_DISTFILES): Added
30736 include/pupa/i386/pc/util/biosdisk.h.
30737 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
30738 directory util/i386/pc.
30739 (install-local): Added a rule for sbin_UTILITIES.
30740 (uninstall): Likewise.
30742 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
30744 * util/misc.c (xrealloc): New function.
30745 (pupa_malloc): Likewise.
30746 (pupa_free): Likewise.
30747 (pupa_realloc): Likewise.
30748 (pupa_stop): Likewise.
30749 (pupa_putchar): Likewise.
30751 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
30753 * include/pupa/util/misc.h (xrealloc): Declared.
30755 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
30757 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
30758 (PUPA_BOOT_MACHINE_BPB_END): ... this.
30760 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
30761 [PUPA_UTIL] (pupa_fat_fini): Likewise.
30763 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
30764 way should be implemented.
30765 [PUPA_UTIL] (pupa_fat_fini): Likewise.
30767 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
30768 the size of NAME for safety.
30769 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
30772 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
30773 (pupa_setup_SOURCES): Likewise.
30775 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
30777 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
30779 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
30780 bunch of pushl's from pusha, because this destroys the return
30783 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
30785 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
30786 This means that any missing prototypes could be fatal. Also, you
30787 must take care when writing assembly code. See the comments at
30788 the beginning of startup.S, for more details.
30790 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
30791 compilation mechanism.
30792 (pupa_chainloader_real_boot): Likewise.
30793 (pupa_biosdisk_rw_int13_extensions): Likewise.
30794 (pupa_biosdisk_rw_standard): Likewise.
30795 (pupa_biosdisk_check_int13_extensions): Likewise.
30796 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
30797 (pupa_biosdisk_get_diskinfo_standard): Likewise.
30798 (pupa_get_memsize): Likewise.
30799 (pupa_get_mmap_entry): Likewise.
30800 (pupa_console_putchar): Likewise.
30801 (pupa_console_setcursor): Likewise.
30802 (pupa_getrtsecs): Use pushl instead of push.
30804 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
30805 memory instead of the stack for a mmap entry, because some
30806 BIOSes may ignore the maximum size and overflow.
30808 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
30810 * genmk.rb (PModule#rule): Compile automatically generated
30811 sources with module-specific CFLAGS as well as other sources.
30813 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
30815 * configure.ac: Check ld.
30816 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
30817 respectively, before checking endianness and sizes.
30819 * Makefile.in (LD): New variable.
30821 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
30823 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
30825 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
30827 * Changelog: New file.