1 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3 * util/misc.c (grub_util_warn): New function. Emmits a warning
5 * include/grub/util/misc.h (grub_util_warn): New declaration.
7 * util/i386/pc/grub-install.in: Understand --force and pass it down
10 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
12 (setup): Improve error messages and add warnings when requested to
13 install in odd layouts. Refuse to install using blocklists unless
16 2009-05-04 martin f. krafft <madduck@madduck.net>
18 * disk/raid.c (grub_raid_scan_device): Improve debug message.
20 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
22 Updated copyright year
24 * fs/hfsplus.c: updated copyright year
26 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31 in the space previously used by unused3
32 (grub_hfsplus_uuid): new function
33 (grub_hfsplus_fs): added uuid field
35 2009-05-03 Pavel Roskin <proski@gnu.org>
37 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38 suppress warnings. It's no longer needed.
39 * disk/host.c: Likewise.
40 * disk/ata_pthru.c: Likewise.
41 * disk/loopback.c: Likewise.
42 * hook/datehook.c: Likewise.
43 * parttool/pcpart.c: Likewise.
44 * fs/i386/pc/pxe.c: Likewise.
45 * fs/ntfscomp.c: Likewise.
46 * efiemu/main.c: Likewise.
47 * mmap/mmap.c: Likewise.
48 * commands/crc.c: Likewise.
49 * commands/hexdump.c: Likewise.
50 * commands/hdparm.c: Likewise.
51 * commands/acpi.c: Likewise.
52 * commands/echo.c: Likewise.
53 * commands/minicmd.c: Likewise.
54 * commands/blocklist.c: Likewise.
55 * commands/memrw.c: Likewise.
56 * commands/loadenv.c: Likewise.
57 * commands/usbtest.c: Likewise.
58 * commands/lsmmap.c: Likewise.
59 * commands/boot.c: Likewise.
60 * commands/parttool.c: Likewise.
61 * commands/configfile.c: Likewise.
62 * commands/search.c: Likewise.
63 * commands/ieee1275/suspend.c: Likewise.
64 * commands/cat.c: Likewise.
65 * commands/i386/pc/pxecmd.c: Likewise.
66 * commands/i386/pc/play.c: Likewise.
67 * commands/i386/pc/halt.c: Likewise.
68 * commands/i386/pc/vbeinfo.c: Likewise.
69 * commands/i386/pc/vbetest.c: Likewise.
70 * commands/lspci.c: Likewise.
71 * commands/date.c: Likewise.
72 * commands/handler.c: Likewise.
73 * commands/ls.c: Likewise.
74 * commands/test.c: Likewise.
75 * commands/cmp.c: Likewise.
76 * commands/efi/loadbios.c: Likewise.
77 * commands/efi/fixvideo.c: Likewise.
78 * commands/halt.c: Likewise.
79 * commands/help.c: Likewise.
80 * commands/reboot.c: Likewise.
81 * hello/hello.c: Likewise.
82 * script/sh/main.c: Likewise.
83 * loader/xnu.c: Likewise.
84 * term/terminfo.c: Likewise.
85 * term/i386/pc/serial.c: Likewise.
86 * term/usb_keyboard.c: Likewise.
88 2009-05-03 David S. Miller <davem@davemloft.net>
90 * normal/menu.c: Include grub/parser.h
92 2009-05-03 Pavel Roskin <proski@gnu.org>
94 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
96 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
97 Suggested by Javier MartÃn <lordhabbit@gmail.com>
99 * util/i386/pc/grub-mkrescue.in: Allow for the case when
100 efiemu??.o doesn't exist.
101 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
104 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
106 FreeBSD 64-bit support
108 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
109 and loader/i386/bsd_trampoline.S
110 (bsd_mod_ASFLAGS): new variable
111 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
112 (FREEBSD_MODTYPE_KERNEL64): likewise
113 (grub_bsd64_trampoline_start): likewise
114 (grub_bsd64_trampoline_end): likewise
115 (grub_bsd64_trampoline_selfjump): likewise
116 (grub_bsd64_trampoline_gdt): likewise
117 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
118 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
119 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
120 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
121 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
123 * loader/i386/bsd_pagetable.c: new file
124 * loader/i386/bsd_trampoline.S: likewise
125 * loader/i386/bsd.c (ALIGN_QWORD): new macro
126 (ALIGN_VAR): likewise
127 (entry_hi): new variable
128 (kern_end_mdofs): likewise
130 (grub_freebsd_add_meta): use ALIGN_VAR
131 (grub_e820_mmap): new declaration
132 (grub_freebsd_add_mmap): new function
133 (grub_freebsd_add_meta_module): support 64 bit kernels
134 (grub_freebsd_list_modules): use ALIGN_VAR
135 (gdt_descriptor): new declaration
136 (grub_freebsd_boot): support 64 bit kernels
137 (grub_bsd_elf64_hook): new function
138 (grub_bsd_load_elf): support elf64
140 2009-05-03 Bean <bean123ch@gmail.com>
142 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
143 after we get the result of if statement.
145 2009-05-03 Bean <bean123ch@gmail.com>
147 * Makefile.in (enable_efiemu): New variable.
149 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
151 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
153 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
154 path, add -mno-red-zone option.
155 (efiemu64_s.o): Likewise.
156 (efiemu64.o): Use macro $^ for source file.
158 * configure.ac (--enable-efiemu): New option.
160 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
164 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
165 (pkglib_MODULES): add xnu.mod
166 (xnu_mod_SOURCES): new variable
167 (xnu_mod_CFLAGS): likewise
168 (xnu_mod_LDFLAGS): likewise
169 (xnu_mod_ASFLAGS): likewise
170 * conf/i386-pc.rmk: likewise
171 * conf/x86_64-efi.rmk: likewise
172 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
174 * include/grub/i386/macho.h: new file
175 * include/grub/i386/xnu.h: likewise
176 * include/grub/macho.h: likewise
177 * include/grub/machoload.h: likewise
178 * include/grub/x86_64/macho.h: likewise
179 * include/grub/x86_64/xnu.h: likewise
180 * include/grub/xnu.h: likewise
181 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
182 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
183 * loader/i386/efi/xnu.c: new file
184 * loader/i386/pc/xnu.c: likewise
185 * loader/i386/xnu.c: likewise
186 * loader/i386/xnu_helper.S: likewise
187 * loader/macho.c: likewise
188 * loader/xnu.c: likewise
189 * loader/xnu_resume.c: likewise
190 * util/grub-dumpdevtree: likewise
191 * include/grub/i386/pit.h: include grub/err.h
192 (grub_pit_wait): export
193 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
195 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
199 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
200 _linux_efi, linux_efi.
201 new files in grub-emu
202 new targets efiemu32.o and efiemu64.o
203 * loader/linux_normal_efiemu.c: likewise
204 * loader/i386/efi/linux.c: added preliminary efiemu support
205 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
207 * include/grub/autoefi.h: new file
208 * include/grub/i386/efiemu.h: likewise
209 * include/grub/i386/pc/efiemu.h: likewise
210 * include/grub/efi/api.h: add LL suffix when necessary
211 new definitions relating to tables
212 * include/grub/efiemu/efiemu.h: new file
213 * include/grub/efiemu/runtime.h: likewise
214 * efiemu/prepare.c: likewise
215 * efiemu/loadcore_common.c: likewise
216 * efiemu/loadcore64.c: likewise
217 * efiemu/runtime/efiemu.sh: likewise
218 * efiemu/runtime/efiemu.S: likewise
219 * efiemu/runtime/efiemu.c: likewise
220 * efiemu/runtime/config.h: likewise
221 * efiemu/prepare32.c: likewise
222 * efiemu/main.c: likewise
223 * efiemu/modules/pnvram.c: likewise
224 * efiemu/modules/i386: likewise
225 * efiemu/modules/i386/pc: likewise
226 * efiemu/modules/acpi.c: likewise
227 * efiemu/i386/pc/cfgtables.c: likewise
228 * efiemu/i386/loadcore64.c: likewise
229 * efiemu/i386/loadcore32.c: likewise
230 * efiemu/prepare64.c: likewise
231 * efiemu/loadcore.c: likewise
232 * efiemu/symbols.c: likewise
233 * efiemu/mm.c: likewise
234 * efiemu/loadcore32.c: likewise
236 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
240 * commands/acpi.c: new file
241 * commands/i386/pc/acpi.c: likewise
242 * commands/efi/acpi.c: likewise
243 * include/grub/acpi.h: likewise
244 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
245 (acpi_mod_SOURCES): new variable
246 (acpi_mod_CFLAGS): likewise
247 (acpi_mod_LDFLAGS): likewise
248 * conf/i386-efi.rmk: likewise
249 * conf/x86_64-efi.rmk: likewise
251 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
253 Missing part from mmap patch
255 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
256 (grub_mmap_unregister)
257 (grub_mmap_free_and_unregister): use grub_mmap_register
259 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
263 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
264 * loader/i386/linux.c (find_mmap_size): likewise
265 (allocate_pages): likewise
266 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
267 (grub_fill_multiboot_mmap): likewise
268 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
269 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
270 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
271 (OPENBSD_MMAP_RESERVED): likewise
272 * include/grub/i386/pc/memory.h: include grub/memory.h
273 (grub_lower_mem): removed
274 (grub_upper_mem): likewise
275 (GRUB_MACHINE_MEMORY_ACPI): new definition
276 (GRUB_MACHINE_MEMORY_NVS): likewise
277 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
278 (GRUB_MACHINE_MEMORY_HOLE): likewise
279 (grub_machine_mmap_register): likewise
280 (grub_machine_mmap_unregister): likewise
281 (grub_machine_get_upper): likewise
282 (grub_machine_get_lower): likewise
283 (grub_machine_get_post64): likewise
284 * include/grub/i386/efi/memory.h: new file
285 * include/grub/x86_64/efi/memory.h: likewise
286 * include/grub/efi/memory.h: likewise
287 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
288 (mmap_mod_SOURCES): new variable
289 (mmap_mod_LDFLAGS): likewise
290 (mmap_mod_ASFLAGS): likewise
291 * conf/i386-coreboot.rmk: likewise
292 * conf/i386-ieee1275.rmk: likewise
293 * conf/i386-efi.rmk: likewise
294 * conf/x86_64-efi.rmk: likewise
295 * include/grub/types.h (UINT_TO_PTR): new macro
296 (PTR_TO_UINT32): likewise
297 (PTR_TO_UINT64): likewise
298 * include/grub/memory.h: new file
299 * mmap/i386/pc/mmap.c: likewise
300 * mmap/i386/pc/mmap_helper.S: likewise
301 * mmap/i386/uppermem.c: likewise
302 * mmap/mmap.c: likewise
303 * mmap/efi/mmap.c: likewise
304 * kern/i386/coreboot/init.c (grub_machine_init): don't use
306 * kern/i386/pc/init.c (grub_lower_mem): removed variable
307 (grub_upper_mem): likewise
308 (grub_machine_init): don't use grub_upper_mem,
309 make grub_lower_mem local
310 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
311 grub_mmap_iterate and grub_mmap_get_upper
312 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
314 2009-05-02 Bean <bean123ch@gmail.com>
316 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
318 (pkglib_MODULES): Add normal.mod and sh.mod.
319 (normal_SOURCES): New variable.
320 (normal_mod_CFLAGS): Likewise.
321 (normal_mod_LDFLAGS): Likewise.
322 (sh_mod_SOURCES): Likewise.
323 (sh_mod_CFLAGS): Likewise.
324 (sh_mod_LDFLAGS): Likewise.
326 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
327 script/sh/lexer.c_DEPENDENCIES.
328 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
329 kern/rescue_reader.c and kern/rescue_parser.c.
330 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
331 (grub_emu_SOURCES): Change source files.
332 (pkglib_MODULES): Remove normal.mod.
333 (normal_SOURCES): Removed.
334 (normal_mod_CFLAGS): Likewise.
335 (normal_mod_LDFLAGS): Likewise.
336 * conf/i386-coreboot.rmk: Likewise.
337 * conf/i386-efi.rmk: Likewise.
338 * conf/i386-ieee1276.rmk: Likewise.
339 * conf/powerpc-ieee1275.rmk: Likewise.
340 * conf/sparc64-ieee1275.rmk: Likewise.
341 * conf/x86_64-efi.rmk: Likewise.
343 * include/grub/command.h (grub_command_execute): New inline function.
345 * include/grub/menu.h (grub_menu_entry): Removed commands field.
347 * include/grub/normal.h: Remove <grub/setjmp.h>.
348 (grub_fs_module_list): Moved to normal/autofs.c.
349 (grub_exit_env): Removed.
350 (grub_command_execute): Likewise.
351 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
353 (read_command_list): New function declaration.
354 (read_fs_list): Likewise.
356 * include/parser.h: Include <grub/reader.h>.
357 (grub_parser_split_cmdline): Change type of getline parameter.
358 (grub_parser): New structure.
359 (grub_parser_class): New variable.
360 (grub_parser_execute): New function declaration.
361 (grub_register_rescue_parser): Likewise.
362 (grub_parser_register): New inline function.
363 (grub_parser_unregister): Likewise.
364 (grub_parser_get_current): Likewise.
365 (grub_parser_set_current): Likewise.
367 * include/grub/reader.h: New file.
368 * kern/reader.c: Likewise.
369 * kern/rescue_parser.c: Likewise.
370 * kern/rescue_reader.c: Likewise.
371 * normal/autofs.c: Likewise.
372 * normal/dyncmd.c: Likewise.
374 * include/grub/rescue.h: Removed.
375 * normal/command.h: Likewise.
377 * include/grub/script.h: Moved to ...
378 * include/grub/script_sh.h: ... Moved here.
379 * normal/execute.c: Moved to ...
380 * script/sh/execute.c: ... Moved here.
381 * normal/function.c: Moved to ...
382 * script/sh/function.c: ... Moved here.
383 * normal/lexer.c: Moved to ...
384 * script/sh/lexer.c: ... Moved here.
385 * normal/parser.y: Moved to ...
386 * script/sh/parser.y: ... Moved here.
387 * normal/script.c: Moved to ...
388 * script/sh/script.c: ... Moved here.
390 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
392 (grub_exit_env): Removed.
393 (fs_module_list): Moved to normal/autofs.c.
394 (grub_file_getline): Don't handle comment here.
395 (free_menu): Skip removed field entry->commands.
396 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
398 (read_config_file): Removed nested parameter, change getline function.
399 (grub_enter_normal_mode): Removed.
400 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
401 (read_command_list): Likewise.
402 (autoload_fs_module): Moved to normal/autofs.c.
403 (read_fs_list): Likewise.
404 (reader_nested): New variable.
405 (grub_normal_execute): Run parser.sh to switch to sh parser.
406 (grub_cmd_rescue): Removed.
407 (cmd_normal): Removed.
408 (grub_cmd_normal): Unregister itself at the beginning. Don't register
410 (grub_cmdline_run): New function.
411 (grub_normal_reader_init): Likewise.
412 (grub_normal_read_line): Likewise.
413 (grub_env_write_pager): Likewise.
414 (cmdline): New variable.
415 (grub_normal_reader): Likewise.
416 (GRUB_MOD_INIT): Register normal reader and set as current, register
417 pager hook, register normal command with grub_register_command_prio,
418 so that it won't show up in command.lst.
419 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
420 grub_fs_autoload_hook.
422 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
423 (grub_menu_execute_entry): Replace grub_script_execute with
424 grub_parser_execute, change parameter to grub_command_execute.
426 * normal/menu_text.c: Remove <grub/script.h>.
428 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
430 (run): Change editor_getline to use new parser interface. Change
431 parameter to grub_command_execute.
433 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
434 <grub/reader.h> and <grub/parser.h>.
435 (grub_load_normal_mode): Execute normal command.
436 (grub_main): Call grub_register_core_commands,
437 grub_register_rescue_parser and grub_register_rescue_reader, use
438 grub_reader_loop to enter input loop.
440 * kern/parser.c (grub_parser_split_cmdline): Change type of
442 (grub_parser_class): New variable.
443 (grub_parser_execute): New function.
445 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
446 * loader/multiboot2.c: Likewise.
447 * loader/sparc64/ieee1275/linux.c: Likewise.
449 * util/grub-emu.c (read_command_list): New dummy function.
451 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
453 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
454 count to 16 for CCISS and IDA.
456 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
458 * normal/menu_text.c (grub_wait_after_message): Print a newline
459 after waiting for user input.
461 * loader/i386/linux.c: Include `<grub/normal.h>'.
462 (grub_cmd_linux): Improve the error message about `ask' mode, by
463 waiting for user input so it's not missed (we can do this, since
464 user requested interaction).
466 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
468 Added missing lst to grub-mkrescue
470 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
471 and ${input_dir}/parttool.lst
473 2009-04-30 David S. Miller <davem@davemloft.net>
475 * util/hostdisk.c (device_is_wholedisk): New function.
476 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
477 zero only if device_is_wholedisk() returns true.
479 * util/hostdisk.c (convert_system_partition_to_system_disk):
480 Handle virtual disk devices named /dev/vdiskX as found on sparc
483 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
484 lettered partition specifier is found, convert to numbered.
486 2009-04-29 David S. Miller <davem@davemloft.net>
488 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
489 * include/grub/sparc64/ieee1275/memory.h: Likewise.
491 * normal/command.c: Add missing newline at end of file.
493 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
495 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
496 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
497 grub_ofdisk_read): Likewise, and deal similarly with the fact that
498 ihandles have a 32-bit type but need to be stored in a "void *".
500 2009-04-28 Pavel Roskin <proski@gnu.org>
502 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
503 not disk. Adjust all dependencies.
504 (grub_fs_uuid_close): Use grub_device_close(), not
507 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
508 parent's partition, don't copy it by reference, as it gets freed
511 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
513 Preboot hooks support
515 * commands/boot.c (struct grub_preboot_t): new declaration
516 (preboots_head): new variable
517 (preboots_tail): likewise
518 (grub_loader_register_preboot_hook): new function
519 (grub_loader_unregister_preboot_hook): likewise
520 (grub_loader_set): launch preboot hooks
521 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
522 (grub_loader_register_preboot_hook): new declaration
523 (grub_loader_unregister_preboot_hook): likewise
525 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
529 * disk/scsi.c (grub_scsi_open): added missing cast when
532 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
534 Bug and warning fixes
536 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
538 * commands/test.c (test_parse): fixed bug with file tests and corrected
539 declaration of find_file
541 2009-04-26 Pavel Roskin <proski@gnu.org>
543 * Makefile.in: Don't install empty manual pages if help2man is
544 missing. Use help2man option for output, not shell redirection.
546 2009-04-26 David S. Miller <davem@davemloft.net>
548 * util/grub-mkdevicemap.c (make_device_map): Add missing
549 NESTED_FUNC_ATTR to process_device().
551 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
555 * commands/test.c: rewritten to use bash-like test
557 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
559 Parttool autoloading and improvements
561 * Makefile.in (pkglib_DATA): add parttool.lst
562 (parttool.lst): new target
563 * genmk.rb: generate parttool-*
564 (CLEANFILES): add #{parttool}
565 (PARTTOOLFILES): new variable
566 * genparttoollist.sh: new file
567 * parttool/pcpart.c (grub_pcpart_boot): more feedback
568 (grub_pcpart_type): likewise
569 * commands/parttool.c (helpmsg): new variable
570 (grub_cmd_parttool): output help if not enough arguments are supplied
572 (GRUB_MOD_INIT(parttool)): use helpmsg
574 2009-04-24 David S. Miller <davem@davemloft.net>
576 Avoiding opening same device multiple times in device iterator.
578 * kern/device.c: (grub_device_iterate): Define struct part_ent,
579 and use it to build a list of partitions in iterate_disk() and
582 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
585 * disk/ieee1275/nand.c (grub_nand_iterate): Return
586 grub_devalias_iterate() result instead of unconditional 0.
587 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
588 Also, capture hook return value, either directly or via
589 grub_children_iterate(), and propagate to caller.
590 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
591 grub_children_iterate): Return value is now 'int' instead of
593 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
594 like a proper iterator, stopping when hooks return non-zero.
595 (grub_devalias_iterate): Likewise.
597 2009-04-23 David S. Miller <davem@davemloft.net>
599 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
601 2009-04-22 David S. Miller <davem@davemloft.net>
603 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
604 is larger than address_cells, use that value for address_cells too.
606 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
607 IEEE1275_MAX_PATH_LEN): Define.
608 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
609 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
610 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
611 'devtype'. Explicitly NULL terminate devalias expansion.
613 * util/sparc64/ieee1275/misc.c: New file.
614 * util/sparc64/ieee1275/grub-setup.c: New file.
615 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
616 * util/sparc64/ieee1275/grub-mkimage.c: New file.
617 * util/sparc64/ieee1275/grub-install.in: New file.
618 * util/ieee1275/ofpath.c: New file.
619 * util/ieee1275/devicemap.c: New file.
620 * util/devicemap.c: New file.
621 * util/deviceiter.c: New file.
622 * kern/sparc64/ieee1275/init.c: New file.
623 * include/grub/util/ofpath.h: New file.
624 * include/grub/util/deviceiter.h: New file.
625 * util/grub-mkdevicemap.c: Include deviceiter.h.
626 Implement using grub_util_emit_devicemap_entry and
627 grub_util_iterate_devices.
628 * conf/i386-corebook.rmk: Build util/deviceiter.c and
629 util/devicemap.c into grub-mkdevicemap
630 * conf/i386-efi.rmk: Likewise.
631 * conf/i386-ieee1275.rmk: Likewise.
632 * conf/i386-pc.rmk: Likewise.
633 * conf/powerpc-ieee1275.rmk: Likewise.
634 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
635 images and installation utilities. Build kernel as image
636 instead of as elf binary. Use common rules as much as possible.
638 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
640 Correct GPT definition
642 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
645 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
647 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
649 2009-04-19 David S. Miller <davem@davemloft.net>
651 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
652 (grub_rescue_cmd_linux): Rename to...
653 (grub_cmd_linux): and fix prototype.
654 (grub_rescue_cmd_initrd): Rename to...
655 (grub_cmd_initrd): and fix prototype.
656 (cmd_linux, cmd_initrd): New.
657 (GRUB_MOD_INIT(linux)): Use grub_register_command().
658 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
660 2009-04-17 Pavel Roskin <proski@gnu.org>
662 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
664 (grub_ohci_transfer): Likewise.
666 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
668 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
669 return without a value. Fix inconsistent indentation.
671 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
672 match struct grub_fs.
674 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
675 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
676 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
677 * commands/lspci.c (grub_lspci_iter): Likewise.
679 2009-04-16 Bean <bean123ch@gmail.com>
681 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
684 2009-04-15 Pavel Roskin <proski@gnu.org>
686 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
687 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
688 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
691 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
693 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
694 that no multiple data or metadata areas are supported and `Unknown
697 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
699 Move loader out of the kernel
701 * kern/loader.c: moved to ...
702 * commands/boot.c: ... moved here
703 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
704 * commands/boot.c (grub_cmd_boot): moved here. All users updated
705 * include/grub/kernel.h (grub_machine_fini): export
706 * include/grub/loader.h (grub_loader_is_loaded): update declaration
707 (grub_loader_set): likewise
708 (grub_loader_unset): likewise
709 (grub_loader_boot): likewise
710 * conf/common.rmk: new module boot.mod
711 (pkglib_MODULES): add boot.mod
712 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
713 (grub_emu_SOURCES): likewise
714 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
715 (grub_emu_SOURCES): likewise
716 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
717 (grub_emu_SOURCES): likewise
718 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
719 (grub_emu_SOURCES): likewise
720 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
721 (grub_emu_SOURCES): likewise
722 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
723 (grub_emu_SOURCES): likewise
724 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
725 (grub_emu_SOURCES): likewise
727 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
729 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
731 * kern/misc.c (grub_itoa): Removed function
732 (grub_ltoa): likewise
733 (grub_vsprintf): use grub_lltoa
735 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
739 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
740 * conf/i386-coreboot.rmk: likewise
741 * conf/i386-ieee1275.rmk: likewise
742 * conf/powerpc-ieee1275.rmk: likewise
744 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
746 * INSTALL: Add that `./autogen.sh' needs to be run before
749 2009-04-14 Bean <bean123ch@gmail.com>
751 * Makefile.in (pkglib_DATA): Add handler.lst.
752 (handler.lst): New rule.
754 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
755 * conf/i386-coreboot.rmk: Likewise.
756 * conf/i386-ieee1275.rmk: Likewise.
757 * conf/i386-efi.rmk: Likewise.
758 * conf/x86_64-efi.rmk: Likewise.
759 * conf/powerpc-ieee1275.rmk: Likewise.
760 * conf/sparc64-ieee1275.rmk: Likewise.
762 * genhandlerlist.sh: New file.
764 * genmk.rb: Add rules to generate handler.lst.
766 * include/grub/normal.h (grub_file_getline): New function definition.
767 (read_handler_list): Likewise.
768 (free_handler_list): Likewise.
770 * include/grub/term.h (grub_term_register_input): Add name parameter
771 for auto generation of handler.lst.
772 (grub_term_register_output): Likewise.
774 * normal/handler.c: New file.
776 * normal/main.c (get_line): Renamed to grub_file_getline.
777 (read_config_file): Use the newly renamed grub_file_getline.
778 (read_command_list): Likewise.
779 (read_fs_list): Likewise.
780 (grub_normal_execute): Call read_handler_list to parse handler.lst.
781 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
783 * term/efi/console.c (grub_console_init): Add name parameter for auto
784 generation of handler.lst.
785 * term/gfxterm.c: Likewise.
786 * term/i386/pc/at_keyboard.c: Likewise.
787 * term/i386/pc/console.c: Likewise.
788 * term/i386/pc/serial.c: Likewise.
789 * term/i386/pc/vesafb.c: Likewise.
790 * term/i386/pc/vga.c: Likewise.
791 * term/i386/pc/vga_text.c: Likewise.
792 * term/ieee1275/ofconsole.c: Likewise.
793 * term/usb_keyboard.c: Likewise.
795 2009-04-14 Bean <bean123ch@gmail.com>
797 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
798 properly with null character.
800 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
803 * config.h.in: Likewise.
804 * stamp-h.in: Likewise.
805 * DISTLIST: Likewise.
806 * conf/common.mk: Likewise.
807 * conf/i386-coreboot.mk: Likewise.
808 * conf/i386-efi.mk: Likewise.
809 * conf/i386-ieee1275.mk: Likewise.
810 * conf/i386.mk: Likewise.
811 * conf/i386-pc.mk: Likewise.
812 * conf/powerpc-ieee1275.mk: Likewise.
813 * conf/sparc64-ieee1275.mk: Likewise.
814 * conf/x86_64-efi.mk: Likewise.
816 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
819 2009-04-14 John Stanley <jpsinthemix@verizon.net>
820 David S. Miller <davem@davemloft.net>
822 * util/hostdisk.c (make_device_name): Fix buffer length
825 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
827 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
828 <sys/param.h> and <sys/sysctl.h>.
829 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
830 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
831 opening the device and reset them afterwards.
833 2009-04-13 Pavel Roskin <proski@gnu.org>
835 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
836 Reported by John Stanley <jpsinthemix@verizon.net>
838 2009-04-13 Robert Millan <rmh@aybabtu.com>
840 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
841 that name for menuentries when appropriate.
843 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
845 * util/grub.d/10_freebsd.in: Add a missing `fi'.
847 2009-04-13 Robert Millan <rmh@aybabtu.com>
849 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
850 to Linux, simply abort telling the user it's no longer supported.
852 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
854 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
855 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
856 `freebsd_loadenv' only when devices.hints exist.
858 2009-04-13 Pavel Roskin <proski@gnu.org>
860 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
862 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
864 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
866 (grub_drive): Likewise.
868 2009-04-13 David S. Miller <davem@davemloft.net>
870 * kern/sparc64/ieee1275/ieee1275.c: New file.
871 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
872 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
873 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
874 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
875 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
876 grub_ieee1275_alloc_physmem): Declare new exported functions.
878 * include/grub/sparc64/ieee1275/loader.h: New file.
879 * include/grub/sparc64/ieee1275/memory.h: Likewise.
880 * include/grub/sparc64/kernel.h: Likewise.
881 * loader/sparc64/ieee1275/linux.c: Likewise.
883 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
884 (grub_fstest_SOURCES): Likewise.
886 * util/hostdisk.c (make_device_name): Do not make any assumptions
887 about the length of drive names.
889 * kern/dl.c (grub_dl_load_file): Close file immediately when
890 we are done using it.
892 2009-04-12 David S. Miller <davem@davemloft.net>
894 * kern/misc.c (grub_ltoa): Fix cast when handling negative
895 values. Noticed by Pavel Roskin.
897 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
900 * genmk.rb: Add more flexible image type specification, also
901 pass --strip-unneeded to objcopy.
902 * conf/i386-pc.rmk: Use *_FORMAT.
903 * conf/i386-pc.mk: Rebuilt.
905 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
906 (OFDISK_HASH_SZ): Define.
907 (ofdisk_hash): New hash table.
908 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
909 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
910 instead of device phandle which is not unique.
912 * kern/sparc64/ieee1275/init.c: Delete, replace with...
913 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
914 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
915 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
916 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
917 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
918 GRUB_KERNEL_MACHINE_DATA_END): Define.
919 (grub_kernel_image_size, grub_total_module_size): Declare.
921 2009-04-12 Pavel Roskin <proski@gnu.org>
923 * configure.ac: Change the logic when we check for target tools.
924 Do it when the target is specified and it's different from the
925 specified value of the host.
927 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
929 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
930 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
931 GNU/kFreeBSD. Check if a device is a character device. Use
932 DIOCGMEDIASIZE to get the size.
933 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
934 support for GNU/kFreeBSD.
935 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
936 is a character device instead of a block device. Add support for
937 FreeBSD device names.
939 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
940 is a character device instead of a block device.
942 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
943 is a character device instead of a block device.
945 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
947 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
948 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
949 FreeBSD. Check if a device is a character device. Use
950 DIOCGMEDIASIZE to get the size.
951 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
953 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
954 is a character device instead of a block device. Add support for
955 FreeBSD device names.
957 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
958 a character device instead of a block device.
959 (grub_util_check_char_device): New function.
961 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
962 a character device instead of a block device.
964 * include/grub/util/getroot.h (grub_util_check_char_device): New
967 2009-04-11 David S. Miller <davem@davemloft.net>
969 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
971 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
972 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
973 function, if present.
974 (__bswapdi2): Likewise.
976 * include/grub/sparc64/ieee1275/boot.h: New file.
977 * boot/sparc64/ieee1275/boot.S: Likewise.
978 * boot/sparc64/ieee1275/diskboot.S: Likewise.
980 * kern/misc.c (grub_ltoa): New function.
981 (grub_vsprintf): Use it to format 'long' integers.
983 2009-04-10 David S. Miller <davem@davemloft.net>
985 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
986 slots are of type grub_ieee1275_cell_t.
987 (grub_nand_read): Likewise.
988 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
989 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
990 macros are used to compare values in arg/ret block of the call.
991 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
992 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
993 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
994 grub_ieee1275_instance_to_path, grub_ieee1275_write,
995 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
996 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
997 grub_ieee1275_close, grub_ieee1275_set_property,
998 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
999 grub_ieee1275_cell_t.
1000 * kern/ieee1275/openfw.c (grub_map): Likewise.
1001 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
1002 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
1004 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
1005 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
1006 (grub_devalias_iterate): Likewise.
1008 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1012 * fs/ufs.c (INODE_NBLOCKS): new definition
1013 (struct grub_ufs_dirent): added fields for non-BSD dirents
1014 (grub_ufs_get_file_block): fixed double indirect handling
1015 (grub_ufs_lookup_symlink): use more robust way to determine whether
1017 (grub_ufs_find_file): support for non-BSD dirents
1018 (grub_ufs_dir): support for non-BSD dirents
1020 2009-04-10 Bean <bean123ch@gnail.com>
1022 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
1023 attribute, otherwise the size would be wrong for i386 platform.
1025 * include/grub/pci.h (grub_pci_read_word): New inline function.
1026 (grub_pci_read_byte): Likewise.
1027 (grub_pci_write): Likewise.
1028 (grub_pci_write_word): Likewise.
1029 (grub_pci_write_byte): Likewise.
1031 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
1033 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
1034 (find_framebuf): Scan pci to locate the frame buffer address.
1036 * commands/efi/fixvideo.c: New file.
1038 * commands/efi/loadbios.c: Likewise.
1040 * commands/memrw.c: Likewise.
1042 * util/grub-dumpbios.in: Likewise.
1044 * conf/common.rmk (grub-dumpbios): New utility.
1045 (pkglib_MODULES): New module memrw.mod.
1046 (memrw_mod_SOURCE): New macro.
1047 (memrw_mod_CFLAGS): Likewise.
1048 (memrw_mod_LDFLAGS): Likewise.
1050 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
1052 (loadbios_mod_SOURCE): New macro.
1053 (loadbios_mod_CFLAGS): Likewise.
1054 (loadbios_mod_LDFLAGS): Likewise.
1055 (fixvideo_mod_SOURCE): Likewise.
1056 (fixvideo_mod_CFLAGS): Likewise.
1057 (fixvideo_mod_LDFLAGS): Likewise.
1059 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
1061 (loadbios_mod_SOURCE): New macro.
1062 (loadbios_mod_CFLAGS): Likewise.
1063 (loadbios_mod_LDFLAGS): Likewise.
1064 (fixvideo_mod_SOURCE): Likewise.
1065 (fixvideo_mod_CFLAGS): Likewise.
1066 (fixvideo_mod_LDFLAGS): Likewise.
1068 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
1070 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
1072 2009-04-07 David S. Miller <davem@davemloft.net>
1074 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
1075 support for R_SPARC_OLO10 relocations. Fix compile warning for
1076 R_SPARC_WDISP30 case.
1077 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
1079 2009-04-06 Pavel Roskin <proski@gnu.org>
1081 * include/grub/misc.h (ARRAY_SIZE): New macro.
1082 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
1084 * loader/i386/linux.c (allocate_pages): Use free_pages().
1085 (grub_linux_unload): Don't use free_pages().
1086 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
1087 wrong index. Treat all other modes as text modes.
1088 (grub_cmd_linux): Initialize vid_mode unconditionally to
1089 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
1091 * commands/help.c (print_command_help): Use cmd->prio, not
1092 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
1094 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1098 * parttool/pcpart.c: new file
1099 * commands/parttool.c: likewise
1100 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
1101 (parttool_mod_SOURCES): new variable
1102 (parttool_mod_CFLAGS): likewise
1103 (parttool_mod_LDFLAGS): likewise
1104 (pcpart_mod_SOURCES): likewise
1105 (pcpart_mod_CFLAGS): likewise
1106 (pcpart_mod_LDFLAGS): likewise
1107 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
1108 and parttool/pcpart.c
1109 * conf/i386-efi.rmk: likewise
1110 * conf/i386-ieee1275.rmk: likewise
1111 * conf/i386-pc.rmk: likewise
1112 * conf/powerpc-ieee1275.rmk: likewise
1113 * conf/sparc64-ieee1275.rmk: likewise
1114 * conf/x86_64-ieee1275.rmk: likewise
1116 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1118 Support for mtime and further expandability of dir command
1120 * include/grub/lib/datetime.h: moved to ...
1121 * include/grub/datetime.h: ... moved here and added
1122 declaration of grub_unixtime2datetime. All users updated
1123 * include/grub/fs.h: new syntax for dir and mtime functions in
1125 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
1126 and GRUB_FSHELP_FLAGS_MASK
1127 * commands/ls.c (grub_ls_list_files): Write mtime in long format
1128 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
1129 (grub_ext2_mtime): new function
1130 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
1131 (grub_hfsplus_mtime): new function
1132 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
1133 (GRUB_UFS_ATTR_FILE): likewise
1134 (GRUB_UFS_ATTR_LNK): likewise
1135 (struct grub_ufs_sblock): new fields mtime
1136 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
1138 (grub_ufs_dir): mtime support
1139 (grub_ufs_mtime): new function
1140 * fs/affs.c (grub_affs_dir): use new dir syntax
1141 * fs/afs.c (grub_afs_dir): likewise
1142 * fs/cpio.c (grub_cpio_dir): likewise
1143 * fs/fat.c (grub_fat_find_dir): likewise
1144 * fs/hfs.c (grub_hfs_dir): likewise
1145 * fs/iso9660.c (grub_iso9660_dir): likewise
1146 * fs/jfs.c (grub_jfs_dir): likewise
1147 * fs/minix.c (grub_minix_dir): likewise
1148 * fs/ntfs.c (grub_ntfs_dir): likewise
1149 * fs/reiserfs.c (grub_reiserfs_dir): likewise
1150 * fs/sfs.c (grub_sfs_dir): likewise
1151 * fs/xfs.c (grub_xfs_dir): likewise
1152 * util/hostfs.c (grub_hostfs_dir): likewise
1153 * lib/datetime.c: moved to ...
1154 * normal/datetime.c: ... moved here
1155 (grub_unixtime2datetime): new function
1156 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
1157 * normal/completion.c (iterate_dir): use new dir syntax
1158 * normal/misc.c (grub_normal_print_device_info): tell the
1159 last modification time of a volume
1160 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
1161 * conf/common.rmk: added lib/datetime.c to ls.mod
1162 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
1163 (normal_mod_SOURCES): likewise
1164 (datetime_mod_SOURCES): Removed lib/datetime.c
1165 * conf/i386-efi.rmk: likewise
1166 * conf/i386-ieee1275.rmk: likewise
1167 * conf/i386-pc.rmk: likewise
1168 * conf/powerpc-ieee1275.rmk: likewise
1169 * conf/sparc64-ieee1275.rmk: likewise
1170 * conf/x86_64-efi.rmk: likewise
1172 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1174 Trim trailing spaces in FAT label and support mtools-like labels
1176 * fs/fat.c (grub_fat_iterate_dir): New function based
1177 on grub_fat_find_dir
1178 (grub_fat_find_dir): use grub_fat_iterate_dir
1179 (grub_fat_label): likewise
1181 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1183 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
1185 remove extraneous kernel_elf_HEADERS
1187 2009-04-04 Bean <bean123ch@gnail.com>
1189 * include/grub/util/misc.h: Add dummy function fsync for mingw.
1191 * util/misc.c: Likewise.
1193 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
1195 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
1196 instead of grub_printf.
1198 2009-04-03 Robert Millan <rmh@aybabtu.com>
1200 * loader/i386/linux.c (grub_linux_setup_video): Fill
1201 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
1202 values from `mode info' structure instead of hardcoded
1205 2009-04-01 Pavel Roskin <proski@gnu.org>
1207 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
1209 * genmk.rb: Likewise.
1210 * configure.ac: Likewise.
1212 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
1214 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
1215 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
1217 2009-04-01 David S. Miller <davem@davemloft.net>
1219 * normal/sparc64/setjmp.S: Fix setjmp implementation.
1220 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
1221 (grub_setjmp): Mark with 'returns_twice' attribute.
1222 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
1223 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
1224 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
1226 2009-04-01 Robert Millan <rmh@aybabtu.com>
1228 Reapply fix from 2008-07-28 which was accidentally reverted; also
1229 perform the same fix to a similar check in same function.
1231 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
1232 with the same number are found, just use issue a warning with
1233 grub_dprintf(), as this error has been reported to be non-fatal.
1235 2009-03-31 Pavel Roskin <proski@gnu.org>
1237 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
1238 for cross-compilation.
1240 2009-03-30 Robert Millan <rmh@aybabtu.com>
1242 Fix i386-ieee1275 build.
1244 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
1247 2009-03-30 Pavel Roskin <proski@gnu.org>
1249 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
1250 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
1251 zero-terminated, rely only on the strlen value. Fix comparison
1252 of strings differing in length.
1254 2009-03-30 Robert Millan <rmh@aybabtu.com>
1256 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
1257 checking for abi version. Improve error messages on BIOS to notify
1258 user about `linux16' command.
1260 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1264 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
1265 in case of collision
1266 * disk/scsi.c (grub_scsi_open): free scsi in case of error
1268 2009-03-29 Robert Millan <rmh@aybabtu.com>
1270 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
1271 set `vid_mode' accordingly.
1272 (grub_linux_boot): Process `vid_mode' and set video mode.
1274 2009-03-29 Robert Millan <rmh@aybabtu.com>
1276 * util/grub.d/10_linux.in (linux_entry): New function.
1277 Factorize generation of Linux boot entries.
1279 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
1281 Make the format of Environment Block plain text. The boot loader
1282 part is not tested well yet.
1284 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
1287 (usage): Remove "info" and "clear". Add "unset". Update the
1288 description of "set", as this does not delete variables any
1290 (create_envblk_file): Complete rewrite.
1291 (open_envblk_file): Likewise.
1292 (cmd_info): Removed.
1293 (cmd_list): Likewise.
1294 (cmd_set): Likewise.
1295 (cmd_clear): Likewise.
1296 (list_variables): New function.
1297 (write_envblk): Likewise.
1298 (set_variables): Likewise.
1299 (unset_variables): Likewise.
1300 (main): Complete rewrite.
1302 * commands/loadenv.c (buffer): Removed.
1304 (open_envblk_file): New function.
1305 (read_envblk_file): Complete rewrite.
1306 (grub_cmd_load_env): Likewise.
1307 (grub_cmd_list_env): Likewise.
1308 (struct blocklist): New struct.
1309 (free_blocklists): New function.
1310 (check_blocklists): Likewise.
1311 (write_blocklists): Likewise.
1312 (grub_cmd_save_env): Complete rewrite.
1314 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
1315 a plain text signature.
1316 (GRUB_ENVBLK_MAXLEN): Removed.
1317 (struct grub_envblk): Complete rewrite.
1318 (grub_envblk_find): Removed.
1319 (grub_envblk_insert): Likewise.
1320 (grub_envblk_open): New prototype.
1321 (grub_envblk_set): Likewise.
1322 (grub_envblk_delete): Put const to VALUE.
1323 (grub_envblk_iterate): Put const to NAME and VALUE.
1324 (grub_envblk_close): New prototype.
1325 (grub_envblk_buffer): New inline function.
1326 (grub_envblk_size): Likewise.
1328 * lib/envblk.c: Include grub/mm.h.
1329 (grub_env_find): Removed.
1330 (grub_envblk_open): New function.
1331 (grub_envblk_close): Likewise.
1332 (escaped_value_len): Likewise.
1333 (find_next_line): Likewise.
1334 (grub_envblk_insert): Removed.
1335 (grub_envblk_set): New function.
1336 (grub_envblk_delete): Complete rewrite.
1337 (grub_envblk_iterate): Likewise.
1339 2009-03-28 Robert Millan <rmh@aybabtu.com>
1341 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
1342 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
1343 variables. Use 16-bit loader.
1344 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
1346 * kern/i386/loader.S (grub_linux_boot): Rename to ...
1347 (grub_linux16_boot): ... this. Update all users.
1348 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
1349 (grub_linux_boot): ... this. Update all users.
1351 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
1352 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
1353 commands to `linux16' and `initrd16'.
1354 (GRUB_MOD_FINI(linux)): Rename to ...
1355 (GRUB_MOD_FINI(linux16)): ... this.
1357 2009-03-24 Pavel Roskin <proski@gnu.org>
1359 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
1360 not just for compilation.
1362 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1364 Move multiboot helper out of kernel
1366 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
1367 `loader/i386/multiboot_helper.S'.
1368 * conf/i386-coreboot.rmk: Likewise
1369 * conf/i386-ieee1275.rmk: Likewise
1371 * kern/i386/loader.S: Move multiboot helpers from here...
1372 * loader/i386/multiboot_helper.S: ...moved here
1373 * include/grub/i386/loader.h: Move declarations of multiboot
1374 helpers from here...
1375 * include/grub/i386/multiboot.h: ...moved here
1376 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
1378 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
1380 * kern/env.c (grub_env_context_open): Added an argument to specify
1381 whether a new context inherits exported variables from current
1382 one. This is useful when making a sandbox to interpret a config
1384 All callers updated.
1386 * include/grub/env.h (grub_env_context_open): Updated the prototype.
1388 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
1390 * kern/env.c (grub_env_context_close): Fix memory leaks.
1392 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
1394 * normal/main.c (grub_normal_execute): Added an argument
1395 BATCH to specify if an interactive interface should be provided
1396 after reading a config file.
1397 All callers updated.
1398 (read_command_list): Prevent being executed twice.
1399 (read_fs_list): Likewise.
1401 * include/grub/normal.h (grub_normal_execute): Updated the
1404 2009-03-22 Pavel Roskin <proski@gno.org>
1406 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
1408 * kern/i386/pc/startup.S: Likewise.
1409 * kern/i386/efi/startup.S: Likewise.
1410 * kern/i386/ieee1275/startup.S: Likewise.
1411 * kern/i386/coreboot/startup.S: Likewise.
1412 * kern/x86_64/efi/startup.S: Likewise.
1414 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
1415 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
1416 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
1418 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
1420 Bugfixes in multiboot for bugs uncovered by solaris kernel.
1422 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
1424 Use vaddr of correct segment for entry_point.
1426 2009-03-21 Bean <bean123ch@gmail.com>
1428 * commands/blocklist.c: Add include file <grub/command.h>, remove
1429 <grub/normal.h> and <grub/arg.h>.
1430 (grub_cmd_blocklist): Use the new command interface.
1431 (GRUB_MOD_INIT): Likewise.
1432 (GRUB_MOD_FINI): Likewise.
1433 * commands/boot.c: Likewise.
1434 * commands/cat.c: Likewise.
1435 * commands/cmp.c: Likewise.
1436 * commands/configfile.c: Likewise.
1437 * commands/crc.c: Likewise.
1438 * commands/echo.c: Likewise.
1439 * commands/halt.c: Likewise.
1440 * commands/handler.c: Likewise.
1441 * commands/hdparm.c: Likewise.
1442 * commands/help.c: Likewise.
1443 * commands/hexdump.c: Likewise.
1444 * commands/loadenv.c: Likewise.
1445 * commands/ls.c: Likewise.
1446 * commands/lsmmap.c: Likewise.
1447 * commands/lspci.c: Likewise.
1448 * commands/loadenv.c: Likewise.
1449 * commands/read.c: Likewise.
1450 * commands/reboot.c: Likewise.
1451 * commands/search.c: Likewise.
1452 * commands/sleep.c: Likewise.
1453 * commands/test.c: Likewise.
1454 * commands/usbtest.c: Likewise.
1455 * commands/videotest.c: Likewise.
1456 * commands/i386/cpuid.c: Likewise.
1457 * commands/i386/pc/halt.c: Likewise.
1458 * commands/i386/pc/play.c: Likewise.
1459 * commands/i386/pc/pxecmd.c: Likewise.
1460 * commands/i386/pc/vbeinfo.c: Likewise.
1461 * commands/i386/pc/vbetest.c: Likewise.
1462 * commands/ieee1275/suspend.c: Likewise.
1463 * disk/loopback.c: Likewise.
1464 * font/font_cmd.c: Likewise.
1465 * hello/hello.c: Likewise.
1466 * loader/efi/appleloader.c: Likewise.
1467 * loader/efi/chainloader.c: Likewise.
1468 * loader/i386/bsd.c: Likewise.
1469 * loader/i386/efi/linux.c: Likewise.
1470 * loader/i386/ieee1275/linux.c: Likewise.
1471 * loader/i386/linux.c: Likewise.
1472 * loader/i386/pc/chainloader.c: Likewise.
1473 * loader/i386/pc/linux.c: Likewise.
1474 * loader/powerpc/ieee1275/linux.c: Likewise.
1475 * loader/multiboot_loader.c: Likewise.
1476 * term/gfxterm.c: Likewise.
1477 * term/i386/pc/serial.c: Likewise.
1478 * term/terminfo.c: Likewise.
1480 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
1481 * term/i386/pc/vga.c: Likewise.
1482 * video/readers/jpeg.c: Likewise.
1483 * video/readers/png.c: Likewise.
1484 * video/readers/tga.c: Likewise.
1486 * util/grub-fstest (cmd_loopback): Removed.
1487 (cmd_blocklist): Likewise.
1489 (grub_register_command): Likewise.
1490 (grub_unregister_command): Likewise.
1491 (execute_command): Use grub_command_find to locate command and execute
1494 * include/grub/efi/chainloader.h: Removed.
1495 * loader/efi/chainloader_normal.c: Likewise.
1496 * loader/i386/bsd_normal.c: Likewise.
1497 * loader/i386/pc/chainloader_normal.c: Likewise.
1498 * loader/i386/pc/multiboot_normal.c: Likewise.
1499 * loader/linux_normal.c: Likewise.
1500 * loader/multiboot_loader_normal.c: Likewise.
1501 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
1503 * gencmdlist.sh: Scan new registration command grub_register_extcmd
1504 and grub_register_command_p1.
1506 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
1507 kern/command.c, lib/arg.c and commands/extcmd.c.
1508 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
1509 (minicmd_mod_SOURCES): New variable.
1510 (minicmd_mod_CFLAGS): Likewise.
1511 (minicmd_mod_LDFLAGS): Likewise.
1512 (extcmd_mod_SOURCES): Likewise.
1513 (extcmd_mod_CFLAGS): Likewise.
1514 (extcmd_mod_LDFLAGS): Likewise.
1515 (boot_mod_SOURCES): Removed.
1516 (boot_mod_CFLAGS): Likewise.
1517 (boot_mod_LDFLAGS): Likewise.
1519 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
1521 (kernel_img_HEADERS): Add command.h.
1522 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
1523 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
1525 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
1526 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
1527 remove the corresponding normal mode command.
1528 (normal_mod_SOURCES): Remove normal/arg.c.
1529 * conf/i386-coreboot.rmk: Likewise.
1530 * conf/i386-efi.rmk: Likewise.
1531 * conf/i386-ieee1275.rmk: Likewise.
1532 * conf/powerpc-ieee1275.rmk: Likewise.
1533 * conf/x86_64-efi.rmk: Likewise.
1535 * include/grub/arg.h: Move from here ...
1536 * include/grub/lib/arg.h: ... to here.
1538 * normal/arg.c: Move from here ...
1539 * lib/arg.c: ... to here.
1541 * commands/extcmd.c: New file.
1542 * commands/minicmd.c: Likewise.
1543 * include/grub/command.h: Likewise.
1544 * include/grub/extcmd.h: Likewise.
1545 * kern/command.c: Likewise.
1546 * kern/corecmd.c: Likewise.
1548 * kern/list.c (grub_list_iterate): Return int instead of void.
1549 (grub_list_insert): New function.
1550 (grub_prio_list_insert): Likewise.
1552 * kern/rescue.c (grub_rescue_command): Removed.
1553 (grub_rescue_command_list): Likewise.
1554 (grub_rescue_register_command): Likewise.
1555 (grub_rescue_unregister_command): Likewise.
1556 (grub_rescue_cmd_boot): Move to minicmd.c
1557 (grub_rescue_cmd_help): Likewise.
1558 (grub_rescue_cmd_info): Likewise.
1559 (grub_rescue_cmd_boot): Likewise.
1560 (grub_rescue_cmd_testload): Likewise.
1561 (grub_rescue_cmd_dump): Likewise.
1562 (grub_rescue_cmd_rmmod): Likewise.
1563 (grub_rescue_cmd_lsmod): Likewise.
1564 (grub_rescue_cmd_exit): Likewise.
1565 (grub_rescue_print_devices): Moved to corecmd.c.
1566 (grub_rescue_print_files): Likewise.
1567 (grub_rescue_cmd_ls): Likewise.
1568 (grub_rescue_cmd_insmod): Likewise.
1569 (grub_rescue_cmd_set): Likewise.
1570 (grub_rescue_cmd_unset): Likewise.
1571 (attempt_normal_mode): Use grub_command_find to get normal module.
1572 (grub_enter_rescue_mode): Use grub_register_core_commands to register
1573 commands, remove grub_rescue_register_command calls.
1575 * normal/command.c (grub_register_command): Removed.
1576 (grub_unregister_command): Likewise.
1577 (grub_command_find): Likewise.
1578 (grub_iterate_commands): Likewise.
1579 (rescue_command): Likewise.
1580 (export_command): Moved to corecmd.c.
1581 (set_command): Removed.
1582 (unset_command): Likewise.
1583 (insmod_command): Likewise.
1584 (rmmod_command): Likewise.
1585 (lsmod_command): Likewise.
1586 (grub_command_init): Likewise.
1588 * normal/completion.c (iterate_command): Use cmd->prio to check for
1590 (complete_arguments): Use grub_extcmd_t structure to find options.
1591 (grub_normal_do_completion): Change function grub_iterate_commands to
1592 grub_command_iterate.
1594 * normal/execute.c (grub_script_execute_cmd): No need to parse
1597 * normal/main.c (grub_dyncmd_dispatcher): New function.
1598 (read_command_list): Register unload commands as dyncmd.
1599 (grub_cmd_normal): Use new command interface, register rescue,
1600 unregister normal at entry, register normal, unregister rescue at exit.
1602 * include/grub/list.h (grub_list_test_t): New type.
1603 (grub_list_iterate): Return int instead of void.
1604 (grub_list_insert): New function.
1605 (GRUB_AS_NAMED_LIST_P): New macro.
1606 (GRUB_AS_PRIO_LIST): Likewise.
1607 (GRUB_AS_PRIO_LIST_P): Likewise.
1608 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
1609 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
1610 (grub_prio_list): New structure.
1611 (grub_prio_list_insert): New function.
1612 (grub_prio_list_remove): New inline function.
1614 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
1615 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
1616 (GRUB_COMMAND_FLAG_MENU): Likewise.
1617 (GRUB_COMMAND_FLAG_BOTH): Likewise.
1618 (GRUB_COMMAND_FLAG_TITLE): Likewise.
1619 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
1620 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
1621 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
1622 (grub_command): Likewise.
1623 (grub_register_command): Likewise.
1624 (grub_command_find): Likewise.
1625 (grub_iterate_commands): Likewise.
1626 (grub_command_init): Likewise.
1627 (grub_arg_parse): Likewise.
1628 (grub_arg_show_help): Likewise.
1630 * include/grub/rescue.h (grub_rescue_register_command): Removed.
1631 (grub_rescue_unregister_command): Likewise.
1633 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
1634 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
1635 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
1637 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
1638 grub_rescue_cmd_initrd.
1639 * include/grub/i386/loader.h: Likewise.
1640 * include/grub/x86_64/loader.h: Likewise.
1642 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
1644 2009-03-21 Bean <bean123ch@gmail.com>
1646 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
1647 instead of stat in mingw environment.
1649 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
1651 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
1653 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
1656 2009-03-21 Bean <bean123ch@gmail.com>
1658 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
1661 2009-03-18 Michel Dänzer <michel@daenzer.net>
1663 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
1664 checking inode flags for EXT4_EXTENTS_FLAG.
1666 2009-03-18 Robert Millan <rmh@aybabtu.com>
1668 * loader/i386/linux.c: Include `<grub/video.h>' and
1669 `<grub/i386/pc/vbe.h>'..
1670 (grub_linux_setup_video): New function. Loosely based on the EFI one.
1671 (grub_linux32_boot): Attempt to configure video settings with
1672 grub_linux_setup_video().
1673 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
1674 to avoid grub_console_fini() which would step out of graphical mode
1677 2009-03-14 Robert Millan <rmh@aybabtu.com>
1679 Fix build on powerpc.
1680 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
1682 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
1684 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
1685 background image command.
1687 2009-03-12 Colin D Bennett <colin@gibibit.com>
1689 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
1690 (grub_gfxterm_putchar): Extract pairs of identical calls to
1691 draw_cursor out of conditional blocks.
1693 2009-03-11 Pavel Roskin <proski@gnu.org>
1695 * fs/hfs.c (grub_hfs_strncasecmp): New function.
1696 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
1698 2009-03-11 Robert Millan <rmh@aybabtu.com>
1700 * loader/i386/multiboot_elfxx.c
1701 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
1703 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
1705 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
1708 2009-03-11 Robert Millan <rmh@aybabtu.com>
1710 * loader/i386/multiboot.c (code_size): New variable.
1711 (grub_multiboot): Define offsets by adding to `code_size' rather
1712 than subtracting from `grub_multiboot_payload_size'. Provide
1713 4-byte alignment to MBI and others by increasing
1714 `boot_loader_name_length' appropriately.
1716 * loader/i386/multiboot_elfxx.c
1717 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
1719 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
1721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
1724 2009-03-08 Robert Millan <rmh@aybabtu.com>
1726 Make loader/i386/linux.c usable on i386-pc again.
1728 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
1730 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
1733 2009-03-07 Bean <bean123ch@gmail.com>
1735 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
1738 2009-03-06 Robert Millan <rmh@aybabtu.com>
1740 Fix display issue on terminals with screen size other than 80x25
1741 (e.g. gfxterm with resolution higher than 640x480).
1743 * normal/main.c (grub_normal_init_page): Display title text in a
1744 position relative to the center of the terminal instead of relying
1745 on a hardcoded offset.
1747 2009-03-04 Robert Millan <rmh@aybabtu.com>
1749 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
1752 * Makefile.in (host_kernel): New variable.
1753 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
1754 scripts instead of just the windows one.
1755 * configure.ac: Initialize and AC_SUBST `host_kernel'.
1757 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
1759 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
1761 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1762 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1763 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1766 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1768 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
1770 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
1771 or if there's no space for the disk label and print the partition number on a
1774 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
1776 * util/misc.c: Include <time.h>.
1777 (grub_millisleep): New function.
1779 2009-03-04 Bean <bean123ch@gmail.com>
1781 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
1782 another option -mno-red-zone.
1784 * commands/handler.c: Change module description.
1786 * kern/handler.c: Add missing space at the end of description line.
1788 * kern/list.c: Likewise.
1790 2009-03-03 Robert Millan <rmh@aybabtu.com>
1792 Move more components to the relocation area, and fix mbi pointer
1793 handling to use the destination rather than the origin (thanks to
1794 Vladimir Serbinenko for spotting).
1796 * loader/i386/multiboot.c (mbi_dest): New variable.
1797 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
1798 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
1801 2009-03-01 Bean <bean123ch@gmail.com>
1803 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
1804 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
1805 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
1806 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
1808 * loader/i386/efi/linux.c (acpi_guid): New variable.
1809 (acpi_guid): Likewise.
1810 (EBDA_SEG_ADDR): New constant.
1811 (LOW_MEM_ADDR): Likewise.
1812 (FAKE_EBDA_SEG): Likewise.
1813 (fake_bios_data): New function.
1814 (grub_linux_boot): Call fake_bios_data.
1816 2009-03-01 Bean <bean123ch@gmail.com>
1818 * commands/terminal.c: Removed.
1820 * commands/handler.c: New file.
1822 * include/grub/list.h: Likewise.
1824 * include/grub/handler.h: Likewise.
1826 * kern/list.c: Likewise.
1828 * kern/handler.c: Likewise.
1830 * kern/term.h: Include header file <grub/handler.h>.
1831 (grub_term_input): Move next field to the beginning.
1832 (grub_term_output): Likewise.
1833 (grub_term_input_class): New variable.
1834 (grub_term_output_class): Likewise.
1835 (grub_term_register_input): Changed to inline function.
1836 (grub_term_register_output): Likewise.
1837 (grub_term_unregister_input): Likewise.
1838 (grub_term_unregister_output): Likewise.
1839 (grub_term_set_current_input): Likewise.
1840 (grub_term_set_current_output): Likewise.
1841 (grub_term_get_current_input): Likewise.
1842 (grub_term_get_current_output): Likewise.
1843 (grub_term_iterate_input): Removed.
1844 (grub_term_iterate_output): Likewise.
1846 * kern/term.c (grub_term_list_input): Removed.
1847 (grub_term_list_output): Likewise.
1848 (grub_term_input_class): New variable.
1849 (grub_term_output_class): Likewise.
1850 (grub_cur_term_input): Change variable as macro.
1851 (grub_cur_term_output): Likewise.
1852 (grub_term_register_input): Removed.
1853 (grub_term_register_output): Likewise.
1854 (grub_term_unregister_input): Likewise.
1855 (grub_term_unregister_output): Likewise.
1856 (grub_term_set_current_input): Likewise.
1857 (grub_term_set_current_output): Likewise.
1858 (grub_term_iterate_input): Likewise.
1859 (grub_term_iterate_output): Likewise.
1860 (grub_term_get_current_input): Likewise.
1861 (grub_term_get_current_output): Likewise.
1863 * util/grub-editenv.c: Include header file <grub/handler.h>.
1864 (grub_term_get_current_input): Removed.
1865 (grub_term_get_current_output): Likewise.
1866 (grub_term_input_class): New variable.
1867 (grub_term_output_class): Likewise.
1869 * util/grub-fstest.c (grub_term_get_current_input): Removed.
1870 (grub_term_get_current_output): Likewise.
1871 (grub_term_input_class): New variable.
1872 (grub_term_output_class): Likewise.
1874 * util/grub-probe.c (grub_term_get_current_input): Removed.
1875 (grub_term_get_current_output): Likewise.
1876 (grub_term_input_class): New variable.
1877 (grub_term_output_class): Likewise.
1879 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
1880 (grub_term_get_current_output): Likewise.
1881 (grub_term_input_class): New variable.
1882 (grub_term_output_class): Likewise.
1884 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
1885 (terminal_mod_SOURCES): Likewise.
1886 (terminal_mod_CFLAGS): Likewise.
1887 (terminal_mod_LDFLAGS): Likewise.
1889 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
1891 (kernel_img_SOURCES): Add list.c and handler.c.
1892 (kernel_img_HEADERS): Add list.h and handler.h.
1894 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
1896 (kernel_mod_SOURCES): Add list.c and handler.c.
1897 (kernel_mod_HEADERS): Add list.h and handler.h.
1899 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
1901 (kernel_elf_SOURCES): Add list.c and handler.c.
1902 (kernel_elf_HEADERS): Add list.h and handler.h.
1904 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
1906 (kernel_elf_SOURCES): Add list.c and handler.c.
1907 (kernel_elf_HEADERS): Add list.h and handler.h.
1909 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
1911 (kernel_mod_SOURCES): Add list.c and handler.c.
1912 (kernel_mod_HEADERS): Add list.h and handler.h.
1914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
1916 (kernel_elf_SOURCES): Add list.c and handler.c.
1917 (kernel_elf_HEADERS): Add list.h and handler.h.
1919 2009-02-27 Robert Millan <rmh@aybabtu.com>
1921 Factorize elf32 / elf64 code in Multiboot loader. This will
1922 prevent it from getting out of sync again.
1924 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
1925 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
1926 grub_multiboot_load_elf64): Move from here ...
1927 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
1928 grub_multiboot_load_elf): ... to here (new file).
1930 2009-02-27 Robert Millan <rmh@aybabtu.com>
1932 * util/grub.d/10_linux.in: Rename "single-user mode" to
1935 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1937 Don't leak in SCSI code.
1938 * disk/scsi.c (grub_scsi_close): free `scsi'.
1940 2009-02-27 Robert Millan <rmh@aybabtu.com>
1942 * loader/i386/pc/multiboot.c: Move from here ...
1943 * loader/i386/multiboot.c: ... to here. Update all users.
1945 2009-02-27 Robert Millan <rmh@aybabtu.com>
1947 Patch from Alexandre Bique <bique.alexandre@gmail.com>
1948 * util/i386/pc/grub-setup.c (setup): Fix directory path.
1950 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
1952 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
1955 2009-02-27 Robert Millan <rmh@aybabtu.com>
1957 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
1958 `0x' qualifier as 0 when base is specified as parameter).
1960 2009-02-24 Bean <bean123ch@gmail.com>
1962 * configure.ac: Check for -mcmodel=large in x86_64 target.
1964 * include/grub/efi/api.h (efi_call_10): New macro.
1965 (efi_wrap_10): New function.
1967 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
1968 (GRUB_PE32_REL_BASED_HIGH): Likewise.
1969 (GRUB_PE32_REL_BASED_LOW): Likewise.
1970 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
1971 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
1972 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
1973 (GRUB_PE32_REL_BASED_SECTION): Likewise.
1974 (GRUB_PE32_REL_BASED_REL): Likewise.
1975 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
1976 (GRUB_PE32_REL_BASED_DIR64): Likewise.
1977 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
1979 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
1982 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
1983 (efi_wrap_10): New function.
1985 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
1987 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
1988 MB/MBP model (NV chipset).
1989 (devdata_devs): Add devpath_5 to the list.
1991 * load/i386/efi/linux.c (video_base): Remove variable.
1992 (RGB_MASK): New macro.
1993 (RGB_MAGIC): Likewise.
1994 (LINE_MIN): Likewise.
1995 (LINE_MAX): Likewise.
1996 (FBTEST_STEP): Likewise.
1997 (FBTEST_COUNT): Likewise.
1998 (fb_list): New variable.
1999 (grub_find_video_card): Remove function.
2000 (find_framebuf): New function.
2001 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
2004 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
2007 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
2009 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
2011 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
2014 2009-02-22 Robert Millan <rmh@aybabtu.com>
2016 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
2017 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
2018 in our relocation, instead of using it directly from heap. Also
2019 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
2021 2009-02-21 Robert Millan <rmh@aybabtu.com>
2023 Implement USB keyboard support (based on patch by Marco Gerards)
2025 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
2026 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
2027 (usb_keyboard_mod_LDFLAGS): New variables.
2029 * term/usb_keyboard.c: New file.
2031 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2033 Corrected wrong declaration
2035 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
2037 2009-02-14 Christian Franke <franke@computer.org>
2039 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
2040 (grub_lspci_iter): Print class code and programming interface byte.
2042 2009-02-14 Christian Franke <franke@computer.org>
2044 * gendistlist.sh: Ignore `.svn' directories.
2046 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
2048 * fs/fat.c: Add 2009 to Copyright line.
2050 2009-02-14 Christian Franke <franke@computer.org>
2052 * commands/hdparm.c: New file. Provides `hdparm' command
2053 which sends ATA commands via grub_disk_ata_pass_through ().
2055 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
2057 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
2058 and <grub/cpu/io.h> to include/grub/ata.h.
2059 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
2060 (GRUB_CDROM_SECTOR_SIZE): Remove.
2061 (GRUB_ATA_*): Move to include/grub/ata.h.
2062 (GRUB_ATAPI_*): Likewise.
2063 (enum grub_ata_commands): Likewise.
2064 (enum grub_ata_timeout_milliseconds): Likewise.
2065 (struct grub_ata_device): Likewise.
2066 (grub_ata_regset): Likewise.
2067 (grub_ata_regget): Likewise.
2068 (grub_ata_regset2): Likewise.
2069 (grub_ata_regget2): Likewise.
2070 (grub_ata_check_ready): Likewise.
2071 (grub_ata_wait_not_busy): Remove static, exported in
2073 (grub_ata_wait_drq): Likewise.
2074 (grub_ata_pio_read): Likewise.
2076 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
2077 function for hdparm.mod.
2079 * include/grub/ata.h: New file, contains declarations from
2081 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
2083 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
2084 (grub_disk_ata_pass_through): New exported variable.
2086 * kern/disk.c (grub_disk_ata_pass_through): New variable.
2088 2009-02-13 Colin D Bennett <colin@gibibit.com>
2090 Support multiple fallback entries, and provide an API to support
2091 executing default+fallback menu entries. Renamed the `terminal' menu
2094 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
2095 variable declaration.
2096 (grub_menu_execute_callback): New structure declaration.
2097 (grub_menu_execute_callback_t): New typedef.
2098 (grub_menu_execute_with_fallback): New function declaration.
2099 (grub_menu_get_entry): Likewise.
2100 (grub_menu_get_timeout): Likewise.
2101 (grub_menu_set_timeout): Likewise.
2103 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
2105 * normal/menu.c (grub_wait_after_message): Moved to
2106 `normal/menu_text.c'.
2107 (draw_border): Likewise.
2108 (print_message): Likewise.
2109 (print_entry): Likewise.
2110 (print_entries): Likewise.
2111 (grub_menu_init_page): Likewise.
2112 (get_entry_number): Likewise.
2113 (print_timeout): Likewise.
2114 (run_menu): Likewise.
2115 (grub_menu_execute_entry): Likewise.
2116 (show_text_menu): Likewise.
2117 (get_and_remove_first_entry_number): New function.
2118 (grub_menu_execute_with_fallback): Likewise.
2119 (get_entry): Renamed to ...
2120 (grub_menu_get_entry): .. this and made it global.
2121 (get_timeout): Renamed to ...
2122 (grub_menu_get_timeout): ... this and made it global.
2123 (set_timeout): Renamed to ...
2124 (grub_menu_set_timeout): ... this and made it global.
2125 (grub_normal_terminal_menu_viewer): Renamed to ...
2126 (grub_normal_text_menu_viewer): ... this.
2128 * normal/menu_text.c: New file. Extracted text-menu-specific code
2131 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
2132 (normal_mod_SOURCES): Likewise.
2134 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2135 (normal_mod_SOURCES): Likewise.
2137 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2138 (normal_mod_SOURCES): Likewise.
2140 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
2141 (normal_mod_SOURCES): Likewise.
2143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2144 (normal_mod_SOURCES): Likewise.
2146 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2147 (normal_mod_SOURCES): Likewise.
2149 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2150 (normal_mod_SOURCES): Likewise.
2152 2009-02-11 Robert Millan <rmh@aybabtu.com>
2154 * util/grub.d/00_header.in: Update old reference to `font' command.
2156 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
2158 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
2160 Based on patch from Javier MartÃn.
2162 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
2164 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
2165 to avoid false positives with FAT.
2166 (grub_fstest_SOURCES): Likewise.
2167 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2168 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2170 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2171 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2172 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2174 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
2176 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
2177 bpb.version_specific.fat12_or_fat16.fstype and
2178 bpb.version_specific.fat32.fstype.
2180 2009-02-08 Robert Millan <rmh@aybabtu.com>
2182 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2184 2009-02-08 Robert Millan <rmh@aybabtu.com>
2186 * Makefile.in (host_os, host_cpu): New variables.
2187 (target_os): Remove. Update all users.
2189 2009-02-08 Marco Gerards <marco@gnu.org>
2191 * Makefile.in (enable_grub_emu_usb): New variable.
2192 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
2193 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
2194 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
2195 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
2196 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
2197 `usbtest.mod' and `usbms.mod'.
2198 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
2199 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
2200 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
2201 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
2202 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
2205 * disk/usbms.c: New file.
2207 * include/grub/usb.h: Likewise.
2209 * include/grub/usbtrans.h: Likewise.
2211 * include/grub/usbdesc.h: Likewise.
2213 * bus/usb/usbtrans.c: Likewise.
2215 * bus/usb/ohci.c: Likewise.
2217 * bus/usb/uhci.c: Likewise.
2219 * bus/usb/usbhub.c: Likewise.
2221 * bus/usb/usb.c: Likewise.
2223 * commands/usbtest.c: Likewise.
2225 * util/usb.c: Likewise.
2227 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
2229 * configure.ac: Test for libusb presence.
2231 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
2233 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
2235 * kern/mm.c: Add more comments.
2237 2009-02-08 Robert Millan <rmh@aybabtu.com>
2239 Patch from Javier MartÃn.
2240 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
2241 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
2243 2009-02-08 Robert Millan <rmh@aybabtu.com>
2245 * fs/cpio.c: Split tar functionality to ...
2246 * fs/tar.c: ... here (new file). Update all users.
2248 2009-02-07 Robert Millan <rmh@aybabtu.com>
2250 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
2251 backward-incompatible features.
2253 Based on patch from Javier MartÃn, with some adjustments.
2255 2009-02-07 Michael Scherer <misc@mandriva.org>
2257 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
2259 2009-02-07 Robert Millan <rmh@aybabtu.com>
2261 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
2262 position of `disk/lvm.c' to ensure grub_init_all() always picks it
2263 after the RAID stuff.
2265 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
2267 Fixes problem when running vbetest command as reported by
2268 Vladimir Serbinenko <phcoder@gmail.com>.
2270 * (grub_vbe_set_video_mode): Fixed problem with text modes.
2272 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
2274 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
2275 /dev/md/NpN style mdraid devices.
2277 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
2279 * util/unifont2pff.rb: Remove.
2281 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
2283 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
2286 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
2288 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
2289 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2290 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2291 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2293 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2294 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2296 2009-02-02 Christian Franke <franke@computer.org>
2298 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
2300 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
2302 * INSTALL: Note that we now require at least autoconf 2.59 and
2303 that LZO is optional.
2305 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
2307 Base on patch on bug #24154 created by Tomas Tintera
2310 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
2312 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
2314 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
2315 <bero@arklinux.org>.
2317 * normal/parser.y (script_init): Add missing semicolon.
2319 2009-01-31 Colin D Bennett <colin@gibibit.com>
2321 * normal/main.c: Add include to grub/menu_viewer.h.
2322 (free_menu_entry_classes): Added.
2323 (grub_normal_menu_addentry): Added class property handling.
2324 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
2325 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
2327 * normal/menu_viewer.c: New file.
2329 * normal/menu.c (run_menu_entry): Renamed to ...
2330 (grub_menu_execute_entry): ... this and made it as global.
2331 (grub_menu_run): Renamed to ...
2332 (show_text_menu): ... this and made it local.
2333 (show_text_menu): Adapt to new function names.
2334 (grub_normal_terminal_menu_viewer): New global variable.
2336 * include/grub/menu.h: New file.
2338 * include/grub/menu_viewer.h: New file.
2340 * include/grub/normal.h: Added include to grub/menu.h.
2341 (grub_menu_entry): Moved to include/grub/menu.h.
2342 (grub_menu_entry_t): Likewise.
2343 (grub_menu): Likewise.
2344 (grub_menu_t): Likewise.
2345 (grub_normal_terminal_menu_viewer): Added.
2346 (grub_menu_execute_entry): Likewise.
2347 (grub_menu_run): Removed.
2349 * DISTLIST: Added include/grub/menu.h.
2350 Added include/grub/menu_viewer.h.
2351 Added normal/menu_viewer.c.
2353 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
2355 * normal/execute.c (grub_script_execute_menuentry): Changed to use
2356 arglist for menutitle arguments.
2358 * normal/main.c (grub_normal_menu_addentry): Likewise.
2360 * normal/parser.y (menuentry): Likewise.
2362 * normal/script.c (grub_script_create_cmdmenu): Likewise.
2364 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
2365 (grub_script_create_cmdmenu): Likewise.
2367 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
2369 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
2372 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
2374 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
2376 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
2378 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
2380 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
2382 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
2384 2009-01-30 Christian Franke <franke@computer.org>
2386 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
2387 in option help text.
2389 2009-01-27 Pavel Roskin <proski@gnu.org>
2391 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
2393 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
2395 * commands/lsmmap.c: Add include to grub/machine/memory.h.
2397 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
2399 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
2400 unregister function.
2402 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
2404 * disk/scsi.c (grub_scsi_read): Fix sign problem.
2406 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
2408 * util/grub-mkfont.c (usage): Fix typo.
2410 * util/elf/grub-mkimage.c (load_modules): Fix warning.
2412 2009-01-26 Daniel Mierswa <impulze@impulze.org>
2414 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
2416 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
2418 * kern/misc.c (grub_strcasecmp): New function.
2419 (grub_strcasecmp): Use grub_size_t instead of int for length.
2421 * include/grub/misc.h: Update function prototypes.
2423 2009-01-26 Robert Millan <rmh@aybabtu.com>
2425 * configure.ac: Fix cross-compilation check.
2427 2009-01-22 Christian Franke <franke@computer.org>
2429 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
2430 (precision) digit string. Allow `.format2' without `format1' (width).
2431 Limit input chars for `%s' output to `format2' if specified. This is
2432 compatible with standard printf ().
2434 2009-01-22 Christian Franke <franke@computer.org>
2436 * disk/ata.c (grub_ata_wait_status): Replace by ...
2437 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
2438 other status bits may be invalid while BSY is asserted.
2439 (grub_ata_check_ready): New function.
2440 (grub_ata_cmd): Removed.
2441 (grub_ata_wait_drq): New function.
2442 (grub_ata_strncpy): Remove inline.
2443 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
2444 and error check now done by grub_ata_wait_drq ().
2445 (grub_ata_pio_write): Likewise.
2446 (grub_atapi_identify): Set DEV before check for !BSY. Use
2447 grub_ata_wait_drq () to wait for data.
2448 (grub_ata_device_initialize): Add status register check to
2449 detect missing SATA slave devices. Add debug messages.
2450 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
2451 (grub_atapi_packet): Set DEV before check for !BSY. Replace
2452 transfer loop by grub_ata_pio_write ().
2453 (grub_ata_identify): Set DEV before check for !BSY. Use
2454 grub_ata_wait_drq () to wait for data.
2455 (grub_ata_setaddress): Set DEV before check for !BSY.
2456 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
2457 read/write in one loop. Fix invalid command on write. Fix incomplete
2458 command on (size % batch) == 0. Add missing error check after write of
2459 last block. Add debug messages.
2460 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
2462 2009-01-19 Christian Franke <franke@computer.org>
2464 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
2465 (GRUB_ATAPI_IREASON_*): Likewise.
2466 (grub_ata_pio_write): Fix timeout error return.
2467 (grub_atapi_identify): Add grub_ata_wait () after cmd.
2468 (grub_atapi_wait_drq): New function.
2469 (grub_atapi_packet): New parameter `size'.
2470 Use grub_atapi_wait_drq () and direct write instead of
2471 grub_ata_pio_write ().
2472 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
2473 reads the number of bytes requested by the device for each DRQ
2475 (grub_atapi_write): Remove old implementation, return not
2476 implemented instead.
2478 2009-01-19 Christian Franke <franke@computer.org>
2480 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
2481 of 512 to calculate data size.
2482 (grub_scsi_read12): Likewise.
2483 (grub_scsi_write10): Likewise.
2484 (grub_scsi_write12): Likewise.
2485 (grub_scsi_read): Adjust size according to blocksize.
2486 Add checks for invalid blocksize and unaligned transfer.
2488 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
2490 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
2492 * term/gfxterm.c (write_char): Fix background rendering for wide
2495 2009-01-19 Robert Millan <rmh@aybabtu.com>
2497 * config.guess: Update to latest version from config git.
2498 * config.sub: Likewise.
2500 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
2502 * Makefile.in: Change font compilation to use new grub-mkfont instead
2505 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
2506 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
2507 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
2508 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
2509 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
2510 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
2511 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
2512 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
2513 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
2515 2009-01-16 Christian Franke <franke@computer.org>
2517 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
2518 (enum grub_ata_timeout_milliseconds): New enum.
2519 (grub_ata_wait_status): Add parameter milliseconds.
2520 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
2521 recovery from timed-out commands.
2522 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
2523 return grub_errno instead of REG_ERROR.
2524 (grub_ata_pio_write): Add parameter milliseconds.
2525 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
2526 Pass milliseconds to grub_ata_wait_status () and
2527 grub_ata_pio_read ().
2528 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
2529 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
2530 grub_ata_wait_status (). Fix IDENTIFY timeout check.
2531 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
2532 It is not suitable for device detection, because DEV bit is ignored,
2533 the command may run too long, and not all devices set the signature
2535 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
2536 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
2537 Fix device selection, DEV bit must be set first to address the registers
2538 of the correct device.
2539 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
2540 grub_ata_pio_read/write ().
2541 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
2542 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
2544 2009-01-13 Carles Pina i Estany <carles@pina.cat>
2546 * util/grub-editenv.c (main): Use fseeko(), not fseek().
2548 2009-01-13 Bean <bean123ch@gmail.com>
2550 * util/grub-mkfont.c (write_font): forget to remove some debug code.
2552 2009-01-13 Bean <bean123ch@gmail.com>
2554 * Makefile.in: (enable_grub_mkfont): New variable.
2555 (freetype_cflags): Likewise.
2556 (freetype_libs): Likewise.
2558 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
2559 (grub_mkfont_SOURCES): New variable.
2560 (grub_mkfont_CFLAGS): Likewise.
2561 (grub_mkfont_LDFLAGS): Likewise.
2563 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
2564 library if `--enable-grub-mkfont' is requested.
2565 (enable_grub_mkfont): New variable.
2566 (freetype_cflags): Likewise.
2567 (freetype_libs): Likewise.
2569 * util/grub-mkfont.c: New file.
2571 2009-01-12 Christian Franke <franke@computer.org>
2573 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
2574 mode check. Fix setting of compat_use[].
2576 2009-01-10 Robert Millan <rmh@aybabtu.com>
2578 Update a few copyright years which we forgot to do in 2008 (only for
2579 files whose changes made in 2008 were copyright-significant)
2581 * Makefile.in: Add 2008 to Copyright line.
2582 * disk/ieee1275/ofdisk.c: Likewise.
2583 * disk/efi/efidisk.c: Likewise.
2584 * kern/dl.c: Likewise.
2585 * kern/sparc64/ieee1275/init.c: Likewise.
2586 * kern/mm.c: Likewise.
2587 * kern/efi/mm.c: Likewise.
2588 * boot/i386/pc/boot.S: Likewise.
2589 * genfslist.sh: Likewise.
2590 * fs/iso9660.c: Likewise.
2591 * fs/hfs.c: Likewise.
2592 * fs/jfs.c: Likewise.
2593 * fs/minix.c: Likewise.
2594 * fs/ufs.c: Likewise.
2595 * gensymlist.sh.in: Likewise.
2596 * genkernsyms.sh.in: Likewise.
2597 * include/grub/misc.h: Likewise.
2598 * include/grub/types.h: Likewise.
2599 * include/grub/symbol.h: Likewise.
2600 * include/grub/elf.h: Likewise.
2601 * include/grub/kernel.h: Likewise.
2602 * include/grub/disk.h: Likewise.
2603 * include/grub/dl.h: Likewise.
2604 * include/grub/i386/linux.h: Likewise.
2605 * include/grub/i386/pc/biosdisk.h: Likewise.
2606 * include/grub/efi/api.h: Likewise.
2607 * include/grub/efi/pe32.h: Likewise.
2608 * include/grub/util/misc.h: Likewise.
2609 * normal/execute.c: Likewise.
2610 * normal/arg.c: Likewise.
2611 * normal/completion.c: Likewise.
2612 * normal/lexer.c: Likewise.
2613 * normal/parser.y: Likewise.
2614 * normal/misc.c: Likewise.
2615 * commands/i386/pc/vbeinfo.c: Likewise.
2616 * commands/hexdump.c: Likewise.
2617 * commands/terminal.c: Likewise.
2618 * commands/ls.c: Likewise.
2619 * commands/help.c: Likewise.
2620 * partmap/pc.c: Likewise.
2621 * loader/efi/chainloader.c: Likewise.
2622 * loader/multiboot_loader.c: Likewise.
2623 * loader/i386/pc/multiboot2.c: Likewise.
2624 * term/efi/console.c: Likewise.
2625 * term/i386/pc/serial.c: Likewise.
2626 * util/lvm.c: Likewise.
2627 * util/console.c: Likewise.
2628 * util/i386/efi/grub-mkimage.c: Likewise.
2629 * util/raid.c: Likewise.
2631 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
2633 * commands/videotest.c: Removed include to grub/machine/memory.h.
2635 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
2636 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
2637 (video_mod_SOURCES): Removed.
2638 (video_mod_CFLAGS): Likewise.
2639 (video_mod_LDFLAGS): Likewise.
2640 (gfxterm_mod_SOURCES): Likewise.
2641 (gfxterm_mod_CFLAGS): Likewise.
2642 (gfxterm_mod_LDFLAGS): Likewise.
2643 (videotest_mod_SOURCES): Likewise.
2644 (videotest_mod_CFLAGS): Likewise.
2645 (videotest_mod_LDFLAGS): Likewise.
2646 (bitmap_mod_SOURCES): Likewise.
2647 (bitmap_mod_CFLAGS): Likewise.
2648 (bitmap_mod_LDFLAGS): Likewise.
2649 (tga_mod_SOURCES): Likewise.
2650 (tga_mod_CFLAGS): Likewise.
2651 (tga_mod_LDFLAGS): Likewise.
2652 (jpeg_mod_SOURCES): Likewise.
2653 (jpeg_mod_CFLAGS): Likewise.
2654 (jpeg_mod_LDFLAGS): Likewise.
2655 (png_mod_SOURCES): Likewise.
2656 (png_mod_CFLAGS): Likewise.
2657 (png_mod_LDFLAGS): Likewise.
2659 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
2660 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
2661 (video_mod_SOURCES): Added.
2662 (video_mod_CFLAGS): Likewise.
2663 (video_mod_LDFLAGS): Likewise.
2664 (videotest_mod_SOURCES): Likewise.
2665 (videotest_mod_CFLAGS): Likewise.
2666 (videotest_mod_LDFLAGS): Likewise.
2667 (bitmap_mod_SOURCES): Likewise.
2668 (bitmap_mod_CFLAGS): Likewise.
2669 (bitmap_mod_LDFLAGS): Likewise.
2670 (tga_mod_SOURCES): Likewise.
2671 (tga_mod_CFLAGS): Likewise.
2672 (tga_mod_LDFLAGS): Likewise.
2673 (jpeg_mod_SOURCES): Likewise.
2674 (jpeg_mod_CFLAGS): Likewise.
2675 (jpeg_mod_LDFLAGS): Likewise.
2676 (png_mod_SOURCES): Likewise.
2677 (png_mod_CFLAGS): Likewise.
2678 (png_mod_LDFLAGS): Likewise.
2679 (gfxterm_mod_SOURCES): Likewise.
2680 (gfxterm_mod_CFLAGS): Likewise.
2681 (gfxterm_mod_LDFLAGS): Likewise.
2683 * term/gfxterm.c: Removed include to grub/machine/memory.h,
2684 grub/machine/console.h.
2686 2009-01-04 Jerone Young <jerone@gmail.com>
2688 Make on screen instructions clearer
2690 Based on patch created by Jidanni <jidanni@jidanni.org>
2692 * normal/menu.c: print clearer instructions on the screen
2694 2009-01-02 Colin D Bennett <colin@gibibit.com>
2698 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
2699 build system and fixed gfxterm.c to work with different sized fonts.
2701 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
2703 * configure: Re-generated.
2705 * DISTLIST: Removed font/manager.c.
2707 Added font/font_cmd.c.
2709 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
2712 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
2714 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
2716 * kern/term.c: Changed users of grub_utf8_to_ucs4.
2718 * normal/menu.c: Likewise.
2720 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
2721 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
2723 * include/grub/font.h: Replaced with new file.
2725 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
2726 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
2727 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
2728 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
2729 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
2730 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
2731 fg_red, fg_green, fg_blue, fg_alpha.
2732 (grub_video_adapter): Removed blit_glyph.
2733 (grub_video_blit_glyph): Removed.
2735 * font/manager.c: Removed file.
2737 * font/font.c: New file.
2739 * font/font_cmd.c: Likewise.
2741 * video/video.c (grub_video_blit_glyph): Removed.
2743 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
2744 (grub_video_vbe_map_rgba): Likewise.
2745 (grub_video_vbe_unmap_color_int): Likewise.
2746 (grub_video_vbe_blit_glyph): Removed.
2747 (grub_video_vbe_adapter): Removed blit_glyph.
2749 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
2750 (get_pixel): Likewise.
2751 (set_pixel): Likewise.
2753 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
2755 * term/gfxterm.c: Adapted to new font engine.
2757 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
2759 * term/i386/pc/vga.c: Likewise.
2761 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
2763 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
2765 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
2767 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
2769 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
2771 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
2773 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
2775 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
2777 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
2779 * util/grub.d/00_header.in: Changed to use new loadfont command.
2781 * util/grub-mkconfig_lib.in: Changed font extension.
2783 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
2785 * util/getroot.c (grub_util_get_grub_dev): Add support for
2786 /dev/md/dNNpNN style partitionable mdraid devices.
2788 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
2790 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
2791 at a time limit of the PXE TFTP API correctly.
2792 (grub_pxefs_close): Likewise.
2794 2008-11-29 Robert Millan <rmh@aybabtu.com>
2796 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
2797 grub_ata_device_initialize() calls.
2799 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
2801 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
2803 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
2805 2008-11-28 Robert Millan <rmh@aybabtu.com>
2807 Fix build on powerpc-ieee1275. Based on patch created by
2808 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
2809 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
2810 `kern/ieee1275/mmap.c'.
2811 * include/grub/powerpc/ieee1275/memory.h: New file.
2813 Provide grub-install on coreboot.
2814 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
2815 (grub_install_SOURCES): New variable.
2816 * util/i386/pc/grub-install.in: Add a few condition checks to make it
2819 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
2821 * util/grub-fstest.c (grub_term_get_current_input): Change return type
2822 to `grub_term_input_t'.
2823 (grub_term_get_current_output): Change return type to
2824 `grub_term_output_t'.
2826 2008-11-22 Robert Millan <rmh@aybabtu.com>
2828 Fix breakage on coreboot due to declaration mismatch.
2829 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
2830 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
2831 grub_vga_text_cls().
2833 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
2834 comments. Avoid copying one more byte than necessary (just in case).
2836 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
2837 to 0x200000 (avoids trouble with some OFW implementations, and matches
2838 with the one in Yaboot).
2839 Reported by Manoel Abranches
2841 2008-11-20 Robert Millan <rmh@aybabtu.com>
2843 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
2844 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
2846 * util/grub-mkconfig_lib.in (grub_warn): New function.
2847 (convert_system_path_to_grub_path): Use grub_warn() when issuing
2848 warnings, to obtain consistent formatting.
2849 * util/grub.d/00_header.in: Likewise.
2850 * util/update-grub_lib.in: Likewise.
2852 * loader/i386/linux.c (allocate_pages): Fix a warning.
2853 Move comment text to `#error' stanza.
2855 Harmonize ieee1275's grub_available_iterate() with the generic
2856 grub_machine_mmap_iterate() interface (fixes a recently-introduced
2857 build problem on i386-ieee1275):
2858 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
2859 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
2860 parameter `type'. Update all users of this function.
2861 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
2862 `kern/ieee1275/mmap.c'.
2863 * kern/ieee1275/init.c
2864 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
2866 (grub_machine_mmap_iterate): ... this.
2867 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
2868 return type to `grub_err_t'. Update all implementations of this
2870 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
2873 Add `lsmmap' command (lists firmware-provided memory map):
2874 * commands/lsmmap.c: New file.
2875 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
2876 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
2878 * conf/powerpc-ieee1275.rmk: Likewise.
2879 * conf/i386-coreboot.rmk: Likewise.
2880 * conf/i386-ieee1275.rmk: Likewise.
2882 2008-11-19 Robert Millan <rmh@aybabtu.com>
2884 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
2885 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
2886 constraints to initrd allocation (based on code from
2887 loader/i386/pc/linux.c). Without them, initrd was allocated too high
2888 for Linux to find it.
2890 2008-11-14 Robert Millan <rmh@aybabtu.com>
2892 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
2893 order to cope with duplicate slashes.
2895 2008-11-14 Robert Millan <rmh@aybabtu.com>
2897 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
2898 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
2899 don't want to mess with lower memory, because it is used in the Linux
2902 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
2903 an appropriate place in lower memory, between 0x10000 and 0x90000,
2904 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
2905 is in our heap (probably as a result of it being corrupted during
2906 decompression). Add #error instance with comment to explain why this
2907 loader isn't currently usable on PC/BIOS.
2909 2008-11-14 Robert Millan <rmh@aybabtu.com>
2911 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
2912 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
2914 2008-11-12 Robert Millan <rmh@aybabtu.com>
2916 Make loader/i386/linux.c buildable on i386-pc (although disabled).
2918 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
2919 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
2921 * include/grub/i386/pc/memory.h: ... to here.
2923 2008-11-12 Robert Millan <rmh@aybabtu.com>
2925 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
2928 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
2929 (grub_console_cur_color, grub_console_real_putchar)
2930 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
2931 (grub_console_setcolorstate, grub_console_setcolor)
2932 (grub_console_getcolor): Move from here ...
2933 * include/grub/i386/vga_common.h: ... to here (new file).
2935 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
2936 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
2938 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
2939 `<grub/i386/vga_common.h>'.
2941 2008-11-12 Robert Millan <rmh@aybabtu.com>
2943 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
2944 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
2945 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
2947 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
2948 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
2950 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
2951 grub_console_init() with call to grub_vga_text_init().
2952 (grub_machine_fini): Replace call to
2953 grub_console_fini() with call to grub_vga_text_fini() and
2954 grub_at_keyboard_fini().
2956 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
2957 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
2958 (grub_console_setcolorstate, grub_console_setcolor)
2959 (grub_console_getcolor): New function prototypes.
2961 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
2962 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
2963 (grub_vga_text_setcursor): Static-ize.
2964 (grub_vga_text_term): New structure.
2965 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
2967 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
2968 (grub_console_cur_color, grub_console_standard_color)
2969 (grub_console_normal_color, grub_console_highlight_color)
2970 (map_char, grub_console_putchar, grub_console_getcharwidth)
2971 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
2972 (grub_console_getcolor): Move from here ...
2973 * term/i386/vga_common.c: ... to here (same function names).
2975 2008-11-12 Robert Millan <rmh@aybabtu.com>
2977 Use newly-added Multiboot support in coreboot.
2979 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
2980 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
2982 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
2983 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
2984 (codestart): Store the MBI in `startup_multiboot_info' when we're
2985 being loaded using Multiboot.
2987 * kern/i386/coreboot/init.c (grub_machine_init): Move
2988 grub_at_keyboard_init() call to beginning of function (useful for
2989 debugging). Call grub_machine_mmap_init() before attempting to use
2990 grub_machine_mmap_iterate().
2991 (grub_lower_mem, grub_upper_mem): Move from here ...
2992 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
2995 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
2998 2008-11-12 Robert Millan <rmh@aybabtu.com>
3000 Fix a regression introduced by the at_keyboard.mod split. Because
3001 some terminals are default on some platforms and non-default on
3002 others, the first terminal being registered determines which is
3003 going to be default.
3005 * kern/term.c (grub_term_register_input): If this is the first
3006 terminal being registered, set it as the current one.
3007 (grub_term_register_output): Likewise.
3009 * term/efi/console.c (grub_console_init): Do not call
3010 grub_term_set_current_output() or grub_term_set_current_input().
3011 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
3012 * term/i386/pc/console.c (grub_console_init): Likewise.
3013 (grub_console_fini): Do not call grub_term_set_current_input()
3014 (but leave grub_term_set_current_output() to restore text mode).
3016 2008-11-10 Robert Millan <rmh@aybabtu.com>
3018 * util/grub.d/00_header.in: Add backward compatibility check for
3019 versions of terminal.mod that don't understand `terminal_input' or
3022 2008-11-09 Robert Millan <rmh@aybabtu.com>
3024 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
3025 `terminal_input' / `terminal_output', not `terminal'.
3027 2008-11-08 Robert Millan <rmh@aybabtu.com>
3029 * Makefile.in (include_DATA): Fix srcdir=. assumption.
3030 (DISTCLEANFILES): Add `build_env.mk'.
3032 2008-11-08 Robert Millan <rmh@aybabtu.com>
3034 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
3035 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
3036 members. Update all users.
3037 * util/console.c (grub_ncurses_term): Split in ...
3038 (grub_ncurses_term_input): ... this, and ...
3039 (grub_ncurses_term_output): ... this. Update all users.
3040 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
3042 2008-11-08 Robert Millan <rmh@aybabtu.com>
3044 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
3045 (PKGDATA): Add $(pkgdata_SRCDIR).
3046 (pkglib_BUILDDIR): New variable.
3047 (pkgdata_SRCDIR): New variable.
3048 (build_env.mk): New target.
3049 (include_DATA): New variable.
3050 (install-local): Install $(include_DATA) files in $(includedir).
3052 2008-11-07 Pavel Roskin <proski@gnu.org>
3054 * gendistlist.sh: Use C locale for sorting to ensure consistent
3055 output on all systems.
3057 * util/grub.d/00_header.in: Remove incorrect space before
3060 2008-11-07 Robert Millan <rmh@aybabtu.com>
3062 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
3064 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
3065 * loader/multiboot_loader.c (find_multi_boot2_header): New function
3066 (based on find_multi_boot1_header).
3067 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
3068 using find_multi_boot2_header(), and abort if neither Multiboot or
3069 Multiboot headers were found.
3071 2008-11-07 Robert Millan <rmh@aybabtu.com>
3073 Modularize at_keyboard.mod:
3075 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
3076 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3077 (at_keyboard_mod_LDFLAGS): New variables.
3079 Actual terminal split:
3081 * include/grub/term.h (struct grub_term): Split in ...
3082 (struct grub_term_input): ... this, and ...
3083 (struct grub_term_output): ... this. Update all users.
3084 (grub_term_set_current): Split in ...
3085 (grub_term_set_current_input): ... this, and ...
3086 (grub_term_set_current_output): ... this.
3087 (grub_term_get_current): Split in ...
3088 (grub_term_get_current_input): ... this, and ...
3089 (grub_term_get_current_output): ... this.
3090 (grub_term_register): Split in ...
3091 (grub_term_register_input): ... this, and ...
3092 (grub_term_register_output): ... this.
3093 (grub_term_unregister): Split in ...
3094 (grub_term_unregister_input): ... this, and ...
3095 (grub_term_unregister_output): ... this.
3096 (grub_term_iterate): Split in ...
3097 (grub_term_iterate_input): ... this, and ...
3098 (grub_term_iterate_output): ... this.
3100 * kern/term.c (grub_term_list): Split in ...
3101 (grub_term_list_input): ... this, and ...
3102 (grub_term_list_output): ... this. Update all users.
3103 (grub_cur_term): Split in ...
3104 (grub_cur_term_input): ... this, and ...
3105 (grub_cur_term_output): ... this. Update all users.
3106 (grub_term_set_current): Split in ...
3107 (grub_term_set_current_input): ... this, and ...
3108 (grub_term_set_current_output): ... this.
3109 (grub_term_get_current): Split in ...
3110 (grub_term_get_current_input): ... this, and ...
3111 (grub_term_get_current_output): ... this.
3112 (grub_term_register): Split in ...
3113 (grub_term_register_input): ... this, and ...
3114 (grub_term_register_output): ... this.
3115 (grub_term_unregister): Split in ...
3116 (grub_term_unregister_input): ... this, and ...
3117 (grub_term_unregister_output): ... this.
3118 (grub_term_iterate): Split in ...
3119 (grub_term_iterate_input): ... this, and ...
3120 (grub_term_iterate_output): ... this.
3122 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
3123 a check for input and one for output (and only attempt to get keys
3124 from user when input works).
3126 * util/grub-probe.c (grub_term_get_current): Split in ...
3127 (grub_term_get_current_input): ... this, and ...
3128 (grub_term_get_current_output): ... this.
3129 * util/grub-fstest.c: Likewise.
3130 * util/i386/pc/grub-setup.c: Likewise.
3131 * util/grub-editenv.c: Likewise.
3133 Portability adjustments:
3135 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
3136 `term/i386/pc/at_keyboard.c'.
3137 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
3138 grub_keyboard_controller_init() (now handled by terminal .init).
3139 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
3140 grub_at_keyboard_init().
3141 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
3142 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
3143 at_keyboard.mod via input terminal interface).
3144 * include/grub/i386/coreboot/console.h: Convert into a stub for
3145 `<grub/i386/pc/console.h>'.
3147 Migrate full terminals to new API:
3149 * term/efi/console.c (grub_console_term): Split into ...
3150 (grub_console_term_input): ... this, and ...
3151 (grub_console_term_output): ... this. Update all users.
3152 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
3153 (grub_ofconsole_init): Split into ...
3154 (grub_ofconsole_init_input): ... this, and ...
3155 (grub_ofconsole_init_output): ... this.
3156 (grub_ofconsole_term): Split into ...
3157 (grub_ofconsole_term_input): ... this, and ...
3158 (grub_ofconsole_term_output): ... this. Update all users.
3159 * term/i386/pc/serial.c (grub_serial_term): Split into ...
3160 (grub_serial_term_input): ... this, and ...
3161 (grub_serial_term_output): ... this. Update all users.
3162 * term/i386/pc/console.c (grub_console_term): Split into ...
3163 (grub_console_term_input): ... this, and ...
3164 (grub_console_term_output): ... this. Update all users.
3165 (grub_console_term_input): Only enable it on PC/BIOS platform.
3166 (grub_console_init): Remove grub_keyboard_controller_init() call.
3168 Migrate input terminals to new API:
3170 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
3171 `i386' and `i386/pc' to enable build on x86_64 (this driver is
3172 i386-specific anyway).
3173 (grub_console_checkkey): Rename to ...
3174 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
3176 (grub_keyboard_controller_orig): New variable.
3177 (grub_console_getkey): Rename to ...
3178 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
3180 (grub_keyboard_controller_init): Static-ize. Save original
3181 controller value so that it can be restored ...
3182 (grub_keyboard_controller_fini): ... here (new function).
3183 (grub_at_keyboard_term): New structure.
3184 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
3187 Migrate output terminals to new API:
3189 * term/i386/pc/vga.c (grub_vga_term): Change type to
3190 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
3191 members. Update all users.
3192 * term/gfxterm.c (grub_video_term): Change type to
3193 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
3194 members. Update all users.
3195 * include/grub/i386/pc/console.h (grub_console_checkkey)
3196 (grub_console_getkey): Do not export (no longer needed by gfxterm,
3199 Migrate `terminal' command and userland tools to new API:
3201 * commands/terminal.c (grub_cmd_terminal): Split into ...
3202 (grub_cmd_terminal_input): ... this, and ...
3203 (grub_cmd_terminal_output): ... this.
3204 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
3205 `terminal_input' and `terminal_output'.
3206 * util/grub.d/00_header.in: Adjust `terminal' calls to new
3207 `terminal_input' / `terminal_output' API.
3208 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
3209 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
3210 provided ${GRUB_TERMINAL}, convert it).
3212 2008-11-04 Robert Millan <rmh@aybabtu.com>
3214 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
3216 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
3218 2008-11-03 Bean <bean123ch@gmail.com>
3220 * kern/elf.c (grub_elf32_load): Revert to previous code.
3221 (grub_elf64_load): Likewise.
3223 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
3225 2008-11-01 Robert Millan <rmh@aybabtu.com>
3227 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
3228 (TARGET_CPPFLAGS): Likewise.
3229 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
3231 2008-11-01 Carles Pina i Estany <carles@pina.cat>
3233 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
3235 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
3237 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
3238 addition of objects until the code is not going to be able to fail.
3240 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
3242 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
3243 (add a missing NULL check, and correct them by moving the pointer
3244 operations after the actual check).
3246 2008-10-29 Robert Millan <rmh@aybabtu.com>
3248 * util/i386/pc/grub-install.in: Handle empty string as output from
3249 make_system_path_relative_to_its_root().
3251 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
3253 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
3254 circular metadata worst case scenario. If the metadata is circular
3255 then copy the wrap in place.
3256 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
3257 project lib/format_text/layout.h
3258 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
3260 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
3262 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
3264 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
3266 * util/update-grub_lib.in: Mention filename in warning message.
3268 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
3270 * NEWS: Update for rename of update-grub to grub-mkconfig.
3272 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
3274 * util/update-grub_lib.in: Copy to ...
3275 * util/grub-mkconfig_lib.in: ... this. Update all users.
3276 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
3277 * util/update-grub.in: Rename to ...
3278 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
3279 option. Add `--output' option to allow users to specify the generated
3280 configuration file. Default to stdout.
3281 (update_grub_dir): Rename to ...
3282 (grub_mkconfig_dir): ... this.
3283 (grub_cfg): Default to an empty string.
3284 * conf/common.rmk (update-grub): Rename to ...
3285 (grub-mkconfig): ... this.
3286 (update-grub_lib): Copy to ...
3287 (grub-mkconfig_lib): ... this.
3288 (update-grub_SCRIPTS): Copy to ...
3289 (grub-mkconfig_SCRIPTS): ... this. Update all users.
3290 (update-grub_DATA): Rename to ...
3291 (grub-mkconfig_DATA): ... this.
3293 2008-09-28 Robert Millan <rmh@aybabtu.com>
3295 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
3296 to `modified'. Add the real `created' field.
3297 (grub_iso9660_uuid): Use `modified' rather than `created' for
3298 constructing the UUID.
3300 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
3302 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
3303 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
3305 2008-09-28 Bean <bean123ch@gmail.com>
3307 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
3308 Thanks to Christian Franke for finding this bug.
3310 2008-09-25 Robert Millan <rmh@aybabtu.com>
3312 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
3313 instances of grub_util_get_disk_name() (see previous commit).
3315 2008-09-25 Robert Millan <rmh@aybabtu.com>
3317 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
3318 `util/i386/get_disk_name.c'.
3319 * conf/i386-efi.rmk: Likewise.
3320 * conf/x86_64-efi.rmk: Likewise.
3321 * conf/i386-coreboot.rmk: Likewise.
3322 * conf/i386-ieee1275.rmk: Likewise.
3323 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
3324 `util/ieee1275/get_disk_name.c'.
3325 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
3326 * util/ieee1275/get_disk_name.c: Remove file.
3327 * util/i386/get_disk_name.c: Remove file.
3328 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
3329 "hd%d" for device.map entries, rather than using
3330 grub_util_get_disk_name().
3332 2008-09-24 Carles Pina i Estany <carles@pina.cat>
3334 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
3336 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
3338 2008-09-24 Carles Pina i Estany <carles@pina.cat>
3340 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
3342 (GRUB_TERM_PPAGE): Changed to 0x4900.
3344 2008-09-24 Robert Millan <rmh@aybabtu.com>
3346 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
3347 macros (they were i386-pc specific).
3348 * include/grub/sparc64/ieee1275/console.h: Likewise.
3349 * include/grub/efi/console.h: Likewise.
3351 2008-09-22 Bean <bean123ch@gmail.com>
3353 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
3354 resident and in attribute list.
3356 * include/grub/ntfs.h (BMP_LEN): Removed.
3358 2008-09-22 Bean <bean123ch@gmail.com>
3360 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
3361 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
3363 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
3364 error occurs, as grub_disk_open will call grub_disk_close, which will
3365 call p->close (scsi).
3367 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
3369 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
3370 (AC_PREREQ): Bumped to 2.59.
3371 (AC_TRY_COMPILE): Replace obsolete macro with ...
3372 (AC_COMPILE_IFELSE): ... this.
3373 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
3374 (AC_LINK_IFELSE): ... this.
3376 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
3378 * autogen.sh: Add a call to `gendistlist.sh'.
3380 2008-09-19 Christian Franke <franke@computer.org>
3382 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
3383 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
3384 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
3385 Export __enable_execute_stack() to modules.
3386 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
3389 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
3391 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
3394 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
3396 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
3397 #include <grub/util/hostdisk.h>.
3399 2008-09-08 Robert Millan <rmh@aybabtu.com>
3401 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
3402 segments when their filesz is zero (grub_file_read() interprets
3403 zero-size as "read until EOF", which results in memory corruption).
3404 Use `lowest_segment' rather than 0 for calculating the current
3405 segment load address.
3407 2008-09-08 Robert Millan <rmh@aybabtu.com>
3409 * util/hostdisk.c (open_device): Replace a grub_util_info() call
3410 with grub_dprintf("hostdisk", ...), as it was so verbose that it
3411 clobbered useful information.
3413 2008-09-08 Robert Millan <rmh@aybabtu.com>
3415 * include/grub/util/biosdisk.h: Move to ...
3416 * include/grub/util/hostdisk.h: ... here. Update all users.
3417 * util/biosdisk.c: Move to ...
3418 * util/hostdisk.c: ... here. Update all users.
3420 2008-09-07 Robert Millan <rmh@aybabtu.com>
3422 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
3424 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
3425 and length can be stored directly in the `mbi->mmap_addr' and
3426 `mbi->mmap_length' struct fields.
3428 2008-09-07 Robert Millan <rmh@aybabtu.com>
3430 * conf/i386.rmk: New file. Provides declaration for building
3432 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
3433 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
3435 Include `conf/i386.mk'.
3436 * conf/i386-efi.rmk: Likewise.
3437 * conf/x86_64-efi.rmk: Likewise.
3438 * conf/i386-coreboot.rmk: Likewise.
3439 * conf/i386-ieee1275.rmk: Likewise.
3441 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
3443 Based on patch created by Colin D Bennett <colin@gibibit.com>.
3444 Adds optimization support for BGR based modes.
3446 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
3447 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
3448 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
3449 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
3450 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
3451 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
3452 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
3453 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
3454 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
3455 (grub_video_i386_vbeblit_index_index): Likewise.
3456 (grub_video_i386_vbeblit_replace_directN): Added.
3457 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
3458 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
3459 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
3460 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
3461 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
3462 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
3463 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
3464 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
3465 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
3466 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
3467 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
3468 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
3469 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
3471 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
3472 (grub_video_i386_vbefill_R8G8B8): Likewise.
3473 (grub_video_i386_vbefill_index): Likewise.
3474 (grub_video_i386_vbefill_direct32): Added.
3475 (grub_video_i386_vbefill_direct24): Likewise.
3476 (grub_video_i386_vbefill_direct16): Likewise.
3477 (grub_video_i386_vbefill_direct8): Likewise.
3479 * include/grub/video.h (grub_video_blit_format): Removed
3480 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
3481 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
3482 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
3483 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
3484 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
3486 * video/video.c (grub_video_get_blit_format): Updated to use new
3487 blit formats. Added handling for 16 bit color modes.
3489 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
3491 (common_blitter): Updated to use new blitters.
3493 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
3495 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
3496 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
3497 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
3498 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
3499 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
3500 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
3501 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
3502 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
3503 (grub_video_i386_vbeblit_index_index): Likewise.
3504 (grub_video_i386_vbeblit_replace_directN): Added.
3505 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
3506 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
3507 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
3508 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
3509 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
3510 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
3511 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
3512 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
3513 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
3514 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
3515 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
3516 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
3517 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
3519 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
3520 (grub_video_i386_vbefill_R8G8B8): Likewise.
3521 (grub_video_i386_vbefill_index): Likewise.
3522 (grub_video_i386_vbefill_direct32): Added.
3523 (grub_video_i386_vbefill_direct24): Likewise.
3524 (grub_video_i386_vbefill_direct16): Likewise.
3525 (grub_video_i386_vbefill_direct8): Likewise.
3527 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
3530 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
3533 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
3536 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
3539 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
3541 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
3544 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
3546 * fs/iso9660.c (grub_iso9660_date): New structure.
3547 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
3548 (grub_iso9660_uuid): New function.
3550 2008-09-05 Bean <bean123ch@gmail.com>
3552 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
3554 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
3555 insensitive bit for names in Win32 and Win32 & DOS namespace.
3557 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
3559 * include/grub/types.h (LONG_MAX): Likewise.
3561 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
3563 * util/getroot.c: Include <config.h>.
3564 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
3565 add support for /dev/md/N devices and handle LVM double dash escaping.
3567 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
3569 * config.guess: Update to latest version from config git.
3570 * config.sub: Likewise.
3572 2008-09-03 Robert Millan <rmh@aybabtu.com>
3574 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
3575 `disk->total_sectors'.
3577 2008-09-01 Colin D Bennett <colin@gibibit.com>
3579 * include/grub/normal.h: Fixed incorrect comment for
3580 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
3582 2008-09-01 Colin D Bennett <colin@gibibit.com>
3584 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
3585 values with defines.
3587 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
3588 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
3589 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
3590 (GRUB_VBE_MODEATTR_COLOR): Likewise.
3591 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
3592 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
3593 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
3594 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
3595 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
3596 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
3597 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
3598 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
3599 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
3600 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
3601 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
3602 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
3603 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
3604 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
3605 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
3607 2008-08-31 Robert Millan <rmh@aybabtu.com>
3609 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
3611 (grub_multiboot): Fix a few warnings.
3613 2008-08-31 Robert Millan <rmh@aybabtu.com>
3615 * loader/i386/pc/multiboot.c: Update comment not to say that
3616 boot_device support is unimplemented.
3618 2008-08-31 Robert Millan <rmh@aybabtu.com>
3620 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
3621 or memory map support are unimplemented.
3623 2008-08-31 Colin D Bennett <colin@gibibit.com>
3625 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
3627 2008-08-31 Colin D Bennett <colin@gibibit.com>
3629 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
3630 total video memory in 'vbeinfo' output; show color format details for
3633 2008-08-30 Pavel Roskin <proski@gnu.org>
3635 * util/genmoddep.c: Remove for real this time.
3636 * DISTLIST: Remove util/genmoddep.c.
3638 2008-08-30 Robert Millan <rmh@aybabtu.com>
3640 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
3641 as required by Multiboot spec (it was already 4-byte aligned, but
3644 2008-08-29 Pavel Roskin <proski@gnu.org>
3646 * kern/powerpc/ieee1275/crt0.S: Rename to ...
3647 * kern/powerpc/ieee1275/startup.S: ... this.
3648 * conf/powerpc-ieee1275.rmk: Adjust for the above.
3649 * DISTLIST: Likewise.
3651 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
3652 grub/cpu/kernel.h. Add start label for consistency with other
3653 platforms. Add grub_prefix immediately after start. Add jump
3654 to the code after grub_prefix.
3655 * include/grub/powerpc/kernel.h: Provide valid values for
3656 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
3658 2008-08-29 Bean <bean123ch@gmail.com>
3660 * configure.ac: Change host_os to cygwin for mingw.
3661 (asprintf): New check for function.
3663 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
3664 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
3666 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
3667 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
3668 sync, sleep and grub_util_get_disk_size for mingw.
3670 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
3671 to get size in mingw.
3672 (open_device): Use flag O_BINARY if it's defined.
3673 (find_root_device): Add dummy code for mingw.
3675 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
3676 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
3677 (get_scsi_disk_name): Return 0 for mingw.
3679 * util/hostfs.c: #include <grub/util/misc.h>.
3680 (grub_hostfs_open): Use "rb" flag to open file, use
3681 grub_util_get_disk_size to get disk size for mingw.
3683 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
3684 (asprintf): New function if HAVE_ASPRINTF is not set.
3685 (sync): New function for mingw.
3687 (grub_util_get_disk_size): Likewise.
3689 2008-08-28 Pavel Roskin <proski@gnu.org>
3691 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
3694 2008-08-28 Robert Millan <rmh@aybabtu.com>
3696 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
3698 2008-08-28 Robert Millan <rmh@aybabtu.com>
3700 Change find_grub_drive() syntax so it doesn't prevent it from
3701 detecting NULL names as errors.
3703 * util/biosdisk.c (find_grub_drive): Move free slot search code
3705 (find_free_slot): ... to here.
3706 (read_device_map): Use find_free_slot() to search for free slots.
3708 2008-08-27 Marco Gerards <marco@gnu.org>
3710 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
3711 (scsi_mod_SOURCES): New variable.
3712 (scsi_mod_CFLAGS): Likewise
3713 (scsi_mod_LDFLAGS): Likewise.
3715 * disk/scsi.c: New file.
3717 * include/grub/scsi.h: Likewise.
3719 * include/grub/scsicmd.h: Likewise.
3721 * disk/ata.c: Include <grub/scsi.h>.
3722 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
3724 (grub_ata_iterate): Skip ATAPI devices.
3725 (grub_ata_open): Only handle ATAPI devices.
3726 (struct grub_atapi_read): Removed.
3727 (grub_atapi_readsector): Likewise.
3728 (grub_ata_read): No longer handle ATAPI devices.
3729 (grub_ata_write): Likewise.
3730 (grub_atapi_iterate): New function.
3731 (grub_atapi_read): Likewise.
3732 (grub_atapi_write): Likewise.
3733 (grub_atapi_open): Likewise.
3734 (grub_atapi_close): Likewise.
3735 (grub_atapi_dev): New variable.
3736 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
3737 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
3739 * include/grub/disk.h (enum grub_disk_dev_id): Add
3740 `GRUB_DISK_DEVICE_SCSI_ID'.
3742 2008-08-26 Robert Millan <rmh@aybabtu.com>
3744 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
3745 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
3748 2008-08-23 Bean <bean123ch@gmail.com>
3750 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
3751 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
3752 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
3753 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
3755 (raid5rec_mod_SOURCES): New macro.
3756 (raid5rec_mod_CFLAGS): Likewise.
3757 (raid5rec_mod_LDFLAGS): Likewise.
3758 (raid6rec_mod_SOURCES): Likewise.
3759 (raid6rec_mod_CFLAGS): Likewise.
3760 (raid6rec_mod_LDFLAGS): Likewise.
3761 (mdraid_mod_SOURCES): Likewise.
3762 (mdraid_mod_CFLAGS): Likewise.
3763 (mdraid_mod_LDFLAGS): Likewise.
3764 (dm_nv_mod_SOURCES): Likewise.
3765 (dm_nv_mod_CFLAGS): Likewise.
3766 (dm_nv_mod_LDFLAGS): Likewise.
3768 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
3769 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
3770 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
3772 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
3773 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
3775 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
3777 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3779 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3783 * disk/raid5_recover.c: New file.
3785 * disk/raid6_recover.c: Likewise.
3787 * disk/mdraid_linux.c: Likewise.
3789 * disk/dmraid_nvidia.c: Likewise.
3791 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
3794 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
3795 calculate the size of raid device.
3796 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
3797 different layout of raid5.
3798 (grub_raid_scan_device): Remove code specific to mdraid.
3799 (grub_raid_list): New variable.
3800 (free_array): New function.
3801 (grub_raid_register): Likewise.
3802 (grub_raid_unregister): Likewise.
3803 (grub_raid_rescan): Likewise.
3804 (GRUB_MOD_INIT): Don't iterate device here.
3805 (GRUB_MOD_FINI): Use free_array to release resource.
3807 * include/grub/raid.h: Remove macro and structure specific to mdraid.
3808 (grub_raid5_recover_func_t): New function variable type.
3809 (grub_raid6_recover_func_t): Likewise.
3810 (grub_raid5_recover_func): New variable.
3811 (grub_raid6_recover_func): Likewise.
3812 (grub_raid_register): New function.
3813 (grub_raid_unregister): Likewise.
3814 (grub_raid_rescan): Likewise.
3815 (grub_raid_block_xor): Likewise.
3817 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
3818 (CMD_CRC): New macro.
3820 (read_file): Handle device as well as file.
3821 (cmd_crc): New function.
3822 (fstest): Handle multiple disks.
3823 (options): Remove part, raw and long, add root and diskcount.
3824 (usage): Add crc, remove -p, -r, -l, add -r and -c.
3825 (main): Find the first non option entry and ignore subsequent options,
3826 add handling for the new options, support multiple disks.
3828 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
3830 2008-08-23 Bean <bean123ch@gmail.com>
3832 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
3834 * genfslist.sh: Ignore kernel.mod.
3836 * genpartmaplist.sh: Likewise.
3838 2008-08-23 Robert Millan <rmh@aybabtu.com>
3840 * util/getroot.c (find_root_device): Skip anything that starts with
3841 a dot, not just directories. This avoids things like /dev/.tmp.md0.
3843 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
3845 * util/update-grub.in (GRUB_GFXMODE): Export variable.
3846 * util/grub.d/00_header.in: Allow the administrator to change default
3847 gfxmode via ${GRUB_GFXMODE}.
3849 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
3851 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
3853 2008-08-21 Robert Millan <rmh@aybabtu.com>
3855 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
3857 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
3858 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
3860 2008-08-20 Carles Pina i Estany <carles@pina.cat>
3862 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
3863 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
3865 2008-08-19 Robert Millan <rmh@aybabtu.com>
3867 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
3868 (struct grub_virtual_screen): Remove `cursor_color'.
3869 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
3871 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
3873 2008-08-18 Robert Millan <rmh@aybabtu.com>
3875 Unify (identical) linux_normal.c files.
3876 * loader/i386/efi/linux_normal.c: Move from here ...
3877 * loader/linux_normal.c: ... to here. Update all users.
3878 * loader/i386/pc/linux_normal.c: Delete. Update all users.
3879 * loader/i386/ieee1275/linux_normal.c: Likewise.
3881 2008-08-18 Robert Millan <rmh@aybabtu.com>
3883 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
3884 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
3885 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
3886 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
3887 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
3889 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
3890 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
3891 (GRUB_LINUX_CL_END_OFFSET): ... to here.
3892 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
3893 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
3894 (GRUB_EFI_CL_END_OFFSET): Rename to ...
3895 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
3896 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
3897 Initialize `params->video_cursor_x' and `params->video_cursor_y'
3898 portably using grub_getxy().
3899 Replace `-EFI' with `-bzImage' in boot message.
3901 2008-08-17 Robert Millan <rmh@aybabtu.com>
3903 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
3905 2008-08-17 Robert Millan <rmh@aybabtu.com>
3907 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
3909 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
3910 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
3911 (grub_machine_mmap_iterate): New function declaration.
3912 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
3914 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
3917 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
3918 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
3919 Move e820 parsing from here ...
3920 * kern/i386/pc/mmap.c: New file.
3921 (grub_machine_mmap_iterate): ... to here.
3923 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
3924 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
3925 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
3926 (grub_available_iterate): Redeclare to return `void', and redeclare
3927 its hook to use grub_uint64_t as addr and size parameters, and rename
3929 (grub_machine_mmap_iterate): ... this. Update all users.
3931 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
3932 to make it more readable. Rename to ...
3933 (grub_machine_mmap_iterate): ... this.
3935 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
3936 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
3937 (grub_multiboot): Allocate an extra region after the payload, and fill
3938 it with a Multiboot memory map. Adjust a.out loader to calculate size
3939 with the extra space.
3940 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
3941 with the extra space.
3943 2008-08-17 Carles Pina i Estany <carles@pina.cat>
3945 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
3947 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
3949 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
3950 mdate-sh to the list `find' searches for.
3951 * DISTLIST: Regenerated.
3953 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
3955 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
3956 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
3957 genmoddep.awk, gensymlist.sh.in.
3958 (DISTDIRS): Add bus, docs, hook, lib.
3959 * DISTLIST: Regenerated.
3960 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
3962 2008-08-16 Robert Millan <rmh@aybabtu.com>
3964 * disk/raid.c (grub_raid_init): Handle/report errors set by
3965 grub_device_iterate().
3966 * disk/lvm.c (grub_lvm_init): Likewise.
3968 2008-08-15 Bean <bean123ch@gmail.com>
3970 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
3972 (datetime_mod_SOURCES): New macro.
3973 (datetime_mod_CFLAGS): Likewise.
3974 (datetime_mod_LDFLAGS): Likewise.
3975 (date_mod_SOURCES): Likewise.
3976 (date_mod_CFLAGS): Likewise.
3977 (date_mod_LDFLAGS): Likewise.
3978 (datehook_mod_SOURCES): Likewise.
3979 (datehook_mod_CFLAGS): Likewise.
3980 (datehook_mod_LDFLAGS): Likewise.
3982 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
3984 (datetime_mod_SOURCES): New macro.
3985 (datetime_mod_CFLAGS): Likewise.
3986 (datetime_mod_LDFLAGS): Likewise.
3987 (date_mod_SOURCES): Likewise.
3988 (date_mod_CFLAGS): Likewise.
3989 (date_mod_LDFLAGS): Likewise.
3990 (datehook_mod_SOURCES): Likewise.
3991 (datehook_mod_CFLAGS): Likewise.
3992 (datehook_mod_LDFLAGS): Likewise.
3994 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
3996 (datetime_mod_SOURCES): New macro.
3997 (datetime_mod_CFLAGS): Likewise.
3998 (datetime_mod_LDFLAGS): Likewise.
3999 (date_mod_SOURCES): Likewise.
4000 (date_mod_CFLAGS): Likewise.
4001 (date_mod_LDFLAGS): Likewise.
4002 (datehook_mod_SOURCES): Likewise.
4003 (datehook_mod_CFLAGS): Likewise.
4004 (datehook_mod_LDFLAGS): Likewise.
4006 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
4008 (datetime_mod_SOURCES): New macro.
4009 (datetime_mod_CFLAGS): Likewise.
4010 (datetime_mod_LDFLAGS): Likewise.
4011 (date_mod_SOURCES): Likewise.
4012 (date_mod_CFLAGS): Likewise.
4013 (date_mod_LDFLAGS): Likewise.
4014 (datehook_mod_SOURCES): Likewise.
4015 (datehook_mod_CFLAGS): Likewise.
4016 (datehook_mod_LDFLAGS): Likewise.
4018 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
4020 (datetime_mod_SOURCES): New macro.
4021 (datetime_mod_CFLAGS): Likewise.
4022 (datetime_mod_LDFLAGS): Likewise.
4023 (date_mod_SOURCES): Likewise.
4024 (date_mod_CFLAGS): Likewise.
4025 (date_mod_LDFLAGS): Likewise.
4026 (datehook_mod_SOURCES): Likewise.
4027 (datehook_mod_CFLAGS): Likewise.
4028 (datehook_mod_LDFLAGS): Likewise.
4030 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
4032 * commands/date.c: New file.
4034 * hook/datehook.c: Likewise.
4036 * include/grub/lib/datetime.h: Likewise.
4038 * include/grub/i386/cmos.h: Likewise.
4040 * lib/datetime.c: Likewise.
4042 * lib/i386/datetime.c: Likewise.
4044 * lib/efi/datetime.c: Likewise.
4046 2008-08-14 Robert Millan <rmh@aybabtu.com>
4048 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
4049 (grub_mkelfimage_SOURCES): New variable.
4050 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
4052 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
4053 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
4054 * conf/powerpc-ieee1275.rmk: Likewise.
4055 * conf/i386-ieee1275.rmk: Likewise.
4057 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
4058 * kern/i386/coreboot/init.c: Likewise.
4060 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
4061 with `<grub/cpu/kernel.h>'.
4062 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
4064 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
4065 * kern/i386/coreboot/startup.S: Likewise.
4067 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
4068 (GRUB_MOD_GAP): Remove.
4069 * include/grub/powerpc/kernel.h: New file.
4070 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
4071 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
4072 * include/grub/i386/kernel.h: New file.
4073 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
4074 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
4075 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
4077 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
4079 Use --directory when invoking grub_mkimage.
4081 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
4082 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
4083 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
4084 and GRUB_KERNEL_CPU_PREFIX.
4086 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
4088 * include/grub/err.h (grub_err_printf): New function prototype.
4089 * util/misc.c (grub_err_printf): New function.
4090 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
4092 * kern/err.c (grub_print_error): Use grub_err_printf.
4094 2008-08-13 Robert Millan <rmh@aybabtu.com>
4096 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
4098 2008-08-13 Robert Millan <rmh@aybabtu.com>
4100 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
4103 2008-08-12 Robert Millan <rmh@aybabtu.com>
4105 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
4106 of the relocation code from here ...
4107 (grub_multiboot): ... to here.
4108 (forward_relocator, backward_relocator): Move from here ...
4109 * kern/i386/loader.S (grub_multiboot_forward_relocator)
4110 (grub_multiboot_backward_relocator): ... to here.
4111 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
4112 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
4113 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
4114 (grub_multiboot_forward_relocator_end)
4115 (grub_multiboot_backward_relocator)
4116 (grub_multiboot_backward_relocator_end): New variables.
4118 2008-08-12 Bean <bean123ch@gmail.com>
4120 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
4122 2008-08-11 Robert Millan <rmh@aybabtu.com>
4124 * kern/i386/linuxbios/startup.S: Move from here ...
4125 * kern/i386/coreboot/startup.S: ... to here.
4127 * kern/i386/linuxbios/init.c: Move from here ...
4128 * kern/i386/coreboot/init.c: ... to here.
4130 * kern/i386/linuxbios/table.c: Move from here ...
4131 * kern/i386/coreboot/mmap.c: ... to here.
4133 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
4135 2008-08-11 Robert Millan <rmh@aybabtu.com>
4137 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
4138 errors. Leave it to the upper layer to handle them.
4140 2008-08-09 Christian Franke <franke@computer.org>
4142 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
4143 * conf/common.rmk: Install `grub-pe2elf' only if requested.
4144 Install `grub.d/10_windows' only on Cygwin.
4145 * configure.ac: Add subst of `target_os'.
4146 Check `target_os' also before setting TARGET_OBJ2ELF.
4147 Add `--enable-grub-pe2elf'.
4149 2008-08-08 Robert Millan <rmh@aybabtu.com>
4151 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
4152 (grub_last_time): Change type to grub_uint64_t.
4153 (grub_disk_open): Migrate code from to using grub_get_time_ms().
4154 (grub_disk_close): Likewise.
4156 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
4157 (run_menu): Migrate code from to using grub_get_time_ms().
4159 * util/misc.c (grub_get_time_ms): New function.
4161 2008-08-08 Marco Gerards <marco@gnu.org>
4163 * disk/ata.c (grub_ata_regget): Change return type to
4165 (grub_ata_regget2): Likewise.
4166 (grub_ata_wait_status): New function.
4167 (grub_ata_wait_busy): Removed function, updated all users to use
4168 `grub_ata_wait_status'.
4169 (grub_ata_wait_drq): Likewise.
4170 (grub_ata_cmd): New function.
4171 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
4173 (grub_ata_pio_write): Add error handling.
4174 (grub_atapi_identify): Likewise.
4175 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
4177 (grub_ata_identify): Use `grub_ata_cmd' and improve error
4178 handling. Actually use the detected registers. Reorder the
4179 detection logic such that it is easier to read.
4180 (grub_ata_pciinit): Do not assign the same ID to each controller.
4181 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
4183 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
4185 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
4187 2008-08-08 Marco Gerards <marco@gnu.org>
4191 2008-08-07 Bean <bean123ch@gmail.com>
4193 * include/grub/x86_64/pci.h: New file.
4195 2008-08-07 Christian Franke <franke@computer.org>
4197 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
4198 (TIMER2_GATE): Likewise.
4199 (grub_pit_wait): Add enable/disable of the timer2 gate
4200 bit of port 0x61. This fixes a possible infinite loop.
4202 2008-08-07 Bean <bean123ch@gmail.com>
4204 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
4205 kern/i386/tsc.c and kern/i386/pit.c.
4207 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
4210 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
4213 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
4215 2008-08-07 Bean <bean123ch@gmail.com>
4217 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
4219 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
4221 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
4222 multiple inclusion. Add #include <grub/types.h>.
4224 2008-08-06 Christian Franke <franke@computer.org>
4226 * conf/common.rmk: Build and install `10_windows'.
4227 * util/grub.d/10_windows.in: New script.
4229 2008-08-06 Pavel Roskin <proski@gnu.org>
4231 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
4233 2008-08-06 Robert Millan <rmh@aybabtu.com>
4235 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
4236 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
4238 2008-08-06 Bean <bean123ch@gmail.com>
4240 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
4241 (grub_pxefs_fs_int): Remove dummy definition.
4242 (grub_pxefs_open): Use data->block_size to store the current block
4244 (grub_pxefs_read): Use block size stored in data->block_size. As the
4245 value of grub_pxe_blksize can be changed after the file is opened.
4247 2008-08-06 Bean <bean123ch@gmail.com>
4249 * fs/i386/pc/pxe.c (curr_file): new variable.
4250 (grub_pxefs_open): Simply the handling of pxe file system. Don't
4251 require the dummy internal file system anymore.
4252 (grub_pxefs_read): Removed.
4253 (grub_pxefs_close): Likewise.
4254 (grub_pxefs_fs_int): Likewise.
4255 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
4256 connection when we switch file.
4257 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
4259 2008-08-06 Robert Millan <rmh@aybabtu.com>
4261 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
4263 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
4264 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
4266 * kern/i386/halt.c: New file.
4267 * kern/i386/reboot.c: Likewise.
4268 * include/grub/i386/reboot.h: Likewise.
4269 * include/grub/i386/halt.h: Likewise.
4271 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
4272 Include `<grub/cpu/halt.h>'.
4273 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
4274 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
4276 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
4277 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
4278 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
4279 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
4280 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
4281 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
4283 * include/grub/i386/at_keyboard.h: ... to here.
4285 2008-08-05 Robert Millan <rmh@aybabtu.com>
4287 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
4288 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
4289 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
4290 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
4291 `kern/generic/millisleep.c'.
4293 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
4294 instead of grub_get_rtc().
4295 (grub_tsc_init): Initialize `tsc_boot_time'.
4297 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
4298 (grub_machine_init): Use grub_tsc_init() rather than
4299 installing an RTC-based handler via grub_install_get_time_ms().
4301 * kern/i386/pit.c: New file.
4302 * include/grub/i386/pit.h: Likewise.
4304 2008-08-05 Bean <bean123ch@gmail.com>
4306 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
4308 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
4309 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
4310 (pxe_mod_SOURCES): New macro.
4311 (pxe_mod_CFLAGS): Likewise.
4312 (pxe_mod_LDFLAGS): Likewise.
4313 (pxecmd_mod_SOURCES): Likewise.
4314 (pxecmd_mod_CFLAGS): Likewise.
4315 (pxecmd_mod_LDFLAGS): Likewise.
4317 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
4318 (grub_pxe_call): Likewise.
4320 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
4322 * commands/i386/pc/pxecmd.c: New file.
4324 * fs/i386/pc/pxe.c: Likewise.
4326 * include/grub/i386/pc/pxe.h: Likewise.
4328 2008-08-05 Bean <bean123ch@gmail.com>
4330 * util/console.c (grub_console_cur_color): New variable.
4331 (grub_console_standard_color): Likewise.
4332 (grub_console_normal_color): Likewise.
4333 (grub_console_highlight_color): Likewise.
4334 (color_map): Likewise.
4335 (use_color): Likewise.
4336 (NUM_COLORS): New macro.
4337 (grub_ncurses_setcolorstate): Handle color properly.
4338 (grub_ncurses_setcolor): Don't change color here, just remember the
4339 settings, color will be set in grub_ncurses_setcolorstate.
4340 (grub_ncurses_getcolor): New function.
4341 (grub_ncurses_init): Initialize color pairs.
4342 (grub_ncurses_term): New member grub_ncurses_getcolor.
4344 2008-08-05 Colin D Bennett <colin@gibibit.com>
4346 High resolution timer support. Implemented for x86 CPUs using TSC.
4347 Extracted generic grub_millisleep() so it's linked in only as needed.
4348 This requires a Pentium compatible CPU; if the RDTSC instruction is
4349 not supported, then it falls back on the generic grub_get_time_ms()
4350 implementation that uses the machine's RTC.
4352 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
4353 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
4354 `kern/generic/millisleep.c'.
4356 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
4357 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
4359 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
4360 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
4362 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
4364 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
4365 `kern/generic/millisleep.c'.
4367 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
4369 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
4371 * kern/generic/rtc_get_time_ms.c: New file.
4373 * kern/generic/millisleep.c: New file.
4375 * kern/misc.c: Don't include
4376 <kern/time.h> anymore.
4377 (grub_millisleep_generic): Removed.
4379 * commands/sleep.c (grub_interruptible_millisleep): Uses
4380 grub_get_time_ms() instead of grub_get_rtc().
4382 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
4384 (grub_cpu_is_cpuid_supported): New inline function.
4385 (grub_cpu_is_tsc_supported): New inline function.
4386 (grub_tsc_init): New function prototype.
4387 (grub_tsc_get_time_ms): New function prototype.
4389 * kern/i386/tsc.c (grub_get_time_ms): New file.
4391 * include/grub/time.h: Include <grub/types.h.
4392 (grub_millisleep_generic): Removed.
4393 (grub_get_time_ms): New prototype.
4394 (grub_install_get_time_ms): New prototype.
4395 (grub_rtc_get_time_ms): New prototype.
4397 * kern/time.c (grub_get_time_ms): New function.
4398 (grub_install_get_time_ms): New function.
4400 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
4401 <grub/time.h> anymore.
4402 (grub_millisleep): Removed.
4403 (grub_machine_init): Call grub_tsc_init.
4405 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
4406 get_time_ms() implementation.
4408 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
4409 (ieee1275_get_time_ms): New function.
4410 (grub_machine_init): Install get_time_ms() implementation.
4412 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
4413 (grub_machine_init): Call grub_tsc_init().
4414 (grub_millisleep): Removed.
4416 * kern/ieee1275/init.c (grub_millisleep): Removed.
4417 (grub_machine_init): Install ieee1275_get_time_ms()
4419 (ieee1275_get_time_ms): New function.
4420 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
4423 2008-08-05 Marco Gerards <marco@gnu.org>
4425 * disk/ata.c: Include <grub/pci.h>.
4426 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
4427 (grub_ata_initialize): Rewritten.
4428 (grub_ata_device_initialize): New function.
4430 2008-08-04 Pavel Roskin <proski@gnu.org>
4432 * kern/main.c: Include grub/mm.h.
4434 2008-08-04 Robert Millan <rmh@aybabtu.com>
4436 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
4437 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
4438 corruption problem).
4440 2008-08-04 Robert Millan <rmh@aybabtu.com>
4442 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
4443 warnings introduced in my last commit.
4445 2008-08-03 Robert Millan <rmh@aybabtu.com>
4447 Make PCI available on all i386 architectures.
4449 * include/grub/i386/pc/pci.h: Move from here ...
4450 * include/grub/i386/pci.h: ... to here.
4452 * include/grub/i386/pc/pci.h: Remove.
4453 * include/grub/i386/efi/pci.h: Remove.
4454 * include/grub/x86_64/efi/pci.h: Remove.
4456 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
4459 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
4460 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
4461 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
4463 * conf/i386-ieee1275.rmk: Likewise.
4465 2008-08-03 Robert Millan <rmh@aybabtu.com>
4467 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
4468 (grub_console_setcursor): Make it possible to set cursor off.
4470 2008-08-03 Robert Millan <rmh@aybabtu.com>
4472 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
4473 of modules instead of assuming which platform provides what.
4474 * util/update-grub.in: Likewise.
4476 2008-08-03 Robert Millan <rmh@aybabtu.com>
4478 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
4479 instead of `grub_install_dos_part' to determine whether a drive needs
4480 to be prepended to prefix (`grub_install_dos_part' is not reliable,
4481 because it can be overridden when loading GRUB via Multiboot).
4483 2008-08-02 Robert Millan <rmh@aybabtu.com>
4485 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
4487 2008-08-02 Robert Millan <rmh@aybabtu.com>
4489 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
4490 of informational grub_dprintf() calls.
4492 2008-08-02 Robert Millan <rmh@aybabtu.com>
4494 * disk/memdisk.c (memdisk_size): Don't initialize.
4495 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
4497 * include/grub/i386/pc/kernel.h
4498 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
4499 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
4500 (grub_memdisk_image_size, grub_arch_memdisk_addr)
4501 (grub_arch_memdisk_size): Remove.
4503 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
4504 field (was only used to transfer a constant). Add `type' field to
4505 support multiple module types.
4506 (grub_module_iterate): New function.
4508 * kern/device.c (grub_device_open): Do not hide error messages
4509 when grub_disk_open() fails. Use grub_print_error() instead.
4511 * kern/i386/pc/init.c (grub_arch_modules_addr)
4512 (grub_arch_memdisk_size): Remove functions.
4513 (grub_arch_modules_addr): Return the module address in high memory
4514 (now that it isn't copied anymore).
4516 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
4517 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
4518 decompression routine (grub_total_module_size already includes that
4519 now). Don't copy modules back to low memory.
4521 * kern/main.c: Include `<grub/mm.h>'.
4522 (grub_load_modules): Split out (and use) ...
4523 (grub_module_iterate): ... this function, which iterates through
4524 module objects and runs a hook.
4525 Comment out grub_mm_init_region() call, as it would cause non-ELF
4526 modules to be overwritten.
4528 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
4529 the memdisk image in its own region, make it part of the module list.
4530 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
4531 (main): Parse --memdisk|-m option, and pass user-provided path as
4532 parameter to generate_image().
4533 (add_segments): Pass `memdisk_path' down to load_modules().
4534 (load_modules): Embed memdisk image in module section when requested.
4535 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
4536 `header.type' instead of `header.offset'.
4538 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
4539 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
4540 (memdisk_mod_LDFLAGS): New variables.
4541 * conf/i386-coreboot.rmk: Likewise.
4542 * conf/i386-ieee1275.rmk: Likewise.
4544 2008-08-02 Robert Millan <rmh@aybabtu.com>
4546 * loader/i386/pc/multiboot.c (playground, forward_relocator)
4547 (backward_relocator): New variables. Used to allocate and relocate
4548 the payload, respectively.
4549 (grub_multiboot_load_elf32): Load into heap instead of requested
4550 address, install the appropriate relocator code in each bound of
4551 the payload, and set the entry point such that
4552 grub_multiboot_real_boot() will jump to one of them.
4554 * kern/i386/loader.S (grub_multiboot_payload_size)
4555 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
4556 (grub_multiboot_payload_entry_offset): New variables.
4557 (grub_multiboot_real_boot): Set cpu context to what the relocator
4558 expects, and jump to the relocator instead of the payload.
4560 * include/grub/i386/loader.h (grub_multiboot_payload_size)
4561 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
4562 (grub_multiboot_payload_entry_offset): Export.
4564 2008-08-01 Bean <bean123ch@gmail.com>
4566 * normal/menu_entry.c (editor_getline): Don't return the original
4567 string as result, as it will be released by lexer once it has done
4570 2008-08-01 Robert Millan <rmh@aybabtu.com>
4572 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
4573 within menuentries, not before them.
4574 util/grub.d/10_hurd.in: Likewise.
4576 2008-08-01 Bean <bean123ch@gmail.com>
4578 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
4579 (bufio_mod_SOURCES): New macro.
4580 (bufio_mod_CFLAGS): Likewise.
4581 (bufio_mod_LDFLAGS): Likewise.
4583 * include/grub/bufio.h: New file.
4585 * io/bufio.c: Likewise.
4587 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
4588 (grub_video_reader_png): Use grub_buffile_open to open file.
4590 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
4591 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
4593 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
4594 (grub_video_reader_tga): Use grub_buffile_open to open file.
4596 * font/manager.c: Include <grub/bufio.h>.
4597 (add_font): Use grub_buffile_open to open file.
4599 2008-07-31 Robert Millan <rmh@aybabtu.com>
4601 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
4602 ELF segments, use a macro for arbitrarily accessing any of them instead
4603 of preparing a pointer that allows access to one at a time.
4604 (grub_multiboot_load_elf64): Likewise.
4606 2008-07-31 Bean <bean123ch@gmail.com>
4608 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
4609 GRUB_KERNEL_MACHINE_DATA_END.
4611 2008-07-30 Robert Millan <rmh@aybabtu.com>
4613 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
4614 Increase from 0x50 to 0x60.
4615 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
4616 use UUIDs to identify the root drive for them. If that's not
4618 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
4619 check, for cross-disk installs.
4621 2008-07-30 Robert Millan <rmh@aybabtu.com>
4623 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
4624 is non-empty, use it to set the `prefix' environment variable instead
4625 of the usual approach.
4626 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
4627 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
4628 environment variable instead of dummy make_install_device().
4630 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
4631 (start): Insert a data section, with `grub_prefix' variable.
4632 * kern/i386/linuxbios/startup.S: Likewise.
4634 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
4635 New variable reference.
4636 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
4637 New macro. Defines offset of `grub_prefix' within startup.S (relative
4639 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
4640 section within startup.S (relative to `start').
4641 * include/grub/i386/coreboot/kernel.h: Likewise.
4643 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
4644 Overwrite grub_prefix with its contents, at the beginning of the
4646 (main): Understand -p|--prefix.
4648 2008-07-30 Robert Millan <rmh@aybabtu.com>
4650 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
4652 2008-07-30 Robert Millan <rmh@aybabtu.com>
4654 * term/i386/pc/vga_text.c (grub_console_cls): Use
4655 grub_console_gotoxy() to go back to beginning of the screen.
4656 Found by Patrick Georgi <patrick.georgi@coresystems.de>
4658 2008-07-29 Christian Franke <franke@computer.org>
4660 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
4661 Add conversion of emulated mount points on Cygwin.
4663 2008-07-29 Christian Franke <franke@computer.org>
4665 * util/update-grub.in: Add a check for admin
4667 Remove old `grub.cfg.new' before creation.
4668 Add `-f' to `mv' to handle the different filesystem
4669 semantics of Windows.
4671 2008-07-29 Bean <bean123ch@gmail.com>
4673 * normal/main.c (get_line): Fix buffer overflow bug.
4675 2008-07-28 Robert Millan <rmh@aybabtu.com>
4677 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
4678 (struct grub_apple_header): New struct. Describes the layout of
4680 (apple_partition_map_iterate): Check the header magic as well as the
4681 partition magic (which was already being checked).
4683 2008-07-28 Pavel Roskin <proski@gnu.org>
4685 * genmk.rb: Add a warning to the beginning of the output that
4686 it's a generated file and should not be edited.
4688 2008-07-28 Robert Millan <rmh@aybabtu.com>
4690 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
4691 with the same number are found, just use issue a warning with
4692 grub_dprintf(), as this error has been reported to be non-fatal.
4694 2008-07-27 Robert Millan <rmh@aybabtu.com>
4696 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
4699 2008-07-27 Bean <bean123ch@gmail.com>
4701 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
4702 (grub_fat_find_dir): Ignore case when comparing filename.
4704 2008-07-27 Bean <bean123ch@gmail.com>
4706 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
4707 smallino, as it's more descriptive, and i8count can be confused with
4708 the other field count.
4709 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
4712 2008-07-27 Bean <bean123ch@gmail.com>
4714 * commands/crc.c: New file.
4716 * lib/crc.c: Likewise.
4718 * include/grub/lib/crc.h: Likewise.
4720 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
4722 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
4723 (hexdump): Move this function to ...
4725 * lib/hexdump.c: ... here.
4727 * include/grub/hexdump.h: Renamed to ...
4729 * include/grub/lib/hexdump.h: ... this.
4731 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
4733 * util/grub-editenv.c: Likewise.
4735 * include/envblk.h: Renamed to ...
4737 * include/lib/envblk.h: ... this.
4739 * util/envblk.c: Renamed to ...
4741 * lib/envblk.c: ... this.
4743 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
4745 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
4746 (pkglib_MODULES): Add crc.mod.
4747 (hexdump_mod_SOURCES): Add lib/hexdump.c.
4748 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
4749 (crc_mod_SOURCES): New macro.
4750 (crc_mod_CFLAGS): Likewise.
4751 (crc_mod_LDFLAGS): Likewise.
4753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
4755 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4757 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
4759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4761 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4763 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
4765 * commands/help.c: Include <grub/term.h>.
4766 (TERM_WIDTH): Removed. Updated all users.
4768 2008-07-27 Pavel Roskin <proski@gnu.org>
4770 * util/getroot.c (find_root_device): Rephrase a comment to avoid
4771 spurious warnings about a comment within a comment.
4773 2008-07-25 Robert Millan <rmh@aybabtu.com>
4775 * util/getroot.c (find_root_device): Skip devices that match
4776 /dev/dm-[0-9]. This lets the real device be found for any type of
4777 abstraction (LVM, EVMS, RAID..).
4778 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
4779 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
4780 device is found first, find_root_device() will now skip it.
4782 2008-07-24 Pavel Roskin <proski@gnu.org>
4784 * include/grub/types.h: Use __builtin_bswap32() and
4785 __builtin_bswap64() with gcc 4.3 and newer.
4787 2008-07-24 Christian Franke <franke@computer.org>
4789 * util/i386/pc/grub-install.in: If `--debug' is specified,
4790 pass `--verbose' to grub-setup.
4791 Abort script if make_system_path_relative_to_its_root() fails.
4793 2008-07-24 Bean <bean123ch@gmail.com>
4795 * configure.ac: Fixed a bug caused by the previous cygwin patch,
4796 variable `target_platform' should be `platform'.
4798 2008-07-24 Bean <bean123ch@gmail.com>
4800 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
4801 (grub_png_init_fixed_block): New function.
4802 (grub_png_decode_image_data): Handle fixed huffman code compression.
4804 2008-07-24 Bean <bean123ch@gmail.com>
4806 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
4807 (grub_pe2elf_SOURCES): New macro.
4808 (CLEANFILES): Add grub-pe2elf.
4810 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
4811 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
4812 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
4813 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
4814 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
4815 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
4816 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
4817 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
4818 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
4819 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
4820 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
4821 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
4822 (GRUB_PE32_DT_FUNCTION): Likewise.
4823 (GRUB_PE32_REL_I386_DIR32): Likewise.
4824 (GRUB_PE32_REL_I386_REL32): Likewise.
4825 (grub_pe32_symbol): New structure.
4826 (grub_pe32_reloc): Likewise.
4828 * util/grub-pe2elf.c: New file.
4830 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
4831 start symbol in non pc platform.
4833 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
4835 The following patches are from Christian Franke.
4837 * include/grub/dl.h: Remove .previous, gas supports this only
4840 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
4841 Remove .type, gas supports this only for ELF format.
4843 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
4844 nullbytes in symbol table. This fixes an infinite loop if table is
4847 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
4848 TARGET_IMG_LDFLAGS and EXEEXT.
4850 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
4851 TARGET_IMG_LDFLAGS_AC.
4852 (grub_CHECK_STACK_ARG_PROBE): New function.
4854 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
4856 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
4858 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
4859 to set TARGET_IMG_LD* accordingly.
4860 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
4861 Add call to grub_CHECK_STACK_ARG_PROBE.
4862 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
4864 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
4866 * genmk.rb: Add EXEEXT to CLEANFILES.
4868 2008-07-23 Robert Millan <rmh@aybabtu.com>
4870 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
4871 define the codes for arrows and lines used for the menu).
4872 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
4875 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
4876 fonts, because the latter are too slow.
4878 2008-07-21 Bean <bean123ch@gmail.com>
4880 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
4881 a20. Run keyboard test last, as it will cause macbook to halt.
4883 2008-07-18 Pavel Roskin <proski@gnu.org>
4885 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
4886 load foreign architecture modules correctly anyway. Keep
4887 support for loading host architecture modules, whether we
4888 compile them or not.
4890 2008-07-17 Pavel Roskin <proski@gnu.org>
4892 * configure.ac: Use -m32 or -m64 regardless of whether we had to
4893 change target_cpu. The compiler default can mismatch target_cpu
4896 * disk/efi/efidisk.c: Fix format warnings on x86_64.
4897 * kern/efi/efi.c: Likewise.
4899 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
4900 target compiler is functional.
4901 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
4904 * configure.ac: Default to efi platform for x86_64-apple. Allow
4905 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
4906 adjustments from the rest, only do them if target is not
4907 explicitly given. Merge other adjustments with the final sanity
4908 check. Remove an extraneous check for supported CPU. Be
4909 specific which CPU and which platform is not supported.
4911 * configure.ac: Default to pc platform for x86_64.
4913 2008-07-17 Robert Millan <rmh@aybabtu.com>
4915 Partial LinuxBIOS -> Coreboot rename.
4917 * conf/i386-linuxbios.rmk: Renamed to ...
4918 * conf/i386-coreboot.rmk: ... this.
4919 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
4920 * configure.ac: Accept "coreboot" as input platform (but maintain
4921 compatibility with "linuxbios").
4922 * include/grub/i386/linuxbios: Renamed to ...
4923 * include/grub/i386/coreboot: ... this.
4925 2008-07-17 Bean <bean123ch@gmail.com>
4927 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
4928 (appleldr_mod_SOURCE): New variable.
4929 (appleldr_mod_CFLAGS): Likewise.
4930 (appleldr_mod_LDFLAGS): Likewise.
4931 (pci_mod_SOURCES): Likewise.
4932 (pci_mod_CFLAGS): Likewise.
4933 (pci_mod_LDFLAGS): Likewise.
4934 (lspci_mod_SOURCES): Likewise.
4935 (lspci_mod_CFLAGS): Likewise.
4936 (lspci_mod_LDFLAGS): Likewise.
4938 * conf/x86_64-efi.rmk: New file.
4940 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
4942 (grub_efidisk_write): Likewise.
4944 * include/efi/api.h (efi_call_0): New macro.
4945 (efi_call_1): Likewise.
4946 (efi_call_2): Likewise.
4947 (efi_call_3): Likewise.
4948 (efi_call_4): Likewise.
4949 (efi_call_5): Likewise.
4950 (efi_call_6): Likewise.
4952 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
4953 grub_rescue_cmd_chainloader.
4955 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
4956 (grub_pe32_optional_header): Change some fields based on i386 or
4958 (GRUB_PE32_PE32_MAGIC): Likewise.
4960 * include/grub/efi/uga_draw.h: New file.
4962 * include/grub/elf.h (STN_ABS): New constant.
4963 (R_X86_64_NONE): Relocation constant for x86_64.
4964 (R_X86_64_64): Likewise.
4965 (R_X86_64_PC32): Likewise.
4966 (R_X86_64_GOT32): Likewise.
4967 (R_X86_64_PLT32): Likewise.
4968 (R_X86_64_COPY): Likewise.
4969 (R_X86_64_GLOB_DAT): Likewise.
4970 (R_X86_64_JUMP_SLOT): Likewise.
4971 (R_X86_64_RELATIVE): Likewise.
4972 (R_X86_64_GOTPCREL): Likewise.
4973 (R_X86_64_32): Likewise.
4974 (R_X86_64_32S): Likewise.
4975 (R_X86_64_16): Likewise.
4976 (R_X86_64_PC16): Likewise.
4977 (R_X86_64_8): Likewise.
4978 (R_X86_64_PC8): Likewise.
4980 * include/grub/i386/efi/pci.h: New file.
4982 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
4983 Change it value based on platform.
4984 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
4985 (GRUB_E820_RAM): Likewise.
4986 (GRUB_E820_RESERVED): Likewise.
4987 (GRUB_E820_ACPI): Likewise.
4988 (GRUB_E820_NVS): Likewise.
4989 (GRUB_E820_EXEC_CODE): Likewise.
4990 (GRUB_E820_MAX_ENTRY): Likewise.
4991 (grub_e820_mmap): New structure.
4992 (linux_kernel_header): Change the efi field according to different
4993 kernel version, also field from linux_kernel_header.
4995 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
4997 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
4998 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
4999 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
5000 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
5001 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
5002 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
5003 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
5004 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
5005 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
5006 (GRUB_PCI_ADDR_IO_MASK): Likewise.
5008 * include/grub/x86_64/efi/kernel.h: New file.
5010 * include/grub/x86_64/efi/loader.h: Likewise.
5012 * include/grub/x86_64/efi/machine.h: Likewise.
5014 * include/grub/x86_64/efi/pci.h: Likewise.
5016 * include/grub/x86_64/efi/time.h: Likewise.
5018 * include/grub/x86_64/linux.h: Likewise.
5020 * include/grub/x86_64/setjmp.h: Likewise.
5022 * include/grub/x86_64/time.h: Likewise.
5024 * include/grub/x86_64/types.h: Likewise.
5026 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
5027 GRUB_TARGET_SIZEOF_VOID_P.
5029 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
5030 (grub_efi_locate_handle): Likewise.
5031 (grub_efi_open_protocol): Likewise.
5032 (grub_efi_set_text_mode): Likewise.
5033 (grub_efi_stall): Likewise.
5034 (grub_exit): Likewise.
5035 (grub_reboot): Likewise.
5036 (grub_halt): Likewise.
5037 (grub_efi_exit_boot_services): Likewise.
5038 (grub_get_rtc): Likewise.
5040 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
5041 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
5042 (grub_efi_allocate_pages): Wrap efi calls.
5043 (grub_efi_free_pages): Wrap efi calls.
5044 (grub_efi_get_memory_map): Wrap efi calls.
5046 * kern/x86_64/dl.c: New file.
5048 * kern/x86_64/efi/callwrap.S: Likewise.
5050 * kern/x86_64/efi/startup.S: Likewise.
5052 * loader/efi/appleloader.c: Likewise.
5054 * loader/efi/chainloader.c (cmdline): New variable.
5055 (grub_chainloader_unload): Wrap efi calls.
5056 (grub_chainloader_boot): Likewise.
5057 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
5060 * loader/efi/chainloader_normal.c (chainloader_command):
5061 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
5064 * loader/i386/efi/linux.c (allocate_pages): Change allocation
5066 (grub_e820_add_region): New function.
5067 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
5069 (grub_find_video_card): New function.
5070 (grub_linux_setup_video): New function.
5071 (grub_rescue_cmd_linux): Probe for video information.
5073 * normal/x86_64/setjmp.S: New file.
5075 * term/efi/console.c (map_char): New function.
5076 (grub_console_putchar): Map unicode char.
5077 (grub_console_checkkey): Wrap efi calls.
5078 (grub_console_getkey): Likewise.
5079 (grub_console_getwh): Likewise.
5080 (grub_console_gotoxy): Likewise.
5081 (grub_console_cls): Likewise.
5082 (grub_console_setcolorstate): Likewise.
5083 (grub_console_setcursor): Likewise.
5085 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
5087 2008-07-16 Pavel Roskin <proski@gnu.org>
5089 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
5092 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
5093 pointer, not an integer. This fixes a warning and prevents
5094 precision loss on 64-bit systems.
5095 (relocate_addresses): Remove unneeded cast.
5097 2008-07-15 Pavel Roskin <proski@gnu.org>
5099 * kern/i386/ieee1275/init.c: Include grub/cache.h.
5101 * term/ieee1275/ofconsole.c: Disable code unused on i386.
5103 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
5104 Fix comparison between signed and unsigned.
5106 * include/grub/i386/ieee1275/console.h: Declare
5107 grub_console_init() and grub_console_fini().
5109 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
5110 It's empty and unused.
5112 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
5113 beginning to avoid warnings with some compilers.
5115 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
5116 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
5118 2008-07-14 Pavel Roskin <proski@gnu.org>
5120 * kern/env.c (grub_register_variable_hook): Don't copy empty
5121 string, it leaks memory. Pass "" to grub_env_set(), it should
5122 handle constant strings.
5124 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
5125 * commands/cmp.c (grub_cmd_cmp): Likewise.
5126 * kern/dl.c (grub_dl_flush_cache): Likewise.
5127 (grub_dl_load_core): Likewise.
5128 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
5129 (grub_elf64_load_phdrs): Likewise.
5131 2008-07-13 Pavel Roskin <proski@gnu.org>
5133 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
5134 between signed and unsigned.
5135 (LzmaEnc_Finish): Fix warning about an unused parameter.
5137 2008-07-13 Bean <bean123ch@gmail.com>
5139 * Makefile.in (enable_lzo): New rule.
5141 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
5143 * configure.ac (ENABLE_LZO): New option --enable-lzo.
5145 * boot/i386/pc/lnxboot.S: #include <config.h>.
5147 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
5148 its value according to the compression algorithm used, lzo or lzma.
5150 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
5151 compression algorithm according to configure macro.
5153 * kern/i386/pc/startup.S (codestart): Likewise.
5155 * kern/i386/pc/lzma_decode.S: New file.
5157 * include/grub/lib/LzFind.h: Likewise.
5159 * include/grub/lib/LzHash.h: Likewise.
5161 * include/grub/lib/LzmaDec.h: Likewise.
5163 * include/grub/lib/LzmaEnc.h: Likewise.
5165 * include/grub/lib/LzmaTypes.h: Likewise.
5167 * lib/LzFind.c: Likewise.
5169 * lib/LzmaDec.c: Likewise.
5171 * lib/LzmaEnc.c: Likewise.
5173 2008-07-13 Bean <bean123ch@gmail.com>
5175 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
5176 (grub_ext4_extent_header): New structure.
5177 (grub_ext4_extent): Likewise.
5178 (grub_ext4_extent_idx): Likewise.
5179 (grub_ext4_find_leaf): New function.
5180 (grub_ext2_read_block): Handle extents.
5182 2008-07-12 Robert Millan <rmh@aybabtu.com>
5184 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
5186 2008-07-11 Robert Millan <rmh@aybabtu.com>
5188 * util/grub.d/40_custom.in: New file. Example on how to add custom
5189 entries to /etc/grub.d.
5190 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
5191 40_custom (implicitly, by merging all the grub.d rules).
5193 2008-07-11 Pavel Roskin <proski@gnu.org>
5195 * commands/read.c (grub_getline): Fix invalid memory access.
5196 Don't add newline to the variable value.
5198 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
5199 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
5200 (serial_hw_get_port): Check validity of the port number.
5201 (grub_cmd_serial): Check return value of serial_hw_get_port().
5203 2008-07-07 Pavel Roskin <proski@gnu.org>
5205 * boot/i386/pc/diskboot.S (notification_string): Replace
5206 "Loading kernel" with just "loading". This is shorter, less
5207 confusing and saves a few bytes for possible future changes.
5209 2008-07-05 Pavel Roskin <proski@gnu.org>
5211 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
5212 size for ATAPI devices, they are undefined. Output sector
5213 number in decimal form.
5215 * disk/ata.c: Use named constants for status bits.
5217 2008-07-04 Pavel Roskin <proski@gnu.org>
5219 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
5220 grub_addr_t before casting it to the void pointer to fix a
5221 warning. Non-addressable regions are discarded earlier.
5222 (grub_arch_modules_addr): Cast _end to grub_addr_t.
5223 * kern/i386/linuxbios/table.c: Include grub/misc.h.
5224 (check_signature): Don't shadow table_header.
5225 (grub_linuxbios_table_iterate): Cast numeric constants to
5226 grub_linuxbios_table_header_t.
5227 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
5230 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
5233 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
5234 pointer, which can cause warnings. Support 64-bit addresses.
5236 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
5237 of sizeof(long). This fixes PowerPC image generation on x86_64.
5239 2008-07-04 Robert Millan <rmh@aybabtu.com>
5241 This fixes a performance issue when pc & gpt partmap iterators
5242 didn't abort iteration even after our hook found what it was
5243 looking for (often causing expensive probes of non-existent drives).
5245 Some callers relied on previous buggy behaviour, since they would
5246 raise an error when their own hooks caused early abortion of its
5249 * kern/device.c (grub_device_open): Improve error message.
5250 * disk/lvm.c (grub_lvm_open): Likewise.
5251 * disk/raid.c (grub_raid_open): Likewise.
5253 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
5254 when hook requests it, independently of grub_errno.
5255 (pc_partition_map_probe): Do not fail when find_func() caused
5256 early abortion of pc_partition_map_iterate().
5258 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
5259 when hook requests it, independently of grub_errno.
5260 (gpt_partition_map_probe): Do not fail when find_func() caused
5261 early abortion of gpt_partition_map_iterate().
5263 * kern/partition.c (grub_partition_iterate): Abort parent iteration
5264 when hook requests it, independently of grub_errno. Do not fail when
5265 part_map_iterate_hook() caused early abortion of p->iterate().
5267 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
5268 when grub_partition_iterate() returned with non-zero.
5270 2008-07-03 Pavel Roskin <proski@gnu.org>
5272 * disk/ata.c (grub_ata_pio_write): Check status before writing,
5273 like we do in grub_ata_pio_read().
5274 (grub_ata_readwrite): Always write individual sectors. Fix the
5275 sector count for the remainder.
5276 (grub_ata_write): Enable writing to ATA devices. Correctly
5277 report error for ATAPI devices.
5279 2008-07-02 Pavel Roskin <proski@gnu.org>
5281 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
5284 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
5285 for every read sector, we already increment it for the whole
5286 batch. This fixes reading more than 256 sectors at once.
5288 * util/grub-editenv.c (cmd_info): Cast argument to long
5289 explicitly. ptrdiff_t reduces to int on i386.
5291 * util/grub-editenv.c (main): Be specific which parameter is
5294 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
5295 (memdisk): Make memdisk_orig_addr a pointer.
5297 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
5298 for file offsets, use grub_off_t instead. Fix printf format
5301 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
5302 there. Real unexpected warnings should not drown in the noise
5303 about known problems.
5305 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
5306 grub_disk_addr_t for memory addresses.
5308 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
5309 explicitly to fix a warning.
5311 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
5313 * Makefile.in (MODULE_LDFLAGS): New variable.
5314 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
5315 the linker accepts --build-id=none.
5316 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
5318 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
5320 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
5321 those in Linux XFS code. Provide a way to access 64-bit parent
5323 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
5324 the end of struct grub_xfs_dir_header.
5326 2008-07-02 Bean <bean123ch@gmail.com>
5328 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
5329 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
5330 and GRUB_IEEE1275_FLAG_NO_ANSI.
5332 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
5333 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
5334 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
5336 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
5337 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
5339 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
5340 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
5342 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
5343 esc sequence on non ANSI terminal.
5344 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
5346 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
5349 2008-07-02 Bean <bean123ch@gmail.com>
5351 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
5352 (grub_editenv_SOURCES): New variable.
5353 (pkglib_MODULES): Add loadenv.mod.
5354 (loadenv_mod_SOURCES): New variable.
5355 (loadenv_mod_CFLAGS): Likewise.
5356 (loadenv_mod_LDFLAGS): Likewise.
5358 * include/grub/envblk.h: New file.
5360 * util/envblk.c: New file.
5362 * util/grub-editenv.c: New file.
5364 * commands/loadenv.c: New file.
5366 2008-07-01 Pavel Roskin <proski@gnu.org>
5368 * include/multiboot2.h (struct multiboot_tag_module): Use char,
5369 not unsigned char. This fixes warnings and is consistent with
5372 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
5374 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
5376 * term/tparm.c (analyze): Always set *popcount.
5378 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
5379 cast to fix a warning.
5381 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
5382 cast to suppress a warning.
5384 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
5385 grub_fshelp_read_file() expects.
5387 * fs/fat.c: Fix UUID calculation on big-endian systems. We
5388 write uuid as a 32-bit value in CPU byte order, so declare and
5391 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
5392 long if the format specifier expects it.
5393 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
5394 * partmap/pc.c (pc_partition_map_iterate): Likewise.
5395 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
5396 long to fix a warning.
5397 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
5398 grub_dprintf() arguments to fix warnings.
5400 2008-06-30 Pavel Roskin <proski@gnu.org>
5402 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
5403 install_bsd_part immediately before core.img is embedded or
5404 modified on disk. This fixes core.img verification if core.img
5407 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
5408 core_path to calculate the blocklist.
5409 Patch from Javier MartÃn <lordhabbit@gmail.com>
5411 2008-06-29 Robert Millan <rmh@aybabtu.com>
5413 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
5414 block to disk block.
5415 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
5416 Patch from Niels Böhm <bitbucket@arcor.de>
5418 2008-06-29 Robert Millan <rmh@aybabtu.com>
5420 * util/update-grub_lib.in (font_path): Search for fonts in
5421 /boot/grub first, which is more likely to be readable (we aren't
5422 deciding where fonts live, just looking for them).
5424 2008-06-26 Pavel Roskin <proski@gnu.org>
5426 * util/biosdisk.c (read_device_map): Don't leave dead map
5427 entries for devices failing stat() check.
5429 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
5430 core_path_dev for the core.img path on the target device.
5432 2008-06-26 Robert Millan <rmh@aybabtu.com>
5434 * disk/fs_uuid.c: New file.
5435 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
5436 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
5437 (fs_uuid_mod_LDFLAGS): New variables.
5438 * include/grub/disk.h (grub_disk_dev_id): Add
5439 `GRUB_DISK_DEVICE_UUID_ID'.
5440 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
5441 implement iterate().
5443 2008-06-26 Robert Millan <rmh@aybabtu.com>
5445 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
5446 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
5447 Linux image includes no initrd.
5449 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
5451 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
5452 call to resolve the core image location that effectively appended the
5455 2008-06-21 Robert Millan <rmh@aybabtu.com>
5457 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
5460 * util/grub.d/10_hurd.in: ... to here ...
5461 * util/grub.d/10_linux.in: ... and here.
5463 2008-06-19 Robert Millan <rmh@aybabtu.com>
5465 * kern/main.c (grub_main): Export `prefix' variable immediately
5466 after it has been set by grub_machine_set_prefix().
5468 2008-06-19 Robert Millan <rmh@aybabtu.com>
5470 * commands/search.c (search_label, search_fs_uuid, search_file): Print
5471 search result when not saving to variable, not the other way around.
5472 When saving to variable, abort iteration as soon as a match is found.
5474 2008-06-19 Robert Millan <rmh@aybabtu.com>
5476 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
5477 check for partition that provides /boot/grub. Its logic is flawed,
5478 as it prevents prepare_grub_to_access_device() from being called
5481 2008-06-19 Robert Millan <rmh@aybabtu.com>
5483 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
5484 "insmod" command directly when abstraction modules are needed,
5485 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
5486 since it had already been processed).
5488 2008-06-19 Pavel Roskin <proski@gnu.org>
5490 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
5491 changed. This is needed in case GRUB_LIBDIR changes.
5492 * conf/i386-ieee1275.rmk: Likewise.
5493 * conf/i386-linuxbios.rmk: Likewise.
5494 * conf/i386-pc.rmk: Likewise.
5495 * conf/powerpc-ieee1275.rmk: Likewise.
5497 2008-06-18 Pavel Roskin <proski@gnu.org>
5499 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
5500 kernel_elf_symlist.c to symlist.c for consistency with other
5501 architectures. Update all users.
5502 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
5504 2008-06-18 Robert Millan <rmh@aybabtu.com>
5506 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
5509 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
5510 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
5511 a RAID device, run setup() for all members independently on whether
5512 LVM abstraction is being used.
5513 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
5514 If grub-mkimage has set `*install_dos_part == -2', don't override this
5516 Perform *install_dos_part adjustments independently on whether
5517 we're embedding or not.
5518 Clarify error message when image is too big for embedding.
5519 Remove duplicate *install_dos_part stanza.
5521 2008-06-17 Robert Millan <rmh@aybabtu.com>
5523 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
5524 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
5526 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
5527 values in grub_ofconsole_normal_color and
5528 grub_ofconsole_highlight_color (they're not directly related to
5529 background and foreground).
5530 (grub_ofconsole_setcolorstate): Extract background and foreground
5531 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
5533 2008-06-17 Robert Millan <rmh@aybabtu.com>
5535 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
5536 /boot/grub for the check in last commit, not /boot (they could be
5537 different partitions).
5539 2008-06-16 Robert Millan <rmh@aybabtu.com>
5541 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
5542 asked to setup access for the same partition that provides /boot,
5543 don't bother using UUIDs since our root already has the value we
5546 2008-06-16 Robert Millan <rmh@aybabtu.com>
5548 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
5550 Patch from Sven Mueller <sven@debian.org>.
5552 2008-06-16 Robert Millan <rmh@aybabtu.com>
5554 * util/update-grub.in: Check for $EUID instead of $UID.
5555 Reported by Vincent Zweije.
5557 2008-06-16 Bean <bean123ch@gmail.com>
5559 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
5560 (grub_ext2_read_block): Likewise.
5561 (grub_ext2_read_inode): Likewise.
5562 (grub_ext2_mount): Likewise.
5563 (grub_ext2_close): Likewise.
5564 (grub_ext3_get_journal): Removed.
5566 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
5567 (grub_reiserfs_read_symlink): Likewise.
5568 (grub_reiserfs_mount): Likewise.
5569 (grub_reiserfs_open): Likewise.
5570 (grub_reiserfs_read): Likewise.
5571 (grub_reiserfs_close): Likewise.
5572 (grub_reiserfs_get_journal): Removed.
5574 * fs/fshelp.c (grub_fshelp_read): Removed.
5575 (grub_fshelp_map_block): Likewise.
5577 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
5578 (grub_fshelp_journal): Likewise.
5579 (grub_fshelp_read): Likewise.
5580 (grub_fshelp_map_block): Likewise.
5582 2008-06-16 Pavel Roskin <proski@gnu.org>
5584 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
5585 floating point anymore.
5586 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
5588 2008-06-15 Pavel Roskin <proski@gnu.org>
5590 * commands/ls.c (grub_ls_list_files): Use integer calculations
5591 for human readable format, avoid floating point use.
5592 * kern/misc.c (grub_ftoa): Remove.
5593 (grub_vsprintf): Remove floating point support.
5595 2008-06-15 Robert Millan <rmh@aybabtu.com>
5597 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
5599 Reported by Max Vozeler.
5601 2008-06-15 Robert Millan <rmh@aybabtu.com>
5603 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
5604 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
5606 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
5607 the beginning of the prefix.
5609 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
5610 It is assumed that if we have a memdisk, grub-mkimage has set
5611 grub_prefix to include the "(memdisk)" drive in it.
5613 2008-06-15 Robert Millan <rmh@aybabtu.com>
5615 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
5616 Initialize keyboard controller after registering the terminal, so that
5617 grub_printf() can be called from grub_keyboard_controller_init().
5619 2008-06-15 Robert Millan <rmh@aybabtu.com>
5621 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
5622 extent-btree which is written as big endian on disk.
5623 Reported by Alain Greppin <al@chilibi.org>.
5625 2008-06-14 Robert Millan <rmh@aybabtu.com>
5627 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
5628 * util/i386/pc/grub-install.in (modules): Likewise.
5630 2008-06-13 Pavel Roskin <proski@gnu.org>
5632 * commands/ls.c (grub_ls_list_files): Fix format warnings.
5634 2008-06-13 Bean <bean123ch@gmail.com>
5636 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
5638 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
5640 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
5641 to indicate sparse block.
5643 2008-06-12 Pavel Roskin <proski@gnu.org>
5645 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
5646 number, grub_fshelp_read() does it for us.
5648 * fs/fshelp.c (grub_fshelp_read): New function. Implement
5649 linear disk read with journal translation.
5650 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
5651 * include/grub/fshelp.h: Declare grub_fshelp_read().
5653 2008-06-09 Pavel Roskin <proski@gnu.org>
5655 * fs/minix.c (grub_minix_mount): Handle error reading
5658 2008-06-08 Robert Millan <rmh@aybabtu.com>
5660 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
5661 don't append the RAID prefix afterwards.
5662 Reported by Clint Adams.
5664 2008-06-08 Robert Millan <rmh@aybabtu.com>
5666 Based on description from Pavel:
5667 * kern/disk.c (grub_disk_check_range): Rename to ...
5668 (grub_disk_adjust_range): ... this. Add a comment explaining the
5669 tasks performed by this function.
5671 2008-06-08 Robert Millan <rmh@aybabtu.com>
5673 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
5674 `num_serial' (for consistency with other variables).
5675 (struct grub_ntfs_data): Add `uuid' member.
5676 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
5677 (grub_ntfs_uuid): New function.
5678 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
5680 2008-06-07 Pavel Roskin <proski@gnu.org>
5682 * util/biosdisk.c (open_device): Revert last change to the
5683 function, it broke installation. The sector needs to be
5684 different dependent on which device is opened.
5686 2008-06-06 Robert Millan <rmh@aybabtu.com>
5688 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
5689 rest of GRUB, and breakage doesn't happen if its value were modified.
5691 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
5692 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
5693 a constant (same value).
5694 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
5695 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
5697 2008-06-06 Robert Millan <rmh@aybabtu.com>
5699 * util/biosdisk.c (open_device): Do not modify sector offset when
5700 accessing a partition. kern/disk.c already handles this for us.
5702 2008-06-06 Robert Millan <rmh@aybabtu.com>
5704 * util/grub-emu.c (grub_machine_init): Move code in this function from
5706 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
5707 segfault in case grub_printf() is called).
5709 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
5710 grub_probe. Update all users not to explicitly add it again.
5711 (grub_device): New variable; contains corresponding device for grubdir.
5712 (fs_module, partmap_module, devabstraction_module): Pass
5713 `--device ${grub_device}' to grub_probe to avoid traversing /dev
5716 2008-06-05 Robert Millan <rmh@aybabtu.com>
5718 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
5719 is found, print it (same layout as with labels).
5721 2008-06-04 Robert Millan <rmh@aybabtu.com>
5723 * util/biosdisk.c (get_drive): Rename to ...
5724 (find_grub_drive): ... this. Update all users.
5726 (get_os_disk): Rename to ...
5727 (convert_system_partition_to_system_disk): ... this. Update all users.
5729 (find_drive): Rename to ...
5730 (find_system_device): ... this. Update all users.
5732 2008-06-04 Robert Millan <rmh@aybabtu.com>
5734 * util/biosdisk.c (get_os_disk): Handle IDA devices.
5735 * util/grub-mkdevicemap.c (get_mmc_disk_name)
5736 (make_device_map): Likewise.
5738 2008-06-01 Robert Millan <rmh@aybabtu.com>
5740 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
5741 before dereferencing it.
5743 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
5744 union with fat12/fat16-specific ones. Add some new fields, including
5745 `num_serial' for both versions.
5746 (struct grub_fat_data): Add `uuid' member.
5747 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
5748 names. Initialize `data->uuid' using `num_serial'.
5749 (grub_fat_uuid): New function.
5750 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
5752 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
5753 (grub_reiserfs_uuid): New function.
5754 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
5757 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
5758 (grub_xfs_uuid): New function.
5759 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
5761 2008-06-01 Robert Millan <rmh@aybabtu.com>
5763 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
5764 code that is backward compatible with pre-uuid search command.
5766 2008-05-31 Robert Millan <rmh@aybabtu.com>
5768 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
5769 floppies after everything else, to ensure floppy drive isn't accessed
5770 unnecessarily (patch from Bean).
5772 2008-05-31 Robert Millan <rmh@aybabtu.com>
5774 * commands/search.c (search_label, search_fs_uuid, search_file): Do
5775 not print device names when we were asked to set a variable.
5777 2008-05-31 Robert Millan <rmh@aybabtu.com>
5779 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
5780 using "cursor-on" and "cursor-off" commands (understood at least by
5781 the Open Firmware flavour on OLPC).
5783 2008-05-31 Michael Gorven <michael@gorven.za.net>
5785 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
5786 on and off sequences.
5788 2008-05-31 Robert Millan <rmh@aybabtu.com>
5790 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
5791 * util/update-grub.in: Likewise.
5793 2008-05-30 Pavel Roskin <proski@gnu.org>
5795 * util/biosdisk.c (linux_find_partition): Simplify logic and
5796 make the code more universal. Keep special processing for
5797 devfs, but use a simple rule for all other devices. If the
5798 device ends with a number, append 'p' and the partition number.
5799 Otherwise, append only the partition number.
5801 2008-05-30 Robert Millan <rmh@aybabtu.com>
5803 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
5804 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
5805 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
5806 the `root' parameter to Linux.
5808 2008-05-30 Robert Millan <rmh@aybabtu.com>
5810 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
5811 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
5812 --fs_uuid with --fs-uuid.
5813 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
5814 all filesystems support them).
5816 2008-05-30 Robert Millan <rmh@aybabtu.com>
5818 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
5819 grub_printf() flags, since we're printing in units of 2 bytes.
5821 2008-05-30 Robert Millan <rmh@aybabtu.com>
5823 * util/grub.d/00_header.in: Remove obsolete comment referencing
5824 convert_system_path_to_grub_path().
5825 * util/update-grub.in: Likewise.
5826 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
5827 (convert_system_path_to_grub_path): Add a warning message explaining
5828 that this function is deprecated. Rely on is_path_readable_by_grub()
5829 for the readability checks.
5830 (font_path): Use is_path_readable_by_grub() for the readability
5831 check rather than convert_system_path_to_grub_path().
5833 2008-05-30 Robert Millan <rmh@aybabtu.com>
5835 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
5836 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
5837 converting it first.
5838 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
5839 grub.cfg for access to font file, and afterwards call it again to set
5842 2008-05-30 Robert Millan <rmh@aybabtu.com>
5844 * commands/search.c (options): Add --fs_uuid option.
5845 (search_fs_uuid): New function.
5846 (grub_cmd_search): Fix --set argument passing.
5847 Use search_fs_uuid() when requested via --fs_uuid.
5848 (grub_search_init): Update help message.
5849 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
5850 and redeclare it as an array of 16-bit words.
5851 (grub_ext2_uuid): New function.
5852 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
5853 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
5854 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
5855 (GRUB_DEVICE_BOOT_UUID): New variables.
5856 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
5857 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
5859 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
5860 just assume `root' variable has the right value.
5861 * util/grub.d/10_linux.in: Likewise.
5862 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
5864 (main): Recognise `-t fs_uuid' argument.
5866 2008-05-30 Robert Millan <rmh@aybabtu.com>
5868 * util/biosdisk.c (map): Redefine structure to hold information
5869 about GRUB drive name.
5870 (get_drive): Reimplement without assuming (and verifying) BIOS-like
5872 (call_hook): Remove.
5873 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
5874 member. Assume drive has partitions.
5875 (grub_util_biosdisk_open): Access device names via `.device' struct
5877 (open_device): Likewise.
5878 (find_drive): Likewise.
5879 (read_device_map): Adjust map[] usage to match the new struct
5880 definition. Don't check for duplicates (still possible, but not cheap
5882 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
5883 (make_device_name): Remove assumption of BIOS-like drive names.
5885 2008-05-30 Pavel Roskin <proski@gnu.org>
5887 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
5888 compiling execute.c doesn't need grub_script.tab.h anymore.
5889 (normal/command.c_DEPENDENCIES): Likewise.
5890 (normal/function.c_DEPENDENCIES): Likewise.
5891 * conf/i386-ieee1275.rmk: Likewise.
5892 * conf/i386-linuxbios.rmk: Likewise.
5893 * conf/i386-pc.rmk: Likewise.
5894 * conf/powerpc-ieee1275.rmk: Likewise.
5895 * conf/sparc64-ieee1275.rmk: Likewise.
5897 2008-05-29 Pavel Roskin <proski@gnu.org>
5899 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
5900 when scanning metadata for volume group name.
5902 * include/grub/script.h: Don't include grub_script.tab.h. It's
5903 a generated file, which may only be included from the files with
5904 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
5905 use union YYSTYPE, as the later allows forward declaration.
5906 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
5908 2008-05-29 Robert Millan <rmh@aybabtu.com>
5910 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
5911 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
5912 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
5913 (grub_console_checkkey): Add grub_dprintf() call to report unknown
5916 2008-05-29 Robert Millan <rmh@aybabtu.com>
5918 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
5919 control key combinations.
5921 2008-05-29 Robert Millan <rmh@aybabtu.com>
5923 * util/powerpc/ieee1275/grub-install.in: Move from here ...
5924 * util/ieee1275/grub-install.in: ... to here.
5925 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
5926 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
5927 (grub_install_SOURCES): Likewise.
5929 2008-05-29 Robert Millan <rmh@aybabtu.com>
5931 * fs/affs.c: Update copyright year.
5932 * fs/ext2.c: Likewise.
5933 * fs/fshelp.c: Likewise.
5934 * fs/hfsplus.c: Likewise.
5935 * fs/ntfs.c: Likewise.
5936 * fs/xfs.c: Likewise.
5937 * include/grub/fshelp.h: Likewise.
5938 * util/grub-mkdevicemap.c: Likewise.
5940 2008-05-28 Robert Millan <rmh@aybabtu.com>
5942 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
5943 might need to be fatfs to support some firmware implementations
5946 2008-05-28 Robert Millan <rmh@aybabtu.com>
5948 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
5950 * util/grub-mkdevicemap.c (get_mmc_disk_name)
5951 (make_device_map): Likewise.
5953 2008-05-20 Bean <bean123ch@gmail.com>
5955 * fs/fshelp.c (grub_fshelp_map_block): New function.
5956 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
5957 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
5959 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
5960 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
5961 (grub_fshelp_journal): New structure.
5962 (grub_fshelp_map_block): New function prototype.
5963 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
5964 (grub_fshelp_map_block): Likewise.
5966 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
5967 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
5968 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
5969 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
5970 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
5971 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
5972 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
5973 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
5974 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
5975 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
5976 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
5977 (grub_ext2_sblock): New members for journal support.
5978 (grub_ext3_journal_header): New structure.
5979 (grub_ext3_journal_revoke_header): Likewise.
5980 (grub_ext3_journal_block_tag): Likewise.
5981 (grub_ext3_journal_sblock): Likewise.
5982 (grub_fshelp_node): New members logfile and journal.
5983 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
5984 grub_fshelp_map_block to get real block number.
5985 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
5987 (grub_ext2_read_inode): Likewise.
5988 (grub_ext3_get_journal): New function.
5989 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
5990 (grub_ext2_close): Release memory used by journal.
5992 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
5993 (REISERFS_MAGIC_DESC_BLOCK): New macro.
5994 (grub_reiserfs_transaction_header): Renamed to
5995 grub_reiserfs_description_block, replace field data with real_blocks.
5996 (grub_reiserfs_commit_block): New structure.
5997 (grub_reiserfs_data): New member journal.
5998 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
6000 (grub_reiserfs_read_symlink): Likewise.
6001 (grub_reiserfs_iterate_dir): Likewise.
6002 (grub_reiserfs_open): Likewise.
6003 (grub_reiserfs_read): Likewise.
6004 (grub_reiserfs_get_journal): New function.
6005 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
6006 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
6007 using grub_reiserfs_get_journal.
6008 (grub_reiserfs_close): Release memory used by journal.
6010 * fs/affs.c (grub_affs_read_block): Change block type to
6011 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
6013 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
6015 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
6017 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
6019 * fs/udf.c (grub_udf_read_block): Change block type to
6020 grub_disk_addr_t. Use type cast to avoid warning.
6022 * fs/xfs.c (grub_xfs_read_block): Likewise.
6024 2008-05-16 Christian Franke <franke@computer.org>
6026 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
6027 to ensure that break with ESC will always work.
6028 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
6029 Remove ESC from keyboard queue.
6031 2008-05-16 Christian Franke <franke@computer.org>
6033 * util/biosdisk.c: [__CYGWIN__] Add includes.
6034 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
6035 (get_os_disk): Move variable declarations to OS specific
6036 parts to avoid warning.
6037 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
6038 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
6039 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
6041 * util/getroot.c: [__CYGWIN__] Add includes.
6042 (strip_extra_slashes): Fix "/" case.
6043 [__CYGWIN__] (get_win32_path): New function.
6044 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
6045 [__CYGWIN__] (find_root_device): Disable.
6046 [__CYGWIN__] (get_bootsec_serial): New function.
6047 [__CYGWIN__] (find_cygwin_root_device): Likewise.
6048 [__linux__] (grub_guess_root_device): Add early returns to simplify
6050 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
6051 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
6052 check for Linux only.
6054 2008-05-15 Bean <bean123ch@gmail.com>
6056 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
6057 keyboard hang problem in apple's intel mac.
6059 2008-05-09 Robert Millan <rmh@aybabtu.com>
6061 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
6063 * util/grub-mkdevicemap.c (get_virtio_disk_name)
6064 (make_device_map): Likewise.
6065 Reported by Aurelien Jarno <aurel32@debian.org>
6067 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
6069 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
6070 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
6071 (make_device_map): Output entries for xvd type disks.
6073 2008-05-07 Robert Millan <rmh@aybabtu.com>
6075 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
6077 * util/grub-mkdevicemap.c (get_cciss_disk_name)
6078 (make_device_map): Likewise.
6079 Reported by Roland Dreier <rdreier@cisco.com>
6081 2008-05-07 Robert Millan <rmh@aybabtu.com>
6083 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
6084 grub_strstr() call. Correct a few mistakes in failure path handling.
6086 2008-05-06 Robert Millan <rmh@aybabtu.com>
6088 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
6089 Do not print a trailing slash (therefore, the root directory is an
6091 (convert_system_path_to_grub_path): Do not remove trailing slash
6092 from make_system_path_relative_to_its_root() output.
6094 * util/i386/pc/grub-install.in: Add trailing slash to output from
6095 make_system_path_relative_to_its_root().
6097 2008-05-06 Robert Millan <rmh@aybabtu.com>
6099 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
6100 ensures that output lines aren't intermangled with those sent to
6101 stderr (via grub_util_info()).
6102 * util/grub-probe.c (grub_refresh): Likewise.
6103 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
6105 2008-05-05 Christian Franke <franke@computer.org>
6107 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
6108 Add Cygwin device names.
6109 (get_ide_disk_name) [__CYGWIN__]: Likewise.
6110 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
6111 (check_device): Return error instead of success on empty name.
6112 (make_device_map): Move label inside linux specific code to
6113 prevent compiler warning.
6115 2008-04-30 Robert Millan <rmh@aybabtu.com>
6117 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
6118 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
6120 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
6122 2008-04-29 Robert Millan <rmh@aybabtu.com>
6124 * docs/grub.cfg: New file (example GRUB configuration).
6126 2008-04-26 Robert Millan <rmh@aybabtu.com>
6128 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
6129 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
6130 and `disk/ieee1275/nand.c'.
6132 2008-04-25 Bean <bean123ch@gmail.com>
6134 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
6137 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
6138 change the buffer size to 4096 for cdrom device.
6140 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
6142 (_linux_mod_SOURCES): New variable.
6143 (_linux_mod_CFLAGS): Likewise.
6144 (_linux_mod_LDFLAGS): Likewise.
6145 (linux_mod_SOURCES): Likewise.
6146 (linux_mod_CFLAGS): Likewise.
6147 (linux_mod_LDFLAGS): Likewise.
6148 (nand_mod_SOURCES): Likewise.
6149 (nand_mod_CFLAGS): Likewise.
6150 (nand_mod_LDFLAGS): Likewise.
6152 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
6153 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
6154 type property. (nand device in olpc don't have this property)
6156 * include/grub/disk.h (grub_disk_dev_id): New macro
6157 GRUB_DISK_DEVICE_NAND_ID.
6159 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
6161 (grub_rescue_cmd_initrd): Likewise.
6163 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
6164 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
6165 ofw_cif_handler and ofw_idt, adjust padding number.
6167 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
6168 GRUB_MACHINE_IEEE1275 is defined.
6170 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
6171 Use NESTED_FUNC_ATTR attribute on the hook parameter.
6173 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
6174 on nested function heap_init.
6175 (grub_upper_mem): New variable for i386-ieee1275.
6176 (grub_get_extended_memory): New function for i386-ieee1275.
6177 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
6179 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
6180 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
6183 * loader/i386/ieee1275/linux.c: New file.
6185 * loader/i386/ieee1275/linux_normal.c: New file.
6187 * disk/ieee1275/nand.c: New file.
6189 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
6191 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
6193 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
6195 2008-04-18 Robert Millan <rmh@aybabtu.com>
6197 Restructures early code path on ieee1275 to unify grub_main() as
6198 the first C function that is executed in every platform.
6200 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
6201 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
6203 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
6204 * kern/ieee1275/cmain.c (cmain): Rename to ...
6205 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
6206 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
6209 2008-04-18 Robert Millan <rmh@aybabtu.com>
6211 * util/update-grub.in: Fix syntax error when setting
6212 `GRUB_PRELOAD_MODULES'.
6213 Reported by Stephane Chazelas <stephane@artesyncp.com>
6215 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
6217 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
6218 section into account, newer toolchains generate unique build ids
6219 * configure.ac: remove the test for --build-id=none acceptance,
6220 we want build ids to be preserved
6221 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
6222 far from other sections don't cause the raw binary images grow
6225 2008-04-15 Robert Millan <rmh@aybabtu.com>
6227 * disk/lvm.c: Update copyright year.
6228 * kern/misc.c: Likewise.
6230 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
6232 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
6233 there is no memory left for physical volume name.
6235 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
6237 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
6238 volume name mapping to support bigger than 9 character names properly.
6240 2008-04-13 Robert Millan <rmh@aybabtu.com>
6242 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
6243 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
6245 2008-04-13 Christian Franke <franke@computer.org>
6247 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
6248 to create a floppy emulation boot CD when non emulation mode
6250 Enable Joliet CD filesystem extension.
6252 2008-04-13 Robert Millan <rmh@aybabtu.com>
6254 * kern/misc.c (grub_strncat): Fix off-by-one error.
6255 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
6257 * kern/env.c (grub_env_context_close): Clear current context, not
6259 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
6261 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
6263 2008-04-13 Robert Millan <rmh@aybabtu.com>
6265 Improve robustness when handling LVM.
6267 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
6268 (and leave `*p' unmodified).
6269 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
6271 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
6272 iterating through it.
6273 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
6275 (grub_lvm_scan_device): Check the return value (and fail gracefully
6276 when due) on each grub_lvm_getvalue() or grub_strstr() call.
6277 Don't assume `vg->pvs != NULL' when iterating through it.
6279 2008-04-13 Robert Millan <rmh@aybabtu.com>
6281 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
6282 * genmk.rb (partmap): New variable.
6283 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
6284 (#{partmap}): New target rule.
6285 * genpartmaplist.sh: New file.
6286 * Makefile.in (pkglib_DATA): Add partmap.lst.
6287 (partmap.lst): New target rule.
6288 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
6289 modules (including all partition maps), instead of preloading them.
6291 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
6293 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
6294 `linux-boot-prober' (if installed) to detect other operating
6295 systems which are installed on the computer and add them to
6297 * conf/common.rmk: Build and install 30_os-prober.
6299 2008-04-12 Robert Millan <rmh@aybabtu.com>
6301 * kern/powerpc/ieee1275/init.c: Move from here ...
6302 * kern/ieee1275/init.c: ... to here. Update all users.
6304 * kern/powerpc/ieee1275/cmain.c: Move from here ...
6305 * kern/ieee1275/cmain.c: ... to here. Update all users.
6307 * kern/powerpc/ieee1275/openfw.c: Move from here ...
6308 * kern/ieee1275/openfw.c: ... to here. Update all users.
6310 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
6311 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
6313 2008-04-10 Pavel Roskin <proski@gnu.org>
6315 * configure.ac: Always use "_cv_" in cache variables for
6316 compatibility with Autoconf 2.62.
6318 2008-04-07 Robert Millan <rmh@aybabtu.com>
6320 Revert grub/machine/init.h addition by Pavel (since it breaks on
6321 i386-ieee1275 and others):
6322 * util/i386/pc/misc.c: Remove grub/machine/init.h.
6323 * util/powerpc/ieee1275/misc.c: Likewise.
6325 2008-04-07 Robert Millan <rmh@aybabtu.com>
6327 * util/grub-probe.c (probe): Improve error message.
6329 2008-04-07 Robert Millan <rmh@aybabtu.com>
6331 * util/biosdisk.c (read_device_map): Skip devices that don't exist
6332 (this prevents the presence of a bogus entry from ruining the whole
6335 2008-04-06 Pavel Roskin <proski@gnu.org>
6337 * util/biosdisk.c: Include grub/util/biosdisk.h.
6338 * util/grub-fstest.c (execute_command): Make static.
6339 * util/grub-mkdevicemap.c (check_device): Likewise.
6340 * util/i386/pc/misc.c: Include grub/machine/init.h.
6341 * util/powerpc/ieee1275/misc.c: Likewise.
6342 * util/lvm.c: Include grub/util/lvm.h.
6343 * util/misc.c: Include grub/kernel.h, grub/misc.h and
6345 * util/raid.c: Include grub/util/raid.h.
6346 (grub_util_getdiskname): Make static.
6348 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
6349 grub_hostfs_fini(), as they are called from grub_init_all() and
6350 grub_fini_all() respectively. This fixes an infinite loop in
6351 grub-fstest due to double registration of hostfs.
6352 Reported by Christian Franke <Christian.Franke@t-online.de>
6354 2008-04-05 Pavel Roskin <proski@gnu.org>
6356 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
6357 all 8 functions. Otherwise, probe function 0 only.
6359 2008-04-04 Pavel Roskin <proski@gnu.org>
6361 * commands/lspci.c (grub_lspci_iter): Print the bus number
6364 * commands/lspci.c (grub_pci_classes): Fix typos.
6365 (grub_lspci_iter): Don't print func twice. Print vendor ID
6366 before device ID, as it's normally done.
6368 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
6369 Fix signedness warnings.
6370 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
6372 * util/ieee1275/get_disk_name.c: Include config.h so that
6373 _GNU_SOURCE is defined and getline() is declared. Mark an
6374 unused argument as such. Fix a signedness warning.
6376 2008-04-02 Pavel Roskin <proski@gnu.org>
6378 * genkernsyms.sh.in: Use more robust assignments for CC and
6379 srcdir. Quote srcdir.
6380 * gensymlist.sh.in: Likewise. Assert at the compile time that
6381 the symbol table is not empty.
6383 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
6384 * fs/cpio.c (grub_cpio_read): Likewise.
6386 2008-04-01 Pavel Roskin <proski@gnu.org>
6388 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
6389 * disk/host.c (grub_host_open): Likewise.
6390 * disk/loopback.c (grub_loopback_open): Likewise.
6391 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
6392 disk->id as in disk/host.c, not a multi-character constant.
6394 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
6395 later is obsolete, potentially dangerous and sets a bad example.
6396 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
6397 * util/misc.c (grub_util_get_image_size): Likewise.
6399 * disk/loopback.c (options): Improve help for "--partitions".
6401 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
6402 options to align them with the short options, e.g. "echo -e".
6404 2008-03-31 Bean <bean123ch@gmail.com>
6406 * video/reader/png.c (grub_png_data): New member is_16bit and
6408 (grub_png_decode_image_header): Detect 16 bit png image.
6409 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
6410 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
6411 (grub_video_reader_png): Release memory occupied by image_data.
6413 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
6415 (grub_nfs_mount): Skip the test for sector per cluster.
6417 * include/grub/ntfs.h (MAX_SPC): Removed.
6419 2008-03-31 Bean <bean123ch@gmail.com>
6421 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
6422 (grub_probe_SOURCES): Add fs/afs.c.
6423 (grub_fstest_SOURCES): Likewise.
6424 (afs_mod_SOURCES): New variable.
6425 (afs_mod_CFLAGS): Likewise.
6426 (afs_mod_LDFLAGS): Likewise.
6428 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
6429 (grub_emu_SOURCES): Likewise.
6431 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6433 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6435 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
6437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6439 * fs/afs.c: New file.
6441 2008-03-30 Pavel Roskin <proski@gnu.org>
6443 * disk/host.c: Include grub/misc.h to fix a warning.
6444 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
6445 warnings about implicit declarations.
6447 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
6449 * include/grub/i386/loader.h: Change declaration of
6450 grub_linux_boot() to match what grub_loader_set() expects.
6451 * util/getroot.c (grub_guess_root_device): Return const char* to
6453 * util/grub-probe.c (probe): Fix a warning about uninitialized
6454 abstraction_name variable.
6455 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
6456 second argument as unused to fix a warning.
6458 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
6459 missing grub_error() call.
6461 * util/update-grub_lib.in: Define datarootdir, since Autoconf
6462 2.60 and newer uses it to define datadir.
6464 * commands/sleep.c: Fix warning about implicit declaration.
6465 * disk/memdisk.c: Likewise.
6466 * loader/aout.c: Likewise.
6467 * loader/i386/bsd_normal.c: Likewise.
6468 * util/grub-probe.c: Likewise.
6470 * commands/i386/cpuid.c (has_longmode): Make static.
6471 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
6472 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
6474 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
6475 GDT. This is more robust, as %ds can change.
6476 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
6477 calling real_to_prot().
6478 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
6480 2008-03-28 Pavel Roskin <proski@gnu.org>
6482 * kern/i386/pc/startup.S: Assert that uncompressed functions
6483 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
6484 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
6485 code, as they push parts of the code (error handlers) beyond
6486 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
6487 code as correctness and size.
6489 2008-03-28 Pavel Roskin <proski@gnu.org>
6491 * kern/i386/pc/startup.S
6492 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
6493 data block address to the real mode, keep offset minimal. This
6494 works around a bug in AWARD BIOS on old Athlon systems, which
6495 makes CD detection hang.
6497 2008-03-26 Pavel Roskin <proski@gnu.org>
6499 * normal/color.c (grub_parse_color_name_pair): Make `name' a
6501 * include/grub/normal.h: Add grub_parse_color_name_pair()
6504 2008-03-24 Bean <bean123ch@gmail.com>
6506 * disk/i386/pc/biosdisk.c (cd_start): Removed.
6507 (cd_count): Removed.
6508 (cd_drive): New variable.
6509 (grub_biosdisk_get_drive): Don't check for (cdN) device.
6510 (grub_biosdisk_call_hook): Likewise.
6511 (grub_biosdisk_iterate): Change cdrom detection method.
6512 (grub_biosdisk_open): Replace cd_start with cd_drive.
6513 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
6514 detect cdrom device.
6516 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
6518 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
6519 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
6520 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
6521 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
6522 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
6523 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
6524 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
6525 (grub_biosdisk_cdrp): New structure.
6526 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
6528 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
6530 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
6533 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
6536 2008-03-20 Robert Millan <rmh@aybabtu.com>
6538 Remove 2 TiB limit in ata.mod.
6539 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
6540 (grub_ata_dumpinfo): Print sector count with 0x%llx.
6541 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
6542 grub_uint64_t instead of grub_uint32_t.
6544 2008-03-05 Bean <bean123ch@gmail.com>
6546 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
6547 (grub_multiboot): Set boot device.
6549 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
6551 2008-03-02 Bean <bean123ch@gmail.com>
6553 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
6556 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
6558 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
6561 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
6564 * docs/fdl.texi: New file.
6566 * docs/mdate-sh: New file. Copied from gnulib.
6567 * docs/texinfo.tex: Likewise.
6569 * config.guess: Updated from gnulib.
6570 * install-sh: Likewise.
6572 2008-02-28 Robert Millan <rmh@aybabtu.com>
6574 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
6575 (aout_mod_SOURCES): New variable.
6576 (aout_mod_CFLAGS): Likewise.
6577 (aout_mod_LDFLAGS): Likewise.
6579 * conf/i386-ieee1275.rmk: Likewise.
6581 2008-02-28 Robert Millan <rmh@aybabtu.com>
6583 * util/update-grub.in: Reorganise terminal validity check. Accept
6584 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
6585 Based on suggestion by Franklin PIAT.
6587 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
6589 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
6591 * util/getroot.c (grub_util_check_block_device): New function that
6592 returns the given argument if it is a block device and returns NULL else.
6593 * util/grub-probe.c (argument_is_device): New variable.
6594 (probe): Promote device_name from a variable to an argument. Receive
6595 device_name from grub_util_check_block_device() if path is NULL and from
6596 grub_guess_root_device() else. Do not free() device_name anymore.
6597 (options): Introduce new parameter '-d, --device'.
6598 (main): Add description of the new parameter to the help screen.
6599 Rename path variable to argument. Set argument_is_device if the '-d'
6600 option is given. Pass argument to probe() depending on
6603 2008-02-24 Bean <bean123ch@gmail.com>
6605 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
6606 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
6607 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
6608 (GRUB_ISO9660_VOLDESC_PART): Likewise.
6609 (GRUB_ISO9660_VOLDESC_END): Likewise.
6610 (grub_iso9660_primary_voldesc): New member escape.
6611 (grub_iso9660_data): New member joliet.
6612 (grub_iso9660_convert_string): New function.
6613 (grub_iso9660_mount): Detect joliet extension.
6614 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
6615 (grub_iso9660_iso9660_label): Likewise.
6617 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
6618 (grub_setup_SOURCES): Add fs/udf.c.
6619 (grub_fstest_SOURCES): Likewise.
6620 (udf_mod_SOURCES): New variable.
6621 (udf_mod_CFLAGS): Likewise.
6622 (udf_mod_LDFLAGS): Likewise.
6624 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
6625 (grub_emu_SOURCES): Likewise.
6627 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6629 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6631 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
6633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6635 * fs/udf.c: New file.
6637 2008-02-24 Robert Millan <rmh@aybabtu.com>
6639 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
6640 (normal/lexer.c_DEPENDENCIES): New variables.
6641 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
6642 (normal/lexer.c_DEPENDENCIES): Likewise.
6643 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
6644 (normal/lexer.c_DEPENDENCIES): Likewise.
6645 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
6646 (normal/lexer.c_DEPENDENCIES): Likewise.
6647 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
6648 (normal/lexer.c_DEPENDENCIES): Likewise.
6649 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
6650 (normal/lexer.c_DEPENDENCIES): Likewise.
6652 2008-02-23 Robert Millan <rmh@aybabtu.com>
6654 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
6655 since they were intended to be in hex. This didn't break previously
6656 because of a bug in gpt_partition_map_iterate() (see below).
6658 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
6659 when checking the validity of GPT header.
6660 Remove `partno', since it always provides the same information as `i'.
6662 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
6664 * include/grub/efi/time.h: Fix a wrong comment.
6666 2008-02-19 Pavel Roskin <proski@gnu.org>
6668 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
6671 2008-02-19 Bean <bean123ch@gmail.com>
6673 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
6674 (aout_mod_SOURCES): New variable.
6675 (aout_mod_CFLAGS): Likewise.
6676 (aout_mod_LDFLAGS): Likewise.
6677 (_bsd_mod_SOURCES): New variable.
6678 (_bsd_mod_CFLAGS): Likewise.
6679 (_bsd_mod_LDFLAGS): Likewise.
6680 (bsd_mod_SOURCES): New variable.
6681 (bsd_mod_CFLAGS): Likewise.
6682 (bsd_mod_LDFLAGS): Likewise.
6684 * include/grub/aout.h: New file.
6686 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
6688 * include/grub/i386/bsd.h: New file.
6690 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
6693 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
6694 function is called, so that it's possible to change it inside the hook.
6695 (grub_elf64_load): Likewise.
6696 (grub_elf_file): Don't close the file if elf header is not found.
6697 (grub_elf_close): Close the file if grub_elf_file fails (The new
6698 grub_elf_file won't close it).
6699 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
6700 (grub_elf64_size): Likewise.
6702 * kern/i386/loader.S (grub_unix_real_boot): New function.
6704 * loader/aout.c: New file.
6706 * loader/i386/bsd.c: New file.
6708 * loader/i386/bsd_normal.c: New file.
6710 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
6712 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
6713 can test other formats.
6715 2008-02-19 Robert Millan <rmh@aybabtu.com>
6717 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
6718 (grub_gpt_partition_type_empty): Redefine with macro from
6719 `<grub/gpt_partition.h>'.
6720 (gpt_partition_map_iterate): Adjust partition type comparison.
6722 Export `entry' as partmap-specific `part.data' struct.
6723 (grub_gpt_header, grub_gpt_partentry): Move from here ...
6725 * include/grub/gpt_partition.h (grub_gpt_header)
6726 (grub_gpt_partentry): ... to here (new file).
6728 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
6730 (grub_gpt_partition_type_bios_boot): New const variable, defined
6731 with macro from `<grub/gpt_partition.h>'.
6733 (setup): Replace `first_start' with `embed_region', which keeps
6734 track of the embed region (and is partmap-agnostic).
6736 Replace find_first_partition_start() with find_usable_region(),
6737 which finds a usable region for embedding using partmap-specific
6738 knowledge (supports PC/MSDOS and GPT).
6740 Fix all assumptions that the embed region start at sector 1, using
6741 `embed_region.start' from now on. Similarly, use `embed_region.end'
6742 rather than `first_start' to calculate available size.
6744 In grub_util_info() message, replace "into after the MBR" with an
6745 indication of the specific sector our embed region starts at.
6747 2008-02-19 Robert Millan <rmh@aybabtu.com>
6749 * DISTLIST: Replace `commands/ieee1275/halt.c' and
6750 `commands/ieee1275/reboot.c' with `commands/halt.c' and
6751 `commands/reboot.c'.
6752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
6753 (halt_mod_SOURCES): Likewise.
6754 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
6755 (halt_mod_SOURCES): Likewise.
6757 2008-02-17 Christian Franke <franke@computer.org>
6759 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
6761 2008-02-17 Robert Millan <rmh@aybabtu.com>
6763 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
6764 set `first_start' to 0 for non-PC/MSDOS partition maps.
6766 2008-02-16 Robert Millan <rmh@aybabtu.com>
6768 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
6769 do not assume partition map is PC/MSDOS before performing checks that
6770 are specific to that layout.
6772 2008-02-13 Robert Millan <rmh@aybabtu.com>
6774 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
6775 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
6776 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
6778 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
6780 * configure.ac: Only a cosmetic change on the handling of
6781 -fno-stack-protector.
6783 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
6785 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
6786 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
6788 (grub_install_SOURCES): Add halt.mod and reboot.mod.
6789 (halt_mod_SOURCES): New variable.
6790 (halt_mod_CFLAGS): Likewise.
6791 (halt_mod_LDFLAGS): Likewise.
6792 (reboot_mod_SOURCES): Likewise.
6793 (reboot_mod_CFLAGS): Likewise.
6794 (reboot_mod_LDFLAGS): Likewise.
6796 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
6797 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
6799 (halt_mod_SOURCES): Likewise.
6800 (reboot_mod_SOURCES): Likewise.
6802 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
6803 commands/i386/pc/reboot.c by commands/reboot.c.
6804 (reboot_mod_SOURCES): Likewise.
6806 * commands/i386/pc/reboot.c: merge this file ...
6808 * commands/ieee1275/reboot.c: ... and this file ...
6810 * commands/reboot.c: ... to this file.
6811 Add some precompiler directive to include the correct header for
6814 * commands/ieee1275/halt.c: move this file ...
6816 * commands/halt.c: ... to here.
6817 Add some precompiler directive to include the correct header for
6820 * include/grub/efi/efi.h (grub_reboot): New function declaration.
6821 (grub_halt): Likewise.
6823 * kern/efi/efi.c (grub_reboot): New function.
6824 (grub_halt): Likewise.
6826 2008-02-12 Robert Millan <rmh@aybabtu.com>
6828 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
6829 /dev (like it is done for /dev/mapper). This doesn't provide support
6830 for EVMS, but at least it is now easy to identify the problem when it
6833 2008-02-11 Robert Millan <rmh@aybabtu.com>
6835 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
6836 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
6837 comparing it with -1, not 0.
6839 2008-02-10 Robert Millan <rmh@aybabtu.com>
6841 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
6843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6844 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
6846 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
6847 `disk/lvm.c' to the end of the list.
6848 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
6849 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6851 2008-02-10 Robert Millan <rmh@aybabtu.com>
6853 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
6854 grub_print_error() instead. This will let user know why we're entering
6856 Based on suggestions from Sam Morris.
6858 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
6860 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
6861 on remaining N args, instead of "--" arg N times.
6863 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
6865 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
6866 (fill_with_default_glyph): Changed to use unknown_glyph for fill
6867 pattern for unknown glyphs.
6869 2008-02-09 Robert Millan <rmh@aybabtu.com>
6871 * configure.ac: Probe for `help2man'.
6872 * Makefile.in (builddir): New variable.
6873 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
6874 or otherwise add a few flags/options to it.
6875 (install-local): For every executable utility or script that is
6876 installed, invoke $(HELP2MAN) to install a manpage based on --help
6879 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
6880 that it doesn't prevent --help from working in build tree.
6882 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
6883 with `bug-grub@gnu.org'.
6884 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
6885 * util/update-grub.in (usage): New function.
6886 Implement proper argument check, with support for --help and --version
6887 (as well as existing -y).
6889 2008-02-09 Christian Franke <franke@computer.org>
6891 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
6892 avoid overwriting previous output.
6893 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
6895 2008-02-09 Robert Millan <rmh@aybabtu.com>
6897 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
6900 2008-02-09 Robert Millan <rmh@aybabtu.com>
6902 * commands/sleep.c: New file.
6903 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
6904 (sleep_mod_SOURCES): New variable.
6905 (sleep_mod_CFLAGS): Likewise.
6906 (sleep_mod_LDFLAGS): Likewise.
6908 2008-02-09 Robert Millan <rmh@aybabtu.com>
6910 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
6911 situations in which we can deduce the RAID size and the superblock
6914 2008-02-09 Robert Millan <rmh@aybabtu.com>
6916 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
6917 and return a grub_diskmemberlist_t composed of LVM physical volumes.
6918 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
6920 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
6921 and return a grub_diskmemberlist_t composed of physical array members.
6922 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
6924 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
6926 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
6927 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
6928 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
6930 * util/grub-probe.c (probe): Move partmap probing code from here ...
6931 (probe_partmap): ... to here.
6932 (probe): Use probe_partmap() once for the disk we're probing, and
6933 additionally, when such disk contains a memberlist() struct member,
6934 once for each disk that is contained in the structure returned by
6937 2008-02-09 Robert Millan <rmh@aybabtu.com>
6939 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
6940 environment variable to 'all' in order to obtain debug output from
6942 * util/i386/pc/grub-setup.c (main): Likewise.
6944 2008-02-08 Robert Millan <rmh@aybabtu.com>
6946 * disk/raid.c (grub_raid_scan_device): Check for
6947 `array->device[sb.this_disk.number]' rather than for
6948 `array->device[sb.this_disk.number]->name', since the latter is not
6949 guaranteed to be accessible.
6951 2008-02-08 Robert Millan <rmh@aybabtu.com>
6953 * disk/raid.c: Update copyright.
6954 * fs/cpio.c: Likewise.
6955 * include/grub/raid.h: Likewise.
6956 * loader/i386/pc/multiboot.c: Likewise.
6957 * util/hostfs.c: Likewise.
6959 2008-02-08 Robert Millan <rmh@aybabtu.com>
6961 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
6962 to a grub_disk_t array.
6963 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
6965 (grub_raid_scan_device): Replace `device[x].name' accesses with
6966 `device[x]->name'. Simplify initialization of `array->device[x]'.
6968 2008-02-08 Robert Millan <rmh@aybabtu.com>
6970 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
6971 grub_dprintf() calls.
6972 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
6975 2008-02-07 Christian Franke <franke@computer.org>
6977 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
6978 instead of fseek and ftell to support large files.
6979 (grub_hostfs_read): Likewise.
6981 2008-02-07 Robert Millan <rmh@aybabtu.com>
6983 Patch from Jeroen Dekkers.
6984 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
6985 failure, since successfully reading all array members might not be
6988 2008-02-06 Robert Millan <rmh@aybabtu.com>
6990 * util/grub-probe.c (probe): Simplify partmap probing (with the
6991 assumption that the first word up to the underscore equals to
6994 2008-02-06 Christian Franke <franke@computer.org>
6996 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
6997 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
6998 last block of a cpio or tar stream.
6999 Check for "TRAILER!!!" instead of any empty data
7000 block to detect last block of a cpio stream.
7001 (grub_cpio_dir): Fix constness of variable np.
7002 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
7003 cpio or tar trailer is detected. This fixes a crash
7004 on open of a non existing file.
7006 2008-02-05 Bean <bean123ch@gmail.com>
7008 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
7010 (grub_multiboot_load_elf64): Likewise.
7011 (grub_multiboot): Initialize mbi structure.
7013 * util/grub-fstest.c: Don't include unused header file script.h.
7015 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
7017 (grub_fstest_SOURCES): Likewise.
7019 2008-02-05 Robert Millan <rmh@aybabtu.com>
7021 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
7022 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
7023 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
7024 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
7026 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
7027 (translation_table): Replace hardcoded values with macros
7028 provided by `<grub/term.h>'.
7030 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
7031 (keyboard_map): Correct/add a few values, with macros provided
7033 (keyboard_map_shift): Zero values that don't differ from their
7034 `keyboard_map' equivalents.
7035 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
7036 Discard the second scan code that is always sent by Caps lock.
7037 Only use `keyboard_map_shift' when it provides a non-zero value,
7038 otherwise fallback to `keyboard_map'.
7040 2008-02-04 Bean <bean123ch@gmail.com>
7042 * Makefile.in (enable_grub_fstest): New variable.
7044 * conf/common.rmk (grub_fstest_init.lst): New rule.
7045 (grub_fstest_init.h): Likewise.
7046 (grub_fstest_init.c): Likewise.
7047 (util/grub-fstest.c_DEPENDENCIES): New variable.
7048 (grub_fstest_SOURCES): Likewise.
7050 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
7052 * util/grub-fstest.c: New file.
7054 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
7056 Make grub-setup handle a separate root device.
7058 * util/i386/pc/grub-setup.c (setup): Always open the root device,
7059 so that the root device can be compared with the destination
7061 When embedding the core image, if the root and destination devices
7062 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
7064 When not embedding, set ROOT_DRIVE to 0xFF.
7066 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
7068 Add support for having a grub directory in a different drive. This
7069 is still only the data handling part.
7071 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
7072 (codestart): Save %dh in GRUB_ROOT_DRIVE.
7073 (grub_root_drive): New variable.
7075 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
7076 instead of GRUB_BOOT_DRIVE to construct a device name. Set
7077 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
7080 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
7082 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
7084 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
7086 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
7087 is bogus, because PXE booting does not specify any drive
7090 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
7091 am not sure if this is really correct.
7093 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
7094 is always identical to the boot drive when booting from a CD.
7096 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
7098 (root_drive): New variable.
7099 (real_start): Unconditionally set %dh to ROOT_DRIVE.
7100 (setup_sectors): Push %dx right after popping it, because %dh will
7102 (copy_buffer): Restore %dx.
7104 2008-02-03 Robert Millan <rmh@aybabtu.com>
7106 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
7107 use `cdboot.img' for cdrom images.
7109 2008-02-03 Robert Millan <rmh@aybabtu.com>
7111 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
7112 only setup gfxterm when `font' command has succeeded.
7114 2008-02-03 Robert Millan <rmh@aybabtu.com>
7116 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
7117 (grub_rescue_cmd_multiboot_loader)
7118 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
7120 2008-02-03 Pavel Roskin <proski@gnu.org>
7122 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
7123 %edx and %esi from stack only after grub_gate_a20() is called.
7124 grub_gate_a20() clobbers %edx.
7126 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
7128 * configure.ac (AC_INIT): Bumped to 1.96.
7130 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
7131 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
7132 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
7133 video/readers/png.c.
7135 2008-02-03 Bean <bean123ch@gmail.com>
7137 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
7138 (cdboot_img_SOURCES): New variable.
7139 (cdboot_img_ASFLAGS): New variable.
7140 (cdboot_img_LDFLAGS): New variable.
7142 * boot/i386/pc/cdboot.S: New file.
7144 * disk/i386/pc/biosdisk.c (cd_start): New variable.
7145 (cd_count): Likewise.
7146 (grub_biosdisk_get_drive): Add support for cd device.
7147 (grub_biosdisk_call_hook): Likewise.
7148 (grub_biosdisk_iterate): Likewise.
7149 (grub_biosdisk_open): Likewise.
7150 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
7151 (grub_biosdisk_rw): Support reading from cd device.
7152 (GRUB_MOD_INIT): Iterate cd devices.
7154 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
7155 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
7156 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
7158 * kern/i386/pc/init.c (make_install_device): Check for cd device.
7160 2008-02-02 Robert Millan <rmh@aybabtu.com>
7162 * commands/read.c: New file.
7163 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
7164 (read_mod_SOURCES): New variable.
7165 (read_mod_CFLAGS): Likewise.
7166 (read_mod_LDFLAGS): Likewise.
7168 2008-02-02 Robert Millan <rmh@aybabtu.com>
7170 * normal/main.c (grub_normal_execute): Check for `menu->size' when
7171 determining whether menu has to be displayed.
7173 2008-02-02 Marco Gerards <marco@gnu.org>
7175 * bus/pci.c: New file.
7177 * include/grub/pci.h: Likewise.
7179 * include/grub/i386/pc/pci.h: Likewise.
7181 * commands/lspci.c: Likewise.
7183 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
7185 (pci_mod_SOURCES): New variable.
7186 (pci_mod_CFLAGS): Likewise.
7187 (pci_mod_LDFLAGS): Likewise.
7188 (lspci_mod_SOURCES): Likewise.
7189 (lspci_mod_CFLAGS): Likewise.
7190 (lspci_mod_LDFLAGS): Likewise.
7192 2008-02-02 Bean <bean123ch@gmail.com>
7194 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
7195 (grub_ufs_get_file_block): Fix indirect block calculation problem.
7197 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
7198 (grub_xfs_btree_node): New structure.
7199 (grub_xfs_btree_root): New structure.
7200 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
7201 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
7202 (GRUB_XFS_EXTENT_BLOCK): Likewise.
7203 (GRUB_XFS_EXTENT_SIZE): Likewise.
7204 (grub_xfs_read_block): Support btree format type.
7205 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
7206 Use directory block as basic unit.
7208 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
7210 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
7211 __attribute__ ((__regparm__ (1))).
7213 2008-02-01 Robert Millan <rmh@aybabtu.com>
7215 Correct a mistake in previous commit.
7217 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
7219 (normal/command.c_DEPENDENCIES): New variable.
7221 2008-02-01 Robert Millan <rmh@aybabtu.com>
7223 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
7225 (normal/command.c_DEPENDENCIES): New variable.
7226 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
7227 * conf/i386-ieee1275.rmk: Likewise.
7228 * conf/i386-linuxbios.rmk: Likewise.
7229 * conf/i386-pc.rmk: Likewise.
7230 * conf/sparc64-ieee1275.rmk: Likewise.
7231 * conf/powerpc-ieee1275.rmk: Likewise.
7232 (grub_emu_SOURCES): Add `fs/fshelp.c'.
7234 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
7236 2008-02-01 Robert Millan <rmh@aybabtu.com>
7238 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
7239 call at beginning of function.
7241 2008-01-31 Pavel Roskin <proski@gnu.org>
7243 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
7244 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
7245 (grub_mkrescue_SOURCES): Likewise.
7246 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
7248 2008-01-30 Robert Millan <rmh@aybabtu.com>
7250 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
7251 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
7252 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
7253 (grub_probe_SOURCES): ... to here.
7255 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
7256 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
7257 * conf/i386-ieee1275.rmk: Likewise.
7258 * conf/i386-linuxbios.rmk: Likewise.
7259 * conf/powerpc-ieee1275.rmk: Likewise.
7261 2008-01-30 Tristan Gingold <gingold@free.fr>
7263 * kern/rescue.c: Silently accept empty lines.
7265 2008-01-29 Bean <bean123ch@gmail.com>
7267 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
7268 (real_code_2): Code cleanup and change comment style.
7269 (move_memory): Avoid using 32-bit address mode.
7271 2008-01-29 Bean <bean123ch@gmail.com>
7273 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
7274 (png_mod_SOURCES): New variable.
7275 (png_mod_CFLAGS): Likewise.
7276 (png_mod_LDFLAGS): Likewise.
7278 * video/readers/png.c: New file.
7280 2008-01-28 Robert Millan <rmh@aybabtu.com>
7282 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
7283 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
7284 `ifndef GRUB_MOD_GAP' hack.
7285 * util/elf/grub-mkimage.c (add_segments): Likewise.
7287 2008-01-27 Robert Millan <rmh@aybabtu.com>
7289 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
7290 `GRUB_MOD_GAP' for platforms in which it's not defined.
7291 * util/elf/grub-mkimage.c (add_segments): Likewise.
7293 2008-01-27 Robert Millan <rmh@aybabtu.com>
7295 Get grub-emu to build again (including parallel builds).
7297 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
7299 (util/grub-emu.c_DEPENDENCIES): ... this, ...
7300 (normal/execute.c_DEPENDENCIES): ... this, ...
7301 (grub-emu_DEPENDENCIES): ... and this.
7303 * conf/i386-efi.rmk: Likewise.
7304 * conf/i386-linuxbios.rmk: Likewise.
7305 * conf/i386-ieee1275.rmk: Likewise.
7306 * conf/powerpc-ieee1275.rmk: Likewise.
7307 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
7309 2008-01-27 Robert Millan <rmh@aybabtu.com>
7311 * NEWS: Add a few items.
7313 2008-01-27 Robert Millan <rmh@aybabtu.com>
7315 Fix parallel builds with grub-emu. Based on earlier commit for
7316 grub-probe and grub-setup.
7318 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
7319 (util/grub-emu.c_DEPENDENCIES): ... this.
7320 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
7321 (util/grub-emu.c_DEPENDENCIES): ... this.
7322 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
7323 (util/grub-emu.c_DEPENDENCIES): ... this.
7324 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
7325 (util/grub-emu.c_DEPENDENCIES): ... this.
7326 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
7327 (util/grub-emu.c_DEPENDENCIES): ... this.
7329 2008-01-27 Pavel Roskin <proski@gnu.org>
7331 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
7332 to create a gap between _end and the modules added to the image
7333 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
7334 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
7335 * util/elf/grub-mkimage.c (add_segments): Likewise.
7337 2008-01-26 Pavel Roskin <proski@gnu.org>
7339 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
7340 just return an error.
7342 2008-01-26 Bean <bean123ch@gmail.com>
7344 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
7345 (grub_reiserfs_get_item): Save offset of the next item.
7346 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
7348 2008-01-25 Robert Millan <rmh@aybabtu.com>
7350 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
7351 make all filesystem sources appear together (possibly fixing omissions
7353 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7354 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7355 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
7356 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7358 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
7360 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
7361 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
7362 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
7363 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
7365 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
7366 (probe): Add a sanity check to make sure of our ability to read
7367 requested files when probing for filesystem type.
7369 * genmk.rb: Update copyright year (2007).
7371 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
7372 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
7373 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
7374 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
7375 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
7376 : Remove function prototypes.
7378 2008-01-25 Robert Millan <rmh@aybabtu.com>
7380 Revert my previous commits (based on wrong assumption of how grub_errno
7383 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
7384 * kern/file.c (grub_file_open): Likewise.
7386 2008-01-24 Pavel Roskin <proski@gnu.org>
7388 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
7389 that hang if GRUB tries to setup colors.
7390 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
7391 colors for firmwares that don't support it.
7392 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
7393 Recognize Open Hack'Ware, set flags to work around its
7396 2008-01-24 Robert Millan <rmh@aybabtu.com>
7398 * kern/file.c (grub_file_open): Do not account previous failures of
7399 unrelated functions when grub_errno is checked for.
7400 Reported by Oleg Strikov.
7402 2008-01-24 Bean <bean123ch@gmail.com>
7404 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
7405 (grub_ufs_sblock): New member volume name.
7406 (grub_ufs_find_file): Fix string copy bug.
7407 (grub_ufs_label): Implement this function properly.
7409 * fs/hfs.c (grub_hfs_cnid_type): New enum.
7410 (grub_hfs_iterate_records): Use the correct file number for extents
7411 and catalog file. Fix problem in next index calculation.
7412 (grub_hfs_find_node): Replace recursive function call with loop.
7413 (grub_hfs_iterate_dir): Replace recursive function call with loop.
7415 2008-01-23 Robert Millan <rmh@aybabtu.com>
7417 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
7418 `<grub/symbol.h>' and `<grub/multiboot.h>'.
7419 (grub_multiboot2_real_boot): New function prototype.
7421 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
7422 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
7424 * kern/i386/ieee1275/init.c (grub_os_area_addr)
7425 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
7427 2008-01-23 Robert Millan <rmh@aybabtu.com>
7429 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
7430 #ifdef'ed out grub_printf().
7432 2008-01-23 Robert Millan <rmh@aybabtu.com>
7434 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
7435 grub_dprintf calls, since they make "debug=all" mode unusable.
7436 (grub_console_checkkey): Likewise.
7438 2008-01-23 Robert Millan <rmh@aybabtu.com>
7440 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
7441 `term/i386/pc/at_keyboard.c'.
7442 (pkglib_MODULES): Add `serial.mod'.
7443 (serial_mod_SOURCES): New variable.
7444 (serial_mod_CFLAGS): Likewise.
7445 (serial_mod_LDFLAGS): Likewise.
7447 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
7448 `<grub/powerpc/ieee1275/console.h>'.
7449 (grub_keyboard_controller_init): New function prototype.
7450 (grub_console_checkkey): Likewise.
7451 (grub_console_getkey): Likewise.
7453 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
7456 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
7457 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
7459 2008-01-23 Robert Millan <rmh@aybabtu.com>
7461 * kern/i386/pc/init.c (make_install_device): When memdisk image is
7462 present, "(memdisk)/boot/grub" becomes the default prefix.
7464 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
7465 a memdisk tarball with all the modules. Add --overlay=DIR option that
7466 allows users to overlay additional files into the image.
7468 2008-01-23 Robert Millan <rmh@aybabtu.com>
7470 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
7471 and `machine/memory.h'.
7472 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
7473 (_multiboot_mod_SOURCES): New variable.
7474 (_multiboot_mod_CFLAGS): Likewise.
7475 (_multiboot_mod_LDFLAGS): Likewise.
7476 (multiboot_mod_SOURCES): Likewise.
7477 (multiboot_mod_CFLAGS): Likewise.
7478 (multiboot_mod_LDFLAGS): Likewise.
7480 * include/grub/i386/ieee1275/loader.h: New file.
7482 * include/grub/i386/ieee1275/machine.h: Likewise.
7484 * include/grub/i386/ieee1275/memory.h: Likewise.
7486 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
7487 variable declaration.
7488 (grub_os_area_size): Likewise.
7490 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
7491 (grub_lower_mem, grub_upper_mem): New variables.
7492 (grub_stop_floppy): New function (just to make
7493 grub_multiboot2_real_boot() happy).
7495 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
7496 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
7497 (grub_stop): New function.
7498 Include `"../realmode.S"' and `"../loader.S"'.
7500 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
7501 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
7503 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
7504 rely on grub_multiboot2_real_boot() for final boot.
7506 2008-01-22 Robert Millan <rmh@aybabtu.com>
7508 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
7509 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
7510 device that doesn't look like an SD card.
7511 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
7512 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
7513 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
7514 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
7517 2008-01-22 Robert Millan <rmh@aybabtu.com>
7519 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
7520 avoid claiming over our own code.
7522 2008-01-22 Bean <bean123ch@gmail.com>
7524 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
7525 (jpeg_mod_SOURCES): New variable.
7526 (jpeg_mod_CFLAGS): Likewise.
7527 (jpeg_mod_LDFLAGS): Likewise.
7529 * video/readers/jpeg.c : New file.
7531 2008-01-22 Bean <bean123ch@gmail.com>
7533 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
7534 there are no more items.
7536 2008-01-21 Robert Millan <rmh@aybabtu.com>
7538 * kern/mm.c (grub_mm_init_region): Improve debug message.
7540 2008-01-21 Robert Millan <rmh@aybabtu.com>
7542 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
7543 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
7545 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
7547 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
7548 Indicates start of upper memory.
7549 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
7550 (generate_image): Abort when image size is big enough to corrupt
7553 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
7554 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
7555 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
7556 instead of hardcoding 0xA0000.
7557 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
7558 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
7559 instead of hardcoding 0xA0000.
7561 2008-01-21 Robert Millan <rmh@aybabtu.com>
7563 * disk/memdisk.c (memdisk_size): New variable.
7564 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
7566 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
7567 image to dynamic memory.
7568 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
7569 `memdisk_size'. Free memdisk block.
7571 2008-01-21 Robert Millan <rmh@aybabtu.com>
7573 Fix detection of very small filesystems (like tar).
7575 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
7576 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
7577 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
7578 a problem with this disk).
7580 2008-01-21 Robert Millan <rmh@aybabtu.com>
7582 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
7583 on grub_biosdisk_rw_standard() error.
7585 2008-01-21 Robert Millan <rmh@aybabtu.com>
7587 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
7589 * kern/elf.c: Likewise.
7590 * kern/ieee1275/ieee1275.c: Likewise.
7591 * kern/powerpc/ieee1275/openfw.c: Likewise.
7592 * term/ieee1275/ofconsole.c: Likewise.
7594 2008-01-21 Robert Millan <rmh@aybabtu.com>
7596 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
7598 * include/grub/kernel.h (grub_arch_memdisk_addr)
7599 (grub_arch_memdisk_size): Moved from here ...
7601 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
7602 (grub_arch_memdisk_size): ... to here.
7604 2008-01-21 Robert Millan <rmh@aybabtu.com>
7606 Mostly based on bugfix from Bean.
7608 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
7609 attribute with hook() parameter.
7610 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
7612 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
7613 attribute with hook() parameter.
7614 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
7617 2008-01-21 Robert Millan <rmh@aybabtu.com>
7619 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
7620 (pkglib_MODULES): Add `memdisk.mod'.
7621 (memdisk_mod_SOURCES): New variable.
7622 (memdisk_mod_CFLAGS): Likewise.
7623 (memdisk_mod_LDFLAGS): Likewise.
7625 * disk/memdisk.c: New file.
7627 * include/grub/disk.h (grub_disk_dev_id): Add
7628 `GRUB_DISK_DEVICE_MEMDISK_ID'.
7630 * include/grub/i386/pc/kernel.h
7631 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
7632 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
7633 (grub_kernel_image_size): New variable declaration.
7634 (grub_total_module_size): Likewise.
7635 (grub_memdisk_image_size): Likewise.
7637 * include/grub/i386/pc/memory.h
7638 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
7640 * include/grub/kernel.h: Include `<grub/symbol.h>'.
7641 (grub_arch_memdisk_addr): New variable declaration.
7642 (grub_arch_memdisk_size): Likewise.
7644 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
7645 (grub_arch_memdisk_size): Likewise.
7647 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
7648 (codestart): Replace hardcoded `0x100000' with
7649 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
7651 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
7652 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
7653 not NULL, append the contents of the file it refers to, at the end of
7654 the compressed kernel image. Initialize `grub_memdisk_image_size'
7655 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
7656 (options): Add "memdisk"|'m' option.
7657 (main): Parse --memdisk|-m option, and pass user-provided path as
7658 parameter to generate_image().
7660 2008-01-20 Robert Millan <rmh@aybabtu.com>
7662 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
7663 grub_dprintf() calls from here ...
7664 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
7666 2008-01-20 Robert Millan <rmh@aybabtu.com>
7668 Fix detection of "real mode" when /options/real-mode? doesn't exist.
7670 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
7672 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
7673 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
7674 `GRUB_IEEE1275_FLAG_REAL_MODE'.
7675 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
7677 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
7678 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
7680 2008-01-19 Robert Millan <rmh@aybabtu.com>
7682 Get rid of confusing function (superseded by
7683 `grub_ieee1275_get_integer_property')
7684 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
7686 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
7688 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
7689 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
7690 in native endianness from grub_ieee1275_get_integer_property().
7692 2008-01-19 Robert Millan <rmh@aybabtu.com>
7694 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
7695 command after "shut-down", since implementations differ on which
7696 the command for halt is.
7698 2008-01-19 Robert Millan <rmh@aybabtu.com>
7700 * include/grub/i386/linuxbios/console.h: Add header protection.
7701 (grub_keyboard_controller_init): New function prototype.
7702 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
7703 (KEYBOARD_COMMAND_READ): Likewise.
7704 (KEYBOARD_COMMAND_WRITE): Likewise.
7705 (KEYBOARD_SCANCODE_SET1): Likewise.
7706 (grub_keyboard_controller_write): New function.
7707 (grub_keyboard_controller_read): Likewise.
7708 (grub_keyboard_controller_init): Likewise.
7710 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
7711 (grub_console_init): On coreboot/LinuxBIOS, call
7712 grub_keyboard_controller_init().
7714 2008-01-19 Robert Millan <rmh@aybabtu.com>
7716 PowerPC changes provided by Pavel Roskin.
7718 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
7719 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
7720 don't rely on cmain() doing it.
7721 * kern/i386/ieee1275/startup.S (_start): Store %eax in
7722 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
7724 2008-01-16 Robert Millan <rmh@aybabtu.com>
7726 * include/grub/i386/linuxbios/memory.h
7727 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
7728 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
7729 receive `table_header' as argument. Instead, probe for it in the
7730 known memory ranges where it can be present.
7731 (grub_available_iterate): Do not pass a fixed `table_header' address
7732 to grub_linuxbios_table_iterate().
7734 2008-01-15 Robert Millan <rmh@aybabtu.com>
7736 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
7737 * conf/i386-ieee1275.rmk: New file.
7738 * include/grub/i386/ieee1275/console.h: Likewise.
7739 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
7740 * include/grub/i386/ieee1275/kernel.h: Likewise.
7741 * include/grub/i386/ieee1275/time.h: Likewise.
7742 * kern/i386/ieee1275/init.c: Likewise.
7743 * kern/i386/ieee1275/startup.S: Likewise.
7745 2008-01-15 Robert Millan <rmh@aybabtu.com>
7747 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
7748 when pointers are 32-bit (but still do set it to one when they are
7751 2008-01-15 Robert Millan <rmh@aybabtu.com>
7753 * include/grub/ieee1275/ieee1275.h
7754 (grub_ieee1275_get_integer_property): New function prototype.
7756 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
7757 (grub_ieee1275_get_integer_property): New function. Wraps around
7758 grub_ieee1275_get_property() to handle endianness.
7760 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
7761 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
7763 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
7764 (grub_map): Likewise.
7765 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
7767 2008-01-15 Bean <bean123ch@gmail.com>
7769 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
7770 (grub_script_execute_cmdline): Reset grub_errno.
7772 * normal/main.c (read_config_file): Reset grub_errno.
7774 * normal/parse.y (script_init): New.
7775 (script): Move function and menuentry here.
7777 (command): Add delimiter at the end of command.
7778 (commands): Adjust to match the new command.
7779 (commandblock): Remove grub_script_lexer_record_start.
7780 (menuentry): Add grub_script_lexer_record_start, use the new commands.
7781 (if): Use the new commands.
7783 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
7785 2008-01-15 Robert Millan <rmh@aybabtu.com>
7787 * normal/menu.c (run_menu): Move timeout message from here ...
7788 (print_timeout): ... to here.
7789 (run_menu): Use print_timeout() once during initial draw to print
7790 the whole message, and again in every clock tick to update only
7791 the number of seconds.
7793 2008-01-15 Robert Millan <rmh@aybabtu.com>
7795 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
7796 actual size of `available' from grub_ieee1275_get_property(), and
7797 restrict parsing to that bound.
7799 2008-01-15 Christian Franke <franke@computer.org>
7801 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
7802 (argp_program_version): Remove variable.
7803 (argp_program_bug_address): Likewise.
7804 (options): Convert from struct argp_option to struct option.
7805 (struct arguments): Remove.
7806 (parse_opt): Remove.
7807 (usage): New function.
7808 (main): Replace struct args members by simple variables.
7809 Replace argp_parse() by getopt_long().
7810 Add switch to evaluate options.
7811 Add missing "(...)" around root_dev in prefix string.
7813 2008-01-14 Robert Millan <rmh@aybabtu.com>
7815 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
7816 for grub_ieee1275_exit(), in order to improve portability.
7818 2008-01-14 Robert Millan <rmh@aybabtu.com>
7820 * util/grub.d/10_linux.in (prefix): Define.
7821 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
7823 2008-01-13 Pavel Roskin <proski@gnu.org>
7825 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
7826 grub_errno if no errors have been detected.
7828 2008-01-12 Robert Millan <rmh@aybabtu.com>
7830 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
7831 (grub_util_get_dev_abstraction): New function prototype.
7833 * util/getroot.c: Include `<grub/util/getroot.h>'
7834 (grub_util_get_grub_dev): Move detection of abstraction type to ...
7835 (grub_util_get_dev_abstraction): ... here (new function).
7837 * util/grub-probe.c: Convert PRINT_* to an enum. Add
7838 `PRINT_ABSTRACTION'.
7839 (probe): Probe for abstraction type when requested.
7840 (main): Understand `--target=abstraction'.
7842 * util/i386/efi/grub-install.in: Add abstraction module to core
7843 image when it is found to be necessary.
7844 * util/i386/pc/grub-install.in: Likewise.
7845 * util/powerpc/ieee1275/grub-install.in: Likewise.
7847 * util/update-grub_lib.in (font_path): Return system path without
7848 converting to GRUB path.
7849 * util/update-grub.in: Convert system path returned by font_path()
7850 to a GRUB path. Use `grub-probe -t abstraction' to determine what
7851 abstraction module is needed for loading fonts (if any). Export
7852 that as `GRUB_PRELOAD_MODULES'.
7853 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
7856 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
7858 Remove some unused code from reiserfs.
7860 * fs/reiserfs.c (struct grub_reiserfs_key)
7861 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
7862 (struct grub_reiserfs_node_body): Removed.
7863 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
7865 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
7867 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
7869 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
7871 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
7873 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
7875 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
7876 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
7877 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
7879 2008-01-10 Robert Millan <rmh@aybabtu.com>
7881 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
7882 Determines if a file is garbage left by packaging systems, etc.
7883 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
7884 for processing /etc/grub.d scripts.
7885 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
7886 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
7887 as a condition for processing Linux images.
7889 2008-01-10 Pavel Roskin <proski@gnu.org>
7891 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
7892 to compile reiserfs.c on PowerPC.
7894 2008-01-10 Robert Millan <rmh@aybabtu.com>
7896 * kern/device.c (grub_device_iterate): Do not abort device iteration
7897 when one of the devices cannot be opened.
7898 * kern/disk.c (grub_disk_open): Do not account previous failures of
7899 unrelated functions when grub_errno is checked for.
7901 2008-01-08 Robert Millan <rmh@aybabtu.com>
7903 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
7904 `! grub_linux_is_bzimage', change order of address comparison to make
7905 it more intuitive, and improve "too big zImage" error message.
7907 2008-01-08 Robert Millan <rmh@aybabtu.com>
7909 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
7910 `$(update-grub_DATA)'.
7911 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
7914 2008-01-07 Robert Millan <rmh@aybabtu.com>
7916 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
7917 which instruction is modified by grub-setup during installation
7918 (since it wasn't obvious by only looking at this file).
7920 2008-01-07 Robert Millan <rmh@aybabtu.com>
7922 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
7923 listing actual TODO items.
7925 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
7927 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
7929 (grub_reiserfs_get_key_offset): Likewise.
7930 (grub_reiserfs_set_key_offset): Likewise.
7931 (grub_reiserfs_set_key_type): Likewise.
7932 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
7934 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
7935 better to remove the bitfield version completely.
7937 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
7939 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
7940 allocated from the heap, due to the fshelp implementation.
7941 (grub_reiserfs_dir): Free NODE, due to the same reason.
7943 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
7945 Mostly from Vincent Pelletier:
7947 * fs/reiserfs.c: New file.
7949 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
7950 (reiserfs_mod_SOURCES): New variable.
7951 (reiserfs_mod_CFLAGS): Likewise.
7952 (reiserfs_mod_LDFLAGS): Likewise.
7954 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
7955 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
7956 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
7959 2008-01-06 Robert Millan <rmh@aybabtu.com>
7961 * normal/color.c: Remove `<grub/env.h>'.
7963 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
7965 * include/grub/normal.h: Include <grub/env.h>.
7967 2008-01-05 Robert Millan <rmh@aybabtu.com>
7969 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
7970 usage example with `(hd0,1)'.
7971 Reported by Samuel Thibault.
7973 2008-01-05 Robert Millan <rmh@aybabtu.com>
7975 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
7976 (grub_linux_boot_zimage): Rename to ...
7977 (grub_linux_boot): ... this.
7978 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
7979 (grub_linux_boot_zimage): Conditionalize zImage copy.
7981 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
7982 (grub_linux_boot_bzimage): Remove prototype.
7983 (grub_linux_boot_zimage): Rename to ...
7984 (grub_linux_boot): ... this.
7986 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
7987 (grub_linux_boot): Remove function.
7989 2008-01-05 Robert Millan <rmh@aybabtu.com>
7991 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
7992 (grub_env_write_color_highlight): Likewise.
7993 (grub_wait_after_message): Likewise.
7995 * normal/color.c: New file.
7997 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
7998 (normal_mod_DEPENDENCIES): Likewise.
8000 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
8001 (normal_mod_DEPENDENCIES): Likewise.
8003 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
8004 (normal_mod_DEPENDENCIES): Likewise.
8006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
8007 (normal_mod_DEPENDENCIES): Likewise.
8009 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
8010 for waiting after a message is printed.
8011 * normal/main.c (read_config_file): Likewise.
8012 (grub_normal_init): Register grub_env_write_color_normal() and
8013 grub_env_write_color_highlight() hooks. Mark `color_normal' and
8014 `color_highlight' variables as global.
8016 * normal/menu.c (grub_wait_after_message): New function.
8017 (grub_color_menu_normal): New variable. Replaces ...
8018 (GRUB_COLOR_MENU_NORMAL): ... this macro.
8019 (grub_color_menu_highlight): New variable. Replaces ...
8020 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
8021 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
8022 `GRUB_TERM_COLOR_STANDARD'.
8023 (print_message): Use `grub_setcolorstate' to reload colors. Rename
8024 `normal_code' and `highlight_code' to `old_color_normal' and
8025 `old_color_highlight', respectively.
8026 (grub_menu_init_page): Update colors when drawing the menu, based on
8027 `menu_color_normal' and `menu_color_highlight' variables.
8028 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
8029 a message is printed.
8031 2008-01-05 Robert Millan <rmh@aybabtu.com>
8033 * kern/env.c (grub_env_context_open): Propagate hooks for global
8034 variables to new context.
8036 * kern/main.c (grub_set_root_dev): Export `root' variable.
8038 2008-01-05 Robert Millan <rmh@aybabtu.com>
8040 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
8041 discs unconditionally, since udev and others have options to provide
8044 2008-01-05 Robert Millan <rmh@aybabtu.com>
8046 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
8048 2008-01-04 Christian Franke <franke@computer.org>
8050 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
8053 2008-01-03 Pavel Roskin <proski@gnu.org>
8055 * kern/i386/linuxbios/init.c: Put "void" to all function
8056 declarations with no arguments.
8057 * kern/powerpc/ieee1275/init.c: Likewise.
8058 * term/i386/pc/at_keyboard.c: Likewise.
8059 * term/i386/pc/vga_text.c: Likewise.
8060 * util/grub-mkdevicemap.c: Likewise.
8062 2008-01-02 Robert Millan <rmh@aybabtu.com>
8064 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
8065 message when loaded image is out of bounds.
8066 (grub_multiboot_load_elf64): Likewise.
8068 2008-01-02 Pavel Roskin <proski@gnu.org>
8070 * util/grub.d/10_linux.in: Try version without ".old" when
8071 looking for initrd. It's better to use initrd from the newer
8072 kernel of the same version than no initrd at all.
8074 2008-01-01 Robert Millan <rmh@aybabtu.com>
8076 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
8078 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
8080 * include/grub/video.h: Added grub_video_unmap_color and
8081 grub_video_get_active_render_target.
8082 (grub_video_adapter): Added unmap_color and get_active_render_target.
8084 * video/video.c: Added grub_video_unmap_color and
8085 grub_video_get_active_render_target.
8086 (grub_video_get_info): Changed method to accept NULL pointer as an
8087 argument to allow detection of active video adapter.
8089 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
8090 grub_video_vbe_unmap_color_int.
8091 Added grub_video_vbe_unmap_color and
8092 grub_video_vbe_get_active_render_target.
8093 (grub_video_vbe_adapter): Added unmap_color and
8094 get_active_render_target.
8096 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
8097 with grub_video_vbe_unmap_color_int.
8099 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
8100 (DEFAULT_NORMAL_COLOR): Likewise.
8101 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
8102 (DEFAULT_FG_COLOR): Removed.
8103 (DEFAULT_BG_COLOR): Likewise.
8104 (DEFAULT_CURSOR_COLOR): Changed value.
8105 (grub_virtual_screen): Added standard_color_setting,
8106 normal_color_setting, highlight_color_setting and term_color.
8107 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
8108 (bitmap_width): Added.
8109 (bitmap_height): Likewise.
8111 (set_term_color): Likewise.
8112 (grub_virtual_screen_setup): Changed to use new terminal coloring
8114 (grub_gfxterm_init): Added init for bitmap.
8115 (grub_gfxterm_fini): Added destroy for bitmap.
8116 (redraw_screen_rect): Updated to use background bitmap and new
8118 (scroll_up): Added optimization for case when there is no bitmap.
8119 (grub_gfxterm_cls): Fixed to use correct background color.
8120 (grub_virtual_screen_setcolorstate): Changed to use new terminal
8122 (grub_virtual_screen_setcolor): Likewise.
8123 (grub_virtual_screen_getcolor): Added.
8124 (grub_gfxterm_background_image_cmd): Likewise.
8125 (grub_video_term): Added setcolor and getcolor.
8126 (MOD_INIT): Added registration of background_image command.
8127 (MOD_TERM): Added unregistration for background_image command.
8129 2007-12-30 Pavel Roskin <proski@gnu.org>
8131 * loader/multiboot_loader.c: Fix multiboot command
8132 unregistration. Fix all typos in the word "multiboot".
8134 2007-12-29 Pavel Roskin <proski@gnu.org>
8136 * util/grub.d/10_linux.in: Refactor search for initrd. Add
8137 support for initrd names used in Fedora.
8139 2007-12-26 Bean <bean123ch@gmail.com>
8141 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
8142 (cpio_mod_SOURCES): New variable.
8143 (cpio_mod_CFLAGS): Likewise.
8144 (cpio_mod_LDFLAGS): Likewise.
8146 * fs/cpio.c: New file.
8148 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
8150 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8152 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8154 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8156 2007-12-25 Robert Millan <rmh@aybabtu.com>
8158 * include/grub/term.h (struct grub_term): Add `getcolor' function.
8159 (grub_getcolor): New function.
8161 * kern/term.c (grub_getcolor): New function.
8162 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
8163 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
8164 (print_entry): Set normal and highlight colors to
8165 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
8166 respectively, before printing and restore them to old
8168 (grub_menu_init_page): Likewise. Fill an additional colored space
8169 that would otherwise be left blank.
8171 * term/efi/console.c (grub_console_getcolor): New function.
8172 (struct grub_console_term.getcolor): New variable.
8173 * term/i386/pc/console.c (grub_console_getcolor): New function.
8174 (struct grub_console_term.getcolor): New variable.
8175 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
8176 (struct grub_console_term.getcolor): New variable.
8178 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
8179 (struct grub_console_term.setcolor): Remove variable.
8180 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
8181 (struct grub_console_term.setcolor): Remove variable.
8182 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
8183 (struct grub_console_term.setcolor): Remove variable.
8184 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
8185 (struct grub_console_term.setcolor): Remove variable.
8187 2007-12-25 Robert Millan <rmh@aybabtu.com>
8189 * configure.ac: Search for possible unifont.hex locations, and
8190 define UNIFONT_HEX if found.
8192 * Makefile.in (UNIFONT_HEX): Define variable.
8193 (DATA): Rename to ...
8194 (PKGLIB): ... this. Update all users.
8195 (PKGDATA): New variable.
8196 (pkgdata_IMAGES): Rename to ...
8197 (pkglib_IMAGES): ... this. Update all users.
8198 (pkgdata_MODULES): Rename to ...
8199 (pkglib_MODULES): ... this. Update all users.
8200 (pkgdata_PROGRAMS): Rename to ...
8201 (pkglib_PROGRAMS): ... this. Update all users.
8202 (pkgdata_DATA): Rename to ...
8203 (pkglib_DATA): ... this. Update all users.
8204 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
8205 (unicode.pff, ascii.pff): New rules.
8206 (all-local): Add `$(PKGDATA)' dependency.
8207 (install-local): Process `$(PKGDATA)'.
8209 * util/update-grub_lib.in (font_path): Search for *.pff files in
8210 a few more locations, including `${pkgdata}'.
8212 2007-12-23 Robert Millan <rmh@aybabtu.com>
8214 Patch from Bean <bean123ch@gmail.com>:
8215 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
8218 2007-12-21 Bean <bean123ch@gmail.com>
8220 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
8221 (ntfscomp_mod_SOURCES): New variable.
8222 (ntfscomp_mod_CFLAGS): Likewise.
8223 (ntfscomp_mod_LDFLAGS): Likewise.
8225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
8226 (grub_probe_SOURCES): Likewise.
8227 (grub_emu_SOURCES): Likewise.
8229 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
8230 (grub_emu_SOURCES): Likewise.
8232 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
8233 (grub_emu_SOURCES): Likewise.
8235 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
8236 (grub_emu_SOURCES): Likewise.
8238 * fs/ntfs.c (grub_ntfscomp_func): New variable.
8239 (read_run_list): Renamed to grub_ntfs_read_run_list.
8240 (decomp_nextvcn): Moved to ntfscomp.c.
8241 (decomp_getch): Likewise.
8242 (decomp_get16): Likewise.
8243 (decomp_block): Likewise.
8244 (read_block): Likewise.
8245 (read_data): Partially moved to ntfscomp.c.
8246 (fixup): Change unsigned to grub_uint16_t.
8247 (read_mft): Change unsigned long to grub_uint32_t.
8248 (read_attr): Likewise.
8249 (read_data): Likewise.
8250 (read_run_data): Likewise.
8251 (read_run_list): Likewise.
8252 (read_mft): Likewise.
8254 * fs/ntfscomp.c: New file.
8256 * include/grub/ntfs.h: New file.
8258 2007-12-16 Robert Millan <rmh@aybabtu.com>
8260 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
8261 IDE disk check, since Linux is known to support 20 IDE disks.
8262 Reported by Colin Watson.
8264 2007-12-15 Bean <bean123ch@gmail.com>
8266 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
8267 (lnxboot_img_SOURCES): New variable.
8268 (lnxboot_img_ASFLAGS): Likewise.
8269 (lnxboot_img_LDFLAGS): Likewise.
8271 * boot/i386/pc/lnxboot.S: New file.
8273 2007-11-24 Pavel Roskin <proski@gnu.org>
8275 * configure.ac: Test if '--build-id=none' is supported by the
8276 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
8277 objcopy to generate incorrect binary files (binutils
8278 2.17.50.0.18-1 as shipped by Fedora 8).
8279 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
8280 linking, so that build ID doesn't break the test.
8282 2007-11-24 Pavel Roskin <proski@gnu.org>
8284 * include/grub/i386/time.h: use "void" in the argument list
8286 * include/grub/powerpc/time.h: Likewise.
8287 * include/grub/sparc64/time.h: Likewise.
8289 2007-11-18 Christian Franke <franke@computer.org>
8291 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
8292 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
8293 This fixes the problem that function keys did not work in grub-emu.
8295 2007-11-18 Christian Franke <franke@computer.org>
8297 * disk/host.c (grub_host_open): Remove attribute unused from
8298 name parameter. Add check for "host". This fixes the problem
8299 that grub-emu does not find partitions.
8301 2007-11-18 Christian Franke <franke@computer.org>
8303 * util/hostfs.c (is_dir): New function.
8304 (grub_hostfs_dir): Handle missing dirent.d_type case.
8305 (grub_hostfs_read): Add missing fseek().
8306 (grub_hostfs_label): Clear label pointer. This fixes a crash
8307 of grub-emu on "ls (host)".
8309 2007-11-18 Christian Franke <franke@computer.org>
8311 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
8312 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
8313 to 64 bit boundary by default.
8315 2007-11-18 Bean <bean123ch@gmail.com>
8317 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
8318 (hexdump_mod_SOURCES): New variable.
8319 (hexdump_mod_CFLAGS): Likewise.
8320 (hexdump_mod_LDFLAGS): Likewise.
8322 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
8324 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
8326 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
8328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
8330 * include/grub/hexdump.h: New file.
8332 * commands/hexdump.c: New file.
8334 2007-11-10 Robert Millan <rmh@aybabtu.com>
8336 * commands/i386/pc/play.c (beep_off): Switch order of arguments
8337 in grub_outb() calls.
8338 (beep_on): Likewise.
8340 2007-11-10 Christian Franke <franke@computer.org>
8342 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
8343 (grub_menu_run): Likewise.
8345 2007-11-10 Robert Millan <rmh@aybabtu.com>
8347 * include/grub/i386/efi/machine.h: New file.
8348 * include/grub/i386/linuxbios/machine.h: Likewise.
8349 * include/grub/i386/pc/machine.h: Likewise.
8350 * include/grub/powerpc/ieee1275/machine.h: Likewise.
8351 * include/grub/sparc64/ieee1275/machine.h: Likewise.
8353 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
8354 (serial_hw_io_addr): New variable.
8355 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
8356 instead of `(unsigned short *) 0x400'.
8358 2007-11-10 Bean <bean123ch@gmail.com>
8360 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
8362 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
8364 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
8365 (vga_mod_SOURCES): Added.
8366 (vga_mod_CFLAGS): Likewise.
8367 (vga_mod_LDFLAGS): Likewise.
8369 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
8371 (set_map_mask): Likewise.
8372 (set_read_map): Likewise.
8373 (set_read_address): Likewise.
8374 (vga_font): Removed variable.
8375 (get_vga_glyph): Removed function.
8376 (invalidate_char): Likewise.
8377 (write_char): Changed to use grub_font_get_glyph() for font
8379 (grub_vga_putchar): Likewise.
8380 (grub_vga_getcharwidth): Likewise.
8382 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
8384 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
8386 (pxeboot_img_LDFLAGS): Likewise.
8387 (diskboot_img_LDFLAGS): Likewise.
8388 (kernel_img_LDFLAGS): Likewise.
8390 2007-11-06 Robert Millan <rmh@aybabtu.com>
8392 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
8393 in grub_outb() calls.
8394 (serial_hw_init): Likewise.
8396 2007-11-05 Robert Millan <rmh@aybabtu.com>
8398 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
8399 spaces. Skip non-regular files.
8401 2007-11-05 Robert Millan <rmh@aybabtu.com>
8403 * kern/disk.c (grub_disk_firmware_fini)
8404 (grub_disk_firmware_is_tainted): New variables.
8406 * include/grub/disk.h (grub_disk_firmware_fini)
8407 (grub_disk_firmware_is_tainted): Likewise.
8409 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
8410 (grub_disk_biosdisk_fini): ... to here.
8411 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
8412 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
8413 is set. Register grub_disk_biosdisk_fini() in
8414 `grub_disk_firmware_fini'.
8416 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
8417 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
8418 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
8419 to finish existing firmware disk interface.
8421 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
8422 (ata_mod_SOURCES): New variable.
8423 (ata_mod_CFLAGS): Likewise.
8424 (ata_mod_LDFLAGS): Likewise.
8426 2007-11-05 Robert Millan <rmh@aybabtu.com>
8428 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
8429 (grub_ata_wait): Reimplement using grub_millisleep().
8431 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
8432 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
8434 2007-11-03 Marco Gerards <marco@gnu.org>
8436 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
8437 (CRTC_ADDR_PORT): New macro.
8438 (CRTC_DATA_PORT): Likewise.
8439 (CRTC_CURSOR): Likewise.
8440 (CRTC_CURSOR_ADDR_HIGH): Likewise.
8441 (CRTC_CURSOR_ADDR_LOW): Likewise.
8442 (update_cursor): New function.
8443 (grub_console_real_putchar): Call `update_cursor'.
8444 (grub_console_gotoxy): Likewise.
8445 (grub_console_cls): Set the default color when clearing the
8447 (grub_console_setcursor): Implemented.
8449 2007-11-03 Marco Gerards <marco@gnu.org>
8451 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
8453 (grub_ata_pio_write): Likewise.
8455 (grub_atapi_identify): Wait after issuing an ATA command.
8456 (grub_atapi_packet): Likewise.
8457 (grub_ata_identify): Likewise.
8458 (grub_ata_readwrite): Likewise.
8460 2007-11-03 Marco Gerards <marco@gnu.org>
8462 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
8463 (grub_ata_pio_write): Likewise.
8464 (grub_ata_readwrite): Use `grub_error', instead of
8465 returning `grub_errno'.
8467 2007-11-03 Marco Gerards <marco@gnu.org>
8469 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
8470 grub_ata_pio_write once for every single sector, instead of for
8473 2007-10-31 Robert Millan <rmh@aybabtu.com>
8475 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
8477 * conf/i386-linuxbios.rmk: New file.
8479 * kern/i386/pc/hardware.c: Likewise.
8480 * term/i386/pc/at_keyboard.c: Likewise.
8481 * term/i386/pc/vga_text.c: Likewise.
8483 * include/grub/i386/linuxbios/boot.h: Likewise.
8484 * include/grub/i386/linuxbios/console.h: Likewise.
8485 * include/grub/i386/linuxbios/init.h: Likewise.
8486 * include/grub/i386/linuxbios/kernel.h: Likewise.
8487 * include/grub/i386/linuxbios/loader.h: Likewise.
8488 * include/grub/i386/linuxbios/memory.h: Likewise.
8489 * include/grub/i386/linuxbios/serial.h: Likewise.
8490 * include/grub/i386/linuxbios/time.h: Likewise.
8492 * kern/i386/linuxbios/init.c: Likewise.
8493 * kern/i386/linuxbios/startup.S: Likewise.
8494 * kern/i386/linuxbios/table.c: Likewise.
8496 2007-10-31 Marco Gerards <marco@gnu.org>
8498 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
8499 (ata_mod_SOURCES): New variable.
8500 (ata_mod_CFLAGS): Likewise.
8501 (ata_mod_LDFLAGS): Likewise.
8503 * disk/ata.c: New file.
8505 * include/grub/disk.h (grub_disk_dev_id): Add
8506 `GRUB_DISK_DEV_ATA_ID'.
8508 2007-10-31 Robert Millan <rmh@aybabtu.com>
8510 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
8511 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
8513 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
8514 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
8516 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
8519 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
8521 2007-10-27 Robert Millan <rmh@aybabtu.com>
8523 * include/grub/types.h (ULONG_MAX): Define macro.
8525 2007-10-22 Robert Millan <rmh@aybabtu.com>
8527 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
8529 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
8531 2007-10-22 Robert Millan <rmh@aybabtu.com>
8533 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
8534 (pkgdata_MODULES): Add `biosdisk.mod'.
8535 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
8538 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
8539 (grub_biosdisk_init): Replace with ...
8540 (GRUB_MOD_INIT(biosdisk)): ... this.
8541 (grub_biosdisk_fini): Replace with ...
8542 (GRUB_MOD_FINI(biosdisk)): ... this.
8544 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
8545 (grub_machine_init): Remove call to grub_biosdisk_init().
8546 (grub_machine_fini): Remove call to grub_machine_fini().
8548 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
8550 2007-10-22 Robert Millan <rmh@aybabtu.com>
8552 * include/grub/time.h: New file.
8553 * include/grub/i386/time.h: Likewise.
8554 * include/grub/powerpc/time.h: Likewise.
8555 * include/grub/sparc64/time.h: Likewise.
8557 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
8559 (KERNEL_MACHINE_TIME_HEADER): ... this.
8560 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
8562 (KERNEL_MACHINE_TIME_HEADER): ... this.
8563 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
8565 (KERNEL_MACHINE_TIME_HEADER): ... this.
8567 * kern/i386/efi/init.c: Include `<grub/time.h>'.
8568 (grub_millisleep): New function.
8569 * kern/i386/pc/init.c: Include `<grub/time.h>'.
8570 (grub_millisleep): New function.
8571 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
8572 Remove `grub/machine/time.h' include.
8573 (grub_millisleep): New function.
8574 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
8575 Remove `grub/machine/time.h' include.
8576 (grub_millisleep): New function.
8578 * include/grub/misc.h (grub_div_roundup): New function.
8580 * kern/misc.c: Include `<grub/time.h>'.
8581 (grub_millisleep_generic): New function.
8583 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
8585 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
8587 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
8588 `machine/time.h'. Add `time.h'.
8589 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
8591 2007-10-21 Robert Millan <rmh@aybabtu.com>
8593 * include/grub/misc.h (grub_max): New function.
8595 2007-10-21 Robert Millan <rmh@aybabtu.com>
8597 * util/misc.c (grub_util_info): Call fflush() before returning.
8599 2007-10-20 Robert Millan <rmh@aybabtu.com>
8601 * genmk.rb (Image): Copy `extra_flags' from here ...
8602 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
8604 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
8605 to `argc' and `args' arguments.
8607 2007-10-17 Robert Millan <rmh@aybabtu.com>
8609 * kern/i386/loader.S: New file.
8611 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
8612 * kern/i386/loader.S (grub_linux_prot_size)... to here.
8613 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
8614 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
8615 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
8616 * kern/i386/loader.S (grub_linux_real_addr)... to here.
8617 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
8618 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
8619 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
8620 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
8621 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
8622 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
8623 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
8624 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
8626 * kern/i386/realmode.S: New file.
8628 * kern/i386/pc/startup.S (protstack): Moved from here ...
8629 * kern/i386/realmode.S (protstack)... to here.
8630 * kern/i386/pc/startup.S (gdt): Moved from here ...
8631 * kern/i386/realmode.S (gdt)... to here.
8632 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
8633 * kern/i386/realmode.S (prot_to_real)... to here.
8635 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
8636 `kern/i386/realmode.S'.
8638 2007-10-17 Robert Millan <rmh@aybabtu.com>
8640 * include/grub/i386/loader.h: New file.
8642 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
8643 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
8644 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
8645 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
8646 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
8647 * include/grub/i386/loader.h (grub_linux_prot_size)
8648 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
8649 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
8650 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
8651 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
8653 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
8655 2007-10-15 Robert Millan <rmh@aybabtu.com>
8657 * normal/misc.c (grub_normal_print_device_info): Do not probe for
8658 filesystem when dev->disk is unset.
8659 Do probe for filesystem even when dev->disk->has_partitions is set.
8660 In case a filesystem is found, always report it.
8661 In case it isn't, if dev->disk->has_partitions is set, report that
8662 a partition table was found instead of reporting that no filesystem
8663 could be identified.
8665 2007-10-12 Robert Millan <rmh@aybabtu.com>
8667 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
8668 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
8670 * include/grub/types.h (grub_host_to_target16): New macro.
8671 (grub_host_to_target32): Likewise.
8672 (grub_host_to_target64): Likewise.
8673 (grub_target_to_host16): Likewise.
8674 (grub_target_to_host32): Likewise.
8675 (grub_target_to_host64): Likewise.
8677 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
8679 (GRUB_MOD_ALIGN): ...this. Update all users.
8681 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
8682 grub_host_to_target32.
8683 Replace grub_be_to_cpu32 with grub_target_to_host32.
8684 (load_modules): Likewise.
8685 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
8686 Replace grub_be_to_cpu32 with grub_target_to_host32.
8687 Replace grub_cpu_to_be16 with grub_host_to_target16.
8688 Replace grub_cpu_to_be32 grub_host_to_target32.
8690 2007-10-12 Robert Millan <rmh@aybabtu.com>
8692 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
8693 * util/elf/grub-mkimage.c: ... here.
8695 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
8696 `util/powerpc/ieee1275/grub-mkimage.c'.
8698 2007-10-07 Robert Millan <rmh@aybabtu.com>
8700 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
8701 and make it easier to figure out.
8702 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
8703 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
8704 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
8705 leave us with less than HEAP_MIN_SIZE total heap.
8706 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
8708 2007-10-03 Robert Millan <rmh@aybabtu.com>
8710 * include/grub/i386/io.h: New file.
8711 * commands/i386/pc/play.c (inb): Removed.
8713 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
8715 * term/i386/pc/serial.c (inb): Removed.
8717 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
8719 * term/i386/pc/vga.c (inb): Removed.
8721 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
8724 2007-10-02 Robert Millan <rmh@aybabtu.com>
8726 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
8727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8728 Reported by Marcin Kurek.
8730 2007-09-07 Robert Millan <rmh@aybabtu.com>
8732 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
8733 SmartFirmware version updates (as released by Sven Luther), and avoid
8734 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
8735 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
8738 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
8741 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
8742 when merging two regions.
8744 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
8746 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
8747 * normal/completion.c (grub_normal_do_completion): Likewise.
8748 Reported by Hitoshi Ozeki.
8750 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
8752 Do not use devices at boot in chainloading.
8754 * loader/i386/pc/chainloader.c (boot_drive): New variable.
8755 (boot_part_addr): Likewise.
8756 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
8757 with BOOT_DRIVE and BOOT_PART_ADDR.
8758 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
8759 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
8761 2007-08-29 Robert Millan <rmh@aybabtu.com>
8763 Patch from Simon Peter <dn.tlp@gmx.net>:
8764 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
8765 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
8766 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
8767 util/i386/pc/grub-setup.c_DEPENDENCIES.
8768 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
8769 util/grub-probe.c_DEPENDENCIES.
8770 * conf/powerpc-ieee1275.rmk: Likewise.
8772 2007-08-28 Robert Millan <rmh@aybabtu.com>
8774 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
8775 to tell grub-mkdevicemap how to name devices.
8776 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
8779 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
8780 util/i386/get_disk_name.c.
8781 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
8782 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
8783 util/ieee1275/get_disk_name.c.
8785 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
8787 * DISTLIST: Add util/i386/get_disk_name.c and
8788 util/ieee1275/get_disk_name.c.
8790 * util/grub-mkdevicemap.c: Replace device naming logic with
8791 grub_util_get_disk_name() calls.
8793 2007-08-20 Robert Millan <rmh@aybabtu.com>
8795 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
8796 (so that it works for both plural and singular quantities).
8798 2007-08-05 Robert Millan <rmh@aybabtu.com>
8800 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
8801 so that [xz] isn't taken into account when determining order.
8803 2007-08-02 Marco Gerards <marco@gnu.org>
8805 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
8806 `include/multiboot2.h', `include/grub/elfload.h',
8807 `include/multiboot.h', `include/grub/multiboot.h',
8808 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
8809 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
8810 `kern/elf.c', `loader/multiboot_loader.c',
8811 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
8812 `loader/i386/pc/multiboot2.c',
8813 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
8814 `util/i386/pc/grub-mkrescue.in'. Remove
8815 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
8816 `include/grub/i386/pc/util/biosdisk.h' and
8817 `include/grub/powerpc/ieee1275/multiboot.h'.
8819 2007-08-02 Bean <bean123ch@gmail.com>
8821 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
8822 (ntfs_mod_SOURCES): New variable.
8823 (ntfs_mod_CFLAGS): Likewise.
8824 (ntfs_mod_LDFLAGS): Likewise.
8826 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
8827 (grub_probe_SOURCES): Likewise.
8828 (grub_emu_SOURCES): Likewise.
8830 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
8831 (grub_emu_SOURCES): Likewise.
8833 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
8834 (grub_emu_SOURCES): Likewise.
8836 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
8838 * fs/ntfs.c: New file.
8840 2007-08-02 Bean <bean123ch@gmail.com>
8842 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
8844 * file.h (grub_file): Likewise.
8846 * fshelp.h (grub_fshelp_read_file): Likewise.
8848 * util/i386/pc/grub-setup.c (setup): Likewise.
8849 (save_first_sector): Likewise.
8850 (save_blocklists): Likewise.
8852 * fs/affs.c (grub_affs_read_file): Likewise.
8854 * fs/ext2.c (grub_ext2_read_file): Likewise.
8856 * fs/fat.c (grub_fat_read_data): Likewise.
8858 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
8860 * fs/hfs.c (grub_hfs_read_file): Likewise.
8862 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
8864 * fs/jfs.c (grub_jfs_read_file): Likewise.
8866 * fs/minix.c (grub_minix_read_file): Likewise.
8868 * fs/sfs.c (grub_sfs_read_file): Likewise.
8870 * fs/ufs.c (grub_ufs_read_file): Likewise.
8872 * fs/xfs.c (grub_xfs_read_file): Likewise.
8874 * command/blocklist.c (read_blocklist): Likewise.
8875 (print_blocklist): Likewise.
8877 2007-08-02 Marco Gerards <marco@gnu.org>
8879 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
8882 * disk/host.c: New file.
8884 * util/hostfs.c: Likewise.
8886 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
8887 return `GRUB_ERR_BAD_FS'.
8888 * fs/sfs.c (grub_sfs_mount): Likewise.
8889 * fs/xfs.c (grub_xfs_mount): Likewise.
8891 * include/grub/disk.h (enum grub_disk_dev_id): Add
8892 `GRUB_DISK_DEVICE_HOST_ID'.
8894 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
8896 2007-07-24 Jerone Young <jerone@gmail.com>
8898 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
8899 modules for compilation.
8900 * conf/powerpc-ieee1275.rmk: Likewise.
8902 * include/multiboot.h: Move multiboot definitions to one file. Rename
8903 many definitions to not get grub specific.
8904 * include/multiboot2.h: Create header with multiboot 2 definitions.
8905 * include/grub/multiboot.h: Header for grub specific function
8906 prototypes and definitions.
8907 * include/grub/multiboot2.h: Likewise.
8908 * include/grub/multiboot_loader.h: Likewise.
8909 * include/grub/i386/pc/multiboot.h: Removed.
8910 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
8912 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
8913 and 2 to allow for one multiboot and module commands.
8914 * loader/multiboot2.c: Add multiboot2 functionality.
8915 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
8916 and definition names.
8917 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
8919 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
8920 ieee1275 specific multiboot2 code.
8922 * kern/i386/pc/startup.S: Change headers and definition names for
8923 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
8925 2007-07-22 Robert Millan <rmh@aybabtu.com>
8927 * geninitheader.sh: Process file specified in first parameter rather
8928 than hardcoding grub_modules_init.lst.
8929 * geninit.sh: Likewise. Also, construct header name dynamically rather
8930 than hardcoding grub_modules_init.h.
8932 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
8933 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
8934 grub_probe_init.[ch] and grub_setup_init.[ch].
8936 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
8937 grub_modules_init.h with grub_emu_init.h.
8938 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
8939 grub_probe_init.[ch] files.
8940 * conf/i386-efi.rmk: Likewise.
8941 * conf/i386-pc.rmk: Likewise.
8942 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
8943 grub_setup_init.[ch] files.
8945 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
8946 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
8947 to initialize modules rather than a list of hardcoded functions.
8948 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
8949 grub_init_all() to initialize modules rather than a list of hardcoded
8952 2007-07-22 Robert Millan <rmh@aybabtu.com>
8954 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8955 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
8957 2007-07-22 Robert Millan <rmh@aybabtu.com>
8959 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
8960 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
8961 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
8962 flag when running on SmartFirmware.
8963 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
8964 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
8967 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8968 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
8969 rather than decreasing it.
8971 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
8972 there's not enough space to do it, fail in the same way as when it
8973 can't be done because there are no partitions.
8975 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
8976 when nvsetenv failed.
8978 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
8980 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
8981 because this rule is automatically generated.
8982 (grub-mkrescue): Removed for the same reason as above.
8984 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
8986 Migrate to GNU General Public License Version 3.
8988 * COPYING: Replaced with the plain text version of GPLv3.
8990 * config.guess: Updated from gnulib.
8991 * config.sub: Likewise.
8993 * geninit.sh: Output a GPLv3 copyright notice.
8994 * geninitheader.sh: Likewise.
8995 * genmodsrc.sh: Likewise.
8996 * gensymlist.sh.in: Likewise.
8998 * boot/i386/pc/boot.S: Upgraded to GPLv3.
8999 * boot/i386/pc/diskboot.S: Likewise.
9000 * boot/i386/pc/pxeboot.S: Likewise.
9001 * commands/blocklist.c: Likewise.
9002 * commands/boot.c: Likewise.
9003 * commands/cat.c: Likewise.
9004 * commands/cmp.c: Likewise.
9005 * commands/configfile.c: Likewise.
9006 * commands/echo.c: Likewise.
9007 * commands/help.c: Likewise.
9008 * commands/ls.c: Likewise.
9009 * commands/search.c: Likewise.
9010 * commands/terminal.c: Likewise.
9011 * commands/test.c: Likewise.
9012 * commands/videotest.c: Likewise.
9013 * commands/i386/cpuid.c: Likewise.
9014 * commands/i386/pc/halt.c: Likewise.
9015 * commands/i386/pc/play.c: Likewise.
9016 * commands/i386/pc/reboot.c: Likewise.
9017 * commands/i386/pc/vbeinfo.c: Likewise.
9018 * commands/i386/pc/vbetest.c: Likewise.
9019 * commands/ieee1275/halt.c: Likewise.
9020 * commands/ieee1275/reboot.c: Likewise.
9021 * commands/ieee1275/suspend.c: Likewise.
9022 * disk/loopback.c: Likewise.
9023 * disk/lvm.c: Likewise.
9024 * disk/raid.c: Likewise.
9025 * disk/efi/efidisk.c: Likewise.
9026 * disk/i386/pc/biosdisk.c: Likewise.
9027 * disk/ieee1275/ofdisk.c: Likewise.
9028 * font/manager.c: Likewise.
9029 * fs/affs.c: Likewise.
9030 * fs/ext2.c: Likewise.
9031 * fs/fat.c: Likewise.
9032 * fs/fshelp.c: Likewise.
9033 * fs/hfs.c: Likewise.
9034 * fs/hfsplus.c: Likewise.
9035 * fs/iso9660.c: Likewise.
9036 * fs/jfs.c: Likewise.
9037 * fs/minix.c: Likewise.
9038 * fs/sfs.c: Likewise.
9039 * fs/ufs.c: Likewise.
9040 * fs/xfs.c: Likewise.
9041 * hello/hello.c: Likewise.
9042 * include/grub/acorn_filecore.h: Likewise.
9043 * include/grub/arg.h: Likewise.
9044 * include/grub/bitmap.h: Likewise.
9045 * include/grub/boot.h: Likewise.
9046 * include/grub/cache.h: Likewise.
9047 * include/grub/device.h: Likewise.
9048 * include/grub/disk.h: Likewise.
9049 * include/grub/dl.h: Likewise.
9050 * include/grub/elfload.h: Likewise.
9051 * include/grub/env.h: Likewise.
9052 * include/grub/err.h: Likewise.
9053 * include/grub/file.h: Likewise.
9054 * include/grub/font.h: Likewise.
9055 * include/grub/fs.h: Likewise.
9056 * include/grub/fshelp.h: Likewise.
9057 * include/grub/gzio.h: Likewise.
9058 * include/grub/hfs.h: Likewise.
9059 * include/grub/kernel.h: Likewise.
9060 * include/grub/loader.h: Likewise.
9061 * include/grub/lvm.h: Likewise.
9062 * include/grub/misc.h: Likewise.
9063 * include/grub/mm.h: Likewise.
9064 * include/grub/net.h: Likewise.
9065 * include/grub/normal.h: Likewise.
9066 * include/grub/parser.h: Likewise.
9067 * include/grub/partition.h: Likewise.
9068 * include/grub/pc_partition.h: Likewise.
9069 * include/grub/raid.h: Likewise.
9070 * include/grub/rescue.h: Likewise.
9071 * include/grub/script.h: Likewise.
9072 * include/grub/setjmp.h: Likewise.
9073 * include/grub/symbol.h: Likewise.
9074 * include/grub/term.h: Likewise.
9075 * include/grub/terminfo.h: Likewise.
9076 * include/grub/tparm.h: Likewise.
9077 * include/grub/types.h: Likewise.
9078 * include/grub/video.h: Likewise.
9079 * include/grub/efi/api.h: Likewise.
9080 * include/grub/efi/chainloader.h: Likewise.
9081 * include/grub/efi/console.h: Likewise.
9082 * include/grub/efi/console_control.h: Likewise.
9083 * include/grub/efi/disk.h: Likewise.
9084 * include/grub/efi/efi.h: Likewise.
9085 * include/grub/efi/pe32.h: Likewise.
9086 * include/grub/efi/time.h: Likewise.
9087 * include/grub/i386/linux.h: Likewise.
9088 * include/grub/i386/setjmp.h: Likewise.
9089 * include/grub/i386/types.h: Likewise.
9090 * include/grub/i386/efi/kernel.h: Likewise.
9091 * include/grub/i386/efi/loader.h: Likewise.
9092 * include/grub/i386/efi/time.h: Likewise.
9093 * include/grub/i386/pc/biosdisk.h: Likewise.
9094 * include/grub/i386/pc/boot.h: Likewise.
9095 * include/grub/i386/pc/chainloader.h: Likewise.
9096 * include/grub/i386/pc/console.h: Likewise.
9097 * include/grub/i386/pc/init.h: Likewise.
9098 * include/grub/i386/pc/kernel.h: Likewise.
9099 * include/grub/i386/pc/loader.h: Likewise.
9100 * include/grub/i386/pc/memory.h: Likewise.
9101 * include/grub/i386/pc/multiboot.h: Likewise.
9102 * include/grub/i386/pc/serial.h: Likewise.
9103 * include/grub/i386/pc/time.h: Likewise.
9104 * include/grub/i386/pc/vbe.h: Likewise.
9105 * include/grub/i386/pc/vbeblit.h: Likewise.
9106 * include/grub/i386/pc/vbefill.h: Likewise.
9107 * include/grub/i386/pc/vbeutil.h: Likewise.
9108 * include/grub/i386/pc/vga.h: Likewise.
9109 * include/grub/ieee1275/ieee1275.h: Likewise.
9110 * include/grub/ieee1275/ofdisk.h: Likewise.
9111 * include/grub/powerpc/libgcc.h: Likewise.
9112 * include/grub/powerpc/setjmp.h: Likewise.
9113 * include/grub/powerpc/types.h: Likewise.
9114 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
9115 * include/grub/powerpc/ieee1275/console.h: Likewise.
9116 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
9117 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9118 * include/grub/powerpc/ieee1275/loader.h: Likewise.
9119 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
9120 * include/grub/powerpc/ieee1275/time.h: Likewise.
9121 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
9122 * include/grub/sparc64/libgcc.h: Likewise.
9123 * include/grub/sparc64/setjmp.h: Likewise.
9124 * include/grub/sparc64/types.h: Likewise.
9125 * include/grub/sparc64/ieee1275/console.h: Likewise.
9126 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
9127 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9128 * include/grub/sparc64/ieee1275/time.h: Likewise.
9129 * include/grub/util/biosdisk.h: Likewise.
9130 * include/grub/util/getroot.h: Likewise.
9131 * include/grub/util/lvm.h: Likewise.
9132 * include/grub/util/misc.h: Likewise.
9133 * include/grub/util/raid.h: Likewise.
9134 * include/grub/util/resolve.h: Likewise.
9135 * io/gzio.c: Likewise.
9136 * kern/device.c: Likewise.
9137 * kern/disk.c: Likewise.
9138 * kern/dl.c: Likewise.
9139 * kern/elf.c: Likewise.
9140 * kern/env.c: Likewise.
9141 * kern/err.c: Likewise.
9142 * kern/file.c: Likewise.
9143 * kern/fs.c: Likewise.
9144 * kern/loader.c: Likewise.
9145 * kern/main.c: Likewise.
9146 * kern/misc.c: Likewise.
9147 * kern/mm.c: Likewise.
9148 * kern/parser.c: Likewise.
9149 * kern/partition.c: Likewise.
9150 * kern/rescue.c: Likewise.
9151 * kern/term.c: Likewise.
9152 * kern/efi/efi.c: Likewise.
9153 * kern/efi/init.c: Likewise.
9154 * kern/efi/mm.c: Likewise.
9155 * kern/i386/dl.c: Likewise.
9156 * kern/i386/efi/init.c: Likewise.
9157 * kern/i386/efi/startup.S: Likewise.
9158 * kern/i386/pc/init.c: Likewise.
9159 * kern/i386/pc/lzo1x.S: Likewise.
9160 * kern/i386/pc/startup.S: Likewise.
9161 * kern/ieee1275/ieee1275.c: Likewise.
9162 * kern/powerpc/cache.S: Likewise.
9163 * kern/powerpc/dl.c: Likewise.
9164 * kern/powerpc/ieee1275/cmain.c: Likewise.
9165 * kern/powerpc/ieee1275/crt0.S: Likewise.
9166 * kern/powerpc/ieee1275/init.c: Likewise.
9167 * kern/powerpc/ieee1275/openfw.c: Likewise.
9168 * kern/sparc64/cache.S: Likewise.
9169 * kern/sparc64/dl.c: Likewise.
9170 * kern/sparc64/ieee1275/init.c: Likewise.
9171 * kern/sparc64/ieee1275/openfw.c: Likewise.
9172 * loader/efi/chainloader.c: Likewise.
9173 * loader/efi/chainloader_normal.c: Likewise.
9174 * loader/i386/efi/linux.c: Likewise.
9175 * loader/i386/efi/linux_normal.c: Likewise.
9176 * loader/i386/pc/chainloader.c: Likewise.
9177 * loader/i386/pc/chainloader_normal.c: Likewise.
9178 * loader/i386/pc/linux.c: Likewise.
9179 * loader/i386/pc/linux_normal.c: Likewise.
9180 * loader/i386/pc/multiboot.c: Likewise.
9181 * loader/i386/pc/multiboot_normal.c: Likewise.
9182 * loader/powerpc/ieee1275/linux.c: Likewise.
9183 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
9184 * normal/arg.c: Likewise.
9185 * normal/cmdline.c: Likewise.
9186 * normal/command.c: Likewise.
9187 * normal/completion.c: Likewise.
9188 * normal/execute.c: Likewise.
9189 * normal/function.c: Likewise.
9190 * normal/lexer.c: Likewise.
9191 * normal/main.c: Likewise.
9192 * normal/menu.c: Likewise.
9193 * normal/menu_entry.c: Likewise.
9194 * normal/misc.c: Likewise.
9195 * normal/parser.y: Likewise.
9196 * normal/script.c: Likewise.
9197 * normal/i386/setjmp.S: Likewise.
9198 * normal/powerpc/setjmp.S: Likewise.
9199 * normal/sparc64/setjmp.S: Likewise.
9200 * partmap/acorn.c: Likewise.
9201 * partmap/amiga.c: Likewise.
9202 * partmap/apple.c: Likewise.
9203 * partmap/gpt.c: Likewise.
9204 * partmap/pc.c: Likewise.
9205 * partmap/sun.c: Likewise.
9206 * term/gfxterm.c: Likewise.
9207 * term/terminfo.c: Likewise.
9208 * term/efi/console.c: Likewise.
9209 * term/i386/pc/console.c: Likewise.
9210 * term/i386/pc/serial.c: Likewise.
9211 * term/i386/pc/vesafb.c: Likewise.
9212 * term/i386/pc/vga.c: Likewise.
9213 * term/ieee1275/ofconsole.c: Likewise.
9214 * util/biosdisk.c: Likewise.
9215 * util/console.c: Likewise.
9216 * util/genmoddep.c: Likewise.
9217 * util/getroot.c: Likewise.
9218 * util/grub-emu.c: Likewise.
9219 * util/grub-mkdevicemap.c: Likewise.
9220 * util/grub-probe.c: Likewise.
9221 * util/lvm.c: Likewise.
9222 * util/misc.c: Likewise.
9223 * util/raid.c: Likewise.
9224 * util/resolve.c: Likewise.
9225 * util/update-grub.in: Likewise.
9226 * util/update-grub_lib.in: Likewise.
9227 * util/grub.d/00_header.in: Likewise.
9228 * util/grub.d/10_hurd.in: Likewise.
9229 * util/grub.d/10_linux.in: Likewise.
9230 * util/i386/efi/grub-install.in: Likewise.
9231 * util/i386/efi/grub-mkimage.c: Likewise.
9232 * util/i386/pc/grub-install.in: Likewise.
9233 * util/i386/pc/grub-mkimage.c: Likewise.
9234 * util/i386/pc/grub-mkrescue.in: Likewise.
9235 * util/i386/pc/grub-setup.c: Likewise.
9236 * util/i386/pc/misc.c: Likewise.
9237 * util/powerpc/ieee1275/grub-install.in: Likewise.
9238 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
9239 * util/powerpc/ieee1275/misc.c: Likewise.
9240 * video/bitmap.c: Likewise.
9241 * video/video.c: Likewise.
9242 * video/i386/pc/vbe.c: Likewise.
9243 * video/i386/pc/vbeblit.c: Likewise.
9244 * video/i386/pc/vbefill.c: Likewise.
9245 * video/i386/pc/vbeutil.c: Likewise.
9246 * video/readers/tga.c: Likewise.
9248 2007-07-02 Robert Millan <rmh@aybabtu.com>
9250 * conf/i386-efi.rmk: Replace obsolete reference to
9251 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
9252 with util/getroot.c.
9253 * conf/powerpc-ieee1275.rmk: Likewise.
9254 * conf/sparc64-ieee1275.rmk: Likewise.
9256 * util/grub-emu.c (main): Fix unchecked pointer handling.
9258 2007-07-02 Robert Millan <rmh@aybabtu.com>
9260 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
9261 invocation to fail, in order to support partition-less media.
9263 * util/i386/pc/grub-install.in: Likewise.
9265 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
9266 which fs or partmap modules are needed (akin to its sister scripts).
9268 Also use grub-probe to get rid of unportable /proc/mounts check.
9270 Print the same informational message that the other scripts do, before
9273 2007-06-23 Robert Millan <rmh@aybabtu.com>
9275 * util/update-grub_lib.in (font_path): New function. Determine whether
9276 a font file can be found and, if so, echo the GRUB path to it.
9278 * util/update-grub.in: Handle multiple terminals depending on user
9279 input, platform availability and font file presence. Propagate
9280 variables of our findings to /etc/grub.d/ children.
9282 * util/grub.d/00_header.in: Handle multiple terminals, based on
9283 environment setup by update-grub.
9285 2007-06-23 Robert Millan <rmh@aybabtu.com>
9287 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
9289 2007-06-21 Robert Millan <rmh@aybabtu.com>
9291 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
9292 indicate end of data section in kernel image.
9293 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
9294 GRUB_KERNEL_MACHINE_DATA_END.
9296 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
9298 * kern/i386/efi/startup.S: Likewise.
9300 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
9301 during image generation. Implement --prefix option to override this
9303 * util/i386/efi/grub-mkimage.c: Likewise.
9305 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
9306 code to make path relative to its root into a separate function.
9308 * util/i386/pc/grub-install.in: Use newly provided
9309 make_system_path_relative_to_its_root() to convert ${grubdir}, then
9310 pass the result to grub-install --prefix.
9312 2007-06-13 Robert Millan <rmh@aybabtu.com>
9314 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
9316 * util/grub-emu.c: Use above definitions from misc.h instead of
9318 * util/grub-mkdevicemap.c: Likewise.
9319 * util/i386/pc/grub-setup.c: Likewise.
9320 * util/grub-probe.c: Likewise.
9321 (probe): Abort with grub_util_error() when either
9322 grub_guess_root_device or grub_util_get_grub_dev fails.
9324 2007-06-12 Robert Millan <rmh@aybabtu.com>
9326 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
9328 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
9330 * util/grub-probe.c (probe): Likewise for "drive_name".
9332 2007-06-11 Robert Millan <rmh@aybabtu.com>
9334 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
9335 not just the cdrom one.
9337 2007-06-11 Robert Millan <rmh@aybabtu.com>
9339 * util/i386/pc/grub-mkrescue.in: Add "set -e".
9340 Add --pkglibdir=DIR option to override pkglibdir.
9341 Mention --image-type=TYPE in help output.
9342 Fix --grub-mkimage (it was a no-op).
9343 Abort gracefully when no parameter is given.
9345 2007-06-11 Robert Millan <rmh@aybabtu.com>
9347 * util/i386/pc/grub-mkrescue.in: New file.
9348 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
9349 * Makefile.in: Handle bin_SCRIPTS.
9351 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
9353 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
9354 list of video modes.
9356 2007-06-06 Robert Millan <rmh@aybabtu.com>
9358 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
9359 file doesn't exist, or if it is in a filesystem grub can't read.
9361 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
9362 not abort if GRUB_DRIVE could not be defined. Rearrange generated
9363 header comment to fit in 80 columns when the variables are resolved.
9365 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
9366 could be identified by update-grub. Remove redundant check for
9367 unifont.pff existence (since convert_system_path_to_grub_path now
9370 2007-06-04 Robert Millan <rmh@aybabtu.com>
9372 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
9374 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
9376 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
9378 2007-06-04 Robert Millan <rmh@aybabtu.com>
9380 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
9382 * include/grub/partition.h: Declare grub_apple_partition_map_init and
9383 grub_apple_partition_map_fini.
9386 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
9387 to access >2 TiB disks).
9389 Print disk->total_sectors with %llu instead of %lu, since this
9390 variable is always 64-bit (prevents wrong disk size from being displayed
9391 on either >2 TiB disk or big-endian CPU).
9393 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
9394 into a generic case that supports all (sane) partition maps.
9396 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
9399 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
9400 and grub_apple_partition_map_fini() after that.
9402 2007-06-01 Robert Millan <rmh@aybabtu.com>
9404 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
9406 * util/grub.d/00_header.in: Only enable gfxterm when
9407 convert_system_path_to_grub_path() succeeds.
9409 2007-05-20 Robert Millan <rmh@aybabtu.com>
9411 * util/update-grub_lib.in: New file.
9412 * DISTLIST: Add update-grub_lib.in.
9413 * conf/common.rmk: Generate update-grub_lib and install it in
9415 * Makefile.in: Add install routine for $(lib_DATA).
9417 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
9418 function provided by update-grub_lib to support arbitrary paths of
9420 * util/update-grub.in: Use convert_system_path_to_grub_path() to
9421 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
9423 2007-05-19 Robert Millan <rmh@aybabtu.com>
9425 * commands/i386/cpuid.c: New module.
9427 * conf/i386-efi.rmk: Enable cpuid.mod.
9428 * conf/i386-pc.rmk: Likewise.
9430 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
9432 * kern/disk.c (grub_disk_read): Check return value of
9435 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
9437 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
9439 * disk/raid.c (grub_raid_open): Likewise.
9441 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
9443 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
9444 stack instead of on the heap.
9446 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
9447 before doing a read on it.
9449 * configure.ac: Only use -fno-stack-protector for the target
9452 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
9454 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
9455 __attribute_ ((unused)) to mode_type argument.
9457 * util/getroot.c (grub_guess_root_device): Fix #endif.
9459 * kern/misc.c (memcmp): Fix prototype.
9461 * include/grub/partition.h [GRUB_UTIL]
9462 (grub_gpt_partition_map_init): Add prototype.
9463 (grub_gpt_partition_map_fini): Likewise.
9465 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
9468 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
9469 (grub_fat_read_data): Likewise.
9470 (grub_fat_find_dir): Likewise.
9472 * font/manager.c (find_glyph): Make table a const.
9473 (grub_font_get_glyph): Remove bitmap from if statement.
9475 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
9477 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
9478 code, first search for device in /dev/mapper, then in /dev.
9479 (grub_util_get_grub_dev): New function.
9480 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
9482 * util/grub-probe.c (probe): Remove check for RAID, call
9483 grub_util_get_grub_dev() instead of
9484 grub_util_biosdisk_get_grub_dev().
9485 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
9486 grub_util_biosdisk_get_grub_dev().
9487 * util/i386/pc/grub-setup.c (main): Likewise.
9489 2007-05-16 Robert Millan <rmh@aybabtu.com>
9491 * DISTLIST: Update for the latest changes.
9492 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
9493 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
9494 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
9495 grub/util/biosdisk.h.
9496 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
9497 grub/util/biosdisk.h.
9499 2007-05-16 Robert Millan <rmh@aybabtu.com>
9501 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
9503 2007-05-16 Robert Millan <rmh@aybabtu.com>
9505 * util/i386/efi/grub-install.in: New.
9506 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
9507 newly added grub-install.
9508 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
9510 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
9511 grub/util/biosdisk.h.
9512 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
9513 grub/util/biosdisk.h.
9515 2007-05-16 Robert Millan <rmh@aybabtu.com>
9517 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
9518 * include/grub/util/biosdisk.h: ... here.
9519 * util/i386/pc/biosdisk.c: Moved to ...
9520 * util/biosdisk.c: ... here.
9521 * util/i386/pc/getroot.c: Moved to ...
9522 * util/getroot.c: ... here.
9523 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
9524 * util/grub-mkdevicemap.c: ... here.
9525 * util/i386/pc/grub-probe.c: Moved to ...
9526 * util/grub-probe.c: ... here.
9528 2007-05-15 Robert Millan <rmh@aybabtu.com>
9530 * util/update-grub.in: Remove duplicated line in grub.cfg header
9533 2007-05-13 Robert Millan <rmh@aybabtu.com>
9535 * util/update-grub.in: Fix a few assumptions about the devices holding
9536 /, /boot and /boot/grub being the same.
9537 * util/grub.d/00_header.in: Likewise.
9538 * util/grub.d/10_hurd.in: Likewise.
9539 * util/grub.d/10_linux.in: Likewise.
9541 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
9542 patterns. Use that to define the `.old' suffix as older than `'.
9544 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
9546 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
9547 the grub.cfg header message.
9549 2007-05-11 Robert Millan <rmh@aybabtu.com>
9551 * util/update-grub.in: Create device.map if it doesn't already exist,
9552 before attempting to run grub-probe.
9553 Check for grub-probe and grub-mkdevicemap with the same code
9554 grub-install is using.
9557 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
9559 * Makefile.in: Add the datarootdir autoconf variable.
9561 2007-05-09 Robert Millan <rmh@aybabtu.com>
9563 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
9564 fail gracefully if dev->disk->partition == NULL.
9566 2007-05-07 Robert Millan <rmh@aybabtu.com>
9568 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
9569 determine partition map module.
9570 * util/i386/pc/grub-install.in: Use this feature to decide which
9571 partition module to load, instead of hardcoding pc and gpt.
9573 2007-05-07 Robert Millan <rmh@aybabtu.com>
9575 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
9576 source directory differs from build directory.
9578 2007-05-05 Robert Millan <rmh@aybabtu.com>
9580 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
9583 2007-05-05 Robert Millan <rmh@aybabtu.com>
9585 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
9587 2007-05-05 Robert Millan <rmh@aybabtu.com>
9589 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
9590 command-line arguments via ${GRUB_CMDLINE_LINUX}.
9592 2007-05-05 Robert Millan <rmh@aybabtu.com>
9594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
9595 (grub_probe_SOURCES): Likewise.
9596 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
9597 GPT and initialize dos_part and bsd_part accordingly.
9598 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
9600 (main): Activate gpt module for use during partition identification,
9601 and deactivate it afterwards.
9602 * util/i386/pc/grub-install.in: Add gpt module to core.img.
9603 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
9604 partition identification, and deactivate it afterwards.
9606 2007-05-05 Robert Millan <rmh@aybabtu.com>
9608 * term/i386/pc/console.c (grub_console_fini): Call
9609 grub_term_set_current() before grub_term_unregister().
9611 2007-05-04 Robert Millan <rmh@aybabtu.com>
9613 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
9614 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
9615 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
9616 and update-grub_DATA.
9617 * conf/common.rmk: Build and install update-grub components.
9618 * conf/common.mk: Regenerate.
9619 * util/update-grub.in: New. Core of update-grub.
9620 * util/grub.d/00_header.in: New. Generates grub.cfg header.
9621 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
9622 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
9623 * util/grub.d/README: New. Document grub.d directory layout.
9625 2007-05-01 Robert Millan <rmh@aybabtu.com>
9627 * util/grub-emu.c: Move initialization functions
9628 grub_util_biosdisk_init() and grub_init_all() before
9629 grub_util_biosdisk_get_grub_dev(), which relies on them.
9631 2007-04-19 Robert Millan <rmh@aybabtu.com>
9633 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
9636 2007-04-18 Jerone Young <jerone@gmail.com>
9638 * kernel/elf.c: Add missing parenthesis for conditional statement
9641 2007-04-10 Jerone Young <jerone@gmail.com>
9643 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
9644 continue on and look for device node with real device name.
9646 2007-04-10 Jerone Young <jerone@gmail.com>
9648 * configure.ac: Add argument for autoconf to use transformation
9650 * Makefile.in: Add autoconf package transformation code.
9651 * util/i386/pc/grub-install.in: Likewise.
9652 * util/powerpc/ieee1275/grub-install.in: Likewise.
9654 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
9656 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
9657 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
9658 (EXT2_REVISION): Likewise.
9659 (EXT2_INODE_SIZE): Likewise.
9660 (struct grub_ext2_block_group): Added a missing member
9662 (grub_ext2_read_inode): Divide by the inode size in a superblock
9663 instead of 128 to obtain INODES_PER_BLOCK.
9664 Use the macro EXT2_INODE_SIZE instead of directly using
9667 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
9669 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
9670 superblock instead of the structure size to compute an
9671 offset. This fixes the problem that GRUB could not read a
9672 filesystem when inode size is different from 128-byte.
9674 2007-03-05 Marco Gerards <marco@gnu.org>
9676 * normal/main.c (read_config_file): When "menu" is not set, create
9679 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
9681 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
9682 (HEAP_LIMIT): New macro.
9683 (grub_claim_heap): Claim memory up to `heaplimit'.
9685 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
9687 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
9688 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
9690 (grub_arch_modules_addr): Return address after `_end'.
9691 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
9692 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
9693 (add_segments): Calculate `_end' from phdr size and location.
9694 (ALIGN_UP): Moved to ...
9695 * include/grub/misc.h: here.
9696 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
9698 (GRUB_IEEE1275_MODULE_BASE): Removed.
9700 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
9702 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
9705 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
9707 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
9709 (grub_elf64_load_hook_t): Likewise.
9710 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
9713 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
9715 * kern/mm.c: Update copyright.
9716 (grub_mm_debug): Correct syntax error.
9717 (grub_mm_dump_free): New function.
9718 (grub_debug_free): Call `grub_free'.
9719 * include/grub/mm.h: Update copyright.
9720 (grub_mm_dump_free): Add declaration.
9722 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
9724 * include/grub/ieee1275/ieee1275.h: Update copyright.
9725 * kern/powerpc/ieee1275/init.c: Likewise.
9726 * kern/powerpc/ieee1275/openfw.c: Likewise.
9728 * loader/powerpc/ieee1275/linux.c: Likewise.
9729 * include/grub/elfload.h: Likewise.
9730 * kern/elf.c: Likewise.
9731 (grub_elf32_load): Pass `base' and `size' parameters. Update all
9733 (grub_elf64_load): Likewise.
9734 (grub_elf32_load_segment): Move to a nested function.
9735 (grub_elf64_load_segment): Likewise.
9737 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
9739 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
9741 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
9742 (grub_heap_len): Likewise.
9743 (HEAP_SIZE): New macro.
9744 (grub_claim_heap): New function.
9745 (grub_machine_init): Don't claim heap directly. Call
9747 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
9748 (grub_available_iterate): New function.
9750 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
9752 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
9753 * configure.ac: Use it for testing the HOST and TARGET compilers.
9755 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
9757 * Makefile.in (enable_grub_emu): New variable.
9758 * configure.ac (--enable-grub-emu): New option.
9759 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
9760 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
9761 * conf/i386-pc.rmk: Likewise.
9762 * conf/powerpc-ieee1275.rmk: Likewise.
9763 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
9765 2006-12-12 Marco Gerards <marco@gnu.org>
9767 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
9769 * kern/env.c (grub_env_unset): Don't free the member `value' when
9770 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
9773 * normal/main.c (current_menu): Removed.
9774 (free_menu): Unset the `menu' environment variable.
9775 (grub_normal_menu_addentry): Make use of the environment variable
9776 `menu', instead of using the global `current_menu'. Allocate
9777 memory for the sourcecode of this entry.
9778 (read_config_file): New argument `nested', changed all callers.
9779 Only in the case of a new context, initialize a new menu. Set the
9780 `menu' environment variable.
9781 (grub_normal_execute): Don't set and unset the environment
9782 variable `menu' here anymore. Only free the menu when leaving the
9785 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
9788 2006-12-11 Marco Gerards <marco@gnu.org>
9790 * normal/menu_entry.c (run): Fix off by one bug so the last line
9791 is executed. Move the loader check to outside the loop.
9793 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
9795 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
9797 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
9799 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
9800 the number of sectors. Reported by Andrey Shuvikov
9801 <mr_hyro@yahoo.com>.
9803 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
9805 * kern/disk.c (grub_disk_read): When there is a read error, always
9806 try to read only the necessary data.
9808 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
9810 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
9812 [GRUB_UTIL] (grub_raid_fini): Likewise.
9813 [GRUB_UTIL] (grub_lvm_init): Likewise.
9814 [GRUB_UTIL] (grub_lvm_fini): Likewise.
9815 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
9816 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
9817 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
9818 and grub_raid_fini().
9820 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
9822 * include/grub/types.h (__unused): Rename to UNUSED.
9823 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
9824 (grub_elf64_size): Likewise.
9826 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
9828 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
9829 grub_error_push and grub_error_pop in the error-handling path.
9830 (grub_elf32_load_segment): Only call grub_file_read with non-zero
9833 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
9835 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
9836 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9838 (kernel_elf_SOURCES): Likewise.
9839 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
9840 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
9841 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
9842 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
9843 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
9844 (elf_mod_SOURCES): New variable.
9845 (elf_mod_CFLAGS): Likewise.
9846 (elf_mod_LDFLAGS): Likewise.
9847 * include/grub/types.h (__unused): New macro.
9848 * include/grub/elfload.h: New file.
9849 * kern/elf.c: Likewise.
9850 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
9851 (ELF32_LOADMASK): New macro.
9852 (ELF64_LOADMASK): Likewise.
9854 (grub_linux_load32): New function.
9855 (grub_linux_load64): Likewise.
9856 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
9857 Use grub_elf_t instead of grub_file_t.
9859 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
9861 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
9862 `catch_result' to struct set_color_args.
9864 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
9866 * normal/menu.c: Include grub/script.h.
9867 * normal/menu_entry.c: Likewise.
9868 * include/grub/normal.h: Do not include grub/script.h.
9870 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
9872 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
9874 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
9876 * kern/disk.c (grub_disk_open): Print debug messages when opening a
9878 (grub_disk_close): Print debug messages when closing a disk.
9879 (grub_disk_read): Print debug messages when disk read fails.
9880 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
9882 * kern/partition.c: Include misc.h.
9883 (grub_partition_iterate): Print debug messages when detecting
9886 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
9888 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
9890 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
9892 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
9894 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9895 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
9897 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
9899 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
9900 instead of sizeof(lv). Patch by Michael Guntsche.
9902 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
9904 * disk/lvm.c: Rename VGS to VG_LIST.
9905 (grub_lvm_iterate): Change VGS->LV to VG-LV.
9906 (grub_lvm_open): Likewise.
9907 Thanks to Michael Guntsche for finding this bug.
9909 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
9911 * configure.ac (AC_INIT): Bumped to 1.95.
9913 2006-10-14 Robert Millan <rmh@aybabtu.com>
9915 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
9916 with "/dev/.static/dev/md".
9918 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
9920 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
9921 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
9922 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
9923 DRIVE_NAME are always freed.
9925 * util/i386/pc/biosdisk.c (make_device_name): Add one into
9926 DOS_PART, as a DOS partition is counted from one instead of zero
9927 now. Reported by Robert Millan.
9929 2006-10-14 Robert Millan <rmh@aybabtu.com>
9931 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
9932 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
9933 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
9934 string returned by grub_guess_root_device.
9935 * util/i386/pc/grub-setup.c: Likewise.
9936 * util/i386/pc/grub-probefs.c: Likewise.
9938 * util/i386/pc/grub-probefs.c: Rename to ...
9939 * util/i386/pc/grub-probe.c: ... this.
9940 * DISTLIST: Remove grub-probefs, add grub-probe.
9941 * conf/i386-efi.rmk: Likewise.
9942 * conf/i386-pc.rmk: Likewise.
9943 * util/i386/pc/grub-install.in: Likewise.
9945 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
9946 choose which information we want to print.
9948 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
9950 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
9951 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
9952 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
9953 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
9954 video/readers/tga.c and video/i386/pc/vbeutil.c.
9956 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
9958 Added support for RAID and LVM.
9960 * disk/lvm.c: New file.
9961 * disk/raid.c: Likewise.
9962 * include/grub/lvm.h: Likewise.
9963 * include/grub/raid.h: Likewise.
9964 * include/grub/util/lvm.h: Likewise.
9965 * include/grub/util/raid.h: Likewise.
9966 * util/lvm.c: Likewise.
9967 * util/raid.c: Likewise.
9969 * include/grub/disk.h (grub_disk_dev_id): Add
9970 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
9971 (grub_disk_get_size): New prototype.
9972 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
9973 returns a partition.
9974 (grub_disk_get_size): New function.
9976 * kern/i386/pc/init.c (make_install_device): Copy the prefix
9977 verbatim if grub_install_dos_part is -2.
9979 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
9982 * util/i386/pc/grub-setup.c (setup): New argument
9983 MUST_EMBED. Force embedding of GRUB when the argument is
9984 true. Close FILE before returning.
9985 (main): Add support for RAID and LVM.
9987 * conf/common.rmk: Add RAID and LVM modules.
9988 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
9990 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
9992 * kern/misc.c (grub_strstr): New function.
9993 * include/grub/misc.h (grub_strstr): New prototype.
9995 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
9997 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
9999 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
10001 * kern/misc.c (grub_strtoull): Guess the base only if not
10004 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
10006 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
10009 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
10011 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
10013 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
10014 Remove `flags' argument. All callers changed.
10015 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
10016 (IEEE1275_IHANDLE_INVALID): New variable.
10017 (IEEE1275_CELL_INVALID): New variable.
10018 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
10019 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
10020 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
10021 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
10022 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
10023 codes from Open Firmware. All callers updated.
10024 (grub_ieee1275_next_property): Directly return Open Firmware return
10026 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10027 Standardize error checking from `grub_ieee1275_get_property'.
10028 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
10029 `devalias' to `aliases'. Correct comments. Consolidate error paths.
10031 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
10033 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
10034 `instance_to_package_args' to `instance_to_path_args'.
10036 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
10037 `grub_ieee1275_chosen'.
10039 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
10040 `grub_ieee1275_interpret'.
10042 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
10044 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
10046 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
10048 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
10049 (__cmpdi): Likewise.
10051 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
10052 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
10055 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
10057 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
10058 to type `grub_ssize_t'.
10059 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
10061 2006-09-22 Marco Gerards <marco@gnu.org>
10063 * normal/script.c (grub_script_create_cmdmenu): Skip leading
10066 2006-09-22 Marco Gerards <marco@gnu.org>
10068 * commands/echo.c: New file.
10070 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
10072 * conf/common.rmk (echo_mod_SOURCES): New variable.
10073 (echo_mod_CFLAGS): Likewise.
10074 (echo_mod_LDFLAGS): Likewise.
10076 2006-09-22 Marco Gerards <marco@gnu.org>
10078 * normal/main.c (get_line): Malloc memory instead of using
10079 preallocated memory. Removed the arguments `cmdline' and
10080 `max_len'. Updated all callers.
10082 2006-09-22 Marco Gerards <marco@gnu.org>
10084 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
10085 (normal_mod_DEPENDENCIES): Likewise.
10087 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
10088 (normal_mod_DEPENDENCIES): Likewise.
10090 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
10092 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
10094 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
10096 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
10097 (normal_mod_DEPENDENCIES): Likewise.
10098 * conf/i386-pc.mk: Regenerate.
10099 * conf/i386-efi.mk: Likewise
10100 * conf/common.mk: Likewise.
10101 * conf/powerpc-ieee1275.mk: Likewise.
10102 * conf/sparc64-ieee1275.mk: Likewise.
10104 2006-09-22 Robert Millan <rmh@aybabtu.com>
10106 Sync with i386 version.
10107 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
10108 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
10110 2006-09-21 Robert Millan <rmh@aybabtu.com>
10112 Import from GRUB Legacy (lib/device.c):
10113 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
10114 (init_device_map) [__linux__]: Add support for I2O devices.
10116 2006-09-14 Marco Gerards <marco@gnu.org>
10118 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
10121 2006-09-14 Robert Millan <rmh@aybabtu.com>
10123 * util/i386/pc/grub-install.in: Skip menu.lst when removing
10126 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
10128 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
10129 before adding it to device.map.
10131 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
10133 * genmk.rb: Let GCC generate dependencies the first time it
10134 compiles a file; using the -MD option.
10135 * conf/common.mk: Regenerate.
10136 * conf/i386-pc.mk: Likewise.
10137 * conf/i386-efi.mk: Likewise.
10138 * conf/powerpc-ieee1275.mk: Likewise.
10139 * conf/sparc64-ieee1275.mk: Likewise.
10141 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
10143 Move the prototypes of grub_setjmp and grub_longjmp to
10144 cpu/setjmp.h, so that each architecture may specify different
10147 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
10148 (grub_longjmp): Likewise.
10149 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
10150 (grub_longjmp): Likewise.
10151 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
10152 (grub_longjmp): Likewise.
10154 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
10155 [!GRUB_UTIL] (grub_longjmp): Removed.
10157 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
10159 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
10160 "color!" method does not return any value.
10162 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
10164 * include/grub/bitmap.h: New file.
10166 * include/grub/i386/pc/vbeutil.h: Likewise.
10168 * video/bitmap.c: Likewise.
10170 * video/readers/tga.c: Likewise.
10172 * video/i386/pc/vbeutil.c: Likewise.
10174 * commands/videotest.c: Code cleanup and updated to reflect to new
10177 * term/gfxterm.c: Likewise.
10179 * video/video.c: Likewise.
10181 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
10182 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
10183 (bitmap_mod_SOURCES): New entry.
10184 (bitmap_mod_CFLAGS): Likewise.
10185 (bitmap_mod_LDFLAGS): Likewise.
10186 (tga_mod_SOURCES): Likewise.
10187 (tga_mod_CFLAGS): Likewise.
10188 (tga_mod_LDFLAGS): Likewise.
10190 * include/grub/video.h (grub_video_blit_operators): New enum type.
10191 (grub_video_render_target): Changed as forward declaration and moved
10192 actual definition to be video driver specific.
10193 (grub_video_adapter.blit_bitmap): Added blitting operator.
10194 (grub_video_adapter.blit_render_target): Likewise.
10195 (grub_video_blit_bitmap): Likewise.
10196 (grub_video_blit_render_target): Likewise.
10198 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
10199 driver specific render target definition.
10200 (grub_video_vbe_map_rgba): Added driver internal helper.
10201 (grub_video_vbe_unmap_color): Updated to use
10202 grub_video_i386_vbeblit_info.
10203 (grub_video_vbe_get_video_ptr): Likewise.
10205 * include/grub/i386/pc/vbeblit.h
10206 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
10207 grub_video_i386_vbeblit_info.
10208 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
10209 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
10210 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
10211 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
10212 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
10213 (grub_video_i386_vbeblit_index_index): Likewise.
10214 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
10215 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
10216 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
10217 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
10219 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
10222 * video/i386/pc/vbeblit.c: Updated to reflect changes on
10223 include/grub/i386/pc/vbeblit.h.
10225 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
10226 Updated to use grub_video_i386_vbeblit_info.
10227 (grub_video_i386_vbefill_R8G8B8): Likewise.
10228 (grub_video_i386_vbefill_index): Likewise.
10229 (grub_video_i386_vbefill): Added generic filler.
10231 * video/i386/pc/vbefill.c: Updated to reflect changes on
10232 include/grub/i386/pc/vbefill.h.
10234 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
10235 grub_video_i386_vbeblit_info.
10236 (grub_video_vbe_unmap_color): Likewise.
10237 (grub_video_vbe_blit_glyph): Likewise.
10238 (grub_video_vbe_scroll): Likewise.
10239 (grub_video_vbe_draw_pixel): Removed function.
10240 (grub_video_vbe_get_pixel): Likewise.
10241 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
10242 updated code to use it.
10243 (common_blitter): Added common blitter for render target and bitmap.
10244 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
10245 (grub_video_vbe_blit_render_target): Likewise.
10247 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
10249 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
10250 is in text mode if there is no console control protocol instance
10253 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
10255 * include/grub/video.h: Code cleanup.
10257 * include/grub/i386/pc/vbe.h: Likewise.
10259 * video/i386/pc/vbe.c: Likewise.
10261 * video/i386/pc/vbeblit.c: Likewise.
10263 * video/i386/pc/vbefill.c: Likewise.
10265 * video/video.c: Likewise. Also added more comments.
10267 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
10269 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
10270 (struct grub_biosdisk_dap): Likewise.
10272 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
10273 linkage settings for all functions.
10275 2006-07-12 Marco Gerards <marco@gnu.org>
10277 * configure.ac (--enable-mm-debug): Fix typo.
10279 * genkernsyms.sh.in: Use proper quoting for `CC'.
10281 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
10283 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
10284 (normal_mod_ASFLAGS): Remove "-m32".
10286 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
10288 * util/misc.c: Include config.h.
10289 [!HAVE_MEMALIGN]: Do not include malloc.h.
10290 (grub_memalign): Use posix_memalign, if present. Then, use
10291 memalign, if present. Otherwise, emit an error.
10293 * util/grub-emu.c: Do not include malloc.h.
10295 * include/grub/util/misc.h: Include unistd.h. This is required for
10296 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
10297 D. Eades III <hde@foobar-qux.org>.
10299 * configure.ac (AC_GNU_SOURCE): Added.
10300 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
10303 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
10305 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
10306 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
10308 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
10310 * include/grub/types.h (grub_host_addr_t): Rename to
10311 grub_target_addr_t.
10312 (grub_host_off_t): Rename to grub_target_off_t.
10313 (grub_host_size_t): Rename to grub_target_size_t.
10314 (grub_host_ssize_t): Rename to grub_target_ssize_t.
10315 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
10317 * include/grub/kernel.h (struct grub_module_header): Change type
10318 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
10319 (grub_module_info): Likewise.
10321 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
10323 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
10324 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
10325 Velazquez <jesus.velazquez@gmail.com>.
10327 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
10329 Count partitions from 1 instead of 0 in the string representation
10330 of partitions. Still use 0-based internally.
10332 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
10333 (sun_partition_map_iterate): Use grub_partition_t instead of
10334 struct grub_partition *. Cast DESC->START_CYLINDER to
10335 grub_uint64_t after converting the endian.
10336 (sun_partition_map_probe): Subtract 1 for PARTNUM.
10337 (sun_partition_map_get_name): Add 1 to P->INDEX.
10339 * partmap/pc.c (grub_partition_parse): Subtract 1 for
10341 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
10343 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
10344 zero instead of one.
10345 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
10346 (gpt_partition_map_get_name): Add 1 into P->INDEX.
10348 * partmap/apple.c (apple_partition_map_iterate): Change the type
10349 of POS to unsigned.
10350 (apple_partition_map_probe): Subtract 1 for PARTNUM.
10351 (apple_partition_map_get_name): Add 1 into P->INDEX.
10353 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
10354 of POS to unsigned.
10355 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
10356 calculate the offset of a partition.
10357 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
10358 (amiga_partition_map_get_name): Add 1 into P->INDEX.
10360 * partmap/acorn.c (acorn_partition_map_find): Change the type of
10361 SECTOR to grub_disk_addr_t.
10362 (acorn_partition_map_iterate): Likewise.
10363 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
10364 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
10366 (acorn_partition_map_get_name): Add 1 into P->INDEX.
10368 * kern/i386/pc/init.c (make_install_device): Add 1 into
10369 GRUB_INSTALL_DOS_PART.
10371 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
10374 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
10376 Clean up the code to support 64-bit addressing in disks and
10377 files. This change is not enough for filesystems yet.
10379 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
10380 type of "start" to grub_uint64_t.
10381 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
10382 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
10383 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
10386 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
10387 to grub_disk_addr_t.
10389 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
10392 * partmap/pc.c (pc_partition_map_iterate): Likewise.
10394 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
10397 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
10399 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
10401 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
10403 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
10404 to grub_off_t, to detect an error from grub_file_seek.
10405 (grub_multiboot_load_elf32): Likewise.
10407 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
10408 maximum unsigned long value when an overflow is detected.
10409 (grub_strtoull): New function.
10410 (grub_divmod64): Likewise.
10411 (grub_lltoa): use grub_divmod64.
10413 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
10415 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
10416 the pointer to next character. Use grub_strtoull instead of
10418 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
10419 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
10422 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
10423 return value is signed.
10424 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
10425 test if OFFSET is less than zero, as OFFSET is unsigned now.
10427 * kern/disk.c (struct grub_disk_cache): Change the type of
10428 "sector" to grub_disk_addr_t.
10429 (grub_disk_cache_get_index): Change the type of SECTOR to
10430 grub_disk_addr_t. Calculate the hash with SECTOR casted to
10431 unsigned after shifting.
10432 (grub_disk_cache_invalidate): Change the type of SECTOR to
10434 (grub_disk_cache_unlock): Likewise.
10435 (grub_disk_cache_store): Likewise.
10436 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
10437 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
10438 grub_disk_addr_t and grub_uint64_t, respectively.
10439 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
10440 body, as the value of OFFSET is tweaked by
10441 grub_disk_check_range. Change the types of START_SECTOR, LEN and
10442 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
10444 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
10445 body, as the value of OFFSET is tweaked by
10446 grub_disk_check_range. Change the types of LEN and N to
10449 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
10450 and "saved_offset" to grub_off_t.
10451 (test_header): Cast BUF to char *.
10452 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
10454 (grub_gzio_read): Change the types of OFFSET and SIZE to
10455 grub_off_t and grub_size_t, respectively.
10457 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
10459 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
10460 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
10461 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
10462 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
10463 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
10465 * include/grub/types.h (grub_off_t): Unconditionally set to
10467 (grub_disk_addr_t): Changed to grub_uint64_t.
10469 * include/grub/partition.h (struct grub_partition): Change the
10470 types of "start", "len" and "offset" to grub_disk_addr_t,
10471 grub_uint64_t and grub_disk_addr_t, respectively.
10472 (grub_partition_get_start): Return grub_disk_addr_t.
10473 (grub_partition_get_len): Return grub_uint64_t.
10475 * include/grub/misc.h (grub_strtoull): New prototype.
10476 (grub_divmod64): Likewise.
10478 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
10479 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
10480 grub_off_t, respectively.
10481 All callers and references changed.
10483 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
10484 grub_size_t in "read".
10485 All callers and references changed.
10487 * include/grub/file.h (struct grub_file): Change the types of
10488 "offset" and "size" to grub_off_t and grub_off_t,
10489 respectively. Change the type of SECTOR to grub_disk_addr_t in
10491 (grub_file_read): Change the type of LEN to grub_size_t.
10492 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
10494 (grub_file_size): Return grub_off_t.
10495 (grub_file_tell): Likewise.
10496 All callers and references changed.
10498 * include/grub/disk.h (struct grub_disk_dev): Change the types of
10499 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
10501 (struct grub_disk): Change the type of "total_sectors" to
10502 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
10504 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
10505 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
10506 (grub_disk_write): Likewise.
10507 All callers and references changed.
10509 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
10510 char * for grub_strncmp to silence gcc.
10511 (grub_iso9660_mount): Likewise.
10512 (grub_iso9660_mount): Likewise.
10513 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
10515 (grub_iso9660_iterate_dir): Likewise.
10516 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
10518 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
10519 LEN to grub_disk_addr_t and grub_size_t, respectively.
10521 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
10523 * fs/jfs.c (grub_jfs_read_file): Likewise.
10525 * fs/minix.c (grub_jfs_read_file): Likewise.
10527 * fs/sfs.c (grub_jfs_read_file): Likewise.
10529 * fs/ufs.c (grub_jfs_read_file): Likewise.
10531 * fs/xfs.c (grub_jfs_read_file): Likewise.
10533 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
10534 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
10537 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
10538 BLKNR to -1 instead of returning GRUB_ERRNO.
10539 (grub_ext2_read_file): Change the types of SECTOR and
10540 LEN to grub_disk_addr_t and grub_size_t, respectively.
10542 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
10543 LEN to grub_disk_addr_t and grub_size_t, respectively.
10545 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
10548 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
10549 string. Do not cast SECTOR explicitly.
10551 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
10552 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
10553 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
10554 grub_disk_addr_t and grub_size_t, respectively. If the sector is
10555 over 2TB and LBA mode is not supported, raise an error.
10556 (get_safe_sectors): New function.
10557 (grub_biosdisk_read): Use get_safe_sectors.
10558 (grub_biosdisk_write): Likewise.
10560 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
10561 (grub_efidisk_write): Likewise.
10563 * disk/loopback.c (delete_loopback): Cosmetic changes.
10564 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
10566 (grub_loopback_open): Likewise.
10567 (grub_loopback_read): Likewise. Also, change the type of POS to
10568 grub_off_t, and fix the usage of grub_memset.
10570 * commands/i386/pc/play.c: Include grub/machine/time.h.
10572 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
10575 * commands/configfile.c: Include grub/env.h.
10577 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
10578 GRUB_ERRNO directly instead. Change the type of POS to
10579 grub_off_t. Follow the coding standard.
10581 * commands/blocklist.c: Include grub/partition.h.
10582 (grub_cmd_blocklist): Return an error if the underlying device is
10583 not a disk. Take the starting sector of a partition into account,
10584 if a partition is used.
10586 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
10588 (lba_mode): Support 64-bit addresses.
10589 (chs_mode): Likewise.
10590 (copy_buffer): Adapted to the new offsets of a length field and a
10592 (blocklist_default_start): Allocate 64-bit space.
10594 * boot/i386/pc/boot.S (force_lba): Removed.
10595 (boot_drive): Moved to under KERNEL_SECTOR.
10596 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
10598 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
10600 (lba_mode): Refactored to support a 64-bit address. More size
10602 (setup_sectors): Likewise.
10604 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
10606 * DISTLIST: Added include/grub/i386/linux.h. Removed
10607 include/grub/i386/pc/linux.h
10609 * configure.ac (AC_INIT): Bumped to 1.94.
10611 * config.guess: Updated from gnulib.
10612 * config.sub: Likewise.
10613 * install-sh: Likewise.
10614 * mkinstalldirs: Likewise.
10616 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
10618 * conf/common.rmk (grub_modules_init.lst): Depended on
10619 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
10622 * genmk.rb (PModule::rule): Reverted the previous change.
10624 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
10626 * conf/common.rmk (grub_modules_init.lst): Depends on
10627 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
10628 that the target does not exist before producing.
10629 (grub_modules_init.h): Remove the target before generating.
10630 (grub_emu_init.c): Likewise.
10632 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
10634 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
10636 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
10637 for the target-specific tests. Make sure that we also have the
10638 up-to-date target variables for those tests.
10640 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
10642 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
10643 (PModule::rule): Likewise.
10645 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
10647 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
10648 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
10649 target-specific flags should be prefixed.
10650 (PModule::rule): Likewise.
10652 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
10654 * configure.ac (CMP): Check if cmp is available explicitly.
10656 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
10658 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
10659 (target_cpu): New variable.
10660 (pkglibdir): Use target_cpu instead of host_cpu.
10662 * util/i386/pc/grub-install.in (host_cpu): Removed.
10663 (target_cpu): New variable.
10664 (pkglibdir): Use target_cpu instead of host_cpu.
10666 * util/genmoddep.c: Removed.
10668 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
10669 instead of GRUB_HOST_SIZEOF_VOID_P.
10670 * kern/dl.c: Likewise.
10672 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
10674 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
10675 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
10676 (GRUB_TARGET_SIZEOF_LONG): ... this.
10677 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
10678 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
10679 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
10681 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
10682 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
10683 (GRUB_TARGET_SIZEOF_LONG): ... this.
10684 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
10685 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
10686 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
10688 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
10689 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
10690 (GRUB_TARGET_SIZEOF_LONG): ... this.
10691 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
10692 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
10694 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
10695 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
10696 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
10697 instead of GRUB_HOST_SIZEOF_LONG.
10698 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
10699 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
10700 GRUB_CPU_WORDS_BIGENDIAN.
10701 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
10702 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
10705 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
10706 (genmoddep_SOURCES): Likewise.
10707 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
10708 (genmoddep_SOURCES): Likewise.
10709 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
10710 (genmoddep_SOURCES): Likewise.
10711 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
10713 (genmoddep_SOURCES): Likewise.
10715 * genmoddep.awk: New file.
10717 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
10718 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
10719 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
10720 (PModule::rule): Likewise.
10721 (Program::rule): Likewise.
10722 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
10723 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
10726 * configure.ac: Rewritten intensively to use host and target
10727 instead of build and host, respectively.
10729 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
10730 (host_cpu): Removed.
10731 (target_cpu): New variable.
10732 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
10733 (BUILD_CC): Removed.
10734 (BUILD_CFLAGS): Likewise.
10735 (BUILD_CPPFLAGS): Likewise.
10736 (TARGET_CC): New variable.
10737 (TARGET_CFLAGS): Likewise.
10738 (TARGET_CPPFLAGS): Likewise.
10739 (TARGET_LDFLAGS): Likewise.
10741 (include): Use target_cpu instead of host_cpu.
10742 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
10744 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
10746 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
10748 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
10749 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
10750 field 'false' to 'exec_on_false'.
10751 (grub_script_create_cmdif): Renamed argument names to reflect above
10754 * normal/execute.c (grub_script_execute_cmdif): Likewise.
10756 * normal/script.c (grub_script_create_cmdif): Likewise.
10758 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
10760 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
10762 (grub_hfsplus_btree_recptr): Likewise.
10763 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
10764 FILEBLOCK both to pass a block number and store next block
10766 (grub_hfsplus_read_block): Rewritten heavily to support an extent
10767 overflow file correctly. Specify errors appropriately, because
10768 fshelp expects that GRUB_ERRNO is set when fails. Reuse
10769 grub_hfsplus_btree_recptr to get the pointer to a found key.
10770 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
10773 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
10775 (_linux_mod_SOURCES): New variable.
10776 (_linux_mod_CFLAGS): Likewise.
10777 (_linux_mod_LDFLAGS): Likewise.
10778 (linux_mod_SOURCES): Likewise.
10779 (linux_mod_CFLAGS): Likewise.
10780 (linux_mod_LDFLAGS): Likewise.
10782 * DISTLIST: Added loader/i386/efi/linux.c,
10783 loader/i386/efi/linux_normal.c and
10784 include/grub/i386/efi/loader.h.
10786 * loader/i386/efi/linux.c: New file.
10787 * loader/i386/efi/linux_normal.c: Likewise.
10788 * include/grub/i386/efi/loader.h: Likewise.
10790 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
10792 * commands/blocklist.c: New file.
10794 * DISTLIST: Added commands/blocklist.c.
10796 * term/efi/console.c (grub_console_highlight_color): Use a lighter
10797 color for the background, and a darker color for the foreground.
10798 (grub_console_checkkey): Return READ_KEY.
10799 (grub_console_cls): Set the background to
10800 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
10802 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
10804 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
10805 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
10807 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
10810 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
10811 BG. The spec is wrong again.
10813 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
10815 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
10817 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
10818 commands/blocklist.c.
10819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10821 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
10822 (blocklist_mod_SOURCES): New variable.
10823 (blocklist_mod_CFLAGS): Likewise.
10824 (blocklist_mod_LDFLAGS): Likewise.
10826 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
10828 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
10830 (lba_mode): Use %eax more intensively to reduce the code size.
10832 2006-05-20 Marco Gerards <marco@gnu.org>
10834 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
10836 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
10838 (script): Accept leading newlines.
10839 (newlines): New rule to describe 0 or more newlines.
10840 (commands): Accept `command' with trailing newline. Fixed the
10841 order in which arguments were passed to `grub_script_add_cmd'.
10842 Accept commands separated by newlines.
10843 (function): Changed to accept newlines.
10844 (menuentry) Rewritten.
10846 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
10847 front of the list, instead of to the end.
10849 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
10851 * util/i386/pc/grub-install.in (bindir): New variable.
10852 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
10853 Shaver <lbgwjl@gmail.com>.
10855 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
10857 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
10858 grub/machine/linux.h
10859 * loader/i386/pc/linux.c: Likewise.
10861 * include/grub/i386/pc/linux.h: Moved to ...
10862 * include/grub/i386/linux.h: ... here.
10864 * include/grub/i386/linux.h (struct linux_kernel_params): New
10867 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
10869 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
10871 (grub_video_vbe_blit_glyph): Likewise.
10872 (grub_video_vbe_blit_bitmap): Likewise.
10873 (grub_video_vbe_blit_render_target): Likewise.
10875 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
10877 * configure.ac (--with-platform): Properly quote the square
10880 2006-05-08 Marco Gerards <marco@gnu.org>
10882 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
10884 (kernel_elf_HEADERS): ...to this. Updated all users.
10885 (grubof_symlist.c): Renamed from this...
10886 (kernel_elf_symlist.c): ...to this. Updated all users.
10887 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
10888 (grubof_SOURCES): Renamed from this...
10889 (kernel_elf_SOURCES): ...to this.
10890 (grubof_HEADERS): Renamed from this...
10891 (kernel_elf_HEADERS): ...to this.
10892 (grubof_CFLAGS): Renamed from this...
10893 (kernel_elf_CFLAGS): ...to this.
10894 (grubof_ASFLAGS): Renamed from this...
10895 (kernel_elf_ASFLAGS): ...to this.
10896 (grubof_LDFLAGS): Renamed from this...
10897 (kernel_elf_LDFLAGS): ...to this.
10899 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
10901 (kernel_elf_HEADERS): ...to this. Updated all users.
10902 (grubof_symlist.c): Renamed from this...
10903 (kernel_elf_symlist.c): ...to this. Updated all users.
10904 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
10905 (grubof_SOURCES): Renamed from this...
10906 (kernel_elf_SOURCES): ...to this.
10907 (grubof_HEADERS): Renamed from this...
10908 (kernel_elf_HEADERS): ...to this.
10909 (grubof_CFLAGS): Renamed from this...
10910 (kernel_elf_CFLAGS): ...to this.
10911 (grubof_ASFLAGS): Renamed from this...
10912 (kernel_elf_ASFLAGS): ...to this.
10913 (grubof_LDFLAGS): Renamed from this...
10914 (kernel_elf_LDFLAGS): ...to this.
10916 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
10917 `kernel.elf' instead of `grubof'.
10919 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
10921 Add --with-platform to configure. Use pkglibdir instead of
10922 pkgdatadir. This is reported by Roger Leigh.
10924 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
10925 (host_vendor): Likewise.
10926 (host_os): Likewise.
10927 (pkgdatadir): Likewise.
10928 (platform): New variable.
10929 (pkglibdir): Likewise.
10930 Use PKGLIBDIR instead of PKGDATADIR.
10932 * util/i386/pc/grub-install.in (datadir): Removed.
10933 (host_vendor): Likewise.
10934 (host_os): Likewise.
10935 (pkgdatadir): Likewise.
10936 (platform): New variable.
10937 (pkglibdir): Likewise.
10938 Use PKGLIBDIR instead of PKGDATADIR.
10940 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
10941 instead of GRUB_DATADIR.
10943 * util/i386/pc/grub-mkimage.c (usage): Likewise.
10945 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10948 * configure.ac (--with-platform): New option.
10949 Use PLATFORM instead of HOST_VENDOR to specify a platform.
10951 * Makefile.in: Include a makefile based on PLATFORM instead of
10953 (pkgdatadir): Not appended by the machine type.
10954 (pkglibdir): Appended by the machine type.
10955 (host_vendor): Removed.
10956 (platform): New variable.
10957 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
10958 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
10959 (uninstall): Likewise.
10961 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
10963 Use the environment context in the menu. Remove the commands
10964 "default" and "timeout", and use variables instead.
10966 * normal/menu.c: Include grub/env.h.
10967 (print_entry): Cast TITLE to silence gcc.
10968 (get_timeout): New function.
10969 (set_timeout): Likewise.
10970 (get_entry_number): Likewise.
10971 (run_menu): Use a default entry, a fallback entry and a timeout
10972 in the environment variables "default", "fallback" and
10973 "timeout". Also, tweak the default entry if it is not within the
10974 current menu entries.
10975 (grub_menu_run): Use a fallback entry in the environment variable
10978 * normal/main.c (read_config_file): Do not initialize
10979 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
10981 (grub_normal_execute): Use a data slot to store the menu.
10983 * include/grub/normal.h (struct grub_menu): Removed default_entry,
10984 fallback_entry and timeout.
10985 (struct grub_menu_list): Removed.
10986 (grub_menu_list_t): Likewise.
10987 (struct grub_context): Likewise.
10988 (grub_context_t): Likewise.
10989 (grub_context_get): Likewise.
10990 (grub_context_get_current_menu): Likewise.
10991 (grub_context_push_menu): Likewise.
10992 (grub_context_pop_menu): Likewise.
10993 (grub_default_init): Likewise.
10994 (grub_default_fini): Likewise.
10995 (grub_timeout_init): Likewise.
10996 (grub_timeout_fini): Likewise.
10998 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
11000 (normal_mod_SOURCES): Removed normal/context.c.
11002 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
11003 commands/default.c, commands/timeout.c and normal/context.c.
11004 (normal_mod_SOURCES): Removed normal/context.c.
11006 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
11007 commands/timeout.c and normal/context.c.
11008 (normal_mod_SOURCES): Removed normal/context.c.
11010 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
11011 commands/default.c, commands/timeout.c and normal/context.c.
11012 (normal_mod_SOURCES): Removed normal/context.c.
11014 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
11016 (default_mod_SOURCES): Removed.
11017 (default_mod_CFLAGS): Likewise.
11018 (default_mod_LDFLAGS): Likewise.
11019 (timeout_mod_SOURCES): Removed.
11020 (timeout_mod_CFLAGS): Likewise.
11021 (timeout_mod_LDFLAGS): Likewise.
11023 * DISTLIST: Removed commands/default.c, commands/timeout.c and
11026 * commands/default.c: Removed.
11027 * commands/timeout.c: Likewise.
11028 * normal/context.c: Likewise.
11030 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
11032 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
11034 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
11036 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
11037 "next" to "prev" for readability.
11038 (struct grub_env_sorted_var): New struct.
11039 (grub_env_context): Renamed to ...
11040 (initial_context): ... this.
11041 (grub_env_var_context): Renamed to ...
11042 (current_context): ... this.
11043 (grub_env_find): Look only at CURRENT_CONTEXT.
11044 (grub_env_context_open): Rewritten to copy exported variables from
11046 (grub_env_context_close): Rewritten according to the new
11047 scheme. Also, add an assertion to prevent the initial context from
11049 (grub_env_insert): Removed the code for the sorted list.
11050 (grub_env_remove): Likewise.
11051 (grub_env_export): Simply mark the variable with
11052 GRUB_ENV_VAR_GLOBAL.
11053 (grub_env_set): A cosmetic change for naming consistency.
11054 (grub_env_get): Likewise.
11055 (grub_env_unset): Likewise.
11056 (grub_env_iterate): Rewritten to sort variables within this
11058 (grub_register_variable_hook): Fixed for naming consistency. Call
11059 grub_env_find again, only if NAME is not found at the first time.
11060 (mangle_data_slot_name): New function.
11061 (grub_env_set_data_slot): Likewise.
11062 (grub_env_get_data_slot): Likewise.
11063 (grub_env_unset_data_slot): Likewise.
11065 * include/grub/env.h (grub_env_var_type): New enum.
11066 (GRUB_ENV_VAR_LOCAL): New constant.
11067 (GRUB_ENV_VAR_GLOBAL): Likewise.
11068 (GRUB_ENV_VAR_DATA): Likewise.
11069 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
11071 (grub_env_set): Replace VAR with NAME for consistency.
11072 (grub_register_variable_hook): Likewise.
11073 (grub_env_export): Specify the name of the argument.
11074 (grub_env_set_data_slot): New prototype.
11075 (grub_env_get_data_slot): Likewise.
11076 (grub_env_unset_data_slot): Likewise.
11078 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
11080 Extend the loader so that GRUB can accept a loader which comes
11081 back to GRUB when a loaded image exits. Also, this change adds
11082 support for a chainloader on EFI.
11084 * term/efi/console.c: Include grub/misc.h.
11085 (grub_console_checkkey): Display a scan code on the top for
11086 debugging. This will be removed once the EFI port gets stable.
11087 Correct the scan code mapping.
11089 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
11090 allocate memory from larger regions, in order to reduce the number
11091 of allocated regions. Otherwise, the MacOSX loader panics.
11092 (filter_memory_map): Avoid less than 1MB for compatibility with
11094 (add_memory_regions): Allocate from the tail of a region, if
11095 possible, to avoid allocating a region near to 1MB, for the MacOSX
11098 * kern/efi/init.c (grub_efi_set_prefix): Specify
11099 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
11101 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
11102 argument IMAGE_HANDLE and specify it to get a loaded image.
11103 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
11104 grub_efi_get_loaded_image.
11105 (grub_efi_get_filename): Divide the length by the size of
11107 (grub_efi_get_device_path): New function.
11108 (grub_efi_print_device_path): Print End Device Path nodes. Divide
11109 the length by the size of grub_efi_char16_t for a file path device
11112 * kern/loader.c (grub_loader_noreturn): New variable.
11113 (grub_loader_set): Accept a new argument NORETURN. Set
11114 GRUB_LOADER_NORETURN to NORETURN.
11115 All callers changed.
11116 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
11119 * include/grub/efi/efi.h (grub_efi_get_device_path): New
11121 (grub_efi_get_loaded_image): Take an argument to specify an image
11124 * include/grub/loader.h (grub_loader_set): Added one more argument
11127 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
11128 instead of grub_efi_open_protocol.
11129 (grub_efidisk_get_device_name): Likewise.
11130 (grub_efidisk_close): Print a newline.
11131 (grub_efidisk_get_device_handle): Fixed to use
11132 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
11133 GRUB_EFI_DEVICE_PATH_TYPE.
11135 * disk/efi/efidisk.c (device_path_guid): Moved to ...
11136 * kern/efi/efi.c (device_path_guid): ... here.
11138 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
11140 (kernel_mod_HEADERS): Added efi/disk.h.
11141 (_chain_mod_SOURCES): New variable.
11142 (_chain_mod_CFLAGS): Likewise.
11143 (_chain_mod_LDFLAGS): Likewise.
11144 (chain_mod_SOURCES): Likewise.
11145 (chain_mod_CFLAGS): Likewise.
11146 (chain_mod_LDFLAGS): Likewise.
11148 * DISTLIST: Added include/grub/efi/chainloader.h,
11149 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
11151 * include/grub/efi/chainloader.h: New file.
11152 * loader/efi/chainloader.c: Likewise.
11153 * loader/efi/chainloader_normal.c: Likewise.
11155 2006-04-30 Marco Gerards <marco@gnu.org>
11157 * commands/configfile.c (grub_cmd_source): New function.
11158 (GRUB_MOD_INIT): Register the commands `source' and `.'.
11159 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
11161 2006-04-30 Marco Gerards <marco@gnu.org>
11163 * normal/execute.c (grub_script_execute_cmd): Change the return
11164 type to `grub_err_t'. Correctly return the error.
11165 (grub_script_execute_cmdline): In case a command line is not a
11166 command or a function, try to interpret it as an assignment.
11168 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
11170 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
11171 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
11172 skip a node whose name is obviously invalid as UTF-16,
11173 i.e. contains a NUL character. Stop the iteration when the last
11174 directory entry is found. Instead of using the return value of
11175 grub_hfsplus_btree_iterate_node, store the value in RET and use
11176 it, because the iterator can be stopped by the last directory
11179 2006-04-30 Marco Gerards <marco@gnu.org>
11181 * include/grub/env.h (grub_env_export): New prototype. Reported
11182 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
11184 2006-04-30 Marco Gerards <marco@gnu.org>
11186 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
11187 size of the extents in a catalog file record.
11189 2006-04-29 Marco Gerards <marco@gnu.org>
11191 * commands/configfile.c (grub_cmd_configfile): Execute the
11192 configfile within its own context.
11194 * include/grub/env.h (grub_env_context_open): New prototype.
11195 (grub_env_context_close): Likewise.
11197 * kern/env.c (grub_env): Removed.
11198 (grub_env_sorted): Likewise.
11199 (grub_env_context): New variable.
11200 (grub_env_var_context): Likewise.
11201 (grub_env_find): Search both the active context and the global
11203 (grub_env_context_open): New function.
11204 (grub_env_context_close): Likewise.
11205 (grub_env_insert): Likewise.
11206 (grub_env_remove): Likewise.
11207 (grub_env_export): Likewise.
11208 (grub_env_set): Changed to use helper functions to avoid code
11210 (grub_env_iterate): Rewritten so both the current context and the
11211 global context are being used.
11213 * normal/command.c (export_command): New function.
11214 (grub_command_init): Register the `export' function.
11216 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
11218 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
11219 explicitly to suppress gcc's warnings.
11220 * fs/fat.c (grub_fat_find_dir): Likewise.
11221 (grub_fat_label): Likewise.
11222 * fs/xfs.c (grub_xfs_read_inode): Likewise.
11223 (grub_xfs_mount): Likewise.
11224 (grub_xfs_label): Likewise.
11225 * fs/affs.c (grub_affs_mount): Likewise.
11226 (grub_affs_label): Likewise.
11227 (grub_affs_iterate_dir): Likewise.
11228 * fs/sfs.c (grub_sfs_mount): Likewise.
11229 (grub_sfs_iterate_dir): Likewise.
11230 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
11231 * fs/hfs.c (grub_hfs_mount): Likewise.
11232 (grub_hfs_cmp_catkeys): Likewise.
11233 (grub_hfs_find_dir): Likewise.
11234 (grub_hfs_dir): Likewise.
11235 (grub_hfs_label): Likewise.
11236 * fs/jfs.c (grub_jfs_mount): Likewise.
11237 (grub_jfs_opendir): Likewise.
11238 (grub_jfs_getent): Likewise.
11239 (grub_jfs_lookup_symlink): Likewise.
11240 (grub_jfs_label): Likewise.
11241 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11242 (grub_hfsplus_iterate_dir): Likewise.
11243 (grub_hfsplus_btree_iterate_node): Made static.
11245 * util/grub-emu.c (prefix): New variable.
11246 (grub_machine_set_prefix): New function.
11247 (main): Do not set the environment variable "prefix" here. Only
11248 set PREFIX, which is used later by grub_machine_set_prefix.
11250 * include/grub/video.h: Do not include grub/symbol.h.
11251 (grub_video_register): Not exported. This symbol is not defined in
11253 (grub_video_unregister): Likewise.
11254 (grub_video_iterate): Likewise.
11255 (grub_video_setup): Likewise.
11256 (grub_video_restore): Likewise.
11257 (grub_video_get_info): Likewise.
11258 (grub_video_get_blit_format): Likewise.
11259 (grub_video_set_palette): Likewise.
11260 (grub_video_get_palette): Likewise.
11261 (grub_video_set_viewport): Likewise.
11262 (grub_video_get_viewport): Likewise.
11263 (grub_video_map_color): Likewise.
11264 (grub_video_map_rgb): Likewise.
11265 (grub_video_map_rgba): Likewise.
11266 (grub_video_fill_rect): Likewise.
11267 (grub_video_blit_glyph): Likewise.
11268 (grub_video_blit_bitmap): Likewise.
11269 (grub_video_blit_render_target): Likewise.
11270 (grub_video_scroll): Likewise.
11271 (grub_video_swap_buffers): Likewise.
11272 (grub_video_create_render_target): Likewise.
11273 (grub_video_delete_render_target): Likewise.
11274 (grub_video_set_active_render_target): Likewise.
11276 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
11278 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
11280 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
11281 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
11282 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
11283 instead of $(srcdir)/genkernsyms.sh.
11285 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
11286 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
11287 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
11288 instead of $(srcdir)/genkernsyms.sh.
11290 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
11291 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
11292 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
11293 instead of $(srcdir)/genkernsyms.sh.
11295 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
11296 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
11297 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
11298 instead of $(srcdir)/genkernsyms.sh.
11300 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
11303 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
11305 (gensymlist.sh): New target.
11306 (genkernsyms.sh): Likewise.
11308 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
11309 genkernsyms.sh.in and gensymlist.sh.in.
11311 * genkernsyms.sh: Removed.
11312 * gensymlist.sh: Likewise.
11314 * genkernsyms.sh.in: New file.
11315 * gensymlist.sh.in: Likewise.
11317 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
11319 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
11320 clobber "prefix", since we may have already set it manually.
11322 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
11324 * kern/misc.c (abort): New alias for grub_abort.
11326 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
11328 A new machine-specific function "grub_machine_set_prefix" is
11329 defined. This is called after loading modules, so that a prefix
11330 initialization can use modules. Also, this change adds an
11331 intensive debugging feature for the memory manager via the
11332 configure option "--enable-mm-debug".
11334 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
11337 * kern/sparc64/ieee1275/init.c (abort): Removed.
11338 (grub_stop): Likewise.
11339 (grub_exit): New function.
11340 (grub_set_prefix): Renamed to ...
11341 (grub_machine_set_prefix): ... this.
11342 (grub_machine_init): Do not call grub_set_prefix.
11344 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
11345 (grub_machine_set_prefix): ... this.
11346 (grub_machine_init): Do not call grub_set_prefix.
11348 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
11349 (grub_machine_init): Do not set the prefix here.
11351 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
11353 * kern/efi/init.c: Include grub/mm.h.
11354 (grub_efi_set_prefix): New function.
11356 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
11357 (grub_efi_get_filename): New function.
11358 (grub_print_device_path): Renamed to ...
11359 (grub_efi_print_device_path): ... this.
11361 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
11362 [MM_DEBUG] (grub_realloc): Likewise.
11363 [MM_DEBUG] (grub_free): Likewise.
11364 [MM_DEBUG] (grub_memalign): Likewise.
11365 [MM_DEBUG] (grub_mm_debug): New variable.
11366 [MM_DEBUG] (grub_debug_malloc): New function.
11367 [MM_DEBUG] (grub_debug_free): New function.
11368 [MM_DEBUG] (grub_debug_realloc): New function.
11369 [MM_DEBUG] (grub_debug_memalign): New function.
11371 * kern/misc.c (grub_abort): Print a newline to distinguish
11374 * kern/main.c (grub_main): Call grub_machine_set_prefix and
11375 grub_set_root_dev after loading modules. This is necessary when
11376 setting a prefix depends on modules.
11378 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
11379 (grub_efi_print_device_path): ... this.
11380 (grub_efi_get_filename): New prototype.
11381 (grub_efi_set_prefix): Likewise.
11383 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
11385 (grub_efidisk_get_device_handle): New prototype.
11386 (grub_efidisk_get_device_name): Likewise.
11388 * include/grub/mm.h: Include config.h.
11389 (MM_DEBUG): Removed.
11390 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
11391 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
11392 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
11393 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
11394 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
11395 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
11396 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
11397 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
11398 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
11400 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
11402 * disk/efi/efidisk.c: Include grub/partition.h.
11403 (iterate_child_devices): New function.
11404 (add_device): First, compare only last device path nodes, so that
11405 devices are sorted by the types.
11406 (grub_efidisk_get_device_handle): New function.
11407 (grub_efidisk_get_device_name): Likewise.
11409 * configure.ac (--enable-mm-debug): New option to enable the
11410 memory manager debugging feature. This makes the binary much
11411 bigger, so is disabled by default.
11413 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
11415 Use grub_abort instead of grub_stop, and grub_exit must be
11416 define in each architecture now. Also, this change adds support
11419 * util/i386/pc/grub-probefs.c: Include grub/term.h.
11420 (grub_getkey): New function.
11421 (grub_term_get_current): Likewise.
11423 * util/i386/pc/grub-setup.c: Include grub/term.h.
11424 (grub_getkey): New function.
11425 (grub_term_get_current): Likewise.
11427 * util/misc.c (grub_stop): Renamed to ...
11428 (grub_exit): ... this.
11430 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
11431 (grub_exit): ... this.
11432 (grub_machine_init): Use grub_abort instead of abort.
11433 (grub_stop): Removed.
11435 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
11438 * kern/i386/pc/startup.S (grub_exit): New function.
11439 (cold_reboot): New label.
11441 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
11442 (grub_efi_init): Call grub_efidisk_init.
11443 (grub_efi_fini): Call grub_efidisk_fini.
11445 * kern/efi/efi.c: Include grub/mm.h.
11446 (grub_efi_console_control_guid): Renamed to ...
11447 (console_control_guid): ... this.
11448 (grub_efi_loaded_image_guid): Renamed to ...
11449 (loaded_image_guid): ... this.
11450 (grub_efi_locate_handle): New function.
11451 (grub_efi_open_protocol): Likewise.
11452 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
11453 GRUB_EFI_CONSOLE_CONTROL_GUID.
11454 (grub_efi_exit): Removed.
11455 (grub_stop): Likewise.
11456 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
11457 (grub_exit): New function.
11458 (grub_print_device_path): Likewise.
11460 * kern/rescue.c (grub_rescue_cmd_exit): New function.
11461 (grub_enter_rescue_mode): Register "exit".
11463 * kern/misc.c (grub_real_dprintf): A cosmetic change.
11464 (grub_abort): New function.
11466 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
11468 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
11470 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
11472 * include/grub/efi/efi.h (grub_efi_exit): Removed.
11473 (grub_print_device_path): New prototype.
11474 (grub_efi_locate_handle): Likewise.
11475 (grub_efi_open_protocol): Likewise.
11477 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
11478 * disk/efi/efidisk.c: Likewise.
11480 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
11482 * include/grub/efi/console_control.h
11483 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
11485 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
11486 last 8 bytes as an array.
11487 (GRUB_EFI_DISK_IO_GUID): New macro.
11488 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
11489 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
11490 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
11492 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
11493 (struct grub_efi_device_path): Rename the member "sub_type" to
11495 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
11496 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
11497 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
11498 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
11499 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
11500 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
11501 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
11502 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
11503 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
11504 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
11505 (struct grub_efi_pci_device_path): New structure.
11506 (grub_efi_pci_device_path_t): New type.
11507 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
11508 (struct grub_efi_pccard_device_path): New structure.
11509 (grub_efi_pccard_device_path_t): New type.
11510 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
11511 (struct grub_efi_memory_mapped_device_path): New structure.
11512 (grub_efi_memory_mapped_device_path_t): New type.
11513 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
11514 (struct grub_efi_vendor_device_path): New structure.
11515 (grub_efi_vendor_device_path_t): New type.
11516 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
11517 (struct grub_efi_controller_device_path): New structure.
11518 (grub_efi_controller_device_path_t): New type.
11519 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
11520 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
11521 (struct grub_efi_acpi_device_path): New structure.
11522 (grub_efi_acpi_device_path_t): New type.
11523 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
11524 (struct grub_efi_expanded_acpi_device_path): New structure.
11525 (grub_efi_expanded_acpi_device_path_t): New type.
11526 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
11527 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
11528 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
11529 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
11530 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
11531 (struct grub_efi_atapi_device_path): New structure.
11532 (grub_efi_atapi_device_path_t): New type.
11533 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
11534 (struct grub_efi_fibre_channel_device_path): New structure.
11535 (grub_efi_fibre_channel_device_path_t): New type.
11536 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
11537 (struct grub_efi_1394_device_path): New structure.
11538 (grub_efi_1394_device_path_t): New type.
11539 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
11540 (struct grub_efi_usb_device_path): New structure.
11541 (grub_efi_usb_device_path_t): New type.
11542 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
11543 (struct grub_efi_usb_class_device_path): New structure.
11544 (grub_efi_usb_class_device_path_t): New type.
11545 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
11546 (struct grub_efi_i2o_device_path): New structure.
11547 (grub_efi_i2o_device_path_t): New type.
11548 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
11549 (struct grub_efi_mac_address_device_path): New structure.
11550 (grub_efi_mac_address_device_path_t): New type.
11551 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
11552 (struct grub_efi_ipv4_device_path): New structure.
11553 (grub_efi_ipv4_device_path_t): New type.
11554 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
11555 (struct grub_efi_ipv6_device_path): New structure.
11556 (grub_efi_ipv6_device_path_t): New type.
11557 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
11558 (struct grub_efi_infiniband_device_path): New structure.
11559 (grub_efi_infiniband_device_path_t): New type.
11560 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
11561 (struct grub_efi_uart_device_path): New structure.
11562 (grub_efi_uart_device_path_t): New type.
11563 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
11564 (struct grub_efi_vendor_messaging_device_path): New structure.
11565 (grub_efi_vendor_messaging_device_path_t): New type.
11566 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
11567 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
11568 (struct grub_efi_hard_drive_device_path): New structure.
11569 (grub_efi_hard_drive_device_path_t): New type.
11570 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
11571 (struct grub_efi_cdrom_device_path): New structure.
11572 (grub_efi_cdrom_device_path_t): New type.
11573 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
11574 (struct grub_efi_vendor_media_device_path): New structure.
11575 (grub_efi_vendor_media_device_path_t): New type.
11576 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
11577 (struct grub_efi_file_path_device_path): New structure.
11578 (grub_efi_file_path_device_path_t): New type.
11579 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
11580 (struct grub_efi_protocol_device_path): New structure.
11581 (grub_efi_protocol_device_path_t): New type.
11582 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
11583 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
11584 (struct grub_efi_bios_device_path): New structure.
11585 (grub_efi_bios_device_path_t): New type.
11586 (struct grub_efi_disk_io): New structure.
11587 (grub_efi_disk_io_t): New type.
11588 (struct grub_efi_block_io_media): New structure.
11589 (grub_efi_block_io_media_t): New type.
11590 (struct grub_efi_block_io): New structure.
11591 (grub_efi_block_io_t): New type.
11593 * include/grub/misc.h (grub_stop): Removed.
11594 (grub_exit): New prototype.
11595 (grub_abort): Likewise.
11597 * include/grub/disk.h (enum grub_disk_dev_id): Added
11598 GRUB_DISK_DEVICE_EFIDISK_ID.
11600 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
11601 disk/efi/efidisk.c.
11602 (kernel_syms.lst): Remove the target if an error occurs.
11604 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
11606 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
11607 as it was simply too buggy.
11609 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
11611 * kern/misc.c (grub_lltoa): New function.
11612 (grub_vsprintf): Added support for the long long suffix,
11615 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
11617 * Makefile.in (LDFLAGS): Add variable.
11618 (LD): Remove variable.
11619 * configure.ac: Add -m32 to LDFLAGS.
11620 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
11621 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
11622 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
11623 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
11624 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
11626 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
11627 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
11628 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
11630 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
11632 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
11633 length for unknown glyph.
11635 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
11637 Add support for pre-loaded modules into the EFI port.
11639 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
11640 completely. Accept one more argument DIR. The caller has changed.
11642 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
11644 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
11645 (grub_efi_loaded_image_guid): New variable.
11646 (grub_efi_get_loaded_image): New function.
11647 (grub_arch_modules_addr): Likewise.
11649 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
11652 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
11653 (struct grub_efi_loaded_image): New structure.
11654 (grub_efi_loaded_image_t): New type.
11656 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
11658 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
11659 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
11660 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
11662 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
11664 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
11666 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
11668 * DISTLIST: Added include/grub/efi/console.h,
11669 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
11670 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
11672 * include/grub/efi/console.h: New file.
11673 * include/grub/efi/time.h: Likewise.
11674 * include/grub/i386/efi/kernel.h: Likewise.
11675 * kern/efi/init.c: Likewise.
11676 * kern/efi/mm.c: Likewise.
11677 * term/efi/console.c: Likewise.
11679 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
11680 (grub_stop): Removed.
11681 (grub_get_rtc): Likewise.
11682 (grub_machine_init): Simply call grub_efi_init.
11683 (grub_machine_fini): Call grub_efi_fini.
11685 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
11686 (grub_efi_output_string): Removed.
11687 (grub_efi_stall): New function.
11688 (grub_stop): Likewise.
11689 (grub_get_rtc): Likewise.
11691 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
11692 (grub_efi_stall): New prototype.
11693 (grub_efi_allocate_pages): Likewise.
11694 (grub_efi_free_pages): Likewise.
11695 (grub_efi_get_memory_map): Likewise.
11696 (grub_efi_mm_init): Likewise.
11697 (grub_efi_mm_fini): Likewise.
11698 (grub_efi_init): Likewise.
11699 (grub_efi_fini): Likewise.
11701 * include/grub/i386/efi/time.h: Do not include
11702 grub/symbol.h. Include grub/efi/time.h.
11703 (GRUB_TICKS_PER_SECOND): Removed.
11704 (grub_get_rtc): Likewise.
11706 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
11707 Added padding. The EFI spec is buggy.
11708 (GRUB_EFI_BLACK): New macro.
11709 (GRUB_EFI_BLUE): Likewise.
11710 (GRUB_EFI_GREEN): Likewise.
11711 (GRUB_EFI_CYAN): Likewise.
11712 (GRUB_EFI_RED): Likewise.
11713 (GRUB_EFI_MAGENTA): Likewise.
11714 (GRUB_EFI_BROWN): Likewise.
11715 (GRUB_EFI_LIGHTGRAY): Likewise.
11716 (GRUB_EFI_BRIGHT): Likewise.
11717 (GRUB_EFI_DARKGRAY): Likewise.
11718 (GRUB_EFI_LIGHTBLUE): Likewise.
11719 (GRUB_EFI_LIGHTGREEN): Likewise.
11720 (GRUB_EFI_LIGHTCYAN): Likewise.
11721 (GRUB_EFI_LIGHTRED): Likewise.
11722 (GRUB_EFI_LIGHTMAGENTA): Likewise.
11723 (GRUB_EFI_YELLOW): Likewise.
11724 (GRUB_EFI_WHITE): Likewise.
11725 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
11726 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
11727 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
11728 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
11729 (GRUB_EFI_BACKGROUND_RED): Likewise.
11730 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
11731 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
11732 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
11733 (GRUB_EFI_TEXT_ATTR): Likewise.
11735 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
11736 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
11737 (kernel_mod_HEADERS): Added efi/time.h.
11739 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
11741 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
11742 include/grub/efi/api.h, include/grub/efi/console_control.h,
11743 include/grub/efi/efi.h, include/grub/efi/pe32.h,
11744 include/grub/i386/efi/time.h, kern/efi/efi.c,
11745 kern/i386/efi/init.c, kern/i386/efi/startup.S,
11746 and util/i386/efi/grub-mkimage.c.
11748 * Makefile.in (RMKFILES): Added i386-efi.rmk.
11750 * genmk.rb (PModule#rule): Do not export symbols if
11751 #{prefix}_EXPORTS is set to "no".
11753 * conf/i386-efi.mk: New file.
11754 * conf/i386-efi.rmk: Likewise.
11755 * include/grub/efi/api.h: Likewise.
11756 * include/grub/efi/console_control.h: Likewise.
11757 * include/grub/efi/efi.h: Likewise.
11758 * include/grub/efi/pe32.h: Likewise.
11759 * include/grub/i386/efi/time.h: Likewise.
11760 * kern/efi/efi.c: Likewise.
11761 * kern/i386/efi/init.c: Likewise.
11762 * kern/i386/efi/startup.S: Likewise.
11763 * util/i386/efi/grub-mkimage.c: Likewise.
11765 2006-04-17 Marco Gerards <marco@gnu.org>
11767 * include/grub/script.h: Include <grub/parser.h> and
11768 "grub_script.tab.h".
11769 (struct grub_lexer_param): New struct.
11770 (struct grub_parser_param): Likewise.
11771 (grub_script_create_arglist): Pass the state in an argument.
11772 (grub_script_add_arglist): Likewise.
11773 (grub_script_create_cmdline): Likewise.
11774 (grub_script_create_cmdblock): Likewise.
11775 (grub_script_create_cmdif): Likewise.
11776 (grub_script_create_cmdmenu): Likewise.
11777 (grub_script_add_cmd): Likewise.
11778 (grub_script_arg_add): Likewise.
11779 (grub_script_lexer_ref): Likewise.
11780 (grub_script_lexer_deref): Likewise.
11781 (grub_script_lexer_record_start): Likewise.
11782 (grub_script_lexer_record_stop): Likewise.
11783 (grub_script_mem_record): Likewise.
11784 (grub_script_mem_record_stop): Likewise.
11785 (grub_script_malloc): Likewise.
11786 (grub_script_yylex): Likewise.
11787 (grub_script_yyparse): Likewise.
11788 (grub_script_yyerror): Likewise.
11789 (grub_script_yylex): Likewise.
11790 (grub_script_lexer_init): Return the state.
11792 * normal/lexer.c (grub_script_lexer_state): Removed variable.
11793 (grub_script_lexer_done): Likewise.
11794 (grub_script_lexer_getline): Likewise.
11795 (grub_script_lexer_refs): Likewise.
11796 (script): Likewise.
11797 (newscript): Likewise.
11798 (record): Likewise.
11799 (recording): Likewise.
11800 (recordpos): Likewise.
11801 (recordlen): Likewise.
11802 (grub_script_lexer_init): Return the state instead of setting
11804 (grub_script_lexer_ref): Use the newly added argument for state
11805 instead of globals.
11806 (grub_script_lexer_deref): Likewise.
11807 (grub_script_lexer_record_start): Likewise.
11808 (grub_script_lexer_record_stop): Likewise.
11809 (recordchar): Likewise.
11810 (nextchar): Likewise.
11811 (grub_script_yylex2): Likewise.
11812 (grub_script_yylex): Likewise.
11813 (grub_script_yyerror): Likewise.
11815 * normal/parser.y (func_mem): Removed variable.
11816 (menu_entry): Likewise.
11818 (%lex-param): New parser option.
11819 (%parse-param): Likewise.
11820 (script): Always return the AST.
11821 (argument): Pass the state around.
11822 (arguments): Likewise.
11823 (grubcmd): Likewise.
11824 (commands): Likewise.
11825 (function): Likewise.
11826 (menuentry): Likewise.
11827 (if_statement): Likewise.
11830 * normal/script.c (grub_script_memused): Removed variable.
11831 (grub_script_parsed): Likewise.
11832 (grub_script_malloc): Added a state argument. Use that instead of
11834 (grub_script_mem_record): Likewise.
11835 (grub_script_mem_record_stop): Likewise.
11836 (grub_script_arg_add): Likewise.
11837 (grub_script_add_arglist): Likewise.
11838 (grub_script_create_cmdline): Likewise.
11839 (grub_script_create_cmdif): Likewise.
11840 (grub_script_create_cmdmenu): Likewise.
11841 (grub_script_add_cmd): Likewise.
11842 (grub_script_parse): Setup the state before calling the parser.
11844 2006-04-16 Marco Gerards <marco@gnu.org>
11846 * normal/command.c (grub_command_init): Remove the title command.
11848 * normal/lexer.c (grub_script_yylex): Renamed from this...
11849 (grub_script_yylex2): ... to this.
11850 (grub_script_yylex): New function. Temporary
11851 introduced to filter some tokens.
11852 (grub_script_yyerror): Print a newline.
11854 * normal/main.c (read_config_file): Output information about the
11855 lines that contain errors. Wait for a key after all lines have
11856 been processed. Don't return an empty menu.
11858 * normal/parser.y (func_mem): Don't initialize.
11859 (menu_entry): Likewise.
11860 (err): New variable.
11861 (script): Don't return anything when an error was encountered.
11862 (ws, returns): Removed rules.
11863 (argument): Disabled concatenated variable support.
11864 (arguments): Remove explicit separators.
11865 (grubcmd): Likewise.
11866 (function): Likewise.
11867 (menuentry): Likewise.
11869 (commands): Likewise. Add error handling.
11871 * normal/script.c (grub_script_create_cmdline): If
11872 `grub_script_parsed' is 0, assume the parser encountered an error.
11874 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
11876 * configure.ac: Add support for EFI. Fix the typo
11877 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
11879 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
11881 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
11882 foreign multibyte characters should be shown correctly.
11884 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
11886 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
11888 (read_config_file): Made it to close file before returning.
11890 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
11892 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
11893 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
11894 video/i386/pc/vbefill.c.
11896 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
11897 video/i386/pc/vbefill.c.
11899 * include/grub/video.h (grub_video_blit_format): New enum.
11900 (grub_video_mode_info): Added new member blit_format.
11901 (grub_video_get_blit_format): New function prototype.
11903 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
11904 function prototype.
11905 (grub_video_vbe_map_rgb): Likewise.
11906 (grub_video_vbe_unmap_color): Likewise.
11908 * include/grub/i386/pc/vbeblit.h: New file.
11910 * include/grub/i386/pc/vbefill.h: New file.
11912 * video/video.c (grub_video_get_blit_format): New function.
11913 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
11914 (grub_video_vbe_map_rgb): Likewise.
11915 (grub_video_vbe_unmap_color): Likewise.
11917 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
11919 (grub_video_vbe_blit_render_target): Changed to use more optimized
11921 (grub_video_vbe_setup): Added detection for optimized settings.
11922 (grub_video_vbe_create_render_target): Likewise.
11924 * video/i386/pc/vbeblit.c: New file.
11926 * video/i386/pc/vbefill.c: New file.
11928 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
11930 * font/manager.c (grub_font_get_glyph): Removed font fixup from
11933 * util/unifont2pff.rb: ... and moved it to here. Improved argument
11934 parsing to support both hex and dec ranges. If filename was missing
11935 show usage information.
11937 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
11939 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
11940 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
11942 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
11943 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
11944 (video_mod_SOURCES): Added.
11945 (video_mod_CFLAGS): Likewise.
11946 (video_mod_LDFLAGS): Likewise.
11947 (gfxterm_mod_SOURCES): Likewise.
11948 (gfxterm_mod_CFLAGS): Likewise.
11949 (gfxterm_mod_LDFLAGS): Likewise.
11950 (videotest_mod_SOURCES): Likewise.
11951 (videotest_mod_CFLAGS): Likewise.
11952 (videotest_mod_LDFLAGS): Likewise.
11953 (vesafb_mod_SOURCES): Removed.
11954 (vesafb_mod_CFLAGS): Likewise.
11955 (vesafb_mod_LDFLAGS): Likewise.
11956 (vga_mod_SOURCES): Likewise.
11957 (vga_mod_CFLAGS): Likewise.
11958 (vga_mod_LDFLAGS): Likewise.
11960 * commands/videotest.c: New file.
11962 * font/manager.c (fill_with_default_glyph): Modified to use
11964 (grub_font_get_glyph): Likewise.
11965 (fontmanager): Renamed from this...
11966 (font_manager): ... to this.
11968 * include/grub/font.h (grub_font_glyph): Added new structure.
11969 (grub_font_get_glyph): Modified to use grub_font_glyph.
11971 * include/grub/misc.h (grub_abs): Added as inline function.
11973 * include/grub/video.h: New file.
11975 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
11976 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
11977 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
11978 (grub_vbe_get_controller_info): Renamed from this...
11979 (grub_vbe_bios_get_controller_info): ... to this.
11980 (grub_vbe_get_mode_info): Renamed from this...
11981 (grub_vbe_bios_get_mode_info): ... to this.
11982 (grub_vbe_set_mode): Renamed from this...
11983 (grub_vbe_bios_set_mode): ... to this.
11984 (grub_vbe_get_mode): Renamed from this...
11985 (grub_vbe_bios_get_mode): ... to this.
11986 (grub_vbe_set_memory_window): Renamed from this...
11987 (grub_vbe_bios_set_memory_window): ... to this.
11988 (grub_vbe_get_memory_window): Renamed from this...
11989 (grub_vbe_bios_get_memory_window): ... to this.
11990 (grub_vbe_set_scanline_length): Renamed from this...
11991 (grub_vbe_set_scanline_length): ... to this.
11992 (grub_vbe_get_scanline_length): Renamed from this...
11993 (grub_vbe_bios_get_scanline_length): ... to this.
11994 (grub_vbe_set_display_start): Renamed from this...
11995 (grub_vbe_bios_set_display_start): ... to this.
11996 (grub_vbe_get_display_start): Renamed from this...
11997 (grub_vbe_bios_get_display_start): ... to this.
11998 (grub_vbe_set_palette_data): Renamed from this...
11999 (grub_vbe_bios_set_palette_data): ... to this.
12000 (grub_vbe_set_pixel_rgb): Removed.
12001 (grub_vbe_set_pixel_index): Likewise.
12003 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
12005 (grub_vbe_bios_get_controller_info): ... to this.
12006 (grub_vbe_get_mode_info): Renamed from this...
12007 (grub_vbe_bios_get_mode_info): ... to this.
12008 (grub_vbe_set_mode): Renamed from this...
12009 (grub_vbe_bios_set_mode): ... to this.
12010 (grub_vbe_get_mode): Renamed from this...
12011 (grub_vbe_bios_get_mode): ... to this.
12012 (grub_vbe_set_memory_window): Renamed from this...
12013 (grub_vbe_bios_set_memory_window): ... to this.
12014 (grub_vbe_get_memory_window): Renamed from this...
12015 (grub_vbe_bios_get_memory_window): ... to this.
12016 (grub_vbe_set_scanline_length): Renamed from this...
12017 (grub_vbe_set_scanline_length): ... to this.
12018 (grub_vbe_get_scanline_length): Renamed from this...
12019 (grub_vbe_bios_get_scanline_length): ... to this.
12020 (grub_vbe_set_display_start): Renamed from this...
12021 (grub_vbe_bios_set_display_start): ... to this.
12022 (grub_vbe_get_display_start): Renamed from this...
12023 (grub_vbe_bios_get_display_start): ... to this.
12024 (grub_vbe_set_palette_data): Renamed from this...
12025 (grub_vbe_bios_set_palette_data): ... to this.
12026 (grub_vbe_bios_get_controller_info): Fixed problem with registers
12027 getting corrupted after calling it. Added more pushes and pops.
12028 (grub_vbe_bios_set_mode): Likewise.
12029 (grub_vbe_bios_get_mode): Likewise.
12030 (grub_vbe_bios_get_memory_window): Likewise.
12031 (grub_vbe_bios_set_scanline_length): Likewise.
12032 (grub_vbe_bios_get_scanline_length): Likewise.
12033 (grub_vbe_bios_get_display_start): Likewise.
12034 (grub_vbe_bios_set_palette_data): Likewise.
12036 * normal/cmdline.c (cl_set_pos): Refresh the screen.
12037 (cl_insert): Likewise.
12038 (cl_delete): Likewise.
12040 * term/gfxterm.c: New file.
12042 * term/i386/pc/vesafb.c: Removed file.
12044 * video/video.c: New file.
12046 * video/i386/pc/vbe.c (real2pm): Added new function.
12047 (grub_video_vbe_draw_pixel): Likewise.
12048 (grub_video_vbe_get_video_ptr): Likewise.
12049 (grub_video_vbe_get_pixel): Likewise
12050 (grub_video_vbe_init): Likewise.
12051 (grub_video_vbe_fini): Likewise.
12052 (grub_video_vbe_setup): Likewise.
12053 (grub_video_vbe_get_info): Likewise.
12054 (grub_video_vbe_set_palette): Likewise.
12055 (grub_video_vbe_get_palette): Likewise.
12056 (grub_video_vbe_set_viewport): Likewise.
12057 (grub_video_vbe_get_viewport): Likewise.
12058 (grub_video_vbe_map_color): Likewise.
12059 (grub_video_vbe_map_rgb): Likewise.
12060 (grub_video_vbe_map_rgba): Likewise.
12061 (grub_video_vbe_unmap_color): Likewise.
12062 (grub_video_vbe_fill_rect): Likewise.
12063 (grub_video_vbe_blit_glyph): Likewise.
12064 (grub_video_vbe_blit_bitmap): Likewise.
12065 (grub_video_vbe_blit_render_target): Likewise.
12066 (grub_video_vbe_scroll): Likewise.
12067 (grub_video_vbe_swap_buffers): Likewise.
12068 (grub_video_vbe_create_render_target): Likewise.
12069 (grub_video_vbe_delete_render_target): Likewise.
12070 (grub_video_vbe_set_active_render_target): Likewise.
12071 (grub_vbe_set_pixel_rgb): Remove function.
12072 (grub_vbe_set_pixel_index): Likewise.
12073 (index_color_mode): Remove static variable.
12074 (active_mode): Likewise.
12075 (framebuffer): Likewise.
12076 (bytes_per_scan_line): Likewise.
12077 (grub_video_vbe_adapter): Added new static variable.
12078 (framebuffer): Likewise.
12079 (render_target): Likewise.
12080 (initial_mode): Likewise.
12081 (mode_in_use): Likewise.
12082 (mode_list): Likewise.
12084 2006-03-10 Marco Gerards <marco@gnu.org>
12086 * configure.ac (AC_INIT): Bumped to 1.93.
12088 * DISTLIST: Added `include/grub/hfs.h'.
12090 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
12092 * boot/i386/pc/boot.S (general_error): Before looping, try INT
12093 18H, which might help the BIOS falling back to next boot media.
12095 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
12097 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
12098 Poe Chen <poe.poechen@gmail.com>.
12100 2006-01-17 Marco Gerards <marco@gnu.org>
12102 * include/grub/normal.h: Include <grub/script.h>.
12103 (grub_command_list): Removed struct.
12104 (grub_command_list_t): Removed type.
12105 (grub_menu_entry): Remove members `num' and `command_list'. Add
12106 members `commands' and `sourcecode'.
12107 * include/grub/script.h: Add inclusion guards.
12108 (grub_script_cmd_menuentry): New struct.
12109 (grub_script_execute_menuentry): New prototype.
12110 (grub_script_lexer_record_start): Likewise.
12111 (grub_script_lexer_record_stop): Likewise.
12112 * normal/execute.c (grub_script_execute_menuentry): New function.
12113 * normal/lexer.c (record, recording, recordpos, recordlen): New
12115 (grub_script_lexer_record_start): New function.
12116 (grub_script_lexer_record_stop): Likewise.
12117 (recordchar): Likewise.
12118 (nextchar): Likewise.
12119 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
12120 2048 as the buffer size. Add the tokens `menuentry' and `@'.
12121 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
12122 (current_menu): New variable.
12123 (free_menu): Mainly rewritten.
12124 (grub_normal_menu_addentry): New function.
12125 (read_config_file): Rewritten.
12126 * normal/menu.c (run_menu_entry): Mainly rewritten.
12127 * normal/menu_entry.c (make_screen): Rewritten the code to insert
12129 (run): Mainly rewritten.
12130 * normal/parser.y (menu_entry): New variable.
12131 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
12132 (menuentry): New rule.
12133 (command): Add `menuentry'.
12134 (if_statement): Allow additional returns before `fi'.
12135 * normal/script.c (grub_script_create_cmdmenu): New function.
12137 2006-01-03 Marco Gerards <marco@gnu.org>
12139 * INSTALL: GNU Bison is required.
12140 * configure.ac: Rewritten the test to detect Bison.
12141 * Makefile.in (YACC): New variable. Reported by Xun Sun
12142 <xun.sun.cn@gmail.com>.
12144 2006-01-03 Marco Gerards <marco@gnu.org>
12146 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
12147 the HFS+ filesystem to filesystem blocks.
12148 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
12149 GCC warning is silenced.
12151 2006-01-03 Marco Gerards <marco@gnu.org>
12153 * partmap/apple.c (apple_partition_map_iterate): Convert the data
12154 read from disk from big endian to host byte order.
12156 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
12158 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
12160 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
12161 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
12162 embedded HFS+ filesystem.
12163 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
12164 (grub_hfs_sblock): Move from here...
12165 * include/grub/hfs.h: To here... New file.
12166 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
12168 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
12170 (grub_hfsplus_volheader): Change type of member `magic' to
12172 (grub_hfsplus_data): Add new member `embedded_offset'.
12173 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
12175 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
12176 Calculate the offset.
12178 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
12180 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
12182 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
12184 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
12186 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
12187 ENV->NAME is NULL after allocating ENV->VALUE.
12189 2005-12-25 Marco Gerards <marco@gnu.org>
12191 * kern/env.c (grub_env_set): Rewritten the error handling code.
12193 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
12195 * geninit.sh: Made more robust, and more portable.
12197 2005-12-25 Marco Gerards <marco@gnu.org>
12199 Add support for Apple HFS+ filesystems.
12201 * fs/hfsplus.c: New file.
12203 * DISTLIST: Added `fs/hfsplus.c'.
12205 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
12206 (hfsplus_mod_SOURCES): New variable.
12207 (hfsplus_mod_CFLAGS): Likewise.
12208 (hfsplus_mod_LDFLAGS): Likewise.
12209 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
12210 (grub_setup_SOURCES): Likewise.
12211 (grub_mkdevicemap_SOURCES): Likewise.
12212 (grub_emu_SOURCES): Likewise.
12213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12215 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
12217 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
12219 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
12221 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
12222 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
12223 include/grub/parser.h, include/grub/script.h, kern/parser.c,
12224 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
12225 normal/lexer.c, normal/parser.y, normal/script.c, and
12227 Removed kern/sparc64/cache.c.
12229 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
12230 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
12233 * configure.ac (AC_INIT): Bumped to 1.92.
12235 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
12237 * kern/err.c (grub_error_push): Added new function to support error
12239 (grub_error_pop): Likewise.
12240 (grub_error_stack_items): New local variable to support error stacks.
12241 (grub_error_stack_pos): Likewise.
12242 (grub_error_stack_assert): Likewise.
12243 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
12245 (grub_print_error): Added support to print errors from error stack.
12247 * include/grub/err.h (grub_error_push): Added function prototype.
12248 (grub_error_pop): Likewise.
12250 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
12252 * configure.ac: Accept `powerpc64' as host_cpu.
12253 (amd64): Rename to `biarch32'.
12255 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
12256 non-cacheline-aligned addresses.
12258 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
12259 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
12260 if `size' is non-zero.
12262 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
12264 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
12265 and `cd' to make sure the filename is not prefixed with a
12267 (pkgdata_MODULES): Add `gpt.mod'.
12268 (gpt_mod_SOURCES): New variable.
12269 (gpt_mod_CFLAGS): Likewise.
12270 (gpt_mod_LDFLAGS): Likewise.
12272 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
12274 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
12277 * partmap/gpt.c: New file.
12279 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
12280 GPT partition map is detected.
12282 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
12284 * commands/i386/pc/play.c: New file.
12285 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
12286 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
12289 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
12291 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
12292 ((unused))' to silence gcc warning.
12294 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
12296 * configure.ac: Correct `AC_PROG_YACC' test.
12298 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
12300 * util/powerpc/ieee1275/grub-install.in: Run the mount point
12301 check before installing files.
12303 2005-11-22 Mike Small <smallm@panix.com>
12305 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
12306 number regex so multidigit numbers are recognized correctly.
12308 2005-11-22 Mike Small <smallm@panix.com>
12310 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
12311 debugging message before attempting to claim memory.
12312 (grub_rescue_cmd_initrd): Add a claim debugging message and try
12313 multiple addresses in case of failure.
12315 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
12317 * term/tparm.c (get_space): Remove empty `if' statement.
12319 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
12321 * kern/parser.c (check_varstate): Rename `state' to 's'.
12323 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
12325 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
12326 variable definitions to the beginning of each function. Sort stack
12328 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
12329 `buf' argument to `char *'.
12331 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
12333 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
12334 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
12335 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
12336 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
12337 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
12338 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
12339 configfile.mod, search.mod, gzio.mod and test.mod.
12340 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
12341 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
12342 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
12343 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
12344 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
12345 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
12346 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
12347 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
12348 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
12349 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
12350 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
12351 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
12352 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
12353 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
12354 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
12355 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
12356 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
12357 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
12358 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
12359 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
12360 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
12361 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
12362 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
12364 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
12366 (pkgdata_MODULES): Add test.mod.
12368 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
12370 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
12371 appending to variables with "+=".
12372 (PModule): Use full pathname to generate *.lst filenames.
12374 * Makefile.in: Fixed list rules moved from genmk.rb.
12375 (.DELETE_ON_ERROR): New special target.
12376 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
12378 * conf/i386-pc.rmk: Include conf/common.mk.
12379 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
12380 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
12381 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
12382 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
12383 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
12384 configfile.mod, search.mod, gzio.mod and test.mod.
12385 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
12386 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
12387 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
12388 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
12389 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
12390 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
12391 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
12392 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
12393 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
12394 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
12395 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
12396 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
12397 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
12398 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
12399 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
12400 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
12401 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
12402 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
12403 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
12404 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
12405 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
12406 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
12407 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
12409 * conf/common.rmk: ... to here. New file.
12411 * conf/common.mk: New file.
12413 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
12415 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
12416 (grub_script.tab.c): ... here.
12418 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
12419 (grub_script.tab.c): ... here.
12421 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
12422 (grub_script.tab.c): ... here.
12424 * normal/command.c (grub_command_find): Fixed a memory leak of
12425 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
12427 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
12429 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
12430 "@" which marks the start of a comment on ARM.
12431 (VARIABLE): Likewise.
12433 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
12435 Add support for Linux/ADFS partition tables.
12437 * partmap/acorn.c: New file.
12439 * include/grub/acorn_filecore.h: Likewise.
12441 * DISTLIST: Added `partmap/acorn.c' and
12442 `include/grub/acorn_filecore.h'.
12444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
12446 (pkgdata_MODULES): Add `acorn.mod'.
12447 (acorn_mod_SOURCES): New variable.
12448 (acorn_mod_CFLAGS): Likewise.
12450 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
12452 (pkgdata_MODULES): Add `acorn.mod'.
12453 (acorn_mod_SOURCES): New variable.
12454 (acorn_mod_CFLAGS): Likewise.
12456 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
12457 (pkgdata_MODULES): Add `acorn.mod'.
12458 (acorn_mod_SOURCES): New variable.
12459 (acorn_mod_CFLAGS): Likewise.
12460 (acorn_mod_LDFLAGS): Likewise.
12462 * include/types.h (grub_disk_addr_t): New typedef.
12464 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
12466 * geninit.sh: New file.
12468 * geninitheader.sh: Likewise.
12470 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
12471 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
12472 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
12473 * commands/configfile.c (grub_configfile_init)
12474 (grub_configfile_fini): Likewise.
12475 * commands/default.c (grub_default_init, grub_default_fini):
12477 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
12478 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
12479 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
12480 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
12482 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
12483 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
12485 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
12486 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
12488 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
12490 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
12492 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
12493 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
12494 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
12495 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
12496 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
12497 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
12498 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
12499 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
12500 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
12501 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
12502 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
12503 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
12504 * partmap/amiga.c (grub_amiga_partition_map_init)
12505 (grub_amiga_partition_map_fini): Likewise.
12506 * partmap/apple.c (grub_apple_partition_map_init)
12507 (grub_apple_partition_map_fini): Likewise.
12508 * partmap/pc.c (grub_pc_partition_map_init)
12509 (grub_pc_partition_map_fini): Likewise.
12510 * partmap/sun.c (grub_sun_partition_map_init,
12511 grub_sun_partition_map_fini): Likewise.
12512 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
12515 * util/grub-emu.c: Include <grub_modules_init.h>.
12516 (main): Don't initialize and de-initialize any modules directly,
12517 use `grub_init_all' and `grub_fini_all' instead.
12519 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
12520 `grub_vesafb_mod_init'.
12521 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
12523 * term/i386/pc/vga.c (grub_vga_init): Renamed to
12524 `grub_vga_mod_init'. Updated all users.
12525 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
12527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
12528 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
12531 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
12532 Generate a function to initialize the module in utilities.
12533 Updated all callers.
12534 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
12535 initialize the module in utilities. Updated all callers.
12537 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
12539 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
12540 escape sequence and a literal ^L to clear the screen.
12542 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
12543 when returning from Open Firmware.
12545 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
12547 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
12548 (grub_ofconsole_height): Likewise.
12549 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
12550 manually insert a '\n'.
12551 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
12552 `grub_ofconsole_height'. Return early if these are already set.
12554 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
12556 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
12557 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
12558 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
12559 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
12560 and `normal/script.c'.
12561 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
12562 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
12563 (test_mod_SOURCES): New variable.
12564 (test_mod_CFLAGS): Likewise.
12565 (test_mod_LDFLAGS): Likewise.
12566 (pkgdata_MODULES): Add `test.mod'.
12567 (grub_script.tab.c): New rule.
12568 (grub_script.tab.h): Likewise.
12570 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
12572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
12573 `commands/test.c', `normal/execute.c', `normal/lexer.c',
12574 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
12575 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
12576 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
12577 (test_mod_SOURCES): New variable.
12578 (test_mod_CFLAGS): Likewise.
12579 (pkgdata_MODULES): Add `test.mod'.
12580 (grub_script.tab.c): New rule.
12581 (grub_script.tab.h): Likewise.
12583 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
12585 Add initial scripting support.
12587 * commands/test.c: New file.
12588 * include/grub/script.h: Likewise.
12589 * normal/execute.c: Likewise.
12590 * normal/function.c: Likewise.
12591 * normal/lexer.c: Likewise.
12592 * normal/parser.y: Likewise.
12593 * normal/script.c: Likewise.
12595 * configure.ac: Add `AC_PROG_YACC' test.
12597 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
12598 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
12599 `normal/function.c' and `normal/script.c'.
12600 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
12601 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
12602 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
12604 (pkgdata_MODULES): Add `test.mod'.
12605 (grub_script.tab.c): New rule.
12606 (grub_script.tab.h): Likewise.
12608 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
12610 * include/grub/normal.h (grub_test_init): New prototype.
12611 (grub_test_fini): Likewise.
12613 * normal/command.c: Include <grub/script.h>.
12614 (grub_command_execute): Rewritten.
12616 * util/grub-emu.c (main): Call `grub_test_init' and
12619 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
12621 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
12623 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
12624 there are no pending characters.
12626 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
12628 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
12629 `grub_strndup' to drop device arguments. Replace unnecessary
12630 `grub_strndup' with `grub_strdup'.
12632 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
12634 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
12635 `debug' environment variable has been set.
12637 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
12639 * Makefile.in (install-local): Use $(DATA).
12640 (uninstall): Likewise.
12641 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
12642 (sbin_UTILITIES): ... to here.
12643 (sbin_SCRIPTS): New variable.
12644 (grub_install_SOURCES): New variable.
12645 * util/powerpc/ieee1275/grub-install.in: New file.
12646 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
12648 (add_segments): Call `grub_util_get_path'.
12650 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
12652 From Timothy Baldwin:
12653 * commands/ls.c (grub_ls_list_files): Close FILE with
12655 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
12657 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
12659 * include/grub/parser.h: New file.
12661 * kern/parser.c: Likewise.
12663 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
12664 (grub_setup_SOURCES): Likewise.
12665 (grub_probefs_SOURCES): Likewise.
12666 (grub_emu_SOURCES): Likewise.
12667 (kernel_img_HEADERS): Add `parser.h'.
12669 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
12670 (grub_emu_SOURCES): Add `kern/parser.c'.
12671 (grubof_SOURCES): Likewise.
12673 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
12674 (grubof_SOURCES): Add `kern/parser.c'.
12676 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
12678 * kern/misc.c (grub_split_cmdline): Removed function.
12680 * kern/rescue.c: Include <grub/parser.h>.
12681 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
12682 of `grub_split_cmdline'.
12684 * normal/command.c: Include <grub/parser.h>.
12685 (grub_command_execute): Use `grub_parser_split_cmdline' instead
12686 of `grub_split_cmdline'.
12688 * normal/completion.c: Include <grub/parser.h>.
12689 (cmdline_state): New variable.
12690 (iterate_dir): End the filename with a quote depending on the
12691 command line state.
12692 (get_state): new function.
12693 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
12694 split the arguments and determine the current argument. When the
12695 argument string is not quoted, escape all spaces.
12697 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
12699 * normal/sparc64/setjmp.S: New file.
12701 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
12703 * include/grub/sparc64/libgcc.h: New file.
12704 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
12705 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
12706 normal/sparc64/setjmp.c.
12708 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
12710 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
12711 * kern/sparc64/cache.S: New file.
12712 * kern/sparc64/cache.c: Removed.
12713 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
12714 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
12716 (COMMON_LDFLAGS): Add -melf64_sparc.
12717 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
12718 (grubof_SOURCES): Use cache.S instead of cache.c.
12719 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
12720 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
12721 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
12723 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
12724 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
12725 (linux_mod_CFLAGS): Commented out.
12726 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
12727 out because module isn't built.
12728 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
12729 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
12730 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
12731 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
12732 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
12733 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
12734 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
12735 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
12736 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
12737 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
12738 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
12739 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
12740 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
12741 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
12743 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
12745 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
12746 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
12747 longer, because HFS should not be used on PC.
12749 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
12751 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
12752 consistently within the loop.
12754 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
12756 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
12757 directory can not be read.
12759 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
12761 * configure.ac (AC_INIT): Increase the version number to 1.91.
12763 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
12764 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
12765 term/i386/pc/serial.c.
12767 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
12769 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
12770 file size must be permitted.
12772 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
12773 between %ah and %al.
12775 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
12777 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
12779 Call the hook with a NUL-terminated filename.
12780 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
12783 * kern/term.c (cursor_state): New variable.
12784 (grub_term_set_current): Reset the cursor state on a new
12786 (grub_setcursor): Rewritten to use CURSOR_STATE.
12787 (grub_getcursor): New function.
12789 * include/grub/term.h (grub_getcursor): New prototype.
12791 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
12792 integers on ARM. Reported by Timothy Baldwin
12793 <T.E.Baldwin99@members.leeds.ac.uk>.
12795 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
12797 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
12799 (grub_sfs_dir): Likewise.
12801 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
12803 Add support for the SFS filesystem.
12805 * fs/sfs.c: New file.
12807 * DISTLIST: Added `fs/sfs.c'.
12809 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
12810 (grub_probefs_SOURCES): Likewise.
12811 (grub_emu_SOURCES): Likewise.
12812 (pkgdata_MODULES): Add `sfs.mod'.
12813 (sfs_mod_SOURCES): New variable.
12814 (sfs_mod_CFLAGS): Likewise.
12815 (sfs_mod_LDFLAGS): Likewise.
12817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
12818 (pkgdata_MODULES): Add `sfs.mod'.
12819 (sfs_mod_SOURCES): New variable.
12820 (sfs_mod_CFLAGS): Likewise.
12822 * util/grub-emu.c (main): Call `grub_sfs_init' and
12825 * include/grub/fs.h (grub_sfs_init): New prototype.
12826 (grub_sfs_fini): Likewise.
12828 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
12830 Add support for the AFFS filesystem.
12832 * fs/affs.c: New file.
12834 * DISTLIST: Added `fs/affs.c'.
12836 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
12837 (grub_probefs_SOURCES): Likewise.
12838 (grub_emu_SOURCES): Likewise.
12839 (pkgdata_MODULES): Add `affs.mod'.
12840 (affs_mod_SOURCES): New variable.
12841 (affs_mod_CFLAGS): Likewise.
12842 (affs_mod_LDFLAGS): Likewise.
12844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
12845 (pkgdata_MODULES): Add `affs.mod'.
12846 (affs_mod_SOURCES): New variable.
12847 (affs_mod_CFLAGS): Likewise.
12849 * util/grub-emu.c (main): Call `grub_affs_init' and
12852 * include/grub/fs.h (grub_affs_init): New prototype.
12853 (grub_affs_fini): Likewise.
12855 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
12857 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
12859 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
12861 * configure.ac: Accept `x86_64' as host_cpu. In that case add
12864 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
12867 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
12868 (COMMON_LDFLAGS): New variable.
12869 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
12870 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
12871 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
12872 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
12873 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
12874 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
12875 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
12876 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
12877 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
12878 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
12879 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
12880 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
12881 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
12882 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
12883 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
12885 (normal_mod_ASFLAGS): Add `-m32'.
12887 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
12888 (grub_host_size_t, grub_host_ssize_t): New types.
12889 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
12890 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
12891 `GRUB_HOST_SIZEOF_VOID_P'.
12893 * include/grub/kernel.h (struct grub_module_header): Type of
12894 member offset changed to `grub_host_off_t'. Type of member size
12895 changed to `grub_host_size_t'.
12896 (struct grub_module_info): Type of member offset changed to
12897 `grub_host_off_t'. Type of member size changed to
12898 `grub_host_size_t'.
12900 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
12902 Make GRUB's kernel compliant to Multiboot Specification.
12904 * kern/i386/pc/startup.S (multiboot_header): New label.
12905 (multiboot_entry): Likewise.
12906 (multiboot_trampoline): Likewise.
12908 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
12909 Increased to 0x4A0.
12911 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
12912 put parentheses after a question mark.
12913 [!GRUB_UTIL] (my_mod): New variable.
12915 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
12917 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
12919 Adds support for the XFS filesystem. Btrees are not supported
12922 * fs/xfs.c: New file.
12924 * DISTLIST: Added `fs/xfs.c'.
12926 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
12927 (grub_probefs_SOURCES): Likewise.
12928 (grub_emu_SOURCES): Likewise.
12929 (pkgdata_MODULES): Add `xfs.mod'.
12930 (xfs_mod_SOURCES): New variable.
12931 (xfs_mod_CFLAGS): Likewise.
12933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
12934 (pkgdata_MODULES): Add `xfs.mod'.
12935 (xfs_mod_SOURCES): New variable.
12936 (xfs_mod_CFLAGS): Likewise.
12938 * util/grub-emu.c (main): Call `grub_xfs_init' and
12941 * include/grub/fs.h (grub_xfs_init): New prototype.
12942 (grub_xfs_fini): Likewise.
12945 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
12947 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
12948 color modes, allow greater than 16 colors to be configured as
12951 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12953 * normal/completion.c (complete_arguments): Add the qualifier
12954 const into OPTIONS.
12956 From Omniflux <omniflux+lists@omniflux.com>:
12957 * include/grub/terminfo.h: New file.
12958 * include/grub/tparm.h: Likewise.
12959 * include/grub/i386/pc/serial.h: Likewise.
12960 * term/terminfo.c: Likewise.
12961 * term/tparm.c: Likewise.
12962 * term/i386/pc/serial.c: Likewise.
12963 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
12965 (terminfo_mod_SOURCES): New variable.
12966 (terminfo_mod_CFLAGS): Likewise.
12967 (serial_mod_SOURCES): Likewise.
12968 (serial_mod_CFLAGS): Likewise.
12970 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
12972 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
12973 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
12974 and kern/powerpc/ieee1275/cmain.c, respectively.
12976 * boot/powerpc/ieee1275/crt0.S: Moved to ...
12977 * kern/powerpc/ieee1275/crt0.S: ... here.
12979 * boot/powerpc/ieee1275/cmain.c: Moved to ...
12980 * kern/powerpc/ieee1275/cmain.c: ... here.
12982 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
12983 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
12984 instead of boot/powerpc/ieee1275/crt0.S and
12985 boot/powerpc/ieee1275/cmain.c, respectively.
12987 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
12988 sectors. It was not used anyway.
12990 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
12992 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
12993 `unused parameter' warning.
12995 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
12997 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
12999 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
13002 2005-08-28 Marco Gerards <metgerards@student.han.nl>
13004 * include/grub/normal.h (enum grub_completion_type): Added
13005 `GRUB_COMPLETION_TYPE_ARGUMENT'.
13007 * normal/cmdline.c (print_completion): Handle
13008 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
13009 * normal/menu_entry.c (store_completion): Likewise.
13011 * normal/completion.c (complete_arguments): New function.
13012 (grub_normal_do_completion): Call `complete_arguments' when the
13013 current words start with a dash.
13015 2005-08-27 Marco Gerards <metgerards@student.han.nl>
13017 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
13018 `gzio.mod' instead of `io.mod').
13020 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
13022 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
13023 (DISTDIRS): Added io and video.
13024 Rewrite the search routine to make an output consistently.
13026 * DISTLIST: Added conf/sparc64-ieee1275.mk,
13027 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
13028 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
13029 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
13030 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
13031 util/powerpc/ieee1275/misc.c.
13033 * include/grub/gzio.h: New file.
13034 * io/gzio.c: Likewise.
13036 * kern/file.c (grub_file_close): Call grub_device_close only if
13037 FILE->DEVICE is not NULL.
13039 * include/grub/mm.h [!NULL] (NULL): New macro.
13041 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
13043 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
13044 (pkgdata_MODULES): Added gzio.mod.
13045 (gzio_mod_SOURCES): New variable.
13046 (gzio_mod_CFLAGS): Likewise.
13048 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
13049 (pkgdata_MODULES): Added gzio.mod.
13050 (gzio_mod_SOURCES): New variable.
13051 (gzio_mod_CFLAGS): Likewise.
13053 * commands/cat.c: Include grub/gzio.h.
13054 (grub_cmd_cat): Use grub_gzfile_open instead of
13057 * commands/cmp.c: Include grub/gzio.h.
13058 (grub_cmd_cmp): Use grub_gzfile_open instead of
13061 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
13062 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
13064 (grub_rescue_cmd_module): Likewise.
13066 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
13068 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
13069 kern/sparc64/ieee1275/init.c because it contains _start.
13070 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
13072 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
13074 * configure.ac: Add support for sparc64 host with ieee1275
13076 * configure: Generated from configure.ac.
13077 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
13079 (grub_ofdisk_read): Likewise.
13080 (grub_ofdisk_open): Use %p to print pointer values, and cast the
13081 pointers as (void *) to remove a warning.
13082 (grub_ofdisk_close): Likewise.
13083 (grub_ofdisk_read): Likewise.
13084 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
13085 returns, so make it return void to remove a warning.
13086 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
13087 Corresponding prototype change.
13088 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
13089 values, and cast the pointers as (void *) to remove a warning.
13090 (grub_mm_dump): Likewise.
13091 * conf/sparc64-ieee1275.mk: New file.
13092 * conf/sparc64-ieee1275.rmk: Likewise.
13093 * include/grub/sparc64/setjmp.h: Likewise.
13094 * include/grub/sparc64/types.h: Likewise.
13095 * include/grub/sparc64/ieee1275/console.h: Likewise.
13096 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13097 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13098 * include/grub/sparc64/ieee1275/time.h: Likewise.
13099 * kern/sparc64/cache.c: Likewise.
13100 * kern/sparc64/dl.c: Likewise.
13101 * kern/sparc64/ieee1275/init.c: Likewise.
13102 * kern/sparc64/ieee1275/openfw.c: Likewise.
13104 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
13106 * util/console.c (grub_ncurses_putchar): If C is greater than
13107 0x7f, set C to a question mark.
13108 (grub_ncurses_getcharwidth): New function.
13109 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
13112 * normal/menu.c (print_entry): Made aware of Unicode. First,
13113 convert TITLE to UCS-4, and predict the cursor position by
13116 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
13118 * kern/misc.c (grub_utf16_to_utf8): Likewise.
13120 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
13122 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
13123 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
13126 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
13127 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
13128 grub_strcpy and grub_strlen. Take it into account that a space
13129 character is inserted as a delimiter.
13131 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
13133 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
13134 invalid magic in the error.
13136 * commands/search.c: New file.
13138 * util/grub-emu.c (main): Call grub_search_init and
13141 * kern/rescue.c (grub_rescue_print_disks): Removed.
13142 (grub_rescue_print_devices): New function.
13143 (grub_rescue_cmd_ls): Use grub_device_iterate with
13144 grub_rescue_print_devices instead of grub_disk_dev_iterate with
13145 grub_rescue_print_disks.
13147 * kern/partition.c (grub_partition_iterate): Return the result of
13148 PARTMAP->ITERATE instead of GRUB_ERRNO.
13150 * kern/device.c: Include grub/partition.h.
13151 (grub_device_iterate): New function.
13153 * include/grub/partition.h (grub_partition_iterate): Return int
13154 instead of grub_err_t.
13156 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
13158 [GRUB_UTIL] (grub_search_fini): Likewise.
13160 * include/grub/device.h (grub_device_iterate): New prototype.
13162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
13164 (pkgdata_MODULES): Added search.mod.
13165 (search_mod_SOURCES): New variable.
13166 (search_mod_CFLAGS): Likewise.
13168 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
13169 (pkgdata_MODULES): Added search.mod.
13170 (search_mod_SOURCES): New variable.
13171 (search_mod_CFLAGS): Likewise.
13173 * commands/ls.c (grub_ls_list_disks): Renamed to ...
13174 (grub_ls_list_devices): ... this, and use grub_device_iterate.
13175 All callers changed.
13177 * DISTLIST: Added commands/search.c.
13179 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
13181 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
13183 (grub_getcharwidth): New function.
13185 * kern/misc.c (grub_utf8_to_ucs4): New function.
13187 * include/grub/term.h (struct grub_term): Added a new member
13189 (grub_getcharwidth): New prototype.
13191 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
13193 * term/i386/pc/console.c (map_char): New function. Segregated from
13194 grub_console_putchar.
13195 (grub_console_putchar): Use map_char.
13196 (grub_console_getcharwidth): New function.
13197 (grub_console_term): Specified grub_console_getcharwidth as
13200 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
13201 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
13203 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
13205 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
13206 on grub_strtoul completely.
13207 (write_char): Declare local variables in the beginning of the
13209 (grub_vesafb_getcharwidth): New function.
13210 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
13213 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
13215 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
13216 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
13217 commands/i386/pc/vbetest.c.
13219 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
13220 call grub_vbe_get_controller_info again, because the returned
13221 information is volatile.
13222 (grub_vbe_set_video_mode): Mostly rewritten.
13223 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
13224 grub_vbe_status_t correctly.
13225 (grub_vbe_get_video_mode_info): Likewise.
13226 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
13227 several if statements.
13229 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
13230 * commands/i386/pc/vbeinfo.c: ... this.
13232 * commands/i386/pc/vbe_test.c: Renamed to ...
13233 * commands/i386/pc/vbetest.c: ... this.
13235 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
13237 (grub_cmd_vbeinfo): ... this. Save video modes before
13238 iterating. Skip a video mode, if it is not available, not enough
13239 information is given or it is monochrome. Show the memory
13240 model. Leave the interpretation of MODEVAR to grub_strtoul
13242 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
13243 (GRUB_MOD_FINI): Likewise.
13245 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
13246 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
13247 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
13248 duplicated grub_env_get. Leave the interpretation of MODEVAR to
13249 grub_strtoul completely.
13250 (real2pm): Removed.
13251 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
13252 (GRUB_MOD_FINI): Likewise.
13254 * normal/misc.c: Include grub/mm.h.
13256 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
13257 vbe_list_modes with vbetest.mod and vbeinfo.mod.
13258 (vbe_list_modes_mod_SOURCES): Removed.
13259 (vbe_list_modes_mod_CFLAGS): Likewise.
13260 (vbe_test_mod_SOURCES): Likewise.
13261 (vbe_test_mod_CFLAGS): Likewise.
13262 (vbeinfo_mod_SOURCES): New variable.
13263 (vbeinfo_mod_CFLAGS): Likewise.
13264 (vbetest_mod_SOURCES): Likewise.
13265 (vbetest_mod_CFLAGS): Likewise.
13267 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
13269 * normal/misc.c: New file.
13271 * DISTLIST: Added normal/misc.c.
13273 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
13274 DISK to HOOK. Call HOOK with DISK.
13275 * partmap/apple.c (apple_partition_map_iterate): Likewise.
13276 * partmap/pc.c (pc_partition_map_iterate): Likewise.
13277 * partmap/sun.c (sun_partition_map_iterate): Likewise.
13279 * normal/menu_entry.c (struct screen): Added a new member
13280 "completion_shown".
13281 (completion_buffer): New global variable.
13282 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
13283 (store_completion): New function.
13284 (complete): Likewise.
13285 (clear_completions): Likewise.
13286 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
13287 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
13288 a tab, call complete.
13290 * normal/completion.c (disk_dev): Removed.
13291 (print_simple_completion): Likewise.
13292 (print_partition_completion): Likewise.
13293 (print_func): New global variable.
13294 (add_completion): Do not take the arguments WHAT or PRINT any
13295 longer. Added a new argument TYPE. Instead of printing directly,
13296 call PRINT_FUNC if not NULL.
13297 All callers changed.
13298 (complete_device): Use a local variable DEV instead of
13299 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
13300 (grub_normal_do_completion): Take a new argument HOOK. Do not
13301 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
13302 empty string, return NULL instead.
13303 All callers changed.
13305 * normal/cmdline.c (print_completion): New function.
13307 * kern/partition.c (grub_partition_iterate): Add an argument DISK
13309 All callers changed.
13311 * kern/disk.c (grub_print_partinfo): Removed.
13313 * include/grub/partition.h (struct grub_partition_map): Add a new
13314 argument DISK into HOOK of ITERATE.
13315 (grub_partition_iterate): Add a new argument DISK to HOOK.
13317 * include/grub/normal.h (enum grub_completion_type): New enum.
13318 (grub_completion_type_t): New type.
13319 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
13320 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
13321 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
13322 (GRUB_COMPLETION_TYPE_FILE): Likewise.
13323 (grub_normal_do_completion): Added a new argument HOOK.
13324 (grub_normal_print_device_info): New prototype.
13326 * include/grub/disk.h (grub_print_partinfo): Removed.
13328 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
13329 (normal_mod_SOURCES): Likewise.
13330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13331 (normal_mod_SOURCES): Likewise.
13333 * commands/ls.c (grub_ls_list_disks): Use
13334 grub_normal_print_device_info instead of grub_print_partinfo. Free
13336 (grub_ls_list_files): Use grub_normal_print_device_info instead of
13337 duplicating the code.
13339 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
13341 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
13342 follow GCS more precisely.
13343 * commands/i386/pc/vbe_test.c: Likewise.
13344 * include/grub/i386/pc/vbe.h: Likewise.
13345 * term/i386/pc/vesafb.c: Likewise.
13346 * video/i386/pc/vbe.c: Likewise.
13348 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
13350 * DISTLIST: Added term/i386/pc/vesafb.c
13351 DISTLIST: Added video/i386/pc/vbe.c
13352 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
13353 DISTLIST: Added commands/i386/pc/vbe_test.c.
13354 * commands/i386/pc/vbe_list_modes.c: New file.
13355 * commands/i386/pc/vbe_test.c: Likewise.
13356 * term/i386/pc/vesafb.c: Likewise.
13357 * video/i386/pc/vbe.c: Likewise.
13358 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
13359 (grub_vbe_probe) Added prototype.
13360 (grub_vbe_set_video_mode) Likewise.
13361 (grub_vbe_get_video_mode) Likewise.
13362 (grub_vbe_get_video_mode_info) Likewise.
13363 (grub_vbe_set_pixel_rgb) Likewise.
13364 (grub_vbe_set_pixel_index) Likewise.
13365 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
13366 (pkgdata_MODULES): Added vesafb.mod.
13367 (pkgdata_MODULES): Added vbe_list_modes.mod.
13368 (pkgdata_MODULES): Added vbe_test.mod.
13369 (vbe_mod_SOURCES): Added.
13370 (vbe_mod_CFLAGS): Likewise.
13371 (vesafb_mod_SOURCES): Likewise.
13372 (vesafb_mod_CFLAGS): Likewise.
13373 (vbe_list_modes_mod_SOURCES): Likewise.
13374 (vbe_list_modes_mod_CFLAGS): Likewise.
13375 (vbe_test_mod_SOURCES): Likewise.
13376 (vbe_test_mod_CFLAGS): Likewise.
13378 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
13380 * normal/command.c (grub_command_execute): If INTERACTIVE is
13381 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
13382 CMDLINE. Disable the pager if INTERACTIVE is true.
13383 All callers are changed.
13385 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
13386 before reading a config file.
13387 * normal/main.c (read_config_file): Even if a command is not
13388 found, register it if it is within an entry.
13390 * util/grub-emu.c: Include sys/types.h and unistd.h.
13391 (options): Added --hold.
13392 (struct arguments): Added a new member "hold".
13393 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
13395 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
13396 cleared by a debugger, if it is not zero.
13398 * include/grub/normal.h (grub_command_execute): Add an argument
13401 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
13403 * DISTLIST: Added include/grub/i386/pc/vbe.h.
13405 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
13407 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
13408 program with another one, because the old one didn't detect a bug
13409 in gcc-3.4. Always use regparm 2, because the new test is still
13410 not enough for gcc-4.0. Someone must investigate a simple test
13411 case which detects a bug in gcc-4.0.
13413 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
13415 * DISTLIST: Added normal/completion.c.
13417 * normal/completion.c: New file.
13419 * term/i386/pc/console.c (grub_console_getwh): New function.
13420 (grub_console_term): Assign grub_console_getwh to getwh.
13422 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
13423 function is defined in normal/completion.c as
13424 grub_normal_do_completion.
13425 (grub_cmdline_get): Use grub_normal_do_completion instead of
13428 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
13429 returns non-zero, otherwise return 0.
13430 (grub_partition_iterate): First, probe the partition map. Then,
13431 call ITERATE only for this partition map.
13433 * kern/misc.c (grub_strncmp): Rewritten.
13435 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
13436 returns non-zero. Otherwise return 0.
13438 * include/grub/partition.h (grub_partition_map_iterate): Return
13439 int instead of void.
13441 * include/grub/normal.h (grub_normal_do_completion): New prototype.
13443 * include/grub/misc.h (grub_strncmp): Change the type of N to
13446 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
13449 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
13450 unsigned explicitly before comparing it with I.
13452 * kern/main.c (grub_env_write_root): Add the attribute unused into
13455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
13456 normal/completion.c.
13457 (normal_mod_SOURCES): Likewise.
13458 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13459 (normal_mod_SOURCES): Likewise.
13461 * normal/command.c (grub_iterate_commands): If ITERATE returns
13462 non-zero, return one immediately.
13464 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
13466 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
13467 * kern/i386/pc/startup.S: Updated Global Descriptor table's
13469 (grub_vbe_get_controller_info): New function.
13470 (grub_vbe_get_mode_info): Likewise.
13471 (grub_vbe_set_mode): Likewise.
13472 (grub_vbe_get_mode): Likewise.
13473 (grub_vbe_set_memory_window): Likewise.
13474 (grub_vbe_get_memory_window): Likewise.
13475 (grub_vbe_set_scanline_length): Likewise.
13476 (grub_vbe_get_scanline_length): Likewise.
13477 (grub_vbe_set_display_start): Likewise.
13478 (grub_vbe_get_display_start): Likewise.
13479 (grub_vbe_set_palette_data): Likewise.
13480 * include/grub/i386/pc/vbe.h: New file.
13482 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
13484 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
13485 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
13486 * DISTLIST: Likewise.
13487 * kern/ieee1275/of.c: Moved to ...
13488 * kern/ieee1275/ieee1275.c: ... here.
13490 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
13492 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
13493 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
13494 Pass 0 as `end' parameter to grub_strtoul().
13496 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
13498 * include/grub/powerpc/ieee1275/console.h: Do not include
13499 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
13501 (grub_console_cur_color): Remove i386-specific prototype.
13502 (grub_console_real_putchar): Likewise.
13503 (grub_console_checkkey): Likewise.
13504 (grub_console_getkey): Likewise.
13505 (grub_console_getxy): Likewise.
13506 (grub_console_gotoxy): Likewise.
13507 (grub_console_cls): Likewise.
13508 (grub_console_setcursor): Likewise.
13509 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
13510 Include <grub/machine/console.h>.
13511 * term/ieee1275/ofconsole.c: Likewise.
13513 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
13515 * Makefile.in (LIBLZO): New variable.
13517 * configure.ac: Check for LZO version 2.
13519 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
13520 lzo/lzo1x.h instead of lzo1x.h.
13522 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
13525 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
13526 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
13528 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
13529 copying the data from PARTITION to P.
13531 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
13533 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
13534 negative, unload the module.
13536 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
13537 map is "pc_partition_map" but not "pc".
13538 (usage): Fix the description. The options are --boot-image and
13539 --core-image but not --boot-file or --core-file.
13540 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
13541 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
13544 * util/i386/pc/grub-install.in: Do not specify --boot-file or
13545 --core-file. Specify INSTALL_DEVICE as an argument.
13547 * util/console.c: Include config.h.
13548 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
13549 [HAVE_NCURSES_H]: Include ncurses.h.
13550 [HAVE_CURSES_H]: Include curses.h.
13551 [!A_NORMAL] (A_NORMAL): Defined as zero.
13552 [!A_STANDOUT] (A_STANDOUT): Likewise.
13554 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
13556 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
13558 * configure.ac: Check for curses libraries and headers.
13560 * Makefile.in (LIBCURSES): New variable.
13562 * genmk.rb (Script::rule): Set the executable bits.
13564 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
13565 name of the PC partition map is "pc_partition_map" but not "pc".
13567 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
13569 * util/i386/pc/grub-install.in (grub_probefs): New variable.
13570 (modules): Likewise.
13571 (usage): Added descriptions for --modules and --grub-probefs.
13572 Handle --modules and --grub-probefs. Save the arguments in MODULES
13573 and GRUB_PROBEFS, respectively.
13574 Auto-detect a filesystem module against GRUBDIR. If the result is
13575 empty and modules are not specified explicitly, abort the
13576 installation. Add the result to MODULES.
13578 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
13579 disk/powerpc/ieee1275/ofdisk.c,
13580 include/grub/powerpc/ieee1275/init.h and
13581 term/powerpc/ieee1275/ofconsole.c.
13582 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
13583 term/ieee1275/ofconsole.c.
13585 * include/grub/powerpc/ieee1275/console.h: Resurrected.
13587 * COPYING: Upgraded to the latest version. Only the address of the
13588 FSF office has changed.
13590 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
13592 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
13593 kern/ieee1275.c with kern/ieee1275/of.c.
13595 * kern/ieee1275.c: Moved to ...
13596 * kern/ieee1275/of.c: ... here.
13598 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
13600 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
13603 * config.guess: Updated to the latest version from gnulib.
13604 * config.sub: Likewise.
13605 * install.sh: Likewise.
13606 * mkinstalldirs: Likewise.
13608 * include/grub/console.h: Removed. This file is arch-specific. Do
13609 not put this in include/grub.
13611 * include/grub/i386/pc/console.h: Resurrected.
13613 * util/console.c: Include grub/machine/console.h instead of
13615 * util/grub-emu.c: Likewise.
13617 2005-08-04 Marco Gerards <metgerards@student.han.nl>
13619 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
13622 From Vincent Pelletier <subdino2004@yahoo.fr>
13623 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
13624 Redefined to use grub_getwh.
13625 (grub_term): New member named getwh.
13626 (grub_getwh): New prototype.
13627 * kern/term.c (grub_getwh): New function.
13628 * term/i386/pc/console.c (grub_console_getwh): New function.
13629 (grub_console_term): New member `getwh'.
13630 * term/i386/pc/vga.c (grub_vga_getwh): New function.
13631 (grub_vga_term): New member `getwh'.
13632 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
13634 (grub_ofconsole_getw): New function.
13635 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
13636 (grub_ofconsole_term): New field named getwh and new initial
13639 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
13641 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
13642 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
13643 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
13644 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
13645 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
13646 of <grub/machine/ieee1275.h>.
13647 * commands/ieee1275/reboot.c: Likewise.
13648 * boot/powerpc/ieee1275/ieee1275.c: Move ...
13649 * kern/ieee1275.c: ... to here. All users updated. Change all
13650 parameter structs to use new type `grub_ieee1275_cell_t'.
13651 * term/powerpc/ieee1275/ofconsole.c: Move ...
13652 * term/ieee1275/ofconsole.c: ... to here. All users updated.
13653 * disk/powerpc/ieee1275/ofdisk.c: Move ...
13654 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
13655 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
13657 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
13658 Remove unused prototypes. All users updated.
13659 * include/grub/powerpc/ieee1275/console.h: Removed.
13660 * include/grub/powerpc/ieee1275/ieee1275.h: Define
13661 `grub_ieee1275_cell_t'.
13662 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
13663 Cast comparisons with -1 to the correct type.
13664 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
13665 type to match `grub_ieee1275_entry_fn'.
13667 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
13669 * DISTLIST: Added util/i386/pc/grub-probefs.c.
13671 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
13672 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
13674 (grub_probefs_SOURCES): New variable.
13676 * util/i386/pc/grub-probefs.c: New file.
13678 * util/i386/pc/grub-setup.c (main): Call
13679 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
13680 grub_hfs_init and grub_jfs_init to initialize the system. Call
13681 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
13682 grub_pc_partition_map_fini to finish the system.
13684 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
13686 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
13688 (grub_multiboot_load_elf32): Likewise.
13689 (grub_multiboot_is_elf64): Likewise.
13690 (grub_multiboot_load_elf64): Likewise.
13691 (grub_multiboot_load_elf): Likewise.
13692 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
13693 an ELF32 or ELF64 file.
13694 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
13696 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
13697 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
13698 NULL before calling FS->LABEL.
13699 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
13700 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
13701 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
13702 before calling FS->LABEL.
13704 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
13706 * util/i386/pc/grub-install.in (datadir): New variable.
13708 (pkgdatadir): New variable.
13709 (pkglibdir): Removed.
13711 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
13713 * DISTLIST: Added util/i386/pc/grub-install.in.
13715 * util/i386/pc/grub-install.in: New file.
13717 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
13718 (grub_install_SOURCES): Likewise.
13720 * genmk.rb: Added support for scripts.
13721 (Script): New class.
13722 (scripts): New variable.
13724 * Makefile.in (install-local): Install sbin_SCRIPTS by
13726 (uninstall): Remove sbin_SCRIPTS.
13728 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
13729 device, try to get a GRUB device by
13730 grub_util_biosdisk_get_grub_dev.
13733 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
13734 description for --device-map.
13736 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
13738 Change the semantics of variable hooks. They now return strings
13739 instead of error values.
13741 * util/i386/pc/grub-setup.c: Include grub/env.h.
13742 (setup): Use grub_device_set_root instead of grub_env_set.
13744 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
13745 grub_env_get instead of grub_device_set_root and
13746 grub_device_get_root, respectively.
13748 * kern/main.c (grub_env_write_root): New function.
13749 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
13750 grub_env_set instead of grub_device_set_root.
13752 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
13754 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
13755 rather than calling ENV->WRITE_HOOK afterwards.
13756 (grub_env_get): Return the result of ENV->READ_HOOK rather than
13757 passing a pointer of a pointer.
13758 (grub_register_variable_hook): Change the types of "read_hook" and
13759 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
13761 Allocate the default empty string on the heap, because this string
13762 may be freed later.
13764 * kern/device.c: Include grub/env.h.
13765 (grub_device_set_root): Removed.
13766 (grub_device_get_root): Likewise.
13767 (grub_device_open): Use grub_env_get instead of
13768 grub_device_get_root.
13770 * include/grub/env.h (grub_env_read_hook_t): New type.
13771 (grub_env_write_hook_t): Likewise.
13772 (grub_env_var): Change the types of "read_hook" and "write_hook"
13773 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
13774 (grub_register_variable_hook): Likewise.
13776 * include/grub/device.h (grub_device_set_root): Removed.
13777 (grub_device_set_root): Likewise.
13779 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
13780 make sure that DIRNAME terminates with '/', so that
13781 grub_fat_find_dir will fail if PATH is not a directory.
13783 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
13785 Use the qualifier auto for print_files and print_files_long.
13786 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
13788 Put a newline only if there is no error.
13789 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
13792 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
13794 * kern/partition.c (grub_partition_probe): Initialize PART to
13795 NULL. Otherwise, when no partition map is registered, this returns
13798 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
13800 * partmap/apple.c (apple_partition_map_iterate): Check if POS
13801 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
13804 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
13806 * commands/ls.c (grub_ls_list_disks): Print the filesystem
13807 information on each device, if it does not have partitions. Print
13808 "Device" instead of "Disk", because this function is not specific
13811 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
13812 static to ensure that it is put on the memory rather than a
13815 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
13817 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
13818 (grub_cat_init): Likewise.
13819 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
13820 (options): Likewise.
13821 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
13822 (grub_configfile_init): Likewise.
13823 * font/manager.c (GRUB_MOD_INIT): Likewise.
13824 * commands/help.c (GRUB_MOD_INIT): Likewise.
13825 (grub_help_init): Likewise.
13826 * normal/command.c (grub_command_init): Likewise.
13827 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
13828 * disk/loopback.c (grub_loop_init): Likewise.
13829 (GRUB_MOD_INIT): Likewise.
13830 * commands/ls.c (grub_ls_init): Likewise.
13831 (GRUB_MOD_INIT): Likewise.
13832 (options): Likewise.
13833 * commands/boot.c (grub_boot_init): Likewise.
13834 (GRUB_MOD_INIT): Likewise.
13835 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
13836 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
13837 (GRUB_MOD_INIT): Likewise.
13838 * commands/cmp.c (grub_cmp_init): Likewise.
13839 (GRUB_MOD_INIT): Likewise.
13841 * normal/arg.c: Use <> instead of "" to include header files.
13842 (SHORT_ARG_HELP): New macro.
13843 (SHORT_ARG_USAGE): Likewise.
13844 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
13845 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
13847 (find_short): Check if C is 'h' or 'u' explicitly.
13848 (grub_arg_show_help): Use space characters instead of tabs. Treat
13849 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
13850 are shown with --help and --usage only if they are not used for
13851 the command itself.
13852 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
13855 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
13856 const into "longarg". Change the type of "shortarg" to int.
13858 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
13860 * boot/i386/pc/boot.S (boot_drive_check): New label.
13862 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
13865 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
13866 which do not pass a boot drive correctly. Copied from GRUB Legacy.
13868 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
13870 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
13871 When turning off Gate A20, skip the check and return immediately,
13872 because this is not fatal usually.
13874 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
13876 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
13877 be 0x7C00 instead of 0x8000.
13879 * boot/i386/pc/pxeboot.S: Rewritten.
13881 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
13883 (gate_a20_check_state): Read a byte from 0x108000. Invert the
13886 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
13888 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
13889 robustness. This routine now supports a BIOS call and System
13890 Control Port A to modify the gate A20.
13892 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
13893 Increased to 0x440.
13895 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
13897 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
13898 device path and resulting ihandle.
13899 (grub_ofdisk_close): dprintf the ihandle being closed.
13900 (grub_ofdisk_read): dprintf function parameters.
13901 * kern/mm.c (grub_mm_init_region): Likewise.
13902 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
13903 (grub_linux_boot): dprintf the Linux entry point, initrd address and
13904 size, and boot arguments.
13905 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
13906 before loading into memory.
13907 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
13908 before loading into memory.
13910 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
13912 * kern/mm.c: Added much documentation.
13913 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
13914 8, set to 5 instead of 8.
13916 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
13918 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
13920 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
13921 (grub_mkdevicemap_SOURCES): New variable.
13923 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
13924 lib/device.c of GRUB Legacy.
13926 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
13928 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
13929 instead of PATH is NULL.
13931 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
13933 * commands/cmp.c (BUFFER_SIZE): New macro.
13934 (grub_cmd_cmp): Close the right file at the right time. Compare
13935 only data just read. Don't report files of different size as
13936 identical. Dynamically allocate buffers. Move variable
13937 declarations at the beginning of function.
13939 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
13941 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
13944 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
13946 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
13947 when backspace is pressed at beginning of line.
13949 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
13951 * DISTLIST: Added genfslist.sh.
13953 * normal/main.c (fs_module_list): New variable.
13954 (autoload_fs_module): New function.
13955 (read_fs_list): Likewise.
13956 (grub_normal_execute): Call read_fs_list.
13958 * kern/fs.c (grub_fs_autoload_hook): New variable.
13959 (grub_fs_probe): Added support for auto-loading.
13961 * include/grub/normal.h (struct grub_fs_module_list): New struct.
13962 (grub_fs_module_list_t): New type.
13964 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
13965 (grub_fs_autoload_hook): New prototype.
13967 * genfslist.sh: New file.
13969 * genmk.rb: Added a rule to generate a filesystem list.
13971 2005-06-30 Marco Gerards <metgerards@student.han.nl>
13973 * configure.ac: Fix the test for cross-compiling.
13975 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
13976 define GRUB_UTIL anymore.
13978 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
13979 so this function works on other systems than just big endian.
13980 (load_modules): Likewise.
13981 (add_segments): Likewise.
13983 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
13985 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
13986 contains `l' modifier, get a long from va_arg().
13988 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
13990 * kern/mm.c (grub_free): If the next free block which is being
13991 merged is the first free block, set the first block to the block
13993 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
13995 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
13997 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
13998 `grub_ieee1275_chosen'.
14000 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
14002 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
14003 (grub_ieee1275_chosen): New variable.
14004 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
14006 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
14007 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
14008 Rename first argument to `phandle' for consistency.
14009 (grub_ieee1275_get_property_length): Likewise.
14010 (grub_ieee1275_next_property): Likewise. Change type of first argument
14011 to grub_ieee1275_phandle_t.
14012 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
14013 Move export next to declaration.
14014 (grub_ieee1275_chosen): New variable.
14015 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
14016 Correct cosmetic typo.
14017 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
14018 `grub_ieee1275_chosen'.
14019 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
14020 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
14021 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
14022 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
14023 `grub_ieee1275_chosen'.
14025 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
14027 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
14029 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
14030 /chosen/bootargs as "variable=value" pairs.
14032 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
14034 * include/grub/misc.h (grub_dprintf): New macro.
14035 (grub_real_dprintf): New prototype.
14036 (grub_strword): Likewise.
14037 (grub_iswordseparator): Likewise.
14038 * kern/misc.c (grub_real_dprintf): New function.
14039 (grub_strword): Likewise.
14040 (grub_iswordseparator): Likewise.
14042 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
14044 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
14045 (roundup): Remove macro.
14046 (grub_ieee1275_flags): Make static.
14047 (grub_ieee1275_realmode): Remove.
14048 (grub_ieee1275_test_flag): New function.
14049 (grub_ieee1275_set_flag): Likewise.
14050 (find_options): Rename to `grub_ieee1275_find_options'; update
14051 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
14052 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
14053 (cmain): New prototype.
14054 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
14055 `grub_ieee1275_flags' directly.
14056 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
14057 machine/biosdisk.h.
14058 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
14059 Don't include grub/machine/init.h.
14060 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
14061 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
14063 (grub_ieee1275_realmode): Likewise.
14064 (grub_ieee1275_flag): New enum.
14065 (grub_ieee1275_test_flag): New prototype.
14066 (grub_ieee1275_set_flag): New prototype.
14067 * include/grub/powerpc/ieee1275/init.h: Remove file.
14068 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
14069 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
14070 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
14071 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
14073 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
14074 `grub_ieee1275_test_flag'.
14075 (grub_ieee1275_encode_devname): Likewise.
14077 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
14079 * include/grub/powerpc/ieee1275/ieee1275.h
14080 (grub_ieee1275_encode_devname): New prototype.
14081 (grub_ieee1275_get_filename): Likewise.
14082 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
14084 (grub_set_prefix): Likewise.
14085 (grub_machine_init): Call grub_set_prefix.
14086 * kern/powerpc/ieee1275/openfw.c: Fix typos.
14087 (grub_parse_type): New enum.
14088 (grub_ieee1275_get_devargs): New function.
14089 (grub_ieee1275_get_devname): Likewise.
14090 (grub_ieee1275_parse_args): Likewise.
14091 (grub_ieee1275_get_filename): Likewise.
14092 (grub_ieee1275_encode_devname): Likewise.
14094 2005-03-30 Marco Gerards <metgerards@student.han.nl>
14096 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
14097 `grub_loader_unset'.
14099 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
14101 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
14102 instead of grub_ieee1275_interpret.
14103 (grub_halt_init): New function.
14104 (grub_halt_fini): Likewise.
14105 (GRUB_MOD_INIT): Correct message grammar.
14106 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
14107 instead of grub_ieee1275_interpret.
14108 (grub_reboot_init): New function.
14109 (grub_reboot_fini): Likewise.
14110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
14111 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
14112 util/i386/pc/misc.c with commands/ieee1275/halt.c,
14113 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
14114 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
14116 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
14118 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
14120 (grub_halt): Likewise.
14121 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
14122 (cmain): Remove __attribute__((unused)).
14123 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
14124 (grub_heap_len): Likewise.
14125 (grub_machine_fini): New function.
14126 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
14127 (grub_halt): Likewise.
14128 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
14130 * util/powerpc/ieee1275/misc.c: New file.
14132 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
14134 * DISTLIST: New file.
14135 * gendistlist.sh: Likewise.
14137 * Makefile.in (COMMON_DISTFILES): Removed.
14138 (BOOT_DISTFILES): Likewise.
14139 (CONF_DISTFILES): Likewise.
14140 (DISK_DISTFILES): Likewise.
14141 (FS_DISTFILES): Likewise.
14142 (INCLUDE_DISTFILES): Likewise.
14143 (KERN_DISTFILES): Likewise.
14144 (LOADER_DISTFILES): Likewise.
14145 (TERM_DISTFILES): Likewise.
14146 (UTIL_DISTFILES): Likewise.
14147 (DISTFILES): Likewise.
14148 (uninstall): Uninstall files in $(pkgdata_DATA).
14149 (DISTLIST): New target.
14150 (distdir): Use the contents of the file DISTLIST to get a list of
14153 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
14155 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
14156 descriptor. This is ported from GRUB Legacy.
14158 * gencmdlist.sh: Added an extra semicolon to make it work with
14159 old sed versions. Reported by Robert Bihlmeyer
14160 <robbe@orcus.priv.at>.
14162 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
14164 Automatic loading of commands is supported.
14166 * normal/main.c (read_command_list): New function.
14167 (grub_normal_execute): Call read_command_list.
14169 * normal/command.c (grub_register_command): Return zero or CMD.
14170 Allocate CMD->NAME from the heap.
14171 Initialize CMD->MODULE_NAME to zero.
14172 Find the same name as well. If the same command is found and it is
14173 a dummy command, overwrite members. If it is not a dummy command,
14175 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
14176 (grub_command_find): If a dummy command is found, load a module
14177 and retry to find a command only once.
14179 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
14180 make sure that each command is loaded.
14182 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
14184 (struct grub_command): Remove const from the member `name'.
14185 Add a new member `module_name'.
14186 (grub_register_command): Return grub_command_t.
14188 * commands/help.c (grub_cmd_help): Call grub_command_find to make
14189 sure that each command is loaded.
14191 * genmk.rb (PModule::rule): Specify a module name without the
14192 suffix ".mod" to gencmdlist.sh.
14194 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
14196 * gencmdlist.sh: New file.
14198 * genmk.rb (PModule::rule): Generate a rule for a command list.
14200 Generate command.lst from $(COMMANDFILES).
14202 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
14203 (DATA): Added $(pkgdata_DATA).
14204 (install-local): Install files in $(pkgdata_DATA).
14206 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
14208 * term/i386/pc/vga.c (debug_command): Removed.
14209 (GRUB_MOD_INIT): Do not register the command "debug".
14211 From Hollis Blanchard:
14212 * commands/configfile.c: New file.
14213 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14214 commands/configfile.c.
14215 (pkgdata_MODULES): Added configfile.mod.
14216 (configfile_mod_SOURCES): New variable.
14217 (configfile_mod_CFLAGS): Likewise.
14218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
14219 commands/configfile.c.
14220 (pkgdata_MODULES): Added configfile.mod.
14221 (configfile_mod_SOURCES): New variable.
14222 (configfile_mod_CFLAGS): Likewise.
14223 * util/grub-emu.c (main): Call grub_configfile_init and
14224 grub_configfile_fini.
14225 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
14227 [GRUB_UTIL] (grub_configfile_fini): Likewise.
14229 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
14231 * normal/arg.c (grub_arg_show_help): Do not show the bug report
14234 * commands/help.c (grub_cmd_help): Do not print newlines after
14235 the last command in print_command_help.
14237 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
14239 * commands/default.h: New file.
14240 * commands/timeout.h: Likewise.
14241 * normal/context.c: Likewise.
14243 * util/misc.c: Do not include sys/times.h.
14244 Include sys/time.h and grub/machine/time.h.
14245 (grub_get_rtc): Rewritten with gettimeofday.
14247 * util/grub-emu.c (main): Call grub_default_init and
14248 grub_timeout_init before grub_normal_init, and call
14249 grub_timeout_fini and grub_default_fini after grub_main.
14251 * util/console.c (grub_ncurses_checkkey): Return the read
14254 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
14257 * normal/main.c (read_config_file): Push MENU. If this fails,
14258 print an error and wait for a user input.
14259 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
14260 If a menu is empty or an error occurs, pop MENU.
14261 (grub_normal_execute): Pop and free MENU after grub_menu_run
14264 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
14266 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
14268 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
14270 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
14272 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
14275 * include/grub/normal.h (struct grub_menu_list): New struct.
14276 (grub_menu_list_t): New type.
14277 (struct grub_context): New struct.
14278 (grub_context_t): New type.
14279 (grub_register_command): Got rid of EXPORT_FUNC.
14280 (grub_unregister_command): Likewise.
14281 (grub_context_get): New prototype.
14282 (grub_context_get_current_menu): Likewise.
14283 (grub_context_push_menu): Likewise.
14284 (grub_context_pop_menu): Likewise.
14285 [GRUB_UTIL] (grub_default_init): Likewise.
14286 [GRUB_UTIL] (grub_default_fini): Likewise.
14287 [GRUB_UTIL] (grub_timeout_init): Likewise.
14288 [GRUB_UTIL] (grub_timeout_fini): Likewise.
14290 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
14291 commands/timeout.c and normal/context.c.
14292 (pkgdata_MODULES): Added default.mod and timeout.mod.
14293 (normal_mod_SOURCES): Added normal/context.c.
14294 (default_mod_SOURCES): New variable.
14295 (default_mod_CFLAGS): Likewise.
14296 (timeout_mod_SOURCES): Likewise.
14297 (timeout_mod_CFLAGS): Likewise.
14298 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
14300 (pkgdata_MODULES): Added default.mod and timeout.mod.
14301 (normal_mod_SOURCES): Added normal/context.c.
14302 (default_mod_SOURCES): New variable.
14303 (default_mod_CFLAGS): Likewise.
14304 (timeout_mod_SOURCES): Likewise.
14305 (timeout_mod_CFLAGS): Likewise.
14307 * Makefile.in (all-local): Added $(MKFILES).
14309 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
14311 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
14312 (grub_emu_SOURCES): Likewise.
14313 (pkgdata_MODULES): Add `sun.mod'.
14314 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
14315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14317 (pkgdata_MODULES): Add `sun.mod'.
14318 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
14319 * include/grub/partition.h (grub_sun_partition_map_init): New
14321 (grub_sun_partition_map_fini): Likewise.
14322 * partmap/sun.c: New file.
14323 * util/grub-emu.c (main): Initialize and de-initialize the sun
14324 partitionmap support.
14326 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
14328 This implements an Emacs-like menu entry editor.
14330 * normal/menu_entry.c: New file.
14332 * util/console.c (grub_ncurses_putchar): Translate some Unicode
14333 characters to ASCII.
14334 (saved_char): New variable.
14335 (grub_ncurses_checkkey): Rewritten completely.
14336 (grub_ncurses_getkey): Likewise.
14337 (grub_ncurses_init): Call raw instead of cbreak.
14339 * normal/menu.c (print_entry): Do not put a space.
14340 (init_page): Renamed to ...
14341 (grub_menu_init_page): ... this. All callers changed.
14342 (edit_menu_entry): Removed.
14343 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
14345 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
14347 * kern/misc.c (grub_vprintf): Call grub_refresh.
14349 * normal/menu.c (DISP_LEFT): Renamed to ...
14350 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
14351 * normal/menu.c (DISP_UP): Renamed to ...
14352 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
14353 * normal/menu.c (DISP_RIGHT): Renamed to ...
14354 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
14355 * normal/menu.c (DISP_DOWN): Renamed to ...
14356 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
14357 * normal/menu.c (DISP_HLINE): Renamed to ...
14358 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
14359 * normal/menu.c (DISP_VLINE): Renamed to ...
14360 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
14361 * normal/menu.c (DISP_UL): Renamed to ...
14362 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
14363 * normal/menu.c (DISP_UR): Renamed to ...
14364 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
14365 * normal/menu.c (DISP_LL): Renamed to ...
14366 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
14367 * normal/menu.c (DISP_LR): Renamed to ...
14368 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
14369 * normal/menu.c (TERM_WIDTH): Renamed to ...
14370 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
14371 * normal/menu.c (TERM_HEIGHT): Renamed to ...
14372 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
14373 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
14374 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
14375 * normal/menu.c (TERM_MARGIN): Renamed to ...
14376 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
14377 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
14378 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
14379 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
14380 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
14381 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
14382 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
14383 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
14384 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
14385 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
14386 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
14387 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
14388 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
14389 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
14390 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
14391 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
14392 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
14393 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
14394 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
14395 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
14396 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
14397 All callers changed.
14399 * include/grub/normal.h: New prototype.
14401 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14402 normal/menu_entry.c.
14403 (normal_mod_SOURCES): Likewise.
14404 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14405 (normal_mod_SOURCES): Likewise.
14407 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
14409 * include/grub/normal.h (grub_halt_init): New prototype.
14410 (grub_halt_fini): Likewise.
14411 (grub_reboot_init): Likewise.
14412 (grub_reboot_fini): Likewise.
14414 * util/grub-emu.c: Include signal.h.
14415 (main_env): New global variable.
14416 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
14418 (grub_machine_fini): New function.
14419 (main): Call grub_halt_init and grub_reboot_init before
14420 grub_main, and grub_reboot_fini and grub_halt_fini after it.
14421 Call setjmp with MAIN_ENV to go back afterwards.
14422 Call grub_machine_fini right before return.
14424 * include/grub/util/misc.h: Include setjmp.h.
14425 (main_env): New prototype.
14427 * include/grub/kernel.h (grub_machine_fini): New prototype.
14428 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
14429 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
14431 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
14432 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
14433 * term/i386/pc/console.c (grub_console_fini): Likewise.
14435 * util/i386/pc/misc.c: New file.
14437 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14438 util/i386/pc/misc.c, commands/i386/pc/halt.c and
14439 commands/i386/pc/reboot.c.
14441 2005-02-14 Guillem Jover <guillem@hadrons.org>
14443 * include/grub/dl.h (grub_dl_check_header): New prototype.
14444 (grub_arch_dl_check_header): Change return type to grub_err_t,
14445 remove size parameter and export function. Update all callers.
14446 * kern/dl.c (grub_dl_check_header): New function.
14447 (grub_dl_load_core): Use `grub_dl_check_header' instead of
14448 `grub_arch_dl_check_header'. Check ELF type. Check if sections
14449 are inside the core.
14450 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
14451 independent ELF header checks.
14452 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
14453 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
14454 `grub_dl_check_header' instead of explicit checks. Check for the
14456 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
14457 `grub_dl_check_header' instead of explicit checks. Remove arch
14458 specific ELF header checks.
14460 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
14463 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
14465 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
14466 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
14468 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
14470 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
14471 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
14472 (part_map_iterate): Clear `grub_errno' and return 0 if
14473 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
14474 * partmap/amiga.c (amiga_partition_map_iterate): Return
14475 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
14476 * partmap/apple.c (apple_partition_map_iterate): Likewise.
14478 2005-02-01 Guillem Jover <guillem@hadrons.org>
14480 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
14483 2005-01-31 Marco Gerards <metgerards@student.han.nl>
14485 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
14487 (grub_rescue_cmd_linux): New prototype.
14488 (grub_rescue_cmd_initrd): Likewise.
14489 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
14491 (grub_linux_release_mem): Release the memory for the initrd.
14492 (grub_load_linux): Renamed from this...
14493 (grub_rescue_cmd_linux): ...To this. Changed all callers.
14494 Changed `entry' not to be static. Loop over memory regions to
14495 find another one when the default fails.
14496 (grub_rescue_cmd_initrd): New function.
14497 (grub_linux_init): Remove function.
14498 (grub_linux_fini): Likewise.
14499 (GRUB_MOD_INIT): Register `initrd'.
14500 (GRUB_MOD_FINI): Unregister `initrd'.
14501 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
14503 (grub_linux_normal_fini): Likewise.
14504 (GRUB_MOD_INIT): Register `initrd'.
14505 (GRUB_MOD_FINI): Unregister `initrd'.
14507 2005-01-31 Marco Gerards <metgerards@student.han.nl>
14509 * commands/help.c: New file.
14510 * normal/arg.c (show_help): Renamed to...
14511 (grub_arg_show_help): ... this.
14512 * commands/i386/pc/halt.c: New file.
14513 * commands/i386/pc/reboot.c: Likewise.
14514 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
14515 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
14516 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
14517 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
14519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14521 (pkgdata_MODULES): Add `help.mod'.
14522 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
14523 * grub/i386/pc/init.h (grub_reboot): New prototype.
14524 (grub_halt): Likewise.
14525 * include/grub/normal.h (grub_arg_show_help): New prototype.
14526 (grub_help_init): Likewise.
14527 (grub_help_fini): Likewise.
14528 * util/grub-emu.c (main): Initialize and deinitialize the help
14531 * normal/cmdline.c (grub_cmdline_get): Doc fix.
14533 * normal/command.c (grub_command_init): Fixed the description of
14534 the `set' and `unset' commands.
14536 2005-01-31 Marco Gerards <metgerards@student.han.nl>
14538 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
14540 * commands/ieee1275/halt.c: New file.
14541 * commands/ieee1275/reboot.c: Likewise.
14542 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
14543 `__attribute__ ((unused))'. Some GCS related fixed.
14544 (grub_suspend_init) [GRUB_UTIL]: Function removed.
14545 (grub_suspend_fini): Likewise.
14546 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
14548 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
14549 (halt_mod_CFLAGS): New variables.
14550 * include/grub/powerpc/ieee1275/ieee1275.h
14551 (grub_ieee1275_interpret): New prototype.
14553 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
14555 * include/grub/misc.h (memmove): New prototype.
14556 (memcpy): Likewise.
14558 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
14560 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
14561 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
14563 2005-01-22 Marco Gerards <metgerards@student.han.nl>
14565 * kern/misc.c (grub_strndup): Function rewritten.
14567 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
14569 * normal/menu.c (TERM_WIDTH): Macro redefined.
14570 (TERM_TOP_BORDER_Y): Likewise.
14571 (draw_border): Replaced while-loop by a for-loop. Make the number
14572 of lines consistent with the number of lines displayed in
14573 print_entries. Added a margin below the rectangle.
14574 (print_entry): Make the entry fit in the rectangle.
14575 (print_entries): Display the scroll arrows next to the right
14578 2005-01-21 Marco Gerards <metgerards@student.han.nl>
14580 * fs/minix.c (grub_minix_find_file): Reserve more space for
14581 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
14582 `grub_strncpy' to copy `path' into it.
14584 2005-01-21 Marco Gerards <metgerards@student.han.nl>
14586 Add the loopback device, a device via which files can be accessed
14589 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
14590 (pkgdata_MODULES): Add loopback.mod.
14591 (loopback_mod_SOURCES): New variable.
14592 (loopback_mod_CFLAGS): Likewise.
14593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14595 (pkgdata_MODULES): Add loopback.mod.
14596 (loopback_mod_SOURCES): New variable.
14597 (loopback_mod_CFLAGS): Likewise.
14598 * disk/loopback.c: new file.
14599 * include/grub/normal.h (grub_loop_init): New prototype.
14600 (grub_loop_fini): New prototype.
14601 * util/grub-emu.c (main): Initialize and de-initialize loopback
14603 * include/grub/disk.h (grub_disk_dev_id): Add
14604 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
14606 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
14608 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
14610 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
14611 (suspend_mod_SOURCES): New variable.
14612 (suspend_mod_CFLAGS): Likewise.
14613 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
14615 * commands/ieee1275/suspend.c: New file.
14617 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14619 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
14620 ((unused))' to `__attribute__ ((used))'.
14621 (GRUB_MOD_FINI): Likewise.
14622 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
14623 * genmk.rb (PModule): Assign space to common symbols when linking
14626 2005-01-20 Marco Gerards <metgerards@student.han.nl>
14628 * include/grub/mm.h (grub_mm_init_region): Change the type of the
14629 `unsigned' arguments to `grub_size_t'.
14630 (grub_malloc): Likewise.
14631 (grub_realloc): Likewise.
14632 (grub_memalign): Likewise.
14633 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
14634 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
14635 * util/misc.c (grub_malloc): Likewise.
14636 (grub_realloc): Likewise.
14637 * kern/mm.c (get_header_from_pointer): Change the casts to
14638 `unsigned' into a cast to `grub_size_t'.
14640 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
14641 point to `currnode' when `currnode' is changed.
14643 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
14644 Schottelius <nico-linux@schottelius.org>.
14646 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
14648 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
14649 (note_path): Remove variable.
14650 (GRUB_IEEE1275_NOTE_NAME): New macro.
14651 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
14652 (grub_ieee1275_note_hdr): New structure.
14653 (grub_ieee1275_note_desc): Likewise.
14654 (grub_ieee1275_note): Likewise.
14655 (load_note): Remove `dir' argument. All callers updated. Remove
14656 `note_img' and `path'. Do not load a file from `note_path'.
14657 Initialize a struct grub_ieee1275_note and write that to `out'.
14658 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
14660 2005-01-05 Marco Gerards <metgerards@student.han.nl>
14662 * util/misc.c (grub_util_read_image): Revert last change. It
14663 called `grub_util_read_at', which seeks from the beginning of the
14666 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
14668 * TODO: Add note about endianness in grub-mkimage.
14669 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
14671 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
14672 (grub_mkimage_SOURCES): New target.
14673 * include/grub/kernel.h (grub_start_addr): Remove variable.
14674 (grub_end_addr): Likewise.
14675 (grub_total_module_size): Likewise.
14676 (grub_kernel_image_size): Likewise.
14677 (GRUB_MODULE_MAGIC): New constant.
14678 (grub_module_info): New structure.
14679 (grub_arch_modules_addr): New prototype.
14680 (grub_get_end_addr): Remove prototype.
14681 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
14682 * include/grub/powerpc/ieee1275/kernel.h: New file.
14683 * include/grub/util/misc.h (grub_util_get_fp_size): New
14685 (grub_util_read_at): Likewise.
14686 (grub_util_write_image_at): Likewise.
14687 * kern/main.c (grub_get_end_addr): Remove function.
14688 (grub_load_modules): Call grub_arch_modules_addr instead of using
14689 grub_end_addr. Look for a grub_module_info struct in memory. Use
14690 the grub_module_info fields instead of calling grub_get_end_addr
14691 as loop conditions. Move grub_add_unused_region code here.
14692 (grub_add_unused_region): Remove function.
14693 * kern/i386/pc/init.c: Include grub/cache.h.
14694 (grub_machine_init): Remove call to grub_get_end_addr. Remove
14695 one call to add_mem_region.
14696 (grub_arch_modules_addr): New function.
14697 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
14698 (grub_total_module_size): Likewise.
14699 Include grub/machine/kernel.h.
14700 (grub_arch_modules_addr): New function.
14701 * util/grub-emu.c (grub_end_addr): Remove variable.
14702 (grub_total_module_size): Likewise.
14703 (grub_arch_modules_addr): New function.
14704 * util/misc.c: Include unistd.h.
14705 (grub_util_get_fp_size): New function.
14706 (grub_util_read_at): Likewise.
14707 (grub_util_write_image_at): Likewise.
14708 (grub_util_read_image): Call grub_util_read_at.
14709 (grub_util_write_image): Call grub_util_write_image_at.
14710 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
14711 additional memory in kernel_img for a struct grub_module_info.
14712 Fill in that grub_module_info.
14713 * util/powerpc/ieee1275/grub-mkimage.c: New file.
14715 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
14717 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
14719 * include/grub/powerpc/ieee1275/ieee1275.h
14720 (grub_ieee1275_milliseconds): New prototype.
14721 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
14723 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
14724 grub_ieee1275_milliseconds.
14726 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
14728 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
14730 (find_options): New function.
14731 (cmain): Call find_options.
14732 * include/grub/powerpc/ieee1275/ieee1275.h
14733 (grub_ieee1275_realmode): New extern variable.
14734 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
14735 grub_map if grub_ieee1275_realmode is false.
14737 2004-12-29 Marco Gerards <metgerards@student.han.nl>
14739 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
14740 lines are inserted and make it work like readline. Reported by
14741 Vincent Pelletier <subdino2004@yahoo.fr>.
14743 2004-12-28 Marco Gerards <metgerards@student.han.nl>
14745 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
14747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
14748 `kern/powerpc/cache.S'.
14750 2004-12-27 Marco Gerards <metgerards@student.han.nl>
14752 * genmk.rb: Handle the `Program' class in the main loop. Written
14753 by Johan Rydberg <jrydberg@gnu.org>.
14754 (Program): New class.
14755 (programs): New variable.
14756 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
14757 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
14758 instead of "grub/kernel.h". Include <grub/machine/init.h>.
14759 (help_arch): Function removed.
14760 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
14761 `powerpc/libgcc.h' and `loader.h'.
14762 (pkgdata_PROGRAMS): New variable.
14763 (sbin_UTILITIES): Variable removed.
14764 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
14765 (grubof_SOURCES): Variable re-defined so it only includes the
14766 core functionality.
14767 (grubof_CFLAGS): Remove `-DGRUBOF'.
14768 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
14769 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
14770 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
14771 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
14772 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
14773 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
14774 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
14775 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
14776 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
14777 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
14778 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14779 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
14780 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
14781 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
14782 (pc_mod_CFLAGS): New variables.
14783 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
14784 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
14785 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
14786 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
14788 * include/grub/i386/pc/init.h (grub_os_area_addr)
14789 (rub_os_area_size): ... to here.
14790 * include/grub/powerpc/ieee1275/ieee1275.h
14791 (grub_ieee1275_entry_fn): Export symbol.
14792 * include/grub/powerpc/ieee1275/init.h: New file.
14793 * include/grub/powerpc/libgcc.h: Likewise.
14794 * include/grub/cache.h: Likewise.
14795 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
14796 <hollis@penguinppc.org>.
14797 * kern/dl.c: Include <grub/cache.h>.
14798 (grub_dl_flush_cache): New function.
14799 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
14801 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
14802 (grub_console_init): Removed prototypes.
14803 (grub_machine_init): Don't initialize the modules anymore.
14804 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
14806 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
14807 Macro undef removed.
14808 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
14809 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
14810 relocation `R_PPC_REL32'. Return an error when the relocation is
14812 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
14813 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
14814 * util/misc.c (grub_arch_sync_caches): Likewise.
14816 2004-12-19 Marco Gerards <metgerards@student.han.nl>
14818 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
14819 `symlist.c', add `grubof_symlist.c'.
14820 (symlist.c): Variable removed.
14821 (grubof_HEADERS): Variable added.
14822 (grubof_symlist.c): New target.
14823 (kernel_syms.lst): Use `grubof_HEADERS' instead of
14824 `kernel_img_HEADERS'.
14825 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
14826 * kern/powerpc/dl.c: New file.
14827 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
14829 (grub_arch_dl_relocate_symbols): Likewise.
14830 (grub_register_exported_symbols): Likewise.
14832 2004-12-13 Marco Gerards <metgerards@student.han.nl>
14834 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
14835 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
14836 to fail instead. Reported by Vincent Pelletier
14837 <subdino2004@yahoo.fr>.
14839 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
14840 it is not allocated. Reported by Vincent Pelletier
14841 <subdino2004@yahoo.fr>.
14843 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
14844 output so the output looks better.
14846 2004-12-04 Marco Gerards <metgerards@student.han.nl>
14848 Modulize the partition map support and add support for the amiga
14851 * commands/ls.c: Include <grub/partition.h> instead of
14852 <grub/machine/partition.h>.
14853 * kern/disk.c: Likewise.
14854 * kern/rescue.c: Likewise.
14855 * loader/i386/pc/chainloader.c: Likewise.
14856 * normal/cmdline.c: Likewise.
14857 * kern/powerpc/ieee1275/init.c: Likewise.
14858 (grub_machine_init): Call `grub_pc_partition_map_init',
14859 `grub_amiga_partition_map_init' and
14860 `grub_apple_partition_map_init'.
14861 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
14862 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
14863 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
14864 `partition.h' and `pc_partition.h'.
14865 (grub_setup_SOURCES): Remove
14866 `disk/i386/pc/partition.c'. Add `kern/partition.c',
14867 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
14868 (grub_emu_SOURCES): Likewise.
14869 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
14870 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
14871 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
14872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
14873 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
14874 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
14875 (grubof_SOURCES): Likewise.
14876 * disk/i386/pc/partition.c: File removed.
14877 * disk/powerpc/ieee1275/partition.c: Likewise.
14878 * include/grub/powerpc/ieee1275/partition.h: Likewise.
14879 * include/grub/i386/pc/partition.h: Likewise.
14880 * kern/partition.c: New file.
14881 * partmap/amiga.c: Likewise.
14882 * partmap/apple.c: Likewise.
14883 * partmap/pc.c: Likewise.
14884 * include/grub/partition.h: Likewise..
14885 * include/grub/pc_partition.h: Likewise.
14886 * util/grub-emu.c: Include <grub/partition.h> instead of
14887 <grub/machine/partition.h>.
14888 (main): Call `grub_pc_partition_map_init',
14889 `grub_amiga_partition_map_init' and
14890 `grub_apple_partition_map_init' and deinitialize afterwards.
14891 * util/i386/pc/biosdisk.c: Include `#include
14892 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
14893 `<grub/machine/partition.h>'.
14894 * util/i386/pc/grub-setup.c: Likewise.
14895 * util/i386/pc/biosdisk.c: Likewise.
14896 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
14897 partition information in case of a PC partition.
14898 * util/i386/pc/grub-setup.c: Include `#include
14899 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
14900 `<grub/machine/partition.h>'.
14901 (setup): Only access the PC specific partition information in case
14904 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
14906 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
14907 (grub_longjmp): Likewise.
14908 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
14910 * normal/powerpc/setjmp.S: New file.
14911 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
14912 `normal/powerpc/setjmp.S'.
14913 (grubof_CFLAGS): Add `-DGRUBOF'.
14914 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
14915 [GRUB_UTIL && !GRUBOF].
14917 2004-11-16 Marco Gerards <metgerards@student.han.nl>
14919 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
14920 property named `name'. Correctly handle the error returned by
14921 `grub_ieee1275_finddevice' if a device can not be opened.
14923 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
14925 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
14926 `actual' for negativity.
14927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
14930 2004-11-01 Marco Gerards <metgerards@student.han.nl>
14932 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
14933 (PAGE_OFFSET): New macro.
14934 (CRTC_ADDR_PORT): Likewise.
14935 (CRTC_DATA_PORT): Likewise.
14936 (START_ADDR_HIGH_REGISTER): Likewise.
14937 (START_ADDR_LOW_REGISTER): Likewise.
14938 (GRAPHICS_ADDR_PORT): Likewise.
14939 (GRAPHICS_DATA_PORT): Likewise.
14940 (READ_MAP_REGISTER): Likewise.
14941 (INPUT_STATUS1_REGISTER): Likewise.
14942 (INPUT_STATUS1_VERTR_BIT): Likewise.
14943 (page): New variable.
14944 (wait_vretrace): New function.
14945 (set_read_map): Likewise.
14946 (set_start_address): Likewise.
14947 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
14949 (check_vga_mem): Take the page into account.
14950 (write_char): Likewise.
14951 (write_cursor): Likewise.
14952 (scroll_up): Likewise. Copy the page to the page that is not
14953 shown and switch between both pages.
14954 (grub_vga_putchar): Fix off by one error.
14955 (grub_vga_cls): Wait for the vertical retrace. Take the page into
14958 2004-11-01 Marco Gerards <metgerards@student.han.nl>
14960 Add support for iso9660 (including rockridge).
14962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
14963 (iso9660_mod_SOURCES): New variable.
14964 (iso9660_mod_CFLAGS): Likewise.
14965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
14966 * include/grub/fs.h (grub_iso9660_init): New prototype.
14967 * util/grub-emu.c (main): Call `grub_iso9660_init'.
14968 * fs/iso9660.c: New file.
14970 * include/grub/misc.h (grub_strncat): New prototype.
14971 * kern/misc.c (grub_strncat): New function.
14973 * fs/hfs.c (grub_hfs_mount): Translate the error
14974 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
14975 * fs/jfs.c (grub_jfs_mount): Likewise.
14976 * fs/ufs.c (grub_ufs_mount): Likewise.
14978 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
14980 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
14981 which initialized BAT registers.
14982 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
14983 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
14985 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
14986 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
14988 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
14989 (grub_mapclaim): Likewise.
14990 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
14991 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
14994 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
14996 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
14997 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
14998 -ffreestanding and -msoft-float.
15000 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
15002 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
15003 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
15004 set in grub_ieee1275_flags.
15006 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
15008 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
15010 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
15011 grub_console_init first.
15012 Change the memory range used for grub_ieee1275_claim and
15013 grub_mm_init_region.
15014 Print an error message if the claim fails.
15015 Include <grub/misc.h>.
15017 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
15019 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
15020 Call grub_children_iterate for device nodes of type `scsi',
15022 (grub_ofdisk_open): Remove manual device alias resolution.
15023 Fix memory leak when device cannot be opened.
15024 * include/grub/powerpc/ieee1275/ieee1275.h
15025 (grub_children_iterate): New prototype.
15026 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
15028 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
15029 Return -1 if args.size was -1.
15031 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
15033 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
15034 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
15035 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
15036 Open Firmware's memory for it; claim memory from _start to _end.
15037 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
15038 (_end): New extern.
15039 (_start): Zero BSS from __bss_start to _end.
15040 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
15042 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
15044 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
15046 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
15047 -1 if args.base was -1.
15049 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
15051 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
15052 escape sequence instead of a literal ^L. Also call
15053 grub_ofconsole_gotoxy.
15055 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
15057 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
15058 void * arguments to grub_addr_t. All callers updated. Also make
15059 the `result' argument optional.
15060 (grub_ieee1275_release): change void * arguments to grub_addr_t.
15061 All callers updated.
15063 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
15065 * commands/ls.c (grub_ls_list_files): Use the string following the
15066 initial ')', if present, as the filesystem path.
15067 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
15069 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
15071 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
15073 Make the source code of the menu interface more readable.
15075 * normal/menu.c: Include grub/mm.h.
15076 (TERM_WIDTH): New macro.
15077 (TERM_HEIGHT): Likewise.
15078 (TERM_INFO_HEIGHT): Likewise.
15079 (TERM_MARGIN): Likewise.
15080 (TERM_SCROLL_WIDTH): Likewise.
15081 (TERM_TOP_BORDER_Y): Likewise.
15082 (TERM_LEFT_BORDER_X): Likewise.
15083 (TERM_BORDER_WIDTH): Likewise.
15084 (TERM_MESSAGE_HEIGHT): Likewise.
15085 (TERM_BORDER_HEIGHT): Likewise.
15086 (TERM_NUM_ENTRIES): Likewise.
15087 (TERM_FIRST_ENTRY_Y): Likewise.
15088 (TERM_ENTRY_WIDTH): Likewise.
15089 (TERM_CURSOR_X): Likewise.
15090 (draw_border): Use macros instead of magic numbers.
15091 (print_entry): Likewise.
15092 (print_entries): Likewise.
15093 (run_menu): Likewise. Also, handle the key 'e'.
15094 (run_menu_entry): Ignore empty command lines.
15095 (print_message): Added a new argument EDIT. If EDIT is true,
15096 print a different message.
15097 (init_page): Likewise.
15098 (edit_menu_entry): New function. Not implemented yet.
15100 2004-09-17 Marco Gerards <metgerards@student.han.nl>
15102 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
15103 can be loaded from normal mode.
15105 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
15107 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
15108 (multiboot_mod_CFLAGS): New variables.
15109 * loader/i386/pc/linux_normal.c: New file.
15110 * loader/i386/pc/multiboot_normal.c: Likewise.
15112 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
15113 attribute `unused'.
15115 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
15116 `fdiro' to read the mode information from instead of `diro'.
15118 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
15119 looking up a symlink.
15121 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
15123 * normal/command.c (grub_command_execute): Don't parse the
15124 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
15125 flags of the command.
15127 * normal/menu.c (grub_menu_run): Fix typo.
15129 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
15131 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
15133 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
15134 `y + 1' instead of `y - 1'.
15136 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
15138 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
15140 From Hollis Blanchard <hollis@penguinppc.org>:
15141 * kern/misc.c (memmove): New alias for grub_memmove.
15142 (memcmp): New alias for grub_memcmp.
15143 (memset): New alias for grub_memset.
15144 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
15145 Change "int handle" to "grub_ieee1275_phandle_t handle".
15146 * include/grub/powerpc/ieee1275/ieee1275.h
15147 (grub_ieee1275_get_property): Likewise.
15149 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
15151 Added normal mode command `chainloader' as module chain.mod, which
15152 depends on normal.mod and _chain.mod.
15154 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
15155 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
15156 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
15158 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
15159 but arguments parsing moved to ...
15160 (grub_chainloader_cmd): ... here. New function.
15161 * include/grub/i386/pc/chainloader.h: New file.
15162 * loader/i386/pc/chainloader_normal.c: Likewise.
15164 2004-09-11 Marco Gerards <metgerards@student.han.nl>
15166 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
15167 (grub_mkimage_LDFLAGS): Likewise.
15168 (grub_emu_SOURCES): Likewise.
15169 (kernel_img_HEADERS): Added fshelp.h.
15170 * fs/ext2.c: Include <grub/fshelp.h>.
15171 (FILETYPE_REG): New macro.
15172 (FILETYPE_INO_REG): Likewise.
15173 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
15175 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
15177 (grub_fshelp_node): New struct.
15178 (grub_ext2_data): Added member `diropen'. Changed member `inode'
15180 (grub_ext2_get_file_block): Removed function.
15181 (grub_ext2_read_block): New function.
15182 (grub_ext2_read_file): Replaced parameter `data' by `node'.
15183 This function was written.
15184 (grub_ext2_mount): Read the root inode. Create a diropen struct.
15185 (grub_ext2_find_file): Removed function.
15186 (grub_ext2_read_symlink): New function.
15187 (grub_ext2_iterate_dir): Likewise.
15188 (grub_ext2_open): Rewritten.
15189 (grub_ext2_dir): Rewritten.
15190 * include/grub/fshelp.h: New file.
15191 * fs/fshelp.c: Likewise.
15193 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
15195 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
15196 (print_message): Add a missing newline.
15197 (run_menu): Added timeout support.
15198 (run_menu_entry): New local function.
15199 (grub_menu_run): Added support for booting.
15201 * kern/loader.c (grub_loader_is_loaded): New function.
15203 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
15204 (grub_get_rtc): Exported.
15206 * include/grub/i386/pc/time.h: Include grub/symbol.h.
15207 (grub_get_rtc): Exported.
15209 * include/grub/normal.h (struct grub_command_list): Remove
15210 constant from the member `command'.
15212 * include/grub/loader.h (grub_loader_is_loaded): Declared.
15214 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
15216 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
15218 2004-08-28 Marco Gerards <metgerards@student.han.nl>
15220 Add support for the JFS filesystem.
15222 * fs/jfs.c: New file.
15223 * include/grub/fs.h (grub_jfs_init): New prototype.
15224 (grub_jfs_fini): New prototype.
15225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
15226 (grub_emu_SOURCES): Likewise.
15227 (pkgdata_MODULES): Add jfs.mod.
15228 (jfs_mod_SOURCES): New variable.
15229 (jfs_mod_CFLAGS): Likewise.
15230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
15231 (grubof_SOURCES): Likewise.
15232 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
15234 * fs/fat.c (grub_fat_find_dir): Convert the filename little
15235 endian to the host endian.
15236 (grub_fat_utf16_to_utf8): Move function from there...
15237 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
15238 the endianness of the source string anymore.
15239 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
15241 2004-08-24 Marco Gerards <metgerards@student.han.nl>
15243 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
15244 (grub_boot_fini) [GRUB_UTIL]: Likewise.
15245 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
15246 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
15248 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
15249 (grub_hfs_iterate_dir): Make the function static. Add prototypes
15250 for `node_found' and `it_dir'.
15251 (grub_hfs_dir): Add prototype for `dir_hook'.
15253 * fs/minix.c (grub_minix_get_file_block): Add prototype for
15254 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
15255 and `indir32' to silence a gcc warning.
15257 * include/grub/fs.h (grub_hfs_init): New prototype.
15258 (grub_hfs_fini): Likewise.
15261 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
15263 Each disk device has its own id now. This is useful to make use
15264 of multiple disk devices.
15266 * include/grub/disk.h (grub_disk_dev_id): New enum.
15267 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
15268 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
15270 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
15271 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
15273 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
15274 GRUB_DISK_DEVICE_OFDISK_ID as an id.
15276 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
15277 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
15279 * include/grub/disk.h (struct grub_disk_dev): Added a new member
15280 "id" which is used by the cache manager.
15282 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
15285 2004-08-18 Marco Gerards <metgerards@student.han.nl>
15287 * fs/hfs.c: New file.
15288 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
15289 (grub_emu_SOURCES): Likewise.
15290 (pkgdata_MODULES): Add hfs.mod.
15291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
15292 (grubof_SOURCES): Likewise.
15293 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
15295 * include/grub/misc.h (grub_strncasecmp): Add prototype.
15296 * kern/misc.c (grub_strncasecmp): Add function.
15298 2004-08-14 Marco Gerards <metgerards@student.han.nl>
15300 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
15303 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
15304 (grub_ext2_dir): In case the directory entry type is unknown, read
15307 2004-08-02 Peter Bruin <pjbruin@dds.nl>
15309 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
15310 grub_load_linux instead of grub_rescue_cmd_linux as second
15311 argument of grub_rescue_register_command.
15313 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
15315 2004-07-27 Marco Gerards <metgerards@student.han.nl>
15317 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
15319 * commands/boot.c: Remove the check for `GRUB_UTIL'.
15320 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
15321 `loader/powerpc/ieee1275/linux.c',
15322 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
15323 * include/grub/powerpc/ieee1275/ieee1275.h
15324 (grub_ieee1275_release): New prototype.
15325 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
15326 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
15327 normal, boot, linux and linux_normal.
15328 * loader/powerpc/ieee1275/linux.c: New file.
15329 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
15331 2004-07-12 Marco Gerards <metgerards@student.han.nl>
15333 * normal/arg.c (grub_arg_parse): Correct error handling after
15334 reallocating the argumentlist (check if `argl' is not null instead
15335 of checking if `args' is not null).
15336 * kern/mm.c (grub_realloc): Return the same pointer when using the
15337 same region, instead of returning the header address.
15339 2004-07-11 Marco Gerards <metgerards@student.han.nl>
15341 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
15342 one block instead of two when looking for the initial partition.
15343 (grub_partition_probe): Initialize the local variable `p' with 0.
15344 Use base 10 for the grub_strtoul call.
15345 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
15346 need for one local variable.
15347 (grub_strtoul): Don't add the new value to `num', instead of that
15350 2004-07-11 Marco Gerards <metgerards@student.han.nl>
15352 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
15353 (pxeboot_img_SOURCES): New variable.
15354 (pxeboot_img_ASFLAGS): Likewise.
15355 (pxeboot_img_LDFLAGS): Likewise.
15356 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
15357 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
15358 <lode_leroy@hotmail.com>.
15360 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
15362 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
15363 there was no input.
15365 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
15367 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
15368 the history buffer logic.
15370 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
15372 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
15373 (FILETYPE_INO_SYMLINK): New macros.
15374 (grub_ext2_find_file): Check if the node is a directory using the
15375 inode stat information instead of using the filetype in the
15376 dirent. Exclude the first character of an absolute symlink.
15377 (grub_ext2_dir): Mask out the filetype part of the mode member of
15380 2004-05-24 Marco Gerards <metgerards@student.han.nl>
15382 Add support for UFS version 1 and 2. Add support for the minix
15383 filesystem version 1 and 2, both the variants with 14 and 30 long
15386 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
15388 (grub_emu_SOURCES): Likewise.
15389 (pkgdata_MODULES): Add ufs.mod and minix.mod.
15390 (ufs_mod_SOURCES): New variable.
15391 (ufs_mod_CFLAGS): Likewise.
15392 (minix_mod_SOURCES): Likewise.
15393 (minix_mod_CFLAGS): Likewise.
15394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
15396 (grubof_SOURCES): Likewise.
15397 * fs/ufs.c: New file.
15398 * fs/minix.c: New file.
15399 * include/grub/fs.h (grub_ufs_init): New prototype.
15400 (grub_ufs_fini): Likewise.
15401 (grub_minix_init): Likewise.
15402 (grub_minix_fini): Likewise.
15403 * util/grub-emu.c (main): Initialize and deinitialize UFS and
15406 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
15408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
15409 commands/ls.c, commands/terminal.c, commands/boot.c,
15410 commands/cmp.c and commands/cat.c.
15411 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
15413 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
15416 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
15418 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
15419 and grub_, respectively. Because the conversion is trivial and
15420 mechanical, I omit the details here. Please refer to the CVS
15421 if you need more information.
15423 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
15425 * include/pupa: Renamed to ...
15426 * include/grub: ... this.
15427 * util/i386/pc/pupa-mkimage.c: Renamed to ...
15428 * util/i386/pc/grub-mkimage.c: ... this.
15429 * util/i386/pc/pupa-setup.c: Renamed to ...
15430 * util/i386/pc/grub-setup.c: ... this.
15431 * util/pupa-emu.c: Renamed to ...
15432 * util/grub-emu.c: ... this.
15434 2004-03-29 Marco Gerards <metgerards@student.han.nl>
15436 Add support for the newworld apple macintosh (PPC). This has been
15437 tested on the powerbook 2000 only. It only adds support for
15438 generic ieee1275 functions, console and disk support. This should
15439 be easy to port to other architectures with support for Open
15442 * configure.ac: Accept the powerpc as host_cpu. In the case of
15443 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
15444 specific tests are only executed while building for the i386.
15445 Inverse test for crosscompile.
15446 * genmk.rb (Utility): Allow assembler files.
15447 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
15448 * conf/powerpc-ieee1275.rmk: New file.
15449 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
15450 * disk/powerpc/ieee1275/partition.c: Likewise.
15451 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
15452 * include/pupa/powerpc/ieee1275/console.h: Likewise.
15453 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
15454 * include/pupa/powerpc/ieee1275/time.h: Likewise.
15455 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
15456 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
15457 * include/pupa/powerpc/ieee1275/loader.h
15458 * include/pupa/powerpc/setjmp.h: Likewise.
15459 * include/pupa/powerpc/types.h: Likewise.
15460 * kern/powerpc/ieee1275/init.c: Likewise.
15461 * kern/powerpc/ieee1275/openfw.c: Likewise.
15462 * term/powerpc/ieee1275/ofconsole.c: Likewise.
15464 These files were written by Johan Rydberg
15465 (jrydberg@night.trouble.net) and I only modified them slightly.
15467 * boot/powerpc/ieee1275/cmain.c: New file.
15468 * boot/powerpc/ieee1275/crt0.S: Likewise.
15469 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
15470 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
15472 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
15474 * Makefile.in: Update copyright.
15475 * genmodsrc.sh: Likewise.
15476 * gensymlist.sh: Likewise.
15477 * term/i386/pc/vga.c: Indent correctly.
15479 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
15480 bugreporting address.
15481 * util/i386/pc/pupa-setup.c (usage): Likewise,
15482 (main): Call pupa_ext2_init and pupa_ext2_fini.
15484 * fs/fat.c (log2): Renamed to ...
15485 (fat_log2): ... this.
15486 All callers changed.
15487 * kern/misc.c (memcpy): Alias to pupa_memmove.
15488 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
15490 * util/console.c (pupa_ncurses_fini): Return 0.
15492 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
15493 Move fail label here.
15494 [__GNU__]: Don't warn when using stat.
15495 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
15496 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
15497 long int. Use strtol instead of strtoul.
15499 2004-03-14 Marco Gerards <metgerards@student.han.nl>
15501 * commands/boot.c: New file.
15502 * commands/cat.c: Likewise.
15503 * commands/cmp.c: Likewise.
15504 * commands/ls.c: Likewise.
15505 * commands/terminal.c: Likewise.
15506 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
15507 (pupa_register_command): Changed interface to match the new
15509 (pupa_command_execute): Changed (almost rewritten) so it uses
15510 pupa_split_command. Added support for setting variables using the
15512 (rescue_command): Changed to work with the new argument parser.
15513 (terminal_command): Moved from here to commands/terminal.c.
15514 (set_command): New function.
15515 (unset_command): New function.
15516 (insmod_command): New function.
15517 (rmmod_command): New function.
15518 (lsmod_command): New function.
15519 (pupa_command_init): Don't initialize the command terminal
15520 anymore. Initialize the commands set, unset, insmod, rmmod and
15522 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
15523 (kernel_img_HEADERS): Add arg.h and env.h.
15524 (pupa_mkimage_LDFLAGS): Add kern/env.c.
15525 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
15526 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
15528 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
15530 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
15531 (boot_mod_SOURCES): New variable.
15532 (terminal_mod_SOURCES): Likewise.
15533 (ls_mod_SOURCES): Likewise.
15534 (cmp_mod_SOURCES): Likewise.
15535 (cat_mod_SOURCES): Likewise.
15537 * normal/arg.c: New file.
15538 * kern/env.c: Likewise.
15539 * include/pupa/arg.h: Likewise.
15540 * include/pupa/env.h: Likewise.
15541 * font/manager.c (font_command): Changed to match argument parsing
15543 (PUPA_MOD_INIT): Likewise.
15544 * hello/hello.c (pupa_cmd_hello): Likewise.
15545 (PUPA_MOD_INIT): Likewise.
15546 * include/pupa/disk.h: Include <pupa/device.h>.
15547 (pupa_print_partinfo): New prototype.
15548 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
15549 (pupa_dl_get_prefix): Likewise.
15550 * include/pupa/misc.h: Include <pupa/err.h>.
15551 (pupa_isgraph): New prototype.
15552 (pupa_isdigit): Likewise.
15553 (pupa_split_cmdline): Likewise.
15554 * include/pupa/normal.h: Include <pupa/arg.h>.
15555 (pupa_command): Changed the prototype of the member `func' to
15556 match the argument parsing interface. Added member `options'.
15557 (pupa_register_command): Updated to match function.
15558 (pupa_arg_parse): New prototype.
15559 (pupa_hello_init) [PUPA_UTIL]: New prototype.
15560 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
15561 (pupa_ls_init) [PUPA_UTIL]: Likewise.
15562 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
15563 (pupa_cat_init) [PUPA_UTIL]: Likewise.
15564 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
15565 (pupa_boot_init) [PUPA_UTIL]: Likewise.
15566 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
15567 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
15568 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
15569 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
15570 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
15571 * kern/disk.c: Include <pupa/file.h>.
15572 (pupa_print_partinfo): New function.
15573 * kern/dl.c: Include <pupa/env.h>.
15574 (pupa_dl_dir): Variable removed.
15575 (pupa_dl_load): Use the environment variable `prefix' instead of
15576 the variable pupa_dl_dir.
15577 (pupa_dl_set_prefix): Function removed.
15578 (pupa_dl_get_prefix): Likewise.
15579 * kern/i386/pc/init.c: Include <pupa/env.h>.
15580 (pupa_machine_init): Use the environment variable `prefix' instead of
15581 using pupa_dl_set_prefix to set the prefix.
15582 * kern/main.c: Include <pupa/env.h>.
15583 (pupa_set_root_dev): Use the environment variable `prefix' instead of
15584 using pupa_dl_get_prefix to get the prefix.
15585 * kern/misc.c: Include <pupa/env.h>.
15586 (pupa_isdigit): New function.
15587 (pupa_isgraph): Likewise.
15588 (pupa_ftoa): Likewise.
15589 (pupa_vsprintf): Added support for printing values of the type
15590 `double'. Make it possible to format variable output when using
15591 formatting like `%1.2%f'.
15592 (pupa_split_cmdline): New function.
15593 * kern/rescue.c: Include <pupa/env.h>.
15594 (next_word): Removed function.
15595 (pupa_rescue_cmd_prefix): Likewise.
15596 (pupa_rescue_cmd_set): New function.
15597 (pupa_rescue_cmd_unset): New function.
15598 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
15599 split the command line instead of splitting it here. Added
15600 support for setting variables using the syntax `foo=bar'. Don't
15601 initialize the prefix command anymore. Initialized the set and
15603 * normal/cmdline.c: Include <pupa/env.h>.
15604 (pupa_tab_complete): Added prototypes for print_simple_completion,
15605 print_partition_completion, add_completion, iterate_commands,
15606 iterate_dev, iterate_part and iterate_dir. Moved code to print
15607 partition information from here to kern/disk.c.
15608 (pupa_cmdline_run): Don't check if the function exists anymore.
15609 * normal/main.c: Include <pupa/env.h>.
15610 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
15611 instead of using pupa_dl_get_prefix to get the prefix.
15612 * term/i386/pc/vga.c: Include <pupa/arg.h>.
15613 (check_vga_mem): Cast pointers to `void *' to silence a gcc
15615 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
15616 (pupa_vga_setcolor): Declare unused variables with `__attribute__
15617 ((unused))' to silence a gcc warning.
15618 (pupa_vga_setcolor): Likewise.
15619 (debug_command): Changed to match argument parsing
15621 * util/pupa-emu.c: Include <pupa/env.h>.
15622 (options): Added 0's for unused fields to silence a gcc warning.
15624 (main): Use the environment variable `prefix' instead of using
15625 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
15626 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
15629 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
15630 * util/misc.c: Include <malloc.h>.
15631 (pupa_malloc): Rewritten so errors are correctly reported.
15632 (pupa_realloc): Likewise.
15633 (pupa_memalign): Likewise.
15634 (pupa_mm_init_region): Declare unused variables with
15635 `__attribute__ ((unused))' to silence a gcc warning.
15636 * normal/i386/setjmp.S: Remove tab at the end of the file to
15637 silence a gcc warning.
15638 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
15639 variables with `__attribute__ ((unused))' to silence a gcc
15641 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
15642 local variable i unsigned to silence a gcc warning.
15644 * kern/term.c: Include <pupa/misc.h>.
15645 (pupa_more_lines): New variable.
15646 (pupa_more): Likewise.
15647 (pupa_putcode): When the pager is active pause at the end of every
15649 (pupa_set_more): New function.
15650 * include/pupa/term.h (pupa_set_more): New prototype.
15653 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
15655 Now this project is GRUB 2 rather than PUPA. The location of
15656 the CVS repository was moved to GRUB's.
15658 * configure.ac: Use bug-grub as the reporting address.
15659 Use GRUB instead of PUPA.
15660 Change the version number to 1.90.
15662 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
15664 * genkernsyms.sh: Updated copyright information.
15665 * genmk.rb: Likewise.
15666 * genmodsrc.sh: Likewise.
15667 * gensymlist.sh: Likewise.
15668 * boot/i386/pc/boot.S: Likewise.
15669 * boot/i386/pc/diskboot.S: Likewise.
15670 * disk/i386/pc/biosdisk.c: Likewise.
15671 * disk/i386/pc/partition.c: Likewise.
15672 * font/manager.c: Likewise.
15673 * fs/ext2.c: Likewise.
15674 * fs/fat.c: Likewise.
15675 * include/pupa/boot.h: Likewise.
15676 * include/pupa/device.h: Likewise.
15677 * include/pupa/disk.h: Likewise.
15678 * include/pupa/dl.h: Likewise.
15679 * include/pupa/elf.h: Likewise.
15680 * include/pupa/err.h: Likewise.
15681 * include/pupa/file.h: Likewise.
15682 * include/pupa/font.h: Likewise.
15683 * include/pupa/fs.h: Likewise.
15684 * include/pupa/kernel.h: Likewise.
15685 * include/pupa/loader.h: Likewise.
15686 * include/pupa/misc.h: Likewise.
15687 * include/pupa/mm.h: Likewise.
15688 * include/pupa/net.h: Likewise.
15689 * include/pupa/normal.h: Likewise.
15690 * include/pupa/rescue.h: Likewise.
15691 * include/pupa/setjmp.h: Likewise.
15692 * include/pupa/symbol.h: Likewise.
15693 * include/pupa/term.h: Likewise.
15694 * include/pupa/types.h: Likewise.
15695 * include/pupa/i386/setjmp.h: Likewise.
15696 * include/pupa/i386/types.h: Likewise.
15697 * include/pupa/i386/pc/biosdisk.h: Likewise.
15698 * include/pupa/i386/pc/boot.h: Likewise.
15699 * include/pupa/i386/pc/console.h: Likewise.
15700 * include/pupa/i386/pc/init.h: Likewise.
15701 * include/pupa/i386/pc/kernel.h: Likewise.
15702 * include/pupa/i386/pc/linux.h: Likewise.
15703 * include/pupa/i386/pc/loader.h: Likewise.
15704 * include/pupa/i386/pc/memory.h: Likewise.
15705 * include/pupa/i386/pc/multiboot.h: Likewise.
15706 * include/pupa/i386/pc/partition.h: Likewise.
15707 * include/pupa/i386/pc/time.h: Likewise.
15708 * include/pupa/i386/pc/vga.h: Likewise.
15709 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
15710 * include/pupa/util/getroot.h: Likewise.
15711 * include/pupa/util/misc.h: Likewise.
15712 * include/pupa/util/resolve.h: Likewise.
15713 * kern/device.c: Likewise.
15714 * kern/disk.c: Likewise.
15715 * kern/dl.c: Likewise.
15716 * kern/err.c: Likewise.
15717 * kern/file.c: Likewise.
15718 * kern/fs.c: Likewise.
15719 * kern/loader.c: Likewise.
15720 * kern/main.c: Likewise.
15721 * kern/misc.c: Likewise.
15722 * kern/mm.c: Likewise.
15723 * kern/rescue.c: Likewise.
15724 * kern/term.c: Likewise.
15725 * kern/i386/dl.c: Likewise.
15726 * kern/i386/pc/init.c: Likewise.
15727 * kern/i386/pc/lzo1x.S: Likewise.
15728 * kern/i386/pc/startup.S: Likewise.
15729 * loader/i386/pc/chainloader.c: Likewise.
15730 * loader/i386/pc/linux.c: Likewise.
15731 * loader/i386/pc/multiboot.c: Likewise.
15732 * normal/cmdline.c: Likewise.
15733 * normal/command.c: Likewise.
15734 * normal/main.c: Likewise.
15735 * normal/menu.c: Likewise.
15736 * normal/i386/setjmp.S: Likewise.
15737 * term/i386/pc/console.c: Likewise.
15738 * term/i386/pc/vga.c: Likewise.
15739 * util/console.c: Likewise.
15740 * util/genmoddep.c: Likewise.
15741 * util/misc.c: Likewise.
15742 * util/pupa-emu.c: Likewise.
15743 * util/resolve.c: Likewise.
15744 * util/unifont2pff.rb: Likewise.
15745 * util/i386/pc/biosdisk.c: Likewise.
15746 * util/i386/pc/getroot.c: Likewise.
15747 * util/i386/pc/pupa-mkimage.c: Likewise.
15748 * util/i386/pc/pupa-setup.c: Likewise.
15750 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
15752 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
15753 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
15754 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
15755 reading and reset it after reading.
15756 (pupa_ext2_close): Return PUPA_ERR_NONE.
15758 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
15760 (struct linux_kernel_header): Add kernel_version and
15762 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
15763 pupa_file_read succeeds.
15764 (pupa_rescue_cmd_initrd): Implement.
15766 2003-12-03 Marco Gerards <metgerards@student.han.nl>
15768 * fs/ext2.c (pupa_ext2_label): New function.
15769 (pupa_ext2_fs): Added label.
15770 * fs/fat.c (pupa_fat_label): New function.
15771 (pupa_fat_fs): Added label.
15772 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
15774 * kern/misc.c (pupa_strndup): New function.
15775 * include/pupa/misc.h (pupa_strndup): New prototype.
15777 * include/pupa/normal.h: Include <pupa/err.h>.
15778 (pupa_set_history): New prototype.
15779 (pupa_iterate_commands): New prototype.
15780 * normal/cmdline.c: Include <pupa/machine/partition.h>,
15781 <pupa/disk.h>, <pupa/file.h>.
15782 (hist_size): New variable.
15783 (hist_lines): Likewise.
15784 (hist_end): Likewise.
15785 (hist_used): Likewise.
15786 (pupa_set_history): New function.
15787 (pupa_history_get): Likewise.
15788 (pupa_history_add): Likewise.
15789 (pupa_history_replace): Likewise.
15790 (pupa_tab_complete): Likewise.
15791 (pupa_cmdline_run): Added tab completion and history buffer. Tab
15792 completion shows partitionnames while completing partitions, this
15793 feature was suggested by Jeff Bailey.
15794 * normal/command.c (pupa_iterate_commands): New function.
15795 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
15796 (pupa_normal_init): Initialize history buffer.
15797 (PUPA_MOD_INIT): Likewise.
15798 (pupa_normal_fini): Free the history buffer.
15799 (PUPA_MOD_FINI): Likewise.
15801 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
15804 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
15805 * configure.ac [i386]: Check for regparam bug.
15806 (NESTED_FUNC_ATTR) [! i386]: Defined.
15808 2003-11-17 Marco Gerards <metgerards@student.han.nl>
15810 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
15811 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
15812 (pupa_emu_SOURCES): New variable.
15813 (pupa_emu_LDFLAGS): Likewise.
15814 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
15815 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
15816 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
15817 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
15818 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
15819 (pupa_jmp_buf): New typedef.
15820 (pupa_setjmp) [PUPA_UTIL]: New macro.
15821 (pupa_longjmp) [PUPA_UTIL]: Likewise.
15822 * include/pupa/term.h (struct pupa_term): New member `refresh'.
15823 (pupa_refresh): New prototype.
15824 * include/pupa/util/getroot.h: New file.
15825 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
15827 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
15828 (pupa_rescue_cmd_cat): Likewise.
15829 (pupa_rescue_cmd_ls): Likewise.
15830 (pupa_rescue_cmd_testload): Likewise.
15831 (pupa_rescue_cmd_lsmod): Likewise.
15832 * normal/cmdline.c (pupa_cmdline_get): Likewise.
15833 * normal/menu.c (run_menu): Likewise.
15834 * kern/term.c (pupa_cls): Likewise.
15835 (pupa_refresh): New function.
15836 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
15837 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
15838 * util/console.c: New file.
15840 * util/i386/pc/getroot.c: New file.
15841 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
15842 (pupa_putchar): New function.
15843 (pupa_refresh): Likewise.
15844 (xgetcwd): Function moved to ...
15845 (strip_extra_slashes): Likewise.
15846 (get_prefix): Likewise.
15847 * util/i386/pc/getroot.c: ... here.
15848 (find_root_device): Function moved and renamed to...
15849 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
15850 Changed all callers.
15851 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
15853 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
15854 Changed all callers.
15855 * util/misc.c (pupa_memalign): New function.
15856 (pupa_mm_init_region): Likewise.
15857 (pupa_register_exported_symbols): Likewise.
15858 (pupa_putchar): Function removed.
15859 * util/pupa-emu.c: New file.
15861 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
15863 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
15864 (_multiboot_mod_SOURCES): New variable.
15865 (_multiboot_mod_CFLAGS): Likewise.
15866 * loader/i386/pc/multiboot.c: New file.
15867 * include/pupa/i386/pc/multiboot.h: Likewise.
15868 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
15869 (pupa_multiboot_real_boot): New function.
15870 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
15871 (pupa_multiboot_real_boot): New prototype.
15872 (pupa_rescue_cmd_multiboot): Likewise
15873 (pupa_rescue_cmd_module): Likewise.
15875 * kern/loader.c (pupa_loader_set): Continue when
15876 pupa_loader_unload_func() fails.
15877 (pupa_loader_unset): New function.
15878 * include/pupa/loader.h (pupa_loader_unset): New prototype.
15880 * kern/misc.c (pupa_stpcpy): New function.
15881 * include/pupa/misc.h (pupa_stpcpy): New prototype.
15883 2003-11-12 Marco Gerards <metgerards@student.han.nl>
15885 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
15886 for available extensions.
15888 * include/pupa/i386/pc/time.h: New file.
15889 * kern/disk.c: Include <pupa/machine/time.h>.
15890 (PUPA_CACHE_TIMEOUT): New macro.
15891 (pupa_last_time): New variable.
15892 (pupa_disk_open): Flush the cache when there was a timeout.
15893 (pupa_disk_close): Reset the timer.
15894 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
15896 * util/misc.c: Include <sys/times.h>
15897 (pupa_get_rtc): New function.
15899 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
15901 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
15903 (pupa_ext2_get_file_block): Use blocks member.
15905 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
15906 first block. Return -1 instead of pupa_errno on error.
15908 2003-10-27 Marco Gerards <metgerards@student.han.nl>
15910 * README: In the pupa-mkimage example use _chain instead of chain
15911 and ext2 instead of fat.
15912 * TODO: Replace ext2fs with jfs as an example. Add an item for
15913 adding journal playback for ext2fs.
15914 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
15915 (pkgdata_MODULES): Added ext2.mod.
15916 (ext2_mod_SOURCES): New variable.
15917 (ext2_mod_CFLAGS): Likewise.
15918 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
15919 * include/pupa/misc.h (pupa_strncpy): New prototype.
15920 (pupa_strcat): Likewise.
15921 (pupa_strncmp): Likewise.
15922 * kern/misc.c (pupa_strcat): Enable function.
15923 (pupa_strncpy): New function.
15924 (pupa_strncmp): Likewise.
15925 * fs/ext2.c: New file.
15927 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
15928 when the read failed before retrying.
15929 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
15930 (_FILE_OFFSET_BITS): Likewise.
15931 * configure.ac: Added AC_SYS_LARGEFILE.
15933 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
15935 * genmk.rb (PModule#rule): Make sure to get only symbol names
15936 from the output of nm.
15937 Reported by Robert Millan <zeratul2@wanadoo.es>.
15939 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
15941 I forgot to check in these changes for a long time. This adds
15942 incomplete support for VGA console, and this is still very
15943 buggy. Also, a lot of consideration is required for I18N,
15944 UNICODE, and VGA font issues. Therefore, assume that this is
15945 such that "better than nothing".
15947 * font/manager.c: New file.
15948 * include/pupa/font.h: Likewise.
15949 * include/pupa/i386/pc/vga.h: Likewise.
15950 * term/i386/pc/vga.c: Likewise.
15951 * util/unifont2pff.rb: Likewise.
15953 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
15954 (pkgdata_MODULES): Added vga.mod and font.mod.
15955 (vga_mod_SOURCES): New variables.
15956 (vga_mod_CFLAGS): Likewise.
15957 (font_mod_SOURCES): Likewise.
15958 (font_mod_CFLAGS): Likewise.
15960 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
15962 * include/pupa/term.h: Include pupa/err.h.
15963 (struct pupa_term): Added init and fini.
15964 Changed the argument of putchar to pupa_uint32_t.
15966 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
15967 (pupa_console_real_putchar): New prototype.
15968 (pupa_console_putchar): Removed.
15969 (pupa_console_checkkey): Exported.
15970 (pupa_console_getkey): Likewise.
15972 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
15975 * kern/term.c (pupa_term_set_current): Rewritten.
15976 (pupa_putchar): Likewise.
15977 (pupa_putcode): New function.
15979 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
15980 (pupa_console_real_putchar): ... this.
15981 (pupa_vga_set_mode): New function.
15982 (pupa_vga_get_font): Likewise.
15984 * normal/command.c: Include pupa/term.h.
15985 (terminal_command): New function.
15986 (pupa_command_init): Register the command "terminal".
15988 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
15989 (DISP_UP): Likewise.
15990 (DISP_RIGHT): Likewise.
15991 (DISP_DOWN): Likewise.
15992 (DISP_HLINE): Likewise.
15993 (DISP_VLINE): Likewise.
15994 (DISP_UL): Likewise.
15995 (DISP_UR): Likewise.
15996 (DISP_LL): Likewise.
15997 (DISP_LR): Likewise.
15999 * term/i386/pc/console.c (pupa_console_putchar): New function.
16001 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
16003 * util/resolve.c (pupa_util_resolve_dependencies): BUG
16004 FIX. Reverse the path_list.
16006 * include/pupa/normal.h: Export pupa_register_command and
16007 pupa_unregister_command.
16009 * hello/hello.c (pupa_cmd_hello): New module.
16010 * conf/i386-pc.rmk: Added hello.mod.
16012 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
16014 * kern/i386/pc/lzo1x.S: New file.
16016 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
16017 (compress_kernel): New variable.
16018 (generate_image): Heavily modified to support compressing a
16019 large part of the core image.
16021 * util/misc.c (pupa_util_read_image): Fix a file descriptor
16023 (pupa_util_load_image): New function.
16025 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
16026 (pupa_compressed_size): New variable.
16027 (codestart): Enable Gate A20 here.
16028 Decompress the compressed part of the core image.
16029 Rearrange the code to put functions and variables which are
16030 required for initialization in the non-compressed part.
16033 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
16036 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
16038 * include/pupa/i386/pc/kernel.h
16039 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
16040 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
16041 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
16042 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
16043 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
16045 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
16047 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
16048 (Utility#rule): Likewise.
16050 * configure.ac: Check if LZO is available.
16052 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
16054 * include/pupa/normal.h: New file.
16055 * include/pupa/setjmp.h: Likewise.
16056 * include/pupa/i386/setjmp.h: Likewise.
16057 * normal/cmdline.c: Likewise.
16058 * normal/command.c: Likewise.
16059 * normal/main.c: Likewise.
16060 * normal/menu.c: Likewise.
16061 * normal/i386/setjmp.S: Likewise.
16063 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
16064 (pupa_rescue_cmd_initrd): Likewise.
16066 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
16069 * kern/i386/pc/startup.S (translation_table): New variable.
16070 (translate_keycode): New function.
16071 (pupa_console_getkey): Call translate_keycode.
16073 * kern/rescue.c (attempt_normal_mode): New function.
16074 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
16075 it failed, print a message.
16077 * kern/mm.c (pupa_real_malloc): Print more information when a
16078 free magic is broken.
16079 (pupa_free): If the first free header is not free actually, set
16082 * kern/main.c (pupa_load_normal_mode): Just load the module
16084 (pupa_main): Don't print the message
16085 "Entering into rescue mode..." here.
16087 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
16089 (pupa_rescue_cmd_initrd): Likewise.
16090 (pupa_rescue_cmd_initrd): Likewise.
16092 * include/pupa/symbol.h (FUNCTION): Specify the type.
16093 (VARIABLE): Likewise.
16095 * include/pupa/err.h (pupa_err_t): Added
16096 PUPA_ERR_UNKNOWN_COMMAND.
16098 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
16099 (pupa_dl_get_prefix): Likewise.
16101 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
16102 Added _chain.mod and _linux.mod instead of chain.mod and
16104 (chain_mod_SOURCES): Renamed to ...
16105 (_chain_mod_SOURCES): ... this.
16106 (chain_mod_CFLAGS): Renamed to ...
16107 (_chain_mod_CFLAGS): ... this.
16108 (linux_mod_SOURCES): Renamed to ...
16109 (_linux_mod_SOURCES): ... this.
16110 (linux_mod_CFLAGS): Renamed to ...
16111 (_linux_mod_CFLAGS): ... this.
16112 (normal_mod_SOURCES): New variable.
16113 (normal_mod_CFLAGS): Likewise.
16114 (normal_mod_ASFLAGS): Likewise.
16116 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
16118 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
16121 * kern/dl.c (pupa_dl_ref): Refer depending modules
16123 (pupa_dl_unref): Unrefer depending modules recursively.
16124 Don't call pupa_dl_unload implicitly, because PUPA can crash if
16125 a module is unloaded before one depending on that module is
16127 (pupa_dl_unload): Unload depending modules explicitly,
16130 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
16132 * include/pupa/i386/pc/linux.h: New file.
16133 * loader/i386/pc/linux.c: Likewise.
16135 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
16137 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
16138 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
16139 of PUPA_CHAINLOADER_BOOT_SECTOR.
16141 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
16142 (pupa_linux_prot_size): New variable.
16143 (pupa_linux_tmp_addr): Likewise.
16144 (pupa_linux_real_addr): Likewise.
16145 (pupa_linux_boot_zimage): New function.
16146 (pupa_linux_boot_bzimage): Likewise.
16148 * kern/i386/pc/init.c (struct mem_region): New structure.
16149 (MAX_REGIONS): New macro.
16150 (mem_regions): New variable.
16151 (num_regions): Likewise.
16152 (pupa_os_area_addr): Likewise.
16153 (pupa_os_area_size): Likewise.
16154 (pupa_lower_mem): Likewise.
16155 (pupa_upper_mem): Likewise.
16156 (add_mem_region): New function.
16157 (compact_mem_regions): Likewise.
16158 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
16159 the size of the conventional memory and that of so-called upper
16160 memory (before the first memory hole).
16161 Instead of adding each found region to free memory, use
16162 add_mem_region and add them after removing overlaps.
16163 Also, add only 1/4 of the upper memory to free memory. The rest
16164 is used for loading OS images. Maybe this is ad hoc, but this
16165 makes it much easier to relocate OS images when booting.
16167 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
16168 (pupa_enter_rescue_mode): Don't register initrd and module.
16170 * kern/mm.c: Include pupa/dl.h.
16172 * kern/main.c: Include pupa/file.h and pupa/device.h.
16174 * kern/loader.c (pupa_loader_load_module_func): Removed.
16175 (pupa_loader_load_module): Likewise.
16177 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
16180 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
16181 (pupa_linux_tmp_addr): Likewise.
16182 (pupa_linux_real_addr): Likewise.
16183 (pupa_linux_boot_zimage): Likewise.
16184 (pupa_linux_boot_bzimage): Likewise.
16186 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
16187 (pupa_upper_mem): Likewise.
16188 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
16189 module is too dangerous.
16191 * include/pupa/loader.h (pupa_os_area_addr): Declared.
16192 (pupa_os_area_size): Likewise.
16193 (pupa_loader_set): Remove the first argument. Loader doesn't
16194 manage modules or initrd any longer.
16195 (pupa_loader_load_module): Removed.
16197 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
16198 (linux_mod_SOURCES): New variable.
16199 (linux_mod_CFLAGS): Likewise.
16201 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
16203 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
16204 the length of a blocklist correctly.
16206 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
16207 Use ioctl only if the OS file is a block device.
16208 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
16209 not very useful for normal files.
16211 * kern/main.c (pupa_set_root_dev): New function.
16212 (pupa_load_normal_mode): Likewise.
16213 (pupa_main): Call those above.
16215 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
16218 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
16220 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
16222 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
16223 (setup): Configure the installed partition information and the
16226 * loader/i386/pc/chainloader.c (my_mod): New variable.
16227 (pupa_chainloader_unload): New function.
16228 (pupa_rescue_cmd_chainloader): Refer itself.
16229 (PUPA_MOD_INIT): Save its own module in MY_MOD.
16231 * kern/i386/pc/startup.S (install_partition): Removed.
16232 (version_string): Likewise.
16233 (config_file): Likewise.
16234 (pupa_install_dos_part): New variable.
16235 (pupa_install_bsd_part): Likewise.
16236 (pupa_prefix): Likewise.
16237 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
16239 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
16241 (make_install_device): New function.
16242 (pupa_machine_init): Set the dl prefix.
16244 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
16245 (buf): Renamed to ...
16246 (linebuf): ... this.
16247 (pupa_rescue_cmd_prefix): New function.
16248 (pupa_rescue_cmd_insmod): Likewise.
16249 (pupa_rescue_cmd_rmmod): Likewise.
16250 (pupa_rescue_cmd_lsmod): Likewise.
16251 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
16254 * kern/mm.c (pupa_memalign): If failed even after invalidating
16255 disk caches, unload unneeded modules and retry.
16257 * kern/misc.c (pupa_memmove): New function.
16258 (pupa_memcpy): Removed.
16259 (pupa_strcpy): New function.
16260 (pupa_itoa): Made static.
16262 * kern/dl.c (pupa_dl_iterate): New function.
16263 (pupa_dl_ref): Likewise.
16264 (pupa_dl_unref): Likewise.
16265 (pupa_dl_unload): Return if succeeded or not.
16266 (pupa_dl_unload_unneeded): New function.
16267 (pupa_dl_unload_all): Likewise.
16268 (pupa_dl_init): Renamed to ...
16269 (pupa_dl_set_prefix): ... this.
16270 (pupa_dl_get_prefix): New function.
16272 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
16273 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
16274 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
16275 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
16276 (pupa_install_dos_part): Declared.
16277 (pupa_install_bsd_part): Likewise.
16278 (pupa_prefix): Likewise.
16279 (pupa_boot_drive): Likewise.
16281 * include/pupa/types.h: Fix a typo.
16283 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
16285 (pupa_memmove): Declared.
16286 (pupa_strcpy): Likewise.
16288 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
16289 pupa_mod_init takes one argument, its own module.
16290 (pupa_dl_unload_unneeded): Declared.
16291 (pupa_dl_unload_all): Likewise.
16292 (pupa_dl_ref): Likewise.
16293 (pupa_dl_unref): Likewise.
16294 (pupa_dl_iterate): Likewise.
16295 (pupa_dl_init): Renamed to ...
16296 (pupa_dl_set_prefix): ... this.
16297 (pupa_dl_get_prefix): Declared.
16299 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
16300 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
16302 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
16303 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
16305 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
16306 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
16308 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
16310 * util/i386/pc/pupa-setup.c (setup): Define the internal
16311 function find_first_partition_start at the top level, because GCC
16312 3.0.x cannot compile internal functions in deeper scopes
16314 (find_root_device): Use lstat instead of stat.
16315 Don't follow symbolic links.
16316 Fix the path-constructing code.
16318 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
16319 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
16320 by a BLKGETSIZE ioctl first, because block devices don't fill
16321 the member st_mode of the structure stat on Linux.
16322 [__linux__] (linux_find_partition): Use a temporary buffer
16323 REAL_DEV for the working space. Copy it to DEV before returning.
16324 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
16325 buffer cache consistent.
16326 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
16327 strncmp. The previous value was merely wrong.
16328 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
16330 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
16331 FAT size is 12. The previous value was merely wrong.
16333 * kern/main.c (pupa_main): Don't split the starting message from
16336 * kern/term.c (pupa_putchar): Put CR after LF instead of before
16337 LF, because BIOS goes crazy about character attributes in this
16340 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
16342 * include/i386/pc/util/biosdisk.h: New file.
16343 * util/i386/pc/biosdisk.c: Likewise.
16344 * util/i386/pc/pupa-setup.c: Likewise.
16346 * Makefile.in (INCLUDE_DISTFILES): Added
16347 include/pupa/i386/pc/util/biosdisk.h.
16348 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
16349 directory util/i386/pc.
16350 (install-local): Added a rule for sbin_UTILITIES.
16351 (uninstall): Likewise.
16353 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
16355 * util/misc.c (xrealloc): New function.
16356 (pupa_malloc): Likewise.
16357 (pupa_free): Likewise.
16358 (pupa_realloc): Likewise.
16359 (pupa_stop): Likewise.
16360 (pupa_putchar): Likewise.
16362 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
16364 * include/pupa/util/misc.h (xrealloc): Declared.
16366 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
16368 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
16369 (PUPA_BOOT_MACHINE_BPB_END): ... this.
16371 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
16372 [PUPA_UTIL] (pupa_fat_fini): Likewise.
16374 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
16375 way should be implemented.
16376 [PUPA_UTIL] (pupa_fat_fini): Likewise.
16378 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
16379 the size of NAME for safety.
16380 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
16383 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
16384 (pupa_setup_SOURCES): Likewise.
16386 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
16388 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
16390 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
16391 bunch of pushl's from pusha, because this destroys the return
16394 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
16396 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
16397 This means that any missing prototypes could be fatal. Also, you
16398 must take care when writing assembly code. See the comments at
16399 the beginning of startup.S, for more details.
16401 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
16402 compilation mechanism.
16403 (pupa_chainloader_real_boot): Likewise.
16404 (pupa_biosdisk_rw_int13_extensions): Likewise.
16405 (pupa_biosdisk_rw_standard): Likewise.
16406 (pupa_biosdisk_check_int13_extensions): Likewise.
16407 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
16408 (pupa_biosdisk_get_diskinfo_standard): Likewise.
16409 (pupa_get_memsize): Likewise.
16410 (pupa_get_mmap_entry): Likewise.
16411 (pupa_console_putchar): Likewise.
16412 (pupa_console_setcursor): Likewise.
16413 (pupa_getrtsecs): Use pushl instead of push.
16415 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
16416 memory instead of the stack for a mmap entry, because some
16417 BIOSes may ignore the maximum size and overflow.
16419 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
16421 * genmk.rb (PModule#rule): Compile automatically generated
16422 sources with module-specific CFLAGS as well as other sources.
16424 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
16426 * configure.ac: Check ld.
16427 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
16428 respectively, before checking endianness and sizes.
16430 * Makefile.in (LD): New variable.
16432 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
16434 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
16436 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
16438 * Changelog: New file.